PageSourceSearch

https://simplesmenteia.web.app/assets/index-N07g20fl.js

js simplesmenteia.web.app collected 2026-10-03 12:35:37 UTC 1,213,887 bytes, 2,186 lines download raw bytes

vendor: 5,780 bytes, lines 1-9
1function yR(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Bp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function va(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bR={exports:{}},Hp={},wR={exports:{}},at={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Bc=Symbol.for("react.element"),PD=Symbol.for("react.portal"),kD=Symbol.for("react.fragment"),ID=Symbol.for("react.strict_mode"),MD=Symbol.for("react.profiler"),DD=Symbol.for("react.provider"),AD=Symbol.for("react.context"),jD=Symbol.for("react.forward_ref"),OD=Symbol.for("react.suspense"),ND=Symbol.for("react.memo"),LD=Symbol.for("react.lazy"),Fx=Symbol.iterator;function FD(e){return e===null||typeof e!="object"?null:(e=Fx&&e[Fx]||e["@@iterator"],typeof e=="function"?e:null)}var xR={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},SR=Object.assign,CR={};function Ul(e,t,n){this.props=e,this.context=t,this.refs=CR,this.updater=n||xR}Ul.prototype.isReactComponent={};Ul.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")};Ul.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _R(){}_R.prototype=Ul.prototype;function Gy(e,t,n){this.props=e,this.context=t,this.refs=CR,this.updater=n||xR}var Wy=Gy.prototype=new _R;Wy.constructor=Gy;SR(Wy,Ul.prototype);Wy.isPureReactComponent=!0;var $x=Array.isArray,RR=Object.prototype.hasOwnProperty,Ky={current:null},ER={key:!0,ref:!0,__self:!0,__source:!0};function TR(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)RR.call(t,r)&&!ER.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:Bc,type:e,key:i,ref:s,props:o,_owner:Ky.current}}function $D(e,t){return{$$typeof:Bc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qy(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bc}function zD(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var zx=/\/+/g;function Pm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zD(""+e.key):t.toString(36)}function hf(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Bc:case PD:s=!0}}if(s)return s=e,o=o(s),e=r===""?"."+Pm(s,0):r,$x(o)?(n="",e!=null&&(n=e.replace(zx,"$&/")+"/"),hf(o,t,n,"",function(u){return u})):o!=null&&(qy(o)&&(o=$D(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(zx,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=r===""?".":r+":",$x(e))for(var a=0;a<e.length;a++){i=e[a];var l=r+Pm(i,a);s+=hf(i,t,n,l,o)}else if(l=FD(e),typeof l=="function")for(e=l.call(e),a=0;!(i=e.next()).done;)i=i.value,l=r+Pm(i,a++),s+=hf(i,t,n,l,o);else if(i==="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 s}function Td(e,t,n){if(e==null)return e;var r=[],o=0;return hf(e,r,"","",function(i){return t.call(n,i,o++)}),r}function VD(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 qn={current:null},mf={transition:null},BD={ReactCurrentDispatcher:qn,ReactCurrentBatchConfig:mf,ReactCurrentOwner:Ky};function PR(){throw Error("act(...) is not supported in production builds of React.")}at.Children={map:Td,forEach:function(e,t,n){Td(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Td(e,function(){t++}),t},toArray:function(e){return Td(e,function(t){return t})||[]},only:function(e){if(!qy(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};at.Component=Ul;at.Fragment=kD;at.Profiler=MD;at.PureComponent=Gy;at.StrictMode=ID;at.Suspense=OD;
vendor: 4,692 bytes, lines 9-25
9at.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=BD;at.act=PR;at.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=SR({},e.props),o=e.key,i=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,s=Ky.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)RR.call(t,l)&&!ER.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Bc,type:e.type,key:o,ref:i,props:r,_owner:s}};at.createContext=function(e){return e={$$typeof:AD,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:DD,_context:e},e.Consumer=e};at.createElement=TR;at.createFactory=function(e){var t=TR.bind(null,e);return t.type=e,t};at.createRef=function(){return{current:null}};at.forwardRef=function(e){return{$$typeof:jD,render:e}};at.isValidElement=qy;at.lazy=function(e){return{$$typeof:LD,_payload:{_status:-1,_result:e},_init:VD}};at.memo=function(e,t){return{$$typeof:ND,type:e,compare:t===void 0?null:t}};at.startTransition=function(e){var t=mf.transition;mf.transition={};try{e()}finally{mf.transition=t}};at.unstable_act=PR;at.useCallback=function(e,t){return qn.current.useCallback(e,t)};at.useContext=function(e){return qn.current.useContext(e)};at.useDebugValue=function(){};at.useDeferredValue=function(e){return qn.current.useDeferredValue(e)};at.useEffect=function(e,t){return qn.current.useEffect(e,t)};at.useId=function(){return qn.current.useId()};at.useImperativeHandle=function(e,t,n){return qn.current.useImperativeHandle(e,t,n)};at.useInsertionEffect=function(e,t){return qn.current.useInsertionEffect(e,t)};at.useLayoutEffect=function(e,t){return qn.current.useLayoutEffect(e,t)};at.useMemo=function(e,t){return qn.current.useMemo(e,t)};at.useReducer=function(e,t,n){return qn.current.useReducer(e,t,n)};at.useRef=function(e){return qn.current.useRef(e)};at.useState=function(e){return qn.current.useState(e)};at.useSyncExternalStore=function(e,t,n){return qn.current.useSyncExternalStore(e,t,n)};at.useTransition=function(){return qn.current.useTransition()};at.version="18.3.1";wR.exports=at;var S=wR.exports;const Rn=va(S),kR=yR({__proto__:null,default:Rn},[S]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var HD=S,UD=Symbol.for("react.element"),GD=Symbol.for("react.fragment"),WD=Object.prototype.hasOwnProperty,KD=HD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,qD={key:!0,ref:!0,__self:!0,__source:!0};function IR(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)WD.call(t,r)&&!qD.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:UD,type:e,key:i,ref:s,props:o,_owner:KD.current}}Hp.Fragment=GD;Hp.jsx=IR;Hp.jsxs=IR;bR.exports=Hp;var p=bR.exports,MR={exports:{}},Cr={},DR={exports:{}},AR={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(j,L){var B=j.length;j.push(L);e:for(;0<B;){var H=B-1>>>1,G=j[H];if(0<o(G,L))j[H]=L,j[B]=G,B=H;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var L=j[0],B=j.pop();if(B!==L){j[0]=B;e:for(var H=0,G=j.length,ee=G>>>1;H<ee;){var oe=2*(H+1)-1,X=j[oe],J=oe+1,q=j[J];if(0>o(X,B))J<G&&0>o(q,X)?(j[H]=q,j[J]=B,H=J):(j[H]=X,j[oe]=B,H=oe);else if(J<G&&0>o(q,B))j[H]=q,j[J]=B,H=J;else break e}}return L}function o(j,L){var B=j.sortIndex-L.sortIndex;return B!==0?B:j.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,f=3,h=!1,g=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(j){for(var L=n(u);
vendor: 9,080 bytes, lines 25-34
25L!==null;){if(L.callback===null)r(u);else if(L.startTime<=j)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function R(j){if(v=!1,x(j),!g)if(n(l)!==null)g=!0,N(k);else{var L=n(u);L!==null&&F(R,L.startTime-j)}}function k(j,L){g=!1,v&&(v=!1,b(_),_=-1),h=!0;var B=f;try{for(x(L),d=n(l);d!==null&&(!(d.expirationTime>L)||j&&!M());){var H=d.callback;if(typeof H=="function"){d.callback=null,f=d.priorityLevel;var G=H(d.expirationTime<=L);L=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(l)&&r(l),x(L)}else r(l);d=n(l)}if(d!==null)var ee=!0;else{var oe=n(u);oe!==null&&F(R,oe.startTime-L),ee=!1}return ee}finally{d=null,f=B,h=!1}}var I=!1,C=null,_=-1,T=5,P=-1;function M(){return!(e.unstable_now()-P<T)}function O(){if(C!==null){var j=e.unstable_now();P=j;var L=!0;try{L=C(!0,j)}finally{L?A():(I=!1,C=null)}}else I=!1}var A;if(typeof y=="function")A=function(){y(O)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,z=V.port2;V.port1.onmessage=O,A=function(){z.postMessage(null)}}else A=function(){w(O,0)};function N(j){C=j,I||(I=!0,A())}function F(j,L){_=w(function(){j(e.unstable_now())},L)}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(){g||h||(g=!0,N(k))},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"):T=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(j){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var B=f;f=L;try{return j()}finally{f=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,L){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var B=f;f=j;try{return L()}finally{f=B}},e.unstable_scheduleCallback=function(j,L,B){var H=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?H+B:H):B=H,j){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=B+G,j={id:c++,callback:L,priorityLevel:j,startTime:B,expirationTime:G,sortIndex:-1},B>H?(j.sortIndex=B,t(u,j),n(l)===null&&j===n(u)&&(v?(b(_),_=-1):v=!0,F(R,B-H))):(j.sortIndex=G,t(l,j),g||h||(g=!0,N(k))),j},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(j){var L=f;return function(){var B=f;f=L;try{return j.apply(this,arguments)}finally{f=B}}}})(AR);DR.exports=AR;var YD=DR.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var XD=S,br=YD;function pe(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 jR=new Set,mc={};function ya(e,t){_l(e,t),_l(e+"Capture",t)}function _l(e,t){for(mc[e]=t,e=0;e<t.length;e++)jR.add(t[e])}var ui=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rv=Object.prototype.hasOwnProperty,JD=/^[: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]*$/,Vx={},Bx={};function QD(e){return rv.call(Bx,e)?!0:rv.call(Vx,e)?!1:JD.test(e)?Bx[e]=!0:(Vx[e]=!0,!1)}function ZD(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 eA(e,t,n,r){if(t===null||typeof t>"u"||ZD(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 Yn(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Pn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pn[e]=new Yn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pn[t]=new Yn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pn[e]=new Yn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pn[e]=new Yn(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){Pn[e]=new Yn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pn[e]=new Yn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pn[e]=new Yn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pn[e]=new Yn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pn[e]=new Yn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yy=/[\-:]([a-z])/g;function Xy(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Yy,Xy);Pn[t]=new Yn(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(Yy,Xy);Pn[t]=new Yn(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(Yy,Xy);Pn[t]=new Yn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pn[e]=new Yn(e,1,!1,e.toLowerCase(),null,!1,!1)});Pn.xlinkHref=new Yn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pn[e]=new Yn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Jy(e,t,n,r){var o=Pn.hasOwnProperty(t)?Pn[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(eA(t,n,o,r)&&(n=null),r||o===null?QD(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var wi=XD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pd=Symbol.for("react.element"),Ja=Symbol.for("react.portal"),Qa=Symbol.for("react.fragment"),Qy=Symbol.for("react.strict_mode"),ov=Symbol.for("react.profiler"),OR=Symbol.for("react.provider"),NR=Symbol.for("react.context"),Zy=Symbol.for("react.forward_ref"),iv=Symbol.for("react.suspense"),sv=Symbol.for("react.suspense_list"),e0=Symbol.for("react.memo"),Hi=Symbol.for("react.lazy"),LR=Symbol.for("react.offscreen"),Hx=Symbol.iterator;function wu(e){return e===null||typeof e!="object"?null:(e=Hx&&e[Hx]||e["@@iterator"],typeof e=="function"?e:null)}var Gt=Object.assign,km;function Vu(e){if(km===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);km=t&&t[1]||""}return`
34`+km+e}
vendor: 7,171 bytes, lines 34-37
34var Im=!1;function Mm(e,t){if(!e||Im)return"";Im=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
35`),i=r.stack.split(`
36`),s=o.length-1,a=i.length-1;1<=s&&0<=a&&o[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(o[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||o[s]!==i[a]){var l=`
37`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Im=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vu(e):""}function tA(e){switch(e.tag){case 5:return Vu(e.type);case 16:return Vu("Lazy");case 13:return Vu("Suspense");case 19:return Vu("SuspenseList");case 0:case 2:case 15:return e=Mm(e.type,!1),e;case 11:return e=Mm(e.type.render,!1),e;case 1:return e=Mm(e.type,!0),e;default:return""}}function av(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 Qa:return"Fragment";case Ja:return"Portal";case ov:return"Profiler";case Qy:return"StrictMode";case iv:return"Suspense";case sv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case NR:return(e.displayName||"Context")+".Consumer";case OR:return(e._context.displayName||"Context")+".Provider";case Zy:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case e0:return t=e.displayName||null,t!==null?t:av(e.type)||"Memo";case Hi:t=e._payload,e=e._init;try{return av(e(t))}catch{}}return null}function nA(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return av(t);case 8:return t===Qy?"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 ms(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function FR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rA(e){var t=FR(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kd(e){e._valueTracker||(e._valueTracker=rA(e))}function $R(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=FR(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Lf(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 lv(e,t){var n=t.checked;return Gt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ux(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ms(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 zR(e,t){t=t.checked,t!=null&&Jy(e,"checked",t,!1)}function uv(e,t){zR(e,t);var n=ms(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")?cv(e,t.type,n):t.hasOwnProperty("defaultValue")&&cv(e,t.type,ms(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Gx(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 cv(e,t,n){(t!=="number"||Lf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Bu=Array.isArray;function fl(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ms(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function dv(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(pe(91));return Gt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Wx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(pe(92));if(Bu(n)){if(1<n.length)throw Error(pe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ms(n)}}function VR(e,t){var n=ms(t.value),r=ms(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 Kx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function BR(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 fv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?BR(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Id,HR=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Id=Id||document.createElement("div"),Id.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Id.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gc(e,t){if(t){var n=e.firstChild;
vendor: 3,479 bytes, line 37
37if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qu={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},oA=["Webkit","ms","Moz","O"];Object.keys(Qu).forEach(function(e){oA.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qu[t]=Qu[e]})});function UR(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qu.hasOwnProperty(e)&&Qu[e]?(""+t).trim():t+"px"}function GR(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=UR(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var iA=Gt({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 pv(e,t){if(t){if(iA[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(pe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(pe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(pe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(pe(62))}}function hv(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 mv=null;function t0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gv=null,pl=null,hl=null;function qx(e){if(e=Gc(e)){if(typeof gv!="function")throw Error(pe(280));var t=e.stateNode;t&&(t=qp(t),gv(e.stateNode,e.type,t))}}function WR(e){pl?hl?hl.push(e):hl=[e]:pl=e}function KR(){if(pl){var e=pl,t=hl;if(hl=pl=null,qx(e),t)for(e=0;e<t.length;e++)qx(t[e])}}function qR(e,t){return e(t)}function YR(){}var Dm=!1;function XR(e,t,n){if(Dm)return e(t,n);Dm=!0;try{return qR(e,t,n)}finally{Dm=!1,(pl!==null||hl!==null)&&(YR(),KR())}}function vc(e,t){var n=e.stateNode;if(n===null)return null;var r=qp(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(pe(231,t,typeof n));return n}var vv=!1;if(ui)try{var xu={};Object.defineProperty(xu,"passive",{get:function(){vv=!0}}),window.addEventListener("test",xu,xu),window.removeEventListener("test",xu,xu)}catch{vv=!1}function sA(e,t,n,r,o,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Zu=!1,Ff=null,$f=!1,yv=null,aA={onError:function(e){Zu=!0,Ff=e}};
vendor: 5,654 bytes, line 37
37function lA(e,t,n,r,o,i,s,a,l){Zu=!1,Ff=null,sA.apply(aA,arguments)}function uA(e,t,n,r,o,i,s,a,l){if(lA.apply(this,arguments),Zu){if(Zu){var u=Ff;Zu=!1,Ff=null}else throw Error(pe(198));$f||($f=!0,yv=u)}}function ba(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 JR(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 Yx(e){if(ba(e)!==e)throw Error(pe(188))}function cA(e){var t=e.alternate;if(!t){if(t=ba(e),t===null)throw Error(pe(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Yx(o),e;if(i===r)return Yx(o),t;i=i.sibling}throw Error(pe(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s)throw Error(pe(189))}}if(n.alternate!==r)throw Error(pe(190))}if(n.tag!==3)throw Error(pe(188));return n.stateNode.current===n?e:t}function QR(e){return e=cA(e),e!==null?ZR(e):null}function ZR(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ZR(e);if(t!==null)return t;e=e.sibling}return null}var eE=br.unstable_scheduleCallback,Xx=br.unstable_cancelCallback,dA=br.unstable_shouldYield,fA=br.unstable_requestPaint,Jt=br.unstable_now,pA=br.unstable_getCurrentPriorityLevel,n0=br.unstable_ImmediatePriority,tE=br.unstable_UserBlockingPriority,zf=br.unstable_NormalPriority,hA=br.unstable_LowPriority,nE=br.unstable_IdlePriority,Up=null,Po=null;function mA(e){if(Po&&typeof Po.onCommitFiberRoot=="function")try{Po.onCommitFiberRoot(Up,e,void 0,(e.current.flags&128)===128)}catch{}}var io=Math.clz32?Math.clz32:yA,gA=Math.log,vA=Math.LN2;function yA(e){return e>>>=0,e===0?32:31-(gA(e)/vA|0)|0}var Md=64,Dd=4194304;function Hu(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 Vf(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Hu(a):(i&=s,i!==0&&(r=Hu(i)))}else s=n&~o,s!==0?r=Hu(s):i!==0&&(r=Hu(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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-io(t),o=1<<n,r|=e[n],t&=~o;return r}function bA(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 wA(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-io(i),a=1<<s,l=o[s];l===-1?(!(a&n)||a&r)&&(o[s]=bA(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function bv(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rE(){var e=Md;return Md<<=1,!(Md&4194240)&&(Md=64),e}function Am(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Hc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-io(t),e[t]=n}function xA(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 o=31-io(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function r0(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-io(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Rt=0;function oE(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var iE,o0,sE,aE,lE,wv=!1,Ad=[],ns=null,rs=null,os=null,yc=new Map,bc=new Map,Wi=[],SA="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 Jx(e,t){switch(e){case"focusin":case"focusout":ns=null;break;case"dragenter":case"dragleave":rs=null;break;case"mouseover":case"mouseout":os=null;break;case"pointerover":case"pointerout":yc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bc.delete(t.pointerId)}}function Su(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Gc(t),t!==null&&o0(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function CA(e,t,n,r,o){switch(t){case"focusin":return ns=Su(ns,e,t,n,r,o),!0;case"dragenter":return rs=Su(rs,e,t,n,r,o),!0;case"mouseover":return os=Su(os,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return yc.set(i,Su(yc.get(i)||null,e,t,n,r,o)),!0;
vendor: 12,726 bytes, line 37
37case"gotpointercapture":return i=o.pointerId,bc.set(i,Su(bc.get(i)||null,e,t,n,r,o)),!0}return!1}function uE(e){var t=Ks(e.target);if(t!==null){var n=ba(t);if(n!==null){if(t=n.tag,t===13){if(t=JR(n),t!==null){e.blockedOn=t,lE(e.priority,function(){sE(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 gf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xv(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);mv=r,n.target.dispatchEvent(r),mv=null}else return t=Gc(n),t!==null&&o0(t),e.blockedOn=n,!1;t.shift()}return!0}function Qx(e,t,n){gf(e)&&n.delete(t)}function _A(){wv=!1,ns!==null&&gf(ns)&&(ns=null),rs!==null&&gf(rs)&&(rs=null),os!==null&&gf(os)&&(os=null),yc.forEach(Qx),bc.forEach(Qx)}function Cu(e,t){e.blockedOn===t&&(e.blockedOn=null,wv||(wv=!0,br.unstable_scheduleCallback(br.unstable_NormalPriority,_A)))}function wc(e){function t(o){return Cu(o,e)}if(0<Ad.length){Cu(Ad[0],e);for(var n=1;n<Ad.length;n++){var r=Ad[n];r.blockedOn===e&&(r.blockedOn=null)}}for(ns!==null&&Cu(ns,e),rs!==null&&Cu(rs,e),os!==null&&Cu(os,e),yc.forEach(t),bc.forEach(t),n=0;n<Wi.length;n++)r=Wi[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Wi.length&&(n=Wi[0],n.blockedOn===null);)uE(n),n.blockedOn===null&&Wi.shift()}var ml=wi.ReactCurrentBatchConfig,Bf=!0;function RA(e,t,n,r){var o=Rt,i=ml.transition;ml.transition=null;try{Rt=1,i0(e,t,n,r)}finally{Rt=o,ml.transition=i}}function EA(e,t,n,r){var o=Rt,i=ml.transition;ml.transition=null;try{Rt=4,i0(e,t,n,r)}finally{Rt=o,ml.transition=i}}function i0(e,t,n,r){if(Bf){var o=xv(e,t,n,r);if(o===null)Hm(e,t,r,Hf,n),Jx(e,r);else if(CA(o,e,t,n,r))r.stopPropagation();else if(Jx(e,r),t&4&&-1<SA.indexOf(e)){for(;o!==null;){var i=Gc(o);if(i!==null&&iE(i),i=xv(e,t,n,r),i===null&&Hm(e,t,r,Hf,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Hm(e,t,r,null,n)}}var Hf=null;function xv(e,t,n,r){if(Hf=null,e=t0(r),e=Ks(e),e!==null)if(t=ba(e),t===null)e=null;else if(n=t.tag,n===13){if(e=JR(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 Hf=e,null}function cE(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(pA()){case n0:return 1;case tE:return 4;case zf:case hA:return 16;case nE:return 536870912;default:return 16}default:return 16}}var Qi=null,s0=null,vf=null;function dE(){if(vf)return vf;var e,t=s0,n=t.length,r,o="value"in Qi?Qi.value:Qi.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===o[i-r];r++);return vf=o.slice(e,1<r?1-r:void 0)}function yf(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 jd(){return!0}function Zx(){return!1}function _r(e){function t(n,r,o,i,s){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?jd:Zx,this.isPropagationStopped=Zx,this}return Gt(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=jd)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jd)},persist:function(){},isPersistent:jd}),t}var Gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},a0=_r(Gl),Uc=Gt({},Gl,{view:0,detail:0}),TA=_r(Uc),jm,Om,_u,Gp=Gt({},Uc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:l0,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!==_u&&(_u&&e.type==="mousemove"?(jm=e.screenX-_u.screenX,Om=e.screenY-_u.screenY):Om=jm=0,_u=e),jm)},movementY:function(e){return"movementY"in e?e.movementY:Om}}),e1=_r(Gp),PA=Gt({},Gp,{dataTransfer:0}),kA=_r(PA),IA=Gt({},Uc,{relatedTarget:0}),Nm=_r(IA),MA=Gt({},Gl,{animationName:0,elapsedTime:0,pseudoElement:0}),DA=_r(MA),AA=Gt({},Gl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jA=_r(AA),OA=Gt({},Gl,{data:0}),t1=_r(OA),NA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LA={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"},FA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $A(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=FA[e])?!!t[e]:!1}function l0(){return $A}var zA=Gt({},Uc,{key:function(e){if(e.key){var t=NA[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?LA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:l0,charCode:function(e){return e.type==="keypress"?yf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),VA=_r(zA),BA=Gt({},Gp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),n1=_r(BA),HA=Gt({},Uc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:l0}),UA=_r(HA),GA=Gt({},Gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),WA=_r(GA),KA=Gt({},Gp,{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}),qA=_r(KA),YA=[9,13,27,32],u0=ui&&"CompositionEvent"in window,ec=null;ui&&"documentMode"in document&&(ec=document.documentMode);var XA=ui&&"TextEvent"in window&&!ec,fE=ui&&(!u0||ec&&8<ec&&11>=ec),r1=" ",o1=!1;function pE(e,t){switch(e){case"keyup":return YA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Za=!1;function JA(e,t){switch(e){case"compositionend":return hE(t);case"keypress":return t.which!==32?null:(o1=!0,r1);case"textInput":return e=t.data,e===r1&&o1?null:e;default:return null}}function QA(e,t){if(Za)return e==="compositionend"||!u0&&pE(e,t)?(e=dE(),vf=s0=Qi=null,Za=!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 fE&&t.locale!=="ko"?null:t.data;default:return null}}var ZA={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 i1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ZA[e.type]:t==="textarea"}function mE(e,t,n,r){WR(r),t=Uf(t,"onChange"),0<t.length&&(n=new a0("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var tc=null,xc=null;function ej(e){EE(e,0)}function Wp(e){var t=nl(e);if($R(t))return e}function tj(e,t){if(e==="change")return t}var gE=!1;if(ui){var Lm;if(ui){var Fm="oninput"in document;if(!Fm){var s1=document.createElement("div");s1.setAttribute("oninput","return;"),Fm=typeof s1.oninput=="function"}Lm=Fm}else Lm=!1;gE=Lm&&(!document.documentMode||9<document.documentMode)}function a1(){tc&&(tc.detachEvent("onpropertychange",vE),xc=tc=null)}function vE(e){if(e.propertyName==="value"&&Wp(xc)){var t=[];mE(t,xc,e,t0(e)),XR(ej,t)}}function nj(e,t,n){e==="focusin"?(a1(),tc=t,xc=n,tc.attachEvent("onpropertychange",vE)):e==="focusout"&&a1()}function rj(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Wp(xc)}function oj(e,t){if(e==="click")return Wp(t)}function ij(e,t){if(e==="input"||e==="change")return Wp(t)}function sj(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var uo=typeof Object.is=="function"?Object.is:sj;function Sc(e,t){if(uo(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 o=n[r];if(!rv.call(t,o)||!uo(e[o],t[o]))return!1}return!0}function l1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function u1(e,t){var n=l1(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=l1(n)}}function yE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bE(){for(var e=window,t=Lf();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lf(e.document)}return t}function c0(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 aj(e){var t=bE(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&yE(n.ownerDocument.documentElement,n)){if(r!==null&&c0(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=u1(n,i);var s=u1(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var lj=ui&&"documentMode"in document&&11>=document.documentMode,el=null,Sv=null,nc=null,Cv=!1;function c1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cv||el==null||el!==Lf(r)||(r=el,"selectionStart"in r&&c0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),nc&&Sc(nc,r)||(nc=r,r=Uf(Sv,"onSelect"),0<r.length&&(t=new a0("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=el)))}function Od(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var tl={animationend:Od("Animation","AnimationEnd"),animationiteration:Od("Animation","AnimationIteration"),animationstart:Od("Animation","AnimationStart"),transitionend:Od("Transition","TransitionEnd")},$m={},wE={};ui&&(wE=document.createElement("div").style,"AnimationEvent"in window||(delete tl.animationend.animation,delete tl.animationiteration.animation,delete tl.animationstart.animation),"TransitionEvent"in window||delete tl.transitionend.transition);function Kp(e){if($m[e])return $m[e];if(!tl[e])return e;var t=tl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in wE)return $m[e]=t[n];return e}var xE=Kp("animationend"),SE=Kp("animationiteration"),CE=Kp("animationstart"),_E=Kp("transitionend"),RE=new Map,d1="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 Ss(e,t){RE.set(e,t),ya(t,[e])}for(var zm=0;zm<d1.length;zm++){var Vm=d1[zm],uj=Vm.toLowerCase(),cj=Vm[0].toUpperCase()+Vm.slice(1);Ss(uj,"on"+cj)}Ss(xE,"onAnimationEnd");Ss(SE,"onAnimationIteration");Ss(CE,"onAnimationStart");Ss("dblclick","onDoubleClick");Ss("focusin","onFocus");Ss("focusout","onBlur");Ss(_E,"onTransitionEnd");_l("onMouseEnter",["mouseout","mouseover"]);_l("onMouseLeave",["mouseout","mouseover"]);_l("onPointerEnter",["pointerout","pointerover"]);_l("onPointerLeave",["pointerout","pointerover"]);ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ya("onBeforeInput",["compositionend","keypress","textInput","paste"]);ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uu="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(" "),dj=new Set("cancel close invalid load scroll toggle".split(" ").concat(Uu));function f1(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,uA(r,t,void 0,e),e.currentTarget=null}function EE(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&o.isPropagationStopped())break e;f1(o,a,u),i=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&o.isPropagationStopped())break e;f1(o,a,u),i=l}}}if($f)throw e=yv,$f=!1,yv=null,e}function At(e,t){var n=t[Pv];n===void 0&&(n=t[Pv]=new Set);var r=e+"__bubble";n.has(r)||(TE(t,e,2,!1),n.add(r))}function Bm(e,t,n){var r=0;t&&(r|=4),TE(n,e,r,t)}var Nd="_reactListening"+Math.random().toString(36).slice(2);function Cc(e){if(!e[Nd]){e[Nd]=!0,jR.forEach(function(n){n!=="selectionchange"&&(dj.has(n)||Bm(n,!1,e),Bm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Nd]||(t[Nd]=!0,Bm("selectionchange",!1,t))}}function TE(e,t,n,r){switch(cE(t)){case 1:var o=RA;break;case 4:o=EA;break;default:o=i0}n=o.bind(null,t,n,e),o=void 0,!vv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hm(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;
vendor: 33,532 bytes, lines 37-40
37if(a===o||a.nodeType===8&&a.parentNode===o)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;s=s.return}for(;a!==null;){if(s=Ks(a),s===null)return;if(l=s.tag,l===5||l===6){r=i=s;continue e}a=a.parentNode}}r=r.return}XR(function(){var u=i,c=t0(n),d=[];e:{var f=RE.get(e);if(f!==void 0){var h=a0,g=e;switch(e){case"keypress":if(yf(n)===0)break e;case"keydown":case"keyup":h=VA;break;case"focusin":g="focus",h=Nm;break;case"focusout":g="blur",h=Nm;break;case"beforeblur":case"afterblur":h=Nm;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":h=e1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=kA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=UA;break;case xE:case SE:case CE:h=DA;break;case _E:h=WA;break;case"scroll":h=TA;break;case"wheel":h=qA;break;case"copy":case"cut":case"paste":h=jA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=n1}var v=(t&4)!==0,w=!v&&e==="scroll",b=v?f!==null?f+"Capture":null:f;v=[];for(var y=u,x;y!==null;){x=y;var R=x.stateNode;if(x.tag===5&&R!==null&&(x=R,b!==null&&(R=vc(y,b),R!=null&&v.push(_c(y,R,x)))),w)break;y=y.return}0<v.length&&(f=new h(f,g,null,n,c),d.push({event:f,listeners:v}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==mv&&(g=n.relatedTarget||n.fromElement)&&(Ks(g)||g[ci]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?Ks(g):null,g!==null&&(w=ba(g),g!==w||g.tag!==5&&g.tag!==6)&&(g=null)):(h=null,g=u),h!==g)){if(v=e1,R="onMouseLeave",b="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(v=n1,R="onPointerLeave",b="onPointerEnter",y="pointer"),w=h==null?f:nl(h),x=g==null?f:nl(g),f=new v(R,y+"leave",h,n,c),f.target=w,f.relatedTarget=x,R=null,Ks(c)===u&&(v=new v(b,y+"enter",g,n,c),v.target=x,v.relatedTarget=w,R=v),w=R,h&&g)t:{for(v=h,b=g,y=0,x=v;x;x=Na(x))y++;for(x=0,R=b;R;R=Na(R))x++;for(;0<y-x;)v=Na(v),y--;for(;0<x-y;)b=Na(b),x--;for(;y--;){if(v===b||b!==null&&v===b.alternate)break t;v=Na(v),b=Na(b)}v=null}else v=null;h!==null&&p1(d,f,h,v,!1),g!==null&&w!==null&&p1(d,w,g,v,!0)}}e:{if(f=u?nl(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var k=tj;else if(i1(f))if(gE)k=ij;else{k=rj;var I=nj}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(k=oj);if(k&&(k=k(e,u))){mE(d,k,n,c);break e}I&&I(e,f,u),e==="focusout"&&(I=f._wrapperState)&&I.controlled&&f.type==="number"&&cv(f,"number",f.value)}switch(I=u?nl(u):window,e){case"focusin":(i1(I)||I.contentEditable==="true")&&(el=I,Sv=u,nc=null);break;case"focusout":nc=Sv=el=null;break;case"mousedown":Cv=!0;break;case"contextmenu":case"mouseup":case"dragend":Cv=!1,c1(d,n,c);break;case"selectionchange":if(lj)break;case"keydown":case"keyup":c1(d,n,c)}var C;if(u0)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else Za?pE(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(fE&&n.locale!=="ko"&&(Za||_!=="onCompositionStart"?_==="onCompositionEnd"&&Za&&(C=dE()):(Qi=c,s0="value"in Qi?Qi.value:Qi.textContent,Za=!0)),I=Uf(u,_),0<I.length&&(_=new t1(_,e,null,n,c),d.push({event:_,listeners:I}),C?_.data=C:(C=hE(n),C!==null&&(_.data=C)))),(C=XA?JA(e,n):QA(e,n))&&(u=Uf(u,"onBeforeInput"),0<u.length&&(c=new t1("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=C))}EE(d,t)})}function _c(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Uf(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=vc(e,n),i!=null&&r.unshift(_c(e,i,o)),i=vc(e,t),i!=null&&r.push(_c(e,i,o))),e=e.return}return r}function Na(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function p1(e,t,n,r,o){for(var i=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,o?(l=vc(n,i),l!=null&&s.unshift(_c(n,l,a))):o||(l=vc(n,i),l!=null&&s.push(_c(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var fj=/\r\n?/g,pj=/\u0000|\uFFFD/g;function h1(e){return(typeof e=="string"?e:""+e).replace(fj,`
38`).replace(pj,"")}function Ld(e,t,n){if(t=h1(t),h1(e)!==t&&n)throw Error(pe(425))}function Gf(){}var _v=null,Rv=null;function Ev(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 Tv=typeof setTimeout=="function"?setTimeout:void 0,hj=typeof clearTimeout=="function"?clearTimeout:void 0,m1=typeof Promise=="function"?Promise:void 0,mj=typeof queueMicrotask=="function"?queueMicrotask:typeof m1<"u"?function(e){return m1.resolve(null).then(e).catch(gj)}:Tv;function gj(e){setTimeout(function(){throw e})}function Um(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),wc(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);wc(t)}function is(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 g1(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 Wl=Math.random().toString(36).slice(2),_o="__reactFiber$"+Wl,Rc="__reactProps$"+Wl,ci="__reactContainer$"+Wl,Pv="__reactEvents$"+Wl,vj="__reactListeners$"+Wl,yj="__reactHandles$"+Wl;function Ks(e){var t=e[_o];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ci]||n[_o]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=g1(e);e!==null;){if(n=e[_o])return n;e=g1(e)}return t}e=n,n=e.parentNode}return null}function Gc(e){return e=e[_o]||e[ci],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function nl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(pe(33))}function qp(e){return e[Rc]||null}var kv=[],rl=-1;function Cs(e){return{current:e}}function Nt(e){0>rl||(e.current=kv[rl],kv[rl]=null,rl--)}function kt(e,t){rl++,kv[rl]=e.current,e.current=t}var gs={},$n=Cs(gs),or=Cs(!1),ia=gs;function Rl(e,t){var n=e.type.contextTypes;if(!n)return gs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ir(e){return e=e.childContextTypes,e!=null}function Wf(){Nt(or),Nt($n)}function v1(e,t,n){if($n.current!==gs)throw Error(pe(168));kt($n,t),kt(or,n)}function PE(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(pe(108,nA(e)||"Unknown",o));return Gt({},n,r)}function Kf(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gs,ia=$n.current,kt($n,e),kt(or,or.current),!0}function y1(e,t,n){var r=e.stateNode;if(!r)throw Error(pe(169));n?(e=PE(e,t,ia),r.__reactInternalMemoizedMergedChildContext=e,Nt(or),Nt($n),kt($n,e)):Nt(or),kt(or,n)}var Ko=null,Yp=!1,Gm=!1;function kE(e){Ko===null?Ko=[e]:Ko.push(e)}function bj(e){Yp=!0,kE(e)}function _s(){if(!Gm&&Ko!==null){Gm=!0;var e=0,t=Rt;try{var n=Ko;for(Rt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Ko=null,Yp=!1}catch(o){throw Ko!==null&&(Ko=Ko.slice(e+1)),eE(n0,_s),o}finally{Rt=t,Gm=!1}}return null}var ol=[],il=0,qf=null,Yf=0,Dr=[],Ar=0,sa=null,Yo=1,Xo="";function Fs(e,t){ol[il++]=Yf,ol[il++]=qf,qf=e,Yf=t}function IE(e,t,n){Dr[Ar++]=Yo,Dr[Ar++]=Xo,Dr[Ar++]=sa,sa=e;var r=Yo;e=Xo;var o=32-io(r)-1;r&=~(1<<o),n+=1;var i=32-io(t)+o;if(30<i){var s=o-o%5;i=(r&(1<<s)-1).toString(32),r>>=s,o-=s,Yo=1<<32-io(t)+o|n<<o|r,Xo=i+e}else Yo=1<<i|n<<o|r,Xo=e}function d0(e){e.return!==null&&(Fs(e,1),IE(e,1,0))}function f0(e){for(;e===qf;)qf=ol[--il],ol[il]=null,Yf=ol[--il],ol[il]=null;for(;e===sa;)sa=Dr[--Ar],Dr[Ar]=null,Xo=Dr[--Ar],Dr[Ar]=null,Yo=Dr[--Ar],Dr[Ar]=null}var vr=null,gr=null,$t=!1,to=null;function ME(e,t){var n=jr(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 b1(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,vr=e,gr=is(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,vr=e,gr=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=sa!==null?{id:Yo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=jr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,vr=e,gr=null,!0):!1;default:return!1}}function Iv(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Mv(e){if($t){var t=gr;if(t){var n=t;if(!b1(e,t)){if(Iv(e))throw Error(pe(418));t=is(n.nextSibling);var r=vr;t&&b1(e,t)?ME(r,n):(e.flags=e.flags&-4097|2,$t=!1,vr=e)}}else{if(Iv(e))throw Error(pe(418));e.flags=e.flags&-4097|2,$t=!1,vr=e}}}function w1(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vr=e}function Fd(e){if(e!==vr)return!1;if(!$t)return w1(e),$t=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ev(e.type,e.memoizedProps)),t&&(t=gr)){if(Iv(e))throw DE(),Error(pe(418));for(;t;)ME(e,t),t=is(t.nextSibling)}if(w1(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(pe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){gr=is(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}gr=null}}else gr=vr?is(e.stateNode.nextSibling):null;return!0}function DE(){for(var e=gr;e;)e=is(e.nextSibling)}function El(){gr=vr=null,$t=!1}function p0(e){to===null?to=[e]:to.push(e)}var wj=wi.ReactCurrentBatchConfig;function Ru(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(pe(309));var r=n.stateNode}if(!r)throw Error(pe(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(s){var a=o.refs;s===null?delete a[i]:a[i]=s},t._stringRef=i,t)}if(typeof e!="string")throw Error(pe(284));if(!n._owner)throw Error(pe(290,e))}return e}function $d(e,t){throw e=Object.prototype.toString.call(t),Error(pe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function x1(e){var t=e._init;return t(e._payload)}function AE(e){function t(b,y){if(e){var x=b.deletions;x===null?(b.deletions=[y],b.flags|=16):x.push(y)}}function n(b,y){if(!e)return null;for(;y!==null;)t(b,y),y=y.sibling;return null}function r(b,y){for(b=new Map;y!==null;)y.key!==null?b.set(y.key,y):b.set(y.index,y),y=y.sibling;return b}function o(b,y){return b=us(b,y),b.index=0,b.sibling=null,b}function i(b,y,x){return b.index=x,e?(x=b.alternate,x!==null?(x=x.index,x<y?(b.flags|=2,y):x):(b.flags|=2,y)):(b.flags|=1048576,y)}function s(b){return e&&b.alternate===null&&(b.flags|=2),b}function a(b,y,x,R){return y===null||y.tag!==6?(y=Qm(x,b.mode,R),y.return=b,y):(y=o(y,x),y.return=b,y)}function l(b,y,x,R){var k=x.type;return k===Qa?c(b,y,x.props.children,R,x.key):y!==null&&(y.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Hi&&x1(k)===y.type)?(R=o(y,x.props),R.ref=Ru(b,y,x),R.return=b,R):(R=Rf(x.type,x.key,x.props,null,b.mode,R),R.ref=Ru(b,y,x),R.return=b,R)}function u(b,y,x,R){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=Zm(x,b.mode,R),y.return=b,y):(y=o(y,x.children||[]),y.return=b,y)}function c(b,y,x,R,k){return y===null||y.tag!==7?(y=ea(x,b.mode,R,k),y.return=b,y):(y=o(y,x),y.return=b,y)}function d(b,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Qm(""+y,b.mode,x),y.return=b,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Pd:return x=Rf(y.type,y.key,y.props,null,b.mode,x),x.ref=Ru(b,null,y),x.return=b,x;case Ja:return y=Zm(y,b.mode,x),y.return=b,y;case Hi:var R=y._init;return d(b,R(y._payload),x)}if(Bu(y)||wu(y))return y=ea(y,b.mode,x,null),y.return=b,y;$d(b,y)}return null}function f(b,y,x,R){var k=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return k!==null?null:a(b,y,""+x,R);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Pd:return x.key===k?l(b,y,x,R):null;case Ja:return x.key===k?u(b,y,x,R):null;case Hi:return k=x._init,f(b,y,k(x._payload),R)}if(Bu(x)||wu(x))return k!==null?null:c(b,y,x,R,null);$d(b,x)}return null}function h(b,y,x,R,k){if(typeof R=="string"&&R!==""||typeof R=="number")return b=b.get(x)||null,a(y,b,""+R,k);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case Pd:return b=b.get(R.key===null?x:R.key)||null,l(y,b,R,k);case Ja:return b=b.get(R.key===null?x:R.key)||null,u(y,b,R,k);case Hi:var I=R._init;return h(b,y,x,I(R._payload),k)}if(Bu(R)||wu(R))return b=b.get(x)||null,c(y,b,R,k,null);$d(y,R)}return null}function g(b,y,x,R){for(var k=null,I=null,C=y,_=y=0,T=null;C!==null&&_<x.length;_++){C.index>_?(T=C,C=null):T=C.sibling;var P=f(b,C,x[_],R);if(P===null){C===null&&(C=T);break}e&&C&&P.alternate===null&&t(b,C),y=i(P,y,_),I===null?k=P:I.sibling=P,I=P,C=T}if(_===x.length)return n(b,C),$t&&Fs(b,_),k;if(C===null){for(;_<x.length;_++)C=d(b,x[_],R),C!==null&&(y=i(C,y,_),I===null?k=C:I.sibling=C,I=C);return $t&&Fs(b,_),k}for(C=r(b,C);_<x.length;_++)T=h(C,b,_,x[_],R),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?_:T.key),y=i(T,y,_),I===null?k=T:I.sibling=T,I=T);return e&&C.forEach(function(M){return t(b,M)}),$t&&Fs(b,_),k}function v(b,y,x,R){var k=wu(x);if(typeof k!="function")throw Error(pe(150));if(x=k.call(x),x==null)throw Error(pe(151));for(var I=k=null,C=y,_=y=0,T=null,P=x.next();C!==null&&!P.done;_++,P=x.next()){C.index>_?(T=C,C=null):T=C.sibling;var M=f(b,C,P.value,R);if(M===null){C===null&&(C=T);break}e&&C&&M.alternate===null&&t(b,C),y=i(M,y,_),I===null?k=M:I.sibling=M,I=M,C=T}if(P.done)return n(b,C),$t&&Fs(b,_),k;if(C===null){for(;!P.done;_++,P=x.next())P=d(b,P.value,R),P!==null&&(y=i(P,y,_),I===null?k=P:I.sibling=P,I=P);return $t&&Fs(b,_),k}for(C=r(b,C);!P.done;_++,P=x.next())P=h(C,b,_,P.value,R),P!==null&&(e&&P.alternate!==null&&C.delete(P.key===null?_:P.key),y=i(P,y,_),I===null?k=P:I.sibling=P,I=P);return e&&C.forEach(function(O){return t(b,O)}),$t&&Fs(b,_),k}function w(b,y,x,R){if(typeof x=="object"&&x!==null&&x.type===Qa&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Pd:e:{for(var k=x.key,I=y;I!==null;){if(I.key===k){if(k=x.type,k===Qa){if(I.tag===7){n(b,I.sibling),y=o(I,x.props.children),y.return=b,b=y;break e}}else if(I.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Hi&&x1(k)===I.type){n(b,I.sibling),y=o(I,x.props),y.ref=Ru(b,I,x),y.return=b,b=y;break e}n(b,I);break}else t(b,I);I=I.sibling}x.type===Qa?(y=ea(x.props.children,b.mode,R,x.key),y.return=b,b=y):(R=Rf(x.type,x.key,x.props,null,b.mode,R),R.ref=Ru(b,y,x),R.return=b,b=R)}return s(b);case Ja:e:{for(I=x.key;y!==null;){if(y.key===I)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(b,y.sibling),y=o(y,x.children||[]),y.return=b,b=y;break e}else{n(b,y);break}else t(b,y);y=y.sibling}y=Zm(x,b.mode,R),y.return=b,b=y}return s(b);case Hi:return I=x._init,w(b,y,I(x._payload),R)}if(Bu(x))return g(b,y,x,R);if(wu(x))return v(b,y,x,R);$d(b,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(b,y.sibling),y=o(y,x),y.return=b,b=y):(n(b,y),y=Qm(x,b.mode,R),y.return=b,b=y),s(b)):n(b,y)}return w}var Tl=AE(!0),jE=AE(!1),Xf=Cs(null),Jf=null,sl=null,h0=null;function m0(){h0=sl=Jf=null}function g0(e){var t=Xf.current;Nt(Xf),e._currentValue=t}function Dv(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 gl(e,t){Jf=e,h0=sl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tr=!0),e.firstContext=null)}function Lr(e){var t=e._currentValue;if(h0!==e)if(e={context:e,memoizedValue:t,next:null},sl===null){if(Jf===null)throw Error(pe(308));sl=e,Jf.dependencies={lanes:0,firstContext:e}}else sl=sl.next=e;return t}var qs=null;function v0(e){qs===null?qs=[e]:qs.push(e)}function OE(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,v0(t)):(n.next=o.next,o.next=n),t.interleaved=n,di(e,r)}function di(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 Ui=!1;function y0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function NE(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 ni(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ss(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pt&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,di(e,n)}return o=r.interleaved,o===null?(t.next=t,v0(r)):(t.next=o.next,o.next=t),r.interleaved=t,di(e,n)}function bf(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,r0(e,n)}}function S1(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Qf(e,t,n,r){var o=e.updateQueue;Ui=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var f=a.lane,h=a.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,v=a;switch(f=t,h=n,v.tag){case 1:if(g=v.payload,typeof g=="function"){d=g.call(h,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,f=typeof g=="function"?g.call(h,d,f):g,f==null)break e;d=Gt({},d,f);break e;case 2:Ui=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else h={eventTime:h,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);la|=s,e.lanes=s,e.memoizedState=d}}function C1(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(pe(191,o));o.call(r)}}}var Wc={},ko=Cs(Wc),Ec=Cs(Wc),Tc=Cs(Wc);function Ys(e){if(e===Wc)throw Error(pe(174));return e}function b0(e,t){switch(kt(Tc,t),kt(Ec,e),kt(ko,Wc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fv(t,e)}Nt(ko),kt(ko,t)}function Pl(){Nt(ko),Nt(Ec),Nt(Tc)}function LE(e){Ys(Tc.current);var t=Ys(ko.current),n=fv(t,e.type);t!==n&&(kt(Ec,e),kt(ko,n))}function w0(e){Ec.current===e&&(Nt(ko),Nt(Ec))}var Ht=Cs(0);function Zf(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 Wm=[];function x0(){for(var e=0;e<Wm.length;e++)Wm[e]._workInProgressVersionPrimary=null;Wm.length=0}var wf=wi.ReactCurrentDispatcher,Km=wi.ReactCurrentBatchConfig,aa=0,Ut=null,on=null,dn=null,ep=!1,rc=!1,Pc=0,xj=0;function An(){throw Error(pe(321))}function S0(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!uo(e[n],t[n]))return!1;return!0}function C0(e,t,n,r,o,i){if(aa=i,Ut=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wf.current=e===null||e.memoizedState===null?Rj:Ej,e=n(r,o),rc){i=0;do{if(rc=!1,Pc=0,25<=i)throw Error(pe(301));i+=1,dn=on=null,t.updateQueue=null,wf.current=Tj,e=n(r,o)}while(rc)}if(wf.current=tp,t=on!==null&&on.next!==null,aa=0,dn=on=Ut=null,ep=!1,t)throw Error(pe(300));return e}function _0(){var e=Pc!==0;return Pc=0,e}function So(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dn===null?Ut.memoizedState=dn=e:dn=dn.next=e,dn}function Fr(){if(on===null){var e=Ut.alternate;e=e!==null?e.memoizedState:null}else e=on.next;var t=dn===null?Ut.memoizedState:dn.next;if(t!==null)dn=t,on=e;else{if(e===null)throw Error(pe(310));on=e,e={memoizedState:on.memoizedState,baseState:on.baseState,baseQueue:on.baseQueue,queue:on.queue,next:null},dn===null?Ut.memoizedState=dn=e:dn=dn.next=e}return dn}function kc(e,t){return typeof t=="function"?t(e):t}function qm(e){var t=Fr(),n=t.queue;if(n===null)throw Error(pe(311));n.lastRenderedReducer=e;var r=on,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var a=s=null,l=null,u=i;do{var c=u.lane;if((aa&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,Ut.lanes|=c,la|=c}u=u.next}while(u!==null&&u!==i);l===null?s=r:l.next=a,uo(r,t.memoizedState)||(tr=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Ut.lanes|=i,la|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ym(e){var t=Fr(),n=t.queue;if(n===null)throw Error(pe(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var s=o=o.next;do i=e(i,s.action),s=s.next;while(s!==o);uo(i,t.memoizedState)||(tr=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function FE(){}function $E(e,t){var n=Ut,r=Fr(),o=t(),i=!uo(r.memoizedState,o);if(i&&(r.memoizedState=o,tr=!0),r=r.queue,R0(BE.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||dn!==null&&dn.memoizedState.tag&1){if(n.flags|=2048,Ic(9,VE.bind(null,n,r,o,t),void 0,null),pn===null)throw Error(pe(349));aa&30||zE(n,t,o)}return o}function zE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ut.updateQueue,t===null?(t={lastEffect:null,stores:null},Ut.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function VE(e,t,n,r){t.value=n,t.getSnapshot=r,HE(t)&&UE(e)}function BE(e,t,n){return n(function(){HE(t)&&UE(e)})}function HE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!uo(e,n)}catch{return!0}}function UE(e){var t=di(e,1);t!==null&&so(t,e,1,-1)}function _1(e){var t=So();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:kc,lastRenderedState:e},t.queue=e,e=e.dispatch=_j.bind(null,Ut,e),[t.memoizedState,e]}function Ic(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ut.updateQueue,t===null?(t={lastEffect:null,stores:null},Ut.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 GE(){return Fr().memoizedState}function xf(e,t,n,r){var o=So();Ut.flags|=e,o.memoizedState=Ic(1|t,n,void 0,r===void 0?null:r)}function Xp(e,t,n,r){var o=Fr();r=r===void 0?null:r;var i=void 0;if(on!==null){var s=on.memoizedState;if(i=s.destroy,r!==null&&S0(r,s.deps)){o.memoizedState=Ic(t,n,i,r);return}}Ut.flags|=e,o.memoizedState=Ic(1|t,n,i,r)}function R1(e,t){return xf(8390656,8,e,t)}function R0(e,t){return Xp(2048,8,e,t)}function WE(e,t){return Xp(4,2,e,t)}function KE(e,t){return Xp(4,4,e,t)}function qE(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 YE(e,t,n){return n=n!=null?n.concat([e]):null,Xp(4,4,qE.bind(null,t,e),n)}function E0(){}function XE(e,t){var n=Fr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&S0(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function JE(e,t){var n=Fr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&S0(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function QE(e,t,n){return aa&21?(uo(n,t)||(n=rE(),Ut.lanes|=n,la|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,tr=!0),e.memoizedState=n)}function Sj(e,t){var n=Rt;Rt=n!==0&&4>n?n:4,e(!0);var r=Km.transition;Km.transition={};try{e(!1),t()}finally{Rt=n,Km.transition=r}}function ZE(){return Fr().memoizedState}function Cj(e,t,n){var r=ls(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},eT(e))tT(t,n);else if(n=OE(e,t,n,r),n!==null){var o=Wn();so(n,e,r,o),nT(n,t,r)}}function _j(e,t,n){var r=ls(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(eT(e))tT(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,uo(a,s)){var l=t.interleaved;l===null?(o.next=o,v0(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=OE(e,t,o,r),n!==null&&(o=Wn(),so(n,e,r,o),nT(n,t,r))}}function eT(e){var t=e.alternate;return e===Ut||t!==null&&t===Ut}function tT(e,t){rc=ep=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function nT(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,r0(e,n)}}var tp={readContext:Lr,useCallback:An,useContext:An,useEffect:An,useImperativeHandle:An,useInsertionEffect:An,useLayoutEffect:An,useMemo:An,useReducer:An,useRef:An,useState:An,useDebugValue:An,useDeferredValue:An,useTransition:An,useMutableSource:An,useSyncExternalStore:An,useId:An,unstable_isNewReconciler:!1},Rj={readContext:Lr,useCallback:function(e,t){return So().memoizedState=[e,t===void 0?null:t],e},useContext:Lr,useEffect:R1,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xf(4194308,4,qE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xf(4194308,4,e,t)},useInsertionEffect:function(e,t){return xf(4,2,e,t)},useMemo:function(e,t){var n=So();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=So();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=Cj.bind(null,Ut,e),[r.memoizedState,e]},useRef:function(e){var t=So();return e={current:e},t.memoizedState=e},useState:_1,useDebugValue:E0,useDeferredValue:function(e){return So().memoizedState=e},useTransition:function(){var e=_1(!1),t=e[0];return e=Sj.bind(null,e[1]),So().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ut,o=So();if($t){if(n===void 0)throw Error(pe(407));n=n()}else{if(n=t(),pn===null)throw Error(pe(349));aa&30||zE(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,R1(BE.bind(null,r,i,e),[e]),r.flags|=2048,Ic(9,VE.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=So(),t=pn.identifierPrefix;if($t){var n=Xo,r=Yo;n=(r&~(1<<32-io(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=xj++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ej={readContext:Lr,useCallback:XE,useContext:Lr,useEffect:R0,useImperativeHandle:YE,useInsertionEffect:WE,useLayoutEffect:KE,useMemo:JE,useReducer:qm,useRef:GE,useState:function(){return qm(kc)},useDebugValue:E0,useDeferredValue:function(e){var t=Fr();return QE(t,on.memoizedState,e)},useTransition:function(){var e=qm(kc)[0],t=Fr().memoizedState;return[e,t]},useMutableSource:FE,useSyncExternalStore:$E,useId:ZE,unstable_isNewReconciler:!1},Tj={readContext:Lr,useCallback:XE,useContext:Lr,useEffect:R0,useImperativeHandle:YE,useInsertionEffect:WE,useLayoutEffect:KE,useMemo:JE,useReducer:Ym,useRef:GE,useState:function(){return Ym(kc)},useDebugValue:E0,useDeferredValue:function(e){var t=Fr();return on===null?t.memoizedState=e:QE(t,on.memoizedState,e)},useTransition:function(){var e=Ym(kc)[0],t=Fr().memoizedState;return[e,t]},useMutableSource:FE,useSyncExternalStore:$E,useId:ZE,unstable_isNewReconciler:!1};function Qr(e,t){if(e&&e.defaultProps){t=Gt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Av(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Gt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Jp={isMounted:function(e){return(e=e._reactInternals)?ba(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Wn(),o=ls(e),i=ni(r,o);i.payload=t,n!=null&&(i.callback=n),t=ss(e,i,o),t!==null&&(so(t,e,o,r),bf(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Wn(),o=ls(e),i=ni(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ss(e,i,o),t!==null&&(so(t,e,o,r),bf(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Wn(),r=ls(e),o=ni(n,r);o.tag=2,t!=null&&(o.callback=t),t=ss(e,o,r),t!==null&&(so(t,e,r,n),bf(t,e,r))}};function E1(e,t,n,r,o,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Sc(n,r)||!Sc(o,i):!0}function rT(e,t,n){var r=!1,o=gs,i=t.contextType;return typeof i=="object"&&i!==null?i=Lr(i):(o=ir(t)?ia:$n.current,r=t.contextTypes,i=(r=r!=null)?Rl(e,o):gs),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Jp,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function T1(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&&Jp.enqueueReplaceState(t,t.state,null)}function jv(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},y0(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Lr(i):(i=ir(t)?ia:$n.current,o.context=Rl(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Av(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Jp.enqueueReplaceState(o,o.state,null),Qf(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function kl(e,t){try{var n="",r=t;do n+=tA(r),r=r.return;while(r);var o=n}catch(i){o=`
39Error generating stack: `+i.message+`
40`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Xm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ov(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Pj=typeof WeakMap=="function"?WeakMap:Map;function oT(e,t,n){n=ni(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rp||(rp=!0,Gv=r),Ov(e,t)},n}function iT(e,t,n){n=ni(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ov(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ov(e,t),typeof r!="function"&&(as===null?as=new Set([this]):as.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}
vendor: 8,873 bytes, line 40
40function P1(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pj;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Bj.bind(null,e,t,n),t.then(e,e))}function k1(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 I1(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=ni(-1,1),t.tag=2,ss(n,t,1))),n.lanes|=1),e)}var kj=wi.ReactCurrentOwner,tr=!1;function Hn(e,t,n,r){t.child=e===null?jE(t,null,n,r):Tl(t,e.child,n,r)}function M1(e,t,n,r,o){n=n.render;var i=t.ref;return gl(t,o),r=C0(e,t,n,r,i,o),n=_0(),e!==null&&!tr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,fi(e,t,o)):($t&&n&&d0(t),t.flags|=1,Hn(e,t,r,o),t.child)}function D1(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!j0(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,sT(e,t,i,r,o)):(e=Rf(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Sc,n(s,r)&&e.ref===t.ref)return fi(e,t,o)}return t.flags|=1,e=us(i,r),e.ref=t.ref,e.return=t,t.child=e}function sT(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Sc(i,r)&&e.ref===t.ref)if(tr=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(tr=!0);else return t.lanes=e.lanes,fi(e,t,o)}return Nv(e,t,n,r,o)}function aT(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},kt(ll,hr),hr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,kt(ll,hr),hr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,kt(ll,hr),hr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,kt(ll,hr),hr|=r;return Hn(e,t,o,n),t.child}function lT(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Nv(e,t,n,r,o){var i=ir(n)?ia:$n.current;return i=Rl(t,i),gl(t,o),n=C0(e,t,n,r,i,o),r=_0(),e!==null&&!tr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,fi(e,t,o)):($t&&r&&d0(t),t.flags|=1,Hn(e,t,n,o),t.child)}function A1(e,t,n,r,o){if(ir(n)){var i=!0;Kf(t)}else i=!1;if(gl(t,o),t.stateNode===null)Sf(e,t),rT(t,n,r),jv(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Lr(u):(u=ir(n)?ia:$n.current,u=Rl(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&T1(t,s,r,u),Ui=!1;var f=t.memoizedState;s.state=f,Qf(t,r,s,o),l=t.memoizedState,a!==r||f!==l||or.current||Ui?(typeof c=="function"&&(Av(t,n,c,r),l=t.memoizedState),(a=Ui||E1(t,n,a,r,f,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,NE(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Qr(t.type,a),s.props=u,d=t.pendingProps,f=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Lr(l):(l=ir(n)?ia:$n.current,l=Rl(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||f!==l)&&T1(t,s,r,l),Ui=!1,f=t.memoizedState,s.state=f,Qf(t,r,s,o);var g=t.memoizedState;a!==d||f!==g||or.current||Ui?(typeof h=="function"&&(Av(t,n,h,r),g=t.memoizedState),(u=Ui||E1(t,n,u,r,f,g,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Lv(e,t,n,r,i,o)}function Lv(e,t,n,r,o,i){lT(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&y1(t,n,!1),fi(e,t,i);r=t.stateNode,kj.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Tl(t,e.child,null,i),t.child=Tl(t,null,a,i)):Hn(e,t,a,i),t.memoizedState=r.state,o&&y1(t,n,!0),t.child}function uT(e){var t=e.stateNode;t.pendingContext?v1(e,t.pendingContext,t.pendingContext!==t.context):t.context&&v1(e,t.context,!1),b0(e,t.containerInfo)}function j1(e,t,n,r,o){return El(),p0(o),t.flags|=256,Hn(e,t,n,r),t.child}var Fv={dehydrated:null,treeContext:null,retryLane:0};function $v(e){return{baseLanes:e,cachePool:null,transitions:null}}function cT(e,t,n){var r=t.pendingProps,o=Ht.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),kt(Ht,o&1),e===null)return Mv(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):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=eh(s,r,0,null),e=ea(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=$v(n),t.memoizedState=Fv,e):T0(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Ij(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=us(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=us(a,i):(i=ea(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?$v(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Fv,r}return i=e.child,e=i.sibling,r=us(i,{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 T0(e,t){return t=eh({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function zd(e,t,n,r){return r!==null&&p0(r),Tl(t,e.child,null,n),e=T0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ij(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Xm(Error(pe(422))),zd(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=eh({mode:"visible",children:r.children},o,0,null),i=ea(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Tl(t,e.child,null,s),t.child.memoizedState=$v(s),t.memoizedState=Fv,i);if(!(t.mode&1))return zd(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(pe(419)),r=Xm(i,r,void 0),zd(e,t,s,r)}if(a=(s&e.childLanes)!==0,tr||a){if(r=pn,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,di(e,o),so(r,e,o,-1))}return A0(),r=Xm(Error(pe(421))),zd(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Hj.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,gr=is(o.nextSibling),vr=t,$t=!0,to=null,e!==null&&(Dr[Ar++]=Yo,Dr[Ar++]=Xo,Dr[Ar++]=sa,Yo=e.id,Xo=e.overflow,sa=t),t=T0(t,r.children),t.flags|=4096,t)}
vendor: 5,149 bytes, line 40
40function O1(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Dv(e.return,t,n)}function Jm(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function dT(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Hn(e,t,r.children,n),r=Ht.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&&O1(e,n,t);else if(e.tag===19)O1(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(kt(Ht,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Zf(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Jm(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Zf(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Jm(t,!0,n,null,i);break;case"together":Jm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Sf(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function fi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),la|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(pe(153));if(t.child!==null){for(e=t.child,n=us(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=us(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Mj(e,t,n){switch(t.tag){case 3:uT(t),El();break;case 5:LE(t);break;case 1:ir(t.type)&&Kf(t);break;case 4:b0(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;kt(Xf,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(kt(Ht,Ht.current&1),t.flags|=128,null):n&t.child.childLanes?cT(e,t,n):(kt(Ht,Ht.current&1),e=fi(e,t,n),e!==null?e.sibling:null);kt(Ht,Ht.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return dT(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),kt(Ht,Ht.current),r)break;return null;case 22:case 23:return t.lanes=0,aT(e,t,n)}return fi(e,t,n)}var fT,zv,pT,hT;fT=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}};zv=function(){};pT=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ys(ko.current);var i=null;switch(n){case"input":o=lv(e,o),r=lv(e,r),i=[];break;case"select":o=Gt({},o,{value:void 0}),r=Gt({},r,{value:void 0}),i=[];break;case"textarea":o=dv(e,o),r=dv(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gf)}pv(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(mc.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(mc.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&At("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};hT=function(e,t,n,r){n!==r&&(t.flags|=4)};function Eu(e,t){if(!$t)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 jn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Dj(e,t,n){var r=t.pendingProps;switch(f0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jn(t),null;case 1:return ir(t.type)&&Wf(),jn(t),null;
vendor: 30,127 bytes, line 40
40case 3:return r=t.stateNode,Pl(),Nt(or),Nt($n),x0(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Fd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,to!==null&&(qv(to),to=null))),zv(e,t),jn(t),null;case 5:w0(t);var o=Ys(Tc.current);if(n=t.type,e!==null&&t.stateNode!=null)pT(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(pe(166));return jn(t),null}if(e=Ys(ko.current),Fd(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[_o]=t,r[Rc]=i,e=(t.mode&1)!==0,n){case"dialog":At("cancel",r),At("close",r);break;case"iframe":case"object":case"embed":At("load",r);break;case"video":case"audio":for(o=0;o<Uu.length;o++)At(Uu[o],r);break;case"source":At("error",r);break;case"img":case"image":case"link":At("error",r),At("load",r);break;case"details":At("toggle",r);break;case"input":Ux(r,i),At("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},At("invalid",r);break;case"textarea":Wx(r,i),At("invalid",r)}pv(n,i),o=null;for(var s in i)if(i.hasOwnProperty(s)){var a=i[s];s==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Ld(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Ld(r.textContent,a,e),o=["children",""+a]):mc.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&At("scroll",r)}switch(n){case"input":kd(r),Gx(r,i,!0);break;case"textarea":kd(r),Kx(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Gf)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=BR(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[_o]=t,e[Rc]=r,fT(e,t,!1,!1),t.stateNode=e;e:{switch(s=hv(n,r),n){case"dialog":At("cancel",e),At("close",e),o=r;break;case"iframe":case"object":case"embed":At("load",e),o=r;break;case"video":case"audio":for(o=0;o<Uu.length;o++)At(Uu[o],e);o=r;break;case"source":At("error",e),o=r;break;case"img":case"image":case"link":At("error",e),At("load",e),o=r;break;case"details":At("toggle",e),o=r;break;case"input":Ux(e,r),o=lv(e,r),At("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Gt({},r,{value:void 0}),At("invalid",e);break;case"textarea":Wx(e,r),o=dv(e,r),At("invalid",e);break;default:o=r}pv(n,o),a=o;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?GR(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&HR(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&gc(e,l):typeof l=="number"&&gc(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(mc.hasOwnProperty(i)?l!=null&&i==="onScroll"&&At("scroll",e):l!=null&&Jy(e,i,l,s))}switch(n){case"input":kd(e),Gx(e,r,!1);break;case"textarea":kd(e),Kx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ms(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?fl(e,!!r.multiple,i,!1):r.defaultValue!=null&&fl(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Gf)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return jn(t),null;case 6:if(e&&t.stateNode!=null)hT(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(pe(166));if(n=Ys(Tc.current),Ys(ko.current),Fd(t)){if(r=t.stateNode,n=t.memoizedProps,r[_o]=t,(i=r.nodeValue!==n)&&(e=vr,e!==null))switch(e.tag){case 3:Ld(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ld(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_o]=t,t.stateNode=r}return jn(t),null;case 13:if(Nt(Ht),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($t&&gr!==null&&t.mode&1&&!(t.flags&128))DE(),El(),t.flags|=98560,i=!1;else if(i=Fd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(pe(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(pe(317));i[_o]=t}else El(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;jn(t),i=!1}else to!==null&&(qv(to),to=null),i=!0;if(!i)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||Ht.current&1?sn===0&&(sn=3):A0())),t.updateQueue!==null&&(t.flags|=4),jn(t),null);case 4:return Pl(),zv(e,t),e===null&&Cc(t.stateNode.containerInfo),jn(t),null;case 10:return g0(t.type._context),jn(t),null;case 17:return ir(t.type)&&Wf(),jn(t),null;case 19:if(Nt(Ht),i=t.memoizedState,i===null)return jn(t),null;if(r=(t.flags&128)!==0,s=i.rendering,s===null)if(r)Eu(i,!1);else{if(sn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=Zf(e),s!==null){for(t.flags|=128,Eu(i,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,s=i.alternate,s===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,e=s.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return kt(Ht,Ht.current&1|2),t.child}e=e.sibling}i.tail!==null&&Jt()>Il&&(t.flags|=128,r=!0,Eu(i,!1),t.lanes=4194304)}else{if(!r)if(e=Zf(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Eu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!$t)return jn(t),null}else 2*Jt()-i.renderingStartTime>Il&&n!==1073741824&&(t.flags|=128,r=!0,Eu(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Jt(),t.sibling=null,n=Ht.current,kt(Ht,r?n&1|2:n&1),t):(jn(t),null);case 22:case 23:return D0(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?hr&1073741824&&(jn(t),t.subtreeFlags&6&&(t.flags|=8192)):jn(t),null;case 24:return null;case 25:return null}throw Error(pe(156,t.tag))}function Aj(e,t){switch(f0(t),t.tag){case 1:return ir(t.type)&&Wf(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pl(),Nt(or),Nt($n),x0(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return w0(t),null;case 13:if(Nt(Ht),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(pe(340));El()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Nt(Ht),null;case 4:return Pl(),null;case 10:return g0(t.type._context),null;case 22:case 23:return D0(),null;case 24:return null;default:return null}}var Vd=!1,Ln=!1,jj=typeof WeakSet=="function"?WeakSet:Set,Me=null;function al(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Kt(e,t,r)}else n.current=null}function Vv(e,t,n){try{n()}catch(r){Kt(e,t,r)}}var N1=!1;function Oj(e,t){if(_v=Bf,e=bE(),c0(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(a=s),f===i&&++c===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rv={focusedElem:e,selectionRange:n},Bf=!1,Me=t;Me!==null;)if(t=Me,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Me=e;else for(;Me!==null;){t=Me;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,w=g.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?v:Qr(t.type,v),w);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(pe(163))}}catch(R){Kt(t,t.return,R)}if(e=t.sibling,e!==null){e.return=t.return,Me=e;break}Me=t.return}return g=N1,N1=!1,g}function oc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Vv(t,n,i)}o=o.next}while(o!==r)}}function Qp(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 Bv(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 mT(e){var t=e.alternate;t!==null&&(e.alternate=null,mT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_o],delete t[Rc],delete t[Pv],delete t[vj],delete t[yj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function gT(e){return e.tag===5||e.tag===3||e.tag===4}function L1(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gT(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hv(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=Gf));else if(r!==4&&(e=e.child,e!==null))for(Hv(e,t,n),e=e.sibling;e!==null;)Hv(e,t,n),e=e.sibling}function Uv(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(Uv(e,t,n),e=e.sibling;e!==null;)Uv(e,t,n),e=e.sibling}var Cn=null,Zr=!1;function Li(e,t,n){for(n=n.child;n!==null;)vT(e,t,n),n=n.sibling}function vT(e,t,n){if(Po&&typeof Po.onCommitFiberUnmount=="function")try{Po.onCommitFiberUnmount(Up,n)}catch{}switch(n.tag){case 5:Ln||al(n,t);case 6:var r=Cn,o=Zr;Cn=null,Li(e,t,n),Cn=r,Zr=o,Cn!==null&&(Zr?(e=Cn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Cn.removeChild(n.stateNode));break;case 18:Cn!==null&&(Zr?(e=Cn,n=n.stateNode,e.nodeType===8?Um(e.parentNode,n):e.nodeType===1&&Um(e,n),wc(e)):Um(Cn,n.stateNode));break;case 4:r=Cn,o=Zr,Cn=n.stateNode.containerInfo,Zr=!0,Li(e,t,n),Cn=r,Zr=o;break;case 0:case 11:case 14:case 15:if(!Ln&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Vv(n,t,s),o=o.next}while(o!==r)}Li(e,t,n);break;case 1:if(!Ln&&(al(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Kt(n,t,a)}Li(e,t,n);break;case 21:Li(e,t,n);break;case 22:n.mode&1?(Ln=(r=Ln)||n.memoizedState!==null,Li(e,t,n),Ln=r):Li(e,t,n);break;default:Li(e,t,n)}}function F1(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jj),t.forEach(function(r){var o=Uj.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Xr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Cn=a.stateNode,Zr=!1;break e;case 3:Cn=a.stateNode.containerInfo,Zr=!0;break e;case 4:Cn=a.stateNode.containerInfo,Zr=!0;break e}a=a.return}if(Cn===null)throw Error(pe(160));vT(i,s,o),Cn=null,Zr=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Kt(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)yT(t,e),t=t.sibling}function yT(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Xr(t,e),bo(e),r&4){try{oc(3,e,e.return),Qp(3,e)}catch(v){Kt(e,e.return,v)}try{oc(5,e,e.return)}catch(v){Kt(e,e.return,v)}}break;case 1:Xr(t,e),bo(e),r&512&&n!==null&&al(n,n.return);break;case 5:if(Xr(t,e),bo(e),r&512&&n!==null&&al(n,n.return),e.flags&32){var o=e.stateNode;try{gc(o,"")}catch(v){Kt(e,e.return,v)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,s=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&zR(o,i),hv(a,s);var u=hv(a,i);for(s=0;s<l.length;s+=2){var c=l[s],d=l[s+1];c==="style"?GR(o,d):c==="dangerouslySetInnerHTML"?HR(o,d):c==="children"?gc(o,d):Jy(o,c,d,u)}switch(a){case"input":uv(o,i);break;case"textarea":VR(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?fl(o,!!i.multiple,h,!1):f!==!!i.multiple&&(i.defaultValue!=null?fl(o,!!i.multiple,i.defaultValue,!0):fl(o,!!i.multiple,i.multiple?[]:"",!1))}o[Rc]=i}catch(v){Kt(e,e.return,v)}}break;case 6:if(Xr(t,e),bo(e),r&4){if(e.stateNode===null)throw Error(pe(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(v){Kt(e,e.return,v)}}break;case 3:if(Xr(t,e),bo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{wc(t.containerInfo)}catch(v){Kt(e,e.return,v)}break;case 4:Xr(t,e),bo(e);break;case 13:Xr(t,e),bo(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(I0=Jt())),r&4&&F1(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ln=(u=Ln)||c,Xr(t,e),Ln=u):Xr(t,e),bo(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(Me=e,c=e.child;c!==null;){for(d=Me=c;Me!==null;){switch(f=Me,h=f.child,f.tag){case 0:case 11:case 14:case 15:oc(4,f,f.return);break;case 1:al(f,f.return);var g=f.stateNode;if(typeof g.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){Kt(r,n,v)}}break;case 5:al(f,f.return);break;case 22:if(f.memoizedState!==null){z1(d);continue}}h!==null?(h.return=f,Me=h):z1(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=UR("display",s))}catch(v){Kt(e,e.return,v)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(v){Kt(e,e.return,v)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Xr(t,e),bo(e),r&4&&F1(e);break;case 21:break;default:Xr(t,e),bo(e)}}function bo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(gT(n)){var r=n;break e}n=n.return}throw Error(pe(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(gc(o,""),r.flags&=-33);var i=L1(e);Uv(e,i,o);break;case 3:case 4:var s=r.stateNode.containerInfo,a=L1(e);Hv(e,a,s);break;default:throw Error(pe(161))}}catch(l){Kt(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nj(e,t,n){Me=e,bT(e)}function bT(e,t,n){for(var r=(e.mode&1)!==0;Me!==null;){var o=Me,i=o.child;if(o.tag===22&&r){var s=o.memoizedState!==null||Vd;if(!s){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Ln;a=Vd;var u=Ln;if(Vd=s,(Ln=l)&&!u)for(Me=o;Me!==null;)s=Me,l=s.child,s.tag===22&&s.memoizedState!==null?V1(o):l!==null?(l.return=s,Me=l):V1(o);for(;i!==null;)Me=i,bT(i),i=i.sibling;Me=o,Vd=a,Ln=u}$1(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Me=i):$1(e)}}function $1(e){for(;Me!==null;){var t=Me;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ln||Qp(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ln)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Qr(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&C1(t,i,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}C1(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&wc(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(pe(163))}Ln||t.flags&512&&Bv(t)}catch(f){Kt(t,t.return,f)}}if(t===e){Me=null;break}if(n=t.sibling,n!==null){n.return=t.return,Me=n;break}Me=t.return}}function z1(e){for(;Me!==null;){var t=Me;if(t===e){Me=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Me=n;break}Me=t.return}}function V1(e){for(;Me!==null;){var t=Me;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Qp(4,t)}catch(l){Kt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Kt(t,o,l)}}var i=t.return;try{Bv(t)}catch(l){Kt(t,i,l)}break;case 5:var s=t.return;try{Bv(t)}catch(l){Kt(t,s,l)}}}catch(l){Kt(t,t.return,l)}if(t===e){Me=null;break}var a=t.sibling;if(a!==null){a.return=t.return,Me=a;break}Me=t.return}}var Lj=Math.ceil,np=wi.ReactCurrentDispatcher,P0=wi.ReactCurrentOwner,Or=wi.ReactCurrentBatchConfig,pt=0,pn=null,tn=null,En=0,hr=0,ll=Cs(0),sn=0,Mc=null,la=0,Zp=0,k0=0,ic=null,Qn=null,I0=0,Il=1/0,Wo=null,rp=!1,Gv=null,as=null,Bd=!1,Zi=null,op=0,sc=0,Wv=null,Cf=-1,_f=0;function Wn(){return pt&6?Jt():Cf!==-1?Cf:Cf=Jt()}function ls(e){return e.mode&1?pt&2&&En!==0?En&-En:wj.transition!==null?(_f===0&&(_f=rE()),_f):(e=Rt,e!==0||(e=window.event,e=e===void 0?16:cE(e.type)),e):1}function so(e,t,n,r){if(50<sc)throw sc=0,Wv=null,Error(pe(185));Hc(e,n,r),(!(pt&2)||e!==pn)&&(e===pn&&(!(pt&2)&&(Zp|=n),sn===4&&Ki(e,En)),sr(e,r),n===1&&pt===0&&!(t.mode&1)&&(Il=Jt()+500,Yp&&_s()))}function sr(e,t){var n=e.callbackNode;wA(e,t);var r=Vf(e,e===pn?En:0);if(r===0)n!==null&&Xx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Xx(n),t===1)e.tag===0?bj(B1.bind(null,e)):kE(B1.bind(null,e)),mj(function(){!(pt&6)&&_s()}),n=null;else{switch(oE(r)){case 1:n=n0;break;case 4:n=tE;break;case 16:n=zf;break;case 536870912:n=nE;break;default:n=zf}n=TT(n,wT.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function wT(e,t){if(Cf=-1,_f=0,pt&6)throw Error(pe(327));var n=e.callbackNode;if(vl()&&e.callbackNode!==n)return null;var r=Vf(e,e===pn?En:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ip(e,r);else{t=r;var o=pt;pt|=2;var i=ST();(pn!==e||En!==t)&&(Wo=null,Il=Jt()+500,Zs(e,t));do try{zj();break}catch(a){xT(e,a)}while(!0);m0(),np.current=i,pt=o,tn!==null?t=0:(pn=null,En=0,t=sn)}if(t!==0){if(t===2&&(o=bv(e),o!==0&&(r=o,t=Kv(e,o))),t===1)throw n=Mc,Zs(e,0),Ki(e,r),sr(e,Jt()),n;if(t===6)Ki(e,r);else{if(o=e.current.alternate,!(r&30)&&!Fj(o)&&(t=ip(e,r),t===2&&(i=bv(e),i!==0&&(r=i,t=Kv(e,i))),t===1))throw n=Mc,Zs(e,0),Ki(e,r),sr(e,Jt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(pe(345));case 2:$s(e,Qn,Wo);break;case 3:if(Ki(e,r),(r&130023424)===r&&(t=I0+500-Jt(),10<t)){if(Vf(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Wn(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Tv($s.bind(null,e,Qn,Wo),t);break}$s(e,Qn,Wo);break;case 4:if(Ki(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-io(r);i=1<<s,s=t[s],s>o&&(o=s),r&=~i}if(r=o,r=Jt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Lj(r/1960))-r,10<r){e.timeoutHandle=Tv($s.bind(null,e,Qn,Wo),r);break}$s(e,Qn,Wo);break;case 5:$s(e,Qn,Wo);break;default:throw Error(pe(329))}}}return sr(e,Jt()),e.callbackNode===n?wT.bind(null,e):null}function Kv(e,t){var n=ic;return e.current.memoizedState.isDehydrated&&(Zs(e,t).flags|=256),e=ip(e,t),e!==2&&(t=Qn,Qn=n,t!==null&&qv(t)),e}function qv(e){Qn===null?Qn=e:Qn.push.apply(Qn,e)}function Fj(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 o=n[r],i=o.getSnapshot;o=o.value;try{if(!uo(i(),o))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 Ki(e,t){for(t&=~k0,t&=~Zp,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-io(t),r=1<<n;e[n]=-1,t&=~r}}function B1(e){if(pt&6)throw Error(pe(327));vl();var t=Vf(e,0);if(!(t&1))return sr(e,Jt()),null;var n=ip(e,t);if(e.tag!==0&&n===2){var r=bv(e);r!==0&&(t=r,n=Kv(e,r))}if(n===1)throw n=Mc,Zs(e,0),Ki(e,t),sr(e,Jt()),n;if(n===6)throw Error(pe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$s(e,Qn,Wo),sr(e,Jt()),null}function M0(e,t){var n=pt;pt|=1;try{return e(t)}finally{pt=n,pt===0&&(Il=Jt()+500,Yp&&_s())}}function ua(e){Zi!==null&&Zi.tag===0&&!(pt&6)&&vl();var t=pt;pt|=1;var n=Or.transition,r=Rt;try{if(Or.transition=null,Rt=1,e)return e()}finally{Rt=r,Or.transition=n,pt=t,!(pt&6)&&_s()}}function D0(){hr=ll.current,Nt(ll)}function Zs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hj(n)),tn!==null)for(n=tn.return;n!==null;){var r=n;switch(f0(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Wf();break;case 3:Pl(),Nt(or),Nt($n),x0();break;case 5:w0(r);break;case 4:Pl();break;case 13:Nt(Ht);break;case 19:Nt(Ht);break;case 10:g0(r.type._context);break;case 22:case 23:D0()}n=n.return}if(pn=e,tn=e=us(e.current,null),En=hr=t,sn=0,Mc=null,k0=Zp=la=0,Qn=ic=null,qs!==null){for(t=0;t<qs.length;t++)if(n=qs[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var s=i.next;i.next=o,r.next=s}n.pending=r}qs=null}return e}function xT(e,t){do{var n=tn;try{if(m0(),wf.current=tp,ep){for(var r=Ut.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ep=!1}if(aa=0,dn=on=Ut=null,rc=!1,Pc=0,P0.current=null,n===null||n.return===null){sn=1,Mc=t,tn=null;break}e:{var i=e,s=n.return,a=n,l=t;if(t=En,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=k1(s);if(h!==null){h.flags&=-257,I1(h,s,a,i,t),h.mode&1&&P1(i,u,t),t=h,l=u;var g=t.updateQueue;if(g===null){var v=new Set;v.add(l),t.updateQueue=v}else g.add(l);break e}else{if(!(t&1)){P1(i,u,t),A0();break e}l=Error(pe(426))}}else if($t&&a.mode&1){var w=k1(s);if(w!==null){!(w.flags&65536)&&(w.flags|=256),I1(w,s,a,i,t),p0(kl(l,a));break e}}i=l=kl(l,a),sn!==4&&(sn=2),ic===null?ic=[i]:ic.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var b=oT(i,l,t);S1(i,b);break e;case 1:a=l;var y=i.type,x=i.stateNode;if(!(i.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(as===null||!as.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t;var R=iT(i,a,t);S1(i,R);break e}}i=i.return}while(i!==null)}_T(n)}catch(k){t=k,tn===n&&n!==null&&(tn=n=n.return);continue}break}while(!0)}function ST(){var e=np.current;return np.current=tp,e===null?tp:e}function A0(){(sn===0||sn===3||sn===2)&&(sn=4),pn===null||!(la&268435455)&&!(Zp&268435455)||Ki(pn,En)}function ip(e,t){var n=pt;pt|=2;var r=ST();(pn!==e||En!==t)&&(Wo=null,Zs(e,t));do try{$j();break}catch(o){xT(e,o)}while(!0);if(m0(),pt=n,np.current=r,tn!==null)throw Error(pe(261));return pn=null,En=0,sn}function $j(){for(;tn!==null;)CT(tn)}function zj(){for(;tn!==null&&!dA();)CT(tn)}function CT(e){var t=ET(e.alternate,e,hr);e.memoizedProps=e.pendingProps,t===null?_T(e):tn=t,P0.current=null}function _T(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Aj(n,t),n!==null){n.flags&=32767,tn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{sn=6,tn=null;return}}else if(n=Dj(n,t,hr),n!==null){tn=n;return}if(t=t.sibling,t!==null){tn=t;return}tn=t=e}while(t!==null);sn===0&&(sn=5)}function $s(e,t,n){var r=Rt,o=Or.transition;try{Or.transition=null,Rt=1,Vj(e,t,n,r)}finally{Or.transition=o,Rt=r}return null}function Vj(e,t,n,r){do vl();while(Zi!==null);if(pt&6)throw Error(pe(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(pe(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(xA(e,i),e===pn&&(tn=pn=null,En=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Bd||(Bd=!0,TT(zf,function(){return vl(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Or.transition,Or.transition=null;var s=Rt;Rt=1;var a=pt;pt|=4,P0.current=null,Oj(e,n),yT(n,e),aj(Rv),Bf=!!_v,Rv=_v=null,e.current=n,Nj(n),fA(),pt=a,Rt=s,Or.transition=i}else e.current=n;if(Bd&&(Bd=!1,Zi=e,op=o),i=e.pendingLanes,i===0&&(as=null),mA(n.stateNode),sr(e,Jt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(rp)throw rp=!1,e=Gv,Gv=null,e;return op&1&&e.tag!==0&&vl(),i=e.pendingLanes,i&1?e===Wv?sc++:(sc=0,Wv=e):sc=0,_s(),null}function vl(){if(Zi!==null){var e=oE(op),t=Or.transition,n=Rt;try{if(Or.transition=null,Rt=16>e?16:e,Zi===null)var r=!1;else{if(e=Zi,Zi=null,op=0,pt&6)throw Error(pe(331));var o=pt;for(pt|=4,Me=e.current;Me!==null;){var i=Me,s=i.child;if(Me.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(Me=u;Me!==null;){var c=Me;switch(c.tag){case 0:case 11:case 15:oc(8,c,i)}var d=c.child;if(d!==null)d.return=c,Me=d;else for(;Me!==null;){c=Me;var f=c.sibling,h=c.return;if(mT(c),c===u){Me=null;break}if(f!==null){f.return=h,Me=f;break}Me=h}}}var g=i.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var w=v.sibling;v.sibling=null,v=w}while(v!==null)}}Me=i}}if(i.subtreeFlags&2064&&s!==null)s.return=i,Me=s;else e:for(;Me!==null;){if(i=Me,i.flags&2048)switch(i.tag){case 0:case 11:case 15:oc(9,i,i.return)}var b=i.sibling;if(b!==null){b.return=i.return,Me=b;break e}Me=i.return}}var y=e.current;for(Me=y;Me!==null;){s=Me;var x=s.child;if(s.subtreeFlags&2064&&x!==null)x.return=s,Me=x;else e:for(s=y;Me!==null;){if(a=Me,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Qp(9,a)}}catch(k){Kt(a,a.return,k)}if(a===s){Me=null;break e}var R=a.sibling;if(R!==null){R.return=a.return,Me=R;break e}Me=a.return}}if(pt=o,_s(),Po&&typeof Po.onPostCommitFiberRoot=="function")try{Po.onPostCommitFiberRoot(Up,e)}catch{}r=!0}return r}finally{Rt=n,Or.transition=t}}return!1}function H1(e,t,n){t=kl(n,t),t=oT(e,t,1),e=ss(e,t,1),t=Wn(),e!==null&&(Hc(e,1,t),sr(e,t))}function Kt(e,t,n){if(e.tag===3)H1(e,e,n);else for(;t!==null;){if(t.tag===3){H1(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(as===null||!as.has(r))){e=kl(n,e),e=iT(t,e,1),t=ss(t,e,1),e=Wn(),t!==null&&(Hc(t,1,e),sr(t,e));break}}t=t.return}}function Bj(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Wn(),e.pingedLanes|=e.suspendedLanes&n,pn===e&&(En&n)===n&&(sn===4||sn===3&&(En&130023424)===En&&500>Jt()-I0?Zs(e,0):k0|=n),sr(e,t)}function RT(e,t){t===0&&(e.mode&1?(t=Dd,Dd<<=1,!(Dd&130023424)&&(Dd=4194304)):t=1);var n=Wn();e=di(e,t),e!==null&&(Hc(e,t,n),sr(e,n))}function Hj(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),RT(e,n)}function Uj(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(pe(314))}r!==null&&r.delete(t),RT(e,n)}var ET;ET=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||or.current)tr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tr=!1,Mj(e,t,n);tr=!!(e.flags&131072)}else tr=!1,$t&&t.flags&1048576&&IE(t,Yf,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Sf(e,t),e=t.pendingProps;var o=Rl(t,$n.current);gl(t,n),o=C0(null,t,r,e,o,n);var i=_0();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ir(r)?(i=!0,Kf(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,y0(t),o.updater=Jp,t.stateNode=o,o._reactInternals=t,jv(t,r,e,n),t=Lv(null,t,r,!0,i,n)):(t.tag=0,$t&&i&&d0(t),Hn(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Sf(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Wj(r),e=Qr(r,e),o){case 0:t=Nv(null,t,r,e,n);break e;case 1:t=A1(null,t,r,e,n);break e;case 11:t=M1(null,t,r,e,n);break e;case 14:t=D1(null,t,r,Qr(r.type,e),n);break e}throw Error(pe(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qr(r,o),Nv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qr(r,o),A1(e,t,r,o,n);case 3:e:{if(uT(t),e===null)throw Error(pe(387));
vendor: 4,050 bytes, line 40
40r=t.pendingProps,i=t.memoizedState,o=i.element,NE(e,t),Qf(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=kl(Error(pe(423)),t),t=j1(e,t,r,n,o);break e}else if(r!==o){o=kl(Error(pe(424)),t),t=j1(e,t,r,n,o);break e}else for(gr=is(t.stateNode.containerInfo.firstChild),vr=t,$t=!0,to=null,n=jE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(El(),r===o){t=fi(e,t,n);break e}Hn(e,t,r,n)}t=t.child}return t;case 5:return LE(t),e===null&&Mv(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Ev(r,o)?s=null:i!==null&&Ev(r,i)&&(t.flags|=32),lT(e,t),Hn(e,t,s,n),t.child;case 6:return e===null&&Mv(t),null;case 13:return cT(e,t,n);case 4:return b0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Tl(t,null,r,n):Hn(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qr(r,o),M1(e,t,r,o,n);case 7:return Hn(e,t,t.pendingProps,n),t.child;case 8:return Hn(e,t,t.pendingProps.children,n),t.child;case 12:return Hn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,kt(Xf,r._currentValue),r._currentValue=s,i!==null)if(uo(i.value,s)){if(i.children===o.children&&!or.current){t=fi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=ni(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Dv(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(pe(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Dv(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Hn(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,gl(t,n),o=Lr(o),r=r(o),t.flags|=1,Hn(e,t,r,n),t.child;case 14:return r=t.type,o=Qr(r,t.pendingProps),o=Qr(r.type,o),D1(e,t,r,o,n);case 15:return sT(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qr(r,o),Sf(e,t),t.tag=1,ir(r)?(e=!0,Kf(t)):e=!1,gl(t,n),rT(t,r,o),jv(t,r,o,n),Lv(null,t,r,!0,e,n);case 19:return dT(e,t,n);case 22:return aT(e,t,n)}throw Error(pe(156,t.tag))};function TT(e,t){return eE(e,t)}function Gj(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 jr(e,t,n,r){return new Gj(e,t,n,r)}function j0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wj(e){if(typeof e=="function")return j0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zy)return 11;if(e===e0)return 14}return 2}function us(e,t){var n=e.alternate;return n===null?(n=jr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rf(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")j0(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Qa:return ea(n.children,o,i,t);case Qy:s=8,o|=8;break;
vendor: 4,597 bytes, line 40
40case ov:return e=jr(12,n,t,o|2),e.elementType=ov,e.lanes=i,e;case iv:return e=jr(13,n,t,o),e.elementType=iv,e.lanes=i,e;case sv:return e=jr(19,n,t,o),e.elementType=sv,e.lanes=i,e;case LR:return eh(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case OR:s=10;break e;case NR:s=9;break e;case Zy:s=11;break e;case e0:s=14;break e;case Hi:s=16,r=null;break e}throw Error(pe(130,e==null?e:typeof e,""))}return t=jr(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function ea(e,t,n,r){return e=jr(7,e,r,t),e.lanes=n,e}function eh(e,t,n,r){return e=jr(22,e,r,t),e.elementType=LR,e.lanes=n,e.stateNode={isHidden:!1},e}function Qm(e,t,n){return e=jr(6,e,null,t),e.lanes=n,e}function Zm(e,t,n){return t=jr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kj(e,t,n,r,o){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=Am(0),this.expirationTimes=Am(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Am(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function O0(e,t,n,r,o,i,s,a,l){return e=new Kj(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=jr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},y0(i),e}function qj(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ja,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function PT(e){if(!e)return gs;e=e._reactInternals;e:{if(ba(e)!==e||e.tag!==1)throw Error(pe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ir(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(pe(171))}if(e.tag===1){var n=e.type;if(ir(n))return PE(e,n,t)}return t}function kT(e,t,n,r,o,i,s,a,l){return e=O0(n,r,!0,e,o,i,s,a,l),e.context=PT(null),n=e.current,r=Wn(),o=ls(n),i=ni(r,o),i.callback=t??null,ss(n,i,o),e.current.lanes=o,Hc(e,o,r),sr(e,r),e}function th(e,t,n,r){var o=t.current,i=Wn(),s=ls(o);return n=PT(n),t.context===null?t.context=n:t.pendingContext=n,t=ni(i,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ss(o,t,s),e!==null&&(so(e,o,s,i),bf(e,o,s)),s}function sp(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 U1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function N0(e,t){U1(e,t),(e=e.alternate)&&U1(e,t)}function Yj(){return null}var IT=typeof reportError=="function"?reportError:function(e){console.error(e)};function L0(e){this._internalRoot=e}nh.prototype.render=L0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(pe(409));th(e,t,null,null)};nh.prototype.unmount=L0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ua(function(){th(null,e,null,null)}),t[ci]=null}};function nh(e){this._internalRoot=e}nh.prototype.unstable_scheduleHydration=function(e){if(e){var t=aE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Wi.length&&t!==0&&t<Wi[n].priority;n++);Wi.splice(n,0,e),n===0&&uE(e)}};function F0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function rh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function G1(){}function Xj(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=sp(s);i.call(u)}}var s=kT(t,r,e,0,null,!1,!1,"",G1);return e._reactRootContainer=s,e[ci]=s.current,Cc(e.nodeType===8?e.parentNode:e),ua(),s}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var u=sp(l);a.call(u)}}var l=O0(e,0,!1,null,null,!1,!1,"",G1);return e._reactRootContainer=l,e[ci]=l.current,Cc(e.nodeType===8?e.parentNode:e),ua(function(){th(t,l,n,r)}),l}function oh(e,t,n,r,o){var i=n._reactRootContainer;if(i){var s=i;if(typeof o=="function"){var a=o;o=function(){var l=sp(s);a.call(l)}}th(t,s,e,o)}else s=Xj(n,t,e,o,r);return sp(s)}iE=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Hu(t.pendingLanes);
vendor: 5,632 bytes, line 40
40n!==0&&(r0(t,n|1),sr(t,Jt()),!(pt&6)&&(Il=Jt()+500,_s()))}break;case 13:ua(function(){var r=di(e,1);if(r!==null){var o=Wn();so(r,e,1,o)}}),N0(e,1)}};o0=function(e){if(e.tag===13){var t=di(e,134217728);if(t!==null){var n=Wn();so(t,e,134217728,n)}N0(e,134217728)}};sE=function(e){if(e.tag===13){var t=ls(e),n=di(e,t);if(n!==null){var r=Wn();so(n,e,t,r)}N0(e,t)}};aE=function(){return Rt};lE=function(e,t){var n=Rt;try{return Rt=e,t()}finally{Rt=n}};gv=function(e,t,n){switch(t){case"input":if(uv(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 o=qp(r);if(!o)throw Error(pe(90));$R(r),uv(r,o)}}}break;case"textarea":VR(e,n);break;case"select":t=n.value,t!=null&&fl(e,!!n.multiple,t,!1)}};qR=M0;YR=ua;var Jj={usingClientEntryPoint:!1,Events:[Gc,nl,qp,WR,KR,M0]},Tu={findFiberByHostInstance:Ks,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Qj={bundleType:Tu.bundleType,version:Tu.version,rendererPackageName:Tu.rendererPackageName,rendererConfig:Tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=QR(e),e===null?null:e.stateNode},findFiberByHostInstance:Tu.findFiberByHostInstance||Yj,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 Hd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hd.isDisabled&&Hd.supportsFiber)try{Up=Hd.inject(Qj),Po=Hd}catch{}}Cr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jj;Cr.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!F0(t))throw Error(pe(200));return qj(e,t,null,n)};Cr.createRoot=function(e,t){if(!F0(e))throw Error(pe(299));var n=!1,r="",o=IT;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=O0(e,1,!1,null,null,n,!1,r,o),e[ci]=t.current,Cc(e.nodeType===8?e.parentNode:e),new L0(t)};Cr.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(pe(188)):(e=Object.keys(e).join(","),Error(pe(268,e)));return e=QR(t),e=e===null?null:e.stateNode,e};Cr.flushSync=function(e){return ua(e)};Cr.hydrate=function(e,t,n){if(!rh(t))throw Error(pe(200));return oh(null,e,t,!0,n)};Cr.hydrateRoot=function(e,t,n){if(!F0(e))throw Error(pe(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",s=IT;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=kT(t,null,e,1,n??null,o,!1,i,s),e[ci]=t.current,Cc(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new nh(t)};Cr.render=function(e,t,n){if(!rh(t))throw Error(pe(200));return oh(null,e,t,!1,n)};Cr.unmountComponentAtNode=function(e){if(!rh(e))throw Error(pe(40));return e._reactRootContainer?(ua(function(){oh(null,null,e,!1,function(){e._reactRootContainer=null,e[ci]=null})}),!0):!1};Cr.unstable_batchedUpdates=M0;Cr.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!rh(n))throw Error(pe(200));if(e==null||e._reactInternals===void 0)throw Error(pe(38));return oh(e,t,n,!1,r)};Cr.version="18.3.1-next-f1338f8080-20240426";function MT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(MT)}catch(e){console.error(e)}}MT(),MR.exports=Cr;var wa=MR.exports;const ul=va(wa),Zj=yR({__proto__:null,default:ul},[wa]);var DT,W1=wa;DT=W1.createRoot,W1.hydrateRoot;var Ro=function(){return Ro=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ro.apply(this,arguments)};function Kc(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function eO(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Ef="right-scroll-bar-position",Tf="width-before-scroll-bar",tO="with-scroll-bars-hidden",nO="--removed-body-scroll-bar-size";function eg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rO(e,t){var n=S.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var oO=typeof window<"u"?S.useLayoutEffect:S.useEffect,K1=new WeakMap;function iO(e,t){var n=rO(null,function(r){return e.forEach(function(o){return eg(o,r)})});return oO(function(){var r=K1.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||eg(a,null)}
vendor: 4,153 bytes, lines 40-55
40),i.forEach(function(a){o.has(a)||eg(a,s)})}K1.set(n,e)},[e]),n}function sO(e){return e}function aO(e,t){t===void 0&&(t=sO);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var c=s;s=[],c.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return o}function lO(e){e===void 0&&(e={});var t=aO(null);return t.options=Ro({async:!0,ssr:!1},e),t}var AT=function(e){var t=e.sideCar,n=Kc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return S.createElement(r,Ro({},n))};AT.isSideCarExport=!0;function uO(e,t){return e.useMedium(t),AT}var jT=lO(),tg=function(){},ih=S.forwardRef(function(e,t){var n=S.useRef(null),r=S.useState({onScrollCapture:tg,onWheelCapture:tg,onTouchMoveCapture:tg}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,g=e.noIsolation,v=e.inert,w=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,x=e.gapMode,R=Kc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=f,I=iO([n,t]),C=Ro(Ro({},R),o);return S.createElement(S.Fragment,null,c&&S.createElement(k,{sideCar:jT,removeScrollBar:u,shards:d,noRelative:h,noIsolation:g,inert:v,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:x}),s?S.cloneElement(S.Children.only(a),Ro(Ro({},C),{ref:I})):S.createElement(y,Ro({},C,{className:l,ref:I}),a))});ih.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ih.classNames={fullWidth:Tf,zeroRight:Ef};var cO=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function dO(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=cO();return t&&e.setAttribute("nonce",t),e}function fO(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function pO(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hO=function(){var e=0,t=null;return{add:function(n){e==0&&(t=dO())&&(fO(t,n),pO(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mO=function(){var e=hO();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},OT=function(){var e=mO(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},gO={left:0,top:0,right:0,gap:0},ng=function(e){return parseInt(e||"",10)||0},vO=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ng(n),ng(r),ng(o)]},yO=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gO;var t=vO(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},bO=OT(),yl="data-scroll-locked",wO=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
41  .`.concat(tO,` {
42   overflow: hidden `).concat(r,`;
43   padding-right: `).concat(a,"px ").concat(r,`;
44  }
45  body[`).concat(yl,`] {
46    overflow: hidden `).concat(r,`;
47    overscroll-behavior: contain;
48    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
49    padding-left: `.concat(o,`px;
50    padding-top: `).concat(i,`px;
51    padding-right: `).concat(s,`px;
52    margin-left:0;
53    margin-top:0;
54    margin-right: `).concat(a,"px ").concat(r,`;
55    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
55")].filter(Boolean).join(""),`
56  }
57  
58  .`).concat(Ef,` {
59    right: `).concat(a,"px ").concat(r,`;
60  }
61  
62  .`).concat(Tf,` {
63    margin-right: `).concat(a,"px ").concat(r,`;
64  }
65  
66  .`).concat(Ef," .").concat(Ef,` {
67    right: 0 `).concat(r,`;
68  }
69  
70  .`).concat(Tf," .").concat(Tf,` {
71    margin-right: 0 `).concat(r,`;
72  }
73  
74  body[`).concat(yl,`] {
75    `).concat(nO,": ").concat(a,`px;
76  }
77`)},q1=function(){var e=parseInt(document.body.getAttribute(yl)||"0",10);return isFinite(e)?e:0},xO=function(){S.useEffect(function(){return document.body.setAttribute(yl,(q1()+1).toString()),function(){var e=q1()-1;e<=0?document.body.removeAttribute(yl):document.body.setAttribute(yl,e.toString())}},[])},SO=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;xO();var i=S.useMemo(function(){return yO(o)},[o]);return S.createElement(bO,{styles:wO(i,!t,o,n?"":"!important")})},Yv=!1;if(typeof window<"u")try{var Ud=Object.defineProperty({},"passive",{get:function(){return Yv=!0,!0}});window.addEventListener("test",Ud,Ud),window.removeEventListener("test",Ud,Ud)}catch{Yv=!1}var La=Yv?{passive:!1}:!1,CO=function(e){return e.tagName==="TEXTAREA"},NT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!CO(e)&&n[t]==="visible")},_O=function(e){return NT(e,"overflowY")},RO=function(e){return NT(e,"overflowX")},Y1=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=LT(e,r);if(o){var i=FT(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},EO=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},TO=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},LT=function(e,t){return e==="v"?_O(t):RO(t)},FT=function(e,t){return e==="v"?EO(t):TO(t)},PO=function(e,t){return e==="h"&&t==="rtl"?-1:1},kO=function(e,t,n,r,o){var i=PO(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),u=!1,c=s>0,d=0,f=0;do{if(!a)break;var h=FT(e,a),g=h[0],v=h[1],w=h[2],b=v-w-i*g;(g||b)&&LT(e,a)&&(d+=b,f+=g);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(c&&Math.abs(d)<1||!c&&Math.abs(f)<1)&&(u=!0),u},Gd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},X1=function(e){return[e.deltaX,e.deltaY]},J1=function(e){return e&&"current"in e?e.current:e},IO=function(e,t){return e[0]===t[0]&&e[1]===t[1]},MO=function(e){return`
78  .block-interactivity-`.concat(e,` {pointer-events: none;}
79  .allow-interactivity-`).concat(e,` {pointer-events: all;}
80`)},DO=0,Fa=[];function AO(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),o=S.useState(DO++)[0],i=S.useState(OT)[0],s=S.useRef(e);S.useEffect(function(){s.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=eO([e.lockRef.current],(e.shards||[]).map(J1),!0).filter(Boolean);return v.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=S.useCallback(function(v,w){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var b=Gd(v),y=n.current,x="deltaX"in v?v.deltaX:y[0]-b[0],R="deltaY"in v?v.deltaY:y[1]-b[1],k,I=v.target,C=Math.abs(x)>Math.abs(R)?"h":"v";if("touches"in v&&C==="h"&&I.type==="range")return!1;var _=window.getSelection(),T=_&&_.anchorNode,P=T?T===I||T.contains(I):!1;if(P)return!1;var M=Y1(C,I);if(!M)return!0;if(M?k=C:(k=C==="v"?"h":"v",M=Y1(C,I)),!M)return!1;if(!r.current&&"changedTouches"in v&&(x||R)&&(r.current=k),!k)return!0;var O=r.current||k;return kO(O,w,v,O==="h"?x:R)},[]),l=S.useCallback(function(v){var w=v;if(!(!Fa.length||Fa[Fa.length-1]!==i)){var b="deltaY"in w?X1(w):Gd(w),y=t.current.filter(function(k){return k.name===w.t
80ype&&(k.target===w.target||w.target===k.shadowParent)&&IO(k.delta,b)})[0];if(y&&y.should){w.cancelable&&w.preventDefault();return}if(!y){var x=(s.current.shards||[]).map(J1).filter(Boolean).filter(function(k){return k.contains(w.target)}),R=x.length>0?a(w,x[0]):!s.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),u=S.useCallback(function(v,w,b,y){var x={name:v,delta:w,target:b,should:y,shadowParent:jO(b)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(R){return R!==x})},1)},[]),c=S.useCallback(function(v){n.current=Gd(v),r.current=void 0},[]),d=S.useCallback(function(v){u(v.type,X1(v),v.target,a(v,e.lockRef.current))},[]),f=S.useCallback(function(v){u(v.type,Gd(v),v.target,a(v,e.lockRef.current))},[]);S.useEffect(function(){return Fa.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,La),document.addEventListener("touchmove",l,La),document.addEventListener("touchstart",c,La),function(){Fa=Fa.filter(function(v){return v!==i}),document.removeEventListener("wheel",l,La),document.removeEventListener("touchmove",l,La),document.removeEventListener("touchstart",c,La)}},[]);var h=e.removeScrollBar,g=e.inert;return S.createElement(S.Fragment,null,g?S.createElement(i,{styles:MO(o)}):null,h?S.createElement(SO,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function jO(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const OO=uO(jT,AO);var ap=S.forwardRef(function(e,t){return S.createElement(ih,Ro({},e,{ref:t,sideCar:OO}))});ap.classNames=ih.classNames;function nn(e){return Object.keys(e)}function rg(e){return e&&typeof e=="object"&&!Array.isArray(e)}function $0(e,t){const n={...e},r=t;return rg(e)&&rg(t)&&Object.keys(t).forEach(o=>{rg(r[o])&&o in e?n[o]=$0(n[o],r[o]):n[o]=r[o]}),n}function NO(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function LO(e){var t;return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:(t=e.match(/^calc\((.*?)\)$/))==null?void 0:t[1].split("*")[0].trim()}function Dc(e){const t=LO(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function og(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function $T(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r==="0")return`0${e}`;if(typeof r=="number"){const o=`${r/16}${e}`;return t?og(o):o}if(typeof r=="string"){if(r===""||r.startsWith("calc(")||r.startsWith("clamp(")||r.includes("rgba("))return r;if(r.includes(","))return r.split(",").map(i=>n(i)).join(",");if(r.includes(" "))return r.split(" ").map(i=>n(i)).join(" ");if(r.includes(e))return t?og(r):r;const o=r.replace("px","");if(!Number.isNaN(Number(o))){const i=`${Number(o)/16}${e}`;return t?og(i):i}}return r}return n}const ae=$T("rem",{shouldScale:!0}),Q1=$T("em");function Rs(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function zT(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(r=>t.test(r))}return!1}function Es(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==S.Fragment:!1}function ur(e){const t=S.createContext(null);return[({children:o,value:i})=>p.jsx(t.Provider,{value:i,children:o}),()=>{const o=S.useContext(t);if(o===null)throw new Error(e);return o}]}function Ts(e=null){const t=S.createContext(e);return[({children:o,value:i})=>p.jsx(t.Provider,{value:i,children:o}),()=>S.useContext(t)]}function lp(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function FO(e,t,n){for(let r=e-1;r>=0;r-=1)if(!t[r].disabled)return r;if(n){for(let r=t.length-1;r>-1;r-=1)if(!t[r].disabled)return r}return e}function $O(e,t,n){for(let r=e+1;r<t.length;r+=1)if(!t[r].disabled)return r;if(n){for(let r=0;r<t.length;r+=1)if(!t[r].disabled)return r}return e}function zO(e,t,n){return lp(e,n)===lp(t,n)}function VO({parentSelector:e,siblingSelector:t,onKeyDown:n,loop:r=!0,activateOnFocus:o=!1,dir:i="rtl",orientation:s}){return a=>{var f;n==null||n(a);const l=Array.from(((f=lp(a.currentTarget,e))==null?void 0:f.querySelectorAll(t))||[]).filter(h=>zO(a.currentTarget,h,e)),u=l.findIndex(h=>a.currentTarget===h),c=$O(u,l,r),d=FO(u,l,r);switch(a.key){case"ArrowRight":break;case"ArrowLeft":break;case"ArrowUp":{a.stopPropagation(),a.preventDefault(),l[d].focus(),o&&l[d].click();break}case"ArrowDown":{a.stopPropagation(),a.preventDefault(),l[c].focus(),o&&l[c].click();break}case"Home":{a.stopPropagation(),a.preventDefault(),!l[0].disabled&&l[0].focus();break}case"End":{a.stopPropagation(),a.preventDefault();const h=l.length-1;!l[h].disabled&&l[h].focus();break}}}}
80const BO={app:100,modal:200,popover:300,overlay:400,max:9999};function zr(e){return BO[e]}const VT=()=>{};function HO(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||VT:n=>{var r;n.key==="Escape"&&(e(n),(r=t.onTrigger)==null||r.call(t))}}function Xe(e,t="size",n=!0){if(e!==void 0)return zT(e)?n?ae(e):e:`var(--${t}-${e})`}function hn(e){return Xe(e,"mantine-spacing")}function bt(e){return e===void 0?"var(--mantine-radius-default)":Xe(e,"mantine-radius")}function Qt(e){return Xe(e,"mantine-font-size")}function UO(e){return Xe(e,"mantine-line-height",!1)}function z0(e){if(e)return Xe(e,"mantine-shadow",!1)}function nr(e,t){return n=>{e==null||e(n),t==null||t(n)}}function GO(e,t){return e in t?Dc(t[e]):Dc(e)}function V0(e,t){const n=e.map(r=>({value:r,px:GO(r,t)}));return n.sort((r,o)=>r.px-o.px),n}function Jo(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function WO(e,t,n){var r;return n?Array.from(((r=lp(n,t))==null?void 0:r.querySelectorAll(e))||[]).findIndex(o=>o===n):null}function KO(){const[e,t]=S.useState(-1);return[e,{setHovered:t,resetHovered:()=>t(-1)}]}function up(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function ac(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function Hs(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function sh(e,t){const n=typeof t=="number"?t:t.delay,r=typeof t=="number"?!1:t.flushOnUnmount,o=Hs(e),i=S.useRef(0),s=S.useRef(()=>{}),a=Object.assign(S.useCallback((...l)=>{window.clearTimeout(i.current);const u=()=>{i.current!==0&&(i.current=0,o(...l))};s.current=u,a.flush=u,i.current=window.setTimeout(u,n)},[o,n]),{flush:s.current});return S.useEffect(()=>()=>{window.clearTimeout(i.current),r&&a.flush()},[a,r]),a}const Z1=["mousedown","touchstart"];function BT(e,t,n){const r=S.useRef(null);return S.useEffect(()=>{const o=i=>{const{target:s}=i??{};if(Array.isArray(n)){const a=(s==null?void 0:s.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(s)&&s.tagName!=="HTML";n.every(u=>!!u&&!i.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(s)&&e()};return(t||Z1).forEach(i=>document.addEventListener(i,o)),()=>{(t||Z1).forEach(i=>document.removeEventListener(i,o))}},[r,e,n]),r}function qO({timeout:e=2e3}={}){const[t,n]=S.useState(null),[r,o]=S.useState(!1),[i,s]=S.useState(null),a=c=>{window.clearTimeout(i),s(window.setTimeout(()=>o(!1),e)),o(c)};return{copy:c=>{"clipboard"in navigator?navigator.clipboard.writeText(c).then(()=>a(!0)).catch(d=>n(d)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{o(!1),n(null),window.clearTimeout(i)},error:t,copied:r}}function YO(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function XO(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Eo(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[r,o]=S.useState(n?t:XO(e)),i=S.useRef(null);return S.useEffect(()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),YO(i.current,s=>o(s.matches))},[e]),r}function JO(e,t){return Eo("(prefers-color-scheme: dark)",e==="dark",t)?"dark":"light"}function HT(e,t,n={leading:!1}){const[r,o]=S.useState(e),i=S.useRef(!1),s=S.useRef(null),a=S.useRef(!1),l=()=>window.clearTimeout(s.current);return S.useEffect(()=>{i.current&&(!a.current&&n.leading?(a.current=!0,o(e)):(l(),s.current=window.setTimeout(()=>{a.current=!1,o(e)},t)))},[e,n.leading,t]),S.useEffect(()=>(i.current=!0,l),[]),[r,l]}const Kl=typeof document<"u"?S.useLayoutEffect:S.useEffect;function co(e,t){const n=S.useRef(!1);S.useEffect(()=>()=>{n.current=!1},[]),S.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function UT({opened:e,shouldReturnFocus:t=!0}){const n=S.useRef(null),r=()=>{var o;n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&((o=n.current)==null||o.focus({preventScroll:!0}))};return co(()=>{let o=-1;const i=s=>{s.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:t&&(o=window.setTimeout(r,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",i)}},[e,t]),r}const QO=/input|select|textarea|button|object/,GT="a, input, select, textarea, button, object, [tabindex]";function ZO(e){return e.style.display==="none"}function eN(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let n=e;for(;n&&!(n===document.body||n.nodeType===11);){if(ZO(n))return!1;n=n.parentNode}return!0}function WT(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function Xv(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(WT(e));return(QO.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&eN(e)}function KT(e){const t=WT(e);return(Number.isNaN(t)||t>=0)&&Xv(e)}function tN(e){return Array.from(e.querySelectorAll(GT)).filter(KT)}function nN(e,t){const n=tN(e);if(!n.length){t.preventDefault();return}const r=n[t.shiftKey?0:n.length-1],o=e.getRootNode();let i=r===o.activeElement||e===o.activeElement;const s=o.activeElement;if(s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(i=n.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===s.getAttribute("name")).includes(r)),!i)return;t.preventDefault();const l=n[t.shiftKey?n.length-1:0];l&&l.focus()}function rN(e=!0){const t=S.useRef(null),n=o=>{let i=o.querySelector("[data-autofocus]");if(!i){const s=Array.from(o.querySelectorAll(GT));i=s.find(KT)||s.find(Xv)||null,!i&&Xv(o)&&(i=o)}i&&i.focus({preventScroll:!0})},r=S.useCallback(o=>{e&&o!==null&&t.current!==o&&(o?(setTimeout(()=>{o.getRootNode()&&n(o)}),t.current=o):t.current=null)},[e]);return S.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>n(t.current));const o=i=>{i.key==="Tab"&&t.current&&nN(t.current,i)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e]),r}const oN=e=>(e+1)%1e6;function iN(){const[,e]=S.useReducer(oN,0);return e}const sN=Rn.useId||(()=>{});function aN(){const e=sN();return e?`mantine-${e.replace(/:/g,"")}`:""}function Rr(e){const t=aN(),[n,r]=S.useState(t);return Kl(()=>{r(ac())},[]),typeof e=="string"?e:typeof window>"u"?t:n}
80function lN(e,t,n){S.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function Jv(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function qT(...e){const t=new Map;return n=>{if(e.forEach(r=>{const o=Jv(r,n);o&&t.set(r,o)}),t.size>0)return()=>{e.forEach(r=>{const o=t.get(r);o?o():Jv(r,null)}),t.clear()}}}function gn(...e){return S.useCallback(qT(...e),e)}function uN(e,t,n="ltr"){const r=S.useRef(null),o=S.useRef(!1),i=S.useRef(!1),s=S.useRef(0),[a,l]=S.useState(!1);return S.useEffect(()=>{o.current=!0},[]),S.useEffect(()=>{const u=r.current,c=({x,y:R})=>{cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{if(o.current&&u){u.style.userSelect="none";const k=u.getBoundingClientRect();if(k.width&&k.height){const I=up((x-k.left)/k.width,0,1);e({x:n==="ltr"?I:1-I,y:up((R-k.top)/k.height,0,1)})}}})},d=()=>{document.addEventListener("mousemove",w),document.addEventListener("mouseup",g),document.addEventListener("touchmove",y),document.addEventListener("touchend",g)},f=()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",g),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",g)},h=()=>{!i.current&&o.current&&(i.current=!0,typeof(t==null?void 0:t.onScrubStart)=="function"&&t.onScrubStart(),l(!0),d())},g=()=>{i.current&&o.current&&(i.current=!1,l(!1),f(),setTimeout(()=>{typeof(t==null?void 0:t.onScrubEnd)=="function"&&t.onScrubEnd()},0))},v=x=>{h(),x.preventDefault(),w(x)},w=x=>c({x:x.clientX,y:x.clientY}),b=x=>{x.cancelable&&x.preventDefault(),h(),y(x)},y=x=>{x.cancelable&&x.preventDefault(),c({x:x.changedTouches[0].clientX,y:x.changedTouches[0].clientY})};return u==null||u.addEventListener("mousedown",v),u==null||u.addEventListener("touchstart",b,{passive:!1}),()=>{u&&(u.removeEventListener("mousedown",v),u.removeEventListener("touchstart",b))}},[n,e]),{ref:r,active:a}}function kn({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){const[o,i]=S.useState(t!==void 0?t:n),s=(a,...l)=>{i(a),r==null||r(a,...l)};return e!==void 0?[e,r,!0]:[o,s,!1]}function Fi(e,t){const n=t-e+1;return Array.from({length:n},(r,o)=>o+e)}const Wd="dots";function cN({total:e,siblings:t=1,boundaries:n=1,page:r,initialPage:o=1,onChange:i}){const s=Math.max(Math.trunc(e),0),[a,l]=kn({value:r,onChange:i,defaultValue:o,finalValue:o}),u=v=>{v<=0?l(1):v>s?l(s):l(v)},c=()=>u(a+1),d=()=>u(a-1),f=()=>u(1),h=()=>u(s);return{range:S.useMemo(()=>{if(t*2+3+n*2>=s)return Fi(1,s);const w=Math.max(a-t,n),b=Math.min(a+t,s-n),y=w>n+2,x=b<s-(n+1);if(!y&&x){const R=t*2+n+2;return[...Fi(1,R),Wd,...Fi(s-(n-1),s)]}if(y&&!x){const R=n+1+2*t;return[...Fi(1,n),Wd,...Fi(s-R,s)]}return[...Fi(1,n),Wd,...Fi(w,b),Wd,...Fi(s-n+1,s)]},[s,t,a]),active:a,setPage:u,next:c,previous:d,first:f,last:h}}function ah(e,t){return Eo("(prefers-reduced-motion: reduce)",e,t)}function dN(){const[e,t]=S.useState(!1),n=S.useRef(null),r=S.useCallback(()=>t(!0),[]),o=S.useCallback(()=>t(!1),[]);return S.useEffect(()=>{const i=n.current;if(i)return i.addEventListener("mouseenter",r),i.addEventListener("mouseleave",o),()=>{i==null||i.removeEventListener("mouseenter",r),i==null||i.removeEventListener("mouseleave",o)}},[n.current]),{ref:n,hovered:e}}function fN(e){const t=S.useRef(void 0);return S.useEffect(()=>{t.current=e},[e]),t.current}function pN(e,t){window.dispatchEvent(new CustomEvent(e,{detail:t}))}function hN(e){function t(r){const o=Object.keys(r).reduce((i,s)=>(i[`${e}:${s}`]=a=>r[s](a.detail),i),{});Kl(()=>(Object.keys(o).forEach(i=>{window.removeEventListener(i,o[i]),window.addEventListener(i,o[i])}),()=>Object.keys(o).forEach(i=>{window.removeEventListener(i,o[i])})),[o])}function n(r){return(...o)=>pN(`${e}:${String(r)}`,o[0])}return[t,n]}var mN={};function gN(){return typeof process<"u"&&mN?"production":"development"}function vN(e,t){return t.length===0?e:t.reduce((n,r)=>Math.abs(r-e)<Math.abs(n-e)?r:n)}function lh(e){var n;const t=Rn.version;return typeof Rn.version!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}function YT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=YT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ce(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=YT(e))&&(r&&(r+=" "),r+=t);return r}const yN={};function bN(e){const t={};return e.forEach(n=>
80{Object.entries(n).forEach(([r,o])=>{t[r]?t[r]=Ce(t[r],o):t[r]=o})}),t}function uh({theme:e,classNames:t,props:n,stylesCtx:r}){const i=(Array.isArray(t)?t:[t]).map(s=>typeof s=="function"?s(e,n,r):s||yN);return bN(i)}function cp({theme:e,styles:t,props:n,stylesCtx:r}){return(Array.isArray(t)?t:[t]).reduce((i,s)=>typeof s=="function"?{...i,...s(e,n,r)}:{...i,...s},{})}const B0=S.createContext(null);function Ps(){const e=S.useContext(B0);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function wN(){return Ps().cssVariablesResolver}function xN(){return Ps().classNamesPrefix}function ch(){return Ps().getStyleNonce}function SN(){return Ps().withStaticClasses}function CN(){return Ps().headless}function _N(){var e;return(e=Ps().stylesTransform)==null?void 0:e.sx}function RN(){var e;return(e=Ps().stylesTransform)==null?void 0:e.styles}function XT(){return Ps().env||"default"}function EN(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function TN(e){let t=e.replace("#","");if(t.length===3){const s=t.split("");t=[s[0],s[0],s[1],s[1],s[2],s[2]].join("")}if(t.length===8){const s=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:s}}const n=parseInt(t,16),r=n>>16&255,o=n>>8&255,i=n&255;return{r,g:o,b:i,a:1}}function PN(e){const[t,n,r,o]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:o===void 0?1:o}}function kN(e){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(t);if(!n)return{r:0,g:0,b:0,a:1};const r=parseInt(n[1],10),o=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,s=n[5]?parseFloat(n[5]):void 0,a=(1-Math.abs(2*i-1))*o,l=r/60,u=a*(1-Math.abs(l%2-1)),c=i-a/2;let d,f,h;return l>=0&&l<1?(d=a,f=u,h=0):l>=1&&l<2?(d=u,f=a,h=0):l>=2&&l<3?(d=0,f=a,h=u):l>=3&&l<4?(d=0,f=u,h=a):l>=4&&l<5?(d=u,f=0,h=a):(d=a,f=0,h=u),{r:Math.round((d+c)*255),g:Math.round((f+c)*255),b:Math.round((h+c)*255),a:s||1}}function dh(e){return EN(e)?TN(e):e.startsWith("rgb")?PN(e):e.startsWith("hsl")?kN(e):{r:0,g:0,b:0,a:1}}function Gu(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r:n,g:r,b:o,a:i}=dh(e),s=1-t,a=l=>Math.round(l*s);return`rgba(${a(n)}, ${a(r)}, ${a(o)}, ${i})`}function Ac(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function ig(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function IN(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function MN(e){if(e.startsWith("oklch("))return(IN(e)||0)/100;const{r:t,g:n,b:r}=dh(e),o=t/255,i=n/255,s=r/255,a=ig(o),l=ig(i),u=ig(s);return .2126*a+.7152*l+.0722*u}function Pu(e,t=.179){return e.startsWith("var(")?!1:MN(e)>t}function wr({color:e,theme:t,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Pu(n==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Pu(n==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Pu(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[r,o]=e.split("."),i=o?Number(o):void 0,s=r in t.colors;if(s){const a=i!==void 0?t.colors[r][i]:t.colors[r][Ac(t,n||"light")];return{color:r,value:a,shade:i,isThemeColor:s,isLight:Pu(a,t.luminanceThreshold),variable:o?`--mantine-color-${r}-${i}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:s,isLight:Pu(e,t.luminanceThreshold),shade:i,variable:void 0}}function It(e,t){const n=wr({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Qv(e,t){const n={from:(e==null?void 0:e.from)||t.defaultGradient.from,to:(e==null?void 0:e.to)||t.defaultGradient.to,deg:(e==null?void 0:e.deg)??t.defaultGradient.deg??0},r=It(n.from,t),o=It(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${o} 100%)`}function Ir(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:r,b:o}=dh(e);return`rgba(${n}, ${r}, ${o}, ${t})`}const $a=Ir,DN=({color:e,theme:t,variant:n,gradient:r,autoContrast:o})=>{const i=wr({color:e,theme:t}),s=typeof o=="boolean"?o:t.autoContrast;if(n==="filled"){const a=s&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?i.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:a,border:`${ae(1)} solid transparent`}
80:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${i.shade===9?8:i.shade+1})`,color:a,border:`${ae(1)} solid transparent`}:{background:e,hover:Gu(e,.1),color:a,border:`${ae(1)} solid transparent`}}if(n==="light"){if(i.isThemeColor){if(i.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${ae(1)} solid transparent`};const a=t.colors[i.color][i.shade];return{background:Ir(a,.1),hover:Ir(a,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${ae(1)} solid transparent`}}return{background:Ir(e,.1),hover:Ir(e,.12),color:e,border:`${ae(1)} solid transparent`}}if(n==="outline")return i.isThemeColor?i.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${ae(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:Ir(t.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${ae(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:Ir(e,.05),color:e,border:`${ae(1)} solid ${e}`};if(n==="subtle"){if(i.isThemeColor){if(i.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${ae(1)} solid transparent`};const a=t.colors[i.color][i.shade];return{background:"transparent",hover:Ir(a,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${ae(1)} solid transparent`}}return{background:"transparent",hover:Ir(e,.12),color:e,border:`${ae(1)} solid transparent`}}return n==="transparent"?i.isThemeColor?i.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${ae(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${ae(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${ae(1)} solid transparent`}:n==="white"?i.isThemeColor?i.shade===void 0?{background:"var(--mantine-color-white)",hover:Gu(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${ae(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Gu(t.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${ae(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Gu(t.white,.01),color:e,border:`${ae(1)} solid transparent`}:n==="gradient"?{background:Qv(r,t),hover:Qv(r,t),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${ae(1)} solid var(--mantine-color-default-border)`}:{}},AN={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},eS="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",H0={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:AN,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:DN,autoContrast:!1,luminanceThreshold:.3,fontFamily:eS,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:eS,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:ae(34),lineHeight:"1.3"},h2:{fontSize:ae(26),lineHeight:"1.35"},h3:{fontSize:ae(22),lineHeight:"1.4"},h4:{fontSize:ae(18),lineHeight:"1.45"},h5:{fontSize:ae(16),lineHeight:"1.5"},h6:{fontSize:ae(14),lineHeight:"1.5"}}},fontSizes:{xs:ae(12),sm:ae(14),md:ae(16),lg:ae(18),xl:ae(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:ae(2),sm:ae(4),md:ae(8),lg:ae(16),xl:ae(32)},spacing:{xs:ae(10),sm:ae(12),md:ae(16),lg:ae(20),xl:ae(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${ae(1)} ${ae(3)} rgba(0, 0, 0, 0.05), 0 ${ae(1)} ${ae(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${ae(1)} ${ae(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ae(10)} ${ae(15)} ${ae(-5)}, rgba(0, 0, 0, 0.04) 0 ${ae(7)} ${ae(7)} ${ae(-5)}`,md:`0 ${ae(1)} ${ae(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ae(20)} ${ae(25)} ${ae(-5)}, rgba(0, 0, 0, 0.04) 0 ${ae(10)} ${ae(10)} ${ae(-5)}`,lg:`0 ${ae(1)} ${ae(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ae(28)} ${ae(23)} ${ae(-7)}, rgba(0, 0, 0, 0.04) 0 ${ae(12)} ${ae(12)} ${ae(-7)}`,xl:`0 ${ae(1)} ${ae(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${ae(36)} ${ae(28)} ${ae(-7)}, rgba(0, 0, 0, 0.04) 0 ${ae(17)} ${ae(17)} ${ae(-7)}`},other:{},components:{}};function tS(e){return e==="auto"||e==="dark"||e==="light"}function jN({key:e="mantine-color-scheme-value"}={}){let t;return{get:n=>{if(typeof window>"u")return n;try{const r=window.localStorage.getItem(e);return tS(r)?r:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(r){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",r)}},subscribe:n=>{t=r=>{r.storageArea===window.localStorage&&r.key===e&&tS(r.newValue)&&n(r.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const ON="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",nS="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function sg(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function rS(e){if(!(e.primaryColor in e.colors))throw new Error(ON);if(typeof e.primaryShade=="object"&&(!sg(e.primaryShade.dark)||!sg(e.primaryShade.light)))throw new Error(nS);if(typeof e.primaryShade=="number"&&!sg(e.primaryShade))throw new Error(nS)}function NN(e,t){var r;if(!t)return rS(e),e;const n=$0(e,t);return t.fontFamily&&!((r=t.headings)!=null&&r.fontFamily)&&(n.headings.fontFamily=t.fontFamily),rS(n),n}const U0=S.createContext(null),LN=()=>S.useContext(U0)||H0;function rn(){const e=S.useContext(U0);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function JT({theme:e,children:t,inherit:n=!0}){const r=LN(),o=S.useMemo(()=>NN(n?r:H0,e),[e,r,n]);return p.jsx(U0.Provider,{value:o,children:t})}JT.displayName="@mantine/core/MantineThemeProvider";function FN(){const e=rn(),t=ch(),n=nn(e.breakpoints).reduce((r,o)=>{const i=e.breakpoints[o].includes("px"),s=Dc(e.breakpoints[o]),a=i?`${s-.1}px`:Q1(s-.1),l=i?`${s}px`:Q1(s);return`${r}@media (max-width: ${a}) {.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${o} {display: none !important;}}`},"");
80return p.jsx("style",{"data-mantine-styles":"classes",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:n}})}function ag(e){return Object.entries(e).map(([t,n])=>`${t}: ${n};`).join("")}function ku(e,t){return(Array.isArray(e)?e:[e]).reduce((r,o)=>`${o}{${r}}`,t)}function $N(e,t){const n=ag(e.variables),r=n?ku(t,n):"",o=ag(e.dark),i=ag(e.light),s=o?ku(t===":host"?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,o):"",a=i?ku(t===":host"?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,i):"";return`${r}${s}${a}`}function ks({color:e,theme:t,autoContrast:n}){return(typeof n=="boolean"?n:t.autoContrast)&&wr({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function oS(e,t){return ks({color:e.colors[e.primaryColor][Ac(e,t)],theme:e,autoContrast:null})}function Kd({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:o=!0}){if(!e.colors[t])return{};if(n==="light"){const a=Ac(e,"light"),l={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:$a(e.colors[t][a],.1),[`--mantine-color-${r}-light-hover`]:$a(e.colors[t][a],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-outline-hover`]:$a(e.colors[t][a],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...l}:l}const i=Ac(e,"dark"),s={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${i})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${i===9?8:i+1})`,[`--mantine-color-${r}-light`]:$a(e.colors[t][Math.max(0,i-2)],.15),[`--mantine-color-${r}-light-hover`]:$a(e.colors[t][Math.max(0,i-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(i-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(i-4,0)})`,[`--mantine-color-${r}-outline-hover`]:$a(e.colors[t][Math.max(i-4,0)],.05)};return o?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...s}:s}function zN(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function za(e,t,n){nn(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}const QT=e=>{const t=Ac(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:ae(e.defaultRadius),r={variables:{"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-color-scheme":"light dark","--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-primary-color-contrast":oS(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)"},dark:{"--mantine-primary-color-contrast":oS(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)"}};za(r.variables,e.breakpoints,"breakpoint"),za(r.variables,e.spacing,"spacing"),za(r.variables,e.fontSizes,"font-size"),za(r.variables,e.lineHeights,"line-height"),za(r.variables,e.shadows,"shadow"),za(r.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,s)=>{r.variables[`--mantine-primary-color-${s}`]=`var(--mantine-color-${e.primaryColor}-${s})`}
80),nn(e.colors).forEach(i=>{const s=e.colors[i];if(zN(s)){Object.assign(r.light,Kd({theme:e,name:s.name,color:s.light,colorScheme:"light",withColorValues:!0})),Object.assign(r.dark,Kd({theme:e,name:s.name,color:s.dark,colorScheme:"dark",withColorValues:!0}));return}s.forEach((a,l)=>{r.variables[`--mantine-color-${i}-${l}`]=a}),Object.assign(r.light,Kd({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(r.dark,Kd({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const o=e.headings.sizes;return nn(o).forEach(i=>{r.variables[`--mantine-${i}-font-size`]=o[i].fontSize,r.variables[`--mantine-${i}-line-height`]=o[i].lineHeight,r.variables[`--mantine-${i}-font-weight`]=o[i].fontWeight||e.headings.fontWeight}),r};function VN({theme:e,generator:t}){const n=QT(e),r=t==null?void 0:t(e);return r?$0(n,r):n}const lg=QT(H0);function BN(e){const t={variables:{},light:{},dark:{}};return nn(e.variables).forEach(n=>{lg.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),nn(e.light).forEach(n=>{lg.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),nn(e.dark).forEach(n=>{lg.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function HN(e){return`
81  ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
82  ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
83`}function ZT({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=rn(),r=ch(),o=wN(),i=VN({theme:n,generator:o}),s=e===":root"&&t,a=s?BN(i):i,l=$N(a,e);return l?p.jsx("style",{"data-mantine-styles":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${l}${s?"":HN(e)}`}}):null}ZT.displayName="@mantine/CssVariables";function UN(){const e=console.error;console.error=(...t)=>{t.length>1&&typeof t[0]=="string"&&t[0].toLowerCase().includes("extra attributes from the server")&&typeof t[1]=="string"&&t[1].toLowerCase().includes("data-mantine-color-scheme")||e(...t)}}function Va(e,t){var o,i;const n=typeof window<"u"&&"matchMedia"in window&&((o=window.matchMedia("(prefers-color-scheme: dark)"))==null?void 0:o.matches),r=e!=="auto"?e:n?"dark":"light";(i=t())==null||i.setAttribute("data-mantine-color-scheme",r)}function GN({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){const o=S.useRef(null),[i,s]=S.useState(()=>e.get(t)),a=r||i,l=S.useCallback(c=>{r||(Va(c,n),s(c),e.set(c))},[e.set,a,r]),u=S.useCallback(()=>{s(t),Va(t,n),e.clear()},[e.clear,t]);return S.useEffect(()=>(e.subscribe(l),e.unsubscribe),[e.subscribe,e.unsubscribe]),Kl(()=>{Va(e.get(t),n)},[]),S.useEffect(()=>{var d;if(r)return Va(r,n),()=>{};r===void 0&&Va(i,n),typeof window<"u"&&"matchMedia"in window&&(o.current=window.matchMedia("(prefers-color-scheme: dark)"));const c=f=>{i==="auto"&&Va(f.matches?"dark":"light",n)};return(d=o.current)==null||d.addEventListener("change",c),()=>{var f;return(f=o.current)==null?void 0:f.removeEventListener("change",c)}},[i,r]),{colorScheme:a,setColorScheme:l,clearColorScheme:u}}function WN({respectReducedMotion:e,getRootElement:t}){Kl(()=>{var n;e&&((n=t())==null||n.setAttribute("data-respect-reduced-motion","true"))},[e])}UN();function eP({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:o=!0,deduplicateCssVariables:i=!0,withCssVariables:s=!0,cssVariablesSelector:a=":root",classNamesPrefix:l="mantine",colorSchemeManager:u=jN(),defaultColorScheme:c="light",getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:h,stylesTransform:g,env:v}){const{colorScheme:w,setColorScheme:b,clearColorScheme:y}=GN({defaultColorScheme:c,forceColorScheme:h,manager:u,getRootElement:d});return WN({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:d}),p.jsx(B0.Provider,{value:{colorScheme:w,setColorScheme:b,clearColorScheme:y,getRootElement:d,classNamesPrefix:l,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:a,withStaticClasses:r,stylesTransform:g,env:v},children:p.jsxs(JT,{theme:e,children:[s&&p.jsx(ZT,{cssVariablesSelector:a,deduplicateCssVariables:i}),o&&p.jsx(FN,{}),t]})})}eP.displayName="@mantine/core/MantineProvider";function xi({classNames:e,styles:t,props:n,stylesCtx:r}){const o=rn();return{resolvedClassNames:uh({theme:o,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:cp({theme:o,styles:t,props:n,stylesCtx:r||void 0})}}const KN={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function qN({theme:e,options:t,unstyled:n}){return Ce((t==null?void 0:t.focusable)&&!n&&(e.focusClassName||KN[e.focusRing]),(t==null?void 0:t.active)&&!n&&e.activeClassName)}function YN({selector:e,stylesCtx:t,options:n,props:r,theme:o}){return uh({theme:o,classNames:n==null?void 0:n.classNames,props:(n==null?void 0:n.props)||r,stylesCtx:t})[e]}
83function iS({selector:e,stylesCtx:t,theme:n,classNames:r,props:o}){return uh({theme:n,classNames:r,props:o,stylesCtx:t})[e]}function XN({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function JN({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function QN({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(o=>`${t}-${o}-${n}`)}function ZN({themeName:e,theme:t,selector:n,props:r,stylesCtx:o}){return e.map(i=>{var s,a;return(a=uh({theme:t,classNames:(s=t.components[i])==null?void 0:s.classNames,props:r,stylesCtx:o}))==null?void 0:a[n]})}function eL({options:e,classes:t,selector:n,unstyled:r}){return e!=null&&e.variant&&!r?t[`${n}--${e.variant}`]:void 0}function tL({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:o,classNames:i,classes:s,unstyled:a,className:l,rootSelector:u,props:c,stylesCtx:d,withStaticClasses:f,headless:h,transformedStyles:g}){return Ce(qN({theme:e,options:t,unstyled:a||h}),ZN({theme:e,themeName:n,selector:r,props:c,stylesCtx:d}),eL({options:t,classes:s,selector:r,unstyled:a}),iS({selector:r,stylesCtx:d,theme:e,classNames:i,props:c}),iS({selector:r,stylesCtx:d,theme:e,classNames:g,props:c}),YN({selector:r,stylesCtx:d,options:t,props:c,theme:e}),XN({rootSelector:u,selector:r,className:l}),JN({selector:r,classes:s,unstyled:a||h}),f&&!h&&QN({themeName:n,classNamesPrefix:o,selector:r,withStaticClass:t==null?void 0:t.withStaticClass}),t==null?void 0:t.className)}function nL({theme:e,themeName:t,props:n,stylesCtx:r,selector:o}){return t.map(i=>{var s;return cp({theme:e,styles:(s=e.components[i])==null?void 0:s.styles,props:n,stylesCtx:r})[o]}).reduce((i,s)=>({...i,...s}),{})}function Zv({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...Zv({style:r,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function rL(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(r=>{t[r]={...t[r],...Rs(n[r])}}),t),{})}function oL({vars:e,varsResolver:t,theme:n,props:r,stylesCtx:o,selector:i,themeName:s,headless:a}){var l;return(l=rL([a?{}:t==null?void 0:t(n,r,o),...s.map(u=>{var c,d,f;return(f=(d=(c=n.components)==null?void 0:c[u])==null?void 0:d.vars)==null?void 0:f.call(d,n,r,o)}),e==null?void 0:e(n,r,o)]))==null?void 0:l[i]}function iL({theme:e,themeName:t,selector:n,options:r,props:o,stylesCtx:i,rootSelector:s,styles:a,style:l,vars:u,varsResolver:c,headless:d,withStylesTransform:f}){return{...!f&&nL({theme:e,themeName:t,props:o,stylesCtx:i,selector:n}),...!f&&cp({theme:e,styles:a,props:o,stylesCtx:i})[n],...!f&&cp({theme:e,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||o,stylesCtx:i})[n],...oL({theme:e,props:o,stylesCtx:i,vars:u,varsResolver:c,selector:n,themeName:t,headless:d}),...s===n?Zv({style:l,theme:e}):null,...Zv({style:r==null?void 0:r.style,theme:e})}}function sL({props:e,stylesCtx:t,themeName:n}){var s;const r=rn(),o=(s=RN())==null?void 0:s();return{getTransformedStyles:a=>o?[...a.map(u=>o(u,{props:e,theme:r,ctx:t})),...n.map(u=>{var c;return o((c=r.components[u])==null?void 0:c.styles,{props:e,theme:r,ctx:t})})].filter(Boolean):[],withStylesTransform:!!o}}function Te({name:e,classes:t,props:n,stylesCtx:r,className:o,style:i,rootSelector:s="root",unstyled:a,classNames:l,styles:u,vars:c,varsResolver:d}){const f=rn(),h=xN(),g=SN(),v=CN(),w=(Array.isArray(e)?e:[e]).filter(x=>x),{withStylesTransform:b,getTransformedStyles:y}=sL({props:n,stylesCtx:r,themeName:w});return(x,R)=>({className:tL({theme:f,options:R,themeName:w,selector:x,classNamesPrefix:h,classNames:l,classes:t,unstyled:a,className:o,rootSelector:s,props:n,stylesCtx:r,withStaticClasses:g,headless:v,transformedStyles:y([R==null?void 0:R.styles,u])}),style:iL({theme:f,themeName:w,selector:x,options:R,props:n,stylesCtx:r,rootSelector:s,styles:u,style:i,vars:c,varsResolver:d,headless:v,withStylesTransform:b})})}function aL(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, white ${t*100}%)`;const{r:n,g:r,b:o,a:i}=dh(e),s=a=>Math.round(a+(255-a)*t);return`rgba(${s(n)}, ${s(r)}, ${s(o)}, ${i})`}function xa(e,t){return typeof e=="boolean"?e:t.autoContrast}function sS(e){const t=document.createElement("style");return t.setAttribute("data-mantine-styles","inline"),t.innerHTML="*, *::before, *::after {transition: none !important;}",t.setAttribute("data-mantine-disable-transition","true"),e&&t.setAttribute("nonce",e),document.head.appendChild(t),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(r=>r.remove())}function lL({keepTransitions:e}={}){const t=S.useRef(VT),n=S.useRef(-1),r=S.useContext(B0),o=ch(),i=S.useRef(o==null?void 0:o());if(!r)throw new Error("[@mantine/core] MantineProvider was not found in tree");const s=d=>{r.setColorScheme(d),t.current=e?()=>{}:sS(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var f;(f=t.current)==null||f.call(t)},10)},a=()=>{r.clearColorScheme(),t.current=e?()=>{}:sS(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{var d;(d=t.current)==null||d.call(t)},10)},l=JO("light",{getInitialValueInEffect:!1}),u=r.colorScheme==="auto"?l:r.colorScheme,c=S.useCallback(()=>s(u==="light"?"dark":"light"),[s,u]);return S.useEffect(()=>()=>{var d;(d=t.current)==null||d.call(t),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:s,clearColorScheme:a,toggleColorScheme:c}}function re(e,t,n){var s;const r=rn(),o=(s=r.components[e])==null?void 0:s.defaultProps,i=typeof o=="function"?o(r):o;return{...t,...i,...Rs(n)}}const Pf=["xs","sm","md","lg","xl"];function uL(e,t){if(!t)return e.base;let n=Pf.indexOf(t);for(;n>=0;
83){if(Pf[n]in e)return e[Pf[n]];n-=1}return e.base}function cL(e){return e.findLastIndex(t=>t)}function dL(e,t){const n=rn(),r=Eo(`(min-width: ${n.breakpoints.xs})`,!1,t),o=Eo(`(min-width: ${n.breakpoints.sm})`,!1,t),i=Eo(`(min-width: ${n.breakpoints.md})`,!1,t),s=Eo(`(min-width: ${n.breakpoints.lg})`,!1,t),a=Eo(`(min-width: ${n.breakpoints.xl})`,!1,t),u=cL([r,o,i,s,a]);return uL(e,Pf[u])}function ug(e){return nn(e).reduce((t,n)=>e[n]!==void 0?`${t}${NO(n)}:${e[n]};`:t,"").trim()}function fL({selector:e,styles:t,media:n,container:r}){const o=t?ug(t):"",i=Array.isArray(n)?n.map(a=>`@media${a.query}{${e}{${ug(a.styles)}}}`):[],s=Array.isArray(r)?r.map(a=>`@container ${a.query}{${e}{${ug(a.styles)}}}`):[];return`${o?`${e}{${o}}`:""}${i.join("")}${s.join("")}`.trim()}function ql(e){const t=ch();return p.jsx("style",{"data-mantine-styles":"inline",nonce:t==null?void 0:t(),dangerouslySetInnerHTML:{__html:fL(e)}})}function Sa(e){const{m:t,mx:n,my:r,mt:o,mb:i,ml:s,mr:a,me:l,ms:u,p:c,px:d,py:f,pt:h,pb:g,pl:v,pr:w,pe:b,ps:y,bd:x,bg:R,c:k,opacity:I,ff:C,fz:_,fw:T,lts:P,ta:M,lh:O,fs:A,tt:V,td:z,w:N,miw:F,maw:j,h:L,mih:B,mah:H,bgsz:G,bgp:ee,bgr:oe,bga:X,pos:J,top:q,left:ne,bottom:Y,right:W,inset:se,dis
83play:ue,flex:le,hiddenFrom:Re,visibleFrom:ye,lightHidden:ge,darkHidden:Le,sx:de,...De}=e;return{styleProps:Rs({m:t,mx:n,my:r,mt:o,mb:i,ml:s,mr:a,me:l,ms:u,p:c,px:d,py:f,pt:h,pb:g,pl:v,pr:w,pe:b,ps:y,bd:x,bg:R,c:k,opacity:I,ff:C,fz:_,fw:T,lts:P,ta:M,lh:O,fs:A,tt:V,td:z,w:N,miw:F,maw:j,h:L,mih:B,mah:H,bgsz:G,bgp:ee,bgr:oe,bga:X,pos:J,top:q,left:ne,bottom:Y,right:W,inset:se,display:ue,flex:le,hiddenFrom:Re,visibleFrom:ye,lightHidden:ge,darkHidden:Le,sx:de}),rest:De}}const pL={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function G0(e,t){const n=wr({color:e,theme:t});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function hL(e,t){const n=wr({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:G0(e,t)}function mL(e,t){if(typeof e=="number")return ae(e);if(typeof e=="string"){const[n,r,...o]=e.split(" ").filter(s=>s.trim()!=="");let i=`${ae(n)}`;return r&&(i+=` ${r}`),o.length>0&&(i+=` ${G0(o.join(" "),t)}`),i.trim()}return e}const aS={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function gL(e){return typeof e=="string"&&e in aS?aS[e]:e}const vL=["h1","h2","h3","h4","h5","h6"];function yL(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&vL.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?ae(e):e}function bL(e){return e}const wL=["h1","h2","h3","h4","h5","h6"];function xL(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&wL.includes(e)?`var(--mantine-${e}-line-height)`:e}function SL(e){return typeof e=="number"?ae(e):e}function CL(e,t){if(typeof e=="number")return ae(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return ae(e);const r=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${r}) * -1)`:`var(${r})`}return e}const cg={color:G0,textColor:hL,fontSize:yL,spacing:CL,identity:bL,size:SL,lineHeight:xL,fontFamily:gL,border:mL};function lS(e){return e.replace("(min-width: ","").replace("em)","")}function _L({media:e,...t}){const r=Object.keys(e).sort((o,i)=>Number(lS(o))-Number(lS(i))).map(o=>({query:o,styles:e[o]}));return{...t,media:r}}function RL(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function EL(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function TL(e){return typeof e=="object"&&e!==null?nn(e).filter(t=>t!=="base"):[]}function PL(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function tP({styleProps:e,data:t,theme:n}){return _L(nn(e).reduce((r,o)=>{if(o==="hiddenFrom"||o==="visibleFrom"||o==="sx")return r;const i=t[o],s=Array.isArray(i.property)?i.property:[i.property],a=EL(e[o]);
83if(!RL(e[o]))return s.forEach(u=>{r.inlineStyles[u]=cg[i.type](a,n)}),r;r.hasResponsiveStyles=!0;const l=TL(e[o]);return s.forEach(u=>{a&&(r.styles[u]=cg[i.type](a,n)),l.forEach(c=>{const d=`(min-width: ${n.breakpoints[c]})`;r.media[d]={...r.media[d],[u]:cg[i.type](PL(e[o],c),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function qc(){return`__m__-${S.useId().replace(/:/g,"")}`}function W0(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...W0(r,t)}),{}):typeof e=="function"?e(t):e??{}}function nP(e){return e.startsWith("data-")?e:`data-${e}`}function kL(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return r===void 0||r===""||r===!1||r===null||(t[nP(n)]=e[n]),t},{})}function rP(e){return e?typeof e=="string"?{[nP(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>({...t,...rP(n)}),{}):kL(e):null}function ey(e,t){return Array.isArray(e)?[...e].reduce((n,r)=>({...n,...ey(r,t)}),{}):typeof e=="function"?e(t):e??{}}function IL({theme:e,style:t,vars:n,styleProps:r}){const o=ey(t,e),i=ey(n,e);return{...o,...i,...r}}const oP=S.forwardRef(({component:e,style:t,__vars:n,className:r,variant:o,mod:i,size:s,hiddenFrom:a,visibleFrom:l,lightHidden:u,darkHidden:c,renderRoot:d,__size:f,...h},g)=>{var _;const v=rn(),w=e||"div",{styleProps:b,rest:y}=Sa(h),x=_N(),R=(_=x==null?void 0:x())==null?void 0:_(b.sx),k=qc(),I=tP({styleProps:b,theme:v,data:pL}),C={ref:g,style:IL({theme:v,style:t,vars:n,styleProps:I.inlineStyles}),className:Ce(r,R,{[k]:I.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":c,[`mantine-hidden-from-${a}`]:a,[`mantine-visible-from-${l}`]:l}),"data-variant":o,"data-size":zT(s)?void 0:s||void 0,size:f,...rP(i),...y};return p.jsxs(p.Fragment,{children:[I.hasResponsiveStyles&&p.jsx(ql,{selector:`.${k}`,styles:I.styles,media:I.media}),typeof d=="function"?d(C):p.jsx(w,{...C})]})});oP.displayName="@mantine/core/Box";const te=oP;function iP(e){return e}function ML(e){const t=e;return n=>{const r=S.forwardRef((o,i)=>p.jsx(t,{...n,...o,ref:i}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r}}function fe(e){const t=S.forwardRef(e);return t.extend=iP,t.withProps=n=>{const r=S.forwardRef((o,i)=>p.jsx(t,{...n,...o,ref:i}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t}function vn(e){const t=S.forwardRef(e);return t.withProps=n=>{const r=S.forwardRef((o,i)=>p.jsx(t,{...n,...o,ref:i}));return r.extend=t.extend,r.displayName=`WithProps(${t.displayName})`,r},t.extend=iP,t}const DL=S.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Er(){return S.useContext(DL)}function AL(e){if(!e||typeof e=="string")return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function dg(e){return e!=null&&e.current?e.current.scrollHeight:"auto"}const Iu=typeof window<"u"&&window.requestAnimationFrame;function jL({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:n=()=>{},opened:r}){const o=S.useRef(null),i=0,s={height:0,overflow:"hidden"},[a,l]=S.useState(r?{}:s),u=g=>{wa.flushSync(()=>l(g))},c=g=>{u(v=>({...v,...g}))};function d(g){const v=e||AL(g);return{transition:`height ${v}ms ${t}, opacity ${v}ms ${t}`}}co(()=>{typeof Iu=="function"&&Iu(r?()=>{c({willChange:"height",display:"block",overflow:"hidden"}),Iu(()=>{const g=dg(o);c({...d(g),height:g})})}:()=>{const g=dg(o);c({...d(g),willChange:"height",height:g}),Iu(()=>c({height:i,overflow:"hidden"}))})},[r]);const f=g=>{if(!(g.target!==o.current||g.propertyName!=="height"))if(r){const v=dg(o);v===a.height?u({}):c({height:v}),n()}else a.height===i&&(u(s),n())};function h({style:g={},refKey:v="ref",...w}={}){const b=w[v],y={"aria-hidden":!r,...w,[v]:qT(o,b),onTransitionEnd:f,style:{boxSizing:"border-box",...g,...a}};return Rn.version.startsWith("18")?r||(y.inert=""):y.inert=!r,y}return h}const OL={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},Yl=fe((e,t)=>{const{children:n,in:r,transitionDuration:o,transitionTimingFunction:i,style:s,onTransitionEnd:a,animateOpacity:l,...u}=re("Collapse",OL,e),c=rn(),d=ah(),h=(c.respectReducedMotion?d:!1)?0:o,g=jL({opened:r,transitionDuration:h,transitionTimingFunction:i,onTransitionEnd:a});return h===0?r?p.jsx(te,{...u,children:n}):null:p.jsx(te,{...g({style:{opacity:r||!l?1:0,transition:l?`opacity ${h}ms ${i}`:"none",...W0(s,c)},ref:t,...u}),children:n})});Yl.displayName="@mantine/core/Collapse";function fh(){return typeof window<"u"}function Xl(e){return sP(e)?(e.nodeName||"").toLowerCase():"#document"}function ar(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function No(e){var t;return(t=(sP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function sP(e){return fh()?e instanceof Node||e instanceof ar(e).Node:!1}function Ot(e){return fh()?e instanceof Element||e instanceof ar(e).Element:!1}function xr(e){return fh()?e instanceof HTMLElement||e instanceof ar(e).HTMLElement:!1}function ty(e){return!fh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ar(e).ShadowRoot}const NL=new Set(["inline","contents"]);function Yc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$r(e);
83return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!NL.has(o)}const LL=new Set(["table","td","th"]);function FL(e){return LL.has(Xl(e))}const $L=[":popover-open",":modal"];function ph(e){return $L.some(t=>{try{return e.matches(t)}catch{return!1}})}const zL=["transform","translate","scale","rotate","perspective"],VL=["transform","translate","scale","rotate","perspective","filter"],BL=["paint","layout","strict","content"];function K0(e){const t=hh(),n=Ot(e)?$r(e):e;return zL.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||VL.some(r=>(n.willChange||"").includes(r))||BL.some(r=>(n.contain||"").includes(r))}function HL(e){let t=pi(e);for(;xr(t)&&!vs(t);){if(K0(t))return t;if(ph(t))return null;t=pi(t)}return null}function hh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const UL=new Set(["html","body","#document"]);function vs(e){return UL.has(Xl(e))}function $r(e){return ar(e).getComputedStyle(e)}function mh(e){return Ot(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pi(e){if(Xl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ty(e)&&e.host||No(e);return ty(t)?t.host:t}function aP(e){const t=pi(e);return vs(t)?e.ownerDocument?e.ownerDocument.body:e.body:xr(t)&&Yc(t)?t:aP(t)}function ri(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=aP(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ar(o);if(i){const a=ny(s);return t.concat(s,s.visualViewport||[],Yc(o)?o:[],a&&n?ri(a):[])}return t.concat(o,ri(o,[],n))}function ny(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function uS(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function jc(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ty(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function lP(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function uP(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function GL(e){return qL()?!1:!cS()&&e.width===0&&e.height===0||cS()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function WL(){return/apple/i.test(navigator.vendor)}function cS(){const e=/android/i;return e.test(lP())||e.test(uP())}function KL(){return lP().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function qL(){return uP().includes("jsdom/")}function ry(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function YL(e){return"nativeEvent"in e}function XL(e){return e.matches("html,body")}function Xs(e){return(e==null?void 0:e.ownerDocument)||document}function fg(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Ya(e){return"composedPath"in e?e.composedPath()[0]:e.target}const JL="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function QL(e){return xr(e)&&e.matches(JL)}const fo=Math.min,Fn=Math.max,dp=Math.round,qd=Math.floor,Io=e=>({x:e,y:e}),ZL={left:"right",right:"left",bottom:"top",top:"bottom"},eF={start:"end",end:"start"};function oy(e,t,n){return Fn(e,fo(t,n))}function hi(e,t){return typeof e=="function"?e(t):e}function po(e){return e.split("-")[0]}function Jl(e){return e.split("-")[1]}function q0(e){return e==="x"?"y":"x"}function Y0(e){return e==="y"?"height":"width"}const tF=new Set(["top","bottom"]);function no(e){return tF.has(po(e))?"y":"x"}function X0(e){return q0(no(e))}function nF(e,t,n){n===void 0&&(n=!1);const r=Jl(e),o=X0(e),i=Y0(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=fp(s)),[s,fp(s)]}function rF(e){const t=fp(e);return[iy(e),t,iy(t)]}function iy(e){return e.replace(/start|end/g,t=>eF[t])}const dS=["left","right"],fS=["right","left"],oF=["top","bottom"],iF=["bottom","top"];
vendor: 16,195 bytes, line 83
83function sF(e,t,n){switch(e){case"top":case"bottom":return n?t?fS:dS:t?dS:fS;case"left":case"right":return t?oF:iF;default:return[]}}function aF(e,t,n,r){const o=Jl(e);let i=sF(po(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(iy)))),i}function fp(e){return e.replace(/left|right|bottom|top/g,t=>ZL[t])}function lF(e){return{top:0,right:0,bottom:0,left:0,...e}}function J0(e){return typeof e!="number"?lF(e):{top:e,right:e,bottom:e,left:e}}function Ml(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function pS(e,t,n){let{reference:r,floating:o}=e;const i=no(t),s=X0(t),a=Y0(s),l=po(t),u=i==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:c,y:r.y-o.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Jl(t)){case"start":h[s]-=f*(n&&u?-1:1);break;case"end":h[s]+=f*(n&&u?-1:1);break}return h}const uF=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=pS(u,r,l),f=r,h={},g=0;for(let v=0;v<a.length;v++){const{name:w,fn:b}=a[v],{x:y,y:x,data:R,reset:k}=await b({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=y??c,d=x??d,h={...h,[w]:{...h[w],...R}},k&&g<=50&&(g++,typeof k=="object"&&(k.placement&&(f=k.placement),k.rects&&(u=k.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:c,y:d}=pS(u,f,l)),v=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:h}};async function Q0(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=hi(t,e),g=J0(h),w=a[f?d==="floating"?"reference":"floating":d],b=Ml(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),y=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),R=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},k=Ml(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:l}):y);return{top:(b.top-k.top+g.top)/R.y,bottom:(k.bottom-b.bottom+g.bottom)/R.y,left:(b.left-k.left+g.left)/R.x,right:(k.right-b.right+g.right)/R.x}}const cF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=hi(e,t)||{};if(u==null)return{};const d=J0(c),f={x:n,y:r},h=X0(o),g=Y0(h),v=await s.getDimensions(u),w=h==="y",b=w?"top":"left",y=w?"bottom":"right",x=w?"clientHeight":"clientWidth",R=i.reference[g]+i.reference[h]-f[h]-i.floating[g],k=f[h]-i.reference[h],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=I?I[x]:0;(!C||!await(s.isElement==null?void 0:s.isElement(I)))&&(C=a.floating[x]||i.floating[g]);const _=R/2-k/2,T=C/2-v[g]/2-1,P=fo(d[b],T),M=fo(d[y],T),O=P,A=C-v[g]-M,V=C/2-v[g]/2+_,z=oy(O,V,A),N=!l.arrow&&Jl(o)!=null&&V!==z&&i.reference[g]/2-(V<O?P:M)-v[g]/2<0,F=N?V<O?V-O:V-A:0;return{[h]:f[h]+F,data:{[h]:z,centerOffset:V-z-F,...N&&{alignmentOffset:F}},reset:N}}}),dF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...w}=hi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=po(o),y=no(a),x=po(a)===a,R=await(l.isRTL==null?void 0:l.isRTL(u.floating)),k=f||(x||!v?[fp(a)]:rF(a)),I=g!=="none";!f&&I&&k.push(...aF(a,v,g,R));const C=[a,...k],_=await Q0(t,w),T=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&T.push(_[b]),d){const V=nF(o,s,R);T.push(_[V[0]],_[V[1]])}if(P=[...P,{placement:o,overflows:T}],!T.every(V=>V<=0)){var M,O;const V=(((M=i.flip)==null?void 0:M.index)||0)+1,z=C[V];if(z&&(!(d==="alignment"?y!==no(z):!1)||P.every(j=>no(j.placement)===y?j.overflows[0]>0:!0)))return{data:{index:V,overflows:P},reset:{placement:z}};let N=(O=P.filter(F=>F.overflows[0]<=0).sort((F,j)=>F.overflows[1]-j.overflows[1])[0])==null?void 0:O.placement;if(!N)switch(h){case"bestFit":{var A;const F=(A=P.filter(j=>{if(I){const L=no(j.placement);return L===y||L==="y"}return!0}).map(j=>[j.placement,j.overflows.filter(L=>L>0).reduce((L,B)=>L+B,0)]).sort((j,L)=>j[1]-L[1])[0])==null?void 0:A[0];F&&(N=F);break}case"initialPlacement":N=a;break}if(o!==N)return{reset:{placement:N}}}return{}}}};function cP(e){const t=fo(...e.map(i=>i.left)),n=fo(...e.map(i=>i.top)),r=Fn(...e.map(i=>i.right)),o=Fn(...e.map(i=>i.bottom));return{x:t,y:n,width:r-t,height:o-n}}function fF(e){const t=e.slice().sort((o,i)=>o.y-i.y),n=[];let r=null;for(let o=0;o<t.length;o++){const i=t[o];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(o=>Ml(cP(o)))}const pF=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:i,strategy:s}=t,{padding:a=2,x:l,y:u}=hi(e,t),c=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(r.reference))||[]),d=fF(c),f=Ml(cP(c)),h=J0(a);function g(){if(d.length===2&&d[0].left>d[1].right&&l!=null&&u!=null)return d.find(w=>l>w.left-h.left&&l<w.right+h.right&&u>w.top-h.top&&u<w.bottom+h.bottom)||f;if(d.length>=2){if(no(n)==="y"){const P=d[0],M=d[d.length-1],O=po(n)==="top",A=P.top,V=M.bottom,z=O?P.left:M.left,N=O?P.right:M.right,F=N-z,j=V-A;return{top:A,bottom:V,left:z,right:N,width:F,height:j,x:z,y:A}}const w=po(n)==="left",b=Fn(...d.map(P=>P.right)),y=fo(...d.map(P=>P.left)),x=d.filter(P=>w?P.left===y:P.right===b),R=x[0].top,k=x[x.length-1].bottom,I=y,C=b,_=C-I,T=k-R;return{top:R,bottom:k,left:I,right:C,width:_,height:T,x:I,y:R}}return f}const v=await i.getElementRects({reference:{getBoundingClientRect:g},floating:r.floating,strategy:s});return o.reference.x!==v.reference.x||o.reference.y!==v.reference.y||o.reference.width!==v.reference.width||o.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},dP=new Set(["left","top"]);async function hF(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=po(n),a=Jl(n),l=no(n)==="y",u=dP.has(s)?-1:1,c=i&&l?-1:1,d=hi(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const mF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await hF(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},gF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:b,y}=w;return{x:b,y}}},...l}=hi(e,t),u={x:n,y:r},c=await Q0(t,l),d=no(po(o)),f=q0(d);let h=u[f],g=u[d];if(i){const w=f==="y"?"top":"left",b=f==="y"?"bottom":"right",y=h+c[w],x=h-c[b];h=oy(y,h,x)}if(s){const w=d==="y"?"top":"left",b=d==="y"?"bottom":"right",y=g+c[w],x=g-c[b];g=oy(y,g,x)}const v=a.fn({...t,[f]:h,[d]:g});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[f]:i,[d]:s}}}}}},vF=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=hi(e,t),c={x:n,y:r},d=no(o),f=q0(d);let h=c[f],g=c[d];const v=hi(a,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const x=f==="y"?"height":"width",R=i.reference[f]-i.floating[x]+w.mainAxis,k=i.reference[f]+i.reference[x]-w.mainAxis;h<R?h=R:h>k&&(h=k)}if(u){var b,y;const x=f==="y"?"width":"height",R=dP.has(po(o)),k=i.reference[d]-i.floating[x]+(R&&((b=s.offset)==null?void 0:b[d])||0)+(R?0:w.crossAxis),I=i.reference[d]+i.reference[x]+(R?0:((y=s.offset)==null?void 0:y[d])||0)-(R?w.crossAxis:0);g<k?g=k:g>I&&(g=I)}return{[f]:h,[d]:g}}}},yF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=hi(e,t),c=await Q0(t,u),d=po(o),f=Jl(o),h=no(o)==="y",{width:g,height:v}=i.floating;let w,b;d==="top"||d==="bottom"?(w=d,b=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,w=f==="end"?"top":"bottom");const y=v-c.top-c.bottom,x=g-c.left-c.right,R=fo(v-c[w],y),k=fo(g-c[b],x),I=!t.middlewareData.shift;let C=R,_=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=y),I&&!f){const P=Fn(c.left,0),M=Fn(c.right,0),O=Fn(c.top,0),A=Fn(c.bottom,0);h?_=g-2*(P!==0||M!==0?P+M:Fn(c.left,c.right)):C=v-2*(O!==0||A!==0?O+A:Fn(c.top,c.bottom))}await l({...t,availableWidth:_,availableHeight:C});const T=await s.getDimensions(a.floating);return g!==T.width||v!==T.height?{reset:{rects:!0}}:{}}}};function fP(e){const t=$r(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xr(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=dp(n)!==i||dp(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Z0(e){return Ot(e)?e:e.contextElement}function bl(e){const t=Z0(e);if(!xr(t))return Io(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=fP(t);let s=(i?dp(n.width):n.width)/r,a=(i?dp(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const bF=Io(0);function pP(e){const t=ar(e);return!hh()||!t.visualViewport?bF:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wF(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ar(e)?!1:t}function ca(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Z0(e);let s=Io(1);t&&(r?Ot(r)&&(s=bl(r)):s=bl(e));const a=wF(i,n,r)?pP(i):Io(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(i){const f=ar(i),h=r&&Ot(r)?ar(r):r;let g=f,v=ny(g);for(;v&&r&&h!==g;){const w=bl(v),b=v.getBoundingClientRect(),y=$r(v),x=b.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,R=b.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;l*=w.x,u*=w.y,c*=w.x,d*=w.y,l+=x,u+=R,g=ar(v),v=ny(g)}}return Ml({width:c,height:d,x:l,y:u})}function gh(e,t){const n=mh(e).scrollLeft;return t?t.left+n:ca(No(e)).left+n}function hP(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-gh(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function xF(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=No(r),a=t?ph(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Io(1);const c=Io(0),d=xr(r);if((d||!d&&!i)&&((Xl(r)!=="body"||Yc(s))&&(l=mh(r)),xr(r))){const h=ca(r);u=bl(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const f=s&&!d&&!i?hP(s,l):Io(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function SF(e){return Array.from(e.getClientRects())}function CF(e){const t=No(e),n=mh(e),r=e.ownerDocument.body,o=Fn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Fn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+gh(e);const a=-n.scrollTop;return $r(r).direction==="rtl"&&(s+=Fn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const hS=25;function _F(e,t){const n=ar(e),r=No(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=hh();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const u=gh(r);if(u<=0){const c=r.ownerDocument,d=c.body,f=getComputedStyle(d),h=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-h);g<=hS&&(i-=g)}else u<=hS&&(i+=u);return{width:i,height:s,x:a,y:l}}const RF=new Set(["absolute","fixed"]);function EF(e,t){const n=ca(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xr(e)?bl(e):Io(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function mS(e,t,n){let r;if(t==="viewport")r=_F(e,n);else if(t==="document")r=CF(No(e));else if(Ot(t))r=EF(t,n);else{const o=pP(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ml(r)}function mP(e,t){const n=pi(e);return n===t||!Ot(n)||vs(n)?!1:$r(n).position==="fixed"||mP(n,t)}function TF(e,t){const n=t.get(e);if(n)return n;let r=ri(e,[],!1).filter(a=>Ot(a)&&Xl(a)!=="body"),o=null;const i=$r(e).position==="fixed";let s=i?pi(e):e;for(;Ot(s)&&!vs(s);){const a=$r(s),l=K0(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&RF.has(o.position)||Yc(s)&&!l&&mP(e,s))?r=r.filter(c=>c!==s):o=a,s=pi(s)}return t.set(e,r),r}function PF(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?ph(t)?[]:TF(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,c)=>{const d=mS(t,c,o);return u.top=Fn(d.top,u.top),u.right=fo(d.right,u.right),u.bottom=fo(d.bottom,u.bottom),u.left=Fn(d.left,u.left),u},mS(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function kF(e){const{width:t,height:n}=fP(e);return{width:t,height:n}}function IF(e,t,n){const r=xr(t),o=No(t),i=n==="fixed",s=ca(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Io(0);function u(){l.x=gh(o)}if(r||!r&&!i)if((Xl(t)!=="body"||Yc(o))&&(a=mh(t)),r){const h=ca(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=o&&!r&&!i?hP(o,a):Io(0),d=s.left+a.scrollLeft-l.x-c.x,f=s.top+a.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function pg(e){return $r(e).position==="static"}function gS(e,t){if(!xr(e)||$r(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return No(e)===n&&(n=n.ownerDocument.body),n}function gP(e,t){const n=ar(e);if(ph(e))return n;if(!xr(e)){let o=pi(e);for(;o&&!vs(o);){if(Ot(o)&&!pg(o))return o;o=pi(o)}return n}let r=gS(e,t);for(;r&&FL(r)&&pg(r);)r=gS(r,t);return r&&vs(r)&&pg(r)&&!K0(r)?n:r||HL(e)||n}const MF=async function(e){const t=this.getOffsetParent||gP,n=this.getDimensions,r=await n(e.floating);return{reference:IF(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function DF(e){return $r(e).direction==="rtl"}const AF={convertOffsetParentRelativeRectToViewportRelativeRect:xF,getDocumentElement:No,getClippingRect:PF,getOffsetParent:gP,getElementRects:MF,getClientRects:SF,getDimensions:kF,getScale:bl,isElement:Ot,isRTL:DF};function vP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jF(e,t){let n=null,r;const o=No(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(a||t(),!f||!h)return;const g=qd(d),v=qd(o.clientWidth-(c+f)),w=qd(o.clientHeight-(d+h)),b=qd(c),x={rootMargin:-g+"px "+-v+"px "+-w+"px "+-b+"px",threshold:Fn(0,fo(1,l))||1};let R=!0;function k(I){const C=I[0].intersectionRatio;if(C!==l){if(!R)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!vP(u,e.getBoundingClientRect())&&s(),R=!1}try{n=new IntersectionObserver(k,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,x)}n.observe(e)}return s(!0),i}function OF(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Z0(e),c=o||i?[...u?ri(u):[],...ri(t)]:[];
83c.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const d=u&&a?jF(u,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(b=>{let[y]=b;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,v=l?ca(e):null;l&&w();function w(){const b=ca(e);v&&!vP(v,b)&&n(),v=b,g=requestAnimationFrame(w)}return n(),()=>{var b;c.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),d==null||d(),(b=h)==null||b.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const NF=mF,LF=gF,FF=dF,$F=yF,vS=cF,zF=pF,VF=vF,BF=(e,t,n)=>{const r=new Map,o={platform:AF,...n},i={...o.platform,_c:r};return uF(e,t,{...o,platform:i})};var HF=typeof document<"u",UF=function(){},kf=HF?S.useLayoutEffect:UF;function pp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;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(!pp(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!pp(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function yP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yS(e,t){const n=yP(e);return Math.round(t*n)/n}function hg(e){const t=S.useRef(e);return kf(()=>{t.current=e}),t}function GF(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=S.useState(r);pp(f,r)||h(r);const[g,v]=S.useState(null),[w,b]=S.useState(null),y=S.useCallback(j=>{j!==I.current&&(I.current=j,v(j))},[]),x=S.useCallback(j=>{j!==C.current&&(C.current=j,b(j))},[]),R=i||g,k=s||w,I=S.useRef(null),C=S.useRef(null),_=S.useRef(c),T=l!=null,P=hg(l),M=hg(o),O=hg(u),A=S.useCallback(()=>{if(!I.current||!C.current)return;const j={placement:t,strategy:n,middleware:f};M.current&&(j.platform=M.current),BF(I.current,C.current,j).then(L=>{const B={...L,isPositioned:O.current!==!1};V.current&&!pp(_.current,B)&&(_.current=B,wa.flushSync(()=>{d(B)}))})},[f,t,n,M,O]);kf(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(j=>({...j,isPositioned:!1})))},[u]);const V=S.useRef(!1);kf(()=>(V.current=!0,()=>{V.current=!1}),[]),kf(()=>{if(R&&(I.current=R),k&&(C.current=k),R&&k){if(P.current)return P.current(R,k,A);A()}},[R,k,A,P,T]);const z=S.useMemo(()=>({reference:I,floating:C,setReference:y,setFloating:x}),[y,x]),N=S.useMemo(()=>({reference:R,floating:k}),[R,k]),F=S.useMemo(()=>{const j={position:n,left:0,top:0};if(!N.floating)return j;const L=yS(N.floating,c.x),B=yS(N.floating,c.y);return a?{...j,transform:"translate("+L+"px, "+B+"px)",...yP(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:B}},[n,a,N.floating,c.x,c.y]);return S.useMemo(()=>({...c,update:A,refs:z,elements:N,floatingStyles:F}),[c,A,z,N,F])}const WF=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?vS({element:r.current,padding:o}).fn(n):{}:r?vS({element:r,padding:o}).fn(n):{}}}},bP=(e,t)=>({...NF(e),options:[e,t]}),eb=(e,t)=>({...LF(e),options:[e,t]}),bS=(e,t)=>({...VF(e),options:[e,t]}),hp=(e,t)=>({...FF(e),options:[e,t]}),KF=(e,t)=>({...$F(e),options:[e,t]}),lc=(e,t)=>({...zF(e),options:[e,t]}),wP=(e,t)=>({...WF(e),options:[e,t]});function qF(e){return S.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const xP={...kR},YF=xP.useInsertionEffect,XF=YF||(e=>e());function qo(e){const t=S.useRef(()=>{});return XF(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var Mo=typeof document<"u"?S.useLayoutEffect:S.useEffect;let wS=!1,JF=0;const xS=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+JF++;function QF(){const[e,t]=S.useState(()=>wS?xS():void 0);return Mo(()=>{e==null&&t(xS())},[]),S.useEffect(()=>{wS=!0},[]),e}const ZF=xP.useId,SP=ZF||QF;function e$(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const t$=S.createContext(null),n$=S.createContext(null),tb=()=>{var e;return((e=S.useContext(t$))==null?void 0:e.id)||null},nb=()=>S.useContext(n$);function rb(e){return"data-floating-ui-"+e}function mg(e){const t=S.useRef(e);return Mo(()=>{t.current=e}),t}const SS=rb("safe-polygon");function If(e,t,n){return n&&!ry(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function r$(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:s}=e,{enabled:a=!0,delay:l=0,handleClose:u=null,mouseOnly:c=!1,restMs:d=0,move:f=!0}=t,h=nb(),g=tb(),v=mg(u),w=mg(l),b=mg(n),y=S.useRef(),x=S.useRef(-1),R=S.useRef(),k=S.useRef(-1),I=S.useRef(!0),C=S.useRef(!1),_=S.useRef(()=>{}),T=S.useRef(!1),P=S.useCallback(()=>{var F;const j=(F=o.current.openEvent)==null?void 0:F.type;return(j==null?void 0:j.includes("mouse"))&&j!=="mousedown"},[o]);S.useEffect(()=>{if(!a)return;function F(j){let{open:L}=j;L||(clearTimeout(x.current),clearTimeout(k.current),I.current=!0,T.current=!1)}return i.on("openchange",F),()=>{i.off("openchange",F)}},[a,i]),S.useEffect(()=>{if(!a||!v.current||!n)return;function F(L){P()&&r(!1,L,"hover")}const j=Xs(s.floating).documentElement;return j.addEventListener("mouseleave",F),()=>{j.removeEventListener("mouseleave",F)}},[s.floating,n,r,a,v,P]);const M=S.useCallback(function(F,j,L){j===void 0&&(j=!0),L===void 0&&(L="hover");const B=If(w.current,"close",y.current);B&&!R.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,F,L),B)):j&&(clearTimeout(x.current),r(!1,F,L))},[w,r]),O=qo(()=>{_.current(),R.current=void 0}),A=qo(()=>
83{if(C.current){const F=Xs(s.floating).body;F.style.pointerEvents="",F.removeAttribute(SS),C.current=!1}}),V=qo(()=>o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1);S.useEffect(()=>{if(!a)return;function F(H){if(clearTimeout(x.current),I.current=!1,c&&!ry(y.current)||d>0&&!If(w.current,"open"))return;const G=If(w.current,"open",y.current);G?x.current=window.setTimeout(()=>{b.current||r(!0,H,"hover")},G):n||r(!0,H,"hover")}function j(H){if(V())return;_.current();const G=Xs(s.floating);if(clearTimeout(k.current),T.current=!1,v.current&&o.current.floatingContext){n||clearTimeout(x.current),R.current=v.current({...o.current.floatingContext,tree:h,x:H.clientX,y:H.clientY,onClose(){A(),O(),V()||M(H,!0,"safe-polygon")}});const oe=R.current;G.addEventListener("mousemove",oe),_.current=()=>{G.removeEventListener("mousemove",oe)};return}(y.current==="touch"?!jc(s.floating,H.relatedTarget):!0)&&M(H)}function L(H){V()||o.current.floatingContext&&(v.current==null||v.current({...o.current.floatingContext,tree:h,x:H.clientX,y:H.clientY,onClose(){A(),O(),V()||M(H)}})(H))}if(Ot(s.domReference)){var B;const H=s.domReference;return n&&H.addEventListener("mouseleave",L),(B=s.floating)==null||B.addEventListener("mouseleave",L),f&&H.addEventListener("mousemove",F,{once:!0}),H.addEventListener("mouseenter",F),H.addEventListener("mouseleave",j),()=>{var G;n&&H.removeEventListener("mouseleave",L),(G=s.floating)==null||G.removeEventListener("mouseleave",L),f&&H.removeEventListener("mousemove",F),H.removeEventListener("mouseenter",F),H.removeEventListener("mouseleave",j)}}},[s,a,e,c,d,f,M,O,A,r,n,b,h,w,v,o,V]),Mo(()=>{var F;if(a&&n&&(F=v.current)!=null&&F.__options.blockPointerEvents&&P()){C.current=!0;const L=s.floating;if(Ot(s.domReference)&&L){var j;const B=Xs(s.floating).body;B.setAttribute(SS,"");const H=s.domReference,G=h==null||(j=h.nodesRef.current.find(ee=>ee.id===g))==null||(j=j.context)==null?void 0:j.elements.floating;return G&&(G.style.pointerEvents=""),B.style.pointerEvents="none",H.style.pointerEvents="auto",L.style.pointerEvents="auto",()=>{B.style.pointerEvents="",H.style.pointerEvents="",L.style.pointerEvents=""}}}},[a,n,g,s,h,v,P]),Mo(()=>{n||(y.current=void 0,T.current=!1,O(),A())},[n,O,A]),S.useEffect(()=>()=>{O(),clearTimeout(x.current),clearTimeout(k.current),A()},[a,s.domReference,O,A]);const z=S.useMemo(()=>{function F(j){y.current=j.pointerType}return{onPointerDown:F,onPointerEnter:F,onMouseMove(j){const{nativeEvent:L}=j;function B(){!I.current&&!b.current&&r(!0,L,"hover")}c&&!ry(y.current)||n||d===0||T.current&&j.movementX**2+j.movementY**2<2||(clearTimeout(k.current),y.current==="touch"?B():(T.current=!0,k.current=window.setTimeout(B,d)))}}},[c,r,n,b,d]),N=S.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(F){V()||M(F.nativeEvent,!1)}}),[M,V]);return S.useMemo(()=>a?{reference:z,floating:N}:{},[a,z,N])}const sy=()=>{},CP=S.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:sy,setState:sy,isInstantPhase:!1}),o$=()=>S.useContext(CP);function i$(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,i]=S.useReducer((l,u)=>({...l,...u}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),s=S.useRef(null),a=S.useCallback(l=>{i({currentId:l})},[]);return Mo(()=>{o.currentId?s.current===null?s.current=o.currentId:o.isInstantPhase||i({isInstantPhase:!0}):(o.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)},[o.currentId,o.isInstantPhase]),S.createElement(CP.Provider,{value:S.useMemo(()=>({...o,setState:i,setCurrentId:a}),[o,a])},t)}function s$(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:i,enabled:s=!0}=t,a=i??o,l=o$(),{currentId:u,setCurrentId:c,initialDelay:d,setState:f,timeoutMs:h}=l;return Mo(()=>{s&&u&&(f({delay:{open:1,close:If(d,"close")}}),u!==a&&r(!1))},[s,a,r,f,u,d]),Mo(()=>{function g(){r(!1),f({delay:d,currentId:null})}if(s&&u&&!n&&u===a){if(h){const v=window.setTimeout(g,h);return()=>{clearTimeout(v)}}g()}},[s,n,f,u,a,r,d,h]),Mo(()=>{s&&(c===sy||!n||c(a))},[s,n,c,a]),l}function gg(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(s=>{var a;return o.parentId===s.id&&((a=o.context)==null?void 0:a.open)})}),n=n.concat(r);return n}const a$="data-floating-ui-focusable",l$={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},u$={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},CS=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function c$(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:h,capture:g}=t,v=nb(),w=qo(typeof l=="function"?l:()=>!1),b=typeof l=="function"?w:l,y=S.useRef(!1),x=S.useRef(!1),{escapeKey:R,outsidePress:k}=CS(h),{escapeKey:I,outsidePress:C}=CS(g),_=S.useRef(!1),T=qo(z=>{var N;if(!n||!s||!a||z.key!=="Escape"||_.current)return;const F=(N=i.current.floatingContext)==null?void 0:N.nodeId,j=v?gg(v.nodesRef.current,F):[];if(!R&&(z.stopPropagation(),j.length>0)){let L=!0;if(j.forEach(B=>{var H;if((H=B.context)!=null&&H.open&&!B.context.dataRef.current.__escapeKeyBubbles){L=!1;return}}),!L)return}r(!1,YL(z)?z.nativeEvent:z,"escape-key")}),P=qo(z=>{var N;const F=()=>{var j;T(z),(j=Ya(z))==null||j.removeEventListener("keydown",F)};(N=Ya(z))==null||N.addEventListener("keydown",F)}),M=qo(z=>{var N;const F=y.current;y.current=!1;const j=x.current;if(x.current=!1,u==="click"&&j||F||typeof b=="function"&&!b(z))return;const L=Ya(z),B="["+rb("inert")+"]",H=Xs(o.floating).querySelectorAll(B);let G=Ot(L)?L:null;for(;G&&!vs(G);){const J=pi(G);if(vs(J)||!Ot(J))break;G=J}if(H.length&&Ot(L)&&!XL(L)&&!jc(L,o.floating)&&Array.from(H).every(J=>!jc(G,J)))return;if(xr(L)&&V){const J=L.clientWidth>0&&L.scrollWidth>L.clientWidth,q=L.clientHeight>0&&L.scrollHeight>L.clientHeight;let ne=q&&z.offsetX>L.clientWidth;if(q&&$r(L).direction==="rtl"&&(ne=z.offsetX<=L.offsetWidth-L.clientWidth),ne||J&&z.offsetY>L.clientHeight)return}const ee=(N=i.current.floatingContext)==null?void 0:N.nodeId,oe=v&&gg(v.nodesRef.current,ee).some(J=>{var q;return fg(z,(q=J.context)==null?void 0:q.elements.floating)});if(fg(z,o.floating)||fg(z,o.domReference)||oe)return;const X=v?gg(v.nodesRef.current,ee):[];if(X.length>0){let J=!0;if(X.forEach(q=>{var ne;
83if((ne=q.context)!=null&&ne.open&&!q.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,z,"outside-press")}),O=qo(z=>{var N;const F=()=>{var j;M(z),(j=Ya(z))==null||j.removeEventListener(u,F)};(N=Ya(z))==null||N.addEventListener(u,F)});S.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=R,i.current.__outsidePressBubbles=k;let z=-1;function N(H){r(!1,H,"ancestor-scroll")}function F(){window.clearTimeout(z),_.current=!0}function j(){z=window.setTimeout(()=>{_.current=!1},hh()?5:0)}const L=Xs(o.floating);a&&(L.addEventListener("keydown",I?P:T,I),L.addEventListener("compositionstart",F),L.addEventListener("compositionend",j)),b&&L.addEventListener(u,C?O:M,C);let B=[];return f&&(Ot(o.domReference)&&(B=ri(o.domReference)),Ot(o.floating)&&(B=B.concat(ri(o.floating))),!Ot(o.reference)&&o.reference&&o.reference.contextElement&&(B=B.concat(ri(o.reference.contextElement)))),B=B.filter(H=>{var G;return H!==((G=L.defaultView)==null?void 0:G.visualViewport)}),B.forEach(H=>{H.addEventListener("scroll",N,{passive:!0})}),()=>{a&&(L.removeEventListener("keydown",I?P:T,I),L.removeEventListener("compositionstart",F),L.removeEventListener("compositionend",j)),b&&L.removeEventListener(u,C?O:M,C),B.forEach(H=>{H.removeEventListener("scroll",N)}),window.clearTimeout(z)}},[i,o,a,b,u,n,r,f,s,R,k,T,I,P,M,C,O]),S.useEffect(()=>{y.current=!1},[b,u]);const A=S.useMemo(()=>({onKeyDown:T,[l$[d]]:z=>{c&&r(!1,z.nativeEvent,"reference-press")}}),[T,r,c,d]),V=S.useMemo(()=>({onKeyDown:T,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[u$[u]]:()=>{y.current=!0}}),[T,u]);return S.useMemo(()=>s?{reference:A,floating:V}:{},[s,A,V])}function d$(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=SP(),i=S.useRef({}),[s]=S.useState(()=>e$()),a=tb()!=null,[l,u]=S.useState(r.reference),c=qo((h,g,v)=>{i.current.openEvent=h?g:void 0,s.emit("openchange",{open:h,event:g,reason:v,nested:a}),n==null||n(h,g,v)}),d=S.useMemo(()=>({setPositionReference:u}),[]),f=S.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return S.useMemo(()=>({dataRef:i,open:t,onOpenChange:c,elements:f,events:s,floatingId:o,refs:d}),[t,c,f,s,o,d])}function ob(e){e===void 0&&(e={});const{nodeId:t}=e,n=d$({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=S.useState(null),[a,l]=S.useState(null),c=(o==null?void 0:o.domReference)||i,d=S.useRef(null),f=nb();Mo(()=>{c&&(d.current=c)},[c]);const h=GF({...e,elements:{...o,...a&&{reference:a}}}),g=S.useCallback(x=>{const R=Ot(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;l(R),h.refs.setReference(R)},[h.refs]),v=S.useCallback(x=>{(Ot(x)||x===null)&&(d.current=x,s(x)),(Ot(h.refs.reference.current)||h.refs.reference.current===null||x!==null&&!Ot(x))&&h.refs.setReference(x)},[h.refs]),w=S.useMemo(()=>({...h.refs,setReference:v,setPositionReference:g,domReference:d}),[h.refs,v,g]),b=S.useMemo(()=>({...h.elements,domReference:c}),[h.elements,c]),y=S.useMemo(()=>({...h,...r,refs:w,elements:b,nodeId:t}),[h,w,b,t,r]);return Mo(()=>{r.dataRef.current.floatingContext=y;const x=f==null?void 0:f.nodesRef.current.find(R=>R.id===t);x&&(x.context=y)}),S.useMemo(()=>({...h,context:y,refs:w,elements:b}),[h,w,b,y])}function f$(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:s}=e,{enabled:a=!0,visibleOnly:l=!0}=t,u=S.useRef(!1),c=S.useRef(),d=S.useRef(!0);S.useEffect(()=>{if(!a)return;const h=ar(s.domReference);function g(){!n&&xr(s.domReference)&&s.domReference===uS(Xs(s.domReference))&&(u.current=!0)}function v(){d.current=!0}return h.addEventListener("blur",g),h.addEventListener("keydown",v,!0),()=>{h.removeEventListener("blur",g),h.removeEventListener("keydown",v,!0)}},[s.domReference,n,a]),S.useEffect(()=>{if(!a)return;function h(g){let{reason:v}=g;(v==="reference-press"||v==="escape-key")&&(u.current=!0)}return o.on("openchange",h),()=>{o.off("openchange",h)}},[o,a]),S.useEffect(()=>()=>{clearTimeout(c.current)},[]);const f=S.useMemo(()=>({onPointerDown(h){GL(h.nativeEvent)||(d.current=!1)},onMouseLeave(){u.current=!1},onFocus(h){if(u.current)return;const g=Ya(h.nativeEvent);if(l&&Ot(g))try{if(WL()&&KL())throw Error();if(!g.matches(":focus-visible"))return}catch{if(!d.current&&!QL(g))return}r(!0,h.nativeEvent,"focus")},onBlur(h){u.current=!1;const g=h.relatedTarget,v=h.nativeEvent,w=Ot(g)&&g.hasAttribute(rb("focus-guard"))&&g.getAttribute("data-type")==="outside";c.current=window.setTimeout(()=>{var b;const y=uS(s.domReference?s.domReference.ownerDocument:document);!g&&y===s.domReference||jc((b=i.current.floatingContext)==null?void 0:b.refs.floating.current,y)||jc(s.domReference,y)||w||r(!1,v,"focus")})}}),[i,s.domReference,r,l]);return S.useMemo(()=>a?{reference:f}:{},[a,f])}const _S="active",RS="selected";function vg(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[_S]:s,[RS]:a,...l}=e;i=l}return{...n==="floating"&&{tabIndex:-1,[a$]:""},...i,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>
83(a&&Object.entries(a).forEach(l=>{let[u,c]=l;if(!(o&&[_S,RS].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var d;(d=r.get(u))==null||d.push(c),s[u]=function(){for(var f,h=arguments.length,g=new Array(h),v=0;v<h;v++)g[v]=arguments[v];return(f=r.get(u))==null?void 0:f.map(w=>w(...g)).find(w=>w!==void 0)}}}else s[u]=c}),s),{})}}function p$(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),o=S.useCallback(a=>vg(a,e,"reference"),t),i=S.useCallback(a=>vg(a,e,"floating"),n),s=S.useCallback(a=>vg(a,e,"item"),r);return S.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}const h$=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function m$(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:s="dialog"}=t,a=(n=h$.get(s))!=null?n:s,l=SP(),c=tb()!=null,d=S.useMemo(()=>a==="tooltip"||s==="label"?{["aria-"+(s==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":r?o:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&c&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},[a,o,c,r,l,s]),f=S.useMemo(()=>{const g={id:o,...a&&{role:a}};return a==="tooltip"||s==="label"?g:{...g,...a==="menu"&&{"aria-labelledby":l}}},[a,o,l,s]),h=S.useCallback(g=>{let{active:v,selected:w}=g;const b={role:"option",...v&&{id:o+"-option"}};switch(s){case"select":return{...b,"aria-selected":v&&w};case"combobox":return{...b,...v&&{"aria-selected":!0}}}return{}},[o,s]);return S.useMemo(()=>i?{reference:d,floating:f,item:h}:{},[i,d,f,h])}const[g$,Vr]=ur("ScrollArea.Root component was not found in tree");function Dl(e,t){const n=Hs(t);Kl(()=>{let r=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(r),o.unobserve(e)}}},[e,n])}const v$=S.forwardRef((e,t)=>{const{style:n,...r}=e,o=Vr(),[i,s]=S.useState(0),[a,l]=S.useState(0),u=!!(i&&a);return Dl(o.scrollbarX,()=>{var d;const c=((d=o.scrollbarX)==null?void 0:d.offsetHeight)||0;o.onCornerHeightChange(c),l(c)}),Dl(o.scrollbarY,()=>{var d;const c=((d=o.scrollbarY)==null?void 0:d.offsetWidth)||0;o.onCornerWidthChange(c),s(c)}),u?p.jsx("div",{...r,ref:t,style:{...n,width:i,height:a}}):null}),y$=S.forwardRef((e,t)=>{const n=Vr(),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?p.jsx(v$,{...e,ref:t}):null}),b$={scrollHideDelay:1e3,type:"hover"},_P=S.forwardRef((e,t)=>{const n=re("ScrollAreaRoot",b$,e),{type:r,scrollHideDelay:o,scrollbars:i,...s}=n,[a,l]=S.useState(null),[u,c]=S.useState(null),[d,f]=S.useState(null),[h,g]=S.useState(null),[v,w]=S.useState(null),[b,y]=S.useState(0),[x,R]=S.useState(0),[k,I]=S.useState(!1),[C,_]=S.useState(!1),T=gn(t,P=>l(P));return p.jsx(g$,{value:{type:r,scrollHideDelay:o,scrollArea:a,viewport:u,onViewportChange:c,content:d,onContentChange:f,scrollbarX:h,onScrollbarXChange:g,scrollbarXEnabled:k,onScrollbarXEnabledChange:I,scrollbarY:v,onScrollbarYChange:w,scrollbarYEnabled:C,onScrollbarYEnabledChange:_,onCornerWidthChange:y,onCornerHeightChange:R},children:p.jsx(te,{...s,ref:T,__vars:{"--sa-corner-width":i!=="xy"?"0px":`${b}px`,"--sa-corner-height":i!=="xy"?"0px":`${x}px`}})})});_P.displayName="@mantine/core/ScrollAreaRoot";function RP(e,t){const n=e/t;return Number.isNaN(n)?0:n}function vh(e){const t=RP(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function EP(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function w$(e,[t,n]){return Math.min(n,Math.max(t,e))}function ES(e,t,n="ltr"){const r=vh(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,s=t.content-t.viewport,a=i-r,l=n==="ltr"?[0,s]:[s*-1,0],u=w$(e,l);return EP([0,s],[0,a])(u)}function x$(e,t,n,r="ltr"){const o=vh(n),i=o/2,s=t||i,a=o-s,l=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-a,c=n.content-n.viewport,d=r==="ltr"?[0,c]:[c*-1,0];return EP([l,u],d)(e)}function TP(e,t){return e>0&&e<t}function mp(e){return e?parseInt(e,10):0}function ta(e,t,{checkForDefaultPrevented:n=!0}={}){return r=>{e==null||e(r),(n===!1||!r.defaultPrevented)&&(t==null||t(r))}}const[S$,PP]=ur("ScrollAreaScrollbar was not found in tree"),kP=S.forwardRef((e,t)=>
83{const{sizes:n,hasThumb:r,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:a,onDragScroll:l,onWheelScroll:u,onResize:c,...d}=e,f=Vr(),[h,g]=S.useState(null),v=gn(t,_=>g(_)),w=S.useRef(null),b=S.useRef(""),{viewport:y}=f,x=n.content-n.viewport,R=Hs(u),k=Hs(a),I=sh(c,10),C=_=>{if(w.current){const T=_.clientX-w.current.left,P=_.clientY-w.current.top;l({x:T,y:P})}};return S.useEffect(()=>{const _=T=>{const P=T.target;(h==null?void 0:h.contains(P))&&R(T,x)};return document.addEventListener("wheel",_,{passive:!1}),()=>document.removeEventListener("wheel",_,{passive:!1})},[y,h,x,R]),S.useEffect(k,[n,k]),Dl(h,I),Dl(f.content,I),p.jsx(S$,{value:{scrollbar:h,hasThumb:r,onThumbChange:Hs(o),onThumbPointerUp:Hs(i),onThumbPositionChange:k,onThumbPointerDown:Hs(s)},children:p.jsx("div",{...d,ref:v,"data-mantine-scrollbar":!0,style:{position:"absolute",...d.style},onPointerDown:ta(e.onPointerDown,_=>{_.preventDefault(),_.button===0&&(_.target.setPointerCapture(_.pointerId),w.current=h.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",C(_))}),onPointerMove:ta(e.onPointerMove,C),onPointerUp:ta(e.onPointerUp,_=>{const T=_.target;T.hasPointerCapture(_.pointerId)&&(_.preventDefault(),T.releasePointerCapture(_.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=b.current,w.current=null}})})}),IP=S.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...i}=e,s=Vr(),[a,l]=S.useState(),u=S.useRef(null),c=gn(t,u,s.onScrollbarXChange);return S.useEffect(()=>{u.current&&l(getComputedStyle(u.current))},[u]),p.jsx(kP,{"data-orientation":"horizontal",...i,ref:c,sizes:n,style:{...o,"--sa-thumb-width":`${vh(n)}px`},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,f)=>{if(s.viewport){const h=s.viewport.scrollLeft+d.deltaX;e.onWheelScroll(h),TP(h,f)&&d.preventDefault()}},onResize:()=>{u.current&&s.viewport&&a&&r({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:mp(a.paddingLeft),paddingEnd:mp(a.paddingRight)}})}})});IP.displayName="@mantine/core/ScrollAreaScrollbarX";const MP=S.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,style:o,...i}=e,s=Vr(),[a,l]=S.useState(),u=S.useRef(null),c=gn(t,u,s.onScrollbarYChange);return S.useEffect(()=>{u.current&&l(window.getComputedStyle(u.current))},[]),p.jsx(kP,{...i,"data-orientation":"vertical",ref:c,sizes:n,style:{"--sa-thumb-height":`${vh(n)}px`,...o},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,f)=>{if(s.viewport){const h=s.viewport.scrollTop+d.deltaY;e.onWheelScroll(h),TP(h,f)&&d.preventDefault()}},onResize:()=>{u.current&&s.viewport&&a&&r({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:mp(a.paddingTop),paddingEnd:mp(a.paddingBottom)}})}})});MP.displayName="@mantine/core/ScrollAreaScrollbarY";const yh=S.forwardRef((e,t)=>{const{orientation:n="vertical",...r}=e,{dir:o}=Er(),i=Vr(),s=S.useRef(null),a=S.useRef(0),[l,u]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=RP(l.viewport,l.content),d={...r,sizes:l,onSizesChange:u,hasThumb:c>0&&c<1,onThumbChange:h=>{s.current=h},onThumbPointerUp:()=>{a.current=0},onThumbPointerDown:h=>{a.current=h}},f=(h,g)=>x$(h,a.current,l,g);return n==="horizontal"?p.jsx(IP,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const h=i.viewport.scrollLeft,g=ES(h,l,o);s.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollLeft=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollLeft=f(h,o))}}):n==="vertical"?p.jsx(MP,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&s.current){const h=i.viewport.scrollTop,g=ES(h,l);l.scrollbar.size===0?s.current.style.setProperty("--thumb-opacity","0"):s.current.style.setProperty("--thumb-opacity","1"),s.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:h=>{i.viewport&&(i.viewport.scrollTop=h)},onDragScroll:h=>{i.viewport&&(i.viewport.scrollTop=f(h))}}):null});yh.displayName="@mantine/core/ScrollAreaScrollbarVisible";const ib=S.forwardRef((e,t)=>
83{const n=Vr(),{forceMount:r,...o}=e,[i,s]=S.useState(!1),a=e.orientation==="horizontal",l=sh(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,c=n.viewport.offsetHeight<n.viewport.scrollHeight;s(a?u:c)}},10);return Dl(n.viewport,l),Dl(n.content,l),r||i?p.jsx(yh,{"data-state":i?"visible":"hidden",...o,ref:t}):null});ib.displayName="@mantine/core/ScrollAreaScrollbarAuto";const DP=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Vr(),[i,s]=S.useState(!1);return S.useEffect(()=>{const{scrollArea:a}=o;let l=0;if(a){const u=()=>{window.clearTimeout(l),s(!0)},c=()=>{l=window.setTimeout(()=>s(!1),o.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",c),()=>{window.clearTimeout(l),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),n||i?p.jsx(ib,{"data-state":i?"visible":"hidden",...r,ref:t}):null});DP.displayName="@mantine/core/ScrollAreaScrollbarHover";const C$=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Vr(),i=e.orientation==="horizontal",[s,a]=S.useState("hidden"),l=sh(()=>a("idle"),100);return S.useEffect(()=>{if(s==="idle"){const u=window.setTimeout(()=>a("hidden"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,o.scrollHideDelay]),S.useEffect(()=>{const{viewport:u}=o,c=i?"scrollLeft":"scrollTop";if(u){let d=u[c];const f=()=>{const h=u[c];d!==h&&(a("scrolling"),l()),d=h};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[o.viewport,i,l]),n||s!=="hidden"?p.jsx(yh,{"data-state":s==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ta(e.onPointerEnter,()=>a("interacting")),onPointerLeave:ta(e.onPointerLeave,()=>a("idle"))}):null}),ay=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Vr(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=o,a=e.orientation==="horizontal";return S.useEffect(()=>(a?i(!0):s(!0),()=>{a?i(!1):s(!1)}),[a,i,s]),o.type==="hover"?p.jsx(DP,{...r,ref:t,forceMount:n}):o.type==="scroll"?p.jsx(C$,{...r,ref:t,forceMount:n}):o.type==="auto"?p.jsx(ib,{...r,ref:t,forceMount:n}):o.type==="always"?p.jsx(yh,{...r,ref:t}):null});ay.displayName="@mantine/core/ScrollAreaScrollbar";function _$(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function o(){const i={left:e.scrollLeft,top:e.scrollTop},s=n.left!==i.left,a=n.top!==i.top;(s||a)&&t(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)}const AP=S.forwardRef((e,t)=>{const{style:n,...r}=e,o=Vr(),i=PP(),{onThumbPositionChange:s}=i,a=gn(t,c=>i.onThumbChange(c)),l=S.useRef(void 0),u=sh(()=>{l.current&&(l.current(),l.current=void 0)},100);return S.useEffect(()=>{const{viewport:c}=o;if(c){const d=()=>{if(u(),!l.current){const f=_$(c,s);l.current=f,s()}};return s(),c.addEventListener("scroll",d),()=>c.removeEventListener("scroll",d)}},[o.viewport,u,s]),p.jsx("div",{"data-state":i.hasThumb?"visible":"hidden",...r,ref:a,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:ta(e.onPointerDownCapture,c=>{const f=c.target.getBoundingClientRect(),h=c.clientX-f.left,g=c.clientY-f.top;i.onThumbPointerDown({x:h,y:g})}),onPointerUp:ta(e.onPointerUp,i.onThumbPointerUp)})});AP.displayName="@mantine/core/ScrollAreaThumb";const ly=S.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=PP();return n||o.hasThumb?p.jsx(AP,{ref:t,...r}):null});ly.displayName="@mantine/core/ScrollAreaThumb";const jP=S.forwardRef(({children:e,style:t,...n},r)=>{const o=Vr(),i=gn(r,o.onViewportChange);return p.jsx(te,{...n,ref:i,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...t},children:p.jsx("div",{style:{minWidth:"100%"},ref:o.onContentChange,children:e})})});jP.displayName="@mantine/core/ScrollAreaViewport";var sb={root:"m_d57069b5",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const OP={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},R$=(e,{scrollbarSize:t,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":ae(t),"--scrollarea-over-scroll-behavior":n}}),Ca=fe((e,t)=>{const n=re("ScrollArea",OP,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,scrollbarSize:l,vars:u,type:c,scrollHideDelay:d,viewportProps:f,viewportRef:h,onScrollPositionChange:g,children:v,offsetScrollbars:w,scrollbars:b,onBottomReached:y,onTopReached:x,overscrollBehavior:R,...k}=n,[I,C]=S.useState(!1),[_,T]=S.useState(!1),[P,M]=S.useState(!1),O=Te({name:"ScrollArea",props:n,classes:sb,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:u,varsResolver:R$}),A=S.useRef(null),V=qF([h,A]);return S.useEffect(()=>{if(!A.current||w!=="present")return;const z=A.current,N=new ResizeObserver(()=>{const{scrollHeight:F,clientHeight:j,scrollWidth:L,clientWidth:B}=z;T(F>j),M(L>B)});return N.observe(z),()=>N.disconnect()},[A,w]),p.jsxs(_P,{type:c==="never"?"always":c,scrollHideDelay:d,ref:t,scrollbars:b,...O("root"),...k,children:[p.jsx(jP,{...f,...O("viewport",{style:f==null?void 0:f.style}),ref:V,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":b||void 0,"data-horizontal-hidden":w==="present"&&!P?"true":void 0,"data-vertical-hidden":w==="present"&&!_?"true":void 0,onScroll:z=>{var L;(L=f==null?void 0:f.onScroll)==null||L.call(f,z),g==null||g({x:z.currentTarget.scrollLeft,y:z.currentTarget.scrollTop});const{scrollTop:N,scrollHeight:F,clientHeight:j}=z.currentTarget;N-(F-j)>=-.6&&(y==null||y()),N===0&&(x==null||x())},children:v}),(b==="xy"||b==="x")&&p.jsx(ay,{...O("scrollbar"),orientation:"horizontal","data-hidden":c==="never"||w==="present"&&!P?!0:void 0,forceMount:!0,onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:p.jsx(ly,{...O("thumb")})}),(b==="xy"||b==="y")&&p.jsx(ay,{...O("scrollbar"),orientation:"vertical","data-hidden":c==="never"||w==="present"&&!_?!0:void 0,forceMount:!0,onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),children:p.jsx(ly,{...O("thumb")})}),p.jsx(y$,{...O("corner"),"data-hovered":I||void 0,"data-hidden":c==="never"||void 0})]})});Ca.displayName="@mantine/core/ScrollArea";const ab=fe((e,t)=>{const{children:n,classNames:r,styles:o,scrollbarSize:i,scrollHideDelay:s,type:a,dir:l,offsetScrollbars:u,viewportRef:c,onScrollPositionChange:d,unstyled:f,variant:h,viewportProps:g,scrollbars:v,style:w,vars:b,onBottomReached:y,onTopReached:x,...R}=re("ScrollAreaAutosize",OP,e);return p.jsx(te,{...R,ref:t,style:[{display:"flex",overflow:"auto"},w],children:p.jsx(te,{style:{display:"flex",flexDirection:"column",flex:1},children:p.jsx(Ca,{classNames:r,styles:o,scrollHideDelay:s,scrollbarSize:i,type:a,dir:l,offsetScrollbars:u,viewportRef:c,onScrollPositionChange:d,unstyled:f,variant:h,viewportProps:g,vars:b,scrollbars:v,onBottomReached:y,onTopReached:x,children:n})})})});Ca.classes=sb;ab.displayName="@mantine/core/ScrollAreaAutosize";ab.classes=sb;Ca.Autosize=ab;var NP={root:"m_87cf2631"};const E$={__staticSelector:"UnstyledButton"},mn=vn((e,t)=>{const n=re("UnstyledButton",E$,e),{className:r,component:o="button",__staticSelector:i,unstyled:s,classNames:a,styles:l,style:u,...c}=n,d=Te({name:i,props:n,classes:NP,className:r,style:u,classNames:a,styles:l,unstyled:s});return p.jsx(te,{...d("root",{focusable:!0}),component:o,ref:t,type:o==="button"?"button":void 0,...c})});mn.classes=NP;mn.displayName="@mantine/core/UnstyledButton";var LP={root:"m_515a97f8"};const T$={},lb=fe((e,t)=>{const n=re("VisuallyHidden",T$,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,...u}=n,c=Te({name:"VisuallyHidden",classes:LP,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a});return p.jsx(te,{component:"span",ref:t,...c("root"),...u})});lb.classes=LP;lb.displayName="@mantine/core/VisuallyHidden";var FP={root:"m_1b7284a3"};const P$={},k$=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:bt(t),"--paper-shadow":z0(n)}}),Xc=vn((e,t)=>{const n=re("Paper",P$,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,withBorder:l,vars:u,radiu
83s:c,shadow:d,variant:f,mod:h,...g}=n,v=Te({name:"Paper",props:n,classes:FP,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:u,varsResolver:k$});return p.jsx(te,{ref:t,mod:[{"data-with-border":l},h],...v("root"),variant:f,...g})});Xc.classes=FP;Xc.displayName="@mantine/core/Paper";function $P(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,r]=t.split("-"),o=n==="right"?"left":"right";return r===void 0?o:`${o}-${r}`}return t}function TS(e,t,n,r){return e==="center"||r==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function PS(e,t,n,r,o){return e==="center"||r==="center"?{left:t}:e==="end"?{[o==="ltr"?"right":"left"]:n}:e==="start"?{[o==="ltr"?"left":"right"]:n}:{}}const I$={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function M$({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,arrowX:i,arrowY:s,dir:a}){const[l,u="center"]=e.split("-"),c={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[I$[l]]:r},d=-t/2;return l==="left"?{...c,...TS(u,s,n,o),right:d,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:l==="right"?{...c,...TS(u,s,n,o),left:d,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:l==="top"?{...c,...PS(u,i,n,o,a),bottom:d,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:l==="bottom"?{...c,...PS(u,i,n,o,a),top:d,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const ub=S.forwardRef(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,visible:i,arrowX:s,arrowY:a,style:l,...u},c)=>{const{dir:d}=Er();return i?p.jsx("div",{...u,ref:c,style:{...l,...M$({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:o,dir:d,arrowX:s,arrowY:a})}}):null});ub.displayName="@mantine/core/FloatingArrow";var zP={root:"m_9814e45f"};const D$={zIndex:zr("modal")},A$=(e,{gradient:t,color:n,backgroundOpacity:r,blur:o,radius:i,zIndex:s})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&Ir(n||"#000",r??.6)||void 0,"--overlay-filter":o?`blur(${ae(o)})`:void 0,"--overlay-radius":i===void 0?void 0:bt(i),"--overlay-z-index":s==null?void 0:s.toString()}}),Al=vn((e,t)=>{const n=re("Overlay",D$,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,fixed:u,center:c,children:d,radius:f,zIndex:h,gradient:g,blur:v,color:w,backgroundOpacity:b,mod:y,...x}=n,R=Te({name:"Overlay",props:n,classes:zP,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:A$});return p.jsx(te,{ref:t,...R("root"),mod:[{center:c,fixed:u},y],...x,children:d})});Al.classes=zP;Al.displayName="@mantine/core/Overlay";function yg(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}function j$({target:e,reuseTargetNode:t,...n}){if(e)return typeof e=="string"?document.querySelector(e)||yg(n):e;if(t){const r=document.querySelector("[data-mantine-shared-portal-node]");if(r)return r;const o=yg(n);return o.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(o),o}return yg(n)}const O$={},VP=fe((e,t)=>{const{children:n,target:r,reuseTargetNode:o,...i}=re("Portal",O$,e),[s,a]=S.useState(!1),l=S.useRef(null);return Kl(()=>(a(!0),l.current=j$({target:r,reuseTargetNode:o,...i}),Jv(t,l.current),!r&&!o&&l.current&&document.body.appendChild(l.current),()=>{!r&&!o&&l.current&&document.body.removeChild(l.current)}),[r]),!s||!l.current?null:wa.createPortal(p.jsx(p.Fragment,{children:n}),l.current)});VP.displayName="@mantine/core/Portal";const _a=fe(({withinPortal:e=!0,children:t,...n},r)=>XT()==="test"||!e?p.jsx(p.Fragment,{children:t}):p.jsx(VP,{ref:r,...n,children:t}));_a.displayName="@mantine/core/OptionalPortal";const Mu=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Yd={fade:{in:{opacity:1},out:{opacity:0}
83,transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...Mu("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Mu("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Mu("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Mu("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Mu("top"),common:{transformOrigin:"top right"}}},kS={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function N$({transition:e,state:t,duration:n,timingFunction:r}){const o={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e=="string"?e in Yd?{transitionProperty:Yd[e].transitionProperty,...o,...Yd[e].common,...Yd[e][kS[t]]}:{}:{transitionProperty:e.transitionProperty,...o,...e.common,...e[kS[t]]}}function L$({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:o,onExit:i,onEntered:s,onExited:a,enterDelay:l,exitDelay:u}){const c=rn(),d=ah(),f=c.respectReducedMotion?d:!1,[h,g]=S.useState(f?0:e),[v,w]=S.useState(r?"entered":"exited"),b=S.useRef(-1),y=S.useRef(-1),x=S.useRef(-1);function R(){window.clearTimeout(b.current),window.clearTimeout(y.current),cancelAnimationFrame(x.current)}const k=C=>{R();const _=C?o:i,T=C?s:a,P=f?0:C?e:t;g(P),P===0?(typeof _=="function"&&_(),typeof T=="function"&&T(),w(C?"entered":"exited")):x.current=requestAnimationFrame(()=>{ul.flushSync(()=>{w(C?"pre-entering":"pre-exiting")}),x.current=requestAnimationFrame(()=>{typeof _=="function"&&_(),w(C?"entering":"exiting"),b.current=window.setTimeout(()=>{typeof T=="function"&&T(),w(C?"entered":"exited")},P)})})},I=C=>{if(R(),typeof(C?l:u)!="number"){k(C);return}y.current=window.setTimeout(()=>{k(C)},C?l:u)};return co(()=>{I(r)},[r]),S.useEffect(()=>()=>{R()},[]),{transitionDuration:h,transitionStatus:v,transitionTimingFunction:n||"ease"}}function Br({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:r=n,mounted:o,children:i,timingFunction:s="ease",onExit:a,onEntered:l,onEnter:u,onExited:c,enterDelay:d,exitDelay:f}){const h=XT(),{transitionDuration:g,transitionStatus:v,transitionTimingFunction:w}=L$({mounted:o,exitDuration:r,duration:n,timingFunction:s,onExit:a,onEntered:l,onEnter:u,onExited:c,enterDelay:d,exitDelay:f});return g===0||h==="test"?o?p.jsx(p.Fragment,{children:i({})}):e?i({display:"none"}):null:v==="exited"?e?i({display:"none"}):null:p.jsx(p.Fragment,{children:i(N$({transition:t,duration:g,state:v,timingFunction:w}))})}Br.displayName="@mantine/core/Transition";const[F$,BP]=ur("Popover component was not found in the tree");function bh({children:e,active:t=!0,refProp:n="ref",innerRef:r}){const o=rN(t),i=gn(o,r);return Es(e)?S.cloneElement(e,{[n]:i}):e}function HP(e){return p.jsx(lb,{tabIndex:-1,"data-autofocus":!0,...e})}bh.displayName="@mantine/core/FocusTrap";HP.displayName="@mantine/core/FocusTrapInitialFocus";bh.InitialFocus=HP;var UP={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const $$={},cb=fe((e,t)=>{var w,b,y,x;const n=re("PopoverDropdown",$$,e),{className:r,style:o,vars:i,children:s,onKeyDownCapture:a,variant:l,classNames:u,styles:c,...d}
83=n,f=BP(),h=UT({opened:f.opened,shouldReturnFocus:f.returnFocus}),g=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},v=gn(t,f.floating);return f.disabled?null:p.jsx(_a,{...f.portalProps,withinPortal:f.withinPortal,children:p.jsx(Br,{mounted:f.opened,...f.transitionProps,transition:((w=f.transitionProps)==null?void 0:w.transition)||"fade",duration:((b=f.transitionProps)==null?void 0:b.duration)??150,keepMounted:f.keepMounted,exitDuration:typeof((y=f.transitionProps)==null?void 0:y.exitDuration)=="number"?f.transitionProps.exitDuration:(x=f.transitionProps)==null?void 0:x.duration,children:R=>p.jsx(bh,{active:f.trapFocus&&f.opened,innerRef:v,children:p.jsxs(te,{...g,...d,variant:l,onKeyDownCapture:HO(()=>{var k,I;(k=f.onClose)==null||k.call(f),(I=f.onDismiss)==null||I.call(f)},{active:f.closeOnEscape,onTrigger:h,onKeyDown:a}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:r,props:n,classNames:u,styles:c,style:[{...R,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:ae(f.width)},f.resolvedStyles.dropdown,c==null?void 0:c.dropdown,o]}),children:[s,p.jsx(ub,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:n,classNames:u,styles:c})})]})})})})});cb.classes=UP;cb.displayName="@mantine/core/PopoverDropdown";const z$={refProp:"ref",popupType:"dialog"},GP=fe((e,t)=>{const{children:n,refProp:r,popupType:o,...i}=re("PopoverTarget",z$,e);if(!Es(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=i,a=BP(),l=gn(a.reference,lh(n),t),u=a.withRoles?{"aria-haspopup":o,"aria-expanded":a.opened,"aria-controls":a.getDropdownId(),id:a.getTargetId()}:{};return S.cloneElement(n,{...s,...u,...a.targetProps,className:Ce(a.targetProps.className,s.className,n.props.className),[r]:l,...a.controlled?null:{onClick:a.onToggle}})});GP.displayName="@mantine/core/PopoverTarget";function WP({opened:e,floating:t,position:n,positionDependencies:r}){const[o,i]=S.useState(0);S.useEffect(()=>{if(t.refs.reference.current&&t.refs.floating.current&&e)return OF(t.refs.reference.current,t.refs.floating.current,t.update)},[t.refs.reference.current,t.refs.floating.current,e,o,n]),co(()=>
83{t.update()},r),co(()=>{i(s=>s+1)},[e])}function V$(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function B$(e,t){const n=V$(e.middlewares),r=[bP(e.offset)];return n.shift&&r.push(eb(typeof n.shift=="boolean"?{limiter:bS(),padding:5}:{limiter:bS(),padding:5,...n.shift})),n.flip&&r.push(typeof n.flip=="boolean"?hp():hp(n.flip)),n.inline&&r.push(typeof n.inline=="boolean"?lc():lc(n.inline)),r.push(wP({element:e.arrowRef,padding:e.arrowOffset})),(n.size||e.width==="target")&&r.push(KF({...typeof n.size=="boolean"?{}:n.size,apply({rects:o,availableWidth:i,availableHeight:s,...a}){var c;const u=((c=t().refs.floating.current)==null?void 0:c.style)??{};n.size&&(typeof n.size=="object"&&n.size.apply?n.size.apply({rects:o,availableWidth:i,availableHeight:s,...a}):Object.assign(u,{maxWidth:`${i}px`,maxHeight:`${s}px`})),e.width==="target"&&Object.assign(u,{width:`${o.reference.width}px`})}})),r}function H$(e){const[t,n]=kn({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=S.useRef(t),o=()=>{t&&!e.disabled&&n(!1)},i=()=>!e.disabled&&n(!t),s=ob({strategy:e.strategy,placement:e.position,middleware:B$(e,()=>s)});return WP({opened:t,position:e.position,positionDependencies:e.positionDependencies||[],floating:s}),co(()=>{var a;(a=e.onPositionChange)==null||a.call(e,s.placement)},[s.placement]),co(()=>{var a,l;t!==r.current&&(t?(l=e.onOpen)==null||l.call(e):(a=e.onClose)==null||a.call(e)),r.current=t},[t,e.onClose,e.onOpen]),{floating:s,controlled:typeof e.opened=="boolean",opened:t,onClose:o,onToggle:i}}const U$={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,clickOutsideEvents:["mousedown","touchstart"],zIndex:zr("popover"),__staticSelector:"Popover",width:"max-content"},G$=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:bt(t),"--popover-shadow":z0(n)}});function Tn(e){var xe,me,ze,Ee,Ve,He;const t=re("Popover",U$,e),{children:n,position:r,offset:o,onPositionChange:i,positionDependencies:s,opened:a,transitionProps:l,onExitTransitionEnd:u,onEnterTransitionEnd:c,width:d,middlewares:f,withArrow:h,arrowSize:g,arrowOffset:v,arrowRadius:w,arrowPosition:b,unstyled:y,classNames:x,styles:R,closeOnClickOutside:k,withinPortal:I,portalProps:C,closeOnEscape:_,clickOutsideEvents:T,trapFocus:P,onClose:M,onDismiss:O,onOpen:A,onChange:V,zIndex:z,radius:N,shadow:F,id:j,defaultOpened:L,__staticSelector:B,withRoles:H,disabled:G,returnFocus:ee,variant:oe,keepMounted:X,vars:J,floatingStrategy:q,withOverlay:ne,overlayProps:Y,...W}=t,se=Te({name:B,props:t,classes:UP,classNames:x,styles:R,unstyled:y,rootSelector:"dropdown",vars:J,varsResolver:G$}),{resolvedStyles:ue}=xi({classNames:x,styles:R,props:t}),le=S.useRef(null),[Re,ye]=S.useState(null),[ge,Le]=S.useState(null),{dir:de}=Er(),De=Rr(j),Oe=H$({middlewares:f,width:d,position:$P(de,r),offset:typeof o=="number"?o+(h?g/2:0):o,arrowRef:le,arrowOffset:v,onPositionChange:i,positionDependencies:s,opened:a,defaultOpened:L,onChange:V,onOpen:A,onClose:M,onDismiss:O,strategy:q,disabled:G});BT(()=>{k&&(Oe.onClose(),O==null||O())},T,[Re,ge]);const Be=S.useCallback(Ue=>{ye(Ue),Oe.floating.refs.setReference(Ue)},[Oe.floating.refs.setReference]),wt=S.useCallback(Ue=>{Le(Ue),Oe.floating.refs.setFloating(Ue)},[Oe.floating.refs.setFloating]),Ge=S.useCallback(()=>{var Ue;(Ue=l==null?void 0:l.onExited)==null||Ue.call(l),u==null||u()},[l==null?void 0:l.onExited,u]),he=S.useCallback(()=>{var Ue;(Ue=l==null?void 0:l.onEntered)==null||Ue.call(l),c==null||c()},[l==null?void 0:l.onEntered,c]);return p.jsxs(F$,{value:{returnFocus:ee,disabled:G,controlled:Oe.controlled,reference:Be,floating:wt,x:Oe.floating.x,y:Oe.floating.y,arrowX:(ze=(me=(xe=Oe.floating)==null?void 0:xe.middlewareData)==null?void 0:me.arrow)==null?void 0:ze.x,arrowY:(He=(Ve=(Ee=Oe.floating)==null?void 0:Ee.middlewareData)==null?void 0:Ve.arrow)==null?void 0:He.y,opened:Oe.opened,arrowRef:le,transitionProps:{...l,onExited:Ge,onEntered:he},width:d,withArrow:h,arrowSize:g,arrowOffset:v,arrowRadius:w,arrowPosition:b,placement:Oe.floating.placement,trapFocus:P,withinPortal:I,portalProps:C,zIndex:z,radius:N,shadow:F,closeOnEscape:_,onDismiss:O,onClose:Oe.onClose,onToggle:Oe.onToggle,getTargetId:()=>`${De}-target`,getDropdownId:()=>`${De}-dropdown`,withRoles:H,targetProps:W,__staticSelector:B,classNames:x,styles:R,unstyled:y,variant:oe,keepMounted:X,getStyles:se,resolvedStyles:ue,floatingStrategy:q},children:[n,ne&&p.jsx(Br,{transition:"fade",mounted:Oe.opened,duration:(l==null?void 0:l.duration)||250,exitDuration:(l==null?void 0:l.exitDuration)||250,children:Ue=>p.jsx(_a,{withinPortal:I,children:p.jsx(Al,{...Y,...se("overlay",{className:Y==null?void 0:Y.className,style:[Ue,Y==null?void 0:Y.style]})})})})]})}Tn.Target=GP;Tn.Dropdown=cb;Tn.displayName="@mantine/core/Popover";Tn.extend=e=>e;var ro={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",oval
83Loader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const KP=S.forwardRef(({className:e,...t},n)=>p.jsxs(te,{component:"span",className:Ce(ro.barsLoader,e),...t,ref:n,children:[p.jsx("span",{className:ro.bar}),p.jsx("span",{className:ro.bar}),p.jsx("span",{className:ro.bar})]}));KP.displayName="@mantine/core/Bars";const qP=S.forwardRef(({className:e,...t},n)=>p.jsxs(te,{component:"span",className:Ce(ro.dotsLoader,e),...t,ref:n,children:[p.jsx("span",{className:ro.dot}),p.jsx("span",{className:ro.dot}),p.jsx("span",{className:ro.dot})]}));qP.displayName="@mantine/core/Dots";const YP=S.forwardRef(({className:e,...t},n)=>p.jsx(te,{component:"span",className:Ce(ro.ovalLoader,e),...t,ref:n}));YP.displayName="@mantine/core/Oval";const XP={bars:KP,oval:YP,dots:qP},W$={loaders:XP,type:"oval"},K$=(e,{size:t,color:n})=>({root:{"--loader-size":Xe(t,"loader-size"),"--loader-color":n?It(n,e):void 0}}),Ra=fe((e,t)=>{const n=re("Loader",W$,e),{size:r,color:o,type:i,vars:s,className:a,style:l,classNames:u,styles:c,unstyled:d,loaders:f,variant:h,children:g,...v}=n,w=Te({name:"Loader",props:n,classes:ro,className:a,style:l,classNames:u,styles:c,unstyled:d,vars:s,varsResolver:K$});return g?p.jsx(te,{...w("root"),ref:t,...v,children:g}):p.jsx(te,{...w("root"),ref:t,component:f[i],variant:h,size:r,...v})});Ra.defaultLoaders=XP;Ra.classes=ro;Ra.displayName="@mantine/core/Loader";var Ql={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const IS={orientation:"horizontal"},q$=(e,{borderWidth:t})=>({group:{"--ai-border-width":ae(t)}}),db=fe((e,t)=>{const n=re("ActionIconGroup",IS,e),{className:r,style:o,classNames:i,styles:s,unstyled:a,orientation:l,vars:u,borderWidth:c,variant:d,mod:f,...h}=re("ActionIconGroup",IS,e),g=Te({name:"ActionIconGroup",props:n,classes:Ql,className:r,style:o,classNames:i,styles:s,unstyled:a,vars:u,varsResolver:q$,rootSelector:"group"});return p.jsx(te,{...g("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...h})});db.classes=Ql;db.displayName="@mantine/core/ActionIconGroup";const MS={},Y$=(e,{radius:t,color:n,gradient:r,variant:o,autoContrast:i,size:s})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:i});return{groupSection:{"--section-height":Xe(s,"section-height"),"--section-padding-x":Xe(s,"section-padding-x"),"--section-fz":Qt(s),"--section-radius":t===void 0?void 0:bt(t),"--section-bg":n||o?a.background:void 0,"--section-color":a.color,"--section-bd":n||o?a.border:void 0}}},fb=fe((e,t)=>{const n=re("ActionIconGroupSection",MS,e),{className:r,style:o,classNames:i,styles:s,unstyled:a,vars:l,variant:u,gradient:c,radius:d,autoContrast:f,...h}=re("ActionIconGroupSection",MS,e),g=Te({name:"ActionIconGroupSection",props:n,classes:Ql,className:r,style:o,classNames:i,styles:s,unstyled:a,vars:l,varsResolver:Y$,rootSelector:"groupSection"});return p.jsx(te,{...g("groupSection"),ref:t,variant:u,...h})});fb.classes=Ql;fb.displayName="@mantine/core/ActionIconGroupSection";const X$={},J$=(e,{size:t,radius:n,variant:r,gradient:o,color:i,autoContrast:s})=>{const a=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:o,variant:r||"filled",autoContrast:s});return{root:{"--ai-size":Xe(t,"ai-size"),"--ai-radius":n===void 0?void 0:bt(n),"--ai-bg":i||r?a.background:void 0,"--ai-hover":i||r?a.hover:void 0,"--ai-hover-color":i||r?a.hoverColor:void 0,"--ai-color":a.color,"--ai-bd":i||r?a.border:void 0}}},lt=vn((e,t)=>{const n=re("ActionIcon",X$,e),{className:r,unstyled:o,variant:i,classNames:s,styles:a,style:l,loading:u,loaderProps:c,size:d,color:f,radius:h,__staticSelector:g,gradient:v,vars:w,children:b,disabled:y,"data-disabled":x,autoContrast:R,mod:k,...I}=n,C=Te({name:["ActionIcon",g],props:n,className:r,style:l,classes:Ql,classNames:s,styles:a,unstyled:o,vars:w,varsResolver:J$});return p.jsxs(mn,{...C("root",{active:!y&&!u&&!x}),...I,unstyled:o,variant:i,size:d,disabled:y||u,ref:t,mod:[{loading:u,disabled:y||x},k],children:[p.jsx(Br,{mounted:!!u,transition:"slide-down",duration:150,children:_=>p.jsx(te,{component:"span",...C("loader",{style:_}
83),"aria-hidden":!0,children:p.jsx(Ra,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...c})})}),p.jsx(te,{component:"span",mod:{loading:u},...C("icon"),children:b})]})});lt.classes=Ql;lt.displayName="@mantine/core/ActionIcon";lt.Group=db;lt.GroupSection=fb;const JP=S.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:t,...n},r)=>p.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:r,...n,children:p.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));JP.displayName="@mantine/core/CloseIcon";var QP={root:"m_86a44da5","root--subtle":"m_220c80f2"};const Q$={variant:"subtle"},Z$=(e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":Xe(t,"cb-size"),"--cb-radius":n===void 0?void 0:bt(n),"--cb-icon-size":ae(r)}}),Si=vn((e,t)=>{const n=re("CloseButton",Q$,e),{iconSize:r,children:o,vars:i,radius:s,className:a,classNames:l,style:u,styles:c,unstyled:d,"data-disabled":f,disabled:h,variant:g,icon:v,mod:w,__staticSelector:b,...y}=n,x=Te({name:b||"CloseButton",props:n,className:a,style:u,classes:QP,classNames:l,styles:c,unstyled:d,vars:i,varsResolver:Z$});return p.jsxs(mn,{ref:t,...y,unstyled:d,variant:g,disabled:h,mod:[{disabled:h||f},w],...x("root",{variant:g,active:!h&&!f}),children:[v||p.jsx(JP,{}),o]})});Si.classes=QP;Si.displayName="@mantine/core/CloseButton";function e4(e){return S.Children.toArray(e).filter(Boolean)}var ZP={root:"m_4081bf90"};const t4={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},n4=(e,{grow:t,preventGrowOverflow:n,gap:r,align:o,justify:i,wrap:s},{childWidth:a})=>({root:{"--group-child-width":t&&n?a:void 0,"--group-gap":hn(r),"--group-align":o,"--group-justify":i,"--group-wrap":s}}),mt=fe((e,t)=>{const n=re("Group",t4,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,children:l,gap:u,align:c,justify:d,wrap:f,grow:h,preventGrowOverflow:g,vars:v,variant:w,__size:b,mod:y,...x}=n,R=e4(l),k=R.length,I=hn(u??"md"),_={childWidth:`calc(${100/k}% - (${I} - ${I} / ${k}))`},T=Te({name:"Group",props:n,stylesCtx:_,className:o,style:i,classes:ZP,classNames:r,styles:s,unstyled:a,vars:v,varsResolver:n4});return p.jsx(te,{...T("root"),ref:t,variant:w,mod:[{grow:h},y],size:b,...x,children:R})});mt.classes=ZP;mt.displayName="@mantine/core/Group";const[r4,Ci]=ur("ModalBase component was not found in tree");function o4({opened:e,transitionDuration:t}){const[n,r]=S.useState(e),o=S.useRef(-1),s=ah()?0:t;return S.useEffect(()=>(e?(r(!0),window.clearTimeout(o.current)):s===0?r(!1):o.current=window.setTimeout(()=>r(!1),s),()=>window.clearTimeout(o.current)),[e,s]),n}function i4({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:o,onClose:i,returnFocus:s}){const a=Rr(e),[l,u]=S.useState(!1),[c,d]=S.useState(!1),f=typeof(t==null?void 0:t.duration)=="number"?t==null?void 0:t.duration:200,h=o4({opened:n,transitionDuration:f});return lN("keydown",g=>{var v;g.key==="Escape"&&o&&!g.isComposing&&n&&((v=g.target)==null?void 0:v.getAttribute("data-mantine-stop-propagation"))!=="true"&&i()},{capture:!0}),UT({opened:n,shouldReturnFocus:r&&s}),{_id:a,titleMounted:l,bodyMounted:c,shouldLockScroll:h,setTitleMounted:u,setBodyMounted:d}}const ek=S.forwardRef(({keepMounted:e,opened:t,onClose:n,id:r,transitionProps:o,onExitTransitionEnd:i,onEnterTransitionEnd:s,trapFocus:a,closeOnEscape:l,returnFocus:u,closeOnClickOutside:c,withinPortal:d,portalProps:f,lockScroll:h,children:g,zIndex:v,shadow:w,padding:b,__vars:y,unstyled:x,removeScrollProps:R,...k},I)=>{const{_id:C,titleMounted:_,bodyMounted:T,shouldLockScroll:P,setTitleMounted:M,setBodyMounted:O}=i4({id:r,transitionProps:o,opened:t,trapFocus:a,closeOnEscape:l,onClose:n,returnFocus:u}),{key:A,...V}=R||{};return p.jsx(_a,{...f,withinPortal:d,children:p.jsx(r4,{value:{opened:t,onClose:n,closeOnClickOutside:c,onExitTransitionEnd:i,onEnterTransitionEnd:s,transitionProps:{...o,keepMounted:e},getTitleId:()=>`${C}-title`,getBodyId:()=>`${C}-body`,titleMounted:_,bodyMounted:T,setTitleMounted:M,setBodyMounted:O,trapFocus:a,closeOnEscape:l,zIndex:v,unstyled:x},children:p.jsx(ap,{enabled:P&&h,...V,children:p.jsx(te,{ref:I,...k,__vars:{...y,"--mb-z-index":(v||zr("modal")).toString(),"--mb-shadow":z0(w),"--mb-padding":hn(b)},children:g})},A)})})});ek.displayName="@mantine/core/ModalBase";function s4(){const e=Ci();return S.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var jl={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const tk=S.forwardRef(({className:e,...t},n)=>{const r=s4(),o=Ci();return p.jsx(te,{ref:n,...t,id:r,className:Ce({[jl.body]:!o.unstyled},e)})});tk.displayName="@mantine/core/ModalBaseBody";const nk=S.forwardRef(({className:e,onClick:t,...n},r)=>{const o=Ci();return p.jsx(Si,{ref:r,...n,onClick:i=>{o.onClose(),t==null||t(i)},className:Ce({[jl.close]:!o.unstyled},e),unstyled:o.unstyled})});nk.displayName="@mantine/core/ModalBaseCloseButton";const rk=S.forwardRef(({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:o,...i},s)=>{const a=Ci();return p.jsx(Br,{mounted:a.opened,transition:"pop",...a.transitionProps,onExited:()=>{var l,u,c;(l=a.onExitTransitionEnd)==null||l.call(a),(c=(u=a.transitionProps)==null?void 0:u.onExited)==null||c.call(u)},onEntered:()=>{var l,u,c;(l=a.onEnterTransitionEnd)==null||l.call(a),(c=(u=a.transitionProps)==null?void 0:u.onEntered)==null||c.call(u)},...e,children:l=>p.jsx("div",{...n,className:Ce({[jl.inner]:!a.unstyled},n.className),children:p.jsx(bh,{active:a.opened&&a.trapFocus,innerRef:s,children:p.jsx(Xc,{...i,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":a.bodyMounted?a.getBodyId():void 0,"aria-labelledby":a.titleMounted?a.getTitleId():void 0,style:[o,l],className:Ce({[jl.content]:!a.unstyled},t),unstyled:a.unstyled,children:i.children})})})})});rk.displayName="@mantine/core/ModalBaseContent";const ok=S.forwardRef(({className:e,...t},n)=>{const r=Ci();return p.jsx(te,{component:"header",ref:n,className:Ce({[jl.header]:!r.unstyled},e),...t})});ok.displayName="@mantine/core/ModalBaseHeader";const a4={duration:200,timingFunction:"ease",transition:"fade"};function l4(e){const t=Ci();return{...a4,...t.transitionProps,...e}}const ik=S.forwardRef(({onClick:e,transitionProps:t,style:n,visible:r,...o},i)=>{const s=Ci(),a=l4(t);return p.jsx(Br,{mounted:r!==void 0?r:s.opened,...a,transition:"fade",children:l=>p.jsx(Al,{ref:i,fixed:!0,style:[n,l],zIndex:s.zIndex,unstyled:s.unstyled,onClick:u=>{e==null||e(u),s.closeOnClickOutside&&s.onClose()},...o})})});ik.displayName="@mantine/core/ModalBaseOverlay";function u4(){const e=Ci();return S.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const sk=S.forwardRef(({className:e,...t},n)=>{const r=u4(),o=Ci();return p.jsx(te,{component:"h2",ref:n,className:Ce({[jl.title]:!o.unstyled},e),...t,id:r})});sk.displayName="@mantine/core/ModalBaseTitle";function c4({children:e}){return p.jsx(p.Fragment,{children:e})}const[d4,f4]=Ts({size:"sm"}),p4={},ak=fe((e,t)=>{const n=re("InputClearButton",p4,e),{size:r,variant:o,vars:i,classNames:s,styles:a,...l}=n,u=f4(),{resolvedClassNames:c,resolvedStyles:d}=xi({classNames:s,styles:a,props:n});return p.jsx(Si,{variant:o||"transparent",ref:t,size:r||(u==null?void 0:u.size)||"sm",classNames:c,styles:d,__staticSelector:"InputClearButton",...l})});ak.displayName="@mantine/core/InputClearButton";const[h4,Zl]=Ts({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var Hr={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const DS={},m4=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${Qt(t)} - ${ae(2)})`}}),wh=fe((e,t)=>{const n=re("InputDescription",DS,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,size:u,__staticSelector:c,__inheritStyles:d=!0,variant:f,...h}=re("InputDescription",DS,n),g=Zl(),v=Te({name:["InputWrapper",c],props:n,classes:Hr,className:o,style:i,classNames:r,styles:s,unstyled:a,rootSelector:"description",vars:l,varsResolver:m4}),w=d&&(g==null?void 0:g.getStyles)||v;return p.jsx(te,{component:"p",ref:t,variant:f,size:u,...w("description",g!=null&&g.getStyles?{className:o,style:i}:void 0),...h})});wh.classes=Hr;wh.displayName="@mantine/core/InputDescription";const g4={},v4=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${Qt(t)} - ${ae(2)})`}}),xh=fe((e,t)=>{const n=re("InputError",g4,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,size:u,__staticSelector:c,__inheritStyles:d=!0,variant:f,...h}=n,g=Te({name:["InputWrapper",c],props:n,classes:Hr,className:o,style:i,classNames:r,styles:s,unstyled:a,rootSelector:"error",vars:l,varsResolver:v4}),v=Zl(),w=d&&(v==null?void 0:v.getStyles)||g;return p.jsx(te,{component:"p",ref:t,variant:f,size:u,...w("error",v!=null&&v.getStyles?{className:o,style:i}:void 0),...h})});xh.classes=Hr;xh.displayName="@mantine/core/InputError";const AS={labelElement:"label"},y4=(e,{size:t})=>({label:{"--input-label-size":Qt(t),"--input-asterisk-color":void 0}}),Sh=fe((e,t)=>{const n=re("InputLabel",AS,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,labelElement:u,size:c,required:d,htmlFor:f,onMouseDown:h,children:g,__staticSelector:v,variant:w,mod:b,...y}=re("InputLabel",AS,n),x=Te({name:["InputWrapper",v],props:n,classes:Hr,className:o,style:i,classNames:r,styles:s,unstyled:a,rootSelector:"label",vars:l,varsResolver:y4}),R=Zl(),k=(R==null?void 0:R.getStyles)||x;return p.jsxs(te,{...k("label",R!=null&&R.getStyles?{className:o,style:i}:void 0),component:u,variant:w,size:c,ref:t,htmlFor:u==="label"?f:void 0,mod:[{required:d},b],onMouseDown:I=>{h==null||h(I),!I.defaultPrevented&&I.detail>1&&I.preventDefault()},...y,children:[g,d&&p.jsx("span",{...k("required"),"aria-hidden":!0,
83children:" *"})]})});Sh.classes=Hr;Sh.displayName="@mantine/core/InputLabel";const jS={},pb=fe((e,t)=>{const n=re("InputPlaceholder",jS,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,__staticSelector:u,variant:c,error:d,mod:f,...h}=re("InputPlaceholder",jS,n),g=Te({name:["InputPlaceholder",u],props:n,classes:Hr,className:o,style:i,classNames:r,styles:s,unstyled:a,rootSelector:"placeholder"});return p.jsx(te,{...g("placeholder"),mod:[{error:!!d},f],component:"span",variant:c,ref:t,...h})});pb.classes=Hr;pb.displayName="@mantine/core/InputPlaceholder";function b4(e,{hasDescription:t,hasError:n}){const r=e.findIndex(l=>l==="input"),o=e.slice(0,r),i=e.slice(r+1),s=t&&o.includes("description")||n&&o.includes("error");return{offsetBottom:t&&i.includes("description")||n&&i.includes("error"),offsetTop:s}}const w4={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},x4=(e,{size:t})=>({label:{"--input-label-size":Qt(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${Qt(t)} - ${ae(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${Qt(t)} - ${ae(2)})`}}),hb=fe((e,t)=>{const n=re("InputWrapper",w4,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,size:u,variant:c,__staticSelector:d,inputContainer:f,inputWrapperOrder:h,label:g,error:v,description:w,labelProps:b,descriptionProps:y,errorProps:x,labelElement:R,children:k,withAsterisk:I,id:C,required:_,__stylesApiProps:T,mod:P,...M}=n,O=Te({name:["InputWrapper",d],props:T||n,classes:Hr,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:x4}),A={size:u,variant:c,__staticSelector:d},V=Rr(C),z=typeof I=="boolean"?I:_,N=(x==null?void 0:x.id)||`${V}-error`,F=(y==null?void 0:y.id)||`${V}-description`,j=V,L=!!v&&typeof v!="boolean",B=!!w,H=`${L?N:""} ${B?F:""}`,G=H.trim().length>0?H.trim():void 0,ee=(b==null?void 0:b.id)||`${V}-label`,oe=g&&p.jsx(Sh,{labelElement:R,id:ee,htmlFor:j,required:z,...A,...b,children:g},"label"),X=B&&p.jsx(wh,{...y,...A,size:(y==null?void 0:y.size)||A.size,id:(y==null?void 0:y.id)||F,children:w},"description"),J=p.jsx(S.Fragment,{children:f(k)},"input"),q=L&&S.createElement(xh,{...x,...A,size:(x==null?void 0:x.size)||A.size,key:"error",id:(x==null?void 0:x.id)||N},v),ne=h.map(Y=>{switch(Y){case"label":return oe;case"input":return J;case"description":return X;case"error":return q;default:return null}});return p.jsx(h4,{value:{getStyles:O,describedBy:G,inputId:j,labelId:ee,...b4(h,{hasDescription:B,hasError:L})},children:p.jsx(te,{ref:t,variant:c,size:u,mod:[{error:!!v},P],...O("root"),...M,children:ne})})});hb.classes=Hr;hb.displayName="@mantine/core/InputWrapper";const S4={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0},C4=(e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":Xe(t.size,"input-height"),"--input-fz":Qt(t.size),"--input-radius":t.radius===void 0?void 0:bt(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?ae(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?ae(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?Xe(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),Lt=vn((e,t)=>{const n=re("Input",S4,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,required:l,__staticSelector:u,__stylesApiProps:c,size:d,wrapperProps:f,error:h,disabled:g,leftSection:v,leftSectionProps:w,leftSectionWidth:b,rightSection:y,rightSectionProps:x,rightSectionWidth:R,rightSectionPointerEvents:k,leftSectionPointerEvents:I,variant:C,vars:_,pointer:T,multiline:P,radius:M,id:O,withAria:A,withErrorStyles:V,mod:z,inputSize:N,__clearSection:F,__clearable:j,__defaultRightSection:L,...B}=n,{styleProps:H,rest:G}=Sa(B),ee=Zl(),oe={offsetBottom:ee==null?void 0:ee.offsetBottom,offsetTop:ee==null?void 0:ee.offsetTop}
83,X=Te({name:["Input",u],props:c||n,classes:Hr,className:o,style:i,classNames:r,styles:s,unstyled:a,stylesCtx:oe,rootSelector:"wrapper",vars:_,varsResolver:C4}),J=A?{required:l,disabled:g,"aria-invalid":!!h,"aria-describedby":ee==null?void 0:ee.describedBy,id:(ee==null?void 0:ee.inputId)||O}:{},q=y||j&&F||L;return p.jsx(d4,{value:{size:d||"sm"},children:p.jsxs(te,{...X("wrapper"),...H,...f,mod:[{error:!!h&&V,pointer:T,disabled:g,multiline:P,"data-with-right-section":!!q,"data-with-left-section":!!v},z],variant:C,size:d,children:[v&&p.jsx("div",{...w,"data-position":"left",...X("section",{className:w==null?void 0:w.className,style:w==null?void 0:w.style}),children:v}),p.jsx(te,{component:"input",...G,...J,ref:t,required:l,mod:{disabled:g,error:!!h&&V},variant:C,__size:N,...X("input")}),q&&p.jsx("div",{...x,"data-position":"right",...X("section",{className:x==null?void 0:x.className,style:x==null?void 0:x.style}),children:q})]})})});Lt.classes=Hr;Lt.Wrapper=hb;Lt.Label=Sh;Lt.Error=xh;Lt.Description=wh;Lt.Placeholder=pb;Lt.ClearButton=ak;Lt.displayName="@mantine/core/Input";function lk(e,t,n){const r=re(e,t,n),{label:o,description:i,error:s,required:a,classNames:l,styles:u,className:c,unstyled:d,__staticSelector:f,__stylesApiProps:h,errorProps:g,labelProps:v,descriptionProps:w,wrapperProps:b,id:y,size:x,style:R,inputContainer:k,inputWrapperOrder:I,withAsterisk:C,variant:_,vars:T,mod:P,...M}=r,{styleProps:O,rest:A}=Sa(M),V={label:o,description:i,error:s,required:a,classNames:l,className:c,__staticSelector:f,__stylesApiProps:h||r,errorProps:g,labelProps:v,descriptionProps:w,unstyled:d,styles:u,size:x,style:R,inputContainer:k,inputWrapperOrder:I,withAsterisk:C,variant:_,id:y,mod:P,...b};return{...A,classNames:l,styles:u,unstyled:d,wrapperProps:{...V,...O},inputProps:{required:a,classNames:l,styles:u,unstyled:d,size:x,__staticSelector:f,__stylesApiProps:h||r,error:s,variant:_,id:y}}}const _4={__staticSelector:"InputBase",withAria:!0},Ur=vn((e,t)=>{const{inputProps:n,wrapperProps:r,...o}=lk("InputBase",_4,e);return p.jsx(Lt.Wrapper,{...r,children:p.jsx(Lt,{...n,...o,ref:t})})});Ur.classes={...Lt.classes,...Lt.Wrapper.classes};Ur.displayName="@mantine/core/InputBase";const R4={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var uk={root:"m_8bffd616"};const E4={},Yt=vn((e,t)=>{const n=re("Flex",E4,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,gap:u,rowGap:c,columnGap:d,align:f,justify:h,wrap:g,direction:v,...w}=n,b=Te({name:"Flex",classes:uk,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l}),y=rn(),x=qc(),R=tP({styleProps:{gap:u,rowGap:c,columnGap:d,align:f,justify:h,wrap:g,direction:v},theme:y,data:R4});return p.jsxs(p.Fragment,{children:[R.hasResponsiveStyles&&p.jsx(ql,{selector:`.${x}`,styles:R.styles,media:R.media}),p.jsx(te,{ref:t,...b("root",{className:x,style:Rs(R.inlineStyles)}),...w})]})});Yt.classes=uk;Yt.displayName="@mantine/core/Flex";function Oc({style:e,size:t=16,...n}){return p.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:ae(t),height:ae(t),display:"block"},...n,children:p.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}Oc.displayName="@mantine/core/AccordionChevron";var ck={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const T4={},P4=(e,{radius:t,color:n,variant:r,autoContrast:o})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||"light",autoContrast:o});return{root:{"--alert-radius":t===void 0?void 0:bt(t),"--alert-bg":n||r?i.background:void 0,"--alert-color":i.color,"--alert-bd":n||r?i.border:void 0}}},mb=fe((e,t)=>{const n=re("Alert",T4,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,radiu
83s:u,color:c,title:d,children:f,id:h,icon:g,withCloseButton:v,onClose:w,closeButtonLabel:b,variant:y,autoContrast:x,...R}=n,k=Te({name:"Alert",classes:ck,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:P4}),I=Rr(h),C=d&&`${I}-title`||void 0,_=`${I}-body`;return p.jsx(te,{id:I,...k("root",{variant:y}),variant:y,ref:t,...R,role:"alert","aria-describedby":_,"aria-labelledby":C,children:p.jsxs("div",{...k("wrapper"),children:[g&&p.jsx("div",{...k("icon"),children:g}),p.jsxs("div",{...k("body"),children:[d&&p.jsx("div",{...k("title"),"data-with-close-button":v||void 0,children:p.jsx("span",{id:C,...k("label"),children:d})}),f&&p.jsx("div",{id:_,...k("message"),"data-variant":y,children:f})]}),v&&p.jsx(Si,{...k("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":b,unstyled:a})]})})});mb.classes=ck;mb.displayName="@mantine/core/Alert";var dk={root:"m_b6d8b162"};function k4(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const I4={inherit:!1},M4=(e,{variant:t,lineClamp:n,gradient:r,size:o,color:i})=>({root:{"--text-fz":Qt(o),"--text-lh":UO(o),"--text-gradient":t==="gradient"?Qv(r,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?It(i,e):void 0}}),nt=vn((e,t)=>{const n=re("Text",I4,e),{lineClamp:r,truncate:o,inline:i,inherit:s,gradient:a,span:l,__staticSelector:u,vars:c,className:d,style:f,classNames:h,styles:g,unstyled:v,variant:w,mod:b,size:y,...x}=n,R=Te({name:["Text",u],props:n,classes:dk,className:d,style:f,classNames:h,styles:g,unstyled:v,vars:c,varsResolver:M4});return p.jsx(te,{...R("root",{focusable:!0}),ref:t,component:l?"span":"p",variant:w,mod:[{"data-truncate":k4(o),"data-line-clamp":typeof r=="number","data-inline":i,"data-inherit":s},b],size:y,...x})});nt.classes=dk;nt.displayName="@mantine/core/Text";var fk={root:"m_849cf0da"};const D4={underline:"hover"},rr=vn((e,t)=>{const{underline:n,className:r,unstyled:o,mod:i,...s}=re("Anchor",D4,e);return p.jsx(nt,{component:"a",ref:t,className:Ce({[fk.root]:!o},r),...s,mod:[{underline:n},i],__staticSelector:"Anchor",unstyled:o})});rr.classes=fk;rr.displayName="@mantine/core/Anchor";function pk(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(t=>pk(t))}:e}function gb(e){return e?e.map(t=>pk(t)):[]}function Ch(e){return e.reduce((t,n)=>"group"in n?{...t,...Ch(n.items)}:(t[n.value]=n,t),{})}var lr={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const A4={error:null},j4=(e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":Xe(t,"combobox-chevron-size"),"--combobox-chevron-color":n?It(n,e):void 0}}),vb=fe((e,t)=>{const n=re("ComboboxChevron",A4,e),{size:r,error:o,style:i,className:s,classNames:a,styles:l,unstyled:u,vars:c,mod:d,...f}=n,h=Te({name:"ComboboxChevron",classes:lr,props:n,style:i,className:s,classNames:a,styles:l,unstyled:u,vars:c,varsResolver:j4,rootSelector:"chevron"});return p.jsx(te,{component:"svg",...f,...h("chevron"),size:r,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:o},d],ref:t,children:p.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});vb.classes=lr;vb.displayName="@mantine/core/ComboboxChevron";const[O4,Gr]=ur("Combobox component was not found in tree"),hk=S.forwardRef(({size:e,onMouseDown:t,onClick:n,onClear:r,...o},i)=>p.jsx(Lt.ClearButton,{ref:i,tabIndex:-1,"aria-hidden":!0,...o,onMouseDown:s=>{s.preventDefault(),t==null||t(s)},onClick:s=>{r(),n==null||n(s)}}));hk.displayName="@mantine/core/ComboboxClearButton";const N4={},yb=fe((e,t)=>{const{classNames:n,styles:r,className:o,style:i,hidden:s,...a}=re("ComboboxDropdown",N4,e),l=Gr();return p.jsx(Tn.Dropdown,{...a,ref:t,role:"presentation","data-hidden":s||void 0,...l.getStyles("dropdown",{className:o,style:i,classNames:n,styles:r})})});yb.classes=lr;yb.displayName="@mantine/core/ComboboxDropdown";const L4={refProp:"ref"},mk=fe((e,t)=>{const{children:n,refProp:r}=re("ComboboxDropdownTarget",L4,e);if(Gr(),!Es(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, str
83ings, numbers and other primitive values are not supported");return p.jsx(Tn.Target,{ref:t,refProp:r,children:n})});mk.displayName="@mantine/core/ComboboxDropdownTarget";const F4={},bb=fe((e,t)=>{const{classNames:n,className:r,style:o,styles:i,vars:s,...a}=re("ComboboxEmpty",F4,e),l=Gr();return p.jsx(te,{ref:t,...l.getStyles("empty",{className:r,classNames:n,styles:i,style:o}),...a})});bb.classes=lr;bb.displayName="@mantine/core/ComboboxEmpty";function wb({onKeyDown:e,withKeyboardNavigation:t,withAriaAttributes:n,withExpandedAttribute:r,targetType:o,autoComplete:i}){const s=Gr(),[a,l]=S.useState(null),u=d=>{if(e==null||e(d),!s.readOnly&&t){if(d.nativeEvent.isComposing)return;if(d.nativeEvent.code==="ArrowDown"&&(d.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown("keyboard"),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="ArrowUp"&&(d.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown("keyboard"),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),d.nativeEvent.code==="Enter"||d.nativeEvent.code==="NumpadEnter"){if(d.nativeEvent.keyCode===229)return;const f=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&f!==-1?(d.preventDefault(),s.store.clickSelectedOption()):o==="button"&&(d.preventDefault(),s.store.openDropdown("keyboard"))}d.key==="Escape"&&s.store.closeDropdown("keyboard"),d.nativeEvent.code==="Space"&&o==="button"&&(d.preventDefault(),s.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":r&&!!(s.store.listId&&s.store.dropdownOpened)||void 0,"aria-controls":s.store.dropdownOpened?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&a||void 0,autoComplete:i,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},onKeyDown:u}}const $4={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},gk=fe((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:i,withExpandedAttribute:s,targetType:a,autoComplete:l,...u}=re("ComboboxEventsTarget",$4,e);if(!Es(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const c=Gr(),d=wb({targetType:a,withAriaAttributes:i,withKeyboardNavigation:o,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:l});return S.cloneElement(n,{...d,...u,[r]:gn(t,c.store.targetRef,lh(n))})});gk.displayName="@mantine/core/ComboboxEventsTarget";const z4={},xb=fe((e,t)=>{const{classNames:n,className:r,style:o,styles:i,vars:s,...a}=re("ComboboxFooter",z4,e),l=Gr();return p.jsx(te,{ref:t,...l.getStyles("footer",{className:r,classNames:n,style:o,styles:i}),...a,onMouseDown:u=>{u.preventDefault()}})});xb.classes=lr;xb.displayName="@mantine/core/ComboboxFooter";const V4={},Sb=fe((e,t)=>{const{classNames:n,className:r,style:o,styles:i,vars:s,children:a,label:l,...u}=re("ComboboxGroup",V4,e),c=Gr();return p.jsxs(te,{ref:t,...c.getStyles("group",{className:r,classNames:n,style:o,styles:i}),...u,children:[l&&p.jsx("div",{...c.getStyles("groupLabel",{classNames:n,styles:i}),children:l}),a]})});Sb.classes=lr;Sb.displayName="@mantine/core/ComboboxGroup";const B4={},Cb=fe((e,t)=>{const{classNames:n,className:r,style:o,styles:i,vars:s,...a}=re("ComboboxHeader",B4,e),l=Gr();return p.jsx(te,{ref:t,...l.getStyles("header",{className:r,classNames:n,style:o,styles:i}),...a,onMouseDown:u=>{u.preventDefault()}})});Cb.classes=lr;Cb.displayName="@mantine/core/ComboboxHeader";function vk({value:e,valuesDivider:t=",",...n}){return p.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(t):e||"",...n})}vk.displayName="@mantine/core/ComboboxHiddenInput";const H4={},_b=fe((e,t)=>{const n=re("ComboboxOption",H4,e),{classNames:r,className:o,style:i,styles:s,vars:a,onClick:l,id:u,active:c,onMouseDown:d,onMouseOver:f,disabled:h,selected:g,mod:v,...w}=n,b=Gr(),y=S.useId(),x=u||y;return p.jsx(te,{...b.getStyles("option",{className:o,classNames:r,styles:s,style:i}),...w,ref:t,id:x,mod:["combobox-option",{"combobox-active":c,"combobox-disabled":h,"combobox-selected":g},v],role:"option",onClick:R=>{var k;h?R.preventDefault():((k=b.onOptionSubmit)==null||k.call(b,n.value,n),l==null||l(R))},onMouseDown:R=>{R.preventDefault(),d==null||d(R)},onMouseOver:R=>{b.resetSelectionOnOptionHover&&b.store.resetSelectedOption(),f==null||f(R)}})});_b.classes=lr;_b.displayName="@mantine/core/ComboboxOption";const U4={},Rb=fe((e,t)=>{const n=re("ComboboxOptions",U4,e),{classNames:r,className:o,style:i,styles:s,id:a,onMouseDown:l,labelledBy:u,...c}=n,d=Gr(),f=Rr(a);return S.useEffect(()=>{d.store.setListId(f)},[f]),p.jsx(te,{ref:t,...d.getStyles("options",{className:o,style:i,classNames:r,styles:s}),...c,id:f,role:"listbox","aria-labelledby":u,onMouseDown:h=>{h.preventDefault(),l==null||l(h)}})});Rb.classes=lr;Rb.displayName="@mantine/core/ComboboxOptions";const G4={withAriaAttributes:!0,withKeyboardNavigation:!0},Eb=fe((e,t)=>{const n=re("ComboboxSearch",G4,e),{classNames:r,styles:o,unstyled:i,vars:s,withAriaAttributes:a,onKeyDown:l,withKeyboardNavigation:u,size:c,...d}=n,f=Gr(),h=f.getStyles("search"),g=wb({targetType:"input",withAriaAttributes:a,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:l,autoComplete:"off"});return p.jsx(Lt,{ref:gn(t,f.store.searchRef),classNames:[{input:h.className},r],styles:[{input:h.style},o],size:c||f.size,...g,...d,__staticSelector:"Combobox"})});Eb.classes=lr;Eb.displayName="@mantine/core/ComboboxSearch";const W4={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},yk=fe((e,t)=>{const{children:n,refProp:r,withKeyboardNavigation:o,withAriaAttributes:i,withExpandedAttribute:s,targetType:a,autoComplete:l,...u}=re("ComboboxTarget",W4,e);if(!Es(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, str
83ings, numbers and other primitive values are not supported");const c=Gr(),d=wb({targetType:a,withAriaAttributes:i,withKeyboardNavigation:o,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:l}),f=S.cloneElement(n,{...d,...u});return p.jsx(Tn.Target,{ref:gn(t,c.store.targetRef),children:f})});yk.displayName="@mantine/core/ComboboxTarget";function K4(e,t,n){for(let r=e-1;r>=0;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=t.length-1;r>-1;r-=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r}return e}function q4(e,t,n){for(let r=e+1;r<t.length;r+=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r;if(n){for(let r=0;r<t.length;r+=1)if(!t[r].hasAttribute("data-combobox-disabled"))return r}return e}function Y4(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute("data-combobox-disabled"))return t;return-1}function _h({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:o,loop:i=!0,scrollBehavior:s="instant"}={}){const[a,l]=kn({value:t,defaultValue:e,finalValue:!1,onChange:n}),u=S.useRef(null),c=S.useRef(-1),d=S.useRef(null),f=S.useRef(null),h=S.useRef(-1),g=S.useRef(-1),v=S.useRef(-1),w=S.useCallback((N="unknown")=>{a||(l(!0),o==null||o(N))},[l,o,a]),b=S.useCallback((N="unknown")=>{a&&(l(!1),r==null||r(N))},[l,r,a]),y=S.useCallback((N="unknown")=>{a?b(N):w(N)},[b,w,a]),x=S.useCallback(()=>{const N=document.querySelector(`#${u.current} [data-combobox-selected]`);N==null||N.removeAttribute("data-combobox-selected"),N==null||N.removeAttribute("aria-selected")},[]),R=S.useCallback(N=>{const F=document.getElementById(u.current),j=F==null?void 0:F.querySelectorAll("[data-combobox-option]");if(!j)return null;const L=N>=j.length?0:N<0?j.length-1:N;return c.current=L,j!=null&&j[L]&&!j[L].hasAttribute("data-combobox-disabled")?(x(),j[L].setAttribute("data-combobox-selected","true"),j[L].setAttribute("aria-selected","true"),j[L].scrollIntoView({block:"nearest",behavior:s}),j[L].id):null},[s,x]),k=S.useCallback(()=>{const N=document.querySelector(`#${u.current} [data-combobox-active]`);if(N){const F=document.querySelectorAll(`#${u.current} [data-combobox-option]`),j=Array.from(F).findIndex(L=>L===N);return R(j)}return R(0)},[R]),I=S.useCallback(()=>R(q4(c.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[R,i]),C=S.useCallback(()=>R(K4(c.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[R,i]),_=S.useCallback(()=>R(Y4(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[R]),T=S.useCallback((N="selected",F)=>{v.current=window.setTimeout(()=>{var B;const j=document.querySelectorAll(`#${u.current} [data-combobox-option]`),L=Array.from(j).findIndex(H=>H.hasAttribute(`data-combobox-${N}`));c.current=L,F!=null&&F.scrollIntoView&&((B=j[L])==null||B.scrollIntoView({block:"nearest",behavior:s}))},0)},[]),P=S.useCallback(()=>{c.current=-1,x()},[x]),M=S.useCallback(()=>{const N=document.querySelectorAll(`#${u.current} [data-combobox-option]`),F=N==null?void 0:N[c.current];F==null||F.click()},[]),O=S.useCallback(N=>{u.current=N},[]),A=S.useCallback(()=>{h.current=window.setTimeout(()=>d.current.focus(),0)},[]),V=S.useCallback(()=>{g.current=window.setTimeout(()=>f.current.focus(),0)},[]),z=S.useCallback(()=>c.current,[]);return S.useEffect(()=>()=>{window.clearTimeout(h.current),window.clearTimeout(g.current),window.clearTimeout(v.current)},[]),{dropdownOpened:a,openDropdown:w,closeDropdown:b,toggleDropdown:y,selectedOptionIndex:c.current,getSelectedOptionIndex:z,selectOption:R,selectFirstOption:_,selectActiveOption:k,selectNextOption:I,selectPreviousOption:C,resetSelectedOption:P,updateSelectedOptionIndex:T,listId:u.current,setListId:O,clickSelectedOption:M,searchRef:d,focusSearchInput:A,targetRef:f,focusTarget:V}}const X4={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},J4=(e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":Qt(t),"--combobox-option-padding":Xe(t,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:ae(n),"--combobox-option-fz":Qt(t),"--combobox-option-padding":Xe(t,"combobox-option-padding")}});
83function st(e){const t=re("Combobox",X4,e),{classNames:n,styles:r,unstyled:o,children:i,store:s,vars:a,onOptionSubmit:l,onClose:u,size:c,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:h,readOnly:g,...v}=t,w=_h(),b=s||w,y=Te({name:h||"Combobox",classes:lr,props:t,classNames:n,styles:r,unstyled:o,vars:a,varsResolver:J4}),x=()=>{u==null||u(),b.closeDropdown()};return p.jsx(O4,{value:{getStyles:y,store:b,onOptionSubmit:l,size:c,resetSelectionOnOptionHover:f,readOnly:g},children:p.jsx(Tn,{opened:b.dropdownOpened,...v,onChange:R=>!R&&x(),withRoles:!1,unstyled:o,children:i})})}const Q4=e=>e;st.extend=Q4;st.classes=lr;st.displayName="@mantine/core/Combobox";st.Target=yk;st.Dropdown=yb;st.Options=Rb;st.Option=_b;st.Search=Eb;st.Empty=bb;st.Chevron=vb;st.Footer=xb;st.Header=Cb;st.EventsTarget=gk;st.DropdownTarget=mk;st.Group=Sb;st.ClearButton=hk;st.HiddenInput=vk;var bk={root:"m_5f75b09e",body:"m_5f6e695e",labelWrapper:"m_d3ea56bb",label:"m_8ee546b8",description:"m_328f68c0",error:"m_8e8a99cc"};const wk=bk,Rh=S.forwardRef(({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:o,unstyled:i,children:s,label:a,description:l,id:u,disabled:c,error:d,size:f,labelPosition:h="left",bodyElement:g="div",labelElement:v="label",variant:w,style:b,vars:y,mod:x,...R},k)=>{const I=Te({name:e,props:t,className:n,style:b,classes:bk,classNames:r,styles:o,unstyled:i});return p.jsx(te,{...I("root"),ref:k,__vars:{"--label-fz":Qt(f),"--label-lh":Xe(f,"label-lh")},mod:[{"label-position":h},x],variant:w,size:f,...R,children:p.jsxs(te,{component:g,htmlFor:g==="label"?u:void 0,...I("body"),children:[s,p.jsxs("div",{...I("labelWrapper"),"data-disabled":c||void 0,children:[a&&p.jsx(te,{component:v,htmlFor:v==="label"?u:void 0,...I("label"),"data-disabled":c||void 0,children:a}),l&&p.jsx(Lt.Description,{size:f,__inheritStyles:!1,...I("description"),children:l}),d&&typeof d!="boolean"&&p.jsx(Lt.Error,{size:f,__inheritStyles:!1,...I("error"),children:d})]})]})})});Rh.displayName="@mantine/core/InlineInput";const xk=S.createContext(null),Z4=xk.Provider,Sk=()=>S.useContext(xk),[e5,t5]=Ts();var Ck={card:"m_26775b0a"};const n5={withBorder:!0},r5=(e,{radius:t})=>({card:{"--card-radius":bt(t)}}),Tb=fe((e,t)=>{const n=re("CheckboxCard",n5,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,checked:u,mod:c,withBorder:d,value:f,onClick:h,defaultChecked:g,onChange:v,...w}=n,b=Te({name:"CheckboxCard",classes:Ck,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:r5,rootSelector:"card"}),y=Sk(),x=typeof u=="boolean"?u:y?y.value.includes(f||""):void 0,[R,k]=kn({value:x,defaultValue:g,finalValue:!1,onChange:v});return p.jsx(e5,{value:{checked:R},children:p.jsx(mn,{ref:t,mod:[{"with-border":d,checked:R},c],...b("card"),...w,role:"checkbox","aria-checked":R,onClick:I=>{h==null||h(I),y==null||y.onChange(f||""),k(!R)}})})});Tb.displayName="@mantine/core/CheckboxCard";Tb.classes=Ck;function Pb({children:e,role:t}){const n=Zl();return n?p.jsx("div",{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):p.jsx(p.Fragment,{children:e})}const o5={},kb=fe((e,t)=>{const{value:n,defaultValue:r,onChange:o,size:i,wrapperProps:s,children:a,readOnly:l,...u}=re("CheckboxGroup",o5,e),[c,d]=kn({value:n,defaultValue:r,finalValue:[],onChange:o}),f=h=>{const g=typeof h=="string"?h:h.currentTarget.value;!l&&d(c.includes(g)?c.filter(v=>v!==g):[...c,g])};return p.jsx(Z4,{value:{value:c,onChange:f,size:i},children:p.jsx(Lt.Wrapper,{size:i,ref:t,...s,...u,labelElement:"div",__staticSelector:"CheckboxGroup",children:p.jsx(Pb,{role:"group",children:a})})})});kb.classes=Lt.Wrapper.classes;kb.displayName="@mantine/core/CheckboxGroup";function _k({size:e,style:t,...n}){const r=e!==void 0?{width:ae(e),height:ae(e),...t}:t;return p.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r,"aria-hidden":!0,...n,children:p.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function Rk({indeterminate:e,...t}){return e?p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 6","aria-hidden":!0,...t,children:p.jsx("rect",{width:"32",height:"6",fill:"currentColor",rx:"3"})}):p.jsx(_k,{...t})}var Ek={indicator:"m_5e5256ee",icon:"m_1b1c543a","indicator--outline":"m_76e20374"};const i5={icon:Rk},s5=(e,{radius:t,color:n,size:r,iconColor:o,variant:i,autoContrast:s})=>{const a=wr({color:n||e.primaryColor,theme:e}),l=a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-outline)`:a.color;return{indicator:{"--checkbox-size":Xe(r,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:bt(t),"--checkbox-color":i==="outline"?l:It(n,e),"--checkbox-icon-color":o?It(o,e):xa(s,e)?ks({color:n,theme:e,autoContrast:s}):void 0}}},Ib=fe((e,t)=>{const n=re("CheckboxIndicator",i5,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,icon:u,indeterminate:c,radius:d,color:f,iconColor:h,autoContrast:g,checked:v,mod:w,variant:b,disabled:y,...x}=n,R=u,k=Te({name:"CheckboxIndicator",classes:Ek,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:s5,rootSelector:"indicator"}),I=t5(),C=typeof v=="boolean"||typeof c=="boolean"?v||c:(I==null?void 0:I.checked)||!1;return p.jsx(te,{ref:t,...k("indicator",{variant:b}),variant:b,mod:[{checked:C,disabled:y},w],...x,children:p.jsx(R,{indeterminate:c,...k("icon")})})});Ib.displayName="@mantine/core/CheckboxIndicator";Ib.classes=Ek;var Tk={root:"m_bf2d988c",inner:"m_26062bec",input:"m_26063560",icon:"m_bf295423","
83input--outline":"m_215c4542"};const a5={labelPosition:"right",icon:Rk},l5=(e,{radius:t,color:n,size:r,iconColor:o,variant:i,autoContrast:s})=>{const a=wr({color:n||e.primaryColor,theme:e}),l=a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-outline)`:a.color;return{root:{"--checkbox-size":Xe(r,"checkbox-size"),"--checkbox-radius":t===void 0?void 0:bt(t),"--checkbox-color":i==="outline"?l:It(n,e),"--checkbox-icon-color":o?It(o,e):xa(s,e)?ks({color:n,theme:e,autoContrast:s}):void 0}}},Is=fe((e,t)=>{const n=re("Checkbox",a5,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,color:u,label:c,id:d,size:f,radius:h,wrapperProps:g,checked:v,labelPosition:w,description:b,error:y,disabled:x,variant:R,indeterminate:k,icon:I,rootRef:C,iconColor:_,onChange:T,autoContrast:P,mod:M,...O}=n,A=Sk(),V=f||(A==null?void 0:A.size),z=I,N=Te({name:"Checkbox",props:n,classes:Tk,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:l5}),{styleProps:F,rest:j}=Sa(O),L=Rr(d),B=A?{checked:A.value.includes(j.value),onChange:ee=>{A.onChange(ee),T==null||T(ee)}}:{},H=S.useRef(null),G=t||H;return S.useEffect(()=>{G&&"current"in G&&G.current&&(G.current.indeterminate=k||!1)},[k,G]),p.jsx(Rh,{...N("root"),__staticSelector:"Checkbox",__stylesApiProps:n,id:L,size:V,labelPosition:w,label:c,description:b,error:y,disabled:x,classNames:r,styles:s,unstyled:a,"data-checked":B.checked||v||void 0,variant:R,ref:C,mod:M,...F,...g,children:p.jsxs(te,{...N("inner"),mod:{"data-label-position":w},children:[p.jsx(te,{component:"input",id:L,ref:G,checked:v,disabled:x,mod:{error:!!y,indeterminate:k},...N("input",{focusable:!0,variant:R}),onChange:T,...j,...B,type:"checkbox"}),p.jsx(z,{indeterminate:k,...N("icon")})]})})});Is.classes={...Tk,...wk};Is.displayName="@mantine/core/Checkbox";Is.Group=kb;Is.Indicator=Ib;Is.Card=Tb;function Ol(e){return"group"in e}function Pk({options:e,search:t,limit:n}){const r=t.trim().toLowerCase(),o=[];for(let i=0;i<e.length;i+=1){const s=e[i];if(o.length===n)return o;Ol(s)&&o.push({group:s.group,items:Pk({options:s.items,search:t,limit:n-o.length})}),Ol(s)||s.label.toLowerCase().includes(r)&&o.push(s)}return o}function u5(e){if(e.length===0)return!0;for(const t of e)if(!("group"in t)||t.items.length>0)return!1;return!0}function kk(e,t=new Set){if(Array.isArray(e))for(const n of e)if(Ol(n))kk(n.items,t);else{if(typeof n.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof n.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(t.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function c5(e,t){return Array.isArray(e)?e.includes(t):e===t}function Ik({data:e,withCheckIcon:t,value:n,checkIconPosition:r,unstyled:o,renderOption:i}){if(!Ol(e)){const a=c5(n,e.value),l=t&&a&&p.jsx(_k,{className:lr.optionsDropdownCheckIcon}),u=p.jsxs(p.Fragment,{children:[r==="left"&&l,p.jsx("span",{children:e.label}),r==="right"&&l]});return p.jsx(st.Option,{value:e.value,disabled:e.disabled,className:Ce({[lr.optionsDropdownOption]:!o}),"data-reverse":r==="right"||void 0,"data-checked":a||void 0,"aria-selected":a,active:a,children:typeof i=="function"?i({option:e,checked:a}):u})}const s=e.items.map(a=>p.jsx(Ik,{data:a,value:n,unstyled:o,withCheckIcon:t,checkIconPosition:r,renderOption:i},a.value));return p.jsx(st.Group,{label:e.group,children:s})}function Mb({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:o,limit:i,maxDropdownHeight:s,withScrollArea:a=!0,filterOptions:l=!0,withCheckIcon:u=!1,value:c,checkIconPosition:d,nothingFoundMessage:f,unstyled:h,labelId:g,renderOption:v,scrollAreaProps:w,"aria-label":b}){kk(e);const x=typeof o=="string"?(r||Pk)({options:e,search:l?o:"",limit:i??1/0}):e,R=u5(x),k=x.map(I=>p.jsx(Ik,{data:I,withCheckIcon:u,value:c,checkIconPosition:d,unstyled:h,renderOption:v},Ol(I)?I.group:I.value));return p.jsx(st.Dropdown,{hidden:t||n&&R,"data-composed":!0,children:p.jsxs(st.Options,{labelledBy:g,"aria-label":b,children:[a?p.jsx(Ca.Autosize,{mah:s??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...w,children:k}):k,R&&f&&p.jsx(st.Empty,{children:f})]})})}const d5={},Db=fe((e,t)=>{const n=re("Autocomplete",d5,e),{classNames:r,styles:o,unstyled:i,vars:s,dropdownOpened:a,defaultDropdownOpened:l,onDropdownClose:u,onDropdownOpen:c,onFocus:d,onBlur:f,onClick:h,onChange:g,data:v,value:w,defaultValue:b,selectFirstOptionOnChange:y,onOptionSubmit:x,comboboxProps:R,readOnly:k,disabled:I,filter:C,limit:_,withScrollArea:T,maxDropdownHeight:P,size:M,id:O,renderOption:A,autoComplete:V,scrollAreaProps:z,onClear:N,clearButtonProps:F,error:j,clearable:L,rightSection:B,...H}=n,G=Rr(O),ee=gb(v),oe=Ch(ee),[X,J]=kn({value:w,defaultValue:b,finalValue:"",onChange:g}),q=_h({opened:a,defaultOpened:l,onDropdownOpen:c,onDropdownClose:()=>{u==null||u(),q.resetSelectedOption()}}),ne=ue=>{J(ue),q.resetSelectedOption()},{resolvedClassNames:Y,resolvedStyles:W}=xi({props:n,styles:o,classNames:r});S.useEffect(()=>{y&&q.selectFirstOption()},[y,X]);const se=p.jsx(st.ClearButton,{...F,onClear:()=>{ne(""),N==null||N()}});return p.jsxs(st,{store:q,__staticSelector:"Autocomplete",classNames:Y,styles:W,unstyled:i,readOnly:k,onOptionSubmit:ue=>{x==null||x(ue),ne(oe[ue].label),q.closeDropdown()},size:M,...R,children:[p.jsx(st.Target,{autoComplete:V,children:p.jsx(Ur,{ref:t,...H,size:M,__staticSelector:"Autocomplete",__clearSection:se,__clearable:L&&!!X&&!I&&!k,rightSection:B,disabled:I,readOnly:k,value:X,error:j,onChange:ue=>{ne(ue.currentTarget.value),q.openDropdown(),y&&q.selectFirstOption()},onFocus:ue=>{q.openDropdown(),d==null||d(ue)},onBlur:ue=>{q.closeDropdown(),f==null||f(ue)},onClick:ue=>{q.openDropdown(),h==null||h(ue)},classNames:Y,styles:W,unstyled:i,id:G})}),p.jsx(Mb,{data:ee,hidden:k||I,filter:C,search:X,limit:_,hiddenWhenEmpty:!0,withScrollArea:T,maxDropdownHeight:P,unstyled:i,labelId:H.label?`${G}-label`:void 0,"aria-label":H.label?void 0:H["aria-label"],renderOption:A,scrollAreaProps:z})]})});Db.classes={...Ur.classes,...st.classes};Db.displayName="@mantine/core/Autocomplete";const Mk=S.createContext(null),f5=Mk.Provider;function p5(){return{withinGroup:!!S.useContext(Mk)}}var Eh={group:"m_11def92b",root:"m_f85678b6",image:"m_11f8ac07",placeholder:"m_104cd71f"};const h5={},m5=(e,{spacing:t})=>({group:{"--ag-spacing":hn(t)}}),Ab=fe((e,t)=>{const n=re("AvatarGroup",h5,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,spacing:u,...c}=n,d=Te({name:"AvatarGroup",classes:Eh,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:m5,rootSelector:"group"});return p.jsx(f5,{value:!0,children:p.jsx(te,{ref:t,...d("group"),...c})})});Ab.classes=Eh;Ab.displayName="@mantine/core/AvatarGroup";function g5(e){return p.jsx("svg",{...e,"data-avatar-placeholder-icon":!0,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.
831575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function v5(e){let t=0;for(let n=0;n<e.length;n+=1){const r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}const y5=["blue","cyan","grape","green","indigo","lime","orange","pink","red","teal","violet"];function b5(e,t=y5){const n=v5(e),r=Math.abs(n)%t.length;return t[r]}function w5(e,t=2){const n=e.split(" ");return n.length===1?e.slice(0,t).toUpperCase():n.map(r=>r[0]).slice(0,t).join("").toUpperCase()}const x5={},S5=(e,{size:t,radius:n,variant:r,gradient:o,color:i,autoContrast:s,name:a,allowedInitialsColors:l})=>{const u=i==="initials"&&typeof a=="string"?b5(a,l):i,c=e.variantColorResolver({color:u||"gray",theme:e,gradient:o,variant:r||"light",autoContrast:s});return{root:{"--avatar-size":Xe(t,"avatar-size"),"--avatar-radius":n===void 0?void 0:bt(n),"--avatar-bg":u||r?c.background:void 0,"--avatar-color":u||r?c.color:void 0,"--avatar-bd":u||r?c.border:void 0}}},_i=vn((e,t)=>{const n=re("Avatar",x5,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,src:u,alt:c,radius:d,color:f,gradient:h,imageProps:g,children:v,autoContrast:w,mod:b,name:y,allowedInitialsColors:x,...R}=n,k=p5(),[I,C]=S.useState(!u),_=Te({name:"Avatar",props:n,classes:Eh,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:S5});return S.useEffect(()=>C(!u),[u]),p.jsx(te,{..._("root"),mod:[{"within-group":k.withinGroup},b],ref:t,...R,children:I?p.jsx("span",{..._("placeholder"),title:c,children:v||typeof y=="string"&&w5(y)||p.jsx(g5,{})}):p.jsx("img",{...g,..._("image"),src:u,alt:c,onError:T=>{var P;C(!0),(P=g==null?void 0:g.onError)==null||P.call(g,T)}})})});_i.classes=Eh;_i.displayName="@mantine/core/Avatar";_i.Group=Ab;var Dk={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const C5={},_5=(e,{radius:t,color:n,gradient:r,variant:o,size:i,autoContrast:s})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:s});return{root:{"--badge-height":Xe(i,"badge-height"),"--badge-padding-x":Xe(i,"badge-padding-x"),"--badge-fz":Xe(i,"badge-fz"),"--badge-radius":t===void 0?void 0:bt(t),"--badge-bg":n||o?a.background:void 0,"--badge-color":n||o?a.color:void 0,"--badge-bd":n||o?a.border:void 0,"--badge-dot-color":o==="dot"?It(n,e):void 0}}},Jc=vn((e,t)=>{const n=re("Badge",C5,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,radius:u,color:c,gradient:d,leftSection:f,rightSection:h,children:g,variant:v,fullWidth:w,autoContrast:b,circle:y,mod:x,...R}=n,k=Te({name:"Badge",props:n,classes:Dk,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:_5});return p.jsxs(te,{variant:v,mod:[{block:w,circle:y,"with-right-section":!!h,"with-left-section":!!f},x],...k("root",{variant:v}),ref:t,...R,children:[f&&p.jsx("span",{...k("section"),"data-position":"left",children:f}),p.jsx("span",{...k("label"),children:g}),h&&p.jsx("span",{...k("section"),"data-position":"right",children:h})]})});Jc.classes=Dk;Jc.displayName="@mantine/core/Badge";var Ak={root:"m_ddec01c0",icon:"m_dde7bd57",cite:"m_dde51a35"};const R5={iconSize:48},E5=(e,{color:t,iconSize:n,radius:r})=>{const o=wr({color:t||e.primaryColor,theme:e,colorScheme:"dark"}),i=wr({color:t||e.primaryColor,theme:e,colorScheme:"light"});return{root:{"--bq-bg-light":Ir(i.value,.07),"--bq-bg-dark":Ir(o.value,.06),"--bq-bd":It(t,e),"--bq-icon-size":ae(n),"--bq-radius":bt(r)}}},jb=fe((e,t)=>{const n=re("Blockquote",R5,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,children:u,icon:c,iconSize:d,cite:f,...h}=n,g=Te({name:"Blockquote",classes:Ak,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:E5});return p.jsxs(te,{component:"blockquote",ref:t,...g("root"),...h,children:[c&&p.jsx("span",{...g("icon"),children:c}),u,f&&p.jsx("cite",{...g("cite"),children:f})]})});jb.classes=Ak;jb.displayName="@mantine/core/Blockquote";var eu={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const OS={orientation:"horizontal"},T5=(e,{borderWidth:t})=>({group:{"--button-border-width":ae(t)}}),Ob=fe((e,t)=>{const n=re("ButtonGroup",OS,e),{className:r,style:o,classNames:i,styles:s,unstyled:a,orientation:l,vars:u,borderWidth:c,variant:d,mod:f,...h}=re("ButtonGroup",OS,e),g=Te({name:"ButtonGroup",props:n,classes:eu,className:r,style:o,classNames:i,styles:s,unstyled:a,vars:u,varsResolver:T5,rootSelector:"group"});return p.jsx(te,{...g("group"),ref:t,variant:d,mod:[{"data-orientation":l},f],role:"group",...h})});Ob.classes=eu;Ob.displayName="@mantine/core/ButtonGroup";const NS={},P5=(e,{radius:t,color:n,gradient:r,variant:o,autoContrast:i,size:s})=>{const a=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:i});return{groupSection:{"--section-height":Xe(s,"section-height"),"--section-padding-x":Xe(s,"section-padding-x"),"--section-fz":s!=null&&s.includes("compact")?Qt(s.replace("compact-","")):Qt(s),"--section-radius":t===void 0?void 0:bt(t),"--section-bg":n||o?a.background:void 0,"--section-color":a.color,"--section-bd":n||o?a.border:void 0}}},Nb=fe((e,t)=>{const n=re("ButtonGroupSection",NS,e),{className:r,style:o,classNames:i,styles:s,unstyled:a,vars:l,variant:u,gradient:c,radius:d,autoContrast:f,...h}=re("ButtonGroupSection",NS,e),g=Te({name:"ButtonGroupSection",props:n,classes:eu,className:r,style:o,classNames:i,styles:s,unstyled:a,vars:l,varsResolver:P5,rootSelector:"groupSection"});return p.jsx(te,{...g("groupSection"),ref:t,variant:u,...h})});Nb.classes=eu;Nb.displayName="@mantine/core/ButtonGroupSection";
83const k5={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${ae(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},I5={},M5=(e,{radius:t,color:n,gradient:r,variant:o,size:i,justify:s,autoContrast:a})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:o||"filled",autoContrast:a});return{root:{"--button-justify":s,"--button-height":Xe(i,"button-height"),"--button-padding-x":Xe(i,"button-padding-x"),"--button-fz":i!=null&&i.includes("compact")?Qt(i.replace("compact-","")):Qt(i),"--button-radius":t===void 0?void 0:bt(t),"--button-bg":n||o?l.background:void 0,"--button-hover":n||o?l.hover:void 0,"--button-color":l.color,"--button-bd":n||o?l.border:void 0,"--button-hover-color":n||o?l.hoverColor:void 0}}},Ct=vn((e,t)=>{const n=re("Button",I5,e),{style:r,vars:o,className:i,color:s,disabled:a,children:l,leftSection:u,rightSection:c,fullWidth:d,variant:f,radius:h,loading:g,loaderProps:v,gradient:w,classNames:b,styles:y,unstyled:x,"data-disabled":R,autoContrast:k,mod:I,...C}=n,_=Te({name:"Button",props:n,classes:eu,className:i,style:r,classNames:b,styles:y,unstyled:x,vars:o,varsResolver:M5}),T=!!u,P=!!c;return p.jsxs(mn,{ref:t,..._("root",{active:!a&&!g&&!R}),unstyled:x,variant:f,disabled:a||g,mod:[{disabled:a||R,loading:g,block:d,"with-left-section":T,"with-right-section":P},I],...C,children:[p.jsx(Br,{mounted:!!g,transition:k5,duration:150,children:M=>p.jsx(te,{component:"span",..._("loader",{style:M}),"aria-hidden":!0,children:p.jsx(Ra,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...v})})}),p.jsxs("span",{..._("inner"),children:[u&&p.jsx(te,{component:"span",..._("section"),mod:{position:"left"},children:u}),p.jsx(te,{component:"span",mod:{loading:g},..._("label"),children:l}),c&&p.jsx(te,{component:"span",..._("section"),mod:{position:"right"},children:c})]})]})});Ct.classes=eu;Ct.displayName="@mantine/core/Button";Ct.Group=Ob;Ct.GroupSection=Nb;const[D5,A5]=ur("Card component was not found in tree");var Lb={root:"m_e615b15f",section:"m_599a2148"};const j5={},Th=vn((e,t)=>{const n=re("CardSection",j5,e),{classNames:r,className:o,style:i,styles:s,vars:a,withBorder:l,inheritPadding:u,mod:c,...d}=n,f=A5();return p.jsx(te,{ref:t,mod:[{"with-border":l,"inherit-padding":u},c],...f.getStyles("section",{className:o,style:i,styles:s,classNames:r}),...d})});Th.classes=Lb;Th.displayName="@mantine/core/CardSection";const O5={},N5=(e,{padding:t})=>({root:{"--card-padding":hn(t)}}),oi=vn((e,t)=>{const n=re("Card",O5,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,children:u,padding:c,...d}=n,f=Te({name:"Card",props:n,classes:Lb,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:N5}),h=S.Children.toArray(u),g=h.map((v,w)=>typeof v=="object"&&v&&"type"in v&&v.type===Th?S.cloneElement(v,{"data-first-section":w===0||void 0,"data-last-section":w===h.length-1||void 0}):v);return p.jsx(D5,{value:{getStyles:f},children:p.jsx(Xc,{ref:t,unstyled:a,...f("root"),...d,children:g})})});oi.classes=Lb;oi.displayName="@mantine/core/Card";oi.Section=Th;const L5={timeout:1e3};function jk(e){const{children:t,timeout:n,value:r,...o}=re("CopyButton",L5,e),i=qO({timeout:n}),s=()=>i.copy(r);return p.jsx(p.Fragment,{children:t({copy:s,copied:i.copied,...o})})}jk.displayName="@mantine/core/CopyButton";function F5({open:e,close:t,openDelay:n,closeDelay:r}){const o=S.useRef(-1),i=S.useRef(-1),s=()=>{window.clearTimeout(o.current),window.clearTimeout(i.current)},a=()=>{s(),n===0||n===void 0?e():o.current=window.setTimeout(e,n)},l=()=>{s(),r===0||r===void 0?t():i.current=window.setTimeout(t,r)};return S.useEffect(()=>s,[]),{openDropdown:a,closeDropdown:l}}const[LS,Ok]=ur("Grid component was not found in tree"),uy=(e,t)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(t/e)}%`:void 0,FS=(e,t,n)=>n||e==="auto"?"100%":e==="content"?"unset":uy(e,t),$S=(e,t)=>{if(e)return e==="auto"||t?"1":"auto"},zS=(e,t)=>e===0?"0":e?`${100/(t/e)}%`:void 0;function $5({span:e,order:t,offset:n,selector:r}){var h;const o=rn(),i=Ok(),s=i.breakpoints||o.breakpoints,l=Jo(e)===void 0?12:Jo(e),u=Rs({"--col-order":(h=Jo(t))==null?void 0:h.toString(),"--col-flex-grow":$S(l,i.grow),"--col-flex-basis":uy(l,i.columns),"--col-width":l==="content"?"auto":void 0,"--col-max-width":FS(l,i.columns,i.grow),"--col-offset":zS(Jo(n),i.columns)}),c=nn(s).reduce((g,v)=>{var w;return g[v]||(g[v]={}),typeof t=="object"&&t[v]!==void 0&&(g[v]["--col-order"]=(w=t[v])==null?void 0:w.toString()),typeof e=="object"&&e[v]!==void 0&&(g[v]["--col-flex-grow"]=$S(e[v],i.grow),g[v]["--col-flex-basis"]=uy(e[v],i.c
83olumns),g[v]["--col-width"]=e[v]==="content"?"auto":void 0,g[v]["--col-max-width"]=FS(e[v],i.columns,i.grow)),typeof n=="object"&&n[v]!==void 0&&(g[v]["--col-offset"]=zS(n[v],i.columns)),g},{}),f=V0(nn(c),s).filter(g=>nn(c[g.value]).length>0).map(g=>({query:i.type==="container"?`mantine-grid (min-width: ${s[g.value]})`:`(min-width: ${s[g.value]})`,styles:c[g.value]}));return p.jsx(ql,{styles:u,media:i.type==="container"?void 0:f,container:i.type==="container"?f:void 0,selector:r})}var Fb={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const z5={span:12},$b=fe((e,t)=>{const n=re("GridCol",z5,e),{classNames:r,className:o,style:i,styles:s,vars:a,span:l,order:u,offset:c,...d}=n,f=Ok(),h=qc();return p.jsxs(p.Fragment,{children:[p.jsx($5,{selector:`.${h}`,span:l,order:u,offset:c}),p.jsx(te,{ref:t,...f.getStyles("col",{className:Ce(o,h),style:i,classNames:r,styles:s}),...d})]})});$b.classes=Fb;$b.displayName="@mantine/core/GridCol";function VS({gutter:e,selector:t,breakpoints:n,type:r}){const o=rn(),i=n||o.breakpoints,s=Rs({"--grid-gutter":hn(Jo(e))}),a=nn(i).reduce((c,d)=>(c[d]||(c[d]={}),typeof e=="object"&&e[d]!==void 0&&(c[d]["--grid-gutter"]=hn(e[d])),c),{}),u=V0(nn(a),i).filter(c=>nn(a[c.value]).length>0).map(c=>({query:r==="container"?`mantine-grid (min-width: ${i[c.value]})`:`(min-width: ${i[c.value]})`,styles:a[c.value]}));return p.jsx(ql,{styles:s,media:r==="container"?void 0:u,container:r==="container"?u:void 0,selector:t})}const V5={gutter:"md",grow:!1,columns:12},B5=(e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}}),ot=fe((e,t)=>{const n=re("Grid",V5,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,grow:u,gutter:c,columns:d,align:f,justify:h,children:g,breakpoints:v,type:w,...b}=n,y=Te({name:"Grid",classes:Fb,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:B5}),x=qc();return w==="container"&&v?p.jsxs(LS,{value:{getStyles:y,grow:u,columns:d||12,breakpoints:v,type:w},children:[p.jsx(VS,{selector:`.${x}`,...n}),p.jsx("div",{...y("container"),children:p.jsx(te,{ref:t,...y("root",{className:x}),...b,children:p.jsx("div",{...y("inner"),children:g})})})]}):p.jsxs(LS,{value:{getStyles:y,grow:u,columns:d||12,breakpoints:v,type:w},children:[p.jsx(VS,{selector:`.${x}`,...n}),p.jsx(te,{ref:t,...y("root",{className:x}),...b,children:p.jsx("div",{...y("inner"),children:g})})]})});ot.classes=Fb;ot.displayName="@mantine/core/Grid";ot.Col=$b;function BS({color:e,theme:t,defaultShade:n}){const r=wr({color:e,theme:t});return r.isThemeColor?r.shade===void 0?`var(--mantine-color-${r.color}-${n})`:`var(${r.variable})`:e}var Nk={root:"m_bcb3f3c2"};const H5={color:"yellow"},U5=(e,{color:t})=>({root:{"--mark-bg-dark":BS({color:t,theme:e,defaultShade:5}),"--mark-bg-light":BS({color:t,theme:e,defaultShade:2})}}),zb=fe((e,t)=>{const n=re("Mark",H5,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,color:u,variant:c,...d}=n,f=Te({name:"Mark",props:n,className:o,style:i,classes:Nk,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:U5});return p.jsx(te,{component:"mark",ref:t,variant:c,...f("root"),...d})});zb.classes=Nk;zb.displayName="@mantine/core/Mark";function HS(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function G5(e,t){if(t==null)return[{chunk:e,highlighted:!1}];const n=Array.isArray(t)?t.map(HS):HS(t);if(!(Array.isArray(n)?n.filter(a=>a.trim().length>0).length>0:n.trim()!==""))return[{chunk:e,highlighted:!1}];const o=typeof n=="string"?n.trim():n.filter(a=>a.trim().length!==0).map(a=>a.trim()).sort((a,l)=>l.length-a.length).join("|"),i=new RegExp(`(${o})`,"gi");return e.split(i).map(a=>({chunk:a,highlighted:i.test(a)})).filter(({chunk:a})=>a)}const W5={},Vb=vn((e,t)=>{const{unstyled:n,children:r,highlight:o,highlightStyles:i,color:s,...a}=re("Highlight",W5,e),l=G5(r,o);return p.jsx(nt,{unstyled:n,ref:t,...a,__staticSelector:"Highlight",children:l.map(({chunk:u,highlighted:c},d)=>c?p.jsx(zb,{unstyled:n,color:s,style:i,"data-highlight":u,children:u},d):p.jsx("span",{children:u},d))})});Vb.classes=nt.classes;Vb.displayName="@mantine/core/Highlight";var Lk={root:"m_9e117634"};const K5={},q5=(e,{radius:t,fit:n})=>({root:{"--image-radius":t===void 0?void 0:bt(t),"--image-object-fit":n}}),Ph=vn((e,t)=>{const n=re("Image",K5,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,onError:u,src:c,radius:d,fit:f,fallbackSrc:h,mod:g,...v}=n,[w,b]=S.useState(!c);S.useEffect(()=>b(!c),[c]);const y=Te({name:"Image",classes:Lk,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:q5});return w&&h?p.jsx(te,{component:"img",ref:t,src:h,...y("root"),onError:u,mod:["fallback",g],...v}):p.jsx(te,{component:"img",ref:t,...y("root"),src:c,onError:x=>{u==null||u(x),b(!0)},mod:g,...v})});Ph.classes=Lk;Ph.displayName="@mantine/core/Image";function Y5(e="top-end",t=0){const n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=ae(t),[o,i]=e.split("-");return o==="top"&&(n["--indicator-top"]=r,n["--indicator-translate-y"]="-50%"),o==="middle"&&(n["--indicator-top"]="50%",n["--indicator-translate-y"]="-50%"),o==="bottom"&&(n["--indicator-bottom"]=r,n["--indicator-translate-y"]="50%"),i==="start"&&(n["--indicator-left"]=r,n["--indicator-translate-x"]="-50%"),i==="center"&&(n["--indicator-left"]="50%",n["--indicator-translate-x"]="-50%"),i==="end"&&(n["--indicator-right"]=r,n["--indicator-translate-x"]="50%"),n}var Fk={root:"m_e5262200",indicator:"m_760d1fb1",processing:"m_885901b1"};const X5={position:"top-end",offset:0,inline:!1,withBorder:!1,disabled:!1,processing:!1},J5=(e,{color:t,position:n,offset:r,size:o,radius:i,zIndex:s,autoContrast:a})=>({root:{"--indicator-color":t?It(t,e):void 0,"--indicator-text-color":xa(a,e)?ks({color:t,theme:e,autoContrast:a}):void 0,"--indicator-size":ae(o),"--indicator-radius":i===void 0?void 0:bt(i),"--indicator-z-index":s==null?void 0:s.toString(),...Y5(n,r)}}),Bb=fe((e,t)=>{const n=re("Indicator",X5,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,children:u,position:c,offset:d,inline:f,label:h,radius:g,color:v,withBorder:w,disabled:b,processing:y,zIndex:x,autoContrast:R,mod:k,...I}
83=n,C=Te({name:"Indicator",classes:Fk,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:J5});return p.jsxs(te,{ref:t,...C("root"),mod:[{inline:f},k],...I,children:[!b&&p.jsx(te,{mod:{"with-label":!!h,"with-border":w,processing:y},...C("indicator"),children:h}),u]})});Bb.classes=Fk;Bb.displayName="@mantine/core/Indicator";function gp(){return gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gp.apply(null,arguments)}function Hb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Q5=S.useLayoutEffect,Z5=function(t){var n=Rn.useRef(t);return Q5(function(){n.current=t}),n},US=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},e3=function(t,n){var r=Rn.useRef();return Rn.useCallback(function(o){t.current=o,r.current&&US(r.current,null),r.current=n,n&&US(n,o)},[n])},GS={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},t3=function(t){Object.keys(GS).forEach(function(n){t.style.setProperty(n,GS[n],"important")})},WS=t3,Bn=null,KS=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function n3(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),Bn||(Bn=document.createElement("textarea"),Bn.setAttribute("tabindex","-1"),Bn.setAttribute("aria-hidden","true"),WS(Bn)),Bn.parentNode===null&&document.body.appendChild(Bn);var o=e.paddingSize,i=e.borderSize,s=e.sizingStyle,a=s.boxSizing;Object.keys(s).forEach(function(f){var h=f;Bn.style[h]=s[h]}),WS(Bn),Bn.value=t;var l=KS(Bn,e);Bn.value=t,l=KS(Bn,e),Bn.value="x";var u=Bn.scrollHeight-o,c=u*n;a==="border-box"&&(c=c+o+i),l=Math.max(c,l);var d=u*r;return a==="border-box"&&(d=d+o+i),l=Math.min(d,l),[l,u]}var qS=function(){},r3=function(t,n){return t.reduce(function(r,o){return r[o]=n[o],r},{})},o3=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],i3=!!document.documentElement.currentStyle,s3=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=r3(o3,n),o=r.boxSizing;if(o==="")return null;i3&&o==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),s=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:s}},a3=s3;function Ub(e,t,n){var r=Z5(n);S.useLayoutEffect(function(){var o=function(s){return r.current(s)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var l3=function(t,n){Ub(document.body,"reset",function(r){t.current.form===r.target&&n(r)})},u3=function(t){Ub(window,"resize",t)},c3=function(t){Ub(document.fonts,"loadingdone",t)},d3=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],f3=function(t,n){var r=t.cacheMeasurements,o=t.maxRows,i=t.minRows,s=t.onChange,a=s===void 0?qS:s,l=t.onHeightChange,u=l===void 0?qS:l,c=Hb(t,d3),d=c.value!==void 0,f=S.useRef(null),h=e3(f,n),g=S.useRef(0),v=S.useRef(),w=function(){var x=f.current,R=r&&v.current?v.current:a3(x);if(R){v.current=R;var k=n3(R,x.value||x.placeholder||"x",i,o),I=k[0],C=k[1];g.current!==I&&(g.current=I,x.style.setProperty("height",I+"px","important"),u(I,{rowHeight:C}))}},b=function(x){d||w(),a(x)};return S.useLayoutEffect(w),l3(f,function(){if(!d){var y=f.current.value;requestAnimationFrame(function(){var x=f.current;x&&y!==x.value&&w()})}}),u3(w),c3(w),S.createElement("textarea",gp({},c,{onChange:b,ref:h}))},p3=S.forwardRef(f3);const h3={},Gb=fe((e,t)=>{const{autosize:n,maxRows:r,minRows:o,__staticSelector:i,resize:s,...a}=re("Textarea",h3,e),l=n&&gN()!=="test",u=l?{maxRows:r,minRows:o}:{};return p.jsx(Ur,{component:l?p3:"textarea",ref:t,...a,__staticSelector:i||"Textarea",multiline:!0,"data-no-overflow":n&&r===void 0||void 0,__vars:{"--input-resize":s},...u})});Gb.classes=Ur.classes;Gb.displayName="@mantine/core/Textarea";var $k={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const YS={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:zr("overlay")},m3=(e,{zIndex:t})=>({root:{"--lo-z-index":t==null?void 0:t.toString()}}),kh=fe((e,t)=>{const n=re("LoadingOverlay",YS,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,transitionProps:u,loaderProps:c,overlayProps:d,visible:f,zIndex:h,...g}=n,v=rn(),w=Te({name:"LoadingOverlay",classes:$k,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:m3}),b={...YS.overlayProps,...d};return p.jsx(Br,{transition:"fade",...u,mounted:!!f,children:y=>p.jsxs(te,{...w("root",{style:y}),ref:t,...g,children:[p.jsx(Ra,{...w("loader"),unstyled:a,...c}),p.jsx(Al,{...b,...w("overlay"),darkHidden:!0,unstyled:a,color:(d==null?void 0:d.color)||v.white}),p.jsx(Al,{...b,...w("overlay"),lightHidden:!0,unstyled:a,color:(d==null?void 0:d.color)||v.colors.dark[5]})]})})});kh.classes=$k;kh.displayName="@mantine/core/LoadingOverlay";const[g3,Qc]=ur("Menu component was not found in the tree");var tu={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504"};const v3={},Wb=fe((e,t)=>{const{classNames:n,className:r,style:o,styles:i,vars:s,...a}=re("MenuDivider",v3,e),l=Qc();return p.jsx(te,{ref:t,...l.getStyles("divider",{className:r,style:o,styles:i,classNames:n}
83),...a})});Wb.classes=tu;Wb.displayName="@mantine/core/MenuDivider";const y3={},Kb=fe((e,t)=>{const{classNames:n,className:r,style:o,styles:i,vars:s,onMouseEnter:a,onMouseLeave:l,onKeyDown:u,children:c,...d}=re("MenuDropdown",y3,e),f=S.useRef(null),h=Qc(),g=nr(u,b=>{var y,x;(b.key==="ArrowUp"||b.key==="ArrowDown")&&(b.preventDefault(),(x=(y=f.current)==null?void 0:y.querySelectorAll("[data-menu-item]:not(:disabled)")[0])==null||x.focus())}),v=nr(a,()=>(h.trigger==="hover"||h.trigger==="click-hover")&&h.openDropdown()),w=nr(l,()=>(h.trigger==="hover"||h.trigger==="click-hover")&&h.closeDropdown());return p.jsxs(Tn.Dropdown,{...d,onMouseEnter:v,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:gn(t,f),...h.getStyles("dropdown",{className:r,style:o,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:g,children:[h.withInitialFocusPlaceholder&&p.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),c]})});Kb.classes=tu;Kb.displayName="@mantine/core/MenuDropdown";const b3={},qb=vn((e,t)=>{const{classNames:n,className:r,style:o,styles:i,vars:s,color:a,closeMenuOnClick:l,leftSection:u,rightSection:c,children:d,disabled:f,"data-disabled":h,...g}=re("MenuItem",b3,e),v=Qc(),w=rn(),{dir:b}=Er(),y=S.useRef(null),x=v.getItemIndex(y.current),R=g,k=nr(R.onMouseLeave,()=>v.setHovered(-1)),I=nr(R.onMouseEnter,()=>v.setHovered(v.getItemIndex(y.current))),C=nr(R.onClick,()=>{h||(typeof l=="boolean"?l&&v.closeDropdownImmediately():v.closeOnItemClick&&v.closeDropdownImmediately())}),_=nr(R.onFocus,()=>v.setHovered(v.getItemIndex(y.current))),T=a?w.variantColorResolver({color:a,theme:w,variant:"light"}):void 0,P=a?wr({color:a,theme:w}):null;return p.jsxs(mn,{...g,unstyled:v.unstyled,tabIndex:v.menuItemTabIndex,onFocus:_,...v.getStyles("item",{className:r,style:o,styles:i,classNames:n}),ref:gn(y,t),role:"menuitem",disabled:f,"data-menu-item":!0,"data-disabled":f||h||void 0,"data-hovered":v.hovered===x?!0:void 0,"data-mantine-stop-propagation":!0,onMouseEnter:I,onMouseLeave:k,onClick:C,onKeyDown:VO({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:v.loop,dir:b,orientation:"vertical",onKeyDown:R.onKeyDown}),__vars:{"--menu-item-color":P!=null&&P.isThemeColor&&(P==null?void 0:P.shade)===void 0?`var(--mantine-color-${P.color}-6)`:T==null?void 0:T.color,"--menu-item-hover":T==null?void 0:T.hover},children:[u&&p.jsx("div",{...v.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:u}),d&&p.jsx("div",{...v.getStyles("itemLabel",{styles:i,classNames:n}),children:d}),c&&p.jsx("div",{...v.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:c})]})});qb.classes=tu;qb.displayName="@mantine/core/MenuItem";const w3={},Yb=fe((e,t)=>{const{classNames:n,className:r,style:o,styles:i,vars:s,...a}=re("MenuLabel",w3,e),l=Qc();return p.jsx(te,{ref:t,...l.getStyles("label",{className:r,style:o,styles:i,classNames:n}),...a}
83)});Yb.classes=tu;Yb.displayName="@mantine/core/MenuLabel";const x3={refProp:"ref"},zk=S.forwardRef((e,t)=>{const{children:n,refProp:r,...o}=re("MenuTarget",x3,e);if(!Es(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=Qc(),s=n.props,a=nr(s.onClick,()=>{i.trigger==="click"?i.toggleDropdown():i.trigger==="click-hover"&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),l=nr(s.onMouseEnter,()=>(i.trigger==="hover"||i.trigger==="click-hover")&&i.openDropdown()),u=nr(s.onMouseLeave,()=>{(i.trigger==="hover"||i.trigger==="click-hover"&&!i.openedViaClick)&&i.closeDropdown()});return p.jsx(Tn.Target,{refProp:r,popupType:"menu",ref:t,...o,children:S.cloneElement(n,{onClick:a,onMouseEnter:l,onMouseLeave:u,"data-expanded":i.opened?!0:void 0})})});zk.displayName="@mantine/core/MenuTarget";const S3={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function Ne(e){const t=re("Menu",S3,e),{children:n,onOpen:r,onClose:o,opened:i,defaultOpened:s,trapFocus:a,onChange:l,closeOnItemClick:u,loop:c,closeOnEscape:d,trigger:f,openDelay:h,closeDelay:g,classNames:v,styles:w,unstyled:b,variant:y,vars:x,menuItemTabIndex:R,keepMounted:k,withInitialFocusPlaceholder:I,...C}=t,_=Te({name:"Menu",classes:tu,props:t,classNames:v,styles:w,unstyled:b}),[T,{setHovered:P,resetHovered:M}]=KO(),[O,A]=kn({value:i,defaultValue:s,finalValue:!1,onChange:l}),[V,z]=S.useState(!1),N=()=>{A(!1),z(!1),O&&(o==null||o())},F=()=>{A(!0),!O&&(r==null||r())},j=()=>{O?N():F()},{openDropdown:L,closeDropdown:B}=F5({open:F,close:N,closeDelay:g,openDelay:h}),H=oe=>WO("[data-menu-item]","[data-menu-dropdown]",oe),{resolvedClassNames:G,resolvedStyles:ee}=xi({classNames:v,styles:w,props:t});return co(()=>{M()},[O]),p.jsx(g3,{value:{getStyles:_,opened:O,toggleDropdown:j,getItemIndex:H,hovered:T,setHovered:P,openedViaClick:V,setOpenedViaClick:z,closeOnItemClick:u,closeDropdown:f==="click"?N:B,openDropdown:f==="click"?F:L,closeDropdownImmediately:N,loop:c,trigger:f,unstyled:b,menuItemTabIndex:R,withInitialFocusPlaceholder:I},children:p.jsx(Tn,{...C,opened:O,onChange:j,defaultOpened:s,trapFocus:k?!1:a,closeOnEscape:d,__staticSelector:"Menu",classNames:G,styles:ee,unstyled:b,variant:y,keepMounted:k,children:n})})}Ne.extend=e=>e;Ne.withProps=ML(Ne);Ne.classes=tu;Ne.displayName="@mantine/core/Menu";Ne.Item=qb;Ne.Label=Yb;Ne.Dropdown=Kb;Ne.Target=zk;Ne.Divider=Wb;const[C3,nu]=ur("Modal component was not found in tree");var Ri={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const _3={},Ih=fe((e,t)=>{const n=re("ModalBody",_3,e),{classNames:r,className:o,style:i,styles:s,vars:a,...l}=n,u=nu();return p.jsx(tk,{ref:t,...u.getStyles("body",{classNames:r,style:i,styles:s,className:o}),...l})});Ih.classes=Ri;Ih.displayName="@mantine/core/ModalBody";const R3={},Mh=fe((e,t)=>{const n=re("ModalCloseButton",R3,e),{classNames:r,className:o,style:i,styles:s,vars:a,...l}=n,u=nu();return p.jsx(nk,{ref:t,...u.getStyles("close",{classNames:r,style:i,styles:s,className:o}),...l})});Mh.classes=Ri;Mh.displayName="@mantine/core/ModalCloseButton";const E3={},Dh=fe((e,t)=>{const n=re("ModalContent",E3,e),{classNames:r,className:o,style:i,styles:s,vars:a,children:l,__hidden:u,...c}=n,d=nu(),f=d.scrollAreaComponent||c4;return p.jsx(rk,{...d.getStyles("content",{className:o,style:i,styles:s,classNames:r}),innerProps:d.getStyles("inner",{className:o,style:i,styles:s,classNames:r}),"data-full-screen":d.fullScreen||void 0,"data-modal-content":!0,"data-hidden":u||void 0,ref:t,...c,children:p.jsx(f,{style:{maxHeight:d.fullScreen?"100dvh":`calc(100dvh - (${ae(d.yOffset)} * 2))`},children:l})})});Dh.classes=Ri;Dh.displayName="@mantine/core/ModalContent";const T3={},Ah=fe((e,t)=>{const n=re("ModalHeader",T3,e),{classNames:r,className:o,style:i,styles:s,vars:a,...l}=n,u=nu();return p.jsx(ok,{ref:t,...u.getStyles("header",{classNames:r,style:i,styles:s,className:o}),...l})});Ah.classes=Ri;Ah.displayName="@mantine/core/ModalHeader";const P3={},jh=fe((e,t)=>{const n=re("ModalOverlay",P3,e),{classNames:r,className:o,style:i,styles:s,vars:a,...l}=n,u=nu();return p.jsx(ik,{ref:t,...u.getStyles("overlay",{classNames:r,style:i,styles:s,className:o}),...l})});jh.classes=Ri;jh.displayName="@mantine/core/ModalOverlay";
83const k3={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:zr("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},I3=(e,{radius:t,size:n,yOffset:r,xOffset:o})=>({root:{"--modal-radius":t===void 0?void 0:bt(t),"--modal-size":Xe(n,"modal-size"),"--modal-y-offset":ae(r),"--modal-x-offset":ae(o)}}),Oh=fe((e,t)=>{const n=re("ModalRoot",k3,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,yOffset:u,scrollAreaComponent:c,radius:d,fullScreen:f,centered:h,xOffset:g,__staticSelector:v,...w}=n,b=Te({name:v,classes:Ri,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:I3});return p.jsx(C3,{value:{yOffset:u,scrollAreaComponent:c,getStyles:b,fullScreen:f},children:p.jsx(ek,{ref:t,...b("root"),"data-full-screen":f||void 0,"data-centered":h||void 0,"data-offset-scrollbars":c===Ca.Autosize||void 0,unstyled:a,...w})})});Oh.classes=Ri;Oh.displayName="@mantine/core/ModalRoot";const[M3,D3]=Ts();function Vk({children:e}){const[t,n]=S.useState([]),[r,o]=S.useState(zr("modal"));return p.jsx(M3,{value:{stack:t,addModal:(i,s)=>{n(a=>[...new Set([...a,i])]),o(a=>typeof s=="number"&&typeof a=="number"?Math.max(a,s):a)},removeModal:i=>n(s=>s.filter(a=>a!==i)),getZIndex:i=>`calc(${r} + ${t.indexOf(i)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}Vk.displayName="@mantine/core/ModalStack";const A3={},Nh=fe((e,t)=>{const n=re("ModalTitle",A3,e),{classNames:r,className:o,style:i,styles:s,vars:a,...l}=n,u=nu();return p.jsx(sk,{ref:t,...u.getStyles("title",{classNames:r,style:i,styles:s,className:o}),...l})});Nh.classes=Ri;Nh.displayName="@mantine/core/ModalTitle";const j3={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:zr("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},cr=fe((e,t)=>{const{title:n,withOverlay:r,overlayProps:o,withCloseButton:i,closeButtonProps:s,children:a,radius:l,opened:u,stackId:c,zIndex:d,...f}=re("Modal",j3,e),h=D3(),g=!!n||i,v=h&&c?{closeOnEscape:h.currentId===c,trapFocus:h.currentId===c,zIndex:h.getZIndex(c)}:{},w=r===!1?!1:c&&h?h.currentId===c:u;return S.useEffect(()=>{h&&c&&(u?h.addModal(c,d||zr("modal")):h.removeModal(c))},[u,c,d]),p.jsxs(Oh,{ref:t,radius:l,opened:u,zIndex:h&&c?h.getZIndex(c):d,...f,...v,children:[r&&p.jsx(jh,{visible:w,transitionProps:h&&c?{duration:0}:void 0,...o}),p.jsxs(Dh,{radius:l,__hidden:h&&c&&u?c!==h.currentId:!1,children:[g&&p.jsxs(Ah,{children:[n&&p.jsx(Nh,{children:n}),i&&p.jsx(Mh,{...s})]}),p.jsx(Ih,{children:a})]})]})});cr.classes=Ri;cr.displayName="@mantine/core/Modal";cr.Root=Oh;cr.Overlay=jh;cr.Content=Dh;cr.Body=Ih;cr.Header=Ah;cr.Title=Nh;cr.CloseButton=Mh;cr.Stack=Vk;const[O3,Xb]=Ts(),[N3,L3]=Ts();var Lh={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const F3={},$3=(e,{gap:t},{size:n})=>({group:{"--pg-gap":t!==void 0?Xe(t):Xe(n,"pg-gap")}}),Jb=fe((e,t)=>{const n=re("PillGroup",F3,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,size:u,disabled:c,...d}=n,f=Xb(),h=(f==null?void 0:f.size)||u||void 0,g=Te({name:"PillGroup",classes:Lh,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:$3,stylesCtx:{size:h},rootSelector:"group"});return p.jsx(N3,{value:{size:h,disabled:c},children:p.jsx(te,{ref:t,size:h,...g("group"),...d})})});Jb.classes=Lh;Jb.displayName="@mantine/core/PillGroup";const z3={variant:"default"},V3=(e,{radius:t},{size:n})=>({root:{"--pill-fz":Xe(n,"pill-fz"),"--pill-height":Xe(n,"pill-height"),"--pill-radius":t===void 0?void 0:bt(t)}}),ys=fe((e,t)=>{const n=re("Pill",z3,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,variant:u,children:c,withRemoveButton:d,onRemove:f,removeButtonProps:h,radius:g,size:v,disabled:w,mod:b,...y}=n,x=L3(),R=Xb(),k=v||(x==null?void 0:x.size)||void 0,I=(R==null?void 0:R.variant)==="filled"?"contrast":u||"default",C=Te({name:"Pill",classes:Lh,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:V3,stylesCtx:{size:k}});return p.jsxs(te,{component:"span",ref:t,variant:I,size:k,...C("root",{variant:I}),mod:[{"with-remove":d&&!w,disabled:w||(x==null?void 0:x.disabled)},b],...y,children:[p.jsx("span",{...C("label"),children:c}),d&&p.jsx(Si,{variant:"transparent",radius:g,tabIndex:-1,"aria-hidden":!0,unstyled:a,...h,...C("remove",{className:h==null?void 0:h.className,style:h==null?void 0:h.style}),onMouseDown:_=>{var T;_.preventDefault(),_.stopPropagation(),(T=h==null?void 0:h.onMouseDown)==null||T.call(h,_)},onClick:_=>{var T;_.stopPropagation(),f==null||f(),(T=h==null?void 0:h.onClick)==null||T.call(h,_)}})]})});ys.classes=Lh;ys.displayName="@mantine/core/Pill";ys.Group=Jb;var Bk={field:"m_45c4369d"};const B3={type:"visible"},Qb=fe((e,t)=>{const n=re("PillsInputField",B3,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,type:u,disabled:c,id:d,pointer:f,mod:h,...g}=n,v=Xb(),w=Zl(),b=Te({name:"PillsInputField",classes:Bk,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,rootSelector:"field"}),y=c||(v==null?void 0:v.disabled);return p.jsx(te,{component:"input",ref:gn(t,v==null?void 0:v.fieldRef),"data-type":u,disabled:y,mod:[{disabled:y,pointer:f},h],...b("field"),...g,id:(w==null?void 0:w.inputId)||d,"aria-invalid":v==null?void 0:v.hasError,"aria-describedby":w==null?void 0:w.describedBy,type:"text",onMouseDown:x=>!f&&x.stopPropagation()})});Qb.classes=Bk;Qb.displayName="@mantine/core/PillsInputField";const H3={},vp=fe((e,t)=>{const n=re("PillsInput",H3,e),{children:r,onMouseDown:o,onClick:i,size:s,disabled:a,__staticSelector:l,error:u,variant:c,...d}=n,f=S.useRef(null);return p.jsx(O3,{value:{fieldRef:f,size:s,disabled:a,hasError:!!u,variant:c},children:p.jsx(Ur,{size:s,error:u,variant:c,component:"div",ref:t,onMouseDown:h=>{var g;
83h.preventDefault(),o==null||o(h),(g=f.current)==null||g.focus()},onClick:h=>{var v;h.preventDefault();const g=h.currentTarget.closest("fieldset");g!=null&&g.disabled||((v=f.current)==null||v.focus(),i==null||i(h))},...d,multiline:!0,disabled:a,__staticSelector:l||"PillsInput",withAria:!1,children:r})})});vp.displayName="@mantine/core/PillsInput";vp.Field=Qb;function U3({data:e,value:t}){const n=t.map(o=>o.trim().toLowerCase());return e.reduce((o,i)=>(Ol(i)?o.push({group:i.group,items:i.items.filter(s=>n.indexOf(s.value.toLowerCase().trim())===-1)}):n.indexOf(i.value.toLowerCase().trim())===-1&&o.push(i),o),[])}const G3={maxValues:1/0,withCheckIcon:!0,checkIconPosition:"left",hiddenInputValuesDivider:","},na=fe((e,t)=>{const n=re("MultiSelect",G3,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,size:u,value:c,defaultValue:d,onChange:f,onKeyDown:h,variant:g,data:v,dropdownOpened:w,defaultDropdownOpened:b,onDropdownOpen:y,onDropdownClose:x,selectFirstOptionOnChange:R,onOptionSubmit:k,comboboxProps:I,filter:C,limit:_,withScrollArea:T,maxDropdownHeight:P,searchValue:M,defaultSearchValue:O,onSearchChange:A,readOnly:V,disabled:z,onFocus:N,onBlur:F,radius:j,rightSection:L,rightSectionWidth:B,rightSectionPointerEvents:H,rightSectionProps:G,leftSection:ee,leftSectionWidth:oe,leftSectionPointerEvents:X,leftSectionProps:J,inputContainer:q,inputWrapperOrder:ne,withAsterisk:Y,labelProps:W,descriptionProps:se,errorProps:ue,wrapperProps:le,description:Re,label:ye,error:ge,maxValues:Le,searchable:de,nothingFoundMessage:De,withCheckIcon:Oe,checkIconPosition:Be,hidePickedOptions:wt,withErrorStyles:Ge,name:he,form:xe,id:me,clearable:ze,clearButtonProps:Ee,hiddenInputProps:Ve,placeholder:He,hiddenInputValuesDivider:Ue,required:xt,mod:Et,renderOption:zt,onRemove:rt,onClear:Wt,scrollAreaProps:an,chevronColor:dr,...Xn}=n,Zt=Rr(me),bn=gb(v),ln=Ch(bn),Vt=_h({opened:w,defaultOpened:b,onDropdownOpen:y,onDropdownClose:()=>{x==null||x(),Vt.resetSelectedOption()}}),{styleProps:zn,rest:{type:$o,autoComplete:Tr,...gt}}=Sa(Xn),[be,fr]=kn({value:c,defaultValue:d,finalValue:[],onChange:f}),[et,U]=kn({value:M,defaultValue:O,finalValue:"",onChange:A}),K=ve=>{U(ve),Vt.resetSelectedOption()},Z=Te({name:"MultiSelect",classes:{},props:n,classNames:r,styles:s,unstyled:a}),{resolvedClassNames:ce,resolvedStyles:we}=xi({props:n,styles:s,classNames:r}),Ae=ve=>{h==null||h(ve),ve.key===" "&&!de&&(ve.preventDefault(),Vt.toggleDropdown()),ve.key==="Backspace"&&et.length===0&&be.length>0&&(rt==null||rt(be[be.length-1]),fr(be.slice(0,be.length-1)))},Ke=be.map((ve,qe)=>{var Je,Bt;return p.jsx(ys,{withRemoveButton:!V&&!((Je=ln[ve])!=null&&Je.disabled),onRemove:()=>{fr(be.filter(vt=>ve!==vt)),rt==null||rt(ve)},unstyled:a,disabled:z,...Z("pill"),children:((Bt=ln[ve])==null?void 0:Bt.label)||ve},`${ve}-${qe}`)});S.useEffect(()=>{R&&Vt.selectFirstOption()},[R,et]);const ke=p.jsx(st.ClearButton,{...Ee,onClear:()=>{Wt==null||Wt(),fr([]),K("")}}),Ie=U3({data:bn,value:be}),Pe=ze&&be.length>0&&!z&&!V;return p.jsxs(p.Fragment,{children:[p.jsxs(st,{store:Vt,classNames:ce,styles:we,unstyled:a,size:u,readOnly:V,__staticSelector:"MultiSelect",onOptionSubmit:ve=>{k==null||k(ve),K(""),Vt.updateSelectedOptionIndex("selected"),be.includes(ln[ve].value)?(fr(be.filter(qe=>qe!==ln[ve].value)),rt==null||rt(ln[ve].value)):be.length<Le&&fr([...be,ln[ve].value])},...I,children:[p.jsx(st.DropdownTarget,{children:p.jsx(vp,{...zn,__staticSelector:"MultiSelect",classNames:ce,styles:we,unstyled:a,size:u,className:o,style:i,variant:g,disabled:z,radius:j,__defaultRightSection:p.jsx(st.Chevron,{size:u,error:ge,unstyled:a,color:dr}),__clearSection:ke,__clearable:Pe,rightSection:L,rightSectionPointerEvents:H||(ke?"all":"none"),rightSectionWidth:B,rightSectionProps:G,leftSection:ee,leftSectionWidth:oe,leftSectionPointerEvents:X,leftSectionProps:J,inputContainer:q,inputWrapperOrder:ne,withAsterisk:Y,labelProps:W,descriptionProps:se,errorProps:ue,wrapperProps:le,description:Re,label:ye,error:ge,withErrorStyles:Ge,__stylesApiProps:{...n,rightSectionPointerEvents:H||(Pe?"all":"none"),multiline:!0},pointer:!de,onClick:()=>de?Vt.openDropdown():Vt.toggleDropdown(),"data-expanded":Vt.dropdownOpened||void 0,id:Zt,required:xt,mod:Et,children:p.jsxs(ys.Group,{disabled:z,unstyled:a,...Z("pillsList"),children:[Ke,p.jsx(st.EventsTarget,{autoComplete:Tr,children:p.jsx(vp.Field,{...gt,ref:t,id:Zt,placeholder:He,type:!de&&!He?"hidden":"visible",...Z("inputField"),unstyled:a,onFocus:ve=>{N==null||N(ve),de&&Vt.openDropdown()},onBlur:ve=>{F==null||F(ve),Vt.closeDropdown(),K("")},onKeyDown:Ae,value:et,onChange:ve=>{K(ve.currentTarget.value),de&&Vt.openDropdown(),R&&Vt.selectFirstOption()},disabled:z,readOnly:V||!de,pointer:!de})})]})})}),p.jsx(Mb,{data:wt?Ie:bn,hidden:V||z,filter:C,search:et,limit:_,hiddenWhenEmpty:!De,withScrollArea:T,maxDropdownHeight:P,filterOptions:de,value:be,checkIconPosition:Be,withCheckIcon:Oe,nothingFoundMessage:De,unstyled:a,labelId:ye?`${Zt}-label`:void 0,"aria-label":ye?void 0:Xn["aria-label"],renderOption:zt,scrollAreaProps:an})]}),p.jsx(st.HiddenInput,{name:he,valuesDivider:Ue,value:be,form:xe,disabled:z,...Ve})]})});na.classes={...Ur.classes,...st.classes};na.displayName="@mantine/core/MultiSelect";var Hk={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const W3={withCloseButton:!0},K3=(e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:bt(t),"--notification-color":n?It(n,e):void 0}}),Zb=fe((e,t)=>{const n=re("Notification",W3,e),{className:r,color:o,radius:i,loading:s,withCloseButton:a,withBorder:l,title:u,icon:c,children:d,onClose:f,closeButtonProps:h,classNames:g,style:v,styles:w,unstyled:b,variant:y,vars:x,mod:R,loaderProps:k,role:I,...C}=n,_=Te({name:"Notification",classes:Hk,props:n,className:r,style:v,classNames:g,styles:w,unstyled:b,vars:x,varsResolver:K3});return p.jsxs(te,{..._("root"),mod:[{"data-with-icon":!!c||s,"data-with-border":l},R],ref:t,variant:y,role:I||"alert",...C,children:[c&&!s&&p.jsx("div",{..._("icon"),children:c}),s&&p.jsx(Ra,{size:28,color:o,...k,..._("loader")}),p.jsxs("div",{..._("body"),children:[u&&p.jsx("div",{..._("title"),children:u}),p.jsx(te,{..._("description"),mod:{"data-with-title":!!u},children:d})]}),a&&p.jsx(Si,{iconSize:16,color:"gray",...h,unstyled:b,onClick:f,..._("closeButton")})]})});Zb.classes=Hk;Zb.displayName="@mantine/core/Notification";const[q3,Fh]=ur("Pagination.Root component was not found in tree");var Zc={root:"m_4addd315",control:"m_326d024a",dots:"m_4ad7767d"};const Y3={withPadding:!0},ed=fe((e,t)=>{const n=re("PaginationControl",Y3,e),{classNames:r,className:o,style:i,styles:s,vars:a,active:l,disabled:u,withPadding:c,mod:d,...f}=n,h=Fh(),g=u||h.disabled;return p.jsx(mn,{ref:t,disabled:g,mod:[{active:l,disabled:g,"with-padding":c},d],...h.getStyles("control",{className:o,style:i,classNames:r,styles:s,active:!g}),...f})});ed.classes=Zc;ed.displayName="@mantine/core/PaginationControl";function td({style:e,children:t,path:n,...r}){return p.jsx("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)",...e},...r,children:p.jsx("path",{d:n,fill:"currentColor"})})}const X3=e=>p.jsx(td,{...e,path:"M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z"}),J3=e=>p.jsx(td,{...e,path:"M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z"}),Q3=e=>p.jsx(td,{...e,path:"M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z"}),Z3=e=>p.jsx(td,{...e,path:"M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z"}),e9=e=>p.jsx(td,{...e,path:"M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z"}),t9={icon:e9},$h=fe((e,t)=>{const n=re("PaginationDots",t9,e),{classNames:r,className:o,style:i,styles:s,vars:a,icon:l,...u}=n,c=Fh(),d=l;return p.jsx(te,{ref:t,...c.getStyles("dots",{className:o,style:i,styles:s,classNames:r}),...u,children:p.jsx(d,{style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});$h.classes=Zc;$h.displayName="@mantine/core/PaginationDots";function zh({icon:e,name:t,action:n,type:r}){const o={icon:e},i=S.forwardRef((s,a)=>{const{icon:l,...u}=re(t,o,s),c=l,d=Fh(),f=r==="next"?d.active===d.total:d.active===1;return p.jsx(ed,{disabled:d.disabled||f,ref:a,onClick:d[n],withPadding:!1,...u,children:p.jsx(c,{className:"mantine-rotate-rtl",style:{width:"calc(var(--pagination-control-size) / 1.8)",height:"calc(var(--pagination-control-size) / 1.8)"}})})});return i.displayName=`@mantine/core/${t}`,i}const Uk=zh({icon:X3,name:"PaginationNext",action:"onNext",type:"next"}),Gk=zh({icon:J3,name:"PaginationPrevious",action:"onPrevious",type:"previous"}),Wk=zh({icon:Q3,name:"PaginationFirst",action:"onFirst",type:"previous"}),Kk=zh({icon:Z3,name:"PaginationLast",action:"onLast",type:"next"});function ew({dotsIcon:e}){const t=Fh(),n=t.range.map((r,o)=>{var i,s,a;return r==="dots"?p.jsx($h,{icon:e},o):p.jsx(ed,{active:r===t.active,"aria-current":r===t.active?"page":void 0,onClick:()=>t.onChange(r),disabled:t.disabled,...(i=t.getItemProps)==null?void 0:i.call(t,r),children:((a=(s=t.getItemProps)==null?void 0:s.call(t,r))==null?void 0:a.children)??r},o)});return p.jsx(p.Fragment,{children:n})}ew.displayName="@mantine/core/PaginationItems";
83const n9={siblings:1,boundaries:1},r9=(e,{size:t,radius:n,color:r,autoContrast:o})=>({root:{"--pagination-control-radius":n===void 0?void 0:bt(n),"--pagination-control-size":Xe(t,"pagination-control-size"),"--pagination-control-fz":Qt(t),"--pagination-active-bg":r?It(r,e):void 0,"--pagination-active-color":xa(o,e)?ks({color:r,theme:e,autoContrast:o}):void 0}}),Vh=fe((e,t)=>{const n=re("PaginationRoot",n9,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,total:u,value:c,defaultValue:d,onChange:f,disabled:h,siblings:g,boundaries:v,color:w,radius:b,onNextPage:y,onPreviousPage:x,onFirstPage:R,onLastPage:k,getItemProps:I,autoContrast:C,..._}=n,T=Te({name:"Pagination",classes:Zc,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:r9}),{range:P,setPage:M,next:O,previous:A,active:V,first:z,last:N}=cN({page:c,initialPage:d,onChange:f,total:u,siblings:g,boundaries:v}),F=nr(y,O),j=nr(x,A),L=nr(R,z),B=nr(k,N);return p.jsx(q3,{value:{total:u,range:P,active:V,disabled:h,getItemProps:I,onChange:M,onNext:F,onPrevious:j,onFirst:L,onLast:B,getStyles:T},children:p.jsx(te,{ref:t,...T("root"),..._})})});Vh.classes=Zc;Vh.displayName="@mantine/core/PaginationRoot";const o9={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8},mo=fe((e,t)=>{const n=re("Pagination",o9,e),{withEdges:r,withControls:o,getControlProps:i,nextIcon:s,previousIcon:a,lastIcon:l,firstIcon:u,dotsIcon:c,total:d,gap:f,hideWithOnePage:h,withPages:g,...v}=n;return d<=0||h&&d===1?null:p.jsx(Vh,{ref:t,total:d,...v,children:p.jsxs(mt,{gap:f,children:[r&&p.jsx(Wk,{icon:u,...i==null?void 0:i("first")}),o&&p.jsx(Gk,{icon:a,...i==null?void 0:i("previous")}),g&&p.jsx(ew,{dotsIcon:c}),o&&p.jsx(Uk,{icon:s,...i==null?void 0:i("next")}),r&&p.jsx(Kk,{icon:l,...i==null?void 0:i("last")})]})})});mo.classes=Zc;mo.displayName="@mantine/core/Pagination";mo.Root=Vh;mo.Control=ed;mo.Dots=$h;mo.First=Wk;mo.Last=Kk;mo.Next=Uk;mo.Previous=Gk;mo.Items=ew;const[i9,qk]=ur("Progress.Root component was not found in tree");var nd={root:"m_db6d6462",section:"m_2242eb65","stripes-animation":"m_81a374bd",label:"m_91e40b74"};const s9={},tw=fe((e,t)=>{const{classNames:n,className:r,style:o,styles:i,vars:s,...a}=re("ProgressLabel",s9,e),l=qk();return p.jsx(te,{ref:t,...l.getStyles("label",{className:r,style:o,classNames:n,styles:i}),...a})});tw.classes=nd;tw.displayName="@mantine/core/ProgressLabel";const a9={},l9=(e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":Xe(t,"progress-size"),"--progress-radius":n===void 0?void 0:bt(n),"--progress-transition-duration":typeof r=="number"?`${r}ms`:void 0}}),Bh=fe((e,t)=>{const n=re("ProgressRoot",a9,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,autoContrast:u,transitionDuration:c,...d}=n,f=Te({name:"Progress",classes:nd,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:l9});return p.jsx(i9,{value:{getStyles:f,autoContrast:u},children:p.jsx(te,{ref:t,...f("root"),...d})})});Bh.classes=nd;Bh.displayName="@mantine/core/ProgressRoot";const u9={withAria:!0},Hh=fe((e,t)=>{const{classNames:n,className:r,style:o,styles:i,vars:s,value:a,withAria:l,color:u,striped:c,animated:d,mod:f,...h}=re("ProgressSection",u9,e),g=qk(),v=rn(),w=l?{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":a,"aria-valuetext":`${a}%`}:{};return p.jsx(te,{ref:t,...g.getStyles("section",{className:r,classNames:n,styles:i,style:o}),...h,...w,mod:[{striped:c||d,animated:d},f],__vars:{"--progress-section-width":`${a}%`,"--progress-section-color":It(u,v),"--progress-label-color":xa(g.autoContrast,v)?ks({color:u,theme:v,autoContrast:g.autoContrast}):void 0}})});Hh.classes=nd;Hh.displayName="@mantine/core/ProgressSection";const c9={},ru=fe((e,t)=>{const n=re("Progress",c9,e),{value:r,classNames:o,styles:i,vars:s,color:a,striped:l,animated:u,"aria-label":c,...d}=n,{resolvedClassNames:f,resolvedStyles:h}=xi({classNames:o,styles:i,props:n});return p.jsx(Bh,{ref:t,classNames:f,styles:h,vars:s,...d,children:p.jsx(Hh,{value:r,color:a,striped:l,animated:u,"aria-label":c})})});ru.classes=nd;ru.displayName="@mantine/core/Progress";ru.Section=Hh;ru.Root=Bh;ru.Label=tw;
83const[d9,Yk]=Ts(),[f9,p9]=Ts();var Xk={card:"m_9dc8ae12"};const h9={withBorder:!0},m9=(e,{radius:t})=>({card:{"--card-radius":bt(t)}}),nw=fe((e,t)=>{const n=re("RadioCard",h9,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,checked:u,mod:c,withBorder:d,value:f,onClick:h,name:g,onKeyDown:v,...w}=n,b=Te({name:"RadioCard",classes:Xk,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:m9,rootSelector:"card"}),{dir:y}=Er(),x=Yk(),R=typeof u=="boolean"?u:(x==null?void 0:x.value)===f||!1,k=g||(x==null?void 0:x.name),I=C=>{if(v==null||v(C),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(C.nativeEvent.code)){C.preventDefault();const _=Array.from(document.querySelectorAll(`[role="radio"][name="${k||"__mantine"}"]`)),T=_.findIndex(O=>O===C.target),P=T+1>=_.length?0:T+1,M=T-1<0?_.length-1:T-1;C.nativeEvent.code==="ArrowDown"&&(_[P].focus(),_[P].click()),C.nativeEvent.code==="ArrowUp"&&(_[M].focus(),_[M].click()),C.nativeEvent.code==="ArrowLeft"&&(_[y==="ltr"?M:P].focus(),_[y==="ltr"?M:P].click()),C.nativeEvent.code==="ArrowRight"&&(_[y==="ltr"?P:M].focus(),_[y==="ltr"?P:M].click())}};return p.jsx(f9,{value:{checked:R},children:p.jsx(mn,{ref:t,mod:[{"with-border":d,checked:R},c],...b("card"),...w,role:"radio","aria-checked":R,name:k,onClick:C=>{h==null||h(C),x==null||x.onChange(f||"")},onKeyDown:I})})});nw.displayName="@mantine/core/RadioCard";nw.classes=Xk;const g9={},rw=fe((e,t)=>{const{value:n,defaultValue:r,onChange:o,size:i,wrapperProps:s,children:a,name:l,readOnly:u,...c}=re("RadioGroup",g9,e),d=Rr(l),[f,h]=kn({value:n,defaultValue:r,finalValue:"",onChange:o}),g=v=>!u&&h(typeof v=="string"?v:v.currentTarget.value);return p.jsx(d9,{value:{value:f,onChange:g,size:i,name:d},children:p.jsx(Lt.Wrapper,{size:i,ref:t,...s,...c,labelElement:"div",__staticSelector:"RadioGroup",children:p.jsx(Pb,{role:"radiogroup",children:a})})})});rw.classes=Lt.Wrapper.classes;rw.displayName="@mantine/core/RadioGroup";function Jk({size:e,style:t,...n}){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 5 5",style:{width:ae(e),height:ae(e),...t},"aria-hidden":!0,...n,children:p.jsx("circle",{cx:"2.5",cy:"2.5",r:"2.5",fill:"currentColor"})})}var Qk={indicator:"m_717d7ff6",icon:"m_3e4da632","indicator--outline":"m_2980836c"};const v9={icon:Jk},y9=(e,{radius:t,color:n,size:r,iconColor:o,variant:i,autoContrast:s})=>{const a=wr({color:n||e.primaryColor,theme:e}),l=a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-outline)`:a.color;return{indicator:{"--radio-size":Xe(r,"radio-size"),"--radio-radius":t===void 0?void 0:bt(t),"--radio-color":i==="outline"?l:It(n,e),"--radio-icon-size":Xe(r,"radio-icon-size"),"--radio-icon-color":o?It(o,e):xa(s,e)?ks({color:n,theme:e,autoContrast:s}):void 0}}},ow=fe((e,t)=>{const n=re("RadioIndicator",v9,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,icon:u,radius:c,color:d,iconColor:f,autoContrast:h,checked:g,mod:v,variant:w,disabled:b,...y}=n,x=u,R=Te({name:"RadioIndicator",classes:Qk,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:y9,rootSelector:"indicator"}),k=p9(),I=typeof g=="boolean"?g:(k==null?void 0:k.checked)||!1;return p.jsx(te,{ref:t,...R("indicator",{variant:w}),variant:w,mod:[{checked:I,disabled:b},v],...y,children:p.jsx(x,{...R("icon")})})});ow.displayName="@mantine/core/RadioIndicator";ow.classes=Qk;var Zk={root:"m_f3f1af94",inner:"m_89c4f5e4",icon:"m_f3ed6b2b",radio:"m_8a3dbb89","radio--outline":"m_1bfe9d39"};const b9={labelPosition:"right"},w9=(e,{size:t,radius:n,color:r,iconColor:o,variant:i,autoContrast:s})=>{const a=wr({color:r||e.primaryColor,theme:e}),l=a.isThemeColor&&a.shade===void 0?`var(--mantine-color-${a.color}-outline)`:a.color;return{root:{"--radio-size":Xe(t,"radio-size"),"--radio-radius":n===void 0?void 0:bt(n),"--radio-color":i==="outline"?l:It(r,e),"--radio-icon-color":o?It(o,e):xa(s,e)?ks({color:r,theme:e,autoContrast:s}):void 0,"--radio-icon-size":Xe(t,"radio-icon-size")}}},ou=fe((e,t)=>{const n=re("Radio",b9,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,id:u,size:c,label:d,labelPosition:f,de
83scription:h,error:g,radius:v,color:w,variant:b,disabled:y,wrapperProps:x,icon:R=Jk,rootRef:k,iconColor:I,onChange:C,mod:_,...T}=n,P=Te({name:"Radio",classes:Zk,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:w9}),M=Yk(),O=(M==null?void 0:M.size)??c,A=n.size?c:O,{styleProps:V,rest:z}=Sa(T),N=Rr(u),F=M?{checked:M.value===z.value,name:z.name??M.name,onChange:j=>{M.onChange(j),C==null||C(j)}}:{};return p.jsx(Rh,{...P("root"),__staticSelector:"Radio",__stylesApiProps:n,id:N,size:A,labelPosition:f,label:d,description:h,error:g,disabled:y,classNames:r,styles:s,unstyled:a,"data-checked":F.checked||void 0,variant:b,ref:k,mod:_,...V,...x,children:p.jsxs(te,{...P("inner"),mod:{"label-position":f},children:[p.jsx(te,{...P("radio",{focusable:!0,variant:b}),onChange:C,...z,...F,component:"input",mod:{error:!!g},ref:t,id:N,disabled:y,type:"radio"}),p.jsx(R,{...P("icon"),"aria-hidden":!0})]})})});ou.classes=Zk;ou.displayName="@mantine/core/Radio";ou.Group=rw;ou.Card=nw;ou.Indicator=ow;const x9={duration:100,transition:"fade"};function S9(e,t){return{...x9,...t,...e}}function C9({offset:e,position:t,defaultOpened:n}){const[r,o]=S.useState(n),i=S.useRef(null),{x:s,y:a,elements:l,refs:u,update:c,placement:d}=ob({placement:t,middleware:[eb({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=d.includes("right")?e:t.includes("left")?e*-1:0,h=d.includes("bottom")?e:t.includes("top")?e*-1:0,g=S.useCallback(({clientX:v,clientY:w})=>{u.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:v,y:w,left:v+f,top:w+h,right:v,bottom:w}}})},[l.reference]);return S.useEffect(()=>{if(u.floating.current){const v=i.current;v.addEventListener("mousemove",g);const w=ri(u.floating.current);return w.forEach(b=>{b.addEventListener("scroll",c)}),()=>{v.removeEventListener("mousemove",g),w.forEach(b=>{b.removeEventListener("scroll",c)})}}},[l.reference,u.floating.current,c,g,r]),{handleMouseMove:g,x:s,y:a,opened:r,setOpened:o,boundaryRef:i,floating:u.setFloating}}var Uh={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const _9={refProp:"ref",withinPortal:!0,offset:10,defaultOpened:!1,position:"right",zIndex:zr("popover")},R9=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:bt(t),"--tooltip-bg":n?It(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),iw=fe((e,t)=>{const n=re("TooltipFloating",_9,e),{children:r,refProp:o,withinPortal:i,style:s,className:a,classNames:l,styles:u,unstyled:c,radius:d,color:f,label:h,offset:g,position:v,multiline:w,zIndex:b,disabled:y,defaultOpened:x,variant:R,vars:k,portalProps:I,...C}=n,_=rn(),T=Te({name:"TooltipFloating",props:n,classes:Uh,className:a,style:s,classNames:l,styles:u,unstyled:c,rootSelector:"tooltip",vars:k,varsResolver:R9}),{handleMouseMove:P,x:M,y:O,opened:A,boundaryRef:V,floating:z,setOpened:N}=C9({offset:g,position:v,defaultOpened:x});if(!Es(r))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const F=gn(V,lh(r),t),j=r.props,L=H=>{var G;(G=j.onMouseEnter)==null||G.call(j,H),P(H),N(!0)},B=H=>{var G;(G=j.onMouseLeave)==null||G.call(j,H),N(!1)};return p.jsxs(p.Fragment,{children:[p.jsx(_a,{...I,withinPortal:i,children:p.jsx(te,{...C,...T("tooltip",{style:{...W0(s,_),zIndex:b,display:!y&&A?"block":"none",top:(O&&Math.round(O))??"",left:(M&&Math.round(M))??""}}),variant:R,ref:z,mod:{multiline:w},children:h})}),S.cloneElement(r,{...j,[o]:F,onMouseEnter:L,onMouseLeave:B})]})});iw.classes=Uh;iw.displayName="@mantine/core/TooltipFloating";const e2=S.createContext(!1),E9=e2.Provider,T9=()=>S.useContext(e2),P9={openDelay:0,closeDelay:0};function sw(e){const{openDelay:t,closeDelay:n,children:r}=re("TooltipGroup",P9,e);return p.jsx(E9,{value:!0,children:p.jsx(i$,{delay:{open:t,close:n},children:r})})}sw.displayName="@mantine/core/TooltipGroup";sw.extend=e=>e;function k9(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function I9(e){const t=k9(e.middlewares),n=[bP(e.offset)];return t.shift&&n.push(eb(typeof t.shift=="boolean"?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip=="boolean"?hp():hp(t.flip)),n.push(wP({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline=="boolean"?lc():lc(t.inline)):e.inline&&n.push(lc()),n}function M9(e){var I,C,_;
83const[t,n]=S.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:t,i=T9(),s=Rr(),a=S.useCallback(T=>{n(T),T&&y(s)},[s]),{x:l,y:u,context:c,refs:d,update:f,placement:h,middlewareData:{arrow:{x:g,y:v}={}}}=ob({strategy:e.strategy,placement:e.position,open:o,onOpenChange:a,middleware:I9(e)}),{delay:w,currentId:b,setCurrentId:y}=s$(c,{id:s}),{getReferenceProps:x,getFloatingProps:R}=p$([r$(c,{enabled:(I=e.events)==null?void 0:I.hover,delay:i?w:{open:e.openDelay,close:e.closeDelay},mouseOnly:!((C=e.events)!=null&&C.touch)}),f$(c,{enabled:(_=e.events)==null?void 0:_.focus,visibleOnly:!0}),m$(c,{role:"tooltip"}),c$(c,{enabled:typeof e.opened>"u"})]);WP({opened:o,position:e.position,positionDependencies:e.positionDependencies,floating:{refs:d,update:f}}),co(()=>{var T;(T=e.onPositionChange)==null||T.call(e,h)},[h]);const k=o&&b&&b!==s;return{x:l,y:u,arrowX:g,arrowY:v,reference:d.setReference,floating:d.setFloating,getFloatingProps:R,getReferenceProps:x,isGroupPhase:k,opened:o,placement:h}}const XS={position:"top",refProp:"ref",withinPortal:!0,inline:!1,defaultOpened:!1,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:zr("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},D9=(e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:bt(t),"--tooltip-bg":n?It(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),yt=fe((e,t)=>{const n=re("Tooltip",XS,e),{children:r,position:o,refProp:i,label:s,openDelay:a,closeDelay:l,onPositionChange:u,opened:c,defaultOpened:d,withinPortal:f,radius:h,color:g,classNames:v,styles:w,unstyled:b,style:y,className:x,withArrow:R,arrowSize:k,arrowOffset:I,arrowRadius:C,arrowPosition:_,offset:T,transitionProps:P,multiline:M,events:O,zIndex:A,disabled:V,positionDependencies:z,onClick:N,onMouseEnter:F,onMouseLeave:j,inline:L,variant:B,keepMounted:H,vars:G,portalProps:ee,mod:oe,floatingStrategy:X,middlewares:J,...q}=re("Tooltip",XS,n),{dir:ne}=Er(),Y=S.useRef(null),W=M9({position:$P(ne,o),closeDelay:l,openDelay:a,onPositionChange:u,opened:c,defaultOpened:d,events:O,arrowRef:Y,arrowOffset:I,offset:typeof T=="number"?T+(R?k/2:0):T,positionDependencies:[...z,r],inline:L,strategy:X,middlewares:J}),se=Te({name:"Tooltip",props:n,classes:Uh,className:x,style:y,classNames:v,styles:w,unstyled:b,rootSelector:"tooltip",vars:G,varsResolver:D9});if(!Es(r))throw new Error("[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const ue=gn(W.reference,lh(r),t),le=S9(P,{duration:100,transition:"fade"}),Re=r.props;return p.jsxs(p.Fragment,{children:[p.jsx(_a,{...ee,withinPortal:f,children:p.jsx(Br,{...le,keepMounted:H,mounted:!V&&!!W.opened,duration:W.isGroupPhase?10:le.duration,children:ye=>p.jsxs(te,{...q,"data-fixed":X==="fixed"||void 0,variant:B,mod:[{multiline:M},oe],...W.getFloatingProps({ref:W.floating,className:se("tooltip").className,style:{...se("tooltip").style,...ye,zIndex:A,top:W.y??0,left:W.x??0}}),children:[s,p.jsx(ub,{ref:Y,arrowX:W.arrowX,arrowY:W.arrowY,visible:R,position:W.placement,arrowSize:k,arrowOffset:I,arrowRadius:C,arrowPosition:_,...se("arrow")})]})})}),S.cloneElement(r,W.getReferenceProps({onClick:N,onMouseEnter:F,onMouseLeave:j,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:Ce(x,Re.className),...Re,[i]:ue}))]})});yt.classes=Uh;yt.displayName="@mantine/core/Tooltip";yt.Floating=iw;yt.Group=sw;const A9={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},iu=fe((e,t)=>{const n=re("Select",A9,e),{classNames:r,styles:o,unstyled:i,vars:s,dropdownOpened:a,defaultDropdownOpened:l,onDropdownClose:u,onDropdownOpen:c,onFocus:d,onBlur:f,onClick:h,onChange:g,data:v,value:w,defaultValue:b,selectFirstOptionOnChange:y,onOptionSubmit:x,comboboxProps:R,readOnly:k,disabled:I,filter:C,limit:_,withScrollArea:T,maxDropdownHeight:P,size:M,searchable:O,rightSection:A,checkIconPosition:V,withCheckIcon:z,nothingFoundMessage:N,name:F,form:j,searchValue:L,defaultSearchValue:B,onSearchChange:H,allowDeselect:G,error:ee,rightSectionPointerEvents:oe,id:X,clearable:J,clearButtonProps:q,hiddenInputProps:ne,renderOption:Y,onClear:W,autoComplete:se,scrollAreaProps:ue,__defaultRightSection:le,__clearSection:Re,__clearable:ye,chevronColor:ge,...Le}=n,de=S.useMemo(()=>gb(v),[v]),De=S.useMemo(()=>Ch(de),[de]),Oe=Rr(X),[Be,wt,Ge]=kn({value:w,defaultValue:b,finalValue:null,onChange:g}),he=typeof Be=="string"?De[Be]:void 0,xe=fN(he),[me,ze,Ee]=kn({value:L,defaultValue:B,finalValue:he?he.label:"",onChange:H}),Ve=_h({opened:a,defaultOpened:l,onDropdownOpen:()=>{c==null||c(),Ve.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u==null||u(),Ve.resetSelectedOption()}}),He=rt=>{ze(rt),Ve.resetSelectedOption()},{resolvedClassNames:Ue,resolvedStyles:xt}=xi({props:n,styles:o,classNames:r});S.useEffect(()=>{y&&Ve.selectFirstOption()},[y,me]),S.useEffect(()=>{w===null&&He(""),typeof w=="string"&&he&&((xe==null?void 0:xe.value)!==he.value||(xe==null?void 0:xe.label)!==he.label)&&He(he.label)},[w,he]),S.useEffect(()=>{var rt;!Ge&&!Ee&&He(typeof Be=="string"&&((rt=De[Be])==null?void 0:rt.label)||"")},[v,Be]);const Et=p.jsx(st.ClearButton,{...q,onClear:()=>{wt(null,null),He(""),W==null||W()}}),zt=J&&!!Be&&!I&&!k;return p.jsxs(p.Fragment,{children:[p.jsxs(st,{store:Ve,__staticSelector:"Select",classNames:Ue,styles:xt,unstyled:i,readOnly:k,onOptionSubmit:rt=>{x==null||x(rt);const Wt=G&&De[rt].value===Be?null:De[rt],an=Wt?Wt.value:null;an!==Be&&wt(an,Wt),!Ge&&He(typeof an=="string"&&(Wt==null?void 0:Wt.label)||""),Ve.closeDropdown()},size:M,...R,children:[p.jsx(st.Target,{targetType:O?"input":"button",autoComplete:se,children:p.jsx(Ur,{id:Oe,ref:t,__defaultRightSection:p.jsx(st.Chevron,{size:M,error:ee,unstyled:i,color:ge}),__clearSection:Et,__clearable:zt,rightSection:A,rightSectionPointerEvents:oe||(zt?"all":"none"),...Le,size:M,__staticSelector:"Select",disabled:I,readOnly:k||!O,value:me,onChange:rt=>{He(rt.currentTarget.value),Ve.openDropdown(),y&&Ve.selectFirstOption()},onFocus:rt=>{O&&Ve.openDropdown(),d==null||d(rt)},onBlur:rt=>{var Wt;O&&Ve.closeDropdown(),He(Be!=null&&((Wt=De[Be])==null?void 0:Wt.label)||""),f==null||f(rt)},onClick:rt=>{O?Ve.openDropdown():Ve.toggleDropdown(),h==null||h(rt)},classNames:Ue,styles:xt,unstyled:i,pointer:!O,error:ee})}),p.jsx(Mb,{data:de,hidden:k||I,filter:C,search:me,limit:_,hiddenWhenEmpty:!N,withScrollArea:T,maxDropdownHeight:P,filterOptions:O&&(he==null?void 0:he.label)!==me,value:
83Be,checkIconPosition:V,withCheckIcon:z,nothingFoundMessage:N,unstyled:i,labelId:Le.label?`${Oe}-label`:void 0,"aria-label":Le.label?void 0:Le["aria-label"],renderOption:Y,scrollAreaProps:ue})]}),p.jsx(st.HiddenInput,{value:Be,name:F,form:j,disabled:I,...ne})]})});iu.classes={...Ur.classes,...st.classes};iu.displayName="@mantine/core/Select";var t2={root:"m_18320242","skeleton-fade":"m_299c329c"};const j9={visible:!0,animate:!0},O9=(e,{width:t,height:n,radius:r,circle:o})=>({root:{"--skeleton-height":ae(n),"--skeleton-width":ae(o?n:t),"--skeleton-radius":o?"1000px":r===void 0?void 0:bt(r)}}),aw=fe((e,t)=>{const n=re("Skeleton",j9,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,width:u,height:c,circle:d,visible:f,radius:h,animate:g,mod:v,...w}=n,b=Te({name:"Skeleton",classes:t2,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:O9});return p.jsx(te,{ref:t,...b("root"),mod:[{visible:f,animate:g},v],...w})});aw.classes=t2;aw.displayName="@mantine/core/Skeleton";const[N9,Gh]=ur("SliderProvider was not found in tree"),n2=S.forwardRef(({size:e,disabled:t,variant:n,color:r,thumbSize:o,radius:i,...s},a)=>{const{getStyles:l}=Gh();return p.jsx(te,{tabIndex:-1,variant:n,size:e,ref:a,...l("root"),...s})});n2.displayName="@mantine/core/SliderRoot";const cy=S.forwardRef(({max:e,min:t,value:n,position:r,label:o,dragging:i,onMouseDown:s,onKeyDownCapture:a,labelTransitionProps:l,labelAlwaysOn:u,thumbLabel:c,onFocus:d,onBlur:f,showLabelOnHover:h,isHovered:g,children:v=null,disabled:w},b)=>{const{getStyles:y}=Gh(),[x,R]=S.useState(!1),k=u||i||x||h&&g;return p.jsxs(te,{tabIndex:0,role:"slider","aria-label":c,"aria-valuemax":e,"aria-valuemin":t,"aria-valuenow":n,ref:b,__vars:{"--slider-thumb-offset":`${r}%`},...y("thumb",{focusable:!0}),mod:{dragging:i,disabled:w},onFocus:I=>{R(!0),typeof d=="function"&&d(I)},onBlur:I=>{R(!1),typeof f=="function"&&f(I)},onTouchStart:s,onMouseDown:s,onKeyDownCapture:a,onClick:I=>I.stopPropagation(),children:[v,p.jsx(Br,{mounted:o!=null&&!!k,transition:"fade",duration:0,...l,children:I=>p.jsx("div",{...y("label",{style:I}),children:o})})]})});cy.displayName="@mantine/core/SliderThumb";function dy({value:e,min:t,max:n}){const r=(e-t)/(n-t)*100;return Math.min(Math.max(r,0),100)}function L9({mark:e,offset:t,value:n,inverted:r=!1}){return r?typeof t=="number"&&e.value<=t||e.value>=n:typeof t=="number"?e.value>=t&&e.value<=n:e.value<=n}function r2({marks:e,min:t,max:n,disabled:r,value:o,offset:i,inverted:s}){const{getStyles:a}=Gh();if(!e)return null;const l=e.map((u,c)=>S.createElement(te,{...a("markWrapper"),__vars:{"--mark-offset":`${dy({value:u.value,min:t,max:n})}%`},key:c},p.jsx(te,{...a("mark"),mod:{filled:L9({mark:u,value:o,offset:i,inverted:s}),disabled:r}}),u.label&&p.jsx("div",{...a("markLabel"),children:u.label})));return p.jsx("div",{children:l})}r2.displayName="@mantine/core/SliderMarks";function o2({filled:e,children:t,offset:n,disabled:r,marksOffset:o,inverted:i,containerProps:s,...a}){const{getStyles:l}=Gh();return p.jsx(te,{...l("trackContainer"),mod:{disabled:r},...s,children:p.jsxs(te,{...l("track"),mod:{inverted:i,disabled:r},children:[p.jsx(te,{mod:{inverted:i,disabled:r},__vars:{"--slider-bar-width":`calc(${e}% + var(--slider-size))`,"--slider-bar-offset":`calc(${n}% - var(--slider-size))`},...l("bar")}),t,p.jsx(r2,{...a,offset:o,disabled:r,inverted:i})]})})}o2.displayName="@mantine/core/SliderTrack";function JS({value:e,containerWidth:t,min:n,max:r,step:o,precision:i}){const a=(t?Math.min(Math.max(e,0),t)/t:e)*(r-n),l=(a!==0?Math.round(a/o)*o:0)+n,u=Math.max(l,n);return i!==void 0?Number(u.toFixed(i)):u}function $i(e,t){return parseFloat(e.toFixed(t))}function F9(e){if(!e)return 0;const t=e.toString().split(".");return t.length>1?t[1].length:0}function Xd(e,t){const r=[...t].sort((o,i)=>o.value-i.value).find(o=>o.value>e);return r?r.value:e}function Jd(e,t){const r=[...t].sort((o,i)=>i.value-o.value).find(o=>o.value<e);return r?r.value:e}function $9(e){const t=[...e].sort((n,r)=>n.value-r.value);return t.length>0?t[0].value:0}function z9(e){const t=[...e].sort((n,r)=>n.value-r.value);return t.length>0?t[t.length-1].value:100}var i2={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};function V9(e){return"TouchEvent"in window&&e instanceof window.TouchEvent?e.touches[0].clientX:e.clientX}const B9=(e,{size:t,color:n,thumbSize:r,radius:o})=>({root:{"--slider-size":Xe(t,"slider-size"),"--slider-color":n?It(n,e):void 0,"--slider-radius":o===void 0?void 0:bt(o),"--slider-thumb-size":r!==void 0?ae(r):"calc(var(--slider-size) * 2)"}}),H9={min:0,max:100,minRange:10,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0}
83,labelAlwaysOn:!1,showLabelOnHover:!0,disabled:!1,scale:e=>e},lw=fe((e,t)=>{const n=re("RangeSlider",H9,e),{classNames:r,styles:o,value:i,onChange:s,onChangeEnd:a,size:l,min:u,max:c,minRange:d,maxRange:f,step:h,precision:g,defaultValue:v,name:w,marks:b,label:y,labelTransitionProps:x,labelAlwaysOn:R,thumbFromLabel:k,thumbToLabel:I,showLabelOnHover:C,thumbChildren:_,disabled:T,unstyled:P,scale:M,inverted:O,className:A,style:V,vars:z,hiddenInputProps:N,restrictToMarks:F,thumbProps:j,...L}=n,B=Te({name:"Slider",props:n,classes:i2,classNames:r,className:A,styles:o,style:V,vars:z,varsResolver:B9,unstyled:P}),{dir:H}=Er(),[G,ee]=S.useState(-1),[oe,X]=S.useState(!1),[J,q]=kn({value:i,defaultValue:v,finalValue:[u,c],onChange:s}),ne=S.useRef(J),Y=S.useRef([]),W=S.useRef(null),se=S.useRef(void 0),ue=[dy({value:J[0],min:u,max:c}),dy({value:J[1],min:u,max:c})],le=g??F9(h),Re=xe=>{q(xe),ne.current=xe};S.useEffect(()=>{Array.isArray(i)&&(ne.current=i)},Array.isArray(i)?[i[0],i[1]]:[null,null]);const ye=(xe,me,ze)=>{if(me===-1)return;const Ee=[...ne.current];if(F&&b){const Ve=vN(xe,b.map(zt=>zt.value)),He=Ee[me];Ee[me]=Ve;const Ue=me===0?1:0,xt=z9(b),Et=$9(b);Ve===xt&&Ee[Ue]===xt||Ve===Et&&Ee[Ue]===Et?Ee[me]=He:Ve===Ee[Ue]&&(He>Ee[Ue]?Ee[Ue]=Jd(Ve,b):Ee[Ue]=Xd(Ve,b))}else Ee[me]=xe,me===0&&(xe>Ee[1]-(d-1e-9)&&(Ee[1]=Math.min(xe+d,c)),xe>(c-(d-1e-9)||u)&&(Ee[me]=ne.current[me]),Ee[1]-xe>f&&(Ee[1]=xe+f)),me===1&&(xe<Ee[0]+d&&(Ee[0]=Math.max(xe-d,u)),xe<Ee[0]+d&&(Ee[me]=ne.current[me]),xe-Ee[0]>f&&(Ee[0]=xe-f));if(Ee[0]=$i(Ee[0],le),Ee[1]=$i(Ee[1],le),Ee[0]>Ee[1]){const Ve=Ee[0];Ee[0]=Ee[1],Ee[1]=Ve}Re(Ee),ze&&(a==null||a(ne.current))},ge=xe=>{if(!T){const me=JS({value:xe,min:u,max:c,step:h,precision:le});ye(me,se.current,!1)}},{ref:Le,active:de}=uN(({x:xe})=>ge(xe),{onScrubEnd:()=>!T&&(a==null?void 0:a(ne.current))},H);function De(xe){se.current=xe}const Oe=xe=>{Le.current.focus();const me=Le.current.getBoundingClientRect(),ze=V9(xe.nativeEvent),Ee=JS({value:ze-me.left,max:c,min:u,step:h,containerWidth:me.width}),Ve=Math.abs(J[0]-Ee)>Math.abs(J[1]-Ee)?1:0,He=H==="ltr"?Ve:Ve===1?0:1;se.current=He},Be=()=>G!==1&&G!==0?(ee(0),0):G,wt=xe=>{if(!T)switch(xe.key){case"ArrowUp":{xe.preventDefault();const me=Be();Y.current[me].focus();const ze=F&&b?Xd(ne.current[me],b):Math.min(Math.max(ne.current[me]+h,u),
83c);ye($i(ze,le),me,!0);break}case"ArrowRight":{xe.preventDefault();const me=Be();Y.current[me].focus();const ze=F&&b?(H==="rtl"?Jd:Xd)(ne.current[me],b):Math.min(Math.max(H==="rtl"?ne.current[me]-h:ne.current[me]+h,u),c);ye($i(ze,le),me,!0);break}case"ArrowDown":{xe.preventDefault();const me=Be();Y.current[me].focus();const ze=F&&b?Jd(ne.current[me],b):Math.min(Math.max(ne.current[me]-h,u),c);ye($i(ze,le),me,!0);break}case"ArrowLeft":{xe.preventDefault();const me=Be();Y.current[me].focus();const ze=F&&b?(H==="rtl"?Xd:Jd)(ne.current[me],b):Math.min(Math.max(H==="rtl"?ne.current[me]+h:ne.current[me]-h,u),c);ye($i(ze,le),me,!0);break}}},Ge={max:c,min:u,size:l,labelTransitionProps:x,labelAlwaysOn:R,onBlur:()=>ee(-1)},he=Array.isArray(_);return p.jsx(N9,{value:{getStyles:B},children:p.jsxs(n2,{...L,size:l,ref:gn(t,W),disabled:T,onMouseDownCapture:()=>{var xe;return(xe=W.current)==null?void 0:xe.focus()},onKeyDownCapture:()=>{var xe,me,ze;(me=(xe=Y.current[0])==null?void 0:xe.parentElement)!=null&&me.contains(document.activeElement)||(ze=Y.current[0])==null||ze.focus()},children:[p.jsxs(o2,{offset:ue[0],marksOffset:J[0],filled:ue[1]-ue[0],marks:b,inverted:O,min:u,max:c,value:J[1],disabled:T,containerProps:{ref:Le,onMouseEnter:C?()=>X(!0):void 0,onMouseLeave:C?()=>X(!1):void 0,onTouchStartCapture:Oe,onTouchEndCapture:()=>{se.current=-1},onMouseDownCapture:Oe,onMouseUpCapture:()=>{se.current=-1},onKeyDownCapture:wt},children:[p.jsx(cy,{...Ge,value:M(J[0]),position:ue[0],dragging:de,label:typeof y=="function"?y($i(M(J[0]),le)):y,ref:xe=>{Y.current[0]=xe},thumbLabel:k,onMouseDown:()=>De(0),onFocus:()=>ee(0),showLabelOnHover:C,isHovered:oe,disabled:T,...j==null?void 0:j(0),children:he?_[0]:_}),p.jsx(cy,{...Ge,thumbLabel:I,value:M(J[1]),position:ue[1],dragging:de,label:typeof y=="function"?y($i(M(J[1]),le)):y,ref:xe=>{Y.current[1]=xe},onMouseDown:()=>De(1),onFocus:()=>ee(1),showLabelOnHover:C,isHovered:oe,disabled:T,...j==null?void 0:j(1),children:he?_[1]:_})]}),p.jsx("input",{type:"hidden",name:`${w}_from`,value:J[0],...N}),p.jsx("input",{type:"hidden",name:`${w}_to`,value:J[1],...N})]})})});lw.classes=i2;lw.displayName="@mantine/core/RangeSlider";var s2={root:"m_6d731127"};const U9={gap:"md",align:"stretch",justify:"flex-start"},G9=(e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":hn(t),"--stack-align":n,"--stack-justify":r}}),Ze=fe((e,t)=>{const n=re("Stack",U9,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,align:u,justify:c,gap:d,variant:f,...h}=n,g=Te({name:"Stack",props:n,classes:s2,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:G9});return p.jsx(te,{ref:t,...g("root"),variant:f,...h})});Ze.classes=s2;Ze.displayName="@mantine/core/Stack";const a2=S.createContext(null),W9=a2.Provider,K9=()=>S.useContext(a2),q9={},uw=fe((e,t)=>{const{value:n,defaultValue:r,onChange:o,size:i,wrapperProps:s,children:a,readOnly:l,...u}=re("SwitchGroup",q9,e),[c,d]=kn({value:n,defaultValue:r,finalValue:[],onChange:o}),f=h=>{const g=h.currentTarget.value;!l&&d(c.includes(g)?c.filter(v=>v!==g):[...c,g])};return p.jsx(W9,{value:{value:c,onChange:f,size:i},children:p.jsx(Lt.Wrapper,{size:i,ref:t,...s,...u,labelElement:"div",__staticSelector:"SwitchGroup",children:p.jsx(Pb,{role:"group",children:a})})})});uw.classes=Lt.Wrapper.classes;uw.displayName="@mantine/core/SwitchGroup";var l2={root:"m_5f93f3bb",input:"m_926b4011",track:"m_9307d992",thumb:"m_93039a1d",trackLabel:"m_8277e082"};const Y9={labelPosition:"right"},X9=(e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:bt(t),"--switch-height":Xe(r,"switch-height"),"--switch-width":Xe(r,"switch-width"),"--switch-thumb-size":Xe(r,"switch-thumb-size"),"--switch-label-font-size":Xe(r,"switch-label-font-size"),"--switch-track-label-padding":Xe(r,"switch-track-label-padding"),"--switch-color":n?It(n,e):void 0}}),rd=fe((e,t)=>{const n=re("Switch",Y9,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,color:u,label:c,offLabel:d,onLabel:f,id:h,size:g,radius:v,wrapperProps:w,thumbIcon:b,checked:y,defaultChecked:x,onChange:R,labelPosition:k,description:I,error:C,disabled:_,variant:T,rootRef:P,mod:M,...O}=n,A=K9(),V=g||(A==null?void 0:A.size),z=Te({name:"Switch",props:n,classes:l2,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:X9}),{styleProps:N,rest:F}=Sa(O),j=Rr(h),L=A?{checked:A.value.includes(F.value),onChange:A.onChange}:{},[B,H]=kn({value:L.checked??y,defaultValue:x,finalValue:!1});return p.jsxs(Rh,{...z("root"),__staticSelector:"Switch",__stylesApiProps:n,id:j,size:V,labelPosition:k,label:c,description:I,error:C,disabled:_,bodyElement:"label",labelElement:"span",classNames:r,styles:s,unstyled:a,"data-checked":L.checked||y||void 0,variant:T,ref:P,mod:M,...N,...w,children:[p.jsx("input",{...F,disabled:_,checked:B,"data-checked":L.checked||y||void 0,onChange:G=>{var ee;A?(ee=L.onChange)==null||ee.call(L,G):R==null||R(G),H(G.currentTarget.checked)},id:j,ref:t,type:"checkbox",role:"switch",...z("input")}),p.jsxs(te,{"aria-hidden":"true",component:"span",mod:{error:C,"label-position":k,"without-labels":!f&&!d}
83,...z("track"),children:[p.jsx(te,{component:"span",mod:"reduce-motion",...z("thumb"),children:b}),p.jsx("span",{...z("trackLabel"),children:B?f:d})]})]})});rd.classes={...l2,...wk};rd.displayName="@mantine/core/Switch";rd.Group=uw;const[J9,Q9]=ur("Table component was not found in the tree");var od={table:"m_b23fa0ef",th:"m_4e7aa4f3",tr:"m_4e7aa4fd",td:"m_4e7aa4ef",tbody:"m_b2404537",thead:"m_b242d975",caption:"m_9e5a3ac7",scrollContainer:"m_a100c15",scrollContainerInner:"m_62259741"};function Z9(e,t){if(!t)return;const n={};return t.columnBorder&&e.withColumnBorders&&(n["data-with-column-border"]=!0),t.rowBorder&&e.withRowBorders&&(n["data-with-row-border"]=!0),t.striped&&e.striped&&(n["data-striped"]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n["data-hover"]=!0),t.captionSide&&e.captionSide&&(n["data-side"]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n["data-sticky"]=!0),n}function Ea(e,t){const n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=fe((o,i)=>{const s=re(n,{},o),{classNames:a,className:l,style:u,styles:c,...d}=s,f=Q9();return p.jsx(te,{component:e,ref:i,...Z9(f,t),...f.getStyles(e,{className:l,classNames:a,style:u,styles:c,props:s}),...d})});return r.displayName=`@mantine/core/${n}`,r.classes=od,r}const Nl=Ea("th",{columnBorder:!0}),id=Ea("td",{columnBorder:!0}),ii=Ea("tr",{rowBorder:!0,striped:!0,highlightOnHover:!0}),cw=Ea("thead",{stickyHeader:!0}),uc=Ea("tbody"),dw=Ea("tfoot"),u2=Ea("caption",{captionSide:!0});function fw({data:e}){return p.jsxs(p.Fragment,{children:[e.caption&&p.jsx(u2,{children:e.caption}),e.head&&p.jsx(cw,{children:p.jsx(ii,{children:e.head.map((t,n)=>p.jsx(Nl,{children:t},n))})}),e.body&&p.jsx(uc,{children:e.body.map((t,n)=>p.jsx(ii,{children:t.map((r,o)=>p.jsx(id,{children:r},o))}
83,n))}),e.foot&&p.jsx(dw,{children:p.jsx(ii,{children:e.foot.map((t,n)=>p.jsx(Nl,{children:t},n))})})]})}fw.displayName="@mantine/core/TableDataRenderer";const ez={type:"scrollarea"},tz=(e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":ae(t),"--table-max-height":ae(n),"--table-overflow":r==="native"?"auto":void 0}}),pw=fe((e,t)=>{const n=re("TableScrollContainer",ez,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,children:u,minWidth:c,maxHeight:d,type:f,scrollAreaProps:h,...g}=n,v=Te({name:"TableScrollContainer",classes:od,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:tz,rootSelector:"scrollContainer"});return p.jsx(te,{component:f==="scrollarea"?Ca:"div",...f==="scrollarea"?d?{offsetScrollbars:"xy",...h}:{offsetScrollbars:"x",...h}:{},ref:t,...v("scrollContainer"),...g,children:p.jsx("div",{...v("scrollContainerInner"),children:u})})});pw.classes=od;pw.displayName="@mantine/core/TableScrollContainer";const nz={withRowBorders:!0,verticalSpacing:7},rz=(e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:o,borderColor:i,stripedColor:s,highlightOnHoverColor:a,striped:l,highlightOnHover:u,stickyHeaderOffset:c,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":hn(r),"--table-vertical-spacing":hn(o),"--table-border-color":i?It(i,e):void 0,"--table-striped-color":l&&s?It(s,e):void 0,"--table-highlight-on-hover-color":u&&a?It(a,e):void 0,"--table-sticky-header-offset":d?ae(c):void 0}}),Wr=fe((e,t)=>{const n=re("Table",nz,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,horizontalSpacing:u,verticalSpacing:c,captionSide:d,stripedColor:f,highlightOnHoverColor:h,striped:g,highlightOnHover:v,withColumnBorders:w,withRowBorders:b,withTableBorder:y,borderColor:x,layout:R,variant:k,data:I,children:C,stickyHeader:_,stickyHeaderOffset:T,mod:P,tabularNums:M,...O}=n,A=Te({name:"Table",props:n,className:o,style:i,classes:od,classNames:r,styles:s,unstyled:a,rootSelector:"table",vars:l,varsResolver:rz});return p.jsx(J9,{value:{getStyles:A,stickyHeader:_,striped:g===!0?"odd":g||void 0,highlightOnHover:v,withColumnBorders:w,withRowBorders:b,captionSide:d||"bottom"},children:p.jsx(te,{component:"table",variant:k,ref:t,mod:[{"data-with-table-border":y,"data-tabular-nums":M},P],...A("table"),...O,children:C||!!I&&p.jsx(fw,{data:I})})})});Wr.classes=od;Wr.displayName="@mantine/core/Table";Wr.Td=id;Wr.Th=Nl;Wr.Tr=ii;Wr.Thead=cw;Wr.Tbody=uc;Wr.Tfoot=dw;Wr.Caption=u2;Wr.ScrollContainer=pw;Wr.DataRenderer=fw;const oz={},fn=fe((e,t)=>{const n=re("TextInput",oz,e);return p.jsx(Ur,{component:"input",ref:t,...n,__staticSelector:"TextInput"})});fn.classes=Ur.classes;fn.displayName="@mantine/core/TextInput";const iz=["h1","h2","h3","h4","h5","h6"],sz=["xs","sm","md","lg","xl"];function az(e,t){const n=t!==void 0?t:`h${e}`;return iz.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:sz.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:ae(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var c2={root:"m_8a5d1357"};const lz={order:1},uz=(e,{order:t,size:n,lineClamp:r,textWrap:o})=>{const i=az(t,n);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof r=="number"?r.toString():void 0,"--title-text-wrap":o}}},da=fe((e,t)=>{const n=re("Title",lz,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,order:l,vars:u,size:c,variant:d,lineClamp:f,textWrap:h,mod:g,...v}=n,w=Te({name:"Title",props:n,classes:c2,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:u,varsResolver:uz});return[1,2,3,4,5,6].includes(l)?p.jsx(te,{...w("root"),component:`h${l}`,variant:d,ref:t,mod:[{order:l,"data-line-clamp":typeof f=="number"},g],size:c,...v}):null});da.classes=c2;da.displayName="@mantine/core/Title";const hw=S.createContext(null);hw.displayName="@mantine/modals/ModalsContext";function cz(){const e=S.useContext(hw);if(!e)throw new Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}function dz({id:e,cancelProps:t,confirmProps:n,labels:r={cancel:"",confirm:""},closeOnConfirm:o=!0,closeOnCancel:i=!0,groupProps:s,onCancel:a,onConfirm:l,children:u}){const{cancel:c,confirm:d}=r,f=cz(),h=v=>{typeof(t==null?void 0:t.onClick)=="function"&&(t==null||t.onClick(v)),typeof a=="function"&&a(),i&&f.closeModal(e)},g=v=>{typeof(n==null?void 0:n.onClick)=="function"&&(n==null||n.onClick(v)),typeof l=="function"&&l(),o&&f.closeModal(e)};return p.jsxs(p.Fragment,{children:[u&&p.jsx(te,{mb:"md",children:u}),p.jsxs(mt,{mt:u?0:"md",justify:"flex-end",...s,children:[p.jsx(Ct,{variant:"default",...t,onClick:h,children:(t==null?void 0:t.children)||c}),p.jsx(Ct,{...n,onClick:g,children:(n==null?void 0:n.children)||d})]})]})}const[fz,d2]=hN("mantine-modals");d2("closeModal");d2("closeAllModals");function QS(e,t){var n,r,o,i;t&&e.type==="confirm"&&((r=(n=e.props).onCancel)==null||r.call(n)),(i=(o=e.props).onClose)==null||i.call(o)}function pz(e,t){var n;switch(t.type){case"OPEN":return{current:t.modal,modals:[...e.modals,t.modal]};case"CLOSE":{const r=e.modals.find(i=>i.id===t.modalId);if(!r)return e;QS(r,t.canceled);const o=e.modals.filter(i=>i.id!==t.modalId);return{current:o[o.length-1]||e.current,modals:o}}case"CLOSE_ALL":return e.modals.length?(e.modals.concat().reverse().forEac
83h(r=>{QS(r,t.canceled)}),{current:e.current,modals:[]}):e;case"UPDATE":{const{modalId:r,newProps:o}=t,i=e.modals.map(a=>a.id!==r?a:a.type==="content"||a.type==="confirm"?{...a,props:{...a.props,...o}}:a.type==="context"?{...a,props:{...a.props,...o,innerProps:{...a.props.innerProps,...o.innerProps}}}:a),s=((n=e.current)==null?void 0:n.id)===r&&i.find(a=>a.id===r)||e.current;return{...e,modals:i,current:s}}default:return e}}function hz(e){if(!e)return{confirmProps:{},modalProps:{}};const{id:t,children:n,onCancel:r,onConfirm:o,closeOnConfirm:i,closeOnCancel:s,cancelProps:a,confirmProps:l,groupProps:u,labels:c,...d}=e;return{confirmProps:{id:t,children:n,onCancel:r,onConfirm:o,closeOnConfirm:i,closeOnCancel:s,cancelProps:a,confirmProps:l,groupProps:u,labels:c},modalProps:{id:t,...d}}}function mz({children:e,modalProps:t,labels:n,modals:r}){const[o,i]=S.useReducer(pz,{modals:[],current:null}),s=S.useRef(o);s.current=o;const a=S.useCallback(y=>{i({type:"CLOSE_ALL",canceled:y})},[s,i]),l=S.useCallback(({modalId:y,...x})=>{const R=y||ac();return i({type:"OPEN",modal:{id:R,type:"content",props:x}}),R},[i]),u=S.useCallback(({modalId:y,...x})=>{const R=y||ac();return i({type:"OPEN",modal:{id:R,type:"confirm",props:x}}),R},[i]),c=S.useCallback((y,{modalId:x,...R})=>{const k=x||ac();return i({type:"OPEN",modal:{id:k,type:"context",props:R,ctx:y}}),k},[i]),d=S.useCallback((y,x)=>{i({type:"CLOSE",modalId:y,canceled:x})},[s,i]),f=S.useCallback(({modalId:y,...x})=>{i({type:"UPDATE",modalId:y,newProps:x})},[i]),h=S.useCallback(({modalId:y,...x})=>{i({type:"UPDATE",modalId:y,newProps:x})},[i]);fz({openModal:l,openConfirmModal:u,openContextModal:({modal:y,...x})=>c(y,x),closeModal:d,closeContextModal:d,closeAllModals:a,updateModal:f,updateContextModal:h});const g={modalProps:t||{},modals:o.modals,openModal:l,openConfirmModal:u,openContextModal:c,closeModal:d,closeContextModal:d,closeAll:a,updateModal:f,updateContextModal:h},v=()=>{const y=s.current.current;switch(y==null?void 0:y.type){case"context":{const{innerProps:x,...R}=y.props,k=r[y.ctx];return{modalProps:R,content:p.jsx(k,{innerProps:x,context:g,id:y.id})}}case"confirm":{const{modalProps:x,confirmProps:R}=hz(y.props);return{modalProps:x,content:p.jsx(dz,{...R,id:y.id,labels:y.props.labels||n})}}case"content":{const{children:x,...R}=y.props;return{modalProps:R,content:x}}default:return{modalProps:{},content:null}}},{modalProps:w,content:b}=v();return p.jsxs(hw.Provider,{value:g,children:[p.jsx(cr,{zIndex:zr("modal")+1,...t,...w,opened:o.modals.length>0,onClose:()=>{var y;return d((y=o.current)==null?void 0:y.id)},children:b}),e]})}const gz={white:"#ffffff",black:"#212529",defaultRadius:"md",primaryColor:"lime",components:{ActionIcon:{defaultProps:{variant:"subtle"}},Button:{defaultProps:{variant:"light"}},Anchor:{defaultProps:{underline:"always"}},Tooltip:{defaultProps:{withArrow:!0,multiline:!0,w:200,events:{hover:!0,focus:!0,touch:!0}}}}};function vz(e){let t=e,n=!1;const r=new Set;return{getState(){return t},updateState(o){t=typeof o=="function"?o(t):o},setState(o){this.updateState(o),r.forEach(i=>i(t))},initialize(o){n||(t=o,n=!0)},subscribe(o){return r.add(o),()=>r.delete(o)}}}function yz(e){return S.useSyncExternalStore(e.subscribe,()=>e.getState(),()=>e.getState())}function bz(e,t,n){const r=[],o=[],i={};for(const s of e){const a=s.position||t;i[a]=i[a]||0,i[a]+=1,i[a]<=n?o.push(s):r.push(s)}return{notifications:o,queue:r}}const wz=()=>vz({notifications:[],queue:[],defaultPosition:"bottom-right",limit:5}),Ta=wz(),xz=(e=Ta)=>yz(e);function su(e,t){const n=e.getState(),r=t([...n.notifications,...n.queue]),o=bz(r,n.defaultPosition,n.limit);e.setState({notifications:o.notifications,queue:o.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function Sz(e,t=Ta){const n=e.id||ac();return su(t,r=>e.id&&r.some(o=>o.id===e.id)?r:[...r,{...e,id:n}]),n}function f2(e,t=Ta){return su(t,n=>n.filter(r=>{var o;return r.id===e?((o=r.onClose)==null||o.call(r,r),!1):!0})),e}function Cz(e,t=Ta){return su(t,n=>n.map(r=>r.id===e.id?{...r,...e}:r)),e.id}function _z(e=Ta){su(e,()=>[])}function Rz(e=Ta){su(e,t=>t.slice(0,e.getState().limit))}const mi={show:Sz,hide:f2,update:Cz,clean:_z,cleanQueue:Rz,updateState:su};
vendor: 4,378 bytes, line 83
83function yp(e,t){return yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},yp(e,t)}function p2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yp(e,t)}const ZS={disabled:!1},bp=Rn.createContext(null);var Ez=function(t){return t.scrollTop},Wu="unmounted",zs="exited",Vs="entering",Xa="entered",fy="exiting",Ei=function(e){p2(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=o,a=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?a?(l=zs,i.appearStatus=Vs):l=Xa:r.unmountOnExit||r.mountOnEnter?l=Wu:l=zs,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===Wu?{status:zs}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==Vs&&s!==Xa&&(i=Vs):(s===Vs||s===Xa)&&(i=fy)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Vs){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ul.findDOMNode(this);s&&Ez(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===zs&&this.setState({status:Wu})},n.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,l=this.props.nodeRef?[a]:[ul.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!o&&!s||ZS.disabled){this.safeSetState({status:Xa},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Vs},function(){i.props.onEntering(u,c),i.onTransitionEnd(f,function(){i.safeSetState({status:Xa},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:ul.findDOMNode(this);if(!i||ZS.disabled){this.safeSetState({status:zs},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:fy},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:zs},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:ul.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Wu)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=Hb(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Rn.createElement(bp.Provider,{value:null},typeof s=="function"?s(o,a):Rn.cloneElement(Rn.Children.only(s),a))},t}(Rn.Component);Ei.contextType=bp;Ei.propTypes={};function Ba(){}Ei.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ba,onEntering:Ba,onEntered:Ba,onExit:Ba,onExiting:Ba,onExited:Ba};Ei.UNMOUNTED=Wu;Ei.EXITED=zs;Ei.ENTERING=Vs;Ei.ENTERED=Xa;Ei.EXITING=fy;function si(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mw(e,t){var n=function(i){return t&&S.isValidElement(i)?t(i):i},r=Object.create(null);return e&&S.Children.map(e,function(o){return o}
83).forEach(function(o){r[o.key]=n(o)}),r}function Tz(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;s<r[l].length;s++){var u=r[l][s];a[r[l][s]]=n(u)}a[l]=n(l)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function Js(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Pz(e,t){return mw(e.children,function(n){return S.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Js(n,"appear",e),enter:Js(n,"enter",e),exit:Js(n,"exit",e)})})}function kz(e,t,n){var r=mw(e.children),o=Tz(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(S.isValidElement(s)){var a=i in t,l=i in r,u=t[i],c=S.isValidElement(u)&&!u.props.in;l&&(!a||c)?o[i]=S.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Js(s,"exit",e),enter:Js(s,"enter",e)}):!l&&a&&!c?o[i]=S.cloneElement(s,{in:!1}):l&&a&&S.isValidElement(u)&&(o[i]=S.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:Js(s,"exit",e),enter:Js(s,"enter",e)}))}}),o}var Iz=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Mz={component:"div",childFactory:function(t){return t}},Gi=function(e){p2(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(si(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,l=i.firstRender;return{children:l?Pz(o,a):kz(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=mw(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var l=gp({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=Hb(o,["component","childFactory"]),l=this.state.contextValue,u=Iz(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?Rn.createElement(bp.Provider,{value:l},u):Rn.createElement(bp.Provider,{value:l},Rn.createElement(i,a,u))},t}(Rn.Component);Gi.propTypes={};Gi.defaultProps=Mz;const h2=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"];function Dz(e,t){return e.reduce((n,r)=>(n[r.position||t].push(r),n),h2.reduce((n,r)=>(n[r]=[],n),{}))}const eC={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},Az={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};function jz({state:e,maxHeight:t,position:n,transitionDuration:r}){const[o,i]=n.split("-"),s=i==="center"?`${o}-center`:i,a={opacity:0,maxHeight:t,transform:eC[s],transitionDuration:`${r}ms, ${r}ms, ${r}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},l={opacity:1,transform:Az[s]},u={opacity:0,maxHeight:0,transform:eC[s]};return{...a,...{entering:l,entered:l,exiting:u,exited:u}[e]}}function Oz(e,t){return typeof t=="number"?t:t===!1||e===!1?!1:e}const m2=S.forwardRef(({data:e,onHide:t,autoClose:n,...r},o)=>{const{autoClose:i,message:s,...a}=e,l=Oz(n,e.autoClose),u=S.useRef(-1),c=()=>window.clearTimeout(u.current),d=()=>{t(e.id),c()},f=()=>{typeof l=="number"&&(u.current=window.setTimeout(d,l))};return S.useEffect(()=>{var h;(h=e.onOpen)==null||h.call(e,e)},[]),S.useEffect(()=>(f(),c),[l]),p.jsx(Zb,{...r,...a,onClose:d,ref:o,onMouseEnter:c,onMouseLeave:f,children:s})});m2.displayName="@mantine/notifications/NotificationContainer";var g2={root:"m_b37d9ac7",notification:"m_5ed0edd0"};const Nz=Ei,Lz={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:zr("overlay"),store:Ta,withinPortal:!0},Fz=(e,{zIndex:t,containerWidth:n})=>({root:{"--notifications-z-index":t==null?void 0:t.toString(),"--notifications-container-width":ae(n)}}),Lo=fe((e,t)=>{const n=re("Notifications",Lz,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,position:u,autoClose:c,transitionDuration:d,containerWidth:f,notificationMaxHeight:h,limit:g,zIndex:v,store:w,portalProps:b,withinPortal:y,...x}=n,R=rn(),k=xz(w),I=iN(),C=ah(),_=S.useRef({}),T=S.useRef(0),M=(R.respectReducedMotion?C:!1)?1:d,O=Te({name:"Notifications",classes:g2,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:Fz});S.useEffect(()=>{w==null||w.updateState(z=>({...z,limit:g||5,defaultPosition:u}))},[g,u]),co(()=>{k.notifications.length>T.current&&setTimeout(()=>I(),0),T.current=k.notifications.length},[k.notifications]);const A=Dz(k.notifications,u),V=h2.reduce((z,N)=>(z[N]=A[N].map(({style:F,...j})=>p.jsx(Nz,{timeout:M,onEnter:()=>_.current[j.id].offsetHeight,nodeRef:{current:_.current[j.id]},children:L=>p.jsx(m2,{ref:B=>{_.current[j.id]=B},data:j,onHide:B=>f2(B,w),autoClose:c,...O("notification",{style:{...jz({state:L,position:N,transitionDuration:M,maxHeight:h}),...F}})})},j.id)),z),{});return p.jsxs(_a,{withinPortal:y,...b,children:[p.jsx(te,{...O("root"),"data-position":"top-center",ref:t,...x,children:p.jsx(Gi,{children:V["top-center"]})}),p.jsx(te,{...O("root"),"data-position":"top-left",...x,children:p.jsx(Gi,{children:V["top-left"]})}),p.jsx(te,{...O("root",{className:ap.classNames.fullWidth}),"data-position":"top-right",...x,children:p.jsx(Gi,{children:V["top-right"]})}),p.jsx(te,{...O("root",{className:ap.classNames.fullWidth}),"data-position":"bottom-right",...x,children:p.jsx(Gi,{children:V["bottom-right"]})}),p.jsx(te,{...O("root"),"data-position":"bottom-left",...x,children:p.jsx(Gi,{children:V["bottom-left"]})}),p.jsx(te,{...O("root"),"data-position":"bottom-center",...x,children:p.jsx(Gi,{children:V["bottom-center"]})})]})});Lo.classes=g2;Lo.displayName="@mantine/notifications/Notifications";Lo.show=mi.show;Lo.hide=mi.hide;Lo.update=mi.update;
83Lo.clean=mi.clean;Lo.cleanQueue=mi.cleanQueue;Lo.updateState=mi.updateState;var tC={};/**
84 * @license
85 * Copyright 2017 Google LLC
86 *
87 * Licensed under the Apache License, Version 2.0 (the "License");
88 * you may not use this file except in compliance with the License.
89 * You may obtain a copy of the License at
90 *
91 *   http://www.apache.org/licenses/LICENSE-2.0
92 *
93 * Unless required by applicable law or agreed to in writing, software
94 * distributed under the License is distributed on an "AS IS" BASIS,
95 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
96 * See the License for the specific language governing permissions and
97 * limitations under the License.
98 */const v2=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);o<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=o&63|128):(o&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(o=65536+((o&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=o&63|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=o&63|128)}return t},$z=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const o=e[n++];if(o<128)t[r++]=String.fromCharCode(o);else if(o>191&&o<224){const i=e[n++];t[r++]=String.fromCharCode((o&31)<<6|i&63)}else if(o>239&&o<365){const i=e[n++],s=e[n++],a=e[n++],l=((o&7)<<18|(i&63)<<12|(s&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(l&1023))}else{const i=e[n++],s=e[n++];t[r++]=String.fromCharCode((o&15)<<12|(i&63)<<6|s&63)}}return t.join("")},y2={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let o=0;o<e.length;o+=3){const i=e[o],s=o+1<e.length,a=s?e[o+1]:0,l=o+2<e.length,u=l?e[o+2]:0,c=i>>2,d=(i&3)<<4|a>>4;let f=(a&15)<<2|u>>6,h=u&63;l||(h=64,s||(f=64)),r.push(n[c],n[d],n[f],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(v2(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):$z(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let o=0;o<e.length;){const i=n[e.charAt(o++)],a=o<e.length?n[e.charAt(o)]:0;++o;const u=o<e.length?n[e.charAt(o)]:64;++o;const d=o<e.length?n[e.charAt(o)]:64;if(++o,i==null||a==null||u==null||d==null)throw new zz;const f=i<<2|a>>4;if(r.push(f),u!==64){const h=a<<4&240|u>>2;if(r.push(h),d!==64){const g=u<<6&192|d;r.push(g)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class zz extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Vz=function(e){const t=v2(e);return y2.encodeByteArray(t,!0)},wp=function(e){return Vz(e).replace(/\./g,"")},b2=function(e){try{return y2.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
99 * @license
100 * Copyright 2022 Google LLC
101 *
102 * Licensed under the Apache License, Version 2.0 (the "License");
103 * you may not use this file except in compliance with the License.
104 * You may obtain a copy of the License at
105 *
106 *   http://www.apache.org/licenses/LICENSE-2.0
107 *
108 * Unless required by applicable law or agreed to in writing, softw
108are
109 * distributed under the License is distributed on an "AS IS" BASIS,
110 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
111 * See the License for the specific language governing permissions and
112 * limitations under the License.
113 */function Bz(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
114 * @license
115 * Copyright 2022 Google LLC
116 *
117 * Licensed under the Apache License, Version 2.0 (the "License");
118 * you may not use this file except in compliance with the License.
119 * You may obtain a copy of the License at
120 *
121 *   http://www.apache.org/licenses/LICENSE-2.0
122 *
123 * Unless required by applicable law or agreed to in writing, software
124 * distributed under the License is distributed on an "AS IS" BASIS,
125 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
126 * See the License for the specific language governing permissions and
127 * limitations under the License.
128 */const Hz=()=>Bz().__FIREBASE_DEFAULTS__,Uz=()=>{if(typeof process>"u"||typeof tC>"u")return;const e=tC.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},Gz=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&b2(e[1]);return t&&JSON.parse(t)},gw=()=>{try{return Hz()||Uz()||Gz()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},w2=e=>{var t,n;return(n=(t=gw())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},x2=e=>{const t=w2(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const r=parseInt(t.substring(n+1),10);return t[0]==="["?[t.substring(1,n-1),r]:[t.substring(0,n),r]},S2=()=>{var e;return(e=gw())===null||e===void 0?void 0:e.config},C2=e=>{var t;return(t=gw())===null||t===void 0?void 0:t[`_${e}`]};/**
129 * @license
130 * Copyright 2017 Google LLC
131 *
132 * Licensed under the Apache License, Version 2.0 (the "License");
133 * you may not use this file except in compliance with the License.
134 * You may obtain a copy of the License at
135 *
136 *   http://www.apache.org/licenses/LICENSE-2.0
137 *
138 * Unless required by applicable law or agreed to in writing, software
139 * distributed under the License is distributed on an "AS IS" BASIS,
140 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
141 * See the License for the specific language governing permissions and
142 * limitations under the License.
143 */let Wz=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}};/**
144 * @license
145 * Copyright 2021 Google LLC
146 *
147 * Licensed under the Apache License, Version 2.0 (the "License");
148 * you may not use this file except in compliance with the License.
149 * You may obtain a copy of the License at
150 *
151 *   http://www.apache.org/licenses/LICENSE-2.0
152 *
153 * Unless required by applicable law or agreed to in writing, software
154 * distributed under the License is distributed on an "AS IS" BASIS,
155 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
156 * See the License for the specific language governing permissions and
157 * limitations under the License.
158 */function Kz(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},r=t||"demo-project",o=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:o,exp:o+3600,auth_time:o,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[wp(JSON.stringify(n)),wp(JSON.stringify(s)),""].join(".")}/**
159 * @license
160 * Copyright 2017 Google LLC
161 *
162 * Licensed under the Apache License, Version 2.0 (the "License");
163 * you may not use this file except in compliance with the License.
164 * You may obtain a copy of the License at
165 *
166 *   http://www.apache.org/licenses/LICENSE-2.0
167 *
168 * Unless required by applicable law or agreed to in writing, software
169 * distributed under the License is distributed on an "AS IS" BASIS,
170 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
171 * See the License for the specific language governing permissions and
172 * limitations under the License.
173 */function Kn(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function qz(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Kn())}function Yz(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function Xz(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function Jz(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function Qz(){const e=Kn();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function Zz(){try{return typeof indexedDB=="object"}catch{return!1}}function e6(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(r);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var i;t(((i=o.error)===null||i===void 0?void 0:i.message)||"")}}catch(n){t(n)}})}/**
174 * @license
175 * Copyright 2017 Google LLC
176 *
177 * Licensed under the Apache License, Version 2.0 (the "License");
178 * you may not use this file except in compliance with the License.
179 * You may obtain a copy of the License at
180 *
181 *   http://www.apache.org/licenses/LICENSE-2.0
182 *
183 * Unless required by applicable law or agreed to in writing, software
184 * distributed under the License is distributed on an "AS IS" BASIS,
185 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
186 * See the License for the specific language governing permissions and
187 * limitations under the License.
188 */const t6="FirebaseError";class Ti extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=t6,Object.setPrototypeOf(this,Ti.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,sd.prototype.create)}}class sd{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},o=`${this.service}/${t}`,i=this.errors[t],s=i?n6(i,r):"Error",a=`${this.serviceName}: ${s} (${o}).`;return new Ti(o,a,r)}}function n6(e,t){return e.replace(r6,(n,r)=>{const o=t[r];return o!=null?String(o):`<${r}?>`})}const r6=/\{\$([^}]+)}/g;function o6(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function xp(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const o of n){if(!r.includes(o))return!1;const i=e[o],s=t[o];if(nC(i)&&nC(s)){if(!xp(i,s))return!1}else if(i!==s)return!1}for(const o of r)if(!n.includes(o))return!1;return!0}function nC(e){return e!==null&&typeof e=="object"}/**
189 * @license
190 * Copyright 2017 Google LLC
191 *
192 * Licensed under the Apache License, Version 2.0 (the "License");
193 * you may not use this file except in compliance with the License.
194 * You may obtain a copy of the License at
195 *
196 *   http://www.apache.org/licenses/LICENSE-2.0
197 *
198 * Unless required by applicable law or agreed to in writing, software
199 * distributed under the License is distributed on an "AS IS" BASIS,
200 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201 * See the License for the specific language governing permissions and
202 * limitations under the License.
203 */function ad(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(o=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(o))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function Ku(e){const t={};return e.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[o,i]=r.split("=");
203t[decodeURIComponent(o)]=decodeURIComponent(i)}}),t}function qu(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function i6(e,t){const n=new s6(e,t);return n.subscribe.bind(n)}class s6{constructor(t,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{t(this)}).catch(r=>{this.error(r)})}next(t){this.forEachObserver(n=>{n.next(t)})}error(t){this.forEachObserver(n=>{n.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,n,r){let o;if(t===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");a6(t,["next","error","complete"])?o=t:o={next:t,error:n,complete:r},o.next===void 0&&(o.next=bg),o.error===void 0&&(o.error=bg),o.complete===void 0&&(o.complete=bg);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?o.error(this.finalError):o.complete()}catch{}}),this.observers.push(o),i}unsubscribeOne(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,t)}sendOne(t,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[t]!==void 0)try{n(this.observers[t])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(t){this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function a6(e,t){if(typeof e!="object"||e===null)return!1;for(const n of t)if(n in e&&typeof e[n]=="function")return!0;return!1}function bg(){}/**
204 * @license
205 * Copyright 2021 Google LLC
206 *
207 * Licensed under the Apache License, Version 2.0 (the "License");
208 * you may not use this file except in compliance with the License.
209 * You may obtain a copy of the License at
210 *
211 *   http://www.apache.org/licenses/LICENSE-2.0
212 *
213 * Unless required by applicable law or agreed to in writing, software
214 * distributed under the License is distributed on an "AS IS" BASIS,
215 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
216 * See the License for the specific language governing permissions and
217 * limitations under the License.
218 */function Pi(e){return e&&e._delegate?e._delegate:e}class bs{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
219 * @license
220 * Copyright 2019 Google LLC
221 *
222 * Licensed under the Apache License, Version 2.0 (the "License");
223 * you may not use this file except in compliance with the License.
224 * You may obtain a copy of the License at
225 *
226 *   http://www.apache.org/licenses/LICENSE-2.0
227 *
228 * Unless required by applicable law or agreed to in writing, software
229 * distributed under the License is distributed on an "AS IS" BASIS,
230 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
231 * See the License for the specific language governing permissions and
232 * limitations under the License.
233 */const Bs="[DEFAULT]";/**
234 * @license
235 * Copyright 2019 Google LLC
236 *
237 * Licensed under the Apache License, Version 2.0 (the "License");
238 * you may not use this file except in compliance with the License.
239 * You may obtain a copy of the License at
240 *
241 *   http://www.apache.org/licenses/LICENSE-2.0
242 *
243 * Unless required by applicable law or agreed to in writing, software
244 * distributed under the License is distributed on an "AS IS" BASIS,
245 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
246 * See the License for the specific language governing permissions and
247 * limitations under the License.
248 */let l6=class{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new Wz;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const o=this.getOrInitializeService({instanceIdentifier:n});o&&r.resolve(o)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),o=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(i){if(o)return null;throw i}else{if(o)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(c6(t))try{this.getOrInitializeService({instanceIdentifier:Bs})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const o=this.normalizeInstanceIdentifier(n);try{const i=this.getOrInitializeService({instanceIdentifier:o});r.resolve(i)}catch{}}}}clearInstance(t=Bs){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Bs){return this.instances.has(t)}getOptions(t=Bs){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const o=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[i,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(i);r===a&&s.resolve(o)}return o}onInit(t,n){var r;const o=this.normalizeInstanceIdentifier(n),i=(r=this.onInitCallbacks.get(o))!==null&&r!==void 0?r:new Set;i.add(t),this.onInitCallbacks.set(o,i);const s=this.instances.get(o);return s&&t(s,o),()=>{i.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const o of r)try{o(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:u6(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=Bs){return this.component?this.component.multipleInstances?t:Bs:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function u6(e){return e===Bs?void 0:e}function c6(e){return e.instantiationMode==="EAGER"}/**
249 * @license
250 * Copyright 2019 Google LLC
251 *
252 * Licensed under the Apache License, Version 2.0 (the "License");
253 * you may not use this file except in compliance with the License.
254 * You may obtain a copy of the License at
255 *
256 *   http://www.apache.org/licenses/LICENSE-2.0
257 *
258 * Unless required by applicable law or agreed to in writing, software
259 * distributed under the License is distributed on an "AS IS" BASIS,
260 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
261 * See the License for the specific language governing permissions and
262 * limitations under the License.
263 */class d6{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new l6(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
264 * @license
265 * Copyright 2017 Google LLC
266 *
267 * Licensed under the Apache License, Version 2.0 (the "License");
268 * you may not use this file except in compliance with the License.
269 * You may obtain a copy of the License at
270 *
271 *   http://www.apache.org/licenses/LICENSE-2.0
272 *
273 * Unless required by applicable law or agreed to in writing, software
274 * distributed under the License is distributed on an "AS IS" BASIS,
275 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
276 * See the License for the specific language governing permissions and
277 * limitations under the License.
278 */var St;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(St||(St={}));const f6={debug:St.DEBUG,verbose:St.VERBOSE,info:St.INFO,warn:St.WARN,error:St.ERROR,silent:St.SILENT},p6=St.INFO,h6={[St.DEBUG]:"log",[St.VERBOSE]:"log",[St.INFO]:"info",[St.WARN]:"warn",[St.ERROR]:"error"},m6=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),o=h6[t];if(o)console[o](`[${r}]  ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};let vw=class{constructor(t){this.name=t,this._logLevel=p6,this._logHandler=m6,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in St))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?f6[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,St.DEBUG,...t),this._logHandler(this,St.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,St.VERBOSE,...t),this._logHandler(this,St.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,St.INFO,...t),this._logHandler(this,St.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,St.WARN,...t),this._logHandler(this,St.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,St.ERROR,...t),this._logHandler(this,St.ERROR,...t)}};const g6=(e,t)=>t.some(n=>e instanceof n);let rC,oC;function v6(){return rC||(rC=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function y6(){return oC||(oC=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const _2=new WeakMap,py=new WeakMap,R2=new WeakMap,wg=new WeakMap,yw=new WeakMap;function b6(e){const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{n(cs(e.result)),o()},s=()=>{r(e.error),o()};e.addEventListener("success",i),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&_2.set(n,e)}).catch(()=>{}),yw.set(t,e),t}function w6(e){if(py.has(e))return;const t=new Promise((n,r)=>{const o=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{n(),o()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)});py.set(e,t)}let hy={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return py.get(e);if(t==="objectStoreNames")return e.objectStoreNames||R2.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return cs(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function x6(e){hy=e(hy)}function S6(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(xg(this),t,...n);return R2.set(r,t.sort?t.sort():[t]),cs(r)}:y6().includes(e)?function(...t){return e.apply(xg(this),t),cs(_2.get(this))}:function(...t){return cs(e.apply(xg(this),t))}}function C6(e){return typeof e=="function"?S6(e):(e instanceof IDBTransaction&&w6(e),g6(e,v6())?new Proxy(e,hy):e)}function cs(e){if(e instanceof IDBRequest)return b6(e);if(wg.has(e))return wg.get(e);const t=C6(e);return t!==e&&(wg.set(e,t),yw.set(t,e)),t}const xg=e=>yw.get(e);function _6(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const s=indexedDB.open(e,t),a=cs(s);return r&&s.addEventListener("upgradeneeded",l=>{r(cs(s.result),l.oldVersion,l.newVersion,cs(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),o&&l.addEventListener("versionchange",u=>o(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const R6=["get","getKey","getAll","getAllKeys","count"],E6=["put","add","delete","clear"],Sg=new Map;function iC(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Sg.get(t))return Sg.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=E6.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(o||R6.includes(n)))return;const i=async function(s,...a){const l=this.transaction(s,o?"readwrite":"readonly");let u=l.store;
278return r&&(u=u.index(a.shift())),(await Promise.all([u[n](...a),o&&l.done]))[0]};return Sg.set(t,i),i}x6(e=>({...e,get:(t,n,r)=>iC(t,n)||e.get(t,n,r),has:(t,n)=>!!iC(t,n)||e.has(t,n)}));/**
279 * @license
280 * Copyright 2019 Google LLC
281 *
282 * Licensed under the Apache License, Version 2.0 (the "License");
283 * you may not use this file except in compliance with the License.
284 * You may obtain a copy of the License at
285 *
286 *   http://www.apache.org/licenses/LICENSE-2.0
287 *
288 * Unless required by applicable law or agreed to in writing, software
289 * distributed under the License is distributed on an "AS IS" BASIS,
290 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
291 * See the License for the specific language governing permissions and
292 * limitations under the License.
293 */class T6{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(P6(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function P6(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const my="@firebase/app",sC="0.10.13";/**
294 * @license
295 * Copyright 2019 Google LLC
296 *
297 * Licensed under the Apache License, Version 2.0 (the "License");
298 * you may not use this file except in compliance with the License.
299 * You may obtain a copy of the License at
300 *
301 *   http://www.apache.org/licenses/LICENSE-2.0
302 *
303 * Unless required by applicable law or agreed to in writing, software
304 * distributed under the License is distributed on an "AS IS" BASIS,
305 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
306 * See the License for the specific language governing permissions and
307 * limitations under the License.
308 */const gi=new vw("@firebase/app"),k6="@firebase/app-compat",I6="@firebase/analytics-compat",M6="@firebase/analytics",D6="@firebase/app-check-compat",A6="@firebase/app-check",j6="@firebase/auth",O6="@firebase/auth-compat",N6="@firebase/database",L6="@firebase/data-connect",F6="@firebase/database-compat",$6="@firebase/functions",z6="@firebase/functions-compat",V6="@firebase/installations",B6="@firebase/installations-compat",H6="@firebase/messaging",U6="@firebase/messaging-compat",G6="@firebase/performance",W6="@firebase/performance-compat",K6="@firebase/remote-config",q6="@firebase/remote-config-compat",Y6="@firebase/storage",X6="@firebase/storage-compat",J6="@firebase/firestore",Q6="@firebase/vertexai-preview",Z6="@firebase/firestore-compat",e8="firebase",t8="10.14.1";/**
309 * @license
310 * Copyright 2019 Google LLC
311 *
312 * Licensed under the Apache License, Version 2.0 (the "License");
313 * you may not use this file except in compliance with the License.
314 * You may obtain a copy of the License at
315 *
316 *   http://www.apache.org/licenses/LICENSE-2.0
317 *
318 * Unless required by applicable law or agreed to in writing, software
319 * distributed under the License is distributed on an "AS IS" BASIS,
320 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
321 * See the License for the specific language governing permissions and
322 * limitations under the License.
323 */const gy="[DEFAULT]",n8={[my]:"fire-core",[k6]:"fire-core-compat",[M6]:"fire-analytics",[I6]:"fire-analytics-compat",[A6]:"fire-app-check",[D6]:"fire-app-check-compat",[j6]:"fire-auth",[O6]:"fire-auth-compat",[N6]:"fire-rtdb",[L6]:"fire-data-connect",[F6]:"fire-rtdb-compat",[$6]:"fire-fn",[z6]:"fire-fn-compat",[V6]:"fire-iid",[B6]:"fire-iid-compat",[H6]:"fire-fcm",[U6]:"fire-fcm-compat",[G6]:"fire-perf",[W6]:"fire-perf-compat",[K6]:"fire-rc",[q6]:"fire-rc-compat",[Y6]:"fire-gcs",[X6]:"fire-gcs-compat",[J6]:"fire-fst",[Z6]:"fire-fst-compat",[Q6]:"fire-vertex","fire-js":"fire-js",[e8]:"fire-js-all"};/**
324 * @license
325 * Copyright 2019 Google LLC
326 *
327 * Licensed under the Apache License, Version 2.0 (the "License");
328 * you may not use this file except in compliance with the License.
329 * You may obtain a copy of the License at
330 *
331 *   http://www.apache.org/licenses/LICENSE-2.0
332 *
333 * Unless required by applicable law or agreed to in writing, software
334 * distributed under the License is distributed on an "AS IS" BASIS,
335 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
336 * See the License for the specific language governing permissions and
337 * limitations under the License.
338 */const Sp=new Map,r8=new Map,vy=new Map;function aC(e,t){try{e.container.addComponent(t)}catch(n){gi.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function fa(e){const t=e.name;if(vy.has(t))return gi.debug(`There were multiple attempts to register component ${t}.`),!1;vy.set(t,e);for(const n of Sp.values())aC(n,e);for(const n of r8.values())aC(n,e);return!0}function Wh(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Qo(e){return e.settings!==void 0}/**
339 * @license
340 * Copyright 2019 Google LLC
341 *
342 * Licensed under the Apache License, Version 2.0 (the "License");
343 * you may not use this file except in compliance with the License.
344 * You may obtain a copy of the License at
345 *
346 *   http://www.apache.org/licenses/LICENSE-2.0
347 *
348 * Unless required by applicable law or agreed to in writing, software
349 * distributed under the License is distributed on an "AS IS" BASIS,
350 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
351 * See the License for the specific language governing permissions and
352 * limitations under the License.
353 */const o8={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
353d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},ds=new sd("app","Firebase",o8);/**
354 * @license
355 * Copyright 2019 Google LLC
356 *
357 * Licensed under the Apache License, Version 2.0 (the "License");
358 * you may not use this file except in compliance with the License.
359 * You may obtain a copy of the License at
360 *
361 *   http://www.apache.org/licenses/LICENSE-2.0
362 *
363 * Unless required by applicable law or agreed to in writing, software
364 * distributed under the License is distributed on an "AS IS" BASIS,
365 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
366 * See the License for the specific language governing permissions and
367 * limitations under the License.
368 */class i8{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new bs("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw ds.create("app-deleted",{appName:this._name})}}/**
369 * @license
370 * Copyright 2019 Google LLC
371 *
372 * Licensed under the Apache License, Version 2.0 (the "License");
373 * you may not use this file except in compliance with the License.
374 * You may obtain a copy of the License at
375 *
376 *   http://www.apache.org/licenses/LICENSE-2.0
377 *
378 * Unless required by applicable law or agreed to in writing, software
379 * distributed under the License is distributed on an "AS IS" BASIS,
380 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
381 * See the License for the specific language governing permissions and
382 * limitations under the License.
383 */const au=t8;function E2(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:gy,automaticDataCollectionEnabled:!1},t),o=r.name;if(typeof o!="string"||!o)throw ds.create("bad-app-name",{appName:String(o)});if(n||(n=S2()),!n)throw ds.create("no-options");const i=Sp.get(o);if(i){if(xp(n,i.options)&&xp(r,i.config))return i;throw ds.create("duplicate-app",{appName:o})}const s=new d6(o);for(const l of vy.values())s.addComponent(l);const a=new i8(n,r,s);return Sp.set(o,a),a}function bw(e=gy){const t=Sp.get(e);if(!t&&e===gy&&S2())return E2();if(!t)throw ds.create("no-app",{appName:e});return t}function Do(e,t,n){var r;let o=(r=n8[e])!==null&&r!==void 0?r:e;n&&(o+=`-${n}`);const i=o.match(/\s|\//),s=t.match(/\s|\//);if(i||s){const a=[`Unable to register library "${o}" with version "${t}":`];i&&a.push(`library name "${o}" contains illegal characters (whitespace or "/")`),i&&s&&a.push("and"),s&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),gi.warn(a.join(" "));return}fa(new bs(`${o}-version`,()=>({library:o,version:t}),"VERSION"))}/**
384 * @license
385 * Copyright 2021 Google LLC
386 *
387 * Licensed under the Apache License, Version 2.0 (the "License");
388 * you may not use this file except in compliance with the License.
389 * You may obtain a copy of the License at
390 *
391 *   http://www.apache.org/licenses/LICENSE-2.0
392 *
393 * Unless required by applicable law or agreed to in writing, softw
393are
394 * distributed under the License is distributed on an "AS IS" BASIS,
395 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
396 * See the License for the specific language governing permissions and
397 * limitations under the License.
398 */const s8="firebase-heartbeat-database",a8=1,Nc="firebase-heartbeat-store";let Cg=null;function T2(){return Cg||(Cg=_6(s8,a8,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Nc)}catch(n){console.warn(n)}}}}).catch(e=>{throw ds.create("idb-open",{originalErrorMessage:e.message})})),Cg}async function l8(e){try{const n=(await T2()).transaction(Nc),r=await n.objectStore(Nc).get(P2(e));return await n.done,r}catch(t){if(t instanceof Ti)gi.warn(t.message);else{const n=ds.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});gi.warn(n.message)}}}async function lC(e,t){try{const r=(await T2()).transaction(Nc,"readwrite");await r.objectStore(Nc).put(t,P2(e)),await r.done}catch(n){if(n instanceof Ti)gi.warn(n.message);else{const r=ds.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});gi.warn(r.message)}}}function P2(e){return`${e.name}!${e.options.appId}`}/**
399 * @license
400 * Copyright 2021 Google LLC
401 *
402 * Licensed under the Apache License, Version 2.0 (the "License");
403 * you may not use this file except in compliance with the License.
404 * You may obtain a copy of the License at
405 *
406 *   http://www.apache.org/licenses/LICENSE-2.0
407 *
408 * Unless required by applicable law or agreed to in writing, software
409 * distributed under the License is distributed on an "AS IS" BASIS,
410 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
411 * See the License for the specific language governing permissions and
412 * limitations under the License.
413 */const u8=1024,c8=30*24*60*60*1e3;class d8{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new p8(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const o=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),i=uC();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===i||this._heartbeatsCache.heartbeats.some(s=>s.date===i)?void 0:(this._heartbeatsCache.heartbeats.push({date:i,agent:o}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const a=new Date(s.date).valueOf();return Date.now()-a<=c8}),this._storage.overwrite(this._heartbeatsCache))}catch(r){gi.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=uC(),{heartbeatsToSend:r,unsentEntries:o}=f8(this._heartbeatsCache.heartbeats),i=wp(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(n){return gi.warn(n),""}}}function uC(){return new Date().toISOString().substring(0,10)}function f8(e,t=u8){const n=[];let r=e.slice();for(const o of e){const i=n.find(s=>s.agent===o.agent);if(i){if(i.dates.push(o.date),cC(n)>t){i.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),cC(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class p8{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return Zz()?e6().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await l8(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return lC(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const o=await this.read();return lC(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:o.lastSentHeartbeatDate,heartbeats:[...o.heartbeats,...t.heartbeats]})}else return}}function cC(e){return wp(JSON.stringify({version:2,heartbeats:e})).length}/**
414 * @license
415 * Copyright 2019 Google LLC
416 *
417 * Licensed under the Apache License, Version 2.0 (the "License");
418 * you may not use this file except in compliance with the License.
419 * You may obtain a copy of the License at
420 *
421 *   http://www.apache.org/licenses/LICENSE-2.0
422 *
423 * Unless required by applicable law or agreed to in writing, software
424 * distributed under the License is distributed on an "AS IS" BASIS,
425 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
426 * See the License for the specific language governing permissions and
427 * limitations under the License.
428 */function h8(e){fa(new bs("platform-logger",t=>new T6(t),"PRIVATE")),fa(new bs("heartbeat",t=>new d8(t),"PRIVATE")),Do(my,sC,e),Do(my,sC,"esm2017"),Do("fire-js","")}h8("");var m8="firebase",g8="10.14.1";/**
429 * @license
430 * Copyright 2020 Google LLC
431 *
432 * Licensed under the Apache License, Version 2.0 (the "License");
433 * you may not use this file except in compliance with the License.
434 * You may obtain a copy of the License at
435 *
436 *   http://www.apache.org/licenses/LICENSE-2.0
437 *
438 * Unless required by applicable law or agreed to in writing, software
439 * distributed under the License is distributed on an "AS IS" BASIS,
440 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
441 * See the License for the specific language governing permissions and
442 * limitations under the License.
443 */Do(m8,g8,"app");function k2(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const v8=k2,I2=new sd("auth","Firebase",k2());/**
444 * @license
445 * Copyright 2020 Google LLC
446 *
447 * Licensed under the Apache License, Version 2.0 (the "License");
448 * you may not use this file except in compliance with the License.
449 * You may obtain a copy of the License at
450 *
451 *   http://www.apache.org/licenses/LICENSE-2.0
452 *
453 * Unless required by applicable law or agreed to in writing, software
454 * distributed under the License is distributed on an "AS IS" BASIS,
455 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
456 * See the License for the specific language governing permissions and
457 * limitations under the License.
458 */const Cp=new vw("@firebase/auth");function y8(e,...t){Cp.logLevel<=St.WARN&&Cp.warn(`Auth (${au}): ${e}`,...t)}function Mf(e,...t){Cp.logLevel<=St.ERROR&&Cp.error(`Auth (${au}): ${e}`,...t)}/**
459 * @license
460 * Copyright 2020 Google LLC
461 *
462 * Licensed under the Apache License, Version 2.0 (the "License");
463 * you may not use this file except in compliance with the License.
464 * You may obtain a copy of the License at
465 *
466 *   http://www.apache.org/licenses/LICENSE-2.0
467 *
468 * Unless required by applicable law or agreed to in writing, software
469 * distributed under the License is distributed on an "AS IS" BASIS,
470 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
471 * See the License for the specific language governing permissions and
472 * limitations under the License.
473 */function ho(e,...t){throw ww(e,...t)}function Ao(e,...t){return ww(e,...t)}function M2(e,t,n){const r=Object.assign(Object.assign({},v8()),{[t]:n});return new sd("auth","Firebase",r).create(t,{appName:e.name})}function fs(e){return M2(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function ww(e,...t){if(typeof e!="string"){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return I2.create(e,...t)}function Ye(e,t,...n){if(!e)throw ww(t,...n)}function Zo(e){const t="INTERNAL ASSERTION FAILED: "+e;throw Mf(t),new Error(t)}function vi(e,t){e||Zo(t)}/**
474 * @license
475 * Copyright 2020 Google LLC
476 *
477 * Licensed under the Apache License, Version 2.0 (the "License");
478 * you may not use this file except in compliance with the License.
479 * You may obtain a copy of the License at
480 *
481 *   http://www.apache.org/licenses/LICENSE-2.0
482 *
483 * Unless required by applicable law or agreed to in writing, software
484 * distributed under the License is distributed on an "AS IS" BASIS,
485 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
486 * See the License for the specific language governing permissions and
487 * limitations under the License.
488 */function yy(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.href)||""}function b8(){return dC()==="http:"||dC()==="https:"}function dC(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.protocol)||null}/**
489 * @license
490 * Copyright 2020 Google LLC
491 *
492 * Licensed under the Apache License, Version 2.0 (the "License");
493 * you may not use this file except in compliance with the License.
494 * You may obtain a copy of the License at
495 *
496 *   http://www.apache.org/licenses/LICENSE-2.0
497 *
498 * Unless required by applicable law or agreed to in writing, software
499 * distributed under the License is distributed on an "AS IS" BASIS,
500 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
501 * See the License for the specific language governing permissions and
502 * limitations under the License.
503 */function w8(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(b8()||Xz()||"connection"in navigator)?navigator.onLine:!0}function x8(){if(typeof navigator>"u")return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}/**
504 * @license
505 * Copyright 2020 Google LLC
506 *
507 * Licensed under the Apache License, Version 2.0 (the "License");
508 * you may not use this file except in compliance with the License.
509 * You may obtain a copy of the License at
510 *
511 *   http://www.apache.org/licenses/LICENSE-2.0
512 *
513 * Unless required by applicable law or agreed to in writing, software
514 * distributed under the License is distributed on an "AS IS" BASIS,
515 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
516 * See the License for the specific language governing permissions and
517 * limitations under the License.
518 */class ld{constructor(t,n){this.shortDelay=t,this.longDelay=n,vi(n>t,"Short delay should be less than long delay!"),this.isMobile=qz()||Jz()}get(){return w8()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
519 * @license
520 * Copyright 2020 Google LLC
521 *
522 * Licensed under the Apache License, Version 2.0 (the "License");
523 * you may not use this file except in compliance with the License.
524 * You may obtain a copy of the License at
525 *
526 *   http://www.apache.org/licenses/LICENSE-2.0
527 *
528 * Unless required by applicable law or agreed to in writing, software
529 * distributed under the License is distributed on an "AS IS" BASIS,
530 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
531 * See the License for the specific language governing permissions and
532 * limitations under the License.
533 */function xw(e,t){vi(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}/**
534 * @license
535 * Copyright 2020 Google LLC
536 *
537 * Licensed under the Apache License, Version 2.0 (the "License");
538 * you may not use this file except in compliance with the License.
539 * You may obtain a copy of the License at
540 *
541 *   http://www.apache.org/licenses/LICENSE-2.0
542 *
543 * Unless required by applicable law or agreed to in writing, software
544 * distributed under the License is distributed on an "AS IS" BASIS,
545 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
546 * See the License for the specific language governing permissions and
547 * limitations under the License.
548 */class D2{static initialize(t,n,r){this.fetchImpl=t,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Zo("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Zo("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Zo("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
549 * @license
550 * Copyright 2020 Google LLC
551 *
552 * Licensed under the Apache License, Version 2.0 (the "License");
553 * you may not use this file except in compliance with the License.
554 * You may obtain a copy of the License at
555 *
556 *   http://www.apache.org/licenses/LICENSE-2.0
557 *
558 * Unless required by applicable law or agreed to in writing, software
559 * distributed under the License is distributed on an "AS IS" BASIS,
560 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
561 * See the License for the specific language governing permissions and
562 * limitations under the License.
563 */const S8={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/**
564 * @license
565 * Copyright 2020 Google LLC
566 *
567 * Licensed under the Apache License, Version 2.0 (the "License");
568 * you may not use this file except in compliance with the License.
569 * You may obtain a copy of the License at
570 *
571 *   http://www.apache.org/licenses/LICENSE-2.0
572 *
573 * Unless required by applicable law or agreed to in writing, software
574 * distributed under the License is distributed on an "AS IS" BASIS,
575 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
576 * See the License for the specific language governing permissions and
577 * limitations under the License.
578 */const C8=new ld(3e4,6e4);function Ms(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function ki(e,t,n,r,o={}){return A2(e,o,async()=>{let i={},s={};r&&(t==="GET"?s=r:i={body:JSON.stringify(r)});const a=ad(Object.assign({key:e.config.apiKey},s)).slice(1),l=await e._getAdditionalHeaders();l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode);const u=Object.assign({method:t,headers:l},i);return Yz()||(u.referrerPolicy="no-referrer"),D2.fetch()(j2(e,e.config.apiHost,n,a),u)})}async function A2(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},S8),t);try{const o=new R8(e),i=await Promise.race([n(),o.promise]);o.clearNetworkTimeout();const s=await i.json();if("needConfirmation"in s)throw Qd(e,"account-exists-with-different-credential",s);if(i.ok&&!("errorMessage"in s))return s;{const a=i.ok?s.errorMessage:s.error.message,[l,u]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw Qd(e,"credential-already-in-use",s);if(l==="EMAIL_EXISTS")throw Qd(e,"email-already-in-use",s);if(l==="USER_DISABLED")throw Qd(e,"user-disabled",s);const c=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(u)throw M2(e,c,u);ho(e,c)}}catch(o){if(o instanceof Ti)throw o;ho(e,"network-request-failed",{message:String(o)})}}async function Kh(e,t,n,r,o={}){const i=await ki(e,t,n,r,o);return"mfaPendingCredential"in i&&ho(e,"multi-factor-auth-required",{_serverResponse:i}),i}function j2(e,t,n,r){const o=`${t}${n}?${r}`;return e.config.emulator?xw(e.config,o):`${e.config.apiScheme}://${o}`}function _8(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class R8{constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Ao(this.auth,"network-request-failed")),C8.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}
578function Qd(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const o=Ao(e,t,r);return o.customData._tokenResponse=n,o}function fC(e){return e!==void 0&&e.enterprise!==void 0}class E8{constructor(t){if(this.siteKey="",this.recaptchaEnforcementState=[],t.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=t.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=t.recaptchaEnforcementState}getProviderEnforcementState(t){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const n of this.recaptchaEnforcementState)if(n.provider&&n.provider===t)return _8(n.enforcementState);return null}isProviderEnabled(t){return this.getProviderEnforcementState(t)==="ENFORCE"||this.getProviderEnforcementState(t)==="AUDIT"}}async function T8(e,t){return ki(e,"GET","/v2/recaptchaConfig",Ms(e,t))}/**
579 * @license
580 * Copyright 2020 Google LLC
581 *
582 * Licensed under the Apache License, Version 2.0 (the "License");
583 * you may not use this file except in compliance with the License.
584 * You may obtain a copy of the License at
585 *
586 *   http://www.apache.org/licenses/LICENSE-2.0
587 *
588 * Unless required by applicable law or agreed to in writing, software
589 * distributed under the License is distributed on an "AS IS" BASIS,
590 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
591 * See the License for the specific language governing permissions and
592 * limitations under the License.
593 */async function P8(e,t){return ki(e,"POST","/v1/accounts:delete",t)}async function O2(e,t){return ki(e,"POST","/v1/accounts:lookup",t)}/**
594 * @license
595 * Copyright 2020 Google LLC
596 *
597 * Licensed under the Apache License, Version 2.0 (the "License");
598 * you may not use this file except in compliance with the License.
599 * You may obtain a copy of the License at
600 *
601 *   http://www.apache.org/licenses/LICENSE-2.0
602 *
603 * Unless required by applicable law or agreed to in writing, software
604 * distributed under the License is distributed on an "AS IS" BASIS,
605 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
606 * See the License for the specific language governing permissions and
607 * limitations under the License.
608 */function cc(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function k8(e,t=!1){const n=Pi(e),r=await n.getIdToken(t),o=Sw(r);Ye(o&&o.exp&&o.auth_time&&o.iat,n.auth,"internal-error");const i=typeof o.firebase=="object"?o.firebase:void 0,s=i==null?void 0:i.sign_in_provider;return{claims:o,token:r,authTime:cc(_g(o.auth_time)),issuedAtTime:cc(_g(o.iat)),expirationTime:cc(_g(o.exp)),signInProvider:s||null,signInSecondFactor:(i==null?void 0:i.sign_in_second_factor)||null}}function _g(e){return Number(e)*1e3}function Sw(e){const[t,n,r]=e.split(".");if(t===void 0||n===void 0||r===void 0)return Mf("JWT malformed, contained fewer than 3 sections"),null;try{const o=b2(n);return o?JSON.parse(o):(Mf("Failed to decode base64 JWT payload"),null)}catch(o){return Mf("Caught error parsing JWT payload as JSON",o==null?void 0:o.toString()),null}}function pC(e){const t=Sw(e);return Ye(t,"internal-error"),Ye(typeof t.exp<"u","internal-error"),Ye(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}/**
609 * @license
610 * Copyright 2020 Google LLC
611 *
612 * Licensed under the Apache License, Version 2.0 (the "License");
613 * you may not use this file except in compliance with the License.
614 * You may obtain a copy of the License at
615 *
616 *   http://www.apache.org/licenses/LICENSE-2.0
617 *
618 * Unless required by applicable law or agreed to in writing, software
619 * distributed under the License is distributed on an "AS IS" BASIS,
620 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
621 * See the License for the specific language governing permissions and
622 * limitations under the License.
623 */async function Lc(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof Ti&&I8(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}function I8({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}/**
624 * @license
625 * Copyright 2020 Google LLC
626 *
627 * Licensed under the Apache License, Version 2.0 (the "License");
628 * you may not use this file except in compliance with the License.
629 * You may obtain a copy of the License at
630 *
631 *   http://www.apache.org/licenses/LICENSE-2.0
632 *
633 * Unless required by applicable law or agreed to in writing, software
634 * distributed under the License is distributed on an "AS IS" BASIS,
635 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
636 * See the License for the specific language governing permissions and
637 * limitations under the License.
638 */class M8{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(t){var n;if(t){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const o=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,o)}}schedule(t=!1){if(!this.isRunning)return;const n=this.getInterval(t);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){(t==null?void 0:t.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
639 * @license
640 * Copyright 2020 Google LLC
641 *
642 * Licensed under the Apache License, Version 2.0 (the "License");
643 * you may not use this file except in compliance with the License.
644 * You may obtain a copy of the License at
645 *
646 *   http://www.apache.org/licenses/LICENSE-2.0
647 *
648 * Unless required by applicable law or agreed to in writing, software
649 * distributed under the License is distributed on an "AS IS" BASIS,
650 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
651 * See the License for the specific language governing permissions and
652 * limitations under the License.
653 */class by{constructor(t,n){this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=cc(this.lastLoginAt),this.creationTime=cc(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
654 * @license
655 * Copyright 2019 Google LLC
656 *
657 * Licensed under the Apache License, Version 2.0 (the "License");
658 * you may not use this file except in compliance with the License.
659 * You may obtain a copy of the License at
660 *
661 *   http://www.apache.org/licenses/LICENSE-2.0
662 *
663 * Unless required by applicable law or agreed to in writing, software
664 * distributed under the License is distributed on an "AS IS" BASIS,
665 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
666 * See the License for the specific language governing permissions and
667 * limitations under the License.
668 */async function _p(e){var t;const n=e.auth,r=await e.getIdToken(),o=await Lc(e,O2(n,{idToken:r}));Ye(o==null?void 0:o.users.length,n,"internal-error");const i=o.users[0];e._notifyReloadListener(i);const s=!((t=i.providerUserInfo)===null||t===void 0)&&t.length?N2(i.providerUserInfo):[],a=A8(e.providerData,s),l=e.isAnonymous,u=!(e.email&&i.passwordHash)&&!(a!=null&&a.length),c=l?u:!1,d={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new by(i.createdAt,i.lastLoginAt),isAnonymous:c};Object.assign(e,d)}async function D8(e){const t=Pi(e);await _p(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function A8(e,t){return[...e.filter(r=>!t.some(o=>o.providerId===r.providerId)),...t]}function N2(e){return e.map(t=>{var{providerId:n}=t,r=Kc(t,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/**
669 * @license
670 * Copyright 2020 Google LLC
671 *
672 * Licensed under the Apache License, Version 2.0 (the "License");
673 * you may not use this file except in compliance with the License.
674 * You may obtain a copy of the License at
675 *
676 *   http://www.apache.org/licenses/LICENSE-2.0
677 *
678 * Unless required by applicable law or agreed to in writing, softw
678are
679 * distributed under the License is distributed on an "AS IS" BASIS,
680 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
681 * See the License for the specific language governing permissions and
682 * limitations under the License.
683 */async function j8(e,t){const n=await A2(e,{},async()=>{const r=ad({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:o,apiKey:i}=e.config,s=j2(e,o,"/v1/token",`key=${i}`),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",D2.fetch()(s,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function O8(e,t){return ki(e,"POST","/v2/accounts:revokeToken",Ms(e,t))}/**
684 * @license
685 * Copyright 2020 Google LLC
686 *
687 * Licensed under the Apache License, Version 2.0 (the "License");
688 * you may not use this file except in compliance with the License.
689 * You may obtain a copy of the License at
690 *
691 *   http://www.apache.org/licenses/LICENSE-2.0
692 *
693 * Unless required by applicable law or agreed to in writing, software
694 * distributed under the License is distributed on an "AS IS" BASIS,
695 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
696 * See the License for the specific language governing permissions and
697 * limitations under the License.
698 */class wl{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){Ye(t.idToken,"internal-error"),Ye(typeof t.idToken<"u","internal-error"),Ye(typeof t.refreshToken<"u","internal-error");const n="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):pC(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,n)}updateFromIdToken(t){Ye(t.length!==0,"internal-error");const n=pC(t);this.updateTokensAndExpiration(t,null,n)}async getToken(t,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(Ye(this.refreshToken,t,"user-token-expired"),this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(t,n){const{accessToken:r,refreshToken:o,expiresIn:i}=await j8(t,n);this.updateTokensAndExpiration(r,o,Number(i))}updateTokensAndExpiration(t,n,r){this.refreshToken=n||null,this.accessToken=t||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(t,n){const{refreshToken:r,accessToken:o,expirationTime:i}=n,s=new wl;return r&&(Ye(typeof r=="string","internal-error",{appName:t}),s.refreshToken=r),o&&(Ye(typeof o=="string","internal-error",{appName:t}),s.accessToken=o),i&&(Ye(typeof i=="number","internal-error",{appName:t}),s.expirationTime=i),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new wl,this.toJSON())}_performRefresh(){return Zo("not implemented")}}/**
699 * @license
700 * Copyright 2020 Google LLC
701 *
702 * Licensed under the Apache License, Version 2.0 (the "License");
703 * you may not use this file except in compliance with the License.
704 * You may obtain a copy of the License at
705 *
706 *   http://www.apache.org/licenses/LICENSE-2.0
707 *
708 * Unless required by applicable law or agreed to in writing, software
709 * distributed under the License is distributed on an "AS IS" BASIS,
710 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
711 * See the License for the specific language governing permissions and
712 * limitations under the License.
713 */function zi(e,t){Ye(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class ei{constructor(t){var{uid:n,auth:r,stsTokenManager:o}=t,i=Kc(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new M8(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=o,this.accessToken=o.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new by(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(t){const n=await Lc(this,this.stsTokenManager.getToken(this.auth,t));return Ye(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(t){return k8(this,t)}reload(){return D8(this)}_assign(t){this!==t&&(Ye(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map(n=>Object.assign({},n)),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const n=new ei(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(t){Ye(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,n=!1){let r=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),n&&await _p(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Qo(this.auth.app))return Promise.reject(fs(this.auth));const t=await this.getIdToken();return await Lc(this,P8(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
713nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(t=>Object.assign({},t)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,n){var r,o,i,s,a,l,u,c;const d=(r=n.displayName)!==null&&r!==void 0?r:void 0,f=(o=n.email)!==null&&o!==void 0?o:void 0,h=(i=n.phoneNumber)!==null&&i!==void 0?i:void 0,g=(s=n.photoURL)!==null&&s!==void 0?s:void 0,v=(a=n.tenantId)!==null&&a!==void 0?a:void 0,w=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,b=(u=n.createdAt)!==null&&u!==void 0?u:void 0,y=(c=n.lastLoginAt)!==null&&c!==void 0?c:void 0,{uid:x,emailVerified:R,isAnonymous:k,providerData:I,stsTokenManager:C}=n;Ye(x&&C,t,"internal-error");const _=wl.fromJSON(this.name,C);Ye(typeof x=="string",t,"internal-error"),zi(d,t.name),zi(f,t.name),Ye(typeof R=="boolean",t,"internal-error"),Ye(typeof k=="boolean",t,"internal-error"),zi(h,t.name),zi(g,t.name),zi(v,t.name),zi(w,t.name),zi(b,t.name),zi(y,t.name);const T=new ei({uid:x,auth:t,email:f,emailVerified:R,displayName:d,isAnonymous:k,photoURL:g,phoneNumber:h,tenantId:v,stsTokenManager:_,createdAt:b,lastLoginAt:y});return I&&Array.isArray(I)&&(T.providerData=I.map(P=>Object.assign({},P))),w&&(T._redirectEventId=w),T}static async _fromIdTokenResponse(t,n,r=!1){const o=new wl;o.updateFromServerResponse(n);const i=new ei({uid:n.localId,auth:t,stsTokenManager:o,isAnonymous:r});return await _p(i),i}static async _fromGetAccountInfoResponse(t,n,r){const o=n.users[0];Ye(o.localId!==void 0,"internal-error");const i=o.providerUserInfo!==void 0?N2(o.providerUserInfo):[],s=!(o.email&&o.passwordHash)&&!(i!=null&&i.length),a=new wl;a.updateFromIdToken(r);const l=new ei({uid:o.localId,auth:t,stsTokenManager:a,isAnonymous:s}),u={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:i,metadata:new by(o.createdAt,o.lastLoginAt),isAnonymous:!(o.email&&o.passwordHash)&&!(i!=null&&i.length)};return Object.assign(l,u),l}}/**
714 * @license
715 * Copyright 2020 Google LLC
716 *
717 * Licensed under the Apache License, Version 2.0 (the "License");
718 * you may not use this file except in compliance with the License.
719 * You may obtain a copy of the License at
720 *
721 *   http://www.apache.org/licenses/LICENSE-2.0
722 *
723 * Unless required by applicable law or agreed to in writing, software
724 * distributed under the License is distributed on an "AS IS" BASIS,
725 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
726 * See the License for the specific language governing permissions and
727 * limitations under the License.
728 */const hC=new Map;function ti(e){vi(e instanceof Function,"Expected a class definition");let t=hC.get(e);return t?(vi(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,hC.set(e,t),t)}/**
729 * @license
730 * Copyright 2019 Google LLC
731 *
732 * Licensed under the Apache License, Version 2.0 (the "License");
733 * you may not use this file except in compliance with the License.
734 * You may obtain a copy of the License at
735 *
736 *   http://www.apache.org/licenses/LICENSE-2.0
737 *
738 * Unless required by applicable law or agreed to in writing, software
739 * distributed under the License is distributed on an "AS IS" BASIS,
740 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
741 * See the License for the specific language governing permissions and
742 * limitations under the License.
743 */class L2{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,n){this.storage[t]=n}async _get(t){const n=this.storage[t];return n===void 0?null:n}async _remove(t){delete this.storage[t]}_addListener(t,n){}_removeListener(t,n){}}L2.type="NONE";const mC=L2;/**
744 * @license
745 * Copyright 2019 Google LLC
746 *
747 * Licensed under the Apache License, Version 2.0 (the "License");
748 * you may not use this file except in compliance with the License.
749 * You may obtain a copy of the License at
750 *
751 *   http://www.apache.org/licenses/LICENSE-2.0
752 *
753 * Unless required by applicable law or agreed to in writing, software
754 * distributed under the License is distributed on an "AS IS" BASIS,
755 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
756 * See the License for the specific language governing permissions and
757 * limitations under the License.
758 */function Df(e,t,n){return`firebase:${e}:${t}:${n}`}class xl{constructor(t,n,r){this.persistence=t,this.auth=n,this.userKey=r;const{config:o,name:i}=this.auth;this.fullUserKey=Df(this.userKey,o.apiKey,i),this.fullPersistenceKey=Df("persistence",o.apiKey,i),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);return t?ei._fromJSON(this.auth,t):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=t,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,n,r="authUser"){if(!n.length)return new xl(ti(mC),t,r);const o=(await Promise.all(n.map(async u=>{if(await u._isAvailable())return u}))).filter(u=>u);let i=o[0]||ti(mC);const s=Df(r,t.config.apiKey,t.name);let a=null;for(const u of n)try{const c=await u._get(s);if(c){const d=ei._fromJSON(t,c);u!==i&&(a=d),i=u;break}}catch{}const l=o.filter(u=>u._shouldAllowMigration);return!i._shouldAllowMigration||!l.length?new xl(i,t,r):(i=l[0],a&&await i._set(s,a.toJSON()),await Promise.all(n.map(async u=>{if(u!==i)try{await u._remove(s)}catch{}})),new xl(i,t,r))}}/**
759 * @license
760 * Copyright 2020 Google LLC
761 *
762 * Licensed under the Apache License, Version 2.0 (the "License");
763 * you may not use this file except in compliance with the License.
764 * You may obtain a copy of the License at
765 *
766 *   http://www.apache.org/licenses/LICENSE-2.0
767 *
768 * Unless required by applicable law or agreed to in writing, software
769 * distributed under the License is distributed on an "AS IS" BASIS,
770 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
771 * See the License for the specific language governing permissions and
772 * limitations under the License.
773 */function gC(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(V2(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(F2(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(H2(t))return"Blackberry";if(U2(t))return"Webos";if($2(t))return"Safari";if((t.includes("chrome/")||z2(t))&&!t.includes("edge/"))return"Chrome";if(B2(t))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=e.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function F2(e=Kn()){return/firefox\//i.test(e)}function $2(e=Kn()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function z2(e=Kn()){return/crios\//i.test(e)}function V2(e=Kn()){return/iemobile/i.test(e)}function B2(e=Kn()){return/android/i.test(e)}function H2(e=Kn()){return/blackberry/i.test(e)}function U2(e=Kn()){return/webos/i.test(e)}function Cw(e=Kn()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function N8(e=Kn()){var t;return Cw(e)&&!!(!((t=window.navigator)===null||t===void 0)&&t.standalone)}function L8(){return Qz()&&document.documentMode===10}function G2(e=Kn()){return Cw(e)||B2(e)||U2(e)||H2(e)||/windows phone/i.test(e)||V2(e)}/**
774 * @license
775 * Copyright 2020 Google LLC
776 *
777 * Licensed under the Apache License, Version 2.0 (the "License");
778 * you may not use this file except in compliance with the License.
779 * You may obtain a copy of the License at
780 *
781 *   http://www.apache.org/licenses/LICENSE-2.0
782 *
783 * Unless required by applicable law or agreed to in writing, software
784 * distributed under the License is distributed on an "AS IS" BASIS,
785 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
786 * See the License for the specific language governing permissions and
787 * limitations under the License.
788 */function W2(e,t=[]){let n;switch(e){case"Browser":n=gC(Kn());break;case"Worker":n=`${gC(Kn())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${au}/${r}`}/**
789 * @license
790 * Copyright 2022 Google LLC
791 *
792 * Licensed under the Apache License, Version 2.0 (the "License");
793 * you may not use this file except in compliance with the License.
794 * You may obtain a copy of the License at
795 *
796 *   http://www.apache.org/licenses/LICENSE-2.0
797 *
798 * Unless required by applicable law or agreed to in writing, software
799 * distributed under the License is distributed on an "AS IS" BASIS,
800 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
801 * See the License for the specific language governing permissions and
802 * limitations under the License.
803 */class F8{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,n){const r=i=>new Promise((s,a)=>{try{const l=t(i);s(l)}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const o=this.queue.length-1;return()=>{this.queue[o]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const n=[];try{for(const r of this.queue)await r(t),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const o of n)try{o()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/**
804 * @license
805 * Copyright 2023 Google LLC
806 *
807 * Licensed under the Apache License, Version 2.0 (the "License");
808 * you may not use this file except in compliance with the License.
809 * You may obtain a copy of the License at
810 *
811 *   http://www.apache.org/licenses/LICENSE-2.0
812 *
813 * Unless required by applicable law or agreed to in writing, software
814 * distributed under the License is distributed on an "AS IS" BASIS,
815 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
816 * See the License for the specific language governing permissions and
817 * limitations under the License.
818 */async function $8(e,t={}){return ki(e,"GET","/v2/passwordPolicy",Ms(e,t))}/**
819 * @license
820 * Copyright 2023 Google LLC
821 *
822 * Licensed under the Apache License, Version 2.0 (the "License");
823 * you may not use this file except in compliance with the License.
824 * You may obtain a copy of the License at
825 *
826 *   http://www.apache.org/licenses/LICENSE-2.0
827 *
828 * Unless required by applicable law or agreed to in writing, software
829 * distributed under the License is distributed on an "AS IS" BASIS,
830 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
831 * See the License for the specific language governing permissions and
832 * limitations under the License.
833 */const z8=6;class V8{constructor(t){var n,r,o,i;const s=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=s.minPasswordLength)!==null&&n!==void 0?n:z8,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),s.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),s.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),s.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),s.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(o=(r=t.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&o!==void 0?o:"",this.forceUpgradeOnSignin=(i=t.forceUpgradeOnSignin)!==null&&i!==void 0?i:!1,this.schemaVersion=t.schemaVersion}validatePassword(t){var n,r,o,i,s,a;const l={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(t,l),this.validatePasswordCharacterOptions(t,l),l.isValid&&
833(l.isValid=(n=l.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),l.isValid&&(l.isValid=(r=l.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),l.isValid&&(l.isValid=(o=l.containsLowercaseLetter)!==null&&o!==void 0?o:!0),l.isValid&&(l.isValid=(i=l.containsUppercaseLetter)!==null&&i!==void 0?i:!0),l.isValid&&(l.isValid=(s=l.containsNumericCharacter)!==null&&s!==void 0?s:!0),l.isValid&&(l.isValid=(a=l.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),l}validatePasswordLengthOptions(t,n){const r=this.customStrengthOptions.minPasswordLength,o=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=t.length>=r),o&&(n.meetsMaxPasswordLength=t.length<=o)}validatePasswordCharacterOptions(t,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let o=0;o<t.length;o++)r=t.charAt(o),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(t,n,r,o,i){this.customStrengthOptions.containsLowercaseLetter&&(t.containsLowercaseLetter||(t.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(t.containsUppercaseLetter||(t.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(t.containsNumericCharacter||(t.containsNumericCharacter=o)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(t.containsNonAlphanumericCharacter||(t.containsNonAlphanumericCharacter=i))}}/**
834 * @license
835 * Copyright 2020 Google LLC
836 *
837 * Licensed under the Apache License, Version 2.0 (the "License");
838 * you may not use this file except in compliance with the License.
839 * You may obtain a copy of the License at
840 *
841 *   http://www.apache.org/licenses/LICENSE-2.0
842 *
843 * Unless required by applicable law or agreed to in writing, software
844 * distributed under the License is distributed on an "AS IS" BASIS,
845 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
846 * See the License for the specific language governing permissions and
847 * limitations under the License.
848 */class B8{constructor(t,n,r,o){this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=o,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new vC(this),this.idTokenSubscription=new vC(this),this.beforeStateQueue=new F8(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=I2,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=o.sdkClientVersion}_initializeWithPersistence(t,n){return n&&(this._popupRedirectResolver=ti(n)),this._initializationPromise=this.queue(async()=>{var r,o;if(!this._deleted&&(this.persistenceManager=await xl.create(this,t),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((o=this.currentUser)===null||o===void 0?void 0:o.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!t)){if(this.currentUser&&t&&this.currentUser.uid===t.uid){this._currentUser._assign(t),await this.currentUser.getIdToken();return}await this._updateCurrentUser(t,!0)}}async initializeCurrentUserFromIdToken(t){try{const n=await O2(this,{idToken:t}),r=await ei._fromGetAccountInfoResponse(this,n,t);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(t){var n;if(Qo(this.app)){const s=this.app.settings.authIdToken;return s?new Promise(a=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(s).then(a,a))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let o=r,i=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const s=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=o==null?void 0:o._redirectEventId,l=await this.tryRedirectSignIn(t);(!s||s===a)&&(l!=null&&l.user)&&(o=l.user,i=!0)}if(!o)return this.directlySetCurrentUser(null);
848if(!o._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(o)}catch(s){o=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return o?this.reloadAndSetCurrentUserOrClear(o):this.directlySetCurrentUser(null)}return Ye(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===o._redirectEventId?this.directlySetCurrentUser(o):this.reloadAndSetCurrentUserOrClear(o)}async tryRedirectSignIn(t){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(t){try{await _p(t)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=x8()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(Qo(this.app))return Promise.reject(fs(this));const n=t?Pi(t):null;return n&&Ye(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(t,n=!1){if(!this._deleted)return t&&Ye(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(t),this.queue(async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()})}async signOut(){return Qo(this.app)?Promise.reject(fs(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return Qo(this.app)?Promise.reject(fs(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(ti(t))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(t){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(t)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const t=await $8(this),n=new V8(t);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(t){this._errorFactory=new sd("auth","Firebase",t())}onAuthStateChanged(t,n,r){return this.registerStateListener(this.authStateSubscription,t,n,r)}beforeAuthStateChanged(t,n){return this.beforeStateQueue.pushCallback(t,n)}onIdTokenChanged(t,n,r){return this.registerStateListener(this.idTokenSubscription,t,n,r)}authStateReady(){return new Promise((t,n)=>{if(this.currentUser)t();else{const r=this.onAuthStateChanged(()=>{r(),t()},n)}})}async revokeAccessToken(t){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await O8(this,r)}}toJSON(){var t;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(t=this._currentUser)===null||t===void 0?void 0:t.toJSON()}}async _setRedirectUser(t,n){const r=await this.getOrInitRedirectPersistenceManager(n);return t===null?r.removeCurrentUser():r.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const n=t&&ti(t)||this._popupRedirectResolver;Ye(n,this,"argument-error"),this.redirectPersistenceManager=await xl.create(this,[ti(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===t?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(t))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var t,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(t=this.currentUser)===null||t===void 0?void 0:t.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,n,r,o){if(this._deleted)return()=>{};const i=typeof n=="function"?n:n.next.bind(n);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ye(a,this,"internal-error"),a.then(()=>{s||i(this.currentUser)}),typeof n=="function"){const l=t.addObserver(n,r,o);return()=>{s=!0,l()}}else{const l=t.addObserver(n);return()=>{s=!0,l()}}}async directlySetCurrentUser(t){this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,t?await this.assertedPersistence.setCurrentUser(t):await this.assertedPersistence.removeCurrentUser()}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return Ye(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=W2(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var t;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((t=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const o=await this._getAppCheckToken();return o&&(n["X-Firebase-AppCheck"]=o),n}async _getAppCheckToken(){var t;const n=await((t=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getToken());return n!=null&&n.error&&y8(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function Pa(e){return Pi(e)}class vC{constructor(t){this.auth=t,this.observer=null,this.addObserver=i6(n=>this.observer=n)}get next(){return Ye(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
849 * @license
850 * Copyright 2020 Google LLC
851 *
852 * Licensed under the Apache License, Version 2.0 (the "License");
853 * you may not use this file except in compliance with the License.
854 * You may obtain a copy of the License at
855 *
856 *   http://www.apache.org/licenses/LICENSE-2.0
857 *
858 * Unless required by applicable law or agreed to in writing, software
859 * distributed under the License is distributed on an "AS IS" BASIS,
860 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
861 * See the License for the specific language governing permissions and
862 * limitations under the License.
863 */let qh={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function H8(e){qh=e}function K2(e){return qh.loadJS(e)}function U8(){return qh.recaptchaEnterpriseScript}function G8(){return qh.gapiScript}function W8(e){return`__${e}${Math.floor(Math.random()*1e6)}`}const K8="recaptcha-enterprise",q8="NO_RECAPTCHA";class Y8{constructor(t){this.type=K8,this.auth=Pa(t)}async verify(t="verify",n=!1){async function r(i){if(!n){if(i.tenantId==null&&i._agentRecaptchaConfig!=null)return i._agentRecaptchaConfig.siteKey;if(i.tenantId!=null&&i._tenantRecaptchaConfigs[i.tenantId]!==void 0)return i._tenantRecaptchaConfigs[i.tenantId].siteKey}return new Promise(async(s,a)=>{T8(i,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(l=>{if(l.recaptchaKey===void 0)a(new Error("recaptcha Enterprise site key undefined"));else{const u=new E8(l);return i.tenantId==null?i._agentRecaptchaConfig=u:i._tenantRecaptchaConfigs[i.tenantId]=u,s(u.siteKey)}}).catch(l=>{a(l)})})}function o(i,s,a){const l=window.grecaptcha;fC(l)?l.enterprise.ready(()=>{l.enterprise.execute(i,{action:t}).then(u=>{s(u)}).catch(()=>{s(q8)})}):a(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((i,s)=>{r(this.auth).then(a=>{if(!n&&fC(window.grecaptcha))o(a,i,s);else{if(typeof window>"u"){s(new Error("RecaptchaVerifier is only supported in browser"));return}let l=U8();l.length!==0&&(l+=a),K2(l).then(()=>{o(a,i,s)}).catch(u=>{s(u)})}}).catch(a=>{s(a)})})}}async function yC(e,t,n,r=!1){const o=new Y8(e);let i;try{i=await o.verify(n)}catch{i=await o.verify(n,!0)}const s=Object.assign({},t);return r?Object.assign(s,{captchaResp:i}):Object.assign(s,{captchaResponse:i}),Object.assign(s,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(s,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),s}async function wy(e,t,n,r){var o;if(!((o=e._getRecaptchaConfig())===null||o===void 0)&&o.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await yC(e,t,n,n==="getOobCode");return r(e,i)}else return r(e,t).catch(async i=>{if(i.code==="auth/missing-recaptcha-token"){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const s=await yC(e,t,n,n==="getOobCode");return r(e,s)}else return Promise.reject(i)})}/**
864 * @license
865 * Copyright 2020 Google LLC
866 *
867 * Licensed under the Apache License, Version 2.0 (the "License");
868 * you may not use this file except in compliance with the License.
869 * You may obtain a copy of the License at
870 *
871 *   http://www.apache.org/licenses/LICENSE-2.0
872 *
873 * Unless required by applicable law or agreed to in writing, software
874 * distributed under the License is distributed on an "AS IS" BASIS,
875 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
876 * See the License for the specific language governing permissions and
877 * limitations under the License.
878 */function X8(e,t){const n=Wh(e,"auth");if(n.isInitialized()){const o=n.getImmediate(),i=n.getOptions();if(xp(i,t??{}))return o;ho(o,"already-initialized")}return n.initialize({options:t})}function J8(e,t){const n=(t==null?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(ti);t!=null&&t.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t==null?void 0:t.popupRedirectResolver)}function Q8(e,t,n){const r=Pa(e);Ye(r._canInitEmulator,r,"emulator-config-failed"),Ye(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const o=!1,i=q2(t),{host:s,port:a}=Z8(t),l=a===null?"":`:${a}`;r.config.emulator={url:`${i}//${s}${l}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:a,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:o})}),eV()}function q2(e){const t=e.indexOf(":");
878return t<0?"":e.substr(0,t+1)}function Z8(e){const t=q2(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",o=/^(\[[^\]]+\])(:|$)/.exec(r);if(o){const i=o[1];return{host:i,port:bC(r.substr(i.length+1))}}else{const[i,s]=r.split(":");return{host:i,port:bC(s)}}}function bC(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function eV(){function e(){const t=document.createElement("p"),n=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())}/**
879 * @license
880 * Copyright 2020 Google LLC
881 *
882 * Licensed under the Apache License, Version 2.0 (the "License");
883 * you may not use this file except in compliance with the License.
884 * You may obtain a copy of the License at
885 *
886 *   http://www.apache.org/licenses/LICENSE-2.0
887 *
888 * Unless required by applicable law or agreed to in writing, software
889 * distributed under the License is distributed on an "AS IS" BASIS,
890 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
891 * See the License for the specific language governing permissions and
892 * limitations under the License.
893 */class _w{constructor(t,n){this.providerId=t,this.signInMethod=n}toJSON(){return Zo("not implemented")}_getIdTokenResponse(t){return Zo("not implemented")}_linkToIdToken(t,n){return Zo("not implemented")}_getReauthenticationResolver(t){return Zo("not implemented")}}async function tV(e,t){return ki(e,"POST","/v1/accounts:signUp",t)}/**
894 * @license
895 * Copyright 2020 Google LLC
896 *
897 * Licensed under the Apache License, Version 2.0 (the "License");
898 * you may not use this file except in compliance with the License.
899 * You may obtain a copy of the License at
900 *
901 *   http://www.apache.org/licenses/LICENSE-2.0
902 *
903 * Unless required by applicable law or agreed to in writing, software
904 * distributed under the License is distributed on an "AS IS" BASIS,
905 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
906 * See the License for the specific language governing permissions and
907 * limitations under the License.
908 */async function nV(e,t){return Kh(e,"POST","/v1/accounts:signInWithPassword",Ms(e,t))}async function rV(e,t){return ki(e,"POST","/v1/accounts:sendOobCode",Ms(e,t))}async function oV(e,t){return rV(e,t)}/**
909 * @license
910 * Copyright 2020 Google LLC
911 *
912 * Licensed under the Apache License, Version 2.0 (the "License");
913 * you may not use this file except in compliance with the License.
914 * You may obtain a copy of the License at
915 *
916 *   http://www.apache.org/licenses/LICENSE-2.0
917 *
918 * Unless required by applicable law or agreed to in writing, software
919 * distributed under the License is distributed on an "AS IS" BASIS,
920 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
921 * See the License for the specific language governing permissions and
922 * limitations under the License.
923 */async function iV(e,t){return Kh(e,"POST","/v1/accounts:signInWithEmailLink",Ms(e,t))}async function sV(e,t){return Kh(e,"POST","/v1/accounts:signInWithEmailLink",Ms(e,t))}/**
924 * @license
925 * Copyright 2020 Google LLC
926 *
927 * Licensed under the Apache License, Version 2.0 (the "License");
928 * you may not use this file except in compliance with the License.
929 * You may obtain a copy of the License at
930 *
931 *   http://www.apache.org/licenses/LICENSE-2.0
932 *
933 * Unless required by applicable law or agreed to in writing, software
934 * distributed under the License is distributed on an "AS IS" BASIS,
935 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
936 * See the License for the specific language governing permissions and
937 * limitations under the License.
938 */class Fc extends _w{constructor(t,n,r,o=null){super("password",r),this._email=t,this._password=n,this._tenantId=o}static _fromEmailAndPassword(t,n){return new Fc(t,n,"password")}static _fromEmailAndCode(t,n,r=null){return new Fc(t,n,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t;if(n!=null&&n.email&&(n!=null&&n.password)){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(t){switch(this.signInMethod){case"password":const n={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return wy(t,n,"signInWithPassword",nV);case"emailLink":return iV(t,{email:this._email,oobCode:this._password});default:ho(t,"internal-error")}}async _linkToIdToken(t,n){switch(this.signInMethod){case"password":const r={idToken:n,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return wy(t,r,"signUpPassword",tV);case"emailLink":return sV(t,{idToken:n,email:this._email,oobCode:this._password});default:ho(t,"internal-error")}}_getReauthenticationResolver(t){return this._getIdTokenResponse(t)}}/**
939 * @license
940 * Copyright 2020 Google LLC
941 *
942 * Licensed under the Apache License, Version 2.0 (the "License");
943 * you may not use this file except in compliance with the License.
944 * You may obtain a copy of the License at
945 *
946 *   http://www.apache.org/licenses/LICENSE-2.0
947 *
948 * Unless required by applicable law or agreed to in writing, software
949 * distributed under the License is distributed on an "AS IS" BASIS,
950 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
951 * See the License for the specific language governing permissions and
952 * limitations under the License.
953 */async function Sl(e,t){return Kh(e,"POST","/v1/accounts:signInWithIdp",Ms(e,t))}/**
954 * @license
955 * Copyright 2020 Google LLC
956 *
957 * Licensed under the Apache License, Version 2.0 (the "License");
958 * you may not use this file except in compliance with the License.
959 * You may obtain a copy of the License at
960 *
961 *   http://www.apache.org/licenses/LICENSE-2.0
962 *
963 * Unless required by applicable law or agreed to in writing, software
964 * distributed under the License is distributed on an "AS IS" BASIS,
965 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
966 * See the License for the specific language governing permissions and
967 * limitations under the License.
968 */const aV="http://localhost";class pa extends _w{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const n=new pa(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(n.idToken=t.idToken),t.accessToken&&(n.accessToken=t.accessToken),t.nonce&&!t.pendingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):ho("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
968once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t,{providerId:r,signInMethod:o}=n,i=Kc(n,["providerId","signInMethod"]);if(!r||!o)return null;const s=new pa(r,o);return s.idToken=i.idToken||void 0,s.accessToken=i.accessToken||void 0,s.secret=i.secret,s.nonce=i.nonce,s.pendingToken=i.pendingToken||null,s}_getIdTokenResponse(t){const n=this.buildRequest();return Sl(t,n)}_linkToIdToken(t,n){const r=this.buildRequest();return r.idToken=n,Sl(t,r)}_getReauthenticationResolver(t){const n=this.buildRequest();return n.autoCreate=!1,Sl(t,n)}buildRequest(){const t={requestUri:aV,returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),t.postBody=ad(n)}return t}}/**
969 * @license
970 * Copyright 2020 Google LLC
971 *
972 * Licensed under the Apache License, Version 2.0 (the "License");
973 * you may not use this file except in compliance with the License.
974 * You may obtain a copy of the License at
975 *
976 *   http://www.apache.org/licenses/LICENSE-2.0
977 *
978 * Unless required by applicable law or agreed to in writing, software
979 * distributed under the License is distributed on an "AS IS" BASIS,
980 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
981 * See the License for the specific language governing permissions and
982 * limitations under the License.
983 */function lV(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function uV(e){const t=Ku(qu(e)).link,n=t?Ku(qu(t)).deep_link_id:null,r=Ku(qu(e)).deep_link_id;return(r?Ku(qu(r)).link:null)||r||n||t||e}class Rw{constructor(t){var n,r,o,i,s,a;const l=Ku(qu(t)),u=(n=l.apiKey)!==null&&n!==void 0?n:null,c=(r=l.oobCode)!==null&&r!==void 0?r:null,d=lV((o=l.mode)!==null&&o!==void 0?o:null);Ye(u&&c&&d,"argument-error"),this.apiKey=u,this.operation=d,this.code=c,this.continueUrl=(i=l.continueUrl)!==null&&i!==void 0?i:null,this.languageCode=(s=l.languageCode)!==null&&s!==void 0?s:null,this.tenantId=(a=l.tenantId)!==null&&a!==void 0?a:null}static parseLink(t){const n=uV(t);try{return new Rw(n)}catch{return null}}}/**
984 * @license
985 * Copyright 2020 Google LLC
986 *
987 * Licensed under the Apache License, Version 2.0 (the "License");
988 * you may not use this file except in compliance with the License.
989 * You may obtain a copy of the License at
990 *
991 *   http://www.apache.org/licenses/LICENSE-2.0
992 *
993 * Unless required by applicable law or agreed to in writing, software
994 * distributed under the License is distributed on an "AS IS" BASIS,
995 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
996 * See the License for the specific language governing permissions and
997 * limitations under the License.
998 */class lu{constructor(){this.providerId=lu.PROVIDER_ID}static credential(t,n){return Fc._fromEmailAndPassword(t,n)}static credentialWithLink(t,n){const r=Rw.parseLink(n);return Ye(r,"argument-error"),Fc._fromEmailAndCode(t,r.code,r.tenantId)}}lu.PROVIDER_ID="password";lu.EMAIL_PASSWORD_SIGN_IN_METHOD="password";lu.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/**
999 * @license
1000 * Copyright 2020 Google LLC
1001 *
1002 * Licensed under the Apache License, Version 2.0 (the "License");
1003 * you may not use this file except in compliance with the License.
1004 * You may obtain a copy of the License at
1005 *
1006 *   http://www.apache.org/licenses/LICENSE-2.0
1007 *
1008 * Unless required by applicable law or agreed to in writing, software
1009 * distributed under the License is distributed on an "AS IS" BASIS,
1010 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1011 * See the License for the specific language governing permissions and
1012 * limitations under the License.
1013 */class Y2{constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}/**
1014 * @license
1015 * Copyright 2019 Google LLC
1016 *
1017 * Licensed under the Apache License, Version 2.0 (the "License");
1018 * you may not use this file except in compliance with the License.
1019 * You may obtain a copy of the License at
1020 *
1021 *   http://www.apache.org/licenses/LICENSE-2.0
1022 *
1023 * Unless required by applicable law or agreed to in writing, software
1024 * distributed under the License is distributed on an "AS IS" BASIS,
1025 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1026 * See the License for the specific language governing permissions and
1027 * limitations under the License.
1028 */class ud extends Y2{constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}/**
1029 * @license
1030 * Copyright 2020 Google LLC
1031 *
1032 * Licensed under the Apache License, Version 2.0 (the "License");
1033 * you may not use this file except in compliance with the License.
1034 * You may obtain a copy of the License at
1035 *
1036 *   http://www.apache.org/licenses/LICENSE-2.0
1037 *
1038 * Unless required by applicable law or agreed to in writing, software
1039 * distributed under the License is distributed on an "AS IS" BASIS,
1040 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1041 * See the License for the specific language governing permissions and
1042 * limitations under the License.
1043 */class qi extends ud{constructor(){super("facebook.com")}static credential(t){return pa._fromParams({providerId:qi.PROVIDER_ID,signInMethod:qi.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return qi.credentialFromTaggedObject(t)}static credentialFromError(t){return qi.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return qi.credential(t.oauthAccessToken)}catch{return null}}}qi.FACEBOOK_SIGN_IN_METHOD="facebook.com";qi.PROVIDER_ID="facebook.com";/**
1044 * @license
1045 * Copyright 2020 Google LLC
1046 *
1047 * Licensed under the Apache License, Version 2.0 (the "License");
1048 * you may not use this file except in compliance with the License.
1049 * You may obtain a copy of the License at
1050 *
1051 *   http://www.apache.org/licenses/LICENSE-2.0
1052 *
1053 * Unless required by applicable law or agreed to in writing, software
1054 * distributed under the License is distributed on an "AS IS" BASIS,
1055 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1056 * See the License for the specific language governing permissions and
1057 * limitations under the License.
1058 */class Yi extends ud{constructor(){super("google.com"),this.addScope("profile")}static credential(t,n){return pa._fromParams({providerId:Yi.PROVIDER_ID,signInMethod:Yi.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:n})}static credentialFromResult(t){return Yi.credentialFromTaggedObject(t)}static credentialFromError(t){return Yi.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return Yi.credential(n,r)}catch{return null}}}Yi.GOOGLE_SIGN_IN_METHOD="google.com";Yi.PROVIDER_ID="google.com";/**
1059 * @license
1060 * Copyright 2020 Google LLC
1061 *
1062 * Licensed under the Apache License, Version 2.0 (the "License");
1063 * you may not use this file except in compliance with the License.
1064 * You may obtain a copy of the License at
1065 *
1066 *   http://www.apache.org/licenses/LICENSE-2.0
1067 *
1068 * Unless required by applicable law or agreed to in writing, software
1069 * distributed under the License is distributed on an "AS IS" BASIS,
1070 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1071 * See the License for the specific language governing permissions and
1072 * limitations under the License.
1073 */class Xi extends ud{constructor(){super("github.com")}static credential(t){return pa._fromParams({providerId:Xi.PROVIDER_ID,signInMethod:Xi.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return Xi.credentialFromTaggedObject(t)}static credentialFromError(t){return Xi.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return Xi.credential(t.oauthAccessToken)}catch{return null}}}Xi.GITHUB_SIGN_IN_METHOD="github.com";Xi.PROVIDER_ID="github.com";/**
1074 * @license
1075 * Copyright 2020 Google LLC
1076 *
1077 * Licensed under the Apache License, Version 2.0 (the "License");
1078 * you may not use this file except in compliance with the License.
1079 * You may obtain a copy of the License at
1080 *
1081 *   http://www.apache.org/licenses/LICENSE-2.0
1082 *
1083 * Unless required by applicable law or agreed to in writing, software
1084 * distributed under the License is distributed on an "AS IS" BASIS,
1085 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1086 * See the License for the specific language governing permissions and
1087 * limitations under the License.
1088 */class Ji extends ud{constructor(){super("twitter.com")}static credential(t,n){return pa._fromParams({providerId:Ji.PROVIDER_ID,signInMethod:Ji.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return Ji.credentialFromTaggedObject(t)}static credentialFromError(t){return Ji.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return Ji.credential(n,r)}catch{return null}}}Ji.TWITTER_SIGN_IN_METHOD="twitter.com";Ji.PROVIDER_ID="twitter.com";/**
1089 * @license
1090 * Copyright 2020 Google LLC
1091 *
1092 * Licensed under the Apache License, Version 2.0 (the "License");
1093 * you may not use this file except in compliance with the License.
1094 * You may obtain a copy of the License at
1095 *
1096 *   http://www.apache.org/licenses/LICENSE-2.0
1097 *
1098 * Unless required by applicable law or agreed to in writing, software
1099 * distributed under the License is distributed on an "AS IS" BASIS,
1100 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1101 * See the License for the specific language governing permissions and
1102 * limitations under the License.
1103 */class Ll{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}static async _fromIdTokenResponse(t,n,r,o=!1){const i=await ei._fromIdTokenResponse(t,r,o),s=wC(r);return new Ll({user:i,providerId:s,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);const o=wC(r);return new Ll({user:t,providerId:o,_tokenResponse:r,operationType:n})}}function wC(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/**
1104 * @license
1105 * Copyright 2020 Google LLC
1106 *
1107 * Licensed under the Apache License, Version 2.0 (the "License");
1108 * you may not use this file except in compliance with the License.
1109 * You may obtain a copy of the License at
1110 *
1111 *   http://www.apache.org/licenses/LICENSE-2.0
1112 *
1113 * Unless required by applicable law or agreed to in writing, software
1114 * distributed under the License is distributed on an "AS IS" BASIS,
1115 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1116 * See the License for the specific language governing permissions and
1117 * limitations under the License.
1118 */class Rp extends Ti{constructor(t,n,r,o){var i;super(n.code,n.message),this.operationType=r,this.user=o,Object.setPrototypeOf(this,Rp.prototype),this.customData={appName:t.name,tenantId:(i=t.tenantId)!==null&&i!==void 0?i:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,n,r,o){return new Rp(t,n,r,o)}}function X2(e,t,n,r){return(t==="reauthenticate"?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(i=>{throw i.code==="auth/multi-factor-auth-required"?Rp._fromErrorAndOperation(e,i,t,r):i})}async function cV(e,t,n=!1){const r=await Lc(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Ll._forOperation(e,"link",r)}/**
1119 * @license
1120 * Copyright 2019 Google LLC
1121 *
1122 * Licensed under the Apache License, Version 2.0 (the "License");
1123 * you may not use this file except in compliance with the License.
1124 * You may obtain a copy of the License at
1125 *
1126 *   http://www.apache.org/licenses/LICENSE-2.0
1127 *
1128 * Unless required by applicable law or agreed to in writing, software
1129 * distributed under the License is distributed on an "AS IS" BASIS,
1130 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1131 * See the License for the specific language governing permissions and
1132 * limitations under the License.
1133 */async function dV(e,t,n=!1){const{auth:r}=e;if(Qo(r.app))return Promise.reject(fs(r));const o="reauthenticate";try{const i=await Lc(e,X2(r,o,t,e),n);Ye(i.idToken,r,"internal-error");const s=Sw(i.idToken);Ye(s,r,"internal-error");const{sub:a}=s;return Ye(e.uid===a,r,"user-mismatch"),Ll._forOperation(e,o,i)}catch(i){throw(i==null?void 0:i.code)==="auth/user-not-found"&&ho(r,"user-mismatch"),i}}/**
1134 * @license
1135 * Copyright 2020 Google LLC
1136 *
1137 * Licensed under the Apache License, Version 2.0 (the "License");
1138 * you may not use this file except in compliance with the License.
1139 * You may obtain a copy of the License at
1140 *
1141 *   http://www.apache.org/licenses/LICENSE-2.0
1142 *
1143 * Unless required by applicable law or agreed to in writing, software
1144 * distributed under the License is distributed on an "AS IS" BASIS,
1145 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1146 * See the License for the specific language governing permissions and
1147 * limitations under the License.
1148 */async function J2(e,t,n=!1){if(Qo(e.app))return Promise.reject(fs(e));const r="signIn",o=await X2(e,r,t),i=await Ll._fromIdTokenResponse(e,r,o);return n||await e._updateCurrentUser(i.user),i}async function fV(e,t){return J2(Pa(e),t)}/**
1149 * @license
1150 * Copyright 2020 Google LLC
1151 *
1152 * Licensed under the Apache License, Version 2.0 (the "License");
1153 * you may not use this file except in compliance with the License.
1154 * You may obtain a copy of the License at
1155 *
1156 *   http://www.apache.org/licenses/LICENSE-2.0
1157 *
1158 * Unless required by applicable law or agreed to in writing, software
1159 * distributed under the License is distributed on an "AS IS" BASIS,
1160 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1161 * See the License for the specific language governing permissions and
1162 * limitations under the License.
1163 */async function pV(e){const t=Pa(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function hV(e,t,n){const r=Pa(e);await wy(r,{requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"},"getOobCode",oV)}function mV(e,t,n){return Qo(e.app)?Promise.reject(fs(e)):fV(Pi(e),lu.credential(t,n)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&pV(e),r})}function gV(e,t,n,r){return Pi(e).onIdTokenChanged(t,n,r)}function vV(e,t,n){return Pi(e).beforeAuthStateChanged(t,n)}const Ep="__sak";/**
1164 * @license
1165 * Copyright 2019 Google LLC
1166 *
1167 * Licensed under the Apache License, Version 2.0 (the "License");
1168 * you may not use this file except in compliance with the License.
1169 * You may obtain a copy of the License at
1170 *
1171 *   http://www.apache.org/licenses/LICENSE-2.0
1172 *
1173 * Unless required by applicable law or agreed to in writing, software
1174 * distributed under the License is distributed on an "AS IS" BASIS,
1175 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1176 * See the License for the specific language governing permissions and
1177 * limitations under the License.
1178 */class Q2{constructor(t,n){this.storageRetriever=t,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(Ep,"1"),this.storage.removeItem(Ep),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(t,n){return this.storage.setItem(t,JSON.stringify(n)),Promise.resolve()}_get(t){const n=this.storage.getItem(t);return Promise.resolve(n?JSON.parse(n):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}/**
1179 * @license
1180 * Copyright 2020 Google LLC
1181 *
1182 * Licensed under the Apache License, Version 2.0 (the "License");
1183 * you may not use this file except in compliance with the License.
1184 * You may obtain a copy of the License at
1185 *
1186 *   http://www.apache.org/licenses/LICENSE-2.0
1187 *
1188 * Unless required by applicable law or agreed to in writing, software
1189 * distributed under the License is distributed on an "AS IS" BASIS,
1190 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1191 * See the License for the specific language governing permissions and
1192 * limitations under the License.
1193 */const yV=1e3,bV=10;class Z2 extends Q2{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,n)=>this.onStorageEvent(t,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=G2(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),o=this.localCache[n];r!==o&&t(n,o,r)}}onStorageEvent(t,n=!1){if(!t.key){this.forAllChangedKeys((s,a,l)=>{this.notifyListeners(s,l)});return}const r=t.key;n?this.detachListener():this.stopPolling();const o=()=>{const s=this.storage.getItem(r);!n&&this.localCache[r]===s||this.notifyListeners(r,s)},i=this.storage.getItem(r);L8()&&i!==t.newValue&&t.newValue!==t.oldValue?setTimeout(o,bV):o()}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const o of Array.from(r))o(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)})},yV)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(t,n){await super._set(t,n),this.localCache[t]=JSON.stringify(n)}async _get(t){const n=await super._get(t);return this.localCache[t]=JSON.stringify(n),n}async _remove(t){await super._remove(t),delete this.localCache[t]}}Z2.type="LOCAL";const wV=Z2;/**
1194 * @license
1195 * Copyright 2020 Google LLC
1196 *
1197 * Licensed under the Apache License, Version 2.0 (the "License");
1198 * you may not use this file except in compliance with the License.
1199 * You may obtain a copy of the License at
1200 *
1201 *   http://www.apache.org/licenses/LICENSE-2.0
1202 *
1203 * Unless required by applicable law or agreed to in writing, software
1204 * distributed under the License is distributed on an "AS IS" BASIS,
1205 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1206 * See the License for the specific language governing permissions and
1207 * limitations under the License.
1208 */class eI extends Q2{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,n){}_removeListener(t,n){}}eI.type="SESSION";const tI=eI;/**
1209 * @license
1210 * Copyright 2019 Google LLC
1211 *
1212 * Licensed under the Apache License, Version 2.0 (the "License");
1213 * you may not use this file except in compliance with the License.
1214 * You may obtain a copy of the License at
1215 *
1216 *   http://www.apache.org/licenses/LICENSE-2.0
1217 *
1218 * Unless required by applicable law or agreed to in writing, software
1219 * distributed under the License is distributed on an "AS IS" BASIS,
1220 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1221 * See the License for the specific language governing permissions and
1222 * limitations under the License.
1223 */function xV(e){return Promise.all(e.map(async t=>{try{return{fulfilled:!0,value:await t}}catch(n){return{fulfilled:!1,reason:n}}}))}/**
1224 * @license
1225 * Copyright 2019 Google LLC
1226 *
1227 * Licensed under the Apache License, Version 2.0 (the "License");
1228 * you may not use this file except in compliance with the License.
1229 * You may obtain a copy of the License at
1230 *
1231 *   http://www.apache.org/licenses/LICENSE-2.0
1232 *
1233 * Unless required by applicable law or agreed to in writing, software
1234 * distributed under the License is distributed on an "AS IS" BASIS,
1235 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1236 * See the License for the specific language governing permissions and
1237 * limitations under the License.
1238 */class Yh{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const n=this.receivers.find(o=>o.isListeningto(t));if(n)return n;const r=new Yh(t);return this.receivers.push(r),r}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const n=t,{eventId:r,eventType:o,data:i}=n.data,s=this.handlersMap[o];if(!(s!=null&&s.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:o});const a=Array.from(s).map(async u=>u(n.origin,i)),l=await xV(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:o,response:l})}_subscribe(t,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(n)}_unsubscribe(t,n){this.handlersMap[t]&&n&&this.handlersMap[t].delete(n),(!n||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Yh.receivers=[];/**
1239 * @license
1240 * Copyright 2020 Google LLC
1241 *
1242 * Licensed under the Apache License, Version 2.0 (the "License");
1243 * you may not use this file except in compliance with the License.
1244 * You may obtain a copy of the License at
1245 *
1246 *   http://www.apache.org/licenses/LICENSE-2.0
1247 *
1248 * Unless required by applicable law or agreed to in writing, software
1249 * distributed under the License is distributed on an "AS IS" BASIS,
1250 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1251 * See the License for the specific language governing permissions and
1252 * limitations under the License.
1253 */function Ew(e="",t=10){let n="";for(let r=0;r<t;r++)n+=Math.floor(Math.random()*10);return e+n}/**
1254 * @license
1255 * Copyright 2019 Google LLC
1256 *
1257 * Licensed under the Apache License, Version 2.0 (the "License");
1258 * you may not use this file except in compliance with the License.
1259 * You may obtain a copy of the License at
1260 *
1261 *   http://www.apache.org/licenses/LICENSE-2.0
1262 *
1263 * Unless required by applicable law or agreed to in writing, softw
1263are
1264 * distributed under the License is distributed on an "AS IS" BASIS,
1265 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1266 * See the License for the specific language governing permissions and
1267 * limitations under the License.
1268 */class SV{constructor(t){this.target=t,this.handlers=new Set}removeMessageHandler(t){t.messageChannel&&(t.messageChannel.port1.removeEventListener("message",t.onMessage),t.messageChannel.port1.close()),this.handlers.delete(t)}async _send(t,n,r=50){const o=typeof MessageChannel<"u"?new MessageChannel:null;if(!o)throw new Error("connection_unavailable");let i,s;return new Promise((a,l)=>{const u=Ew("",20);o.port1.start();const c=setTimeout(()=>{l(new Error("unsupported_event"))},r);s={messageChannel:o,onMessage(d){const f=d;if(f.data.eventId===u)switch(f.data.status){case"ack":clearTimeout(c),i=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),a(f.data.response);break;default:clearTimeout(c),clearTimeout(i),l(new Error("invalid_response"));break}}},this.handlers.add(s),o.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:t,eventId:u,data:n},[o.port2])}).finally(()=>{s&&this.removeMessageHandler(s)})}}/**
1269 * @license
1270 * Copyright 2020 Google LLC
1271 *
1272 * Licensed under the Apache License, Version 2.0 (the "License");
1273 * you may not use this file except in compliance with the License.
1274 * You may obtain a copy of the License at
1275 *
1276 *   http://www.apache.org/licenses/LICENSE-2.0
1277 *
1278 * Unless required by applicable law or agreed to in writing, software
1279 * distributed under the License is distributed on an "AS IS" BASIS,
1280 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1281 * See the License for the specific language governing permissions and
1282 * limitations under the License.
1283 */function jo(){return window}function CV(e){jo().location.href=e}/**
1284 * @license
1285 * Copyright 2020 Google LLC.
1286 *
1287 * Licensed under the Apache License, Version 2.0 (the "License");
1288 * you may not use this file except in compliance with the License.
1289 * You may obtain a copy of the License at
1290 *
1291 *   http://www.apache.org/licenses/LICENSE-2.0
1292 *
1293 * Unless required by applicable law or agreed to in writing, software
1294 * distributed under the License is distributed on an "AS IS" BASIS,
1295 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1296 * See the License for the specific language governing permissions and
1297 * limitations under the License.
1298 */function nI(){return typeof jo().WorkerGlobalScope<"u"&&typeof jo().importScripts=="function"}async function _V(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function RV(){var e;return((e=navigator==null?void 0:navigator.serviceWorker)===null||e===void 0?void 0:e.controller)||null}function EV(){return nI()?self:null}/**
1299 * @license
1300 * Copyright 2019 Google LLC
1301 *
1302 * Licensed under the Apache License, Version 2.0 (the "License");
1303 * you may not use this file except in compliance with the License.
1304 * You may obtain a copy of the License at
1305 *
1306 *   http://www.apache.org/licenses/LICENSE-2.0
1307 *
1308 * Unless required by applicable law or agreed to in writing, software
1309 * distributed under the License is distributed on an "AS IS" BASIS,
1310 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1311 * See the License for the specific language governing permissions and
1312 * limitations under the License.
1313 */const rI="firebaseLocalStorageDb",TV=1,Tp="firebaseLocalStorage",oI="fbase_key";class cd{constructor(t){this.request=t}toPromise(){return new Promise((t,n)=>{this.request.addEventListener("success",()=>{t(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function Xh(e,t){return e.transaction([Tp],t?"readwrite":"readonly").objectStore(Tp)}function PV(){const e=indexedDB.deleteDatabase(rI);
1313return new cd(e).toPromise()}function xy(){const e=indexedDB.open(rI,TV);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const r=e.result;try{r.createObjectStore(Tp,{keyPath:oI})}catch(o){n(o)}}),e.addEventListener("success",async()=>{const r=e.result;r.objectStoreNames.contains(Tp)?t(r):(r.close(),await PV(),t(await xy()))})})}async function xC(e,t,n){const r=Xh(e,!0).put({[oI]:t,value:n});return new cd(r).toPromise()}async function kV(e,t){const n=Xh(e,!1).get(t),r=await new cd(n).toPromise();return r===void 0?null:r.value}function SC(e,t){const n=Xh(e,!0).delete(t);return new cd(n).toPromise()}const IV=800,MV=3;class iI{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await xy(),this.db)}async _withRetries(t){let n=0;for(;;)try{const r=await this._openDb();return await t(r)}catch(r){if(n++>MV)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return nI()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Yh._getInstance(EV()),this.receiver._subscribe("keyChanged",async(t,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
1313)),this.receiver._subscribe("ping",async(t,n)=>["keyChanged"])}async initializeSender(){var t,n;if(this.activeServiceWorker=await _V(),!this.activeServiceWorker)return;this.sender=new SV(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((t=r[0])===null||t===void 0)&&t.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||RV()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const t=await xy();return await xC(t,Ep,"1"),await SC(t,Ep),!0}catch{}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>xC(r,t,n)),this.localCache[t]=n,this.notifyServiceWorker(t)))}async _get(t){const n=await this._withRetries(r=>kV(r,t));return this.localCache[t]=n,n}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(n=>SC(n,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){const t=await this._withRetries(o=>{const i=Xh(o,!1).getAll();return new cd(i).toPromise()});if(!t)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(t.length!==0)for(const{fbase_key:o,value:i}of t)r.add(o),JSON.stringify(this.localCache[o])!==JSON.stringify(i)&&(this.notifyListeners(o,i),n.push(o));for(const o of Object.keys(this.localCache))this.localCache[o]&&!r.has(o)&&(this.notifyListeners(o,null),n.push(o));return n}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const o of Array.from(r))o(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),IV)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling()}}iI.type="LOCAL";const DV=iI;new ld(3e4,6e4);/**
1314 * @license
1315 * Copyright 2021 Google LLC
1316 *
1317 * Licensed under the Apache License, Version 2.0 (the "License");
1318 * you may not use this file except in compliance with the License.
1319 * You may obtain a copy of the License at
1320 *
1321 *   http://www.apache.org/licenses/LICENSE-2.0
1322 *
1323 * Unless required by applicable law or agreed to in writing, software
1324 * distributed under the License is distributed on an "AS IS" BASIS,
1325 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1326 * See the License for the specific language governing permissions and
1327 * limitations under the License.
1328 */function AV(e,t){return t?ti(t):(Ye(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}/**
1329 * @license
1330 * Copyright 2019 Google LLC
1331 *
1332 * Licensed under the Apache License, Version 2.0 (the "License");
1333 * you may not use this file except in compliance with the License.
1334 * You may obtain a copy of the License at
1335 *
1336 *   http://www.apache.org/licenses/LICENSE-2.0
1337 *
1338 * Unless required by applicable law or agreed to in writing, software
1339 * distributed under the License is distributed on an "AS IS" BASIS,
1340 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1341 * See the License for the specific language governing permissions and
1342 * limitations under the License.
1343 */class Tw extends _w{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return Sl(t,this._buildIdpRequest())}_linkToIdToken(t,n){return Sl(t,this._buildIdpRequest(n))}_getReauthenticationResolver(t){return Sl(t,this._buildIdpRequest())}_buildIdpRequest(t){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(n.idToken=t),n}}function jV(e){return J2(e.auth,new Tw(e),e.bypassAuthState)}function OV(e){const{auth:t,user:n}=e;return Ye(n,t,"internal-error"),dV(n,new Tw(e),e.bypassAuthState)}async function NV(e){const{auth:t,user:n}=e;return Ye(n,t,"internal-error"),cV(n,new Tw(e),e.bypassAuthState)}/**
1344 * @license
1345 * Copyright 2020 Google LLC
1346 *
1347 * Licensed under the Apache License, Version 2.0 (the "License");
1348 * you may not use this file except in compliance with the License.
1349 * You may obtain a copy of the License at
1350 *
1351 *   http://www.apache.org/licenses/LICENSE-2.0
1352 *
1353 * Unless required by applicable law or agreed to in writing, software
1354 * distributed under the License is distributed on an "AS IS" BASIS,
1355 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1356 * See the License for the specific language governing permissions and
1357 * limitations under the License.
1358 */class sI{constructor(t,n,r,o,i=!1){this.auth=t,this.resolver=r,this.user=o,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(t,n)=>{this.pendingPromise={resolve:t,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(t){const{urlResponse:n,sessionId:r,postBody:o,tenantId:i,error:s,type:a}=t;if(s){this.reject(s);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:i||void 0,postBody:o||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(u){this.reject(u)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return jV;case"linkViaPopup":case"linkViaRedirect":return NV;case"reauthViaPopup":case"reauthViaRedirect":return OV;default:ho(this.auth,"internal-error")}}resolve(t){vi(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){vi(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
1359 * @license
1360 * Copyright 2020 Google LLC
1361 *
1362 * Licensed under the Apache License, Version 2.0 (the "License");
1363 * you may not use this file except in compliance with the License.
1364 * You may obtain a copy of the License at
1365 *
1366 *   http://www.apache.org/licenses/LICENSE-2.0
1367 *
1368 * Unless required by applicable law or agreed to in writing, software
1369 * distributed under the License is distributed on an "AS IS" BASIS,
1370 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1371 * See the License for the specific language governing permissions and
1372 * limitations under the License.
1373 */const LV=new ld(2e3,1e4);class cl extends sI{constructor(t,n,r,o,i){super(t,n,o,i),this.provider=r,this.authWindow=null,this.pollId=null,cl.currentPopupAction&&cl.currentPopupAction.cancel(),cl.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return Ye(t,this.auth,"internal-error"),t}async onExecution(){vi(this.filter.length===1,"Popup operations only handle one event");const t=Ew();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(Ao(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var t;return((t=this.authWindow)===null||t===void 0?void 0:t.associatedEvent)||null}cancel(){this.reject(Ao(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,cl.currentPopupAction=null}pollUserCancellation(){const t=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Ao(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,LV.get())};t()}}cl.currentPopupAction=null;/**
1374 * @license
1375 * Copyright 2020 Google LLC
1376 *
1377 * Licensed under the Apache License, Version 2.0 (the "License");
1378 * you may not use this file except in compliance with the License.
1379 * You may obtain a copy of the License at
1380 *
1381 *   http://www.apache.org/licenses/LICENSE-2.0
1382 *
1383 * Unless required by applicable law or agreed to in writing, softw
1383are
1384 * distributed under the License is distributed on an "AS IS" BASIS,
1385 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1386 * See the License for the specific language governing permissions and
1387 * limitations under the License.
1388 */const FV="pendingRedirect",Af=new Map;class $V extends sI{constructor(t,n,r=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let t=Af.get(this.auth._key());if(!t){try{const r=await zV(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(r)}catch(n){t=()=>Promise.reject(n)}Af.set(this.auth._key(),t)}return this.bypassAuthState||Af.set(this.auth._key(),()=>Promise.resolve(null)),t()}async onAuthEvent(t){if(t.type==="signInViaRedirect")return super.onAuthEvent(t);if(t.type==="unknown"){this.resolve(null);return}if(t.eventId){const n=await this.auth._redirectUserForId(t.eventId);if(n)return this.user=n,super.onAuthEvent(t);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function zV(e,t){const n=HV(t),r=BV(e);if(!await r._isAvailable())return!1;const o=await r._get(n)==="true";return await r._remove(n),o}function VV(e,t){Af.set(e._key(),t)}function BV(e){return ti(e._redirectPersistence)}function HV(e){return Df(FV,e.config.apiKey,e.name)}async function UV(e,t,n=!1){if(Qo(e.app))return Promise.reject(fs(e));const r=Pa(e),o=AV(r,t),s=await new $V(r,o,n).execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,t)),s}/**
1389 * @license
1390 * Copyright 2020 Google LLC
1391 *
1392 * Licensed under the Apache License, Version 2.0 (the "License");
1393 * you may not use this file except in compliance with the License.
1394 * You may obtain a copy of the License at
1395 *
1396 *   http://www.apache.org/licenses/LICENSE-2.0
1397 *
1398 * Unless required by applicable law or agreed to in writing, software
1399 * distributed under the License is distributed on an "AS IS" BASIS,
1400 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1401 * See the License for the specific language governing permissions and
1402 * limitations under the License.
1403 */const GV=10*60*1e3;class WV{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(t,r)&&(n=!0,this.sendToConsumer(t,r),this.saveEventToCache(t))}),this.hasHandledPotentialRedirect||!KV(t)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=t,n=!0)),n}sendToConsumer(t,n){var r;if(t.error&&!aI(t)){const o=((r=t.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(Ao(this.auth,o))}else n.onAuthEvent(t)}isEventForConsumer(t,n){const r=n.eventId===null||!!t.eventId&&t.eventId===n.eventId;return n.filter.includes(t.type)&&r}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=GV&&this.cachedEventUids.clear(),this.cachedEventUids.has(CC(t))}saveEventToCache(t){this.cachedEventUids.add(CC(t)),this.lastProcessedEventTime=Date.now()}}function CC(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function aI({type:e,error:t}){return e==="unknown"&&(t==null?void 0:t.code)==="auth/no-auth-event"}function KV(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return aI(e);default:return!1}}/**
1404 * @license
1405 * Copyright 2020 Google LLC
1406 *
1407 * Licensed under the Apache License, Version 2.0 (the "License");
1408 * you may not use this file except in compliance with the License.
1409 * You may obtain a copy of the License at
1410 *
1411 *   http://www.apache.org/licenses/LICENSE-2.0
1412 *
1413 * Unless required by applicable law or agreed to in writing, softw
1413are
1414 * distributed under the License is distributed on an "AS IS" BASIS,
1415 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1416 * See the License for the specific language governing permissions and
1417 * limitations under the License.
1418 */async function qV(e,t={}){return ki(e,"GET","/v1/projects",t)}/**
1419 * @license
1420 * Copyright 2020 Google LLC
1421 *
1422 * Licensed under the Apache License, Version 2.0 (the "License");
1423 * you may not use this file except in compliance with the License.
1424 * You may obtain a copy of the License at
1425 *
1426 *   http://www.apache.org/licenses/LICENSE-2.0
1427 *
1428 * Unless required by applicable law or agreed to in writing, software
1429 * distributed under the License is distributed on an "AS IS" BASIS,
1430 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1431 * See the License for the specific language governing permissions and
1432 * limitations under the License.
1433 */const YV=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,XV=/^https?/;async function JV(e){if(e.config.emulator)return;const{authorizedDomains:t}=await qV(e);for(const n of t)try{if(QV(n))return}catch{}ho(e,"unauthorized-domain")}function QV(e){const t=yy(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const s=new URL(e);return s.hostname===""&&r===""?n==="chrome-extension:"&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):n==="chrome-extension:"&&s.hostname===r}if(!XV.test(n))return!1;if(YV.test(e))return r===e;const o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(r)}/**
1434 * @license
1435 * Copyright 2020 Google LLC.
1436 *
1437 * Licensed under the Apache License, Version 2.0 (the "License");
1438 * you may not use this file except in compliance with the License.
1439 * You may obtain a copy of the License at
1440 *
1441 *   http://www.apache.org/licenses/LICENSE-2.0
1442 *
1443 * Unless required by applicable law or agreed to in writing, software
1444 * distributed under the License is distributed on an "AS IS" BASIS,
1445 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1446 * See the License for the specific language governing permissions and
1447 * limitations under the License.
1448 */const ZV=new ld(3e4,6e4);function _C(){const e=jo().___jsl;if(e!=null&&e.H){for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}}function e7(e){return new Promise((t,n)=>{var r,o,i;function s(){_C(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{_C(),n(Ao(e,"network-request-failed"))},timeout:ZV.get()})}if(!((o=(r=jo().gapi)===null||r===void 0?void 0:r.iframes)===null||o===void 0)&&o.Iframe)t(gapi.iframes.getContext());else if(!((i=jo().gapi)===null||i===void 0)&&i.load)s();else{const a=W8("iframefcb");return jo()[a]=()=>{gapi.load?s():n(Ao(e,"network-request-failed"))},K2(`${G8()}?onload=${a}`).catch(l=>n(l))}}).catch(t=>{throw jf=null,t})}let jf=null;function t7(e){return jf=jf||e7(e),jf}/**
1449 * @license
1450 * Copyright 2020 Google LLC.
1451 *
1452 * Licensed under the Apache License, Version 2.0 (the "License");
1453 * you may not use this file except in compliance with the License.
1454 * You may obtain a copy of the License at
1455 *
1456 *   http://www.apache.org/licenses/LICENSE-2.0
1457 *
1458 * Unless required by applicable law or agreed to in writing, software
1459 * distributed under the License is distributed on an "AS IS" BASIS,
1460 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1461 * See the License for the specific language governing permissions and
1462 * limitations under the License.
1463 */const n7=new ld(5e3,15e3),r7="__/auth/iframe",o7="emulator/auth/iframe",i7={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},s7=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function a7(e){const t=e.config;Ye(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?xw(t,o7):`https://${e.config.authDomain}/${r7}
1463`,r={apiKey:t.apiKey,appName:e.name,v:au},o=s7.get(e.config.apiHost);o&&(r.eid=o);const i=e._getFrameworks();return i.length&&(r.fw=i.join(",")),`${n}?${ad(r).slice(1)}`}async function l7(e){const t=await t7(e),n=jo().gapi;return Ye(n,e,"internal-error"),t.open({where:document.body,url:a7(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:i7,dontclear:!0},r=>new Promise(async(o,i)=>{await r.restyle({setHideOnLeave:!1});const s=Ao(e,"network-request-failed"),a=jo().setTimeout(()=>{i(s)},n7.get());function l(){jo().clearTimeout(a),o(r)}r.ping(l).then(l,()=>{i(s)})}))}/**
1464 * @license
1465 * Copyright 2020 Google LLC.
1466 *
1467 * Licensed under the Apache License, Version 2.0 (the "License");
1468 * you may not use this file except in compliance with the License.
1469 * You may obtain a copy of the License at
1470 *
1471 *   http://www.apache.org/licenses/LICENSE-2.0
1472 *
1473 * Unless required by applicable law or agreed to in writing, software
1474 * distributed under the License is distributed on an "AS IS" BASIS,
1475 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1476 * See the License for the specific language governing permissions and
1477 * limitations under the License.
1478 */const u7={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},c7=500,d7=600,f7="_blank",p7="http://localhost";class RC{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function h7(e,t,n,r=c7,o=d7){const i=Math.max((window.screen.availHeight-o)/2,0).toString(),s=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l=Object.assign(Object.assign({},u7),{width:r.toString(),height:o.toString(),top:i,left:s}),u=Kn().toLowerCase();n&&(a=z2(u)?f7:n),F2(u)&&(t=t||p7,l.scrollbars="yes");const c=Object.entries(l).reduce((f,[h,g])=>`${f}${h}=${g},`,"");if(N8(u)&&a!=="_self")return m7(t||"",a),new RC(null);const d=window.open(t||"",a,c);Ye(d,e,"popup-blocked");try{d.focus()}catch{}return new RC(d)}function m7(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/**
1479 * @license
1480 * Copyright 2021 Google LLC
1481 *
1482 * Licensed under the Apache License, Version 2.0 (the "License");
1483 * you may not use this file except in compliance with the License.
1484 * You may obtain a copy of the License at
1485 *
1486 *   http://www.apache.org/licenses/LICENSE-2.0
1487 *
1488 * Unless required by applicable law or agreed to in writing, software
1489 * distributed under the License is distributed on an "AS IS" BASIS,
1490 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1491 * See the License for the specific language governing permissions and
1492 * limitations under the License.
1493 */const g7="__/auth/handler",v7="emulator/auth/handler",y7=encodeURIComponent("fac");async function EC(e,t,n,r,o,i){Ye(e.config.authDomain,e,"auth-domain-config-required"),Ye(e.config.apiKey,e,"invalid-api-key");const s={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:au,eventId:o};if(t instanceof Y2){t.setDefaultLanguage(e.languageCode),s.providerId=t.providerId||"",o6(t.getCustomParameters())||(s.customParameters=JSON.stringify(t.getCustomParameters()));for(const[c,d]of Object.entries({}))s[c]=d}if(t instanceof ud){const c=t.getScopes().filter(d=>d!=="");c.length>0&&(s.scopes=c.join(","))}e.tenantId&&(s.tid=e.tenantId);const a=s;for(const c of Object.keys(a))a[c]===void 0&&delete a[c];const l=await e._getAppCheckToken(),u=l?`#${y7}=${encodeURIComponent(l)}`:"";return`${b7(e)}?${ad(a).slice(1)}${u}`}function b7({config:e}){return e.emulator?xw(e,v7):`https://${e.authDomain}/${g7}`}/**
1494 * @license
1495 * Copyright 2020 Google LLC
1496 *
1497 * Licensed under the Apache License, Version 2.0 (the "License");
1498 * you may not use this file except in compliance with the License.
1499 * You may obtain a copy of the License at
1500 *
1501 *   http://www.apache.org/licenses/LICENSE-2.0
1502 *
1503 * Unless required by applicable law or agreed to in writing, software
1504 * distributed under the License is distributed on an "AS IS" BASIS,
1505 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1506 * See the License for the specific language governing permissions and
1507 * limitations under the License.
1508 */const Rg="webStorageSupport";class w7{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=tI,this._completeRedirectFn=UV,this._overrideRedirectResult=VV}async _openPopup(t,n,r,o){var i;vi((i=this.eventManagers[t._key()])===null||i===void 0?void 0:i.manager,"_initialize() not called before _openPopup()");const s=await EC(t,n,r,yy(),o);return h7(t,s,Ew())}async _openRedirect(t,n,r,o){await this._originValidation(t);const i=await EC(t,n,r,yy(),o);return CV(i),new Promise(()=>{})}_initialize(t){const n=t._key();if(this.eventManagers[n]){const{manager:o,promise:i}=this.eventManagers[n];return o?Promise.resolve(o):(vi(i,"If manager is not set, promise should be"),i)}const r=this.initAndGetManager(t);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(t){const n=await l7(t),r=new WV(t);return n.register("authEvent",o=>
1508(Ye(o==null?void 0:o.authEvent,t,"invalid-auth-event"),{status:r.onEvent(o.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,r}_isIframeWebStorageSupported(t,n){this.iframes[t._key()].send(Rg,{type:Rg},o=>{var i;const s=(i=o==null?void 0:o[0])===null||i===void 0?void 0:i[Rg];s!==void 0&&n(!!s),ho(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const n=t._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=JV(t)),this.originValidationPromises[n]}get _shouldInitProactively(){return G2()||$2()||Cw()}}const x7=w7;var TC="@firebase/auth",PC="1.7.9";/**
1509 * @license
1510 * Copyright 2020 Google LLC
1511 *
1512 * Licensed under the Apache License, Version 2.0 (the "License");
1513 * you may not use this file except in compliance with the License.
1514 * You may obtain a copy of the License at
1515 *
1516 *   http://www.apache.org/licenses/LICENSE-2.0
1517 *
1518 * Unless required by applicable law or agreed to in writing, software
1519 * distributed under the License is distributed on an "AS IS" BASIS,
1520 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1521 * See the License for the specific language governing permissions and
1522 * limitations under the License.
1523 */class S7{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),((t=this.auth.currentUser)===null||t===void 0?void 0:t.uid)||null}async getToken(t){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(t)}:null}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const n=this.auth.onIdTokenChanged(r=>{t((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(t,n),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const n=this.internalListeners.get(t);n&&(this.internalListeners.delete(t),n(),this.updateProactiveRefresh())}assertAuthConfigured(){Ye(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
1524 * @license
1525 * Copyright 2020 Google LLC
1526 *
1527 * Licensed under the Apache License, Version 2.0 (the "License");
1528 * you may not use this file except in compliance with the License.
1529 * You may obtain a copy of the License at
1530 *
1531 *   http://www.apache.org/licenses/LICENSE-2.0
1532 *
1533 * Unless required by applicable law or agreed to in writing, software
1534 * distributed under the License is distributed on an "AS IS" BASIS,
1535 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1536 * See the License for the specific language governing permissions and
1537 * limitations under the License.
1538 */function C7(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function _7(e){fa(new bs("auth",(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),o=t.getProvider("heartbeat"),i=t.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;Ye(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:s,authDomain:a,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:W2(e)},u=new B8(r,o,i,l);return J8(u,n),u},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,n,r)=>{t.getProvider("auth-internal").initialize()})),fa(new bs("auth-internal",t=>{const n=Pa(t.getProvider("auth").getImmediate());return(r=>new S7(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),Do(TC,PC,C7(e)),Do(TC,PC,"esm2017")}/**
1539 * @license
1540 * Copyright 2021 Google LLC
1541 *
1542 * Licensed under the Apache License, Version 2.0 (the "License");
1543 * you may not use this file except in compliance with the License.
1544 * You may obtain a copy of the License at
1545 *
1546 *   http://www.apache.org/licenses/LICENSE-2.0
1547 *
1548 * Unless required by applicable law or agreed to in writing, softw
1548are
1549 * distributed under the License is distributed on an "AS IS" BASIS,
1550 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1551 * See the License for the specific language governing permissions and
1552 * limitations under the License.
1553 */const R7=5*60,E7=C2("authIdTokenMaxAge")||R7;let kC=null;const T7=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>E7)return;const o=n==null?void 0:n.token;kC!==o&&(kC=o,await fetch(e,{method:o?"POST":"DELETE",headers:o?{Authorization:`Bearer ${o}`}:{}}))};function P7(e=bw()){const t=Wh(e,"auth");if(t.isInitialized())return t.getImmediate();const n=X8(e,{popupRedirectResolver:x7,persistence:[DV,wV,tI]}),r=C2("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const i=new URL(r,location.origin);if(location.origin===i.origin){const s=T7(i.toString());vV(n,s,()=>s(n.currentUser)),gV(n,a=>s(a))}}const o=w2("auth");return o&&Q8(n,`http://${o}`),n}function k7(){var e,t;return(t=(e=document.getElementsByTagName("head"))===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:document}H8({loadJS(e){return new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=o=>{const i=Ao("internal-error");i.customData=o,n(i)},r.type="text/javascript",r.charset="UTF-8",k7().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});_7("Browser");var IC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license
1554Copyright The Closure Library Authors.
1555SPDX-License-Identifier: Apache-2.0
1556*/var lI;(function(){var e;/** @license
1557
1558 Copyright The Closure Library Authors.
1559 SPDX-License-Identifier: Apache-2.0
1560*/function t(C,_){function T(){}T.prototype=_.prototype,C.D=_.prototype,C.prototype=new T,C.prototype.constructor=C,C.C=function(P,M,O){for(var A=Array(arguments.length-2),V=2;V<arguments.length;V++)A[V-2]=arguments[V];return _.prototype[M].apply(P,A)}}function n(){this.blockSize=-1}function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}t(r,n),r.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function o(C,_,T){T||(T=0);var P=Array(16);if(typeof _=="string")for(var M=0;16>M;++M)P[M]=_.charCodeAt(T++)|_.charCodeAt(T++)<<8|_.charCodeAt(T++)<<16|_.charCodeAt(T++)<<24;else for(M=0;16>M;++M)P[M]=_[T++]|_[T++]<<8|_[T++]<<16|_[T++]<<24;_=C.g[0],T=C.g[1],M=C.g[2];var O=C.g[3],A=_+(O^T&(M^O))+P[0]+3614090360&4294967295;_=T+(A<<7&4294967295|A>>>25),A=O+(M^_&(T^M))+P[1]+3905402710&4294967295,O=_+(A<<12&4294967295|A>>>20),A=M+(T^O&(_^T))+P[2]+606105819&4294967295,M=O+(A<<17&4294967295|A>>>15),A=T+(_^M&(O^_))+P[3]+3250441966&4294967295,T=M+(A<<22&4294967295|A>>>10),A=_+(O^T&(M^O))+P[4]+4118548399&4294967295,_=T+(A<<7&4294967295|A>>>25),A=O+(M^_&(T^M))+P[5]+1200080426&4294967295,O=_+(A<<12&4294967295|A>>>20),A=M+(T^O&(_^T))+P[6]+2821735955&4294967295,M=O+(A<<17&4294967295|A>>>15),A=T+(_^M&(O^_))+P[7]+4249261313&4294967295,T=M+(A<<22&4294967295|A>>>10),A=_+(O^T&(M^O))+P[8]+1770035416&4294967295,_=T+(A<<7&4294967295|A>>>25),A=O+(M^_&(T^M))+P[9]+2336552879&4294967295,O=_+(A<<12&4294967295|A>>>20),A=M+(T^O&(_^T))+P[10]+4294925233&4294967295,M=O+(A<<17&4294967295|A>>>15),A=T+(_^M&(O^_))+P[11]+2304563134&4294967295,T=M+(A<<22&4294967295|A>>>10),A=_+(O^T&(M^O))+P[12]+1804603682&4294967295,_=T+(A<<7&4294967295|A>>>25),A=O+(M^_&(T^M))+P[13]+4254626195&4294967295,O=_+(A<<12&4294967295|A>>>20),A=M+(T^O&(_^T))+P[14]+2792965006&4294967295,M=O+(A<<17&4294967295|A>>>15),A=T+(_^M&(O^_))+P[15]+1236535329&4294967295,T=M+(A<<22&4294967295|A>>>10),A=_+(M^O&(T^M))+P[1]+4129170786&4294967295,_=T+(A<<5&4294967295|A>>>27),A=O+(T^M&(_^T))+P[6]+3225465664&4294967295,O=_+(A<<9&4294967295|A>>>23),A=M+(_^T&(O^_))+P[11]+643717713&4294967295,M=O+(A<<14&4294967295|A>>>18),A=T+(O^_&(M^O))+P[0]+3921069994&4294967295,T=M+(A<<20&4294967295|A>>>12),A=_+(M^O&(T^M))+P[5]+3593408605&4294967295,_=T+(A<<5&4294967295|A>>>
vendor: 11,727 bytes, lines 1560-1564
156027),A=O+(T^M&(_^T))+P[10]+38016083&4294967295,O=_+(A<<9&4294967295|A>>>23),A=M+(_^T&(O^_))+P[15]+3634488961&4294967295,M=O+(A<<14&4294967295|A>>>18),A=T+(O^_&(M^O))+P[4]+3889429448&4294967295,T=M+(A<<20&4294967295|A>>>12),A=_+(M^O&(T^M))+P[9]+568446438&4294967295,_=T+(A<<5&4294967295|A>>>27),A=O+(T^M&(_^T))+P[14]+3275163606&4294967295,O=_+(A<<9&4294967295|A>>>23),A=M+(_^T&(O^_))+P[3]+4107603335&4294967295,M=O+(A<<14&4294967295|A>>>18),A=T+(O^_&(M^O))+P[8]+1163531501&4294967295,T=M+(A<<20&4294967295|A>>>12),A=_+(M^O&(T^M))+P[13]+2850285829&4294967295,_=T+(A<<5&4294967295|A>>>27),A=O+(T^M&(_^T))+P[2]+4243563512&4294967295,O=_+(A<<9&4294967295|A>>>23),A=M+(_^T&(O^_))+P[7]+1735328473&4294967295,M=O+(A<<14&4294967295|A>>>18),A=T+(O^_&(M^O))+P[12]+2368359562&4294967295,T=M+(A<<20&4294967295|A>>>12),A=_+(T^M^O)+P[5]+4294588738&4294967295,_=T+(A<<4&4294967295|A>>>28),A=O+(_^T^M)+P[8]+2272392833&4294967295,O=_+(A<<11&4294967295|A>>>21),A=M+(O^_^T)+P[11]+1839030562&4294967295,M=O+(A<<16&4294967295|A>>>16),A=T+(M^O^_)+P[14]+4259657740&4294967295,T=M+(A<<23&4294967295|A>>>9),A=_+(T^M^O)+P[1]+2763975236&4294967295,_=T+(A<<4&4294967295|A>>>28),A=O+(_^T^M)+P[4]+1272893353&4294967295,O=_+(A<<11&4294967295|A>>>21),A=M+(O^_^T)+P[7]+4139469664&4294967295,M=O+(A<<16&4294967295|A>>>16),A=T+(M^O^_)+P[10]+3200236656&4294967295,T=M+(A<<23&4294967295|A>>>9),A=_+(T^M^O)+P[13]+681279174&4294967295,_=T+(A<<4&4294967295|A>>>28),A=O+(_^T^M)+P[0]+3936430074&4294967295,O=_+(A<<11&4294967295|A>>>21),A=M+(O^_^T)+P[3]+3572445317&4294967295,M=O+(A<<16&4294967295|A>>>16),A=T+(M^O^_)+P[6]+76029189&4294967295,T=M+(A<<23&4294967295|A>>>9),A=_+(T^M^O)+P[9]+3654602809&4294967295,_=T+(A<<4&4294967295|A>>>28),A=O+(_^T^M)+P[12]+3873151461&4294967295,O=_+(A<<11&4294967295|A>>>21),A=M+(O^_^T)+P[15]+530742520&4294967295,M=O+(A<<16&4294967295|A>>>16),A=T+(M^O^_)+P[2]+3299628645&4294967295,T=M+(A<<23&4294967295|A>>>9),A=_+(M^(T|~O))+P[0]+4096336452&4294967295,_=T+(A<<6&4294967295|A>>>26),A=O+(T^(_|~M))+P[7]+1126891415&4294967295,O=_+(A<<10&4294967295|A>>>22),A=M+(_^(O|~T))+P[14]+2878612391&4294967295,M=O+(A<<15&4294967295|A>>>17),A=T+(O^(M|~_))+P[5]+4237533241&4294967295,T=M+(A<<21&4294967295|A>>>11),A=_+(M^(T|~O))+P[12]+1700485571&4294967295,_=T+(A<<6&4294967295|A>>>26),A=O+(T^(_|~M))+P[3]+2399980690&4294967295,O=_+(A<<10&4294967295|A>>>22),A=M+(_^(O|~T))+P[10]+4293915773&4294967295,M=O+(A<<15&4294967295|A>>>17),A=T+(O^(M|~_))+P[1]+2240044497&4294967295,T=M+(A<<21&4294967295|A>>>11),A=_+(M^(T|~O))+P[8]+1873313359&4294967295,_=T+(A<<6&4294967295|A>>>26),A=O+(T^(_|~M))+P[15]+4264355552&4294967295,O=_+(A<<10&4294967295|A>>>22),A=M+(_^(O|~T))+P[6]+2734768916&4294967295,M=O+(A<<15&4294967295|A>>>17),A=T+(O^(M|~_))+P[13]+1309151649&4294967295,T=M+(A<<21&4294967295|A>>>11),A=_+(M^(T|~O))+P[4]+4149444226&4294967295,_=T+(A<<6&4294967295|A>>>26),A=O+(T^(_|~M))+P[11]+3174756917&4294967295,O=_+(A<<10&4294967295|A>>>22),A=M+(_^(O|~T))+P[2]+718787259&4294967295,M=O+(A<<15&4294967295|A>>>17),A=T+(O^(M|~_))+P[9]+3951481745&4294967295,C.g[0]=C.g[0]+_&4294967295,C.g[1]=C.g[1]+(M+(A<<21&4294967295|A>>>11))&4294967295,C.g[2]=C.g[2]+M&4294967295,C.g[3]=C.g[3]+O&4294967295}r.prototype.u=function(C,_){_===void 0&&(_=C.length);for(var T=_-this.blockSize,P=this.B,M=this.h,O=0;O<_;){if(M==0)for(;O<=T;)o(this,C,O),O+=this.blockSize;if(typeof C=="string"){for(;O<_;)if(P[M++]=C.charCodeAt(O++),M==this.blockSize){o(this,P),M=0;break}}else for(;O<_;)if(P[M++]=C[O++],M==this.blockSize){o(this,P),M=0;break}}this.h=M,this.o+=_},r.prototype.v=function(){var C=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);C[0]=128;for(var _=1;_<C.length-8;++_)C[_]=0;var T=8*this.o;for(_=C.length-8;_<C.length;++_)C[_]=T&255,T/=256;for(this.u(C),C=Array(16),_=T=0;4>_;++_)for(var P=0;32>P;P+=8)C[T++]=this.g[_]>>>P&255;return C};function i(C,_){var T=a;return Object.prototype.hasOwnProperty.call(T,C)?T[C]:T[C]=_(C)}function s(C,_){this.h=_;for(var T=[],P=!0,M=C.length-1;0<=M;M--){var O=C[M]|0;P&&O==_||(T[M]=O,P=!1)}this.g=T}var a={};function l(C){return-128<=C&&128>C?i(C,function(_){return new s([_|0],0>_?-1:0)}):new s([C|0],0>C?-1:0)}function u(C){if(isNaN(C)||!isFinite(C))return d;if(0>C)return w(u(-C));for(var _=[],T=1,P=0;C>=T;P++)_[P]=C/T|0,T*=4294967296;return new s(_,0)}function c(C,_){if(C.length==0)throw Error("number format error: empty string");if(_=_||10,2>_||36<_)throw Error("radix out of range: "+_);if(C.charAt(0)=="-")return w(c(C.substring(1),_));if(0<=C.indexOf("-"))throw Error('number format error: interior "-" character');for(var T=u(Math.pow(_,8)),P=d,M=0;M<C.length;M+=8){var O=Math.min(8,C.length-M),A=parseInt(C.substring(M,M+O),_);8>O?(O=u(Math.pow(_,O)),P=P.j(O).add(u(A))):(P=P.j(T),P=P.add(u(A)))}return P}var d=l(0),f=l(1),h=l(16777216);e=s.prototype,e.m=function(){if(v(this))return-w(this).m();for(var C=0,_=1,T=0;T<this.g.length;T++){var P=this.i(T);C+=(0<=P?P:4294967296+P)*_,_*=4294967296}return C},e.toString=function(C){if(C=C||10,2>C||36<C)throw Error("radix out of range: "+C);if(g(this))return"0";if(v(this))return"-"+w(this).toString(C);for(var _=u(Math.pow(C,6)),T=this,P="";;){var M=R(T,_).g;T=b(T,M.j(_));var O=((0<T.g.length?T.g[0]:T.h)>>>0).toString(C);if(T=M,g(T))return O+P;for(;6>O.length;)O="0"+O;P=O+P}},e.i=function(C){return 0>C?0:C<this.g.length?this.g[C]:this.h};function g(C){if(C.h!=0)return!1;for(var _=0;_<C.g.length;_++)if(C.g[_]!=0)return!1;return!0}function v(C){return C.h==-1}e.l=function(C){return C=b(this,C),v(C)?-1:g(C)?0:1};function w(C){for(var _=C.g.length,T=[],P=0;P<_;P++)T[P]=~C.g[P];return new s(T,~C.h).add(f)}e.abs=function(){return v(this)?w(this):this},e.add=function(C){for(var _=Math.max(this.g.length,C.g.length),T=[],P=0,M=0;M<=_;M++){var O=P+(this.i(M)&65535)+(C.i(M)&65535),A=(O>>>16)+(this.i(M)>>>16)+(C.i(M)>>>16);P=A>>>16,O&=65535,A&=65535,T[M]=A<<16|O}return new s(T,T[T.length-1]&-2147483648?-1:0)};function b(C,_){return C.add(w(_))}e.j=function(C){if(g(this)||g(C))return d;if(v(this))return v(C)?w(this).j(w(C)):w(w(this).j(C));if(v(C))return w(this.j(w(C)));if(0>this.l(h)&&0>C.l(h))return u(this.m()*C.m());for(var _=this.g.length+C.g.length,T=[],P=0;P<2*_;P++)T[P]=0;for(P=0;P<this.g.length;P++)for(var M=0;M<C.g.length;M++){var O=this.i(P)>>>16,A=this.i(P)&65535,V=C.i(M)>>>16,z=C.i(M)&65535;T[2*P+2*M]+=A*z,y(T,2*P+2*M),T[2*P+2*M+1]+=O*z,y(T,2*P+2*M+1),T[2*P+2*M+1]+=A*V,y(T,2*P+2*M+1),T[2*P+2*M+2]+=O*V,y(T,2*P+2*M+2)}for(P=0;P<_;P++)T[P]=T[2*P+1]<<16|T[2*P];for(P=_;P<2*_;P++)T[P]=0;return new s(T,0)};function y(C,_){for(;(C[_]&65535)!=C[_];)C[_+1]+=C[_]>>>16,C[_]&=65535,_++}function x(C,_){this.g=C,this.h=_}function R(C,_){if(g(_))throw Error("division by zero");if(g(C))return new x(d,d);if(v(C))return _=R(w(C),_),new x(w(_.g),w(_.h));if(v(_))return _=R(C,w(_)),new x(w(_.g),_.h);if(30<C.g.length){if(v(C)||v(_))throw Error("slowDivide_ only works with positive integers.");for(var T=f,P=_;0>=P.l(C);)T=k(T),P=k(P);var M=I(T,1),O=I(P,1);for(P=I(P,2),T=I(T,2);!g(P);){var A=O.add(P);0>=A.l(C)&&(M=M.add(T),O=A),P=I(P,1),T=I(T,1)}return _=b(C,M.j(_)),new x(M,_)}for(M=d;0<=C.l(_);){for(T=Math.max(1,Math.floor(C.m()/_.m())),P=Math.ceil(Math.log(T)/Math.LN2),P=48>=P?1:Math.pow(2,P-48),O=u(T),A=O.j(_);v(A)||0<A.l(C);)T-=P,O=u(T),A=O.j(_);g(O)&&(O=f),M=M.add(O),C=b(C,A)}return new x(M,C)}e.A=function(C){return R(this,C).h},e.and=function(C){for(var _=Math.max(this.g.length,C.g.length),T=[],P=0;P<_;P++)T[P]=this.i(P)&C.i(P);return new s(T,this.h&C.h)},e.or=function(C){for(var _=Math.max(this.g.length,C.g.length),T=[],P=0;P<_;P++)T[P]=this.i(P)|C.i(P);return new s(T,this.h|C.h)},e.xor=function(C){for(var _=Math.max(this.g.length,C.g.length),T=[],P=0;P<_;P++)T[P]=this.i(P)^C.i(P);return new s(T,this.h^C.h)};function k(C){for(var _=C.g.length+1,T=[],P=0;P<_;P++)T[P]=C.i(P)<<1|C.i(P-1)>>>31;return new s(T,C.h)}function I(C,_){var T=_>>5;_%=32;for(var P=C.g.length-T,M=[],O=0;O<P;O++)M[O]=0<_?C.i(O+T)>>>_|C.i(O+T+1)<<32-_:C.i(O+T);return new s(M,C.h)}r.prototype.digest=r.prototype.v,r.prototype.reset=r.prototype.s,r.prototype.update=r.prototype.u,s.prototype.add=s.prototype.add,s.prototype.multiply=s.prototype.j,s.prototype.modulo=s.prototype.A,s.prototype.compare=s.prototype.l,s.prototype.toNumber=s.prototype.m,s.prototype.toString=s.prototype.toString,s.prototype.getBits=s.prototype.i,s.fromNumber=u,s.fromString=c,lI=s}).apply(typeof IC<"u"?IC:typeof self<"u"?self:typeof window<"u"?window:{});var Zd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};(function(){var e,t=typeof Object.defineProperties=="function"?Object.defineProperty:function(m,E,D){return m==Array.prototype||m==Object.prototype||(m[E]=D.value),m};function n(m){m=[typeof globalThis=="object"&&globalThis,m,typeof window=="object"&&window,typeof self=="object"&&self,typeof Zd=="object"&&Zd];for(var E=0;E<m.length;++E){var D=m[E];if(D&&D.Math==Math)return D}throw Error("Cannot find global object")}var r=n(this);function o(m,E){if(E)e:{var D=r;m=m.split(".");for(var $=0;$<m.length-1;$++){var Q=m[$];if(!(Q in D))break e;D=D[Q]}m=m[m.length-1],$=D[m],E=E($),E!=$&&E!=null&&t(D,m,{configurable:!0,writable:!0,value:E})}}function i(m,E){m instanceof String&&(m+="");var D=0,$=!1,Q={next:function(){if(!$&&D<m.length){var ie=D++;return{value:E(ie,m[ie]),done:!1}}return $=!0,{done:!0,value:void 0}}};return Q[Symbol.iterator]=function(){return Q},Q}o("Array.prototype.values",function(m){return m||function(){return i(this,function(E,D){return D})}});/** @license
1561
1562 Copyright The Closure Library Authors.
1563 SPDX-License-Identifier: Apache-2.0
1564*/var s=s||{},a=this||self;function l(m){var E=typeof m;return E=E!="object"?E:m?Array.isArray(m)?"array":E:"null",E=="array"||E=="object"&&typeof m.length=="number"}function u(m){var E=typeof m;return E=="object"&&m!=null||E=="function"}function c(m,E,D){return m.call.apply(m.bind,arguments)}function d(m,E,D){if(!m)throw Error();if(2<arguments.length){var $=Array.prototype.slice.call(arguments,2);return function(){var Q=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(Q,$),m.apply(E,Q)}}return function(){return m.apply(E,arguments)}}function f(m,E,D){return f=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?c:d,f.apply(null,arguments)}function h(m,E){var D=Array.prototype.slice.call(arguments,1);return function(){var $=D.slice();return $.push.apply($,arguments),m.apply(this,$)}}function g(m,E){function D(){}D.prototype=E.prototype,m.aa=E.prototype,m.prototype=new D,m.prototype.constructor=m,m.Qb=function($,Q,ie){for(var Se=Array(arguments.length-2),Tt=2;Tt<arguments.length;Tt++)Se[Tt-2]=arguments[Tt];return E.prototype[Q].apply($,Se)}}function v(m){const E=m.length;if(0<E){const D=Array(E);for(let $=0;$<E;$++)D[$]=m[$];return D}return[]}function w(m,E){for(let D=1;D<arguments.length;D++){const $=arguments[D];if(l($)){const Q=m.length||0,ie=$.length||0;m.length=Q+ie;for(let Se=0;Se<ie;Se++)m[Q+Se]=$[Se]}else m.push($)}}class b{constructor(E,D){this.i=E,this.j=D,this.h=0,this.g=null}get(){let E;return 0<this.h?(this.h--,E=this.g,this.g=E.next,E.next=null):E=this.i(),E}}function y(m){return/^[\s\xa0]*$/.test(m)}function x(){var m=a.navigator;return m&&(m=m.userAgent)?m:""}function R(m){return R[" "](m),m}R[" "]=function(){};var k=x().indexOf("Gecko")!=-1&&!(x().toLowerCase().indexOf("webkit")!=-1&&x().indexOf("Edge")==-1)&&!(x().indexOf("Trident")!=-1||x().indexOf("MSIE")!=-1)&&x().indexOf("Edge")==-1;function I(m,E,D){for(const $ in m)E.call(D,m[$],$,m)}function C(m,E){for(const D in m)E.call(void 0,m[D],D,m)}function _(m){const E={};for(const D in m)E[D]=m[D];return E}const T="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1564ing toString valueOf".split(" ");function P(m,E){let D,$;for(let Q=1;Q<arguments.length;Q++){$=arguments[Q];for(D in $)m[D]=$[D];for(let ie=0;ie<T.length;ie++)D=T[ie],Object.prototype.hasOwnProperty.call($,D)&&(m[D]=$[D])}}function M(m){var E=1;m=m.split(":");const D=[];for(;0<E&&m.length;)D.push(m.shift()),E--;return m.length&&D.push(m.join(":")),D}function O(m){a.setTimeout(()=>{throw m},0)}function A(){var m=L;let E=null;return m.g&&(E=m.g,m.g=m.g.next,m.g||(m.h=null),E.next=null),E}class V{constructor(){this.h=this.g=null}add(E,D){const $=z.get();$.set(E,D),this.h?this.h.next=$:this.g=$,this.h=$}}var z=new b(()=>new N,m=>m.reset());class N{constructor(){this.next=this.g=this.h=null}set(E,D){this.h=E,this.g=D,this.next=null}reset(){this.next=this.g=this.h=null}}let F,j=!1,L=new V,B=()=>{const m=a.Promise.resolve(void 0);F=()=>{m.then(H)}};var H=()=>{for(var m;m=A();){try{m.h.call(m.g)}catch(D){O(D)}var E=z;E.j(m),100>E.h&&(E.h++,m.next=E.g,E.g=m)}j=!1};function G(){this.s=this.s,this.C=this.C}G.prototype.s=!1,G.prototype.ma=function(){this.s||(this.s=!0,this.N())},G.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function ee(m,E){this.type=m,this.g=this.target=E,this.defaultPrevented=!1}ee.prototype.h=function(){this.defaultPrevented=!0};var oe=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var m=!1,E=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const D=()=>{};a.addEventListener("test",D,E),a.removeEventListener("test",D,E)}catch{}return m}();function X(m,E){if(ee.call(this,m?m.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,m){var D=this.type=m.type,$=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=E,E=m.relatedTarget){if(k){e:{try{R(E.nodeName);var Q=!0;break e}catch{}Q=!1}Q||(E=null)}}else D=="mouseover"?E=m.fromElement:D=="mouseout"&&(E=m.toElement);this.relatedTarget=E,$?(this.clientX=$.clientX!==void 0?$.clientX:$.pageX,this.clientY=$.clientY!==void 0?$.clientY:$.pageY,this.screenX=$.screenX||0,this.screenY=$.screenY||0):(this.clientX=m.clientX!==void 0?m.clientX:m.pageX,this.clientY=m.clientY!==void 0?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0),this.button=m.button,this.key=m.key||"",this.ctrlKey=m.ctrlKey,this.altKey=m.altKey,this.shiftKey=m.shiftKey,this.metaKey=m.metaKey,this.pointerId=m.pointerId||0,this.pointerType=typeof m.pointerType=="string"?m.pointerType:J[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&X.aa.h.call(this)}}g(X,ee);var J={2:"touch",3:"pen",4:"mouse"};X.prototype.h=function(){X.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var q="closure_listenable_"+(1e6*Math.random()|0),ne=0;function Y(m,E,D,$,Q){this.listener=m,this.proxy=null,this.src=E,this.type=D,this.capture=!!$,this.ha=Q,this.key=++ne,this.da=this.fa=!1}function W(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function se(m){this.src=m,this.g={},this.h=0}se.prototype.add=function(m,E,D,$,Q){var ie=m.toString();m=this.g[ie],m||(m=this.g[ie]=[],this.h++);var Se=le(m,E,$,Q);return-1<Se?(E=m[Se],D||(E.fa=!1)):(E=new Y(E,this.src,ie,!!$,Q),E.fa=D,m.push(E)),E};function ue(m,E){var D=E.type;if(D in m.g){var $=m.g[D],Q=Array.prototype.indexOf.call($,E,void 0),ie;(ie=0<=Q)&&Array.prototype.splice.call($,Q,1),ie&&(W(E),m.g[D].length==0&&(delete m.g[D],m.h--))}}function le(m,E,D,$){for(var Q=0;Q<m.length;++Q){var ie=m[Q];if(!ie.da&&ie.listener==E&&ie.capture==!!D&&ie.ha==$)return Q}return-1}var Re="closure_lm_"+(1e6*Math.random()|0),ye={};function ge(m,E,D,$,Q){if(Array.isArray(E)){for(var ie=0;ie<E.length;ie++)ge(m,E[ie],D,$,Q);return null}return D=xe(D),m&&m[q]?m.K(E,D,u($)?!!$.capture:!1,Q):Le(m,E,D,!1,$,Q)}function Le(m,E,D,$,Q,ie){if(!E)throw Error("Invalid event type");var Se=u(Q)?!!Q.capture:!!Q,Tt=Ge(m);if(Tt||(m[Re]=Tt=new se(m)),D=Tt.add(E,D,$,Se,ie),D.proxy)return D;if($=de(),D.proxy=$,$.src=m,$.listener=D,m.addEventListener)oe||(Q=Se),Q===void 0&&(Q=!1),m.addEventListener(E.toString(),$,Q);else if(m.attachEvent)m.attachEvent(Be(E.toString()),$);else if(m.addListener&&m.removeListener)m.addListener($);else throw Error("addEventListener and attachEvent are unavailable.");return D}function de(){function m(D){return E.call(m.src,m.listener,D)}const E=wt;return m}function De(m,E,D,$,Q){if(Array.isArray(E))for(var ie=0;ie<E.length;ie++)De(m,E[ie],D,$,Q);else $=u($)?!!$.capture:!!$,D=xe(D),m&&m[q]?(m=m.i,E=String(E).toString(),E in m.g&&(ie=m.g[E],D=le(ie,D,$,Q),-1<D&&(W(ie[D]),Array.prototype.splice.call(ie,D,1),ie.length==0&&(delete m.g[E],m.h--))
vendor: 31,840 bytes, lines 1564-1572
1564)):m&&(m=Ge(m))&&(E=m.g[E.toString()],m=-1,E&&(m=le(E,D,$,Q)),(D=-1<m?E[m]:null)&&Oe(D))}function Oe(m){if(typeof m!="number"&&m&&!m.da){var E=m.src;if(E&&E[q])ue(E.i,m);else{var D=m.type,$=m.proxy;E.removeEventListener?E.removeEventListener(D,$,m.capture):E.detachEvent?E.detachEvent(Be(D),$):E.addListener&&E.removeListener&&E.removeListener($),(D=Ge(E))?(ue(D,m),D.h==0&&(D.src=null,E[Re]=null)):W(m)}}}function Be(m){return m in ye?ye[m]:ye[m]="on"+m}function wt(m,E){if(m.da)m=!0;else{E=new X(E,this);var D=m.listener,$=m.ha||m.src;m.fa&&Oe(m),m=D.call($,E)}return m}function Ge(m){return m=m[Re],m instanceof se?m:null}var he="__closure_events_fn_"+(1e9*Math.random()>>>0);function xe(m){return typeof m=="function"?m:(m[he]||(m[he]=function(E){return m.handleEvent(E)}),m[he])}function me(){G.call(this),this.i=new se(this),this.M=this,this.F=null}g(me,G),me.prototype[q]=!0,me.prototype.removeEventListener=function(m,E,D,$){De(this,m,E,D,$)};function ze(m,E){var D,$=m.F;if($)for(D=[];$;$=$.F)D.push($);if(m=m.M,$=E.type||E,typeof E=="string")E=new ee(E,m);else if(E instanceof ee)E.target=E.target||m;else{var Q=E;E=new ee($,m),P(E,Q)}if(Q=!0,D)for(var ie=D.length-1;0<=ie;ie--){var Se=E.g=D[ie];Q=Ee(Se,$,!0,E)&&Q}if(Se=E.g=m,Q=Ee(Se,$,!0,E)&&Q,Q=Ee(Se,$,!1,E)&&Q,D)for(ie=0;ie<D.length;ie++)Se=E.g=D[ie],Q=Ee(Se,$,!1,E)&&Q}me.prototype.N=function(){if(me.aa.N.call(this),this.i){var m=this.i,E;for(E in m.g){for(var D=m.g[E],$=0;$<D.length;$++)W(D[$]);delete m.g[E],m.h--}}this.F=null},me.prototype.K=function(m,E,D,$){return this.i.add(String(m),E,!1,D,$)},me.prototype.L=function(m,E,D,$){return this.i.add(String(m),E,!0,D,$)};function Ee(m,E,D,$){if(E=m.i.g[String(E)],!E)return!0;E=E.concat();for(var Q=!0,ie=0;ie<E.length;++ie){var Se=E[ie];if(Se&&!Se.da&&Se.capture==D){var Tt=Se.listener,wn=Se.ha||Se.src;Se.fa&&ue(m.i,Se),Q=Tt.call(wn,$)!==!1&&Q}}return Q&&!$.defaultPrevented}function Ve(m,E,D){if(typeof m=="function")D&&(m=f(m,D));else if(m&&typeof m.handleEvent=="function")m=f(m.handleEvent,m);else throw Error("Invalid listener argument");return 2147483647<Number(E)?-1:a.setTimeout(m,E||0)}function He(m){m.g=Ve(()=>{m.g=null,m.i&&(m.i=!1,He(m))},m.l);const E=m.h;m.h=null,m.m.apply(null,E)}class Ue extends G{constructor(E,D){super(),this.m=E,this.l=D,this.h=null,this.i=!1,this.g=null}j(E){this.h=arguments,this.g?this.i=!0:He(this)}N(){super.N(),this.g&&(a.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function xt(m){G.call(this),this.h=m,this.g={}}g(xt,G);var Et=[];function zt(m){I(m.g,function(E,D){this.g.hasOwnProperty(D)&&Oe(E)},m),m.g={}}xt.prototype.N=function(){xt.aa.N.call(this),zt(this)},xt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var rt=a.JSON.stringify,Wt=a.JSON.parse,an=class{stringify(m){return a.JSON.stringify(m,void 0)}parse(m){return a.JSON.parse(m,void 0)}};function dr(){}dr.prototype.h=null;function Xn(m){return m.h||(m.h=m.i())}function Zt(){}var bn={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function ln(){ee.call(this,"d")}g(ln,ee);function Vt(){ee.call(this,"c")}g(Vt,ee);var zn={},$o=null;function Tr(){return $o=$o||new me}zn.La="serverreachability";function gt(m){ee.call(this,zn.La,m)}g(gt,ee);function be(m){const E=Tr();ze(E,new gt(E))}zn.STAT_EVENT="statevent";function fr(m,E){ee.call(this,zn.STAT_EVENT,m),this.stat=E}g(fr,ee);function et(m){const E=Tr();ze(E,new fr(E,m))}zn.Ma="timingevent";function U(m,E){ee.call(this,zn.Ma,m),this.size=E}g(U,ee);function K(m,E){if(typeof m!="function")throw Error("Fn must not be null and must be a function");return a.setTimeout(function(){m()},E)}function Z(){this.g=!0}Z.prototype.xa=function(){this.g=!1};function ce(m,E,D,$,Q,ie){m.info(function(){if(m.g)if(ie)for(var Se="",Tt=ie.split("&"),wn=0;wn<Tt.length;wn++){var ht=Tt[wn].split("=");if(1<ht.length){var Mn=ht[0];ht=ht[1];var Dn=Mn.split("_");Se=2<=Dn.length&&Dn[1]=="type"?Se+(Mn+"="+ht+"&"):Se+(Mn+"=redacted&")}}else Se=null;else Se=ie;return"XMLHTTP REQ ("+$+") [attempt "+Q+"]: "+E+`
1565`+D+`
1566`+Se})}function we(m,E,D,$,Q,ie,Se){m.info(function(){return"XMLHTTP RESP ("+$+") [ attempt "+Q+"]: "+E+`
1567`+D+`
1568`+ie+" "+Se})}function Ae(m,E,D,$){m.info(function(){return"XMLHTTP TEXT ("+E+"): "+ke(m,D)+($?" "+$:"")})}function Ke(m,E){m.info(function(){return"TIMEOUT: "+E})}Z.prototype.info=function(){};function ke(m,E){if(!m.g)return E;if(!E)return null;try{var D=JSON.parse(E);if(D){for(m=0;m<D.length;m++)if(Array.isArray(D[m])){var $=D[m];if(!(2>$.length)){var Q=$[1];if(Array.isArray(Q)&&!(1>Q.length)){var ie=Q[0];if(ie!="noop"&&ie!="stop"&&ie!="close")for(var Se=1;Se<Q.length;Se++)Q[Se]=""}}}}return rt(D)}catch{return E}}var Ie={NO_ERROR:0,TIMEOUT:8},Pe={},ve;function qe(){}g(qe,dr),qe.prototype.g=function(){return new XMLHttpRequest},qe.prototype.i=function(){return{}},ve=new qe;function Je(m,E,D,$){this.j=m,this.i=E,this.l=D,this.R=$||1,this.U=new xt(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new Bt}function Bt(){this.i=null,this.g="",this.h=!1}var vt={},ut={};function Pt(m,E,D){m.L=1,m.v=bd(Ho(E)),m.m=D,m.P=!0,zo(m,null)}function zo(m,E){m.F=Date.now(),Vn(m),m.A=Ho(m.v);var D=m.A,$=m.R;Array.isArray($)||($=[String($)]),gx(D.i,"t",$),m.C=0,D=m.j.J,m.h=new Bt,m.g=jx(m.j,D?E:null,!m.m),0<m.O&&(m.M=new Ue(f(m.Y,m,m.g),m.O)),E=m.U,D=m.g,$=m.ca;var Q="readystatechange";Array.isArray(Q)||(Q&&(Et[0]=Q.toString()),Q=Et);for(var ie=0;ie<Q.length;ie++){var Se=ge(D,Q[ie],$||E.handleEvent,!1,E.h||E);if(!Se)break;E.g[Se.key]=Se}E=m.H?_(m.H):{},m.m?(m.u||(m.u="POST"),E["Content-Type"]="application/x-www-form-urlencoded",m.g.ea(m.A,m.u,m.m,E)):(m.u="GET",m.g.ea(m.A,m.u,null,E)),be(),ce(m.i,m.u,m.A,m.l,m.R,m.m)}Je.prototype.ca=function(m){m=m.target;const E=this.M;E&&Uo(m)==3?E.j():this.Y(m)},Je.prototype.Y=function(m){try{if(m==this.g)e:{const Dn=Uo(this.g);var E=this.g.Ba();const Oa=this.g.Z();if(!(3>Dn)&&(Dn!=3||this.g&&(this.h.h||this.g.oa()||Cx(this.g)))){this.J||Dn!=4||E==7||(E==8||0>=Oa?be(3):be(2)),Vo(this);var D=this.g.Z();this.X=D;t:if(Di(this)){var $=Cx(this.g);m="";var Q=$.length,ie=Uo(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){Pr(this),pr(this);var Se="";break t}this.h.i=new a.TextDecoder}for(E=0;E<Q;E++)this.h.h=!0,m+=this.h.i.decode($[E],{stream:!(ie&&E==Q-1)});$.length=0,this.h.g+=m,this.C=0,Se=this.h.g}else Se=this.g.oa();if(this.o=D==200,we(this.i,this.u,this.A,this.l,this.R,Dn,D),this.o){if(this.T&&!this.K){t:{if(this.g){var Tt,wn=this.g;if((Tt=wn.g?wn.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!y(Tt)){var ht=Tt;break t}}ht=null}if(D=ht)Ae(this.i,this.l,D,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Ai(this,D);else{this.o=!1,this.s=3,et(12),Pr(this),pr(this);break e}}if(this.P){D=!0;let Yr;for(;!this.J&&this.C<Se.length;)if(Yr=qr(this,Se),Yr==ut){Dn==4&&(this.s=4,et(14),D=!1),Ae(this.i,this.l,null,"[Incomplete Response]");break}else if(Yr==vt){this.s=4,et(15),Ae(this.i,this.l,Se,"[Invalid Chunk]"),D=!1;break}else Ae(this.i,this.l,Yr,null),Ai(this,Yr);if(Di(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),Dn!=4||Se.length!=0||this.h.h||(this.s=1,et(16),D=!1),this.o=this.o&&D,!D)Ae(this.i,this.l,Se,"[Invalid Chunked Response]"),Pr(this),pr(this);else if(0<Se.length&&!this.W){this.W=!0;var Mn=this.j;Mn.g==this&&Mn.ba&&!Mn.M&&(Mn.j.info("Great, no buffering proxy detected. Bytes received: "+Se.length),Em(Mn),Mn.M=!0,et(11))}}else Ae(this.i,this.l,Se,null),Ai(this,Se);Dn==4&&Pr(this),this.o&&!this.J&&(Dn==4?Ix(this.j,this):(this.o=!1,Vn(this)))}else ED(this.g),D==400&&0<Se.indexOf("Unknown SID")?(this.s=3,et(12)):(this.s=0,et(13)),Pr(this),pr(this)}}}catch{}finally{}};function Di(m){return m.g?m.u=="GET"&&m.L!=2&&m.j.Ca:!1}function qr(m,E){var D=m.C,$=E.indexOf(`
1569`,D);return $==-1?ut:(D=Number(E.substring(D,$)),isNaN(D)?vt:($+=1,$+D>E.length?ut:(E=E.slice($,$+D),m.C=$+D,E)))}Je.prototype.cancel=function(){this.J=!0,Pr(this)};function Vn(m){m.S=Date.now()+m.I,Da(m,m.I)}function Da(m,E){if(m.B!=null)throw Error("WatchDog timer not null");m.B=K(f(m.ba,m),E)}function Vo(m){m.B&&(a.clearTimeout(m.B),m.B=null)}Je.prototype.ba=function(){this.B=null;const m=Date.now();0<=m-this.S?(Ke(this.i,this.A),this.L!=2&&(be(),et(17)),Pr(this),this.s=2,pr(this)):Da(this,this.S-m)};function pr(m){m.j.G==0||m.J||Ix(m.j,m)}function Pr(m){Vo(m);var E=m.M;E&&typeof E.ma=="function"&&E.ma(),m.M=null,zt(m.U),m.g&&(E=m.g,m.g=null,E.abort(),E.ma())}function Ai(m,E){try{var D=m.j;if(D.G!=0&&(D.g==m||Ft(D.h,m))){if(!m.K&&Ft(D.h,m)&&D.G==3){try{var $=D.Da.g.parse(E)}catch{$=null}if(Array.isArray($)&&$.length==3){var Q=$;if(Q[0]==0){e:if(!D.u){if(D.g)if(D.g.F+3e3<m.F)Rd(D),Cd(D);else break e;Rm(D),et(18)}}else D.za=Q[1],0<D.za-D.T&&37500>Q[2]&&D.F&&D.v==0&&!D.C&&(D.C=K(f(D.Za,D),6e3));if(1>=ji(D.h)&&D.ca){try{D.ca()}catch{}D.ca=void 0}}else Ns(D,11)}else if((m.K||D.g==m)&&Rd(D),!y(E))for(Q=D.Da.g.parse(E),E=0;E<Q.length;E++){let ht=Q[E];if(D.T=ht[0],ht=ht[1],D.G==2)if(ht[0]=="c"){D.K=ht[1],D.ia=ht[2];const Mn=ht[3];Mn!=null&&(D.la=Mn,D.j.info("VER="+D.la));const Dn=ht[4];Dn!=null&&(D.Aa=Dn,D.j.info("SVER="+D.Aa));const Oa=ht[5];Oa!=null&&typeof Oa=="number"&&0<Oa&&($=1.5*Oa,D.L=$,D.j.info("backChannelRequestTimeoutMs_="+$)),$=D;const Yr=m.g;if(Yr){const Ed=Yr.g?Yr.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(Ed){var ie=$.h;ie.g||Ed.indexOf("spdy")==-1&&Ed.indexOf("quic")==-1&&Ed.indexOf("h2")==-1||(ie.j=ie.l,ie.g=new Set,ie.h&&(yo(ie,ie.h),ie.h=null))}if($.D){const Tm=Yr.g?Yr.g.getResponseHeader("X-HTTP-Session-Id"):null;Tm&&($.ya=Tm,Dt($.I,$.D,Tm))}}D.G=3,D.l&&D.l.ua(),D.ba&&(D.R=Date.now()-m.F,D.j.info("Handshake RTT: "+D.R+"ms")),$=D;var Se=m;if($.qa=Ax($,$.J?$.ia:null,$.W),Se.K){fu($.h,Se);var Tt=Se,wn=$.L;wn&&(Tt.I=wn),Tt.B&&(Vo(Tt),Vn(Tt)),$.g=Se}else Px($);0<D.i.length&&_d(D)}else ht[0]!="stop"&&ht[0]!="close"||Ns(D,7);else D.G==3&&(ht[0]=="stop"||ht[0]=="close"?ht[0]=="stop"?Ns(D,7):_m(D):ht[0]!="noop"&&D.l&&D.l.ta(ht),D.v=0)}}be(4)}catch{}}var dt=class{constructor(m,E){this.g=m,this.map=E}};function Mt(m){this.l=m||10,a.PerformanceNavigationTiming?(m=a.performance.getEntriesByType("navigation"),m=0<m.length&&(m[0].nextHopProtocol=="hq"||m[0].nextHopProtocol=="h2")):m=!!(a.chrome&&a.chrome.loadTimes&&a.chrome.loadTimes()&&a.chrome.loadTimes().wasFetchedViaSpdy),this.j=m?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function Bo(m){return m.h?!0:m.g?m.g.size>=m.j:!1}function ji(m){return m.h?1:m.g?m.g.size:0}function Ft(m,E){return m.h?m.h==E:m.g?m.g.has(E):!1}function yo(m,E){m.g?m.g.add(E):m.h=E}function fu(m,E){m.h&&m.h==E?m.h=null:m.g&&m.g.has(E)&&m.g.delete(E)}Mt.prototype.cancel=function(){if(this.i=gd(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const m of this.g.values())m.cancel();this.g.clear()}};function gd(m){if(m.h!=null)return m.i.concat(m.h.D);if(m.g!=null&&m.g.size!==0){let E=m.i;for(const D of m.g.values())E=E.concat(D.D);return E}return v(m.i)}function dD(m){if(m.V&&typeof m.V=="function")return m.V();if(typeof Map<"u"&&m instanceof Map||typeof Set<"u"&&m instanceof Set)return Array.from(m.values());if(typeof m=="string")return m.split("");if(l(m)){for(var E=[],D=m.length,$=0;$<D;$++)E.push(m[$]);return E}E=[],D=0;for($ in m)E[D++]=m[$];return E}function fD(m){if(m.na&&typeof m.na=="function")return m.na();if(!m.V||typeof m.V!="function"){if(typeof Map<"u"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set<"u"&&m instanceof Set)){if(l(m)||typeof m=="string"){var E=[];m=m.length;for(var D=0;D<m;D++)E.push(D);return E}E=[],D=0;for(const $ in m)E[D++]=$;return E}}}function cx(m,E){if(m.forEach&&typeof m.forEach=="function")m.forEach(E,void 0);else if(l(m)||typeof m=="string")Array.prototype.forEach.call(m,E,void 0);else for(var D=fD(m),$=dD(m),Q=$.length,ie=0;ie<Q;ie++)E.call(void 0,$[ie],D&&D[ie],m)}var dx=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function pD(m,E){if(m){m=m.split("&");for(var D=0;D<m.length;D++){var $=m[D].indexOf("="),Q=null;if(0<=$){var ie=m[D].substring(0,$);Q=m[D].substring($+1)}else ie=m[D];E(ie,Q?decodeURIComponent(Q.replace(/\+/g," ")):"")}}}function Os(m){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,m instanceof Os){this.h=m.h,vd(this,m.j),this.o=m.o,this.g=m.g,yd(this,m.s),this.l=m.l;var E=m.i,D=new mu;D.i=E.i,E.g&&(D.g=new Map(E.g),D.h=E.h),fx(this,D),this.m=m.m}else m&&(E=String(m).match(dx))?(this.h=!1,vd(this,E[1]||"",!0),this.o=pu(E[2]||""),this.g=pu(E[3]||"",!0),yd(this,E[4]),this.l=pu(E[5]||"",!0),fx(this,E[6]||"",!0),this.m=pu(E[7]||"")):(this.h=!1,this.i=new mu(null,this.h))}Os.prototype.toString=function(){var m=[],E=this.j;E&&m.push(hu(E,px,!0),":");var D=this.g;return(D||E=="file")&&(m.push("//"),(E=this.o)&&m.push(hu(E,px,!0),"@"),m.push(encodeURIComponent(String(D)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),D=this.s,D!=null&&m.push(":",String(D))),(D=this.l)&&(this.g&&D.charAt(0)!="/"&&m.push("/"),m.push(hu(D,D.charAt(0)=="/"?gD:mD,!0))),(D=this.i.toString())&&m.push("?",D),(D=this.m)&&m.push("#",hu(D,yD)),m.join("")};function Ho(m){return new Os(m)}function vd(m,E,D){m.j=D?pu(E,!0):E,m.j&&(m.j=m.j.replace(/:$/,""))}function yd(m,E){if(E){if(E=Number(E),isNaN(E)||0>E)throw Error("Bad port number "+E);m.s=E}else m.s=null}function fx(m,E,D){E instanceof mu?(m.i=E,bD(m.i,m.h)):(D||(E=hu(E,vD)),m.i=new mu(E,m.h))}function Dt(m,E,D){m.i.set(E,D)}function bd(m){return Dt(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function pu(m,E){return m?E?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function hu(m,E,D){return typeof m=="string"?(m=encodeURI(m).replace(E,hD),D&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function hD(m){return m=m.charCodeAt(0),"%"+(m>>4&15).toString(16)+(m&15).toString(16)}var px=/[#\/\?@]/g,mD=/[#\?:]/g,gD=/[#\?]/g,vD=/[#\?@]/g,yD=/#/g;function mu(m,E){this.h=this.g=null,this.i=m||null,this.j=!!E}function Oi(m){m.g||(m.g=new Map,m.h=0,m.i&&pD(m.i,function(E,D){m.add(decodeURIComponent(E.replace(/\+/g," ")),D)}))}e=mu.prototype,e.add=function(m,E){Oi(this),this.i=null,m=Aa(this,m);var D=this.g.get(m);return D||this.g.set(m,D=[]),D.push(E),this.h+=1,this};function hx(m,E){Oi(m),E=Aa(m,E),m.g.has(E)&&(m.i=null,m.h-=m.g.get(E).length,m.g.delete(E))}function mx(m,E){return Oi(m),E=Aa(m,E),m.g.has(E)}e.forEach=function(m,E){Oi(this),this.g.forEach(function(D,$){D.forEach(function(Q){m.call(E,Q,$,this)},this)},this)},e.na=function(){Oi(this);const m=Array.from(this.g.values()),E=Array.from(this.g.keys()),D=[];for(let $=0;$<E.length;$++){const Q=m[$];for(let ie=0;ie<Q.length;ie++)D.push(E[$])}return D},e.V=function(m){Oi(this);let E=[];if(typeof m=="string")mx(this,m)&&(E=E.concat(this.g.get(Aa(this,m))));else{m=Array.from(this.g.values());for(let D=0;D<m.length;D++)E=E.concat(m[D])}return E},e.set=function(m,E){return Oi(this),this.i=null,m=Aa(this,m),mx(this,m)&&(this.h-=this.g.get(m).length),this.g.set(m,[E]),this.h+=1,this},e.get=function(m,E){return m?(m=this.V(m),0<m.length?String(m[0]):E):E};function gx(m,E,D){hx(m,E),0<D.length&&(m.i=null,m.g.set(Aa(m,E),v(D)),m.h+=D.length)}e.toString=function(){if(this.i)return this.i;if(!this.g)return"";const m=[],E=Array.from(this.g.keys());for(var D=0;D<E.length;D++){var $=E[D];const ie=encodeURIComponent(String($)),Se=this.V($);for($=0;$<Se.length;$++){var Q=ie;Se[$]!==""&&(Q+="="+encodeURIComponent(String(Se[$]))),m.push(Q)}}return this.i=m.join("&")};function Aa(m,E){return E=String(E),m.j&&(E=E.toLowerCase()),E}function bD(m,E){E&&!m.j&&(Oi(m),m.i=null,m.g.forEach(function(D,$){var Q=$.toLowerCase();$!=Q&&(hx(this,$),gx(this,Q,D))},m)),m.j=E}function wD(m,E){const D=new Z;if(a.Image){const $=new Image;$.onload=h(Ni,D,"TestLoadImage: loaded",!0,E,$),$.onerror=h(Ni,D,"TestLoadImage: error",!1,E,$),$.onabort=h(Ni,D,"TestLoadImage: abort",!1,E,$),$.ontimeout=h(Ni,D,"TestLoadImage: timeout",!1,E,$),a.setTimeout(function(){$.ontimeout&&$.ontimeout()},1e4),$.src=m}else E(!1)}function xD(m,E){const D=new Z,$=new AbortController,Q=setTimeout(()=>{$.abort(),Ni(D,"TestPingServer: timeout",!1,E)},1e4);fetch(m,{signal:$.signal}).then(ie=>{clearTimeout(Q),ie.ok?Ni(D,"TestPingServer: ok",!0,E):Ni(D,"TestPingServer: server error",!1,E)}).catch(()=>{clearTimeout(Q),Ni(D,"TestPingServer: error",!1,E)})}function Ni(m,E,D,$,Q){try{Q&&(Q.onload=null,Q.onerror=null,Q.onabort=null,Q.ontimeout=null),$(D)}catch{}}function SD(){this.g=new an}function CD(m,E,D){const $=D||"";try{cx(m,function(Q,ie){let Se=Q;u(Q)&&(Se=rt(Q)),E.push($+ie+"="+encodeURIComponent(Se))})}catch(Q){throw E.push($+"type="+encodeURIComponent("_badmap")),Q}}function wd(m){this.l=m.Ub||null,this.j=m.eb||!1}g(wd,dr),wd.prototype.g=function(){return new xd(this.l,this.j)},wd.prototype.i=function(m){return function(){return m}}({});function xd(m,E){me.call(this),this.D=m,this.o=E,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}g(xd,me),e=xd.prototype,e.open=function(m,E){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.B=m,this.A=E,this.readyState=1,vu(this)},e.send=function(m){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const E={headers:this.u,method:this.B,credentials:this.m,cache:void 0};m&&(E.body=m),(this.D||a).fetch(new Request(this.A,E)).then(this.Sa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&this.readyState!=4&&(this.g=!1,gu(this)),this.readyState=0},e.Sa=function(m){if(this.g&&(this.l=m,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=m.headers,this.readyState=2,vu(this)),this.g&&(this.readyState=3,vu(this),this.g)))if(this.responseType==="arraybuffer")m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof a.ReadableStream<"u"&&"body"in m){if(this.j=m.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;vx(this)}else m.text().then(this.Ra.bind(this),this.ga.bind(this))};function vx(m){m.j.read().then(m.Pa.bind(m)).catch(m.ga.bind(m))}e.Pa=function(m){if(this.g){if(this.o&&m.value)this.response.push(m.value);else if(!this.o){var E=m.value?m.value:new Uint8Array(0);(E=this.v.decode(E,{stream:!m.done}))&&(this.response=this.responseText+=E)}m.done?gu(this):vu(this),this.readyState==3&&vx(this)}},e.Ra=function(m){this.g&&(this.response=this.responseText=m,gu(this))},e.Qa=function(m){this.g&&(this.response=m,gu(this))},e.ga=function(){this.g&&gu(this)};function gu(m){m.readyState=4,m.l=null,m.j=null,m.v=null,vu(m)}e.setRequestHeader=function(m,E){this.u.append(m,E)},e.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],E=this.h.entries();for(var D=E.next();!D.done;)D=D.value,m.push(D[0]+": "+D[1]),D=E.next();return m.join(`\r
1570`)};function vu(m){m.onreadystatechange&&m.onreadystatechange.call(m)}Object.defineProperty(xd.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(m){this.m=m?"include":"same-origin"}});function yx(m){let E="";return I(m,function(D,$){E+=$,E+=":",E+=D,E+=`\r
1571`}),E}function Cm(m,E,D){e:{for($ in D){var $=!1;break e}$=!0}$||(D=yx(D),typeof m=="string"?D!=null&&encodeURIComponent(String(D)):Dt(m,E,D))}function Xt(m){me.call(this),this.headers=new Map,this.o=m||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}g(Xt,me);var _D=/^https?$/i,RD=["POST","PUT"];e=Xt.prototype,e.Ha=function(m){this.J=m},e.ea=function(m,E,D,$){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);E=E?E.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():ve.g(),this.v=this.o?Xn(this.o):Xn(ve),this.g.onreadystatechange=f(this.Ea,this);try{this.B=!0,this.g.open(E,String(m),!0),this.B=!1}catch(ie){bx(this,ie);return}if(m=D||"",D=new Map(this.headers),$)if(Object.getPrototypeOf($)===Object.prototype)for(var Q in $)D.set(Q,$[Q]);else if(typeof $.keys=="function"&&typeof $.get=="function")for(const ie of $.keys())D.set(ie,$.get(ie));else throw Error("Unknown input type for opt_headers: "+String($));$=Array.from(D.keys()).find(ie=>ie.toLowerCase()=="content-type"),Q=a.FormData&&m instanceof a.FormData,!(0<=Array.prototype.indexOf.call(RD,E,void 0))||$||Q||D.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[ie,Se]of D)this.g.setRequestHeader(ie,Se);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{Sx(this),this.u=!0,this.g.send(m),this.u=!1}catch(ie){bx(this,ie)}};function bx(m,E){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=E,m.m=5,wx(m),Sd(m)}function wx(m){m.A||(m.A=!0,ze(m,"complete"),ze(m,"error"))}e.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,ze(this,"complete"),ze(this,"abort"),Sd(this))},e.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Sd(this,!0)),Xt.aa.N.call(this)},e.Ea=function(){this.s||(this.B||this.u||this.j?xx(this):this.bb())},e.bb=function(){xx(this)};function xx(m){if(m.h&&typeof s<"u"&&(!m.v[1]||Uo(m)!=4||m.Z()!=2)){if(m.u&&Uo(m)==4)Ve(m.Ea,0,m);else if(ze(m,"readystatechange"),Uo(m)==4){m.h=!1;try{const Se=m.Z();e:switch(Se){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var E=!0;break e;default:E=!1}var D;if(!(D=E)){var $;if($=Se===0){var Q=String(m.D).match(dx)[1]||null;!Q&&a.self&&a.self.location&&(Q=a.self.location.protocol.slice(0,-1)),$=!_D.test(Q?Q.toLowerCase():"")}D=$}if(D)ze(m,"complete"),ze(m,"success");else{m.m=6;try{var ie=2<Uo(m)?m.g.statusText:""}catch{ie=""}m.l=ie+" ["+m.Z()+"]",wx(m)}}finally{Sd(m)}}}}function Sd(m,E){if(m.g){Sx(m);const D=m.g,$=m.v[0]?()=>{}:null;m.g=null,m.v=null,E||ze(m,"ready");try{D.onreadystatechange=$}catch{}}}function Sx(m){m.I&&(a.clearTimeout(m.I),m.I=null)}e.isActive=function(){return!!this.g};function Uo(m){return m.g?m.g.readyState:0}e.Z=function(){try{return 2<Uo(this)?this.g.status:-1}catch{return-1}},e.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},e.Oa=function(m){if(this.g){var E=this.g.responseText;return m&&E.indexOf(m)==0&&(E=E.substring(m.length)),Wt(E)}};function Cx(m){try{if(!m.g)return null;if("response"in m.g)return m.g.response;switch(m.H){case"":case"text":return m.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in m.g)return m.g.mozResponseArrayBuffer}return null}catch{return null}}function ED(m){const E={};m=(m.g&&2<=Uo(m)&&m.g.getAllResponseHeaders()||"").split(`\r
1572`);for(let $=0;$<m.length;$++){if(y(m[$]))continue;var D=M(m[$]);const Q=D[0];if(D=D[1],typeof D!="string")continue;D=D.trim();const ie=E[Q]||[];E[Q]=ie,ie.push(D)}C(E,function($){return $.join(", ")})}e.Ba=function(){return this.m},e.Ka=function(){return typeof this.l=="string"?this.l:String(this.l)};function yu(m,E,D){return D&&D.internalChannelParams&&D.internalChannelParams[m]||E}function _x(m){this.Aa=0,this.i=[],this.j=new Z,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=yu("failFast",!1,m),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=yu("baseRetryDelayMs",5e3,m),this.cb=yu("retryDelaySeedMs",1e4,m),this.Wa=yu("forwardChannelMaxRetries",2,m),this.wa=yu("forwardChannelRequestTimeoutMs",2e4,m),this.pa=m&&m.xmlHttpFactory||void 0,this.Xa=m&&m.Tb||void 0,this.Ca=m&&m.useFetchStreams||!1,this.L=void 0,this.J=m&&m.supportsCrossDomainXhr||!1,this.K="",this.h=new Mt(m&&m.concurrentRequestLimit),this.Da=new SD,this.P=m&&m.fastHandshake||!1,this.O=m&&m.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=m&&m.Rb||!1,m&&m.xa&&this.j.xa(),m&&m.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&m&&m.detectBufferingProxy||!1,this.ja=void 0,m&&m.longPollingTimeout&&0<m.longPollingTimeout&&(this.ja=m.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}e=_x.prototype,e.la=8,e.G=1,e.connect=function(m,E,D,$){et(0),this.W=m,this.H=E||{},D&&$!==void 0&&(this.H.OSID=D,this.H.OAID=$),this.F=this.X,this.I=Ax(this,null,this.W),_d(this)};function _m(m){if(Rx(m),m.G==3){var E=m.U++,D=Ho(m.I);if(Dt(D,"SID",m.K),Dt(D,"RID",E),Dt(D,"TYPE","terminate"),bu(m,D),E=new Je(m,m.j,E),E.L=2,E.v=bd(Ho(D)),D=!1,a.navigator&&a.navigator.sendBeacon)try{D=a.navigator.sendBeacon(E.v.toString(),"")}catch{}!D&&a.Image&&(new Image().src=E.v,D=!0),D||(E.g=jx(E.j,null),E.g.ea(E.v)),E.F=Date.now(),Vn(E)}Dx(m)}function Cd(m){m.g&&(Em(m),m.g.cancel(),m.g=null)}function Rx(m){Cd(m),m.u&&(a.clearTimeout(m.u),m.u=null),Rd(m),m.h.cancel(),m.s&&(typeof m.s=="number"&&a.clearTimeout(m.s),m.s=null)}function _d(m){if(!Bo(m.h)&&!m.s){m.s=!0;var E=m.Ga;F||B(),j||(F(),j=!0),L.add(E,m),m.B=0}}function TD(m,E){return ji(m.h)>=m.h.j-(m.s?1:0)?!1:m.s?(m.i=E.D.concat(m.i),!0):m.G==1||m.G==2||m.B>=(m.Va?0:m.Wa)?!1:(m.s=K(f(m.Ga,m,E),Mx(m,m.B)),m.B++,!0)}e.Ga=function(m){if(this.s)if(this.s=null,this.G==1){if(!m){this.U=Math.floor(1e5*Math.random()),m=this.U++;const Q=new Je(this,this.j,m);let ie=this.o;if(this.S&&(ie?(ie=_(ie),P(ie,this.S)):ie=this.S),this.m!==null||this.O||(Q.H=ie,ie=null),this.P)e:{for(var E=0,D=0;D<this.i.length;D++){t:{var $=this.i[D];if("__data__"in $.map&&($=$.map.__data__,typeof $=="string")){$=$.length;break t}$=void 0}if($===void 0)break;if(E+=$,4096<E){E=D;break e}if(E===4096||D===this.i.length-1){E=D+1;break e}}E=1e3}else E=1e3;E=Tx(this,Q,E),D=Ho(this.I),Dt(D,"RID",m),Dt(D,"CVER",22),this.D&&Dt(D,"X-HTTP-Session-Id",this.D),bu(this,D),ie&&(this.O?E="headers="+encodeURIComponent(String(yx(ie)))+"&"+E:this.m&&Cm(D,this.m,ie)),yo(this.h,Q),this.Ua&&Dt(D,"TYPE","init"),this.P?(Dt(D,"$req",E),Dt(D,"SID","null"),Q.T=!0,Pt(Q,D,null)):Pt(Q,D,E),this.G=2}}else this.G==3&&(m?Ex(this,m):this.i.length==0||Bo(this.h)||Ex(this))};function Ex(m,E){var D;E?D=E.l:D=m.U++;const $=Ho(m.I);Dt($,"SID",m.K),Dt($,"RID",D),Dt($,"AID",m.T),bu(m,$),m.m&&m.o&&Cm($,m.m,m.o),D=new Je(m,m.j,D,m.B+1),m.m===null&&(D.H=m.o),E&&(m.i=E.D.concat(m.i)),E=Tx(m,D,1e3),D.I=Math.round(.5*m.wa)+Math.round(.5*m.wa*Math.random()),yo(m.h,D),Pt(D,$,E)}function bu(m,E){m.H&&I(m.H,function(D,$){Dt(E,$,D)}),m.l&&cx({},function(D,$){Dt(E,$,D)})}function Tx(m,E,D){D=Math.min(m.i.length,D);var $=m.l?f(m.l.Na,m.l,m):null;e:{var Q=m.i;let ie=-1;for(;;){const Se=["count="+D];ie==-1?0<D?(ie=Q[0].g,Se.push("ofs="+ie)):ie=0:Se.push("ofs="+ie);let Tt=!0;for(let wn=0;wn<D;wn++){let ht=Q[wn].g;const Mn=Q[wn].map;if(ht-=ie,0>ht)ie=Math.max(0,Q[wn].g-100),Tt=!1;else try{CD(Mn,Se,"req"+ht+"_")}catch{$&&$(Mn)}}if(Tt){$=Se.join("&");break e}}}return m=m.i.splice(0,D),E.D=m,$}function Px(m){if(!m.g&&!m.u){m.Y=1;var E=m.Fa;F||B(),j||(F(),j=!0),L.add(E,m),m.v=0}}function Rm(m){return m.g||m.u||3<=m.v?!1:(m.Y++,m.u=K(f(m.Fa,m),Mx(m,m.v)),m.v++,!0)}e.Fa=function(){if(this.u=null,kx(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var m=2*this.R;this.j.info("BP detection timer enabled: "+m),this.A=K(f(this.ab,this),m)}},e.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,et(10),Cd(this),kx(this))};function Em(m){m.A!=null&&(a.clearTimeout(m.A),m.A=null)}function kx(m){m.g=new Je(m,m.j,"rpc",m.Y),m.m===null&&(m.g.H=m.o),m.g.O=0;var E=Ho(m.qa);Dt(E,"RID","rpc"),Dt(E,"SID",m.K),Dt(E,"AID",m.T),Dt(E,"CI",m.F?"0":"1"),!m.F&&m.ja&&Dt(E,"TO",m.ja),Dt(E,"TYPE","xmlhttp"),bu(m,E),m.m&&m.o&&Cm(E,m.m,m.o),m.L&&(m.g.I=m.L);var D=m.g;m=m.ia,D.L=1,D.v=bd(Ho(E)),D.m=null,D.P=!0,zo(D,m)}e.Za=function(){this.C!=null&&(this.C=null,Cd(this),Rm(this),et(19))};function Rd(m){m.C!=null&&(a.clearTimeout(m.C),m.C=null)}function Ix(m,E){var D=null;if(m.g==E){Rd(m),Em(m),m.g=null;var $=2}else if(Ft(m.h,E))D=E.D,fu(m.h,E),$=1;else return;if(m.G!=0){if(E.o)if($==1){D=E.m?E.m.length:0,E=Date.now()-E.F;var Q=m.B;$=Tr(),ze($,new U($,D)),_d(m)}else Px(m);else if(Q=E.s,Q==3||Q==0&&0<E.X||!($==1&&TD(m,E)||$==2&&Rm(m)))switch(D&&0<D.length&&(E=m.h,E.i=E.i.concat(D)),Q){case 1:Ns(m,5);break;case 4:Ns(m,10);break;case 3:Ns(m,6);break;default:Ns(m,2)}}}function Mx(m,E){let D=m.Ta+Math.floor(Math.random()*m.cb);return m.isActive()||(D*=2),D*E}function Ns(m,E){if(m.j.info("Error code "+E),E==2){var D=f(m.fb,m),$=m.Xa;const Q=!$;$=new Os($||"//www.google.com/images/cleardot.gif"),a.location&&a.location.protocol=="http"||vd($,"https"),bd($),Q?wD($.toString(),D):xD($.toString(),D)}else et(2);m.G=0,m.l&&m.l.sa(E),Dx(m),Rx(m)}e.fb=function(m){m?(this.j.info("Successfully pinged google.com"),et(2)):(this.j.info("Failed to ping google.com"),et(1))};function Dx(m){if(m.G=0,m.ka=[],m.l){const E=gd(m.h);(E.length!=0||m.i.length!=0)&&(w(m.ka,E),w(m.ka,m.i),m.h.i.length=0,v(m.i),m.i.length=0),m.l.ra()}}function Ax(m,E,D){var $=D instanceof Os?Ho(D):new Os(D);if($.g!="")E&&($.g=E+"."+$.g),yd($,$.s);else{var Q=a.location;$=Q.protocol,E=E?E+"."+Q.hostname:Q.hostname,Q=+Q.port;var ie=new Os(null);$&&vd(ie,$),E&&(ie.g=E),Q&&yd(ie,Q),D&&(ie.l=D),$=ie}return D=m.D,E=m.ya,D&&E&&Dt($,D,E),Dt($,"VER",m.la),bu(m,$),$}function jx(m,E,D){if(E&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return E=m.Ca&&!m.pa?new Xt(new wd({eb:D})):new Xt(m.pa),E.Ha(m.J),E}e.isActive=function(){return!!this.l&&this.l.isActive(this)};function Ox(){}e=Ox.prototype,e.ua=function(){},e.ta=function(){},e.sa=function(){},e.ra=function(){},e.isActive=function(){return!0},e.Na=function(){};function kr(m,E){me.call(this),this.g=new _x(E),this.l=m,this.h=E&&E.messageUrlParams||null,m=E&&E.messageHeaders||null,E&&E.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=E&&E.initMessageHeaders||null,E&&E.messageContentType&&(m?m["X-WebChannel-Content-Type"]=E.messageContentType:m={"X-WebChannel-Content-Type":E.messageContentType}),E&&E.va&&(m?m["X-WebChannel-Client-Profile"]=E.va:m={"X-WebChannel-Client-Profile":E.va}),this.g.S=m,(m=E&&E.Sb)&&!y(m)&&(this.g.m=m),this.v=E&&E.supportsCrossDomainXhr||!1,this.u=E&&E.sendRawJson||!1,(E=E&&E.httpSessionIdParam)&&!y(E)&&(this.g.D=E,m=this.h,m!==null&&E in m&&(m=this.h,E in m&&delete m[E])),this.j=new ja(this)}g(kr,me),kr.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},kr.prototype.close=function(){_m(this.g)},kr.prototype.o=function(m){var E=this.g;if(typeof m=="string"){var D={};D.__data__=m,m=D}else this.u&&(D={},D.__data__=rt(m),m=D);E.i.push(new dt(E.Ya++,m)),E.G==3&&_d(E)},kr.prototype.N=function(){this.g.l=null,delete this.j,_m(this.g),delete this.g,kr.aa.N.call(this)};function Nx(m){ln.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var E=m.__sm__;if(E){e:{for(const D in E){m=D;break e}m=void 0}(this.i=m)&&(m=this.i,E=E!==null&&m in E?E[m]:void 0),this.data=E}else this.data=m}g(Nx,ln);function Lx(){Vt.call(this),this.status=1}g(Lx,Vt);function ja(m){this.g=m}g(ja,Ox),ja.prototype.ua=function(){ze(this.g,"a")}
1572,ja.prototype.ta=function(m){ze(this.g,new Nx(m))},ja.prototype.sa=function(m){ze(this.g,new Lx)},ja.prototype.ra=function(){ze(this.g,"b")},kr.prototype.send=kr.prototype.o,kr.prototype.open=kr.prototype.m,kr.prototype.close=kr.prototype.close,Ie.NO_ERROR=0,Ie.TIMEOUT=8,Ie.HTTP_ERROR=6,Pe.COMPLETE="complete",Zt.EventType=bn,bn.OPEN="a",bn.CLOSE="b",bn.ERROR="c",bn.MESSAGE="d",me.prototype.listen=me.prototype.K,Xt.prototype.listenOnce=Xt.prototype.L,Xt.prototype.getLastError=Xt.prototype.Ka,Xt.prototype.getLastErrorCode=Xt.prototype.Ba,Xt.prototype.getStatus=Xt.prototype.Z,Xt.prototype.getResponseJson=Xt.prototype.Oa,Xt.prototype.getResponseText=Xt.prototype.oa,Xt.prototype.send=Xt.prototype.ea,Xt.prototype.setWithCredentials=Xt.prototype.Ha}).apply(typeof Zd<"u"?Zd:typeof self<"u"?self:typeof window<"u"?window:{});const MC="@firebase/firestore";/**
1573 * @license
1574 * Copyright 2017 Google LLC
1575 *
1576 * Licensed under the Apache License, Version 2.0 (the "License");
1577 * you may not use this file except in compliance with the License.
1578 * You may obtain a copy of the License at
1579 *
1580 *   http://www.apache.org/licenses/LICENSE-2.0
1581 *
1582 * Unless required by applicable law or agreed to in writing, software
1583 * distributed under the License is distributed on an "AS IS" BASIS,
1584 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1585 * See the License for the specific language governing permissions and
1586 * limitations under the License.
1587 */class Un{constructor(t){this.uid=t}isAuthenticated(){return this.uid!=null}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(t){return t.uid===this.uid}}Un.UNAUTHENTICATED=new Un(null),Un.GOOGLE_CREDENTIALS=new Un("google-credentials-uid"),Un.FIRST_PARTY=new Un("first-party-uid"),Un.MOCK_USER=new Un("mock-user");/**
1588 * @license
1589 * Copyright 2017 Google LLC
1590 *
1591 * Licensed under the Apache License, Version 2.0 (the "License");
1592 * you may not use this file except in compliance with the License.
1593 * You may obtain a copy of the License at
1594 *
1595 *   http://www.apache.org/licenses/LICENSE-2.0
1596 *
1597 * Unless required by applicable law or agreed to in writing, software
1598 * distributed under the License is distributed on an "AS IS" BASIS,
1599 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1600 * See the License for the specific language governing permissions and
1601 * limitations under the License.
1602 */let dd="10.14.0";/**
1603 * @license
1604 * Copyright 2017 Google LLC
1605 *
1606 * Licensed under the Apache License, Version 2.0 (the "License");
1607 * you may not use this file except in compliance with the License.
1608 * You may obtain a copy of the License at
1609 *
1610 *   http://www.apache.org/licenses/LICENSE-2.0
1611 *
1612 * Unless required by applicable law or agreed to in writing, software
1613 * distributed under the License is distributed on an "AS IS" BASIS,
1614 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1615 * See the License for the specific language governing permissions and
1616 * limitations under the License.
1617 */const Fl=new vw("@firebase/firestore");function oo(e,...t){if(Fl.logLevel<=St.DEBUG){const n=t.map(Pw);Fl.debug(`Firestore (${dd}): ${e}`,...n)}}function uI(e,...t){if(Fl.logLevel<=St.ERROR){const n=t.map(Pw);Fl.error(`Firestore (${dd}): ${e}`,...n)}}function I7(e,...t){if(Fl.logLevel<=St.WARN){const n=t.map(Pw);Fl.warn(`Firestore (${dd}): ${e}`,...n)}}function Pw(e){if(typeof e=="string")return e;try{/**
1618* @license
1619* Copyright 2020 Google LLC
1620*
1621* Licensed under the Apache License, Version 2.0 (the "License");
1622* you may not use this file except in compliance with the License.
1623* You may obtain a copy of the License at
1624*
1625*   http://www.apache.org/licenses/LICENSE-2.0
1626*
1627* Unless required by applicable law or agreed to in writing, software
1628* distributed under the License is distributed on an "AS IS" BASIS,
1629* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1630* See the License for the specific language governing permissions and
1631* limitations under the License.
1632*/return function(n){return JSON.stringify(n)}(e)}catch{return e}}/**
1633 * @license
1634 * Copyright 2017 Google LLC
1635 *
1636 * Licensed under the Apache License, Version 2.0 (the "License");
1637 * you may not use this file except in compliance with the License.
1638 * You may obtain a copy of the License at
1639 *
1640 *   http://www.apache.org/licenses/LICENSE-2.0
1641 *
1642 * Unless required by applicable law or agreed to in writing, software
1643 * distributed under the License is distributed on an "AS IS" BASIS,
1644 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1645 * See the License for the specific language governing permissions and
1646 * limitations under the License.
1647 */function kw(e="Unexpected state"){const t=`FIRESTORE (${dd}) INTERNAL ASSERTION FAILED: `+e;throw uI(t),new Error(t)}function dc(e,t){e||kw()}/**
1648 * @license
1649 * Copyright 2017 Google LLC
1650 *
1651 * Licensed under the Apache License, Version 2.0 (the "License");
1652 * you may not use this file except in compliance with the License.
1653 * You may obtain a copy of the License at
1654 *
1655 *   http://www.apache.org/licenses/LICENSE-2.0
1656 *
1657 * Unless required by applicable law or agreed to in writing, software
1658 * distributed under the License is distributed on an "AS IS" BASIS,
1659 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1660 * See the License for the specific language governing permissions and
1661 * limitations under the License.
1662 */const Zn={CANCELLED:"cancelled",INVALID_ARGUMENT:"invalid-argument",FAILED_PRECONDITION:"failed-precondition"};class er extends Ti{constructor(t,n){super(t,n),this.code=t,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/**
1663 * @license
1664 * Copyright 2017 Google LLC
1665 *
1666 * Licensed under the Apache License, Version 2.0 (the "License");
1667 * you may not use this file except in compliance with the License.
1668 * You may obtain a copy of the License at
1669 *
1670 *   http://www.apache.org/licenses/LICENSE-2.0
1671 *
1672 * Unless required by applicable law or agreed to in writing, software
1673 * distributed under the License is distributed on an "AS IS" BASIS,
1674 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1675 * See the License for the specific language governing permissions and
1676 * limitations under the License.
1677 */class fc{constructor(){this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}}/**
1678 * @license
1679 * Copyright 2017 Google LLC
1680 *
1681 * Licensed under the Apache License, Version 2.0 (the "License");
1682 * you may not use this file except in compliance with the License.
1683 * You may obtain a copy of the License at
1684 *
1685 *   http://www.apache.org/licenses/LICENSE-2.0
1686 *
1687 * Unless required by applicable law or agreed to in writing, software
1688 * distributed under the License is distributed on an "AS IS" BASIS,
1689 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1690 * See the License for the specific language governing permissions and
1691 * limitations under the License.
1692 */class cI{constructor(t,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${t}`)}}class M7{getToken(){return Promise.resolve(null)}invalidateToken(){}start(t,n){t.enqueueRetryable(()=>n(Un.UNAUTHENTICATED))}shutdown(){}}class D7{constructor(t){this.token=t,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(t,n){this.changeListener=n,t.enqueueRetryable(()=>n(this.token.user))}shutdown(){this.changeListener=null}}class A7{constructor(t){this.t=t,this.currentUser=Un.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(t,n){dc(this.o===void 0);let r=this.i;const o=l=>this.i!==r?(r=this.i,n(l)):Promise.resolve();let i=new fc;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new fc,t.enqueueRetryable(()=>o(this.currentUser))};const s=()=>{const l=i;t.enqueueRetryable(async()=>{await l.promise,await o(this.currentUser)})},a=l=>{oo("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=l,this.o&&(this.auth.addAuthTokenListener(this.o),s())};this.t.onInit(l=>a(l)),setTimeout(()=>{if(!this.auth){const l=this.t.getImmediate({optional:!0});l?a(l):(oo("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new fc)}},0),s()}getToken(){const t=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(r=>this.i!==t?(oo("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(dc(typeof r.accessToken=="string"),new cI(r.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const t=this.auth&&this.auth.getUid();return dc(t===null||typeof t=="string"),new Un(t)}}class j7{constructor(t,n,r){this.l=t,this.h=n,this.P=r,this.type="FirstParty",this.user=Un.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const t=this.T();return t&&this.I.set("Authorization",t),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class O7{constructor(t,n,r){this.l=t,this.h=n,this.P=r}getToken(){return Promise.resolve(new j7(this.l,this.h,this.P))}start(t,n){t.enqueueRetryable(()=>n(Un.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class N7{constructor(t){this.value=t,this.type="AppCheck",this.headers=new Map,t&&t.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class L7{constructor(t){this.A=t,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(t,n){dc(this.o===void 0);const r=i=>{i.error!=null&&oo("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${i.error.message}`);const s=i.token!==this.R;return this.R=i.token,oo("FirebaseAppCheckTokenProvider",`Received ${s?"new":"existing"} token.`),s?n(i.token):Promise.resolve()};this.o=i=>{t.enqueueRetryable(()=>r(i))};const o=i=>{oo("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=i,this.o&&this.appCheck.addTokenListener(this.o)};this.A.onInit(i=>o(i)),setTimeout(()=>{if(!this.appCheck){const i=this.A.getImmediate({optional:!0});i?o(i):oo("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const t=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(t).then(n=>n?(dc(typeof n.token=="string"),this.R=n.token,new N7(n.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}function F7(e){return e.name==="IndexedDbTransactionError"}class Pp{constructor(t,n){this.projectId=t,this.database=n||"(default)"}static empty(){return new Pp("","")}get isDefaultDatabase(){return this.database==="(default)"}isEqual(t){return t instanceof Pp&&t.projectId===this.projectId&&t.database===this.database}}/**
1693 * @license
1694 * Copyright 2017 Google LLC
1695 *
1696 * Licensed under the Apache License, Version 2.0 (the "License");
1697 * you may not use this file except in compliance with the License.
1698 * You may obtain a copy of the License at
1699 *
1700 *   http://www.apache.org/licenses/LICENSE-2.0
1701 *
1702 * Unless required by applicable law or agreed to in writing, software
1703 * distributed under the License is distributed on an "AS IS" BASIS,
1704 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1705 * See the License for the specific language governing permissions and
1706 * limitations under the License.
1707 */var DC,ft;(ft=DC||(DC={}))[ft.OK=0]="OK",ft[ft.CANCELLED=1]="CANCELLED",ft[ft.UNKNOWN=2]="UNKNOWN",ft[ft.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",ft[ft.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",ft[ft.NOT_FOUND=5]="NOT_FOUND",ft[ft.ALREADY_EXISTS=6]="ALREADY_EXISTS",ft[ft.PERMISSION_DENIED=7]="PERMISSION_DENIED",ft[ft.UNAUTHENTICATED=16]="UNAUTHENTICATED",ft[ft.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",ft[ft.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",ft[ft.ABORTED=10]="ABORTED",ft[ft.OUT_OF_RANGE=11]="OUT_OF_RANGE",ft[ft.UNIMPLEMENTED=12]="UNIMPLEMENTED",ft[ft.INTERNAL=13]="INTERNAL",ft[ft.UNAVAILABLE=14]="UNAVAILABLE",ft[ft.DATA_LOSS=15]="DATA_LOSS";/**
1708 * @license
1709 * Copyright 2022 Google LLC
1710 *
1711 * Licensed under the Apache License, Version 2.0 (the "License");
1712 * you may not use this file except in compliance with the License.
1713 * You may obtain a copy of the License at
1714 *
1715 *   http://www.apache.org/licenses/LICENSE-2.0
1716 *
1717 * Unless required by applicable law or agreed to in writing, software
1718 * distributed under the License is distributed on an "AS IS" BASIS,
1719 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1720 * See the License for the specific language governing permissions and
1721 * limitations under the License.
1722 */new lI([4294967295,4294967295],0);function Eg(){return typeof document<"u"?document:null}/**
1723 * @license
1724 * Copyright 2017 Google LLC
1725 *
1726 * Licensed under the Apache License, Version 2.0 (the "License");
1727 * you may not use this file except in compliance with the License.
1728 * You may obtain a copy of the License at
1729 *
1730 *   http://www.apache.org/licenses/LICENSE-2.0
1731 *
1732 * Unless required by applicable law or agreed to in writing, software
1733 * distributed under the License is distributed on an "AS IS" BASIS,
1734 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1735 * See the License for the specific language governing permissions and
1736 * limitations under the License.
1737 */class $7{constructor(t,n,r=1e3,o=1.5,i=6e4){this.ui=t,this.timerId=n,this.ko=r,this.qo=o,this.Qo=i,this.Ko=0,this.$o=null,this.Uo=Date.now(),this.reset()}reset(){this.Ko=0}Wo(){this.Ko=this.Qo}Go(t){this.cancel();const n=Math.floor(this.Ko+this.zo()),r=Math.max(0,Date.now()-this.Uo),o=Math.max(0,n-r);o>0&&oo("ExponentialBackoff",`Backing off for ${o} ms (base delay: ${this.Ko} ms, delay with jitter: ${n} ms, last attempt: ${r} ms ago)`),this.$o=this.ui.enqueueAfterDelay(this.timerId,o,()=>(this.Uo=Date.now(),t())),this.Ko*=this.qo,this.Ko<this.ko&&(this.Ko=this.ko),this.Ko>this.Qo&&(this.Ko=this.Qo)}jo(){this.$o!==null&&(this.$o.skipDelay(),this.$o=null)}cancel(){this.$o!==null&&(this.$o.cancel(),this.$o=null)}zo(){return(Math.random()-.5)*this.Ko}}/**
1738 * @license
1739 * Copyright 2017 Google LLC
1740 *
1741 * Licensed under the Apache License, Version 2.0 (the "License");
1742 * you may not use this file except in compliance with the License.
1743 * You may obtain a copy of the License at
1744 *
1745 *   http://www.apache.org/licenses/LICENSE-2.0
1746 *
1747 * Unless required by applicable law or agreed to in writing, software
1748 * distributed under the License is distributed on an "AS IS" BASIS,
1749 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1750 * See the License for the specific language governing permissions and
1751 * limitations under the License.
1752 */class Iw{constructor(t,n,r,o,i){this.asyncQueue=t,this.timerId=n,this.targetTimeMs=r,this.op=o,this.removalCallback=i,this.deferred=new fc,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(s=>{})}get promise(){return this.deferred.promise}static createAndSchedule(t,n,r,o,i){const s=Date.now()+r,a=new Iw(t,n,s,o,i);return a.start(r),a}start(t){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),t)}skipDelay(){return this.handleDelayElapsed()}cancel(t){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new er(Zn.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
1752)}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then(t=>this.deferred.resolve(t))):Promise.resolve())}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}var AC,jC;(jC=AC||(AC={})).ea="default",jC.Cache="cache";/**
1753 * @license
1754 * Copyright 2023 Google LLC
1755 *
1756 * Licensed under the Apache License, Version 2.0 (the "License");
1757 * you may not use this file except in compliance with the License.
1758 * You may obtain a copy of the License at
1759 *
1760 *   http://www.apache.org/licenses/LICENSE-2.0
1761 *
1762 * Unless required by applicable law or agreed to in writing, software
1763 * distributed under the License is distributed on an "AS IS" BASIS,
1764 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1765 * See the License for the specific language governing permissions and
1766 * limitations under the License.
1767 */function z7(e){const t={};return e.timeoutSeconds!==void 0&&(t.timeoutSeconds=e.timeoutSeconds),t}/**
1768 * @license
1769 * Copyright 2020 Google LLC
1770 *
1771 * Licensed under the Apache License, Version 2.0 (the "License");
1772 * you may not use this file except in compliance with the License.
1773 * You may obtain a copy of the License at
1774 *
1775 *   http://www.apache.org/licenses/LICENSE-2.0
1776 *
1777 * Unless required by applicable law or agreed to in writing, software
1778 * distributed under the License is distributed on an "AS IS" BASIS,
1779 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1780 * See the License for the specific language governing permissions and
1781 * limitations under the License.
1782 */const OC=new Map;function V7(e,t,n,r){if(t===!0&&r===!0)throw new er(Zn.INVALID_ARGUMENT,`${e} and ${n} cannot be used together.`)}function B7(e){if(e===void 0)return"undefined";if(e===null)return"null";if(typeof e=="string")return e.length>20&&(e=`${e.substring(0,20)}...`),JSON.stringify(e);if(typeof e=="number"||typeof e=="boolean")return""+e;if(typeof e=="object"){if(e instanceof Array)return"an array";{const t=function(r){return r.constructor?r.constructor.name:null}(e);return t?`a custom ${t} object`:"an object"}}return typeof e=="function"?"a function":kw()}function H7(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new er(Zn.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=B7(e);throw new er(Zn.INVALID_ARGUMENT,`Expected type '${t.name}', but it was: ${n}`)}}return e}/**
1783 * @license
1784 * Copyright 2020 Google LLC
1785 *
1786 * Licensed under the Apache License, Version 2.0 (the "License");
1787 * you may not use this file except in compliance with the License.
1788 * You may obtain a copy of the License at
1789 *
1790 *   http://www.apache.org/licenses/LICENSE-2.0
1791 *
1792 * Unless required by applicable law or agreed to in writing, software
1793 * distributed under the License is distributed on an "AS IS" BASIS,
1794 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1795 * See the License for the specific language governing permissions and
1796 * limitations under the License.
1797 */class NC{constructor(t){var n,r;if(t.host===void 0){if(t.ssl!==void 0)throw new er(Zn.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=t.host,this.ssl=(n=t.ssl)===null||n===void 0||n;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,this.localCache=t.localCache,t.cacheSizeBytes===void 0)this.cacheSizeBytes=41943040;else{if(t.cacheSizeBytes!==-1&&t.cacheSizeBytes<1048576)throw new er(Zn.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}V7("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:t.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=z7((r=t.experimentalLongPollingOptions)!==null&&r!==void 0?r:{}),function(i){if(i.timeoutSeconds!==void 0){if(isNaN(i.timeoutSeconds))throw new er(Zn.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (must not be NaN)`);if(i.timeoutSeconds<5)throw new er(Zn.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (minimum allowed value is 5)`);if(i.timeoutSeconds>30)throw new er(Zn.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!t.useFetchStreams}isEqual(t){return this.host===t.host&&this.ssl===t.ssl&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&function(r,o){return r.timeoutSeconds===o.timeoutSeconds}(this.experimentalLongPollingOptions,t.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties&&this.useFetchStreams===t.useFetchStreams}}class dI{constructor(t,n,r,o){this._authCredentials=t,this._appCheckCredentials=n,this._databaseId=r,this._app=o,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new NC({}),this._settingsFrozen=!1,this._terminateTask="notTerminated"}get app(){if(!this._app)throw new er(Zn.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return this._terminateTask!=="notTerminated"}_setSettings(t){if(this._settingsFrozen)throw new er(Zn.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new NC(t),t.credentials!==void 0&&(this._authCredentials=function(r){if(!r)return new M7;switch(r.type){case"firstParty":return new O7(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new er(Zn.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invali
1797d credential type")}}(t.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask==="notTerminated"&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){this._terminateTask==="notTerminated"?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(n){const r=OC.get(n);r&&(oo("ComponentProvider","Removing Datastore"),OC.delete(n),r.terminate())}(this),Promise.resolve()}}function U7(e,t,n,r={}){var o;const i=(e=H7(e,dI))._getSettings(),s=`${t}:${n}`;if(i.host!=="firestore.googleapis.com"&&i.host!==s&&I7("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),e._setSettings(Object.assign(Object.assign({},i),{host:s,ssl:!1})),r.mockUserToken){let a,l;if(typeof r.mockUserToken=="string")a=r.mockUserToken,l=Un.MOCK_USER;else{a=Kz(r.mockUserToken,(o=e._app)===null||o===void 0?void 0:o.options.projectId);const u=r.mockUserToken.sub||r.mockUserToken.user_id;if(!u)throw new er(Zn.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");l=new Un(u)}e._authCredentials=new D7(new cI(a,l))}}/**
1798 * @license
1799 * Copyright 2020 Google LLC
1800 *
1801 * Licensed under the Apache License, Version 2.0 (the "License");
1802 * you may not use this file except in compliance with the License.
1803 * You may obtain a copy of the License at
1804 *
1805 *   http://www.apache.org/licenses/LICENSE-2.0
1806 *
1807 * Unless required by applicable law or agreed to in writing, software
1808 * distributed under the License is distributed on an "AS IS" BASIS,
1809 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1810 * See the License for the specific language governing permissions and
1811 * limitations under the License.
1812 */class LC{constructor(t=Promise.resolve()){this.Pu=[],this.Iu=!1,this.Tu=[],this.Eu=null,this.du=!1,this.Au=!1,this.Ru=[],this.t_=new $7(this,"async_queue_retry"),this.Vu=()=>{const r=Eg();r&&oo("AsyncQueue","Visibility state changed to "+r.visibilityState),this.t_.jo()},this.mu=t;const n=Eg();n&&typeof n.addEventListener=="function"&&n.addEventListener("visibilitychange",this.Vu)}get isShuttingDown(){return this.Iu}enqueueAndForget(t){this.enqueue(t)}enqueueAndForgetEvenWhileRestricted(t){this.fu(),this.gu(t)}enterRestrictedMode(t){if(!this.Iu){this.Iu=!0,this.Au=t||!1;const n=Eg();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this.Vu)}}enqueue(t){if(this.fu(),this.Iu)return new Promise(()=>{});const n=new fc;return this.gu(()=>this.Iu&&this.Au?Promise.resolve():(t().then(n.resolve,n.reject),n.promise)).then(()=>n.promise)}enqueueRetryable(t){this.enqueueAndForget(()=>(this.Pu.push(t),this.pu()))}async pu(){if(this.Pu.length!==0){try{await this.Pu[0](),this.Pu.shift(),this.t_.reset()}catch(t){if(!F7(t))throw t;oo("AsyncQueue","Operation failed with retryable error: "+t)}this.Pu.length>0&&this.t_.Go(()=>this.pu())}}gu(t){const n=this.mu.then(()=>(this.du=!0,t().catch(r=>{this.Eu=r,this.du=!1;const o=function(s){let a=s.message||"";return s.stack&&(a=s.stack.includes(s.message)?s.stack:s.message+`
1813`+s.stack),a}(r);throw uI("INTERNAL UNHANDLED ERROR: ",o),r}).then(r=>(this.du=!1,r))));return this.mu=n,n}enqueueAfterDelay(t,n,r){this.fu(),this.Ru.indexOf(t)>-1&&(n=0);const o=Iw.createAndSchedule(this,t,n,r,i=>this.yu(i));return this.Tu.push(o),o}fu(){this.Eu&&kw()}verifyOperationInProgress(){}async wu(){let t;do t=this.mu,await t;while(t!==this.mu)}Su(t){for(const n of this.Tu)if(n.timerId===t)return!0;return!1}bu(t){return this.wu().then(()=>{this.Tu.sort((n,r)=>n.targetTimeMs-r.targetTimeMs);for(const n of this.Tu)if(n.skipDelay(),t!=="all"&&n.timerId===t)break;return this.wu()})}Du(t){this.Ru.push(t)}yu(t){const n=this.Tu.indexOf(t);this.Tu.splice(n,1)}}class G7 extends dI{constructor(t,n,r,o){super(t,n,r,o),this.type="firestore",this._queue=new LC,this._persistenceKey=(o==null?void 0:o.name)||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const t=this._firestoreClient.terminate();this._queue=new LC(t),this._firestoreClient=void 0,await t}}}function W7(e,t){const n=typeof e=="object"?e:bw(),r=typeof e=="string"?e:"(default)",o=Wh(n,"firestore").getImmediate({identifier:r});if(!o._initialized){const i=x2("firestore");i&&U7(o,...i)}return o}(function(t,n=!0){(function(o){dd=o})(au),fa(new bs("firestore",(r,{instanceIdentifier:o,options:i})=>{const s=r.getProvider("app").getImmediate(),a=new G7(new A7(r.getProvider("auth-internal")),new L7(r.getProvider("app-check-internal")),function(u,c){if
1813(!Object.prototype.hasOwnProperty.apply(u.options,["projectId"]))throw new er(Zn.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Pp(u.options.projectId,c)}(s,o),s);return i=Object.assign({useFetchStreams:n},i),a._setSettings(i),a},"PUBLIC").setMultipleInstances(!0)),Do(MC,"4.7.3",t),Do(MC,"4.7.3","esm2017")})();/**
1814 * @license
1815 * Copyright 2020 Google LLC
1816 *
1817 * Licensed under the Apache License, Version 2.0 (the "License");
1818 * you may not use this file except in compliance with the License.
1819 * You may obtain a copy of the License at
1820 *
1821 *   http://www.apache.org/licenses/LICENSE-2.0
1822 *
1823 * Unless required by applicable law or agreed to in writing, software
1824 * distributed under the License is distributed on an "AS IS" BASIS,
1825 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1826 * See the License for the specific language governing permissions and
1827 * limitations under the License.
1828 */const fI="functions";/**
1829 * @license
1830 * Copyright 2017 Google LLC
1831 *
1832 * Licensed under the Apache License, Version 2.0 (the "License");
1833 * you may not use this file except in compliance with the License.
1834 * You may obtain a copy of the License at
1835 *
1836 *   http://www.apache.org/licenses/LICENSE-2.0
1837 *
1838 * Unless required by applicable law or agreed to in writing, software
1839 * distributed under the License is distributed on an "AS IS" BASIS,
1840 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1841 * See the License for the specific language governing permissions and
1842 * limitations under the License.
1843 */class K7{constructor(t,n,r){this.auth=null,this.messaging=null,this.appCheck=null,this.auth=t.getImmediate({optional:!0}),this.messaging=n.getImmediate({optional:!0}),this.auth||t.get().then(o=>this.auth=o,()=>{}),this.messaging||n.get().then(o=>this.messaging=o,()=>{}),this.appCheck||r.get().then(o=>this.appCheck=o,()=>{})}async getAuthToken(){if(this.auth)try{const t=await this.auth.getToken();return t==null?void 0:t.accessToken}catch{return}}async getMessagingToken(){if(!(!this.messaging||!("Notification"in self)||Notification.permission!=="granted"))try{return await this.messaging.getToken()}catch{return}}async getAppCheckToken(t){if(this.appCheck){const n=t?await this.appCheck.getLimitedUseToken():await this.appCheck.getToken();return n.error?null:n.token}return null}async getContext(t){const n=await this.getAuthToken(),r=await this.getMessagingToken(),o=await this.getAppCheckToken(t);return{authToken:n,messagingToken:r,appCheckToken:o}}}/**
1844 * @license
1845 * Copyright 2017 Google LLC
1846 *
1847 * Licensed under the Apache License, Version 2.0 (the "License");
1848 * you may not use this file except in compliance with the License.
1849 * You may obtain a copy of the License at
1850 *
1851 *   http://www.apache.org/licenses/LICENSE-2.0
1852 *
1853 * Unless required by applicable law or agreed to in writing, software
1854 * distributed under the License is distributed on an "AS IS" BASIS,
1855 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1856 * See the License for the specific language governing permissions and
1857 * limitations under the License.
1858 */const Sy="us-central1";class q7{constructor(t,n,r,o,i=Sy,s){this.app=t,this.fetchImpl=s,this.emulatorOrigin=null,this.contextProvider=new K7(n,r,o),this.cancelAllRequests=new Promise(a=>{this.deleteService=()=>Promise.resolve(a())});try{const a=new URL(i);this.customDomain=a.origin+(a.pathname==="/"?"":a.pathname),this.region=Sy}catch{this.customDomain=null,this.region=i}}_delete(){return this.deleteService()}_url(t){const n=this.app.options.projectId;return this.emulatorOrigin!==null?`${this.emulatorOrigin}/${n}/${this.region}/${t}`:this.customDomain!==null?`${this.customDomain}/${t}`:`https://${this.region}-${n}.cloudfunctions.net/${t}`}}function Y7(e,t,n){e.emulatorOrigin=`http://${t}:${n}`}const FC="@firebase/functions",$C="0.11.8";/**
1859 * @license
1860 * Copyright 2019 Google LLC
1861 *
1862 * Licensed under the Apache License, Version 2.0 (the "License");
1863 * you may not use this file except in compliance with the License.
1864 * You may obtain a copy of the License at
1865 *
1866 *   http://www.apache.org/licenses/LICENSE-2.0
1867 *
1868 * Unless required by applicable law or agreed to in writing, softw
1868are
1869 * distributed under the License is distributed on an "AS IS" BASIS,
1870 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1871 * See the License for the specific language governing permissions and
1872 * limitations under the License.
1873 */const X7="auth-internal",J7="app-check-internal",Q7="messaging-internal";function Z7(e,t){const n=(r,{instanceIdentifier:o})=>{const i=r.getProvider("app").getImmediate(),s=r.getProvider(X7),a=r.getProvider(Q7),l=r.getProvider(J7);return new q7(i,s,a,l,o,e)};fa(new bs(fI,n,"PUBLIC").setMultipleInstances(!0)),Do(FC,$C,t),Do(FC,$C,"esm2017")}/**
1874 * @license
1875 * Copyright 2020 Google LLC
1876 *
1877 * Licensed under the Apache License, Version 2.0 (the "License");
1878 * you may not use this file except in compliance with the License.
1879 * You may obtain a copy of the License at
1880 *
1881 *   http://www.apache.org/licenses/LICENSE-2.0
1882 *
1883 * Unless required by applicable law or agreed to in writing, software
1884 * distributed under the License is distributed on an "AS IS" BASIS,
1885 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1886 * See the License for the specific language governing permissions and
1887 * limitations under the License.
1888 */function eB(e=bw(),t=Sy){const r=Wh(Pi(e),fI).getImmediate({identifier:t}),o=x2("functions");return o&&tB(r,...o),r}function tB(e,t,n){Y7(Pi(e),t,n)}Z7(fetch.bind(self));const nB={apiKey:"AIzaSyA1JO3vNQ934AuVB1Gs854zFsPJ631VNT0",authDomain:"simplesmenteia.firebaseapp.com",projectId:"simplesmenteia",storageBucket:"simplesmenteia.firebasestorage.app",messagingSenderId:"1051516792053",appId:"1:1051516792053:web:e7dcb0e2b86868caf429bc",measurementId:"G-TFYD4W5TBD"},Mw=E2(nB),$l=P7(Mw);W7(Mw);eB(Mw);function rB(){return $l}async function Dw(){return await $l.authStateReady(),$l.currentUser}async function pI(e,t){return await mV($l,e,t)}async function oB(e){return await hV($l,e)}async function hI(){return await $l.signOut()}const iB=S.createContext(null);function sB({children:e}){const[t,n]=S.useState(null),[r,o]=S.useState(!0);return S.useEffect(function(){o(!0);const s=rB().onAuthStateChanged(async a=>{n(a),o(!1)});return()=>{s()}},[]),p.jsx(iB.Provider,{value:{user:t,authenticating:r,signInWithEmail:pI,resetPassword:oB,signOut:hI},children:e})}/**
1889 * @remix-run/router v1.23.1
1890 *
1891 * Copyright (c) Remix Software Inc.
1892 *
1893 * This source code is licensed under the MIT license found in the
1894 * LICENSE.md file in the root directory of this source tree.
1895 *
1896 * @license MIT
1897 */function jt(){return jt=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},jt.apply(this,arguments)}var en;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(en||(en={}));const zC="popstate";function aB(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:s,hash:a}=r.location;return $c("",{pathname:i,search:s,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:ma(o)}return uB(t,n,null,e)}function it(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ha(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lB(){return Math.random().toString(36).substr(2,8)}function VC(e,t){return{usr:e.state,key:e.key,idx:t}}function $c(e,t,n,r){return n===void 0&&(n=null),jt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ds(t):t,{state:n,key:t&&t.key||r||lB()})}function ma(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 Ds(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 uB(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=en.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(jt({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function d(){a=en.Pop;let w=c(),b=w==null?null:w-u;u=w,l&&l({action:a,location:v.location,delta:b})}function f(w,b){a=en.Push;let y=$c(v.location,w,b);u=c()+1;let x=VC(y,u),R=v.createHref(y);try{s.pushState(x,"",R)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(R)}i&&l&&l({action:a,location:v.location,delta:1})}function h(w,b){a=en.Replace;let y=$c(v.location,w,b);u=c();let x=VC(y,u),R=v.createHref(y);s.replaceState(x,"",R),i&&l&&l({action:a,location:v.location,delta:0})}function g(w){let b=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof w=="string"?w:ma(w);return y=y.replace(/ $/,"%20"),it(b,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,b)}let v={get action(){return a},get location(){return e(o,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(zC,d),l=w,()=>{o.removeEventListener(zC,d),l=null}},createHref(w){return t(o,w)},createURL:g,encodeLocation(w){let b=g(w);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:f,replace:h,go(w){return s.go(w)}};return v}var _t;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_t||(_t={}));
vendor: 48,735 bytes, lines 1897-1907
1897const cB=new Set(["lazy","caseSensitive","path","id","index","children"]);function dB(e){return e.index===!0}function kp(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let s=[...n,String(i)],a=typeof o.id=="string"?o.id:s.join("-");if(it(o.index!==!0||!o.children,"Cannot specify children on an index route"),it(!r[a],'Found a route id collision on id "'+a+`".  Route id's must be globally unique within Data Router usages`),dB(o)){let l=jt({},o,t(o),{id:a});return r[a]=l,l}else{let l=jt({},o,t(o),{id:a,children:void 0});return r[a]=l,o.children&&(l.children=kp(o.children,t,s,r)),l}})}function Us(e,t,n){return n===void 0&&(n="/"),Of(e,t,n,!1)}function Of(e,t,n,r){let o=typeof t=="string"?Ds(t):t,i=yi(o.pathname||"/",n);if(i==null)return null;let s=mI(e);pB(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let u=_B(i);a=SB(s[l],u,r)}return a}function fB(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function mI(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,s,a)=>{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(it(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=ai([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(it(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),mI(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:wB(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of gI(i.path))o(i,s,l)}),t}function gI(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=gI(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function pB(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:xB(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const hB=/^:[\w-]+$/,mB=3,gB=2,vB=1,yB=10,bB=-2,BC=e=>e==="*";function wB(e,t){let n=e.split("/"),r=n.length;return n.some(BC)&&(r+=bB),t&&(r+=gB),n.filter(o=>!BC(o)).reduce((o,i)=>o+(hB.test(i)?mB:i===""?vB:yB),r)}function xB(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function SB(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,c=i==="/"?t:t.slice(i.length)||"/",d=Ip({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),f=l.route;if(!d&&u&&n&&!r[r.length-1].route.index&&(d=Ip({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;Object.assign(o,d.params),s.push({params:o,pathname:ai([i,d.pathname]),pathnameBase:PB(ai([i,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(i=ai([i,d.pathnameBase]))}return s}function Ip(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=CB(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((u,c,d)=>{let{paramName:f,isOptional:h}=c;if(f==="*"){let v=a[d]||"";s=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const g=a[d];return h&&!g?u[f]=void 0:u[f]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function CB(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ha(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function _B(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ha(!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 yi(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)||"/"}const RB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,EB=e=>RB.test(e);function TB(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Ds(e):e,i;if(n)if(EB(n))i=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),ha(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?i=HC(n.substring(1),"/"):i=HC(n,t)}else i=t;return{pathname:i,search:kB(r),hash:IB(o)}}function HC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Tg(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 vI(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Jh(e,t){let n=vI(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Qh(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Ds(e):(o=jt({},e),it(!o.pathname||!o.pathname.includes("?"),Tg("?","pathname","search",o)),it(!o.pathname||!o.pathname.includes("#"),Tg("#","pathname","hash",o)),it(!o.search||!o.search.includes("#"),Tg("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=TB(o,a),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const ai=e=>e.join("/").replace(/\/\/+/g,"/"),PB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,IB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,MB=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let o=new Headers(r.headers);return o.set("Location",t),new Response(null,jt({},r,{headers:o}))},Aw=(e,t)=>{let n=MB(e,t);return n.headers.set("X-Remix-Replace","true"),n};class Mp{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function zc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const yI=["post","put","patch","delete"],DB=new Set(yI),AB=["get",...yI],jB=new Set(AB),OB=new Set([301,302,303,307,308]),NB=new Set([307,308]),Pg={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},LB={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Du={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},jw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,FB=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),bI="remix-router-transitions";function $B(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;it(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let U=e.detectErrorBoundary;o=K=>({hasErrorBoundary:U(K)})}else o=FB;let i={},s=kp(e.routes,o,void 0,i),a,l=e.basename||"/",u=e.dataStrategy||HB,c=e.patchRoutesOnNavigation,d=jt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,h=new Set,g=null,v=null,w=null,b=e.hydrationData!=null,y=Us(s,e.history.location,l),x=!1,R=null;if(y==null&&!c){let U=Jn(404,{pathname:e.history.location.pathname}),{matches:K,route:Z}=e_(s);y=K,R={[Z.id]:U}}y&&!e.hydrationData&&gt(y,s,e.history.location.pathname).active&&(y=null);let k;if(y)if(y.some(U=>U.route.lazy))k=!1;else if(!y.some(U=>U.route.loader))k=!0;else if(d.v7_partialHydration){let U=e.hydrationData?e.hydrationData.loaderData:null,K=e.hydrationData?e.hydrationData.errors:null;if(K){let Z=y.findIndex(ce=>K[ce.route.id]!==void 0);k=y.slice(0,Z+1).every(ce=>!_y(ce.route,U,K))}else k=y.every(Z=>!_y(Z.route,U,K))}else k=e.hydrationData!=null;else if(k=!1,y=[],d.v7_partialHydration){let U=gt(null,s,e.history.location.pathname);U.active&&U.matches&&(x=!0,y=U.matches)}let I,C={historyAction:e.history.action,location:e.history.location,matches:y,initialized:k,navigation:Pg,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||R,fetchers:new Map,blockers:new Map},_=en.Pop,T=!1,P,M=!1,O=new Map,A=null,V=!1,z=!1,N=[],F=new Set,j=new Map,L=0,B=-1,H=new Map,G=new Set,ee=new Map,oe=new Map,X=new Set,J=new Map,q=new Map,ne;function Y(){if(f=e.history.listen(U=>{let{action:K,location:Z,delta:ce}=U;if(ne){ne(),ne=void 0;return}ha(q.size===0||ce!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let we=Zt({currentLocation:C.location,nextLocation:Z,historyAction:K});if(we&&ce!=null){let Ae=new Promise(Ke=>{ne=Ke});e.history.go(ce*-1),Xn(we,{state:"blocked",location:Z,proceed(){Xn(we,{state:"proceeding",proceed:void 0,reset:void 0,location:Z}),Ae.then(()=>e.history.go(ce))},reset(){let Ke=new Map(C.blockers);Ke.set(we,Du),ue({blockers:Ke})}});return}return ge(K,Z)}),n){rH(t,O);let U=()=>oH(t,O);t.addEventListener("pagehide",U),A=()=>t.removeEventListener("pagehide",U)}return C.initialized||ge(en.Pop,C.location,{initialHydration:!0}),I}function W(){f&&f(),A&&A(),h.clear(),P&&P.abort(),C.fetchers.forEach((U,K)=>Ue(K)),C.blockers.forEach((U,K)=>dr(K))}function se(U){return h.add(U),()=>h.delete(U)}function ue(U,K){K===void 0&&(K={}),C=jt({},C,U);let Z=[],ce=[];d.v7_fetcherPersist&&C.fetchers.forEach((we,Ae)=>{we.state==="idle"&&(X.has(Ae)?ce.push(Ae):Z.push(Ae))}),X.forEach(we=>{!C.fetchers.has(we)&&!j.has(we)&&ce.push(we)}),[...h].forEach(we=>we(C,{deletedFetchers:ce,viewTransitionOpts:K.viewTransitionOpts,flushSync:K.flushSync===!0})),d.v7_fetcherPersist?(Z.forEach(we=>C.fetchers.delete(we)),ce.forEach(we=>Ue(we))):ce.forEach(we=>X.delete(we))}function le(U,K,Z){var ce,we;let{flushSync:Ae}=Z===void 0?{}:Z,Ke=C.actionData!=null&&C.navigation.formMethod!=null&&eo(C.navigation.formMethod)&&C.navigation.state==="loading"&&((ce=U.state)==null?void 0:ce._isRedirect)!==!0,ke;K.actionData?Object.keys(K.actionData).length>0?ke=K.actionData:ke=null:Ke?ke=C.actionData:ke=null;let Ie=K.loaderData?QC(C.loaderData,K.loaderData,K.matches||[],K.errors):C.loaderData,Pe=C.blockers;Pe.size>0&&(Pe=new Map(Pe),Pe.forEach((Je,Bt)=>Pe.set(Bt,Du)));let ve=T===!0||C.navigation.formMethod!=null&&eo(C.navigation.formMethod)&&((we=U.state)==null?void 0:we._isRedirect)!==!0;a&&(s=a,a=void 0),V||_===en.Pop||(_===en.Push?e.history.push(U,U.state):_===en.Replace&&e.history.replace(U,U.state));let qe;if(_===en.Pop){let Je=O.get(C.location.pathname);Je&&Je.has(U.pathname)?qe={currentLocation:C.location,nextLocation:U}:O.has(U.pathname)&&(qe={currentLocation:U,nextLocation:C.location})}else if(M){let Je=O.get(C.location.pathname);Je?Je.add(U.pathname):(Je=new Set([U.pathname]),O.set(C.location.pathname,Je)),qe={currentLocation:C.location,nextLocation:U}}ue(jt({},K,{actionData:ke,loaderData:Ie,historyAction:_,location:U,initialized:!0,navigation:Pg,revalidation:"idle",restoreScrollPosition:Tr(U,K.matches||C.matches),preventScrollReset:ve,blockers:Pe}),{viewTransitionOpts:qe,flushSync:Ae===!0}),_=en.Pop,T=!1,M=!1,V=!1,z=!1,N=[]}async function Re(U,K){if(typeof U=="number"){e.history.go(U);return}let Z=Cy(C.location,C.matches,l,d.v7_prependBasename,U,d.v7_relativeSplatPath,K==null?void 0:K.fromRouteId,K==null?void 0:K.relative),{path:ce,submission:we,error:Ae}=UC(d.v7_normalizeFormMethod,!1,Z,K),Ke=C.location,ke=$c(C.location,ce,K&&K.state);ke=jt({},ke,e.history.encodeLocation(ke));let Ie=K&&K.replace!=null?K.replace:void 0,Pe=en.Push;Ie===!0?Pe=en.Replace:Ie===!1||we!=null&&eo(we.formMethod)&&we.formAction===C.location.pathname+C.location.search&&(Pe=en.Replace);let ve=K&&"preventScrollReset"in K?K.preventScrollReset===!0:void 0,qe=(K&&K.flushSync)===!0,Je=Zt({currentLocation:Ke,nextLocation:ke,historyAction:Pe});if(Je){Xn(Je,{state:"blocked",location:ke,proceed(){Xn(Je,{state:"proceeding",proceed:void 0,reset:void 0,location:ke}),Re(U,K)},reset(){let Bt=new Map(C.blockers);Bt.set(Je,Du),ue({blockers:Bt})}});return}return await ge(Pe,ke,{submission:we,pendingError:Ae,preventScrollReset:ve,replace:K&&K.replace,enableViewTransition:K&&K.viewTransition,flushSync:qe})}function ye(){if(ze(),ue({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){ge(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}ge(_||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:M===!0})}}async function ge(U,K,Z){P&&P.abort(),P=null,_=U,V=(Z&&Z.startUninterruptedRevalidation)===!0,$o(C.location,C.matches),T=(Z&&Z.preventScrollReset)===!0,M=(Z&&Z.enableViewTransition)===!0;let ce=a||s,we=Z&&Z.overrideNavigation,Ae=Z!=null&&Z.initialHydration&&C.matches&&C.matches.length>0&&!x?C.matches:Us(ce,K,l),Ke=(Z&&Z.flushSync)===!0;if(Ae&&C.initialized&&!z&&YB(C.location,K)&&!(Z&&Z.submission&&eo(Z.submission.formMethod))){le(K,{matches:Ae},{flushSync:Ke});return}let ke=gt(Ae,ce,K.pathname);if(ke.active&&ke.matches&&(Ae=ke.matches),!Ae){let{error:vt,notFoundMatches:ut,route:Pt}=bn(K.pathname);le(K,{matches:ut,loaderData:{},errors:{[Pt.id]:vt}},{flushSync:Ke});return}P=new AbortController;let Ie=Ha(e.history,K,P.signal,Z&&Z.submission),Pe;if(Z&&Z.pendingError)Pe=[Gs(Ae).route.id,{type:_t.error,error:Z.pendingError}];else if(Z&&Z.submission&&eo(Z.submission.formMethod)){let vt=await Le(Ie,K,Z.submission,Ae,ke.active,{replace:Z.replace,flushSync:Ke});if(vt.shortCircuited)return;if(vt.pendingActionResult){let[ut,Pt]=vt.pendingActionResult;if(mr(Pt)&&zc(Pt.error)&&Pt.error.status===404){P=null,le(K,{matches:vt.matches,loaderData:{},errors:{[ut]:Pt.error}});return}}Ae=vt.matches||Ae,Pe=vt.pendingActionResult,we=kg(K,Z.submission),Ke=!1,ke.active=!1,Ie=Ha(e.history,Ie.url,Ie.signal)}let{shortCircuited:ve,matches:qe,loaderData:Je,errors:Bt}=await de(Ie,K,Ae,ke.active,we,Z&&Z.submission,Z&&Z.fetcherSubmission,Z&&Z.replace,Z&&Z.initialHydration===!0,Ke,Pe);ve||(P=null,le(K,jt({matches:qe||Ae},ZC(Pe),{loaderData:Je,errors:Bt})))}async function Le(U,K,Z,ce,we,Ae){Ae===void 0&&(Ae={}),ze();let Ke=tH(K,Z);if(ue({navigation:Ke},{flushSync:Ae.flushSync===!0}),we){let Pe=await be(ce,K.pathname,U.signal);if(Pe.type==="aborted")return{shortCircuited:!0};if(Pe.type==="error"){let ve=Gs(Pe.partialMatches).route.id;return{matches:Pe.partialMatches,pendingActionResult:[ve,{type:_t.error,error:Pe.error}]}}else if(Pe.matches)ce=Pe.matches;else{let{notFoundMatches:ve,error:qe,route:Je}=bn(K.pathname);return{matches:ve,pendingActionResult:[Je.id,{type:_t.error,error:qe}]}}}let ke,Ie=Yu(ce,K);if(!Ie.route.action&&!Ie.route.lazy)ke={type:_t.error,error:Jn(405,{method:U.method,pathname:K.pathname,routeId:Ie.route.id})};else if(ke=(await xe("action",C,U,[Ie],ce,null))[Ie.route.id],U.signal.aborted)return{shortCircuited:!0};if(Qs(ke)){let Pe;return Ae&&Ae.replace!=null?Pe=Ae.replace:Pe=YC(ke.response.headers.get("Location"),new URL(U.url),l)===C.location.pathname+C.location.search,await he(U,ke,!0,{submission:Z,replace:Pe}),{shortCircuited:!0}}if(es(ke))throw Jn(400,{type:"defer-action"});if(mr(ke)){let Pe=Gs(ce,Ie.route.id);return(Ae&&Ae.replace)!==!0&&(_=en.Push),{matches:ce,pendingActionResult:[Pe.route.id,ke]}}return{matches:ce,pendingActionResult:[Ie.route.id,ke]}}async function de(U,K,Z,ce,we,Ae,Ke,ke,Ie,Pe,ve){let qe=we||kg(K,Ae),Je=Ae||Ke||n_(qe),Bt=!V&&(!d.v7_partialHydration||!Ie);if(ce){if(Bt){let Mt=De(ve);ue(jt({navigation:qe},Mt!==void 0?{actionData:Mt}:{}),{flushSync:Pe})}let dt=await be(Z,K.pathname,U.signal);if(dt.type==="aborted")return{shortCircuited:!0};if(dt.type==="error"){let Mt=Gs(dt.partialMatches).route.id;return{matches:dt.partialMatches,loaderData:{},errors:{[Mt]:dt.error}}}else if(dt.matches)Z=dt.matches;else{let{error:Mt,notFoundMatches:Bo,route:ji}=bn(K.pathname);return{matches:Bo,loaderData:{},errors:{[ji.id]:Mt}}}}let vt=a||s,[ut,Pt]=WC(e.history,C,Z,Je,K,d.v7_partialHydration&&Ie===!0,d.v7_skipActionErrorRevalidation,z,N,F,X,ee,G,vt,l,ve);if(ln(dt=>!(Z&&Z.some(Mt=>Mt.route.id===dt))||ut&&ut.some(Mt=>Mt.route.id===dt)),B=++L,ut.length===0&&Pt.length===0){let dt=rt();return le(K,jt({matches:Z,loaderData:{},errors:ve&&mr(ve[1])?{[ve[0]]:ve[1].error}:null},ZC(ve),dt?{fetchers:new Map(C.fetchers)}:{}),{flushSync:Pe}),{shortCircuited:!0}}if(Bt){let dt={};if(!ce){dt.navigation=qe;let Mt=De(ve);Mt!==void 0&&(dt.actionData=Mt)}Pt.length>0&&(dt.fetchers=Oe(Pt)),ue(dt,{flushSync:Pe})}Pt.forEach(dt=>{Et(dt.key),dt.controller&&j.set(dt.key,dt.controller)});let zo=()=>Pt.forEach(dt=>Et(dt.key));P&&P.signal.addEventListener("abort",zo);let{loaderResults:Di,fetcherResults:qr}=await me(C,Z,ut,Pt,U);if(U.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",zo),Pt.forEach(dt=>j.delete(dt.key));let Vn=ef(Di);if(Vn)return await he(U,Vn.result,!0,{replace:ke}),{shortCircuited:!0};if(Vn=ef(qr),Vn)return G.add(Vn.key),await he(U,Vn.result,!0,{replace:ke}),{shortCircuited:!0};let{loaderData:Da,errors:Vo}=JC(C,Z,Di,ve,Pt,qr,J);J.forEach((dt,Mt)=>{dt.subscribe(Bo=>{(Bo||dt.done)&&J.delete(Mt)})}),d.v7_partialHydration&&Ie&&C.errors&&(Vo=jt({},C.errors,Vo));let pr=rt(),Pr=Wt(B),Ai=pr||Pr||Pt.length>0;return jt({matches:Z,loaderData:Da,errors:Vo},Ai?{fetchers:new Map(C.fetchers)}:{})}function De(U){if(U&&!mr(U[1]))return{[U[0]]:U[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Oe(U){return U.forEach(K=>{let Z=C.fetchers.get(K.key),ce=Au(void 0,Z?Z.data:void 0);C.fetchers.set(K.key,ce)}),new Map(C.fetchers)}function Be(U,K,Z,ce){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Et(U);let we=(ce&&ce.flushSync)===!0,Ae=a||s,Ke=Cy(C.location,C.matches,l,d.v7_prependBasename,Z,d.v7_relativeSplatPath,K,ce==null?void 0:ce.relative),ke=Us(Ae,Ke,l),Ie=gt(ke,Ae,Ke);if(Ie.active&&Ie.matches&&(ke=Ie.matches),!ke){Ve(U,K,Jn(404,{pathname:Ke}),{flushSync:we});return}let{path:Pe,submission:ve,error:qe}=UC(d.v7_normalizeFormMethod,!0,Ke,ce);if(qe){Ve(U,K,qe,{flushSync:we});return}let Je=Yu(ke,Pe),Bt=(ce&&ce.preventScrollReset)===!0;if(ve&&eo(ve.formMethod)){wt(U,K,Pe,Je,ke,Ie.active,we,Bt,ve);return}ee.set(U,{routeId:K,path:Pe}),Ge(U,K,Pe,Je,ke,Ie.active,we,Bt,ve)}async function wt(U,K,Z,ce,we,Ae,Ke,ke,Ie){ze(),ee.delete(U);function Pe(Ft){if(!Ft.route.action&&!Ft.route.lazy){let yo=Jn(405,{method:Ie.formMethod,pathname:Z,routeId:K});return Ve(U,K,yo,{flushSync:Ke}),!0}return!1}if(!Ae&&Pe(ce))return;let ve=C.fetchers.get(U);Ee(U,nH(Ie,ve),{flushSync:Ke});let qe=new AbortController,Je=Ha(e.history,Z,qe.signal,Ie);if(Ae){let Ft=await be(we,new URL(Je.url).pathname,Je.signal,U);if(Ft.type==="aborted")return;if(Ft.type==="error"){Ve(U,K,Ft.error,{flushSync:Ke});return}else if(Ft.matches){if(we=Ft.matches,ce=Yu(we,Z),Pe(ce))return}else{Ve(U,K,Jn(404,{pathname:Z}),{flushSync:Ke});return}}j.set(U,qe);let Bt=L,ut=(await xe("action",C,Je,[ce],we,U))[ce.route.id];if(Je.signal.aborted){j.get(U)===qe&&j.delete(U);return}if(d.v7_fetcherPersist&&X.has(U)){if(Qs(ut)||mr(ut)){Ee(U,Bi(void 0));return}}else{if(Qs(ut))if(j.delete(U),B>Bt){Ee(U,Bi(void 0));return}else return G.add(U),Ee(U,Au(Ie)),he(Je,ut,!1,{fetcherSubmission:Ie,preventScrollReset:ke});if(mr(ut)){Ve(U,K,ut.error);return}}if(es(ut))throw Jn(400,{type:"defer-action"});let Pt=C.navigation.location||C.location,zo=Ha(e.history,Pt,qe.signal),Di=a||s,qr=C.navigation.state!=="idle"?Us(Di,C.navigation.location,l):C.matches;it(qr,"Didn't find any matches after fetcher action");let Vn=++L;H.set(U,Vn);let Da=Au(Ie,ut.data);C.fetchers.set(U,Da);let[Vo,pr]=WC(e.history,C,qr,Ie,Pt,!1,d.v7_skipActionErrorRevalidation,z,N,F,X,ee,G,Di,l,[ce.route.id,ut]);pr.filter(Ft=>Ft.key!==U).forEach(Ft=>{let yo=Ft.key,fu=C.fetchers.get(yo),gd=Au(void 0,fu?fu.data:void 0);C.fetchers.set(yo,gd),Et(yo),Ft.controller&&j.set(yo,Ft.controller)}),ue({fetchers:new Map(C.fetchers)});let Pr=()=>pr.forEach(Ft=>Et(Ft.key));qe.signal.addEventListener("abort",Pr);let{loaderResults:Ai,fetcherResults:dt}=await me(C,qr,Vo,pr,zo);if(qe.signal.aborted)return;qe.signal.removeEventListener("abort",Pr),H.delete(U),j.delete(U),pr.forEach(Ft=>j.delete(Ft.key));let Mt=ef(Ai);if(Mt)return he(zo,Mt.result,!1,{preventScrollReset:ke});if(Mt=ef(dt),Mt)return G.add(Mt.key),he(zo,Mt.result,!1,{preventScrollReset:ke});let{loaderData:Bo,errors:ji}=JC(C,qr,Ai,void 0,pr,dt,J);if(C.fetchers.has(U)){let Ft=Bi(ut.data);C.fetchers.set(U,Ft)}Wt(Vn),C.navigation.state==="loading"&&Vn>B?(it(_,"Expected pending action"),P&&P.abort(),le(C.navigation.location,{matches:qr,loaderData:Bo,errors:ji,fetchers:new Map(C.fetchers)})):(ue({errors:ji,loaderData:QC(C.loaderData,Bo,qr,ji),fetchers:new Map(C.fetchers)}),z=!1)}async function Ge(U,K,Z,ce,we,Ae,Ke,ke,Ie){let Pe=C.fetchers.get(U);Ee(U,Au(Ie,Pe?Pe.data:void 0),{flushSync:Ke});let ve=new AbortController,qe=Ha(e.history,Z,ve.signal);if(Ae){let ut=await be(we,new URL(qe.url).pathname,qe.signal,U);if(ut.type==="aborted")return;if(ut.type==="error"){Ve(U,K,ut.error,{flushSync:Ke});return}else if(ut.matches)we=ut.matches,ce=Yu(we,Z);else{Ve(U,K,Jn(404,{pathname:Z}),{flushSync:Ke});return}}j.set(U,ve);let Je=L,vt=(await xe("loader",C,qe,[ce],we,U))[ce.route.id];if(es(vt)&&(vt=await Ow(vt,qe.signal,!0)||vt),j.get(U)===ve&&j.delete(U),!qe.signal.aborted){if(X.has(U)){Ee(U,Bi(void 0));return}if(Qs(vt))if(B>Je){Ee(U,Bi(void 0));return}else{G.add(U),await he(qe,vt,!1,{preventScrollReset:ke});return}if(mr(vt)){Ve(U,K,vt.error);return}it(!es(vt),"Unhandled fetcher deferred data"),Ee(U,Bi(vt.data))}}async function he(U,K,Z,ce){let{submission:we,fetcherSubmission:Ae,preventScrollReset:Ke,replace:ke}=ce===void 0?{}:ce;K.response.headers.has("X-Remix-Revalidate")&&(z=!0);let Ie=K.response.headers.get("Location");it(Ie,"Expected a Location header on the redirect Response"),Ie=YC(Ie,new URL(U.url),l);let Pe=$c(C.location,Ie,{_isRedirect:!0});if(n){let ut=!1;if(K.response.headers.has("X-Remix-Reload-Document"))ut=!0;else if(jw.test(Ie)){const Pt=e.history.createURL(Ie);ut=Pt.origin!==t.location.origin||yi(Pt.pathname,l)==null}if(ut){ke?t.location.replace(Ie):t.location.assign(Ie);return}}P=null;let ve=ke===!0||K.response.headers.has("X-Remix-Replace")?en.Replace:en.Push,{formMethod:qe,formAction:Je,formEncType:Bt}=C.navigation;!we&&!Ae&&qe&&Je&&Bt&&(we=n_(C.navigation));let vt=we||Ae;if(NB.has(K.response.status)&&vt&&eo(vt.formMethod))await ge(ve,Pe,{submission:jt({},vt,{formAction:Ie}),preventScrollReset:Ke||T,enableViewTransition:Z?M:void 0});else{let ut=kg(Pe,we);await ge(ve,Pe,{overrideNavigation:ut,fetcherSubmission:Ae,preventScrollReset:Ke||T,enableViewTransition:Z?M:void 0})}}async function xe(U,K,Z,ce,we,Ae){let Ke,ke={};try{Ke=await UB(u,U,K,Z,ce,we,Ae,i,o)}catch(Ie){return ce.forEach(Pe=>{ke[Pe.route.id]={type:_t.error,error:Ie}}),ke}for(let[Ie,Pe]of Object.entries(Ke))if(XB(Pe)){let ve=Pe.result;ke[Ie]={type:_t.redirect,response:KB(ve,Z,Ie,we,l,d.v7_relativeSplatPath)}}else ke[Ie]=await WB(Pe);return ke}async function me(U,K,Z,ce,we){let Ae=U.matches,Ke=xe("loader",U,we,Z,K,null),ke=Promise.all(ce.map(async ve=>{if(ve.matches&&ve.match&&ve.controller){let Je=(await xe("loader",U,Ha(e.history,ve.path,ve.controller.signal),[ve.match],ve.matches,ve.key))[ve.match.route.id];return{[ve.key]:Je}}else return Promise.resolve({[ve.key]:{type:_t.error,error:Jn(404,{pathname:ve.path})}})})),Ie=await Ke,Pe=(await ke).reduce((ve,qe)=>Object.assign(ve,qe),{});return await Promise.all([ZB(K,Ie,we.signal,Ae,U.loaderData),eH(K,Pe,ce)]),{loaderResults:Ie,fetcherResults:Pe}}function ze(){z=!0,N.push(...ln()),ee.forEach((U,K)=>{j.has(K)&&F.add(K),Et(K)})}function Ee(U,K,Z){Z===void 0&&(Z={}),C.fetchers.set(U,K),ue({fetchers:new Map(C.fetchers)},{flushSync:(Z&&Z.flushSync)===!0})}function Ve(U,K,Z,ce){ce===void 0&&(ce={});let we=Gs(C.matches,K);Ue(U),ue({errors:{[we.route.id]:Z},fetchers:new Map(C.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function He(U){return oe.set(U,(oe.get(U)||0)+1),X.has(U)&&X.delete(U),C.fetchers.get(U)||LB}function Ue(U){let K=C.fetchers.get(U);j.has(U)&&!(K&&K.state==="loading"&&H.has(U))&&Et(U),ee.delete(U),H.delete(U),G.delete(U),d.v7_fetcherPersist&&X.delete(U),F.delete(U),C.fetchers.delete(U)}function xt(U){let K=(oe.get(U)||0)-1;K<=0?(oe.delete(U),X.add(U),d.v7_fetcherPersist||Ue(U)):oe.set(U,K),ue({fetchers:new Map(C.fetchers)})}function Et(U){let K=j.get(U);K&&(K.abort(),j.delete(U))}function zt(U){for(let K of U){let Z=He(K),ce=Bi(Z.data);C.fetchers.set(K,ce)}}function rt(){let U=[],K=!1;for(let Z of G){let ce=C.fetchers.get(Z);it(ce,"Expected fetcher: "+Z),ce.state==="loading"&&(G.delete(Z),U.push(Z),K=!0)}return zt(U),K}function Wt(U){let K=[];for(let[Z,ce]of H)if(ce<U){let we=C.fetchers.get(Z);it(we,"Expected fetcher: "+Z),we.state==="loading"&&(Et(Z),H.delete(Z),K.push(Z))}return zt(K),K.length>0}function an(U,K){let Z=C.blockers.get(U)||Du;return q.get(U)!==K&&q.set(U,K),Z}function dr(U){C.blockers.delete(U),q.delete(U)}function Xn(U,K){let Z=C.blockers.get(U)||Du;it(Z.state==="unblocked"&&K.state==="blocked"||Z.state==="blocked"&&K.state==="blocked"||Z.state==="blocked"&&K.state==="proceeding"||Z.state==="blocked"&&K.state==="unblocked"||Z.state==="proceeding"&&K.state==="unblocked","Invalid blocker state transition: "+Z.state+" -> "+K.state);let ce=new Map(C.blockers);ce.set(U,K),ue({blockers:ce})}function Zt(U){let{currentLocation:K,nextLocation:Z,historyAction:ce}=U;if(q.size===0)return;q.size>1&&ha(!1,"A router only supports one blocker at a time");let we=Array.from(q.entries()),[Ae,Ke]=we[we.length-1],ke=C.blockers.get(Ae);if(!(ke&&ke.state==="proceeding")&&Ke({currentLocation:K,nextLocation:Z,historyAction:ce}))return Ae}function bn(U){let K=Jn(404,{pathname:U}),Z=a||s,{matches:ce,route:we}=e_(Z);return ln(),{notFoundMatches:ce,route:we,error:K}}function ln(U){let K=[];return J.forEach((Z,ce)=>{(!U||U(ce))&&(Z.cancel(),K.push(ce),J.delete(ce))}),K}function Vt(U,K,Z){if(g=U,w=K,v=Z||null,!b&&C.navigation===Pg){b=!0;let ce=Tr(C.location,C.matches);ce!=null&&ue({restoreScrollPosition:ce})}return()=>{g=null,w=null,v=null}}function zn(U,K){return v&&v(U,K.map(ce=>fB(ce,C.loaderData)))||U.key}function $o(U,K){if(g&&w){let Z=zn(U,K);g[Z]=w()}}function Tr(U,K){if(g){let Z=zn(U,K),ce=g[Z];if(typeof ce=="number")return ce}return null}function gt(U,K,Z){if(c)if(U){if(Object.keys(U[0].params).length>0)return{active:!0,matches:Of(K,Z,l,!0)}}else return{active:!0,matches:Of(K,Z,l,!0)||[]};return{active:!1,matches:null}}async function be(U,K,Z,ce){if(!c)return{type:"success",matches:U};let we=U;for(;;){let Ae=a==null,Ke=a||s,ke=i;try{await c({signal:Z,path:K,matches:we,fetcherKey:ce,patch:(ve,qe)=>{Z.aborted||qC(ve,qe,Ke,ke,o)}})}catch(ve){return{type:"error",error:ve,partialMatches:we}}finally{Ae&&!Z.aborted&&(s=[...s])}if(Z.aborted)return{type:"aborted"};let Ie=Us(Ke,K,l);if(Ie)return{type:"success",matches:Ie};let Pe=Of(Ke,K,l,!0);if(!Pe||we.length===Pe.length&&we.every((ve,qe)=>ve.route.id===Pe[qe].route.id))return{type:"success",matches:null};we=Pe}}function fr(U){i={},a=kp(U,o,void 0,i)}function et(U,K){let Z=a==null;qC(U,K,a||s,i,o),Z&&(s=[...s],ue({}))}return I={get basename(){return l},get future(){return d},get state(){return C},get routes(){return s},get window(){return t},initialize:Y,subscribe:se,enableScrollRestoration:Vt,navigate:Re,fetch:Be,revalidate:ye,createHref:U=>e.history.createHref(U),encodeLocation:U=>e.history.encodeLocation(U),getFetcher:He,deleteFetcher:xt,dispose:W,getBlocker:an,deleteBlocker:dr,patchRoutes:et,_internalFetchControllers:j,_internalActiveDeferreds:J,_internalSetRoutes:fr},I}function zB(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Cy(e,t,n,r,o,i,s,a){let l,u;if(s){l=[];for(let d of t)if(l.push(d),d.route.id===s){u=d;break}}else l=t,u=t[t.length-1];let c=Qh(o||".",Jh(l,i),yi(e.pathname,n)||e.pathname,a==="path");if(o==null&&(c.search=e.search,c.hash=e.hash),(o==null||o===""||o===".")&&u){let d=Nw(c.search);if(u.route.index&&!d)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&d){let f=new URLSearchParams(c.search),h=f.getAll("index");f.delete("index"),h.filter(v=>v).forEach(v=>f.append("index",v));let g=f.toString();c.search=g?"?"+g:""}}return r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:ai([n,c.pathname])),ma(c)}function UC(e,t,n,r){if(!r||!zB(r))return{path:n};if(r.formMethod&&!QB(r.formMethod))return{path:n,error:Jn(405,{method:r.formMethod})};let o=()=>({path:n,error:Jn(400,{type:"invalid-body"})}),i=r.formMethod||"get",s=e?i.toUpperCase():i.toLowerCase(),a=SI(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!eo(s))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,g)=>{let[v,w]=g;return""+h+v+"="+w+`
1898`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!eo(s))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}it(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=Ry(r.formData),u=r.formData;else if(r.body instanceof FormData)l=Ry(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=XC(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=XC(l)}catch{return o()}let c={formMethod:s,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(eo(c.formMethod))return{path:n,submission:c};let d=Ds(n);return t&&d.search&&Nw(d.search)&&l.append("index",""),d.search="?"+l,{path:ma(d),submission:c}}function GC(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(o=>o.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function WC(e,t,n,r,o,i,s,a,l,u,c,d,f,h,g,v){let w=v?mr(v[1])?v[1].error:v[1].data:void 0,b=e.createURL(t.location),y=e.createURL(o),x=n;i&&t.errors?x=GC(n,Object.keys(t.errors)[0],!0):v&&mr(v[1])&&(x=GC(n,v[0]));let R=v?v[1].statusCode:void 0,k=s&&R&&R>=400,I=x.filter((_,T)=>{let{route:P}=_;if(P.lazy)return!0;if(P.loader==null)return!1;if(i)return _y(P,t.loaderData,t.errors);if(VB(t.loaderData,t.matches[T],_)||l.some(A=>A===_.route.id))return!0;let M=t.matches[T],O=_;return KC(_,jt({currentUrl:b,currentParams:M.params,nextUrl:y,nextParams:O.params},r,{actionResult:w,actionStatus:R,defaultShouldRevalidate:k?!1:a||b.pathname+b.search===y.pathname+y.search||b.search!==y.search||wI(M,O)}))}),C=[];return d.forEach((_,T)=>{if(i||!n.some(V=>V.route.id===_.routeId)||c.has(T))return;let P=Us(h,_.path,g);if(!P){C.push({key:T,routeId:_.routeId,path:_.path,matches:null,match:null,controller:null});return}let M=t.fetchers.get(T),O=Yu(P,_.path),A=!1;f.has(T)?A=!1:u.has(T)?(u.delete(T),A=!0):M&&M.state!=="idle"&&M.data===void 0?A=a:A=KC(O,jt({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:w,actionStatus:R,defaultShouldRevalidate:k?!1:a})),A&&C.push({key:T,routeId:_.routeId,path:_.path,matches:P,match:O,controller:new AbortController})}),[I,C]}function _y(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function VB(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function wI(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function KC(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function qC(e,t,n,r,o){var i;let s;if(e){let u=r[e];it(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),s=u.children}else s=n;let a=t.filter(u=>!s.some(c=>xI(u,c))),l=kp(a,o,[e||"_","patch",String(((i=s)==null?void 0:i.length)||"0")],r);s.push(...l)}function xI(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var o;return(o=t.children)==null?void 0:o.some(i=>xI(n,i))}):!1}async function BB(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];it(o,"No route found in manifest");let i={};for(let s in r){let l=o[s]!==void 0&&s!=="hasErrorBoundary";ha(!l,'Route "'+o.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!cB.has(s)&&(i[s]=r[s])}Object.assign(o,i),Object.assign(o,jt({},t(o),{lazy:void 0}))}async function HB(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,s)=>Object.assign(o,{[n[s].route.id]:i}),{})}async function UB(e,t,n,r,o,i,s,a,l,u){let c=i.map(h=>h.route.lazy?BB(h.route,l,a):void 0),d=i.map((h,g)=>{let v=c[g],w=o.some(y=>y.route.id===h.route.id);return jt({},h,{shouldLoad:w,resolve:async y=>(y&&r.method==="GET"&&(h.route.lazy||h.route.loader)&&(w=!0),w?GB(t,r,h,v,y,u):Promise.resolve({type:_t.data,result:void 0}))})}),f=await e({matches:d,request:r,params:i[0].params,fetcherKey:s,context:u});try{await Promise.all(c)}catch{}return f}async function GB(e,t,n,r,o,i){let s,a,l=u=>{let c,d=new Promise((g,v)=>c=v);a=()=>c(),t.signal.addEventListener("abort",a);let f=g=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):u({request:t,params:n.params,context:i},...g!==void 0?[g]:[]),h=(async()=>{try{return{type:"data",result:await(o?o(v=>f(v)):f())}}catch(g){return{type:"error",result:g}}})();return Promise.race([h,d])};try{let u=n.route[e];if(r)if(u){let c,[d]=await Promise.all([l(u).catch(f=>{c=f}),r]);if(c!==void 0)throw c;s=d}else if(await r,u=n.route[e],u)s=await l(u);else if(e==="action"){let c=new URL(t.url),d=c.pathname+c.search;throw Jn(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:_t.data,result:void 0};else if(u)s=await l(u);else{let c=new URL(t.url),d=c.pathname+c.search;throw Jn(404,{pathname:d})}it(s.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:_t.error,result:u}}finally{a&&t.signal.removeEventListener("abort",a)}return s}async function WB(e){let{result:t,type:n}=e;if(CI(t)){let d;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(f){return{type:_t.error,error:f}}return n===_t.error?{type:_t.error,error:new Mp(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:_t.data,data:d,statusCode:t.status,headers:t.headers}}if(n===_t.error){if(t_(t)){var r,o;if(t.data instanceof Error){var i,s;return{type:_t.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status,headers:(s=t.init)!=null&&s.headers?new Headers(t.init.headers):void 0}}return{type:_t.error,error:new Mp(((r=t.init)==null?void 0:r.status)||500,void 0,t.data),statusCode:zc(t)?t.status:void 0,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:_t.error,error:t,statusCode:zc(t)?t.status:void 0}}if(JB(t)){var a,l;return{type:_t.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(t_(t)){var u,c;return{type:_t.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}}return{type:_t.data,data:t}}function KB(e,t,n,r,o,i){let s=e.headers.get("Location");if(it(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!jw.test(s)){let a=r.slice(0,r.findIndex(l=>l.route.id===n)+1);s=Cy(new URL(t.url),a,o,!0,s,i),e.headers.set("Location",s)}return e}function YC(e,t,n){if(jw.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=yi(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Ha(e,t,n,r){let o=e.createURL(SI(t)).toString(),i={signal:n};if(r&&eo(r.formMethod)){let{formMethod:s,formEncType:a}=r;i.method=s.toUpperCase(),a==="application/json"?(i.headers=new Headers({"Content-Type":a}),i.body=JSON.stringify(r.json)):a==="text/plain"?i.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?i.body=Ry(r.formData):i.body=r.formData}return new Request(o,i)}function Ry(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function XC(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function qB(e,t,n,r,o){let i={},s=null,a,l=!1,u={},c=n&&mr(n[1])?n[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let f=d.route.id,h=t[f];if(it(!Qs(h),"Cannot handle redirect results in processLoaderData"),mr(h)){let g=h.error;c!==void 0&&(g=c,c=void 0),s=s||{};{let v=Gs(e,f);s[v.route.id]==null&&(s[v.route.id]=g)}i[f]=void 0,l||(l=!0,a=zc(h.error)?h.error.status:500),h.headers&&(u[f]=h.headers)}else es(h)?(r.set(f,h.deferredData),i[f]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(a=h.statusCode),h.headers&&(u[f]=h.headers)):(i[f]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(a=h.statusCode),h.headers&&(u[f]=h.headers))}),c!==void 0&&n&&(s={[n[0]]:c},i[n[0]]=void 0),{loaderData:i,errors:s,statusCode:a||200,loaderHeaders:u}}function JC(e,t,n,r,o,i,s){let{loaderData:a,errors:l}=qB(t,n,r,s);return o.forEach(u=>{let{key:c,match:d,controller:f}=u,h=i[c];if(it(h,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(mr(h)){let g=Gs(e.matches,d==null?void 0:d.route.id);l&&l[g.route.id]||(l=jt({},l,{[g.route.id]:h.error})),e.fetchers.delete(c)}else if(Qs(h))it(!1,"Unhandled fetcher revalidation redirect");else if(es(h))it(!1,"Unhandled fetcher deferred data");else{let g=Bi(h.data);e.fetchers.set(c,g)}}),{loaderData:a,errors:l}}function QC(e,t,n,r){let o=jt({},t);for(let i of n){let s=i.route.id;if(t.hasOwnProperty(s)?t[s]!==void 0&&(o[s]=t[s]):e[s]!==void 0&&i.route.loader&&(o[s]=e[s]),r&&r.hasOwnProperty(s))break}return o}function ZC(e){return e?mr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Gs(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function e_(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Jn(e,t){let{pathname:n,routeId:r,method:o,type:i,message:s}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",l='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Mp(e||500,a,new Error(l),!0)}function ef(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Qs(o))return{key:r,result:o}}}function SI(e){let t=typeof e=="string"?Ds(e):e;return ma(jt({},t,{hash:""}))}function YB(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function XB(e){return CI(e.result)&&OB.has(e.result.status)}function es(e){return e.type===_t.deferred}function mr(e){return e.type===_t.error}function Qs(e){return(e&&e.type)===_t.redirect}function t_(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function JB(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function CI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function QB(e){return jB.has(e.toLowerCase())}function eo(e){return DB.has(e.toLowerCase())}async function ZB(e,t,n,r,o){let i=Object.entries(t);for(let s=0;s<i.length;s++){let[a,l]=i[s],u=e.find(f=>(f==null?void 0:f.route.id)===a);if(!u)continue;let c=r.find(f=>f.route.id===u.route.id),d=c!=null&&!wI(c,u)&&(o&&o[u.route.id])!==void 0;es(l)&&d&&await Ow(l,n,!1).then(f=>{f&&(t[a]=f)})}}async function eH(e,t,n){for(let r=0;r<n.length;r++){let{key:o,routeId:i,controller:s}=n[r],a=t[o];e.find(u=>(u==null?void 0:u.route.id)===i)&&es(a)&&(it(s,"Expected an AbortController for revalidating fetcher deferred result"),await Ow(a,s.signal,!0).then(u=>{u&&(t[o]=u)}))}}async function Ow(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:_t.data,data:e.deferredData.unwrappedData}}catch(o){return{type:_t.error,error:o}}return{type:_t.data,data:e.deferredData.data}}}function Nw(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Yu(e,t){let n=typeof t=="string"?Ds(t).search:t.search;if(e[e.length-1].route.index&&Nw(n||""))return e[e.length-1];let r=vI(e);return r[r.length-1]}function n_(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:s}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function kg(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function tH(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Au(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function nH(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Bi(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function rH(e,t){try{let n=e.sessionStorage.getItem(bI);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function oH(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(bI,JSON.stringify(n))}catch(r){ha(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
1899 * React Router v6.30.2
1900 *
1901 * Copyright (c) Remix Software Inc.
1902 *
1903 * This source code is licensed under the MIT license found in the
1904 * LICENSE.md file in the root directory of this source tree.
1905 *
1906 * @license MIT
1907 */function Dp(){return Dp=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},Dp.apply(this,arguments)}const fd=S.createContext(null),Lw=S.createContext(null),Ii=S.createContext(null),Fw=S.createContext(null),Mi=S.createContext({outlet:null,matches:[],isDataRoute:!1}),_I=S.createContext(null);function iH(e,t){let{relative:n}=t===void 0?{}:t;uu()||it(!1);let{basename:r,navigator:o}=S.useContext(Ii),{hash:i,pathname:s,search:a}=em(e,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:ai([r,s])),o.createHref({pathname:l,search:a,hash:i})}function uu(){return S.useContext(Fw)!=null}function ka(){return uu()||it(!1),S.useContext(Fw).location}function RI(e){S.useContext(Ii).static||S.useLayoutEffect(e)}function Zh(){let{isDataRoute:e}=S.useContext(Mi);return e?bH():sH()}function sH(){uu()||it(!1);let e=S.useContext(fd),{basename:t,future:n,navigator:r}=S.useContext(Ii),{matches:o}=S.useContext(Mi),{pathname:i}=ka(),s=JSON.stringify(Jh(o,n.v7_relativeSplatPath)),a=S.useRef(!1);return RI(()=>{a.current=!0}),S.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=Qh(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:ai([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,s,i,e])}const aH=S.createContext(null);function lH(e){let t=S.useContext(Mi).outlet;return t&&S.createElement(aH.Provider,{value:e},t)}function em(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(Ii),{matches:o}=S.useContext(Mi),{pathname:i}=ka(),s=JSON.stringify(Jh(o,r.v7_relativeSplatPath));return S.useMemo(()=>Qh(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function uH(e,t,n,r){uu()||it(!1);let{navigator:o}=S.useContext(Ii),{matches:i}=S.useContext(Mi),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=ka(),c;c=u;let d=c.pathname||"/",f=d;if(l!=="/"){let v=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(v.length).join("/")}let h=Us(e,{pathname:f});return hH(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:ai([l,o.encodeLocation?o.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:ai([l,o.encodeLocation?o.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n,r)}function cH(){let e=PI(),t=zc(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application 
1907Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:o},n):null,null)}const dH=S.createElement(cH,null);class fH extends S.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?S.createElement(Mi.Provider,{value:this.props.routeContext},S.createElement(_I.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pH(e){let{routeContext:t,match:n,children:r}=e,o=S.useContext(fd);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Mi.Provider,{value:t},r)}function hH(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let c=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||it(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c<s.length;c++){let d=s[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=c),d.route.id){let{loaderData:f,errors:h}=n,g=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||g){l=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,d,f)=>{let h,g=!1,v=null,w=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,v=d.route.errorElement||dH,l&&(u<0&&f===0?(wH("route-fallback"),g=!0,w=null):u===f&&(g=!0,w=d.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,f+1)),y=()=>{let x;return h?x=v:g?x=w:d.route.Component?x=S.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=c,S.createElement(pH,{match:d,routeContext:{outlet:c,matches:b,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?S.createElement(fH,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:y(),routeC
1907ontext:{outlet:null,matches:b,isDataRoute:!0}}):y()},null)}var EI=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(EI||{}),TI=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}(TI||{});function mH(e){let t=S.useContext(fd);return t||it(!1),t}function $w(e){let t=S.useContext(Lw);return t||it(!1),t}function gH(e){let t=S.useContext(Mi);return t||it(!1),t}function zw(e){let t=gH(),n=t.matches[t.matches.length-1];return n.route.id||it(!1),n.route.id}function vH(){return $w().navigation}function yH(){let e=$w(),t=zw();if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function PI(){var e;let t=S.useContext(_I),n=$w(TI.UseRouteError),r=zw();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function bH(){let{router:e}=mH(EI.UseNavigateStable),t=zw(),n=S.useRef(!1);return RI(()=>{n.current=!0}),S.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Dp({fromRouteId:t},i)))},[e,t])}const r_={};function wH(e,t,n){r_[e]||(r_[e]=!0)}function xH(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function tf(e){let{to:t,replace:n,state:r,relative:o}=e;uu()||it(!1);let{future:i,static:s}=S.useContext(Ii),{matches:a}=S.useContext(Mi),{pathname:l}=ka(),u=Zh(),c=Qh(t,Jh(a,i.v7_relativeSplatPath),l,o==="path"),d=JSON.stringify(c);return S.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:o}),[u,d,o,n,r]),null}function tm(e){return lH(e.context)}function SH(e){let{basename:t="/",children:n=null,location:r,navigationType:o=en.Pop,navigator:i,static:s=!1,future:a}=e;uu()&&it(!1);let l=t.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:l,navigator:i,static:s,future:Dp({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Ds(r));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:g="default"}=r,v=S.useMemo(()=>{let w=yi(c,l);return w==null?null:{location:{pathname:w,search:d,hash:f,state:h,key:g},navigationType:o}},[l,c,d,f,h,g,o]);return v==null?null:S.createElement(Ii.Provider,{value:u},S.createElement(Fw.Provider,{children:n,value:v}))}new Promise(()=>{});function CH(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:S.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:S.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:S.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
1908 * React Router DOM v6.30.2
1909 *
1910 * Copyright (c) Remix Software Inc.
1911 *
1912 * This source code is licensed under the MIT license found in the
1913 * LICENSE.md file in the root directory of this source tree.
1914 *
1915 * @license MIT
1916 */function zl(){return zl=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},zl.apply(this,arguments)}function kI(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function _H(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function RH(e,t){return e.button===0&&(!t||t==="_self")&&!_H(e)}function Ey(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(o=>[n,o]):[[n,r]])},[]))}function EH(e,t){let n=Ey(e);return t&&t.forEach((r,o)=>
vendor: 4,384 bytes, line 1916
1916{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const TH=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],PH=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],kH="6";try{window.__reactRouterVersion=kH}catch{}function IH(e,t){return $B({basename:void 0,future:zl({},void 0,{v7_prependBasename:!0}),history:aB({window:void 0}),hydrationData:MH(),routes:e,mapRouteProperties:CH,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function MH(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=zl({},t,{errors:DH(t.errors)})),t}function DH(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Mp(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let s=new i(o.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const II=S.createContext({isTransitioning:!1}),AH=S.createContext(new Map),jH="startTransition",o_=kR[jH],OH="flushSync",i_=Zj[OH];function NH(e){o_?o_(e):e()}function ju(e){i_?i_(e):e()}class LH{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function FH(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=S.useState(n.state),[s,a]=S.useState(),[l,u]=S.useState({isTransitioning:!1}),[c,d]=S.useState(),[f,h]=S.useState(),[g,v]=S.useState(),w=S.useRef(new Map),{v7_startTransition:b}=r||{},y=S.useCallback(_=>{b?NH(_):_()},[b]),x=S.useCallback((_,T)=>{let{deletedFetchers:P,flushSync:M,viewTransitionOpts:O}=T;_.fetchers.forEach((V,z)=>{V.data!==void 0&&w.current.set(z,V.data)}),P.forEach(V=>w.current.delete(V));let A=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!O||A){M?ju(()=>i(_)):y(()=>i(_));return}if(M){ju(()=>{f&&(c&&c.resolve(),f.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation})});let V=n.window.document.startViewTransition(()=>{ju(()=>i(_))});V.finished.finally(()=>{ju(()=>{d(void 0),h(void 0),a(void 0),u({isTransitioning:!1})})}),ju(()=>h(V));return}f?(c&&c.resolve(),f.skipTransition(),v({state:_,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(a(_),u({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[n.window,f,c,w,y]);S.useLayoutEffect(()=>n.subscribe(x),[n,x]),S.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new LH)},[l]),S.useEffect(()=>{if(c&&s&&n.window){let _=s,T=c.promise,P=n.window.document.startViewTransition(async()=>{y(()=>i(_)),await T});P.finished.finally(()=>{d(void 0),h(void 0),a(void 0),u({isTransitioning:!1})}),h(P)}},[y,s,c,n.window]),S.useEffect(()=>{c&&s&&o.location.key===s.location.key&&c.resolve()},[c,f,o.location,s]),S.useEffect(()=>{!l.isTransitioning&&g&&(a(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[l.isTransitioning,g]),S.useEffect(()=>{},[]);let R=S.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,T,P)=>n.navigate(_,{state:T,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(_,T,P)=>n.navigate(_,{replace:!0,state:T,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),k=n.basename||"/",I=S.useMemo(()=>({router:n,navigator:R,static:!1,basename:k}),[n,R,k]),C=S.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return S.useEffect(()=>xH(r,n.future),[r,n.future]),S.createElement(S.Fragment,null,S.createElement(fd.Provider,{value:I},S.createElement(Lw.Provider,{value:o},S.createElement(AH.Provider,{value:w.current},S.createElement(II.Provider,{value:l},S.createElement(SH,{basename:k,location:o.location,navigationType:o.historyAction,navigator:R,future:C},o.initialized||n.future.v7_partialHydration?S.createElement($H,{routes:n.routes,future:n.future,state:o}):t))))),null)}const $H=S.memo(zH);function zH(e){let{routes:t,future:n,state:r}=e;
1916return uH(t,void 0,r,n)}const VH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",BH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cu=S.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:u,preventScrollReset:c,viewTransition:d}=t,f=kI(t,TH),{basename:h}=S.useContext(Ii),g,v=!1;if(typeof u=="string"&&BH.test(u)&&(g=u,VH))try{let x=new URL(window.location.href),R=u.startsWith("//")?new URL(x.protocol+u):new URL(u),k=yi(R.pathname,h);R.origin===x.origin&&k!=null?u=k+R.search+R.hash:v=!0}catch{}let w=iH(u,{relative:o}),b=GH(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:o,viewTransition:d});function y(x){r&&r(x),x.defaultPrevented||b(x)}return S.createElement("a",zl({},f,{href:g||w,onClick:v||i?r:y,ref:n,target:l}))}),HH=S.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:l,viewTransition:u,children:c}=t,d=kI(t,PH),f=em(l,{relative:d.relative}),h=ka(),g=S.useContext(Lw),{navigator:v,basename:w}=S.useContext(Ii),b=g!=null&&KH(f)&&u===!0,y=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,x=h.pathname,R=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(x=x.toLowerCase(),R=R?R.toLowerCase():null,y=y.toLowerCase()),R&&w&&(R=yi(R,w)||R);const k=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let I=x===y||!s&&x.startsWith(y)&&x.charAt(k)==="/",C=R!=null&&(R===y||!s&&R.startsWith(y)&&R.charAt(y.length)==="/"),_={isActive:I,isPending:C,isTransitioning:b},T=I?r:void 0,P;typeof i=="function"?P=i(_):P=[i,I?"active":null,C?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let M=typeof a=="function"?a(_):a;return S.createElement(cu,zl({},d,{"aria-current":T,className:P,ref:n,style:M,to:l,viewTransition:u}),typeof c=="function"?c(_):c)});var Ty;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ty||(Ty={}));var s_;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(s_||(s_={}));function UH(e){let t=S.useContext(fd);return t||it(!1),t}function GH(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=Zh(),u=ka(),c=em(e,{relative:s});return S.useCallback(d=>{if(RH(d,n)){d.preventDefault();let f=r!==void 0?r:ma(u)===ma(c);l(e,{replace:f,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[u,l,c,r,o,n,e,i,s,a])}function WH(e){let t=S.useRef(Ey(e)),n=S.useRef(!1),r=ka(),o=S.useMemo(()=>EH(r.search,n.current?null:t.current),[r.search]),i=Zh(),s=S.useCallback((a,l)=>{const u=Ey(typeof a=="function"?a(o):a);n.current=!0,i("?"+u,l)},[i,o]);return[o,s]}function KH(e,t){t===void 0&&(t={});let n=S.useContext(II);n==null&&it(!1);let{basename:r}=UH(Ty.useViewTransitionState),o=em(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=yi(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=yi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ip(o.pathname,s)!=null||Ip(o.pathname,i)!=null}function qH(e){return p.jsx(da,{order:2,...e})}function nm({children:e,header:t,Footer:n,...r}={}){const o=vH(),i=S.useMemo(()=>["loading","submitting"].includes(o.state),[o.state]);return p.jsxs(te,{id:"page-root",h:"100%",display:"flex",style:{flexDirection:"column",...i?{position:"relative"}:{}},children:[p.jsx(kh,{visible:i,zIndex:1e3,overlayProps:{radius:"md",blur:2}}),p.jsxs(Ze,{id:"page-content",m:"lg",pb:"lg",gap:"md",style:{flexGrow:1,animation:"fadeInRight 0.4s ease-out"},...r,children:[!!t&&p.jsx(qH,{children:t}),e]}),!!n&&p.jsx(te,{id:"page-footer",pos:"sticky",bottom:0,style:{zIndex:"var(--mantine-z-index-app)",boxShadow:"0px -4px 20px 0px rgba(0, 0, 0, 0.1)"},children:n})]})}function yr(e){"@babel/helpers - typeof";return yr=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},yr(e)}function YH(e,t){if(yr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function MI(e){var t=YH(e,"string");return yr(t)=="symbol"?t:t+""}
1916function Fo(e,t,n){return(t=MI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XH(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var a_={};function Py(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&a_[t[0]]||(typeof t[0]=="string"&&(a_[t[0]]=new Date),XH.apply(void 0,t))}var DI=function(t,n){return function(){if(t.isInitialized)n();else{var r=function o(){setTimeout(function(){t.off("initialized",o)},0),n()};t.on("initialized",r)}}};function l_(e,t,n){e.loadNamespaces(t,DI(e,n))}function u_(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(o){e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,DI(e,r))}function JH(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],o=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var s=function(l,u){var c=t.services.backendConnector.state["".concat(l,"|").concat(u)];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!s(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||s(r,e)&&(!o||s(i,e)))}function QH(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return Py("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(i,s){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,e))return!1}}):JH(e,t,n)}var ZH=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,eU={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},tU=function(t){return eU[t]},nU=function(t){return t.replace(ZH,tU)};function c_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function d_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c_(Object(n),!0).forEach(function(r){Fo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ky={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:nU};function rU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ky=d_(d_({},ky),e)}function oU(){return ky}var AI;function iU(e){AI=e}function sU(){return AI}function go(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,MI(r.key),r)}}function vo(e,t,n){return t&&f_(e.prototype,t),n&&f_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var aU={type:"3rdParty",init:function(t){rU(t.options.react),iU(t)}},lU=S.createContext(),uU=function(){function e(){go(this,e),this.usedNamespaces={}}return vo(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(o){r.usedNamespaces[o]||(r.usedNamespaces[o]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function jI(e){if(Array.isArray(e))return e}function cU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(c){u=!0,o=c}
1916finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function p_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function OI(e,t){if(e){if(typeof e=="string")return p_(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p_(e,t):void 0}}function NI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1917In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dU(e,t){return jI(e)||cU(e,t)||OI(e,t)||NI()}function h_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ig(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h_(Object(n),!0).forEach(function(r){Fo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var fU=function(t,n){var r=S.useRef();return S.useEffect(function(){r.current=t},[t,n]),r.current};function yn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=S.useContext(lU)||{},o=r.i18n,i=r.defaultNS,s=n||o||sU();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new uU),!s){Py("You will need to pass in an i18next instance by using initReactI18next");var a=function(T,P){return typeof P=="string"?P:P&&yr(P)==="object"&&typeof P.defaultValue=="string"?P.defaultValue:Array.isArray(T)?T[T.length-1]:T},l=[a,{},!1];return l.t=a,l.i18n={},l.ready=!1,l}s.options.react&&s.options.react.wait!==void 0&&Py("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=Ig(Ig(Ig({},oU()),s.options.react),t),c=u.useSuspense,d=u.keyPrefix,f=i||s.options&&s.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(f);var h=(s.isInitialized||s.initializedStoreOnce)&&f.every(function(_){return QH(_,s,u)});function g(){return s.getFixedT(t.lng||null,u.nsMode==="fallback"?f:f[0],d)}var v=S.useState(g),w=dU(v,2),b=w[0],y=w[1],x=f.join();t.lng&&(x="".concat(t.lng).concat(x));var R=fU(x),k=S.useRef(!0);S.useEffect(function(){var _=u.bindI18n,T=u.bindI18nStore;k.current=!0,!h&&!c&&(t.lng?u_(s,t.lng,f,function(){k.current&&y(g)}):l_(s,f,function(){k.current&&y(g)})),h&&R&&R!==x&&k.current&&y(g);function P(){k.current&&y(g)}return _&&s&&s.on(_,P),T&&s&&s.store.on(T,P),function(){k.current=!1,_&&s&&_.split(" ").forEach(function(M){return s.off(M,P)}),T&&s&&T.split(" ").forEach(function(M){return s.store.off(M,P)})}},[s,x]);var I=S.useRef(!0);S.useEffect(function(){k.current&&!I.current&&y(g),I.current=!1},[s,d]);var C=[b,s,h];if(C.t=b,C.i18n=s,C.ready=h,h||!h&&!c)return C;throw new Promise(function(_){t.lng?u_(s,t.lng,f,function(){return _()}):l_(s,f,function(){return _()})})}const Mg="pages.genericError";function pU(){const e=PI();console.error(e);const{t}=yn();return p.jsxs(nm,{h:"100vh",pt:"xl",align:"center",style:{textAlign:"center"},children:[p.jsx(da,{order:1,children:t(`${Mg}.header`)}),p.jsx(da,{order:3,style:{fontFamily:"Ubuntu"},children:t(`${Mg}.subheader`)}),p.jsx(nt,{size:"md",c:"dimmed",children:[e.statusText,e.message].filter(Boolean).join(" - ")}),p.jsx(mt,{justify:"center",children:p.jsx(Ct,{component:HH,to:"/",size:"md",children:t(`${Mg}.back`)})})]})}function m_(){return p.jsx(tm,{})}function rm(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yp(e,t)}function pd(e,t){if(t&&(yr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return si(e)}
1917function Oo(e){return Oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Oo(e)}function hU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mU(e){return jI(e)||hU(e)||OI(e)||NI()}function g_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function v_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g_(Object(n),!0).forEach(function(r){Fo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var gU={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},vU=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};go(this,e),this.init(t,n)}return vo(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||gU,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,o,i){return i&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(o).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,v_(v_({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),To=new vU,ws=function(){function e(){go(this,e),this.observers={}}return vo(e,[{key:"on",value:function(n,r){var o=this;return n.split(" ").forEach(function(i){o.observers[i]=o.observers[i]||[],o.observers[i].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(o){return o!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(this.observers[n]){var s=[].concat(this.observers[n]);s.forEach(function(l){l.apply(void 0,o)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(l){l.apply(l,[n].concat(o))})}}}]),e}();function Ou(){var e,t,n=new Promise(function(r,o){e=r,t=o});return n.resolve=e,n.reject=t,n}function y_(e){return e==null?"":""+e}function yU(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function Vw(e,t,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var s=r(i.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return o()?{}:{obj:e,k:r(i.shift())}}function b_(e,t,n){var r=Vw(e,t,Object),o=r.obj,i=r.k;o[i]=n}function bU(e,t,n,r){var o=Vw(e,t,Object),i=o.obj,s=o.k;i[s]=i[s]||[],i[s].push(n)}function Ap(e,t){var n=Vw(e,t),r=n.obj,o=n.k;if(r)return r[o]}function wU(e,t,n){var r=Ap(e,n);return r!==void 0?r:Ap(t,n)}function LI(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="str
1917ing"||t[r]instanceof String?n&&(e[r]=t[r]):LI(e[r],t[r],n):e[r]=t[r]);return e}function Ua(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var xU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function SU(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return xU[t]}):e}var om=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,CU=[" ",",","?","!",";"];function _U(e,t,n){t=t||"",n=n||"";var r=CU.filter(function(a){return t.indexOf(a)<0&&n.indexOf(a)<0});if(r.length===0)return!0;var o=new RegExp("(".concat(r.map(function(a){return a==="?"?"\\?":a}).join("|"),")")),i=!o.test(e);if(!i){var s=e.indexOf(n);s>0&&!o.test(e.substring(0,s))&&(i=!0)}return i}function jp(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){for(var s=2,a=r.slice(i,i+s).join(n),l=o[a];l===void 0&&r.length>i+s;)s++,a=r.slice(i,i+s).join(n),l=o[a];if(l===void 0)return;if(l===null)return null;if(t.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}var u=r.slice(i+s).join(n);return u?jp(l,u,n):void 0}o=o[r[i]]}return o}}function w_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function nf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w_(Object(n),!0).forEach(function(r){Fo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RU(e){var t=EU();return function(){var r=Oo(e),o;if(t){var i=Oo(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return pd(this,o)}}function EU(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var TU=function(e){rm(n,e);var t=RU(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return go(this,n),o=t.call(this),om&&ws.call(si(o)),o.data=r||{},o.options=i,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.options.ignoreJSONStructure===void 0&&(o.options.ignoreJSONStructure=!0),o}return vo(n,[{key:"addNamespaces",value:function(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}},{key:"removeNamespaces",value:function(o){var i=this.options.ns.indexOf(o);i>-1&&this.options.ns.splice(i,1)}},{key:"getResource",value:function(o,i,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[o,i];s&&typeof s!="string"&&(c=c.concat(s)),s&&typeof s=="string"&&(c=c.concat(l?s.split(l):s)),o.indexOf(".")>-1&&(c=o.split("."));var d=Ap(this.data,c);return d||!u||typeof s!="string"?d:jp(this.data&&this.data[o]&&this.data[o][i],s,l)}},{key:"addResource",value:function(o,i,s,a){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,c=[o,i];s&&(c=c.concat(u?s.split(u):s)),o.indexOf(".")>-1&&(c=o.split("."),a=i,i=c[1]),this.addNamespaces(i),b_(this.data,c,a),l.silent||this.emit("added",o,i,s,a)}},{key:"addResources",value:function(o,i,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in s)(typeof s[l]=="string"||Object.prototype.toString.apply(s[l])==="[object Array]")&&this.addResource(o,i,l,s[l],{silent:!0});a.silent||this.emit("added",o,i,s)}},{key:"addResourceBundle",value:function(o,i,s,a,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[o,i];o.indexOf(".")>-1&&(c=o.split("."),a=s,s=i,i=c[1]),this.addNamespaces(i);var d=Ap(this.data,c)||{};a?LI(d,s,l):d=nf(nf({}
1917,d),s),b_(this.data,c,d),u.silent||this.emit("added",o,i,s)}},{key:"removeResourceBundle",value:function(o,i){this.hasResourceBundle(o,i)&&delete this.data[o][i],this.removeNamespaces(i),this.emit("removed",o,i)}},{key:"hasResourceBundle",value:function(o,i){return this.getResource(o,i)!==void 0}},{key:"getResourceBundle",value:function(o,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?nf(nf({},{}),this.getResource(o,i)):this.getResource(o,i)}},{key:"getDataByLanguage",value:function(o){return this.data[o]}},{key:"hasLanguageSomeTranslations",value:function(o){var i=this.getDataByLanguage(o),s=i&&Object.keys(i)||[];return!!s.find(function(a){return i[a]&&Object.keys(i[a]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(ws),FI={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,o,i){var s=this;return t.forEach(function(a){s.processors[a]&&(n=s.processors[a].process(n,r,o,i))}),n}};function x_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x_(Object(n),!0).forEach(function(r){Fo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PU(e){var t=kU();return function(){var r=Oo(e),o;if(t){var i=Oo(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return pd(this,o)}}function kU(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var S_={},C_=function(e){rm(n,e);var t=PU(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return go(this,n),o=t.call(this),om&&ws.call(si(o)),yU(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
1917i18nFormat","utils"],r,si(o)),o.options=i,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.logger=To.create("translator"),o}return vo(n,[{key:"changeLanguage",value:function(o){o&&(this.language=o)}},{key:"exists",value:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(o==null)return!1;var s=this.resolve(o,i);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(o,i){var s=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ns||this.options.defaultNS||[],u=s&&o.indexOf(s)>-1,c=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!_U(o,s,a);if(u&&!c){var d=o.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:o,namespaces:l};var f=o.split(s);(s!==a||s===a&&this.options.ns.indexOf(f[0])>-1)&&(l=f.shift()),o=f.join(a)}return typeof l=="string"&&(l=[l]),{key:o,namespaces:l}}},{key:"translate",value:function(o,i,s){var a=this;if(yr(i)!=="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),yr(i)==="object"&&(i=On({},i)),i||(i={}),o==null)return"";Array.isArray(o)||(o=[String(o)]);var l=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,u=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,c=this.extractFromKey(o[o.length-1],i),d=c.key,f=c.namespaces,h=f[f.length-1],g=i.lng||this.language,v=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(g&&g.toLowerCase()==="cimode"){if(v){var w=i.nsSeparator||this.options.nsSeparator;
1917return l?{res:"".concat(h).concat(w).concat(d),usedKey:d,exactUsedKey:d,usedLng:g,usedNS:h}:"".concat(h).concat(w).concat(d)}return l?{res:d,usedKey:d,exactUsedKey:d,usedLng:g,usedNS:h}:d}var b=this.resolve(o,i),y=b&&b.res,x=b&&b.usedKey||d,R=b&&b.exactUsedKey||d,k=Object.prototype.toString.apply(y),I=["[object Number]","[object Function]","[object RegExp]"],C=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,T=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(_&&y&&T&&I.indexOf(k)<0&&!(typeof C=="string"&&k==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var P=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,y,On(On({},i),{},{ns:f})):"key '".concat(d," (").concat(this.language,")' returned an object instead of string.");return l?(b.res=P,b):P}if(u){var M=k==="[object Array]",O=M?[]:{},A=M?R:x;for(var V in y)if(Object.prototype.hasOwnProperty.call(y,V)){var z="".concat(A).concat(u).concat(V);O[V]=this.translate(z,On(On({},i),{joinArrays:!1,ns:f})),O[V]===z&&(O[V]=y[V])}y=O}}else if(_&&typeof C=="string"&&k==="[object Array]")y=y.join(C),y&&(y=this.extendTranslation(y,o,i,s));else{var N=!1,F=!1,j=i.count!==void 0&&typeof i.count!="string",L=n.hasDefaultValue(i),B=j?this.pluralResolver.getSuffix(g,i.count,i):"",H=i["defaultValue".concat(B)]||i.defaultValue;!this.isValidLookup(y)&&L&&(N=!0,y=H),this.isValidLookup(y)||(F=!0,y=d);var G=i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ee=G&&F?void 0:y,oe=L&&H!==y&&this.options.updateMissing;if(F||N||oe){if(this.logger.log(oe?"updateKey":"missingKey",g,h,d,oe?H:y),u){var X=this.resolve(d,On(On({},i),{},{keySeparator:!1}));X&&X.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var J=[],q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&q&&q[0])for(var ne=0;ne<q.length;ne++)J.push(q[ne]);else this.options.saveMissingTo==="all"?J=this.languageUtils.toResolveHierarchy(i.lng||this.language):J.push(i.lng||this.language);var Y=function(se,ue,le){var Re=L&&le!==y?le:ee;a.options.missingKeyHandler?a.options.missingKeyHandler(se,h,ue,Re,oe,i):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(se,h,ue,Re,oe,i),a.emit("missingKey",se,h,ue,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&j?J.forEach(function(W){a.pluralResolver.getSuffixes(W,i).forEach(function(se){Y([W],d+se,i["defaultValue".concat(se)]||H)})}):Y(J,d,H))}y=this.extendTranslation(y,o,i,b,s),F&&y===d&&this.options.appendNamespaceToMissingKey&&(y="".concat(h,":").concat(d)),(F||N)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(h,":").concat(d):d,N?y:void 0):y=this.options.parseMissingKeyHandler(y))}return l?(b.res=y,b):y}},{key:"extendTranslation",value:function(o,i,s,a,l){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)o=this.i18nFormat.parse(o,On(On({},this.options.interpolation.defaultVariables),s),a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(On(On({},s),{interpolation:On(On({},this.options.interpolation),s.interpolation)}));var c=typeof o=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),d;if(c){var f=o.match(this.interpolator.nestingRegexp);d=f&&f.length}var h=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(h=On(On({},this.options.interpolation.defaultVariables),h)),o=this.interpolator.interpolate(o,h,s.lng||this.language,s),c){var g=o.match(this.interpolator.nestingRegexp),v=g&&g.length;d<v&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(s.lng=a.usedLng),s.nest!==!1&&(o=this.interpolator.nest(o,function(){for(var y=arguments.length,x=new Array(y),R=0;R<y;R++)x[R]=arguments[R];return l&&l[0]===x[0]&&!s.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(x[0]," in key: ").concat(i[0])),null):u.translate.apply(u,x.concat([i]))}
1917,s)),s.interpolation&&this.interpolator.reset()}var w=s.postProcess||this.options.postProcess,b=typeof w=="string"?[w]:w;return o!=null&&b&&b.length&&s.applyPostProcessor!==!1&&(o=FI.handle(b,o,i,this.options&&this.options.postProcessPassResolved?On({i18nResolved:a},s):s,this)),o}},{key:"resolve",value:function(o){var i=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,l,u,c,d;return typeof o=="string"&&(o=[o]),o.forEach(function(f){if(!i.isValidLookup(a)){var h=i.extractFromKey(f,s),g=h.key;l=g;var v=h.namespaces;i.options.fallbackNS&&(v=v.concat(i.options.fallbackNS));var w=s.count!==void 0&&typeof s.count!="string",b=w&&!s.ordinal&&s.count===0&&i.pluralResolver.shouldUseIntlApi(),y=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",x=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);v.forEach(function(R){i.isValidLookup(a)||(d=R,!S_["".concat(x[0],"-").concat(R)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(d)&&(S_["".concat(x[0],"-").concat(R)]=!0,i.logger.warn('key "'.concat(l,'" for languages "').concat(x.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(function(k){if(!i.isValidLookup(a)){c=k;var I=[g];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(I,g,k,R,s);else{var C;w&&(C=i.pluralResolver.getSuffix(k,s.count,s));var _="".concat(i.options.pluralSeparator,"zero");if(w&&(I.push(g+C),b&&I.push(g+_)),y){var T="".concat(g).concat(i.options.contextSeparator).concat(s.context);I.push(T),w&&(I.push(T+C),b&&I.push(T+_))}}for(var P;P=I.pop();)i.isValidLookup(a)||(u=P,a=i.getResource(k,R,P,s))}}))})}}),{res:a,usedKey:l,exactUsedKey:u,usedLng:c,usedNS:d}}},{key:"isValidLookup",value:function(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}},{key:"getResource",value:function(o,i,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(o,i,s,a):this.resourceStore.getResource(o,i,s,a)}}],[{key:"hasDefaultValue",value:function(o){var i="defaultValue";for(var s in o)if(Object.prototype.hasOwnProperty.call(o,s)&&i===s.substring(0,i.length)&&o[s]!==void 0)return!0;return!1}}]),n}(ws);function Dg(e){return e.charAt(0).toUpperCase()+e.slice(1)}var __=function(){function e(t){go(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=To.create("languageUtils")}return vo(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],o=n.split("-");return this.options.lowerCaseLng?o=o.map(function(i){return i.toLowerCase()}):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=Dg(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=Dg(o[1].toLowerCase())),r.indexOf(o[2].toLowerCase())>-1&&(o[2]=Dg(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var o;
1917return n.forEach(function(i){if(!o){var s=r.formatLanguageCode(i);(!r.options.supportedLngs||r.isSupportedCode(s))&&(o=s)}}),!o&&this.options.supportedLngs&&n.forEach(function(i){if(!o){var s=r.getLanguagePartFromCode(i);if(r.isSupportedCode(s))return o=s;o=r.options.supportedLngs.find(function(a){if(a===s)return a;if(!(a.indexOf("-")<0&&s.indexOf("-")<0)&&a.indexOf(s)===0)return a})}}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var o=n[r];return o||(o=n[this.getScriptPartFromCode(r)]),o||(o=n[this.formatLanguageCode(r)]),o||(o=n[this.getLanguagePartFromCode(r)]),o||(o=n.default),o||[]}},{key:"toResolveHierarchy",value:function(n,r){var o=this,i=this.getFallbackCodes(r||this.options.fallbackLng||[],n),s=[],a=function(u){u&&(o.isSupportedCode(u)?s.push(u):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(n))):typeof n=="string"&&a(this.formatLanguageCode(n)),i.forEac
1917h(function(l){s.indexOf(l)<0&&a(o.formatLanguageCode(l))}),s}}]),e}(),IU=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],MU={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},DU=["v1","v2","v3"],R_={zero:0,one:1,two:2,few:3,many:4,other:5};function AU(){var e={};return IU.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:MU[t.fc]}})}),e}var jU=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};go(this,e),this.languageUtils=t,this.options=n,this.logger=To.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=AU()}return vo(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,r);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,o).map(function(i){return"".concat(r).concat(i)})}},{key:"getSuffixes",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,o);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(s,a){return R_[s]-R_[a]}).map(function(s){return"".concat(r.options.prepend).concat(s)}):i.numbers.map(function(s){return r.getSuffix(n,s,o)}):[]}},{key:"getSuffix",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(n,o);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(r)):this.getSuffixRetroCompatible(i,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var o=this,i=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),s=n.numbers[i];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[
19170]===1&&(s===2?s="plural":s===1&&(s=""));var a=function(){return o.options.prepend&&s.toString()?o.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!DU.includes(this.options.compatibilityJSON)}}]),e}();function E_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E_(Object(n),!0).forEach(function(r){Fo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T_(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=wU(e,t,n);return!i&&o&&typeof n=="string"&&(i=jp(e,n,r),i===void 0&&(i=jp(t,n,r))),i}var OU=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};go(this,e),this.logger=To.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return vo(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:SU,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Ua(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Ua(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Ua(r.nestingPrefix):r.nestingPrefixEscaped||Ua("$t("),this.nestingSuffix=r.nestingSuffix?Ua(r.nestingSuffix):r.nestingSuffixEscaped||Ua(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(o,"g")}},{key:"interpolate",value:function(n,r,o,i){var s=this,a,l,u,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(w){return w.replace(/\$/g,"$$$$")}var f=function(b){if(b.indexOf(s.formatSeparator)<0){var y=T_(r,c,b,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(y,void 0,o,Jr(Jr(Jr({},i),r),{},{interpolationkey:b})):y}var x=b.split(s.formatSeparator),R=x.shift().trim(),k=x.join(s.formatSeparator).trim();return s.format(T_(r,c,R,s.options.keySeparator,s.options.ignoreJSONStructure),k,o,Jr(Jr(Jr({},i),r),{},{interpolationkey:R}))};this.resetRegExp();var h=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,g=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(b){return d(b)}},{regex:this.regexp,safeValue:function(b){return s.escapeValue?d(s.escape(b)):d(b)}}];return v.forEach(function(w){for(u=0;a=w.regex.exec(n);){var b=a[1].trim();if(l=f(b),l===void 0)if(typeof h=="function"){var y=h(n,a,i);l=typeof y=="string"?y:""}else if(i&&Object.prototype.hasOwnProperty.call(i,b))l="";else if(g){l=a[0];continue}else s.logger.warn("missed to pass in variable ".concat(b," for interpolating ").concat(n)),l="";else typeof l!="string"&&!s.useRawValueToEscape&&(l=y_(l));var x=w.safeValue(l);if(n=n.replace(a[0],x),g?(w.regex.lastIndex+=l.length,w.regex.lastIndex-=a[0].length):w.regex.lastIndex=0,u++,u>=s.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,a,l;function u(h,g){var v=this.nestingOptionsSeparator;if(h.indexOf(v)<0)return h;var w=h.split(new RegExp("".concat(v,"[ ]*{"))),b="{".concat(w[1]);h=w[0],b=this.interpolate(b,l);var y=b.match(/'/g),x=b.match(/"/g);(y&&y.length%2===0&&!x||x.length%2!==0)&&(b=b.replace(/'/g,'"'));try{l=JSON.parse(b),g&&(l=Jr(Jr({},g),l))}catch(R){return this.logger.warn("failed parsing options string in nesting for key ".concat(h),R),"".concat(h).concat(v).concat(b)}return delete l.defaultValue,h}for(;s=this.nestingRegexp.exec(n);){var c=[];l=Jr({},i),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var d=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var f=s[1].split(this.formatSeparator).map(function(h){return h.trim()});s[1]=f.shift(),c=f,d=!0}if(a=r(u.call(this,s[1].trim(),l),l),a&&s[0]===n&&typeof a!="string")return a;typeof a!="string"&&(a=y_(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),a=""),d&&(a=c.reduce(function(h,g){return o.format(h,g,i.lng,Jr(Jr({},i),{},{interpolationkey:s[1].trim()}))},a.trim())),n=n.replace(s[0],a),this.regexp.lastIndex=0}return n}}]),e}();function P_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Go(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
1917t%2?P_(Object(n),!0).forEach(function(r){Fo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NU(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);if(t==="currency"&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if(t==="relativetime"&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{var i=o.split(";");i.forEach(function(s){if(s){var a=s.split(":"),l=mU(a),u=l[0],c=l.slice(1),d=c.join(":").trim().replace(/^'+|'+$/g,"");n[u.trim()]||(n[u.trim()]=d),d==="false"&&(n[u.trim()]=!1),d==="true"&&(n[u.trim()]=!0),isNaN(d)||(n[u.trim()]=parseInt(d,10))}})}}return{formatName:t,formatOptions:n}}function Ga(e){var t={};return function(r,o,i){var s=o+JSON.stringify(i),a=t[s];return a||(a=e(o,i),t[s]=a),a(r)}}var LU=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};go(this,e),this.logger=To.create("formatter"),this.options=t,this.formats={number:Ga(function(n,r){var o=new Intl.NumberFormat(n,Go({},r));return function(i){return o.format(i)}}),currency:Ga(function(n,r){var o=new Intl.NumberFormat(n,Go(Go({},r),{},{style:"currency"}));return function(i){return o.format(i)}}),datetime:Ga(function(n,r){var o=new Intl.DateTimeFormat(n,Go({},r));return function(i){return o.format(i)}}),relativetime:Ga(function(n,r){var o=new Intl.RelativeTimeFormat(n,Go({},r));return function(i){return o.format(i,r.range||"day")}}),list:Ga(function(n,r){var o=new Intl.ListFormat(n,Go({},r));return function(i){return o.format(i)}})},this.init(t)}return vo(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},o=r.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Ga(r)}},{key:"format",value:function(n,r,o){var i=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.split(this.formatSeparator),l=a.reduce(function(u,c){var d=NU(c),f=d.formatName,h=d.formatOptions;if(i.formats[f]){var g=u;try{var v=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},w=v.locale||v.lng||s.locale||s.lng||o;g=i.formats[f](u,w,Go(Go(Go({},h),s),v))}catch(b){i.logger.warn(b)}return g}else i.logger.warn("there was no format function for ".concat(f));return u},n);return l}}]),e}();function k_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function I_(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){Fo(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}function FU(e){var t=$U();return function(){var r=Oo(e),o;if(t){var i=Oo(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return pd(this,o)}}function $U(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zU(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var VU=function(e){rm(n,e);var t=FU(n);function n(r,o,i){var s,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return go(this,n),s=t.call(this),om&&ws.call(si(s)),s.backend=r,s.store=o,s.services=i,s.languageUtils=i.languageUtils,s.options=a,s.logger=To.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=a.maxParallelReads||10,s.readingCalls=0,s.maxRetries=a.maxRetries>=0?a.maxRetries:5,s.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(i,a.backend,a),s}return vo(n,[{key:"queueLoad",value:function(o,i,s,a){var l=this,u={},c={},d={},f={};return o.forEach(function(h){var g=!0;
1917i.forEach(function(v){var w="".concat(h,"|").concat(v);!s.reload&&l.store.hasResourceBundle(h,v)?l.state[w]=2:l.state[w]<0||(l.state[w]===1?c[w]===void 0&&(c[w]=!0):(l.state[w]=1,g=!1,c[w]===void 0&&(c[w]=!0),u[w]===void 0&&(u[w]=!0),f[v]===void 0&&(f[v]=!0)))}),g||(d[h]=!0)}),(Object.keys(u).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(u),pending:Object.keys(c),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(f)}}},{key:"loaded",value:function(o,i,s){var a=o.split("|"),l=a[0],u=a[1];i&&this.emit("failedLoading",l,u,i),s&&this.store.addResourceBundle(l,u,s),this.state[o]=i?-1:2;var c={};this.queue.forEach(function(d){bU(d.loaded,[l],u),zU(d,o),i&&d.errors.push(i),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(function(f){c[f]||(c[f]={});var h=d.loaded[f];h.length&&h.forEach(function(g){c[f][g]===void 0&&(c[f][g]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(o,i,s){var a=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!o.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:i,fcName:s,tried:l,wait:u,callback:c});return}this.readingCalls++;var d=function(v,w){if(a.readingCalls--,a.waitingReads.length>0){var b=a.waitingReads.shift();a.read(b.lng,b.ns,b.fcName,b.tried,b.wait,b.callback)}if(v&&w&&l<a.maxRetries){setTimeout(function(){a.read.call(a,o,i,s,l+1,u*2,c)},u);return}c(v,w)},f=this.backend[s].bind(this.backend);if(f.length===2){try{var h=f(o,i);h&&typeof h.then=="function"?h.then(function(g){return d(null,g)}).catch(d):d(null,h)}catch(g){d(g)}return}return f(o,i,d)}},{key:"prepareLoading",value:function(o,i){var s=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof o=="string"&&(o=this.languageUtils.toResolveHierarchy(o)),typeof i=="string"&&(i=[i]);var u=this.queueLoad(o,i,a,l);if(!u.toLoad.length)return u.pending.length||l(),null;u.toLoad.forEach(function(c){s.loadOne(c)})}},{key:"load",value:function(o,i,s){this.prepareLoading(o,i,{},s)}},{key:"reload",value:function(o,i,s){this.prepareLoading(o,i,{reload:!0},s)}},{key:"loadOne",value:function(o){var i=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=o.split("|"),l=a[0],u=a[1];this.read(l,u,"read",void 0,void 0,function(c,d){c&&i.logger.warn("".concat(s,"loading namespace ").concat(u," for language ").concat(l," failed"),c),!c&&d&&i.logger.log("".concat(s,"loaded namespace ").concat(u," for language ").concat(l),d),i.loaded(o,c,d)})}},{key:"saveMissing",value:function(o,i,s,a,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn('did not save key "'.concat(s,'" as the namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){var d=I_(I_({},u),{},{isUpdate:l}),f=this.backend.create.bind(this.backend);if(f.length<6)try{var h;f.length===5?h=f(o,i,s,a,d):h=f(o,i,s,a),h&&typeof h.then=="function"?h.then(function(g){return c(null,g)}).catch(c):c(null,h)}catch(g){c(g)}else f(o,i,s,a,c,d)}!o||!o[0]||this.store.addResource(o[0],i,s,a)}}}]),n}(ws);function M_(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(yr(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="str
1917ing"&&(n.tDescription=t[2]),yr(t[2])==="object"||yr(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(o){n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,o){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function D_(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function A_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function wo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A_(Object(n),!0).forEach(function(r){Fo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BU(e){var t=HU();return function(){var r=Oo(e),o;if(t){var i=Oo(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return pd(this,o)}}function HU(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rf(){}function UU(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var Op=function(e){rm(n,e);var t=BU(n);function n(){var r,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(go(this,n),r=t.call(this),om&&ws.call(si(r)),r.options=D_(o),r.services={},r.logger=To,r.modules={external:[]},UU(si(r)),i&&!r.isInitialized&&!o.isClone){if(!r.options.initImmediate)return r.init(o,i),pd(r,si(r));setTimeout(function(){r.init(o,i)},0)}return r}return vo(n,[{key:"init",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(s=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));var a=M_();this.options=wo(wo(wo({},a),this.options),D_(i)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=wo(wo({},a.interpolation),this.options.interpolation)),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function l(b){return b?typeof b=="function"?new b:b:null}if(!this.options.isClone){this.modules.logger?To.init(l(this.modules.logger),this.options):To.init(null,this.options);var u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=LU);var c=new __(this.options);this.store=new TU(this.options.resources,this.options);var d=this.services;d.logger=To,d.resourceStore=this.store,d.languageUtils=c,d.pluralResolver=new jU(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(d.formatter=l(u),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new OU(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new VU(l(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(b){for(var y=arguments.length,x=new Array(y>1?y-1:0),R=1;R<y;R++)x[R-1]=arguments[R];o.emit.apply(o,[b].concat(x))}),this.modules.languageDetector&&(d.languageDetector=l(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=l(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new C_(this.services,this.options),this.translator.on("*",function(b){for(var y=arguments.length,x=new Array(y>1?y-1:0),R=1;R<y;R++)x[R-1]=arguments[R];o.emit.apply(o,[b].concat(x))}),this.modules.external.forEach(function(b){b.init&&b.init(o)})}if(this.format=this.options.interpolation.format,s||(s=rf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var h=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];h.forEach(function(b){o[b]=function(){var y;return(y=o.store)[b].apply(y,arguments)}});var g=["addResource","addResources","addResourceBundle","removeResourceBundle"];g.forEach(function(b){o[b]=function(){var y;return(y=o.store)[b].apply(y,arguments),o}});var v=Ou(),w=function(){var y=function(R,k){o.isInitialized&&!o.initializedStoreOnce&&o.logger.warn("init: i18next is already initialized. You should call init just once!"),o.isInitialized=!0,o.options.isClone||o.logger.log("initialized",o.options),o.emit("initialized",o.options),v.resolve(k),s(R,k)};if(o.languages&&o.options.compatibilityAPI!=="v1"&&!o.isInitialized)return y(null,o.t.bind(o));o.changeLanguage(o.options.lng,y)};return this.options.resources||!this.options.initImmediate?w():setTimeout(w,0),v}},{key:"loadResources",value:function(o){var i=this,s=arguments.length>
19171&&arguments[1]!==void 0?arguments[1]:rf,a=s,l=typeof o=="string"?o:this.language;if(typeof o=="function"&&(a=o),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return a();var u=[],c=function(h){if(h){var g=i.services.languageUtils.toResolveHierarchy(h);g.forEach(function(v){u.indexOf(v)<0&&u.push(v)})}};if(l)c(l);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(f){return c(f)})}this.options.preload&&this.options.preload.forEach(function(f){return c(f)}),this.services.backendConnector.load(u,this.options.ns,function(f){!f&&!i.resolvedLanguage&&i.language&&i.setResolvedLanguage(i.language),a(f)})}else a(null)}},{key:"reloadResources",value:function(o,i,s){var a=Ou();return o||(o=this.languages),i||(i=this.options.ns),s||(s=rf),this.services.backendConnector.reload(o,i,function(l){a.resolve(),s(l)}),a}},{key:"use",value:function(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&FI.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}},{key:"setResolvedLanguage",value:function(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1))for(var i=0;i<this.languages.length;i++){var s=this.languages[i];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(o,i){var s=this;this.isLanguageChangingTo=o;var a=Ou();this.emit("languageChanging",o);var l=function(f){s.language=f,s.languages=s.services.languageUtils.toResolveHierarchy(f),s.resolvedLanguage=void 0,s.setResolvedLanguage(f)},u=function(f,h){h?(l(h),s.translator.changeLanguage(h),s.isLanguageChangingTo=void 0,s.emit("languageChanged",h),s.logger.log("languageChanged",h)):s.isLanguageChangingTo=void 0,a.resolve(function(){return s.t.apply(s,arguments)}),i&&i(f,function(){return s.t.apply(s,arguments)})},c=function(f){!o&&!f&&s.services.languageDetector&&(f=[]);var h=typeof f=="string"?f:s.services.languageUtils.getBestMatchFromCodes(f);h&&(s.language||l(h),s.translator.language||s.translator.changeLanguage(h),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage&&s.services.languageDetector.cacheUserLanguage(h)),s.loadResources(h,function(g){u(g,h)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(o),a}},{key:"getFixedT",value:function(o,i,s){var a=this,l=function u(c,d){var f;if(yr(d)!=="object"){for(var h=arguments.length,g=new Array(h>2?h-2:0),v=2;v<h;v++)g[v-2]=arguments[v];f=a.options.overloadTranslationOptionHandler([c,d].concat(g))}else f=wo({},d);f.lng=f.lng||u.lng,f.lngs=f.lngs||u.lngs,f.ns=f.ns||u.ns,f.keyPrefix=f.keyPrefix||s||u.keyPrefix;var w=a.options.keySeparator||".",b;return f.keyPrefix&&Array.isArray(c)?b=c.map(function(y){return"".concat(f.keyPrefix).concat(w).c
1917oncat(y)}):b=f.keyPrefix?"".concat(f.keyPrefix).concat(w).concat(c):c,a.t(b,f)};return typeof o=="string"?l.lng=o:l.lngs=o,l.ns=i,l.keyPrefix=s,l}},{key:"t",value:function(){var o;return this.translator&&(o=this.translator).translate.apply(o,arguments)}},{key:"exists",value:function(){var o;return this.translator&&(o=this.translator).exists.apply(o,arguments)}},{key:"setDefaultNamespace",value:function(o){this.options.defaultNS=o}},{key:"hasLoadedNamespace",value:function(o){var i=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var a=s.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var c=function(h,g){var v=i.services.backendConnector.state["".concat(h,"|").concat(g)];return v===-1||v===2};if(s.precheck){var d=s.precheck(this,c);if(d!==void 0)return d}return!!(this.hasResourceBundle(a,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(a,o)&&(!l||c(u,o)))}},{key:"loadNamespaces",value:function(o,i){var s=this,a=Ou();return this.options.ns?(typeof o=="string"&&(o=[o]),o.forEach(function(l){s.options.ns.indexOf(l)<0&&s.options.ns.push(l)}),this.loadResources(function(l){a.resolve(),i&&i(l)}),a):(i&&i(),Promise.resolve())}},{key:"loadLanguages",value:function(o,i){var s=Ou();typeof o=="string"&&(o=[o]);var a=this.options.preload||[],l=o.filter(function(u){return a.indexOf(u)<0});return l.length?(this.options.preload=a.concat(l),this.loadResources(function(u){s.resolve(),i&&i(u)}),s):(i&&i(),Promise.resolve())}},{key:"dir",value:function(o){if(o||(o=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!o)return"rtl";var i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new __(M_());return i.indexOf(s.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rf,a=wo(wo(wo({},this.options),i),{isClone:!0}),l=new n(a);(i.debug!==void 0||i.prefix!==void 0)&&(l.logger=l.logger.clone(i));var u=["store","services","language"];return u.forEach(function(c){l[c]=o[c]}),l.services=wo({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new C_(l.services,l.options),l.translator.on("*",function(c){for(var d=arguments.length,f=new Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];l.emit.apply(l,[c].concat(f))}),l.init(a,s),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(ws);Fo(Op,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Op(e,t)});var In=Op.createInstance();In.createInstance=Op.createInstance;In.createInstance;In.dir;In.init;In.loadResources;In.reloadResources;In.use;In.changeLanguage;In.getFixedT;var un=In.t;In.exists;In.setDefaultNamespace;In.hasLoadedNamespace;In.loadNamespaces;In.loadLanguages;const Ag=[{label:"الإمارات العربية المتحدة",value:"ar-AE"},{label:"Aotearoa",value:"mi-NZ"},{label:"Argentina",value:"es-AR"},{label:"Australia",value:"en-AU",recommended:!0},{label:"Brasil",value:"pt-BR"},{label:"Deutschland",value:"de-DE"},{label:"España",value:"es-ES"},{label:"France",value:"fr-FR"},{label:"India",value:"hi-IN"},{label:"Italia",value:"it-IT"},{label:"日本",value:"ja-JP"},{label:"대한민국",value:"ko-KR"},{label:"New Zealand",value:"en-NZ",recommended:!0},{label:"Portugal",value:"pt-PT"},{label:"Россия",value:"ru-RU"},{label:"ประเทศไทย",value:"th-TH"},{label:"Türkiye",value:"tr-TR"},{label:"United States",value:"en-US",recommended:!0},{label:"United Kingdom",value:"en-GB",recommended:!0},{label:"Việt Nam",value:"vi-VN"},{label:"中国",value:"zh-CN"}
1917],j_="locale",O_="pt-BR",GU={"pt-BR":{translation:{appName:"Simplesmente IA",version:"v{{version}}",back:"Voltar",cancel:"Cancelar",close:"Fechar",components:{accountPopover:{contact:"Entrar em contato",home:"Início",signedInAs:"Logado como",termsOfService:"Termos de uso"},localePicker:{label:"Idioma"}},confirm:"Confirmar",copiedToClipboard:"Texto copiado! 📋👍",errors:{},formErrors:{required:"Este campo é obrigatório"},instagram:"https://www.instagram.com/_simplesmenteia/",layouts:{courseLandingPage:{header:{features:"Conteúdo do curso",instructor:"Instrutor",faq:"FAQ",joinWaitlist:"Entrar na lista de espera"},footer:{description:"IA sustentável para todos.",copyright:"© {{year}} $t(appName). Todos os direitos reservados.",linksHeader:"Curso",features:"Recursos",instructor:"Instrutor",faq:"FAQ",joinWaitlist:"Pré-cadastro",madeWithLove:"Feito com ❤️ para a comunidade de IA."}},wiki:{header:{comfyUiCourse:"Curso de ComfyUI",youtube:"Aprenda IA"},footer:{description:"IA sustentável para todos.",copyright:"© {{year}} $t(appName). Todos os direitos reservados.",linksHeader:"Links importantes",comfyUiCourse:"Curso de ComfyUI",madeWithLove:"Feito com ❤️ para a comunidade de IA."}},heroPage:{header:{about:"Sobre",content:"Conteúdo Gratuito",instructor:"Instrutor",resources:"Recursos",youtube:"YouTube"},footer:{description:"IA sustentável para todos",copyright:"© {{year}} $t(appName). Todos os direitos reservados.",linksHeader:"Links",youtube:"YouTube",patreon:"Patreon",memetopia:"Memetopia",wiki:"Wiki de IAs",madeWithLove:"Feito com ❤️ para a comunidade de IA."}}},next:"Prosseguir",ok:"OK",pages:{home:{hero:{title:"Simplesmente IA",motto:"IA sustentável para todos",description:"Aprenda inteligência artificial de forma prática e gratuita, sem prejudicar o planeta",benefits:{0:"Aulas práticas e sem enrolação no YouTube",1:"Artigos e tutoriais no Patreon",2:"100% de controle e de privacidade",3:"0% de custo e de censura",4:"Impacto ambiental mínimo"},cta:{primary:"Ver Aulas Gratuitas",secondary:"Conheça o Curso ComfyUI"},imageAlt:"Inteligência Artificial Generativa",items:{realistic:{label:"Fotorrealismo"},upscale:{label:"Ampliar resolução"},comics:{label:"Quadrinhos"},controlnet:{label:"Controle de estrutura"},relight:{label:"Edição de fundo e luz"},"inpainting-virtual-try-on":{label:"Troca de roupa"},prompts:{label:"Otimização de prompts"},consistency:{label:"Consistência"},"real-to-anime":{label:"Real para Anime"},"anime-to-real":{label:"Anime para Real"},"pro-photo":{label:"Foto Profissional"},ghibli:{label:"Estilo Studio Ghibli"},"pixel-art-lora":{label:"Pixel art"},anime:{label:"Anime"},"concept-art-sdxl":{label:"Artes conceituais épicas"},restore:{label:"Restauração de fotos"}}},about:{pill:"O que é Simplesmente IA",title:"Aprenda IA local, sem depender de serviços pagos",description:"Domine IA generativa rodando 100% no seu computador. ComfyUI, Stable Diffusion, Qwen Image, Z-Image, Flux, LLMs locais, geração de vídeo e áudio, treinamento de modelos personalizados e muito mais.",topics:{0:{title:"Imagens Generativas",description:"ComfyUI, Stable Diffusion, Flux, Z-Image, Qwen Image e outras ferramentas de ponta"},1:{title:"LLMs Locais",description:"Ollama e modelos open source rodando localmente com total privacidade"},2:{title:"Vídeo e Áudio",description:"Wan, VibeVoice, Ace Step e outras IAs para criação de conteúdo multimídia"},3:{title:"Automação",description:"Workflows automatizados e scripts para otimizar seus processos criativos"},4:{title:"Treinamento de Modelos",description:"LoRA e técnicas avançadas para personalizar modelos para seus objetivos"}}},freeContent:{pill:"Aprenda de graça",title:"Todo o conhecimento que você precisa, sem pagar nada",youtube:{title:"Tutoriais em Vídeo",description:"Aulas completas sobre ComfyUI, Stable Diffusion, Qwen Image, Z-Image, Flux, LLMs locais, geração de vídeo e áudio, clonagem de voz, treinamento de modelos personalizados e muito mais",cta:"Inscrever-se no Canal"},patreon:{title:"Artigos e Guias",description:"Tutoriais escritos detalhados, workflows e dicas exclusivas",cta:"Seguir no Patreon (Grátis)"},wiki:{title:"Lista de IAs",description:"Catálogo atualizado de ferramentas e modelos de IA",cta:"Explorar Wiki"}},playlist:{pill:"Assista agora",title:"ComfyUI para Iniciantes",description:"Aprenda imagens generativas no YouTube",cta:"Ver Playlist Completa"},instructor:{pill:"Conheça o instrutor",header:"Aprenda com um profissional experiente",name:"Fern
1917ando",subtitle:"Fundador do Simplesmente IA",about:"Com uma carreira de quase 2 décadas em engenharia de software, {{years}} anos de experiência prática com IA generativa, ex-ilustrador e guitarrista, sou apaixonado por tecnologia, artes e automação criativa. Agora, quero compartilhar esse conhecimento de forma simples e sem enrolação, para que qualquer pessoa possa dominar a criação de imagens com IA. 🚀"},resources:{pill:"Explore mais",title:"Recursos criados por Simplesmente IA",memetopia:{title:"Memetopia",description:"Crie memes personalizados a partir de suas fotos nesse app gratuito",cta:"Experimentar"},wiki:{title:"Compilado de Serviços de IA",description:"Busque por ferramentas, modelos e serviços de IA nessa lista completa",cta:"Explorar"}},testimonials:{pill:"Depoimento da comunidade",title:"Milhares de pessoas já estão aprendendo IA"},social:{pill:"Conecte-se",title:"Siga nas redes sociais e não perca nenhum conteúdo",subtitle:"Conteúdo sobre IA, tutoriais, dicas e novidades",youtube:"Inscrever-se no YouTube"}},comfyUiCourse:{hero:{pill:"Em breve",header:"ComfyUI, descomplicado",subheader:"Aprenda a usar IA generativa ao seu favor, do zero ao avançado.",benefits:{0:"Ferramentas gratuitas",1:"Controle total de resultados",2:"Simples e direto"},joinWaitlist:"Entre na lista de espera",features:"Saiba mais",imageAlt:"Imagem gerada com IA"},features:{pill:"Módulos do curso",header:"Tudo o que você precisa para dominar criação de imagens com IA",subheader:"Prático e aprofundado, para você ter total controle sobre seus resultados",items:{0:{title:"Engenharia de Prompts",description:"Domine a arte de escrever prompts eficazes para obter exatamente as imagens que você deseja."},1:{title:"Aprimore Imagens",description:"Aprenda técnicas para melhorar imagens existentes, como aumento de resolução e reparação de defeitos."},2:{title:"Treine seus Modelos",description:"Personalize seus próprios modelos para atingir objetivos específicos."},3:{title:"Otimização de Hardware",description:"Configure seu sistema para o desempenho ideal, mesmo em computadores mais modestos."},4:{title:"Tecnologias de Ponta",description:"Utilize os modelos e ferramentas mais modernas disponíveis ao público."},5:{title:"Automação com ComfyUI",description:"Construa fluxos e automações através da interface gráfica mais poderosa do momento."}},joinWaitlist:"Entre na lista de espera",features:"Saiba mais"},overview:{pill:"Por que este curso?",header:"Desbloqueie todo o potencial da IA generativa",subheader:"Pare de lutar com resultados indesejados e ferramentas confusas. Este curso abrangente simplifica seus processos e lhe oferece as habilidades para criar exatamente o que você imagina.",benefits:{0:"Tutoriais passo a passo, do básico a técnicas avançadas",1:"Acesso a workflows pré-construídos no ComfyUI para iniciar seus projetos",2:"Curso 100% digital, faça tudo no seu tempo e de onde estiver",3:"Atualizações regulares conforme a tecnologia evolui",4:"Devolução do seu dinheiro em até 7 dias se não gostar do curso"},joinWaitlist:"Faça o pré-cadastro agora",imageAlt:"Tela do ComfyUI"},instructor:{pill:"Conheça seu instrutor",header:"Aprenda com um profissional experiente",name:"Fernando",subheader:"Especialista em imagens generativas",about:"Com uma carreira de quase 2 décadas em engenharia de software, 3 anos de experiência prática com IA generativa, ex-ilustrador e guitarrista, sou apaixonado por tecnologia, artes e automação criativa. Agora, quero compartilhar esse conhecimento de forma simples e sem enrolação, para que qualquer pessoa possa dominar a criação de imagens com IA. 🚀",imageAlt:"Foto do instrutor"},faq:{pill:"FAQ",header:"Perguntas Frequentes",subheader:"Tudo o que você precisa saber sobre o curso",items:{0:{question:"Preciso de experiência prévia com IA ou geração de imagens?",answer:"Não, este curso é projetado tanto para iniciantes quanto para usuários experientes. Começamos com os fundamentos e avançamos gradualmente para tópicos mais avançados."},1:{question:"Quais são os requisitos de hardware para o curso?",answer:"Para resultados ideais, é recomendado um computador com pelo menos 16GB de memória RAM, e placa de vídeo dedicada da NVIDIA com ao menos 4GB de memória VRAM. No entanto, também abordamos alternativas baseadas em nuvem para aqueles sem hardware dedicado."},2:{question:"Quando o curso será lançado?",answer:"O curso está atualmente em desenvolvimento e possui lançado planejado para ainda este ano. Entre na lista de espera para ser notificado quando as inscrições abrirem e receber preços especiais de lançamento."},3:{question:"Existe garantia de devolução do dinheiro?",answer:"Sim, se você não estiver satisfeito com o curso por qualquer motivo, pode solicitar um reembolso total dentro de 7 dias após a compra."}}},waitlist:{header:"Seja o primeiro a saber quando o curso for lançado",subheader:"Entre na lista de espera para receber acesso antecipado e um desconto especial quando o curso estiver disponível.",joinWaitlist:"Entrar na lista",consent:"Respeitamos sua privacidade. Cancele a qualquer momento."}},aiServices:{header:"Lista de IAs",lastReviewedAt:"Atualizado em {{value}}",description:"Uma lista de serviços, modelos e ferramentas de inteligência artificial, compilada por Simplesmente IA.",suggestion:{button:"Dê sua sugestão",header:"Sugira uma IA e ajude a comunidade",subheader:"Essa funcionalidade está indisponível no momento pois está em desenvolvimento. Volte aqui mais tarde!"},table:{columns:{rating:{header:"Avaliação"},name:{header:"Nome"},link:{header:"Link"},description:{header:"Descrição"},inputs:{header:"Entrada"},outputs:{header:"Saída"},businessModels:{header:"Modelo de negócio"},license:{header:"Licença de uso"},examples:{header:"Exemplos"},author:{header:"Autor",cardValuePrefix:"por"},authorLink:{header:"Link do autor"},reviewedAt:{header:"Data da revisão",cardValuePrefix:"Revisado em"}}},enums:{mediaType:{agent:"Agente",avatar:"Avatar",image:"Imagem",video:"Vídeo",audio:"Áudio",text:"Texto",file:"Arquivo",code:"Código",speech:"Fala","3d":"3D",multimodal:"Multimodal",model:"Modelo treinado",slide:"Apresentação de slides",infographics:"Infográfico",document:"Documento",pdf:"PDF",search:"Busca",research:"Pesquisa científica",mindmap:"Mapa mental (mindmap)",podcast:"Podcast",design:"Design",studyMaterial:"Material de estudo",gpuRental:"Aluguel de GPU",music:"Música",world:"World model"},businessModels:{freeCredits:"Créditos gratuitos periodicamente",purchaseCredits:"Compra de créditos",onDemand:"Sob demanda",freeTrial:"Teste gratuito",payAsYouGo:"Pague conforme o uso",free:"Gratuito",subscription:"Assinatura",oneOff:"Pagamento único",openSource:"Código aberto",openWeights:"Modelo aberto"}}},genericError:{header:"Oops!",subheader:"Desculpe, ocorreu um erro inesperado.",back:"Voltar para a página inicial"}},metaTags:{description:"Simplesmente IA: IA sustentável para todos",keywords:"IA, Inteligência Artificial, ComfyUI, Stable Diffusion, SDXL, Flux, AI"},optionalFields:"Campos opcionais",select:"Selecionar",signIn:"Entrar",signOut:"Sair da conta",socialMedia:{youtube:{name:"Youtube",description:"Tutoriais no Youtube",url:"https://www.youtube.com/@simplesmenteia"},patreon:{name:"Patreon",description:"Artigos grátis no Patreon",url:"https://www.patreon.com/c/SimplesmenteIA"},tiktok:{name:"TikTok",description:"TikTok",url:"https://www.tiktok.com/@_simplesmenteia"},instagram:{name:"Instagram",description:"Instagram",url:"https://www.instagram.com/_simplesmenteia"},facebook:{name:"Facebook",description:"Facebook",url:"https://www.facebook.com/profile.php?id=61574085624156"},website:{name:"Website",description:"Website",url:"/"}},submit:"Enviar"}}};In.use(aU).init({resources:GU,lng:O_,interpolation:{escapeValue:!1},fallbackLng:O_});const WU=S.createContext(null);function KU({children:e}){const[t,n]=S.useState("en-US");return S.useEffect(function(){try{const i=localStorage.getItem(j_)||(Ag.find(s=>
vendor: 17,124 bytes, lines 1917-1929
1917{var a;return s.value===((a=window.navigator)==null?void 0:a.language)})||Ag[0]).value;n(i)}catch(o){console.error("Error getting locale from localStorage or browser. Reason:",o)}},[]),S.useEffect(function(){t&&(localStorage.setItem(j_,t),In.changeLanguage(t))},[t]),p.jsx(WU.Provider,{value:{locale:t,setLocale:n,localeOptions:Ag},children:e})}/**
1918   * table-core
1919   *
1920   * Copyright (c) TanStack
1921   *
1922   * This source code is licensed under the MIT license found in the
1923   * LICENSE.md file in the root directory of this source tree.
1924   *
1925   * @license MIT
1926   */function ts(e,t){return typeof e=="function"?e(t):e}function Sr(e,t){return n=>{t.setState(r=>({...r,[e]:ts(n,r[e])}))}}function im(e){return e instanceof Function}function qU(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function $I(e,t){const n=[],r=o=>{o.forEach(i=>{n.push(i);const s=t(i);s!=null&&s.length&&r(s)})};return r(e),n}function Fe(e,t,n){let r=[],o;return i=>{let s;n.key&&n.debug&&(s=Date.now());const a=e(i);if(!(a.length!==r.length||a.some((c,d)=>r[d]!==c)))return o;r=a;let u;if(n.key&&n.debug&&(u=Date.now()),o=t(...a),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const c=Math.round((Date.now()-s)*100)/100,d=Math.round((Date.now()-u)*100)/100,f=d/16,h=(g,v)=>{for(g=String(g);g.length<v;)g=" "+g;return g};console.info(`%c⏱ ${h(d,5)} /${h(c,5)} ms`,`
1927            font-size: .6rem;
1928            font-weight: bold;
1929            color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n==null?void 0:n.key)}return o}}function $e(e,t,n,r){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[t]},key:!1,onChange:r}}function YU(e,t,n,r){const o=()=>{var s;return(s=i.getValue())!=null?s:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:Fe(()=>[e,n,t,i],(s,a,l,u)=>({table:s,column:a,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),$e(e.options,"debugCells"))};return e._features.forEach(s=>{s.createCell==null||s.createCell(i,n,t,e)},{}),i}function XU(e,t,n,r){var o,i;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let u=(o=(i=a.id)!=null?i:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?o:typeof a.header=="string"?a.header:void 0,c;if(a.accessorFn?c=a.accessorFn:l&&(l.includes(".")?c=f=>{let h=f;for(const v of l.split(".")){var g;h=(g=h)==null?void 0:g[v]}return h}:c=f=>f[a.accessorKey]),!u)throw new Error;let d={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:a,columns:[],getFlatColumns:Fe(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(h=>h.getFlatColumns())]},$e(e.options,"debugColumns")),getLeafColumns:Fe(()=>[e._getOrderColumnsFn()],f=>{var h;if((h=d.columns)!=null&&h.length){let g=d.columns.flatMap(v=>v.getLeafColumns());return f(g)}return[d]},$e(e.options,"debugColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(d,e);return d}const Nn="debugHeaders";function N_(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),s.push(l)};return a(i),s},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(s=>{s.createHeader==null||s.createHeader(i,e)}),i}const JU={createTable:e=>{e.getHeaderGroups=Fe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,s;const a=(i=r==null?void 0:r.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?i:[],l=(s=o==null?void 0:o.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?s:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(o!=null&&o.includes(d.id)));return of(t,[...a,...u,...l],e)},$e(e.options,Nn)),e.getCenterHeaderGroups=Fe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),of(t,n,e,"center")),$e(e.options,Nn)),e.getLeftHeaderGroups=Fe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?o:[];return of(t,i,e,"left")},$e(e.options,Nn)),e.getRightHeaderGroups=Fe(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(s=>n.find(a=>a.id===s)).filter(Boolean))!=null?o:[];return of(t,i,e,"right")},$e(e.options,Nn)),e.getFooterGroups=Fe(()=>[e.getHeaderGroups()],t=>[...t].reverse(),$e(e.options,Nn)),e.getLeftFooterGroups=Fe(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),$e(e.options,Nn)),e.getCenterFooterGroups=Fe(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),$e(e.options,Nn)),e.getRightFooterGroups=Fe(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),$e(e.options,Nn)),e.getFlatHeaders=Fe(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),$e(e.options,Nn)),e.getLeftFlatHeaders=Fe(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),$e(e.options,Nn)),e.getCenterFlatHeaders=Fe(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),$e(e.options,Nn)),e.getRightFlatHeaders=Fe(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),$e(e.options,Nn)),e.getCenterLeafHeaders=Fe(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),$e(e.options,Nn)),e.getLeftLeafHeaders=Fe(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),$e(e.options,Nn)),e.getRightLeafHeaders=Fe(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),$e(e.options,Nn)),e.getLeafHeaders=Fe(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,s,a,l,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(s=(a=n[0])==null?void 0:a.headers)!=null?s:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},$e(e.options,Nn))}};function of(e,t,n,r){var o,i;let s=0;const a=function(f,h){h===void 0&&(h=1),s=Math.max(s,h),f.filter(g=>g.getIsVisible()).forEach(g=>{var v;(v=g.columns)!=null&&v.length&&a(g.columns,h+1)},0)};a(e);let l=[];const u=(f,h)=>{const g={depth:h,id:[r,`${h}`].filter(Boolean).join("_"),headers:[]},v=[];f.forEach(w=>{const b=[...v].reverse()[0],y=w.column.depth===g.depth;let x,R=!1;if(y&&w.column.parent?x=w.column.parent:(x=w.column,R=!0),b&&(b==null?void 0:b.column)===x)b.subHeaders.push(w);else{const k=N_(n,x,{id:[r,h,x.id,w==null?void 0:w.id].filter(Boolean).join("_"),isPlaceholder:R,placeholderId:R?`${v.filter(I=>I.column===x).length}`:void 0,depth:h,index:v.length});k.subHeaders.push(w),v.push(k)}g.headers.push(w),w.headerGroup=g}),l.push(g),h>0&&u(v,h-1)},c=t.map((f,h)=>N_(n,f,{depth:s,index:h}));u(c,s-1),l.reverse();const d=f=>f.filter(g=>g.column.getIsVisible()).map(g=>{let v=0,w=0,b=[0];g.subHeaders&&g.subHeaders.length?(b=[],d(g.subHeaders).forEach(x=>{let{colSpan:R,rowSpan:k}=x;v+=R,b.push(k)})):v=1;const y=Math.min(...b);return w=w+y,g.colSpan=v,g.rowSpan=w,{colSpan:v,rowSpan:w}});return d((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const du=(e,t,n,r,o,i,s)=>{let a={id:t,index:r,original:n,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return a._valuesCache[l]=u.accessorFn(a.original,r),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=u.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=a.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>$I(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],u=a;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:Fe(()=>[e.getAllLeafColumns()],l=>l.map(u=>YU(e,a,u,u.id)),$e(e.options,"debugRows")),_getAllCellsByColumnId:Fe(()=>[a.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),$e(e.options,"debugRows"))};for(let l=0;l<e._features.length;l++){const u=e._features[l];u==null||u.createRow==null||u.createRow(a,e)}return a},QU={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},zI=(e,t,n)=>{var r,o;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(t))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};zI.autoRemove=e=>ao(e);const VI=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};VI.autoRemove=e=>ao(e);const BI=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};BI.autoRemove=e=>ao(e);const HI=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};HI.autoRemove=e=>ao(e)||!(e!=null&&e.length);const UI=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});UI.autoRemove=e=>ao(e)||!(e!=null&&e.length);const GI=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});GI.autoRemove=e=>ao(e)||!(e!=null&&e.length);const WI=(e,t,n)=>e.getValue(t)===n;WI.autoRemove=e=>ao(e);const KI=(e,t,n)=>e.getValue(t)==n;KI.autoRemove=e=>ao(e);const Bw=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Bw.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,s=n===null||Number.isNaN(o)?1/0:o;if(i>s){const a=i;i=s,s=a}return[i,s]};Bw.autoRemove=e=>ao(e)||ao(e[0])&&ao(e[1]);const Co={includesString:zI,includesStringSensitive:VI,equalsString:BI,arrIncludes:HI,arrIncludesAll:UI,arrIncludesSome:GI,equals:WI,weakEquals:KI,inNumberRange:Bw};function ao(e){return e==null||e===""}const ZU={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Sr("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?Co.includesString:typeof r=="number"?Co.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Co.equals:Array.isArray(r)?Co.arrIncludes:Co.weakEquals},e.getFilterFn=()=>{var n,r;return im(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:Co[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r==null?void 0:r.find(c=>c.id===e.id),s=ts(n,i?i.value:void 0);if(L_(o,s,e)){var a;return(a=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?a:[]}const l={id:e.id,value:s};if(i){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?l:c))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=ts(t,o))==null?void 0:i.filter(s=>{const a=n.find(l=>l.id===s.id);if(a){const l=a.getFilterFn();if(L_(l,s.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function L_(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const eG=(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),tG=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},nG=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},rG=(e,t,n)=>{let r,o;return n.forEach(i=>{const s=i.getValue(e);s!=null&&(r===void 0?s>=s&&(r=o=s):(r>s&&(r=s),o<s&&(o=s)))}),[r,o]},oG=(e,t)=>{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},iG=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!qU(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,s)=>i-s);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},sG=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),aG=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,lG=(e,t)=>t.length,Nf={sum:eG,min:tG,max:nG,extent:rG,mean:oG,median:iG,unique:sG,uniqueCount:aG,count:lG},uG={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Sr("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((r=t.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return Nf.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Nf.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return im(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:Nf[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function cG(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(s=>s.id===i)).filter(Boolean),...r]}const dG={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Sr("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Fe(n=>[pc(t,n)],n=>n.findIndex(r=>
vendor: 11,736 bytes, line 1929
1929r.id===e.id),$e(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return((r=pc(t,n)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=pc(t,n);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Fe(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const s=[...t],a=[...o];for(;a.length&&s.length;){const l=s.shift(),u=a.findIndex(c=>c.id===l);u>-1&&i.push(a.splice(u,1)[0])}i=[...i,...a]}return cG(i,n,r)},$e(e.options,"debugTable"))}},jg=()=>({left:[],right:[]}),fG={getInitialState:e=>({columnPinning:jg(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Sr("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,s;if(n==="right"){var a,l;return{left:((a=o==null?void 0:o.left)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((l=o==null?void 0:o.right)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var u,c;return{left:[...((u=o==null?void 0:o.left)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((c=o==null?void 0:o.right)!=null?c:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((i=o==null?void 0:o.left)!=null?i:[]).filter(d=>!(r!=null&&r.includes(d))),right:((s=o==null?void 0:o.right)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,s;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(s=t.options.enableColumnPinning)!=null?s:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(a=>a.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(a=>r==null?void 0:r.includes(a)),s=n.some(a=>o==null?void 0:o.includes(a));return i?"left":s?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Fe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(s=>!i.includes(s.column.id))},$e(t.options,"debugRows")),e.getLeftVisibleCells=Fe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),$e(t.options,"debugRows")),e.getRightVisibleCells=Fe(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),$e(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?jg():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:jg())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=Fe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),$e(e.options,"debugColumns")),e.getRightLeafColumns=Fe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),$e(e.options,"debugColumns")),e.getCenterLeafColumns=Fe(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},$e(e.options,"debugColumns"))}},sf={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Og=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),pG={getDefaultColumnDef:()=>sf,getInitialState:e=>({columnSizing:{},columnSizingInfo:Og(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Sr("columnSizing",e),onColumnSizingInfoChange:Sr("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:sf.minSize,(r=i??e.columnDef.size)!=null?r:sf.size),(o=e.columnDef.maxSize)!=null?o:sf.maxSize)},e.getStart=Fe(n=>[n,pc(t,n),t.getState().columnSizing],(n,r)=>r.slice(0,e.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),$e(t.options,"debugColumns")),e.getAfter=Fe(n=>[n,pc(t,n),t.getState().columnSizing],(n,r)=>r.slice(e.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),$e(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),Ng(i)&&i.touches&&i.touches.length>1))return;const s=e.getSize(),a=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[r.id,r.getSize()]],l=Ng(i)?Math.round(i.touches[0].clientX):i.clientX,u={},c=(b,y)=>{typeof y=="number"&&(t.setColumnSizingInfo(x=>{var R,k;const I=t.options.columnResizeDirection==="rtl"?-1:1,C=(y-((R=x==null?void 0:x.startOffset)!=null?R:0))*I,_=Math.max(C/((k=x==null?void 0:x.startSize)!=null?k:0),-.999999);return x.columnSizingStart.forEach(T=>{let[P,M]=T;u[P]=Math.round(Math.max(M+M*_,0)*100)/100}),{...x,deltaOffset:C,deltaPercentage:_}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(x=>({...x,...u})))},d=b=>c("move",b),f=b=>{c("end",b),t.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h=n||typeof document<"u"?document:null,g={moveHandler:b=>d(b.clientX),upHandler:b=>{h==null||h.removeEventListener("mousemove",g.moveHandler),h==null||h.removeEventListener("mouseup",g.upHandler),f(b.clientX)}},v={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),d(b.touches[0].clientX),!1),upHandler:b=>{var y;h==null||h.removeEventListener("touchmove",v.moveHandler),h==null||h.removeEventListener("touchend",v.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),f((y=b.touches[0])==null?void 0:y.clientX)}},w=hG()?{passive:!1}:!1;Ng(i)?(h==null||h.addEventListener("touchmove",v.moveHandler,w),h==null||h.addEventListener("touchend",v.upHandler,w)):(h==null||h.addEventListener("mousemove",g.moveHandler,w),h==null||h.addEventListener("mouseup",g.upHandler,w)),t.setColumnSizingInfo(b=>({...b,startOffset:l,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Og():(n=e.initialState.columnSizingInfo)!=null?n:Og())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let af=null;function hG(){if(typeof af=="boolean")return af;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return af=e,af}function Ng(e){return e.type==="touchstart"}const mG={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Sr("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return(n=o.length?o.some(i=>i.getIsVisible()):(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Fe(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),$e(t.options,"debugRows")),e.getVisibleCells=Fe(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],$e(t.options,"debugRows"))},createTable:e=>{const t=(n,r)=>Fe(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),$e(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function pc(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const gG={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>
vendor: 22,593 bytes, line 1929
1929{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},vG={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Sr("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Co.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return im(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:Co[r]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},yG={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Sr("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const s=i.split(".");r=Math.max(r,s.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let s={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{s[a]=!0}):s=r,n=(o=n)!=null?o:!i,!i&&n)return{...s,[e.id]:!0};if(i&&!n){const{[e.id]:a,...l}=s;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Iy=0,My=10,Lg=()=>({pageIndex:Iy,pageSize:My}),bG={getInitialState:e=>({...e,pagination:{...Lg(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Sr("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=i=>ts(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Lg():(o=e.initialState.pagination)!=null?o:Lg())},e.setPageIndex=r=>{e.setPagination(o=>{let i=ts(r,o.pageIndex);const s=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?Iy:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Iy)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?My:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:My)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,ts(r,o.pageSize)),s=o.pageSize*o.pageIndex,a=Math.floor(s/i);return{...o,pageIndex:a,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let s=ts(r,(i=e.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),e.getPageOptions=Fe(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},$e(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Fg=()=>({top:[],bottom:[]}),wG={getInitialState:e=>({rowPinning:Fg(),...e}),getDefaultOptions:e=>({onRowPinningChange:Sr("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],s=o?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],a=new Set([...s,e.id,...i]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var d,f;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(v=>!(a!=null&&a.has(v))),bottom:[...((f=l==null?void 0:l.bottom)!=null?f:[]).filter(v=>!(a!=null&&a.has(v))),...Array.from(a)]}}if(n==="top"){var h,g;return{top:[...((h=l==null?void 0:l.top)!=null?h:[]).filter(v=>!(a!=null&&a.has(v))),...Array.from(a)],bottom:((g=l==null?void 0:l.bottom)!=null?g:[]).filter(v=>!(a!=null&&a.has(v)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(v=>!(a!=null&&a.has(v))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(v=>!(a!=null&&a.has(v)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(a=>r==null?void 0:r.includes(a)),s=n.some(a=>o==null?void 0:o.includes(a));return i?"top":s?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=(n=o==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(s=>{let{id:a}=s;return a});return(r=i==null?void 0:i.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?Fg():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:Fg())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=(t,n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(n??[]).map(s=>{const a=e.getRow(s,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(s=>t.find(a=>a.id===s))).filter(Boolean).map(s=>({...s,position:r}))},e.getTopRows=Fe(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),$e(e.options,"debugRows")),e.getBottomRows=Fe(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),$e(e.options,"debugRows")),e.getCenterRows=Fe(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(i=>!o.has(i.id))},$e(e.options,"debugRows"))}},xG={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Sr("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{Dy(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Fe(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?$g(e,n):{rows:[],flatRows:[],rowsById:{}},$e(e.options,"debugTable")),e.getFilteredSelectedRowModel=Fe(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?$g(e,n):{rows:[],flatRows:[],rowsById:{}},$e(e.options,"debugTable")),e.getGroupedSelectedRowModel=Fe(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?$g(e,n):{rows:[],flatRows:[],rowsById:{}},$e(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var s;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return Dy(a,e.id,n,(s=r==null?void 0:r.selectChildren)!=null?s:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Hw(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return Ay(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return Ay(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Dy=(e,t,n,r,o)=>{var i;const s=o.getRow(t,!0);n?(s.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),s.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(i=s.subRows)!=null&&i.length&&s.getCanSelectSubRows()&&s.subRows.forEach(a=>Dy(e,a.id,n,r,o))};function $g(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(s,a){return s.map(l=>{var u;const c=Hw(l,n);if(c&&(r.push(l),o[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:i(l.subRows)}),c)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function Hw(e,t){var n;return(n=t[e.id])!=null?n:!1}function Ay(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(s=>{if(!(i&&!o)&&(s.getCanSelect()&&(Hw(s,t)?i=!0:o=!1),s.subRows&&s.subRows.length)){const a=Ay(s,t);a==="all"?i=!0:(a==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const jy=/([0-9]+)/gm,SG=(e,t,n)=>qI(xs(e.getValue(n)).toLowerCase(),xs(t.getValue(n)).toLowerCase()),CG=(e,t,n)=>qI(xs(e.getValue(n)),xs(t.getValue(n))),_G=(e,t,n)=>Uw(xs(e.getValue(n)).toLowerCase(),xs(t.getValue(n)).toLowerCase()),RG=(e,t,n)=>Uw(xs(e.getValue(n)),xs(t.getValue(n))),EG=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},TG=(e,t,n)=>Uw(e.getValue(n),t.getValue(n));function Uw(e,t){return e===t?0:e>t?1:-1}function xs(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function qI(e,t){const n=e.split(jy).filter(Boolean),r=t.split(jy).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),s=parseInt(o,10),a=parseInt(i,10),l=[s,a].sort();if(isNaN(l[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(l[1]))return isNaN(s)?-1:1;if(s>a)return 1;if(a>s)return-1}return n.length-r.length}const Ws={alphanumeric:SG,alphanumericCaseSensitive:CG,text:_G,textCaseSensitive:RG,datetime:EG,basic:TG},PG={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Sr("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Ws.datetime;if(typeof i=="string"&&(r=!0,i.split(jy).length>1))return Ws.alphanumeric}return r?Ws.text:Ws.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return im(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Ws[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(s=>{const a=s==null?void 0:s.find(h=>h.id===e.id),l=s==null?void 0:s.findIndex(h=>h.id===e.id);let u=[],c,d=i?n:o==="desc";if(s!=null&&s.length&&e.getCanMultiSort()&&r?a?c="toggle":c="add":s!=null&&s.length&&l!==s.length-1?c="replace":a?c="toggle":c="replace",c==="toggle"&&(i||o||(c="remove")),c==="add"){var f;u=[...s,{id:e.id,desc:d}],u.splice(0,u.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=s.map(h=>h.id===e.id?{...h,desc:d}:h):c==="remove"?u=s.filter(h=>h.id!==e.id):u=[{id:e.id,desc:d}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),s=e.getIsSorted();return s?s!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:s==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},kG=[JU,mG,dG,fG,QU,ZU,gG,vG,PG,uG,yG,bG,wG,xG,pG];function IG(e){var t,n;const r=[...kG,...(t=e._features)!=null?t:[]];let o={_features:r};const i=o._features.reduce((f,h)=>Object.assign(f,h.getDefaultOptions==null?void 0:h.getDefaultOptions(o)),{}),s=f=>o.options.mergeOptions?o.options.mergeOptions(i,f):{...i,...f};let l={...{},...(n=e.initialState)!=null?n:{}};o._features.forEach(f=>{var h;l=(h=f.getInitialState==null?void 0:f.getInitialState(l))!=null?h:l});const u=[];let c=!1;const d={_features:r,options:{...i,...e},initialState:l,_queue:f=>{u.push(f),c||(c=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();c=!1}).catch(h=>setTimeout(()=>{throw h})))},reset:()=>{o.setState(o.initialState)},setOptions:f=>{const h=ts(f,o.options);o.options=s(h)},getState:()=>o.options.state,setState:f=>{o.options.onStateChange==null||o.options.onStateChange(f)},_getRowId:(f,h,g)=>{var v;return(v=o.options.getRowId==null?void 0:o.options.getRowId(f,h,g))!=null?v:`${g?[g.id,h].join("."):h}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(f,h)=>{let g=(h?o.getPrePaginationRowModel():o.getRowModel()).rowsById[f];if(!g&&(g=o.getCoreRowModel().rowsById[f],!g))throw new Error;return g},_getDefaultColumnDef:Fe(()=>[o.options.defaultColumn],f=>{var h;return f=(h=f)!=null?h:{},{header:g=>{const v=g.header.column.columnDef;return v.accessorKey?v.accessorKey:v.accessorFn?v.id:null},cell:g=>{var v,w;return(v=(w=g.renderValue())==null||w.toString==null?void 0:w.toString())!=null?v:null},...o._features.reduce((g,v)=>Object.assign(g,v.getDefaultColumnDef==null?void 0:v.getDefaultColumnDef()),{}),...f}},$e(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Fe(()=>[o._getColumnDefs()],f=>{const h=function(g,v,w){return w===void 0&&(w=0),g.map(b=>{const y=XU(o,b,w,v),x=b;return y.columns=x.columns?h(x.columns,y,w+1):[],y})};return h(f)},$e(e,"debugColumns")),getAllFlatColumns:Fe(()=>[o.getAllColumns()],f=>f.flatMap(h=>h.getFlatColumns()),$e(e,"debugColumns")),_getAllFlatColumnsById:Fe(()=>[o.getAllFlatColumns()],f=>f.reduce((h,g)=>(h[g.id]=g,h),{}),$e(e,"debugColumns")),getAllLeafColumns:Fe(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(f,h)=>{let g=f.flatMap(v=>v.getLeafColumns());return h(g)},$e(e,"debugColumns")),getColumn:f=>o._getAllFlatColumnsById()[f]};Object.assign(o,d);for(let f=0;f<o._features.length;f++){const h=o._features[f];h==null||h.createTable==null||h.createTable(o)}return o}function MG(){return e=>Fe(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,s){i===void 0&&(i=0);const a=[];for(let u=0;u<o.length;u++){const c=du(e,e._getRowId(o[u],u,s),o[u],u,i,void 0,s==null?void 0:s.id);if(n.flatRows.push(c),n.rowsById[c.id]=c,a.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(o[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=r(c.originalSubRows,i+1,c))}}return a};return n.rows=r(t),n},$e(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function DG(){return e=>Fe(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(t,n,r)=>!n.rows.length||t!==!0&&!Object.keys(t??{}).length||!r?n:YI(n),$e(e.options,"debugTable"))}function YI(e){const t=[],n=r=>{var o;t.push(r),(o=r.subRows)!=null&&o.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function AG(){return(e,t)=>Fe(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return;const r=n.flatRows.flatMap(s=>{var a;return(a=s.getUniqueValues(t))!=null?a:[]}).map(Number).filter(s=>!Number.isNaN(s));if(!r.length)return;let o=r[0],i=r[r.length-1];for(const s of r)s<o?o=s:s>i&&(i=s);return[o,i]},$e(e.options,"debugTable"))}function XI(e,t,n){return n.options.filterFromLeafRows?jG(e,t,n):OG(e,t,n)}function jG(e,t,n){var r;const o=[],i={},s=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,a=function(l,u){u===void 0&&(u=0);const c=[];for(let f=0;f<l.length;f++){var d;let h=l[f];const g=du(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);if(g.columnFilters=h.columnFilters,(d=h.subRows)!=null&&d.length&&u<s){if(g.subRows=a(h.subRows,u+1),h=g,t(h)&&!g.subRows.length){c.push(h),i[h.id]=h,o.push(h);continue}if(t(h)||g.subRows.length){c.push(h),i[h.id]=h,o.push(h);continue}}else h=g,t(h)&&(c.push(h),i[h.id]=h,o.push(h))}return c};return{rows:a(e),flatRows:o,rowsById:i}}function OG(e,t,n){var r;const o=[],i={},s=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,a=function(l,u){u===void 0&&(u=0);const c=[];for(let f=0;f<l.length;f++){let h=l[f];if(t(h)){var d;if((d=h.subRows)!=null&&d.length&&u<s){const v=du(n,h.id,h.original,h.index,h.depth,void 0,h.parentId);v.subRows=a(h.subRows,u+1),h=v}c.push(h),o.push(h),i[h.id]=h}}return c};return{rows:a(e),flatRows:o,rowsById:i}}function NG(){return(e,t)=>Fe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,o)=>{if(!n.rows.length||!(r!=null&&r.length)&&!o)return n;const i=[...r.map(a=>a.id).filter(a=>
1929a!==t),o?"__global__":void 0].filter(Boolean),s=a=>{for(let l=0;l<i.length;l++)if(a.columnFilters[i[l]]===!1)return!1;return!0};return XI(n.rows,s,e)},$e(e.options,"debugTable"))}function LG(){return(e,t)=>Fe(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return new Map;let r=new Map;for(let i=0;i<n.flatRows.length;i++){const s=n.flatRows[i].getUniqueValues(t);for(let a=0;a<s.length;a++){const l=s[a];if(r.has(l)){var o;r.set(l,((o=r.get(l))!=null?o:0)+1)}else r.set(l,1)}}return r},$e(e.options,"debugTable"))}function FG(){return e=>Fe(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let f=0;f<t.flatRows.length;f++)t.flatRows[f].columnFilters={},t.flatRows[f].columnFiltersMeta={};return t}const o=[],i=[];(n??[]).forEach(f=>{var h;const g=e.getColumn(f.id);if(!g)return;const v=g.getFilterFn();v&&o.push({id:f.id,filterFn:v,resolvedValue:(h=v.resolveFilterValue==null?void 0:v.resolveFilterValue(f.value))!=null?h:f.value})});const s=(n??[]).map(f=>f.id),a=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(f=>f.getCanGlobalFilter());r&&a&&l.length&&(s.push("__global__"),l.forEach(f=>{var h;i.push({id:f.id,filterFn:a,resolvedValue:(h=a.resolveFilterValue==null?void 0:a.resolveFilterValue(r))!=null?h:r})}));let u,c;for(let f=0;f<t.flatRows.length;f++){const h=t.flatRows[f];if(h.columnFilters={},o.length)for(let g=0;g<o.length;g++){u=o[g];const v=u.id;h.columnFilters[v]=u.filterFn(h,v,u.resolvedValue,w=>{h.columnFiltersMeta[v]=w})}if(i.length){for(let g=0;g<i.length;g++){c=i[g];const v=c.id;if(c.filterFn(h,v,c.resolvedValue,w=>{h.columnFiltersMeta[v]=w})){h.columnFilters.__global__=!0;break}}h.columnFilters.__global__!==!0&&(h.columnFilters.__global__=!1)}}const d=f=>{for(let h=0;h<s.length;h++)if(f.columnFilters[s[h]]===!1)return!1;return!0};return XI(t.rows,d,e)},$e(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function $G(){return e=>Fe(()=>[e.getState().grouping,e.getPreGroupedRowModel()],(t,n)=>{if(!n.rows.length||!t.length)return n.rows.forEach(l=>{l.depth=0,l.parentId=void 0}),n;const r=t.filter(l=>e.getColumn(l)),o=[],i={},s=function(l,u,c){if(u===void 0&&(u=0),u>=r.length)return l.map(g=>(g.depth=u,o.push(g),i[g.id]=g,g.subRows&&(g.subRows=s(g.subRows,u+1,g.id)),g));const d=r[u],f=zG(l,d);return Array.from(f.entries()).map((g,v)=>{let[w,b]=g,y=`${d}:${w}`;y=c?`${c}>${y}`:y;const x=s(b,u+1,y);x.forEach(I=>{I.parentId=y});const R=u?$I(b,I=>I.subRows):b,k=du(e,y,R[0].original,v,u,void 0,c);return Object.assign(k,{groupingColumnId:d,groupingValue:w,subRows:x,leafRows:R,getValue:I=>{if(r.includes(I)){if(k._valuesCache.hasOwnProperty(I))return k._valuesCache[I];if(b[0]){var C;k._valuesCache[I]=(C=b[0].getValue(I))!=null?C:void 0}return k._valuesCache[I]}if(k._groupingValuesCache.hasOwnProperty(I))return k._groupingValuesCache[I];const _=e.getColumn(I),T=_==null?void 0:_.getAggregationFn();if(T)return k._groupingValuesCache[I]=T(I,R,b),k._groupingValuesCache[I]}}),x.forEach(I=>{o.push(I),i[I.id]=I}),k})},a=s(n.rows,0);return a.forEach(l=>{o.push(l),i[l.id]=l}),{rows:a,flatRows:o,rowsById:i}},$e(e.options,"debugTable","getGroupedRowModel",()=>{e._queue(()=>{e._autoResetExpanded(),e._autoResetPageIndex()})}))}function zG(e,t){const n=new Map;return e.reduce((r,o)=>{const i=`${o.getGroupingValue(t)}`,s=r.get(i);return s?s.push(o):r.set(i,[o]),r},n)}function VG(e){return t=>Fe(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:o,pageIndex:i}=n;let{rows:s,flatRows:a,rowsById:l}=r;const u=o*i,c=u+o;s=s.slice(u,c);let d;t.options.paginateExpandedRows?d={rows:s,flatRows:a,rowsById:l}:d=YI({rows:s,flatRows:a,rowsById:l}),d.flatRows=[];const f=h=>{d.flatRows.push(h),h.subRows.length&&h.subRows.forEach(f)};return d.rows.forEach(f),d},$e(t.options,"debugTable"))}function BG(){return e=>Fe(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,o=[],i=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),s={};
vendor: 4,755 bytes, lines 1929-1950
1929i.forEach(l=>{const u=e.getColumn(l.id);u&&(s[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const a=l=>{const u=l.map(c=>({...c}));return u.sort((c,d)=>{for(let h=0;h<i.length;h+=1){var f;const g=i[h],v=s[g.id],w=v.sortUndefined,b=(f=g==null?void 0:g.desc)!=null?f:!1;let y=0;if(w){const x=c.getValue(g.id),R=d.getValue(g.id),k=x===void 0,I=R===void 0;if(k||I){if(w==="first")return k?-1:1;if(w==="last")return k?1:-1;y=k&&I?0:k?w:-w}}if(y===0&&(y=v.sortingFn(c,d,g.id)),y!==0)return b&&(y*=-1),v.invertSorting&&(y*=-1),y}return c.index-d.index}),u.forEach(c=>{var d;o.push(c),(d=c.subRows)!=null&&d.length&&(c.subRows=a(c.subRows))}),u};return{rows:a(n.rows),flatRows:o,rowsById:n.rowsById}},$e(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
1930   * react-table
1931   *
1932   * Copyright (c) TanStack
1933   *
1934   * This source code is licensed under the MIT license found in the
1935   * LICENSE.md file in the root directory of this source tree.
1936   *
1937   * @license MIT
1938   */function HG(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=S.useState(()=>({current:IG(t)})),[r,o]=S.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:s=>{o(s),e.onStateChange==null||e.onStateChange(s)}})),n.current}/**
1939   * match-sorter-utils
1940   *
1941   * Copyright (c) TanStack
1942   *
1943   * This source code is licensed under the MIT license found in the
1944   * LICENSE.md file in the root directory of this source tree.
1945   *
1946   * @license MIT
1947   */const JI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"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",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},UG=Object.keys(JI).join("|"),GG=new RegExp(UG,"g");function WG(e){return e.replace(GG,t=>JI[t])}/**
1948 * @name match-sorter
1949 * @license MIT license.
1950 * @copyright (c) 2099 Kent C. Dodds
1951 * @author Kent C. Dodds <[email protected]> (https://kentcdodds.com)
1952 */const Gn={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function KG(e,t,n){var r;if(n=n||{},n.threshold=(r=n.threshold)!=null?r:Gn.MATCHES,!n.accessors){const s=F_(e,t,n);return{rankedValue:e,rank:s,accessorIndex:-1,accessorThreshold:n.threshold,passed:s>=n.threshold}}const o=QG(e,n.accessors),i={rankedValue:e,rank:Gn.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let s=0;s<o.length;s++){const a=o[s];let l=F_(a.itemValue,t,n);const{minRanking:u,maxRanking:c,threshold:d=n.threshold}=a.attributes;l<u&&l>=Gn.MATCHES?l=u:l>c&&(l=c),l=Math.min(l,c),l>=d&&l>i.rank&&(i.rank=l,i.passed=!0,i.accessorIndex=s,i.accessorThreshold=d,i.rankedValue=a.itemValue)}return i}function F_(e,t,n){return e=$_(e,n),t=$_(t,n),t.length>e.length?Gn.NO_MATCH:e===t?Gn.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Gn.EQUAL:e.startsWith(t)?Gn.STARTS_WITH:e.includes(` ${t}`)?Gn.WORD_STARTS_WITH:e.includes(t)?Gn.CONTAINS:t.length===1?Gn.NO_MATCH:qG(e).includes(t)?Gn.ACRONYM:YG(e,t))}function qG(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(i=>{t+=i.substr(0,1)})}),t}function YG(e,t){let n=0,r=0;function o(l,u,c){for(let d=c,f=u.length;d<f;d++)if(u[d]===l)return n+=1,d+1;return-1}function i(l){const u=1/l,c=n/t.length;return Gn.MATCHES+c*u}const s=o(t[0],e,0);if(s<0)return Gn.NO_MATCH;r=s;for(let l=1,u=t.length;l<u;l++){const c=t[l];if(r=o(c,e,r),!(r>-1))return Gn.NO_MATCH}const a=r-s;return i(a)}function XG(e,t){return e.rank===t.rank?0:e.rank>t.rank?-1:1}function $_(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=WG(e)),e}function JG(e,t){let n=t;typeof t=="object"&&(n=t.accessor);const r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function QG(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const i=t[r],s=ZG(i),a=JG(e,i);for(let l=0,u=a.length;l<u;l++)n.push({itemValue:a[l],attributes:s})}return n}const z_={maxRanking:1/0,minRanking:-1/0};function ZG(e){return typeof e=="function"?z_:{...z_,...e}}function Wa(e,t,n){let r=n.initialDeps??[],o;return()=>{var i,s,a,l;let u;n.key&&((i=n.debug)!=null&&i.call(n))&&(u=Date.now());const c=e();if(!(c.length!==r.length||c.some((h,g)=>r[g]!==h)))return o;r=c;let f;if(n.key&&((s=n.debug)!=null&&s.call(n))&&(f=Date.now()),o=t(...c),n.key&&((a=n.debug)!=null&&a.call(n))){const h=Math.round((Date.now()-u)*100)/100,g=Math.round((Date.now()-f)*100)/100,v=g/16,w=(b,y)=>{for(b=String(b);b.length<y;)b=" "+b;return b};console.info(`%c⏱ ${w(g,5)} /${w(h,5)} ms`,`
1953            font-size: .6rem;
1954            font-weight: bold;
1955            color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(l=n==null?void 0:n.onChange)==null||l.call(n,o),o}}function zg(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const eW=(e,t)=>Math.abs(e-t)<1,tW=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}},nW=e=>e,QI=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},rW=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=s=>{const{width:a,height:l}=s;t({width:Math.round(a),height:Math.round(l)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(s=>{const a=s[0];if(a!=null&&a.borderBoxSize){const l=a.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(n.getBoundingClientRect())});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},V_={passive:!0},oW=typeof window>"u"?!0:"onscrollend"in window,iW=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=e.options.useScrollendEvent&&oW?()=>{}:tW(r,()=>{t(o,!1)},e.options.isScrollingResetDelay),s=u=>()=>{const{horizontal:c,isRtl:d}=e.options;o=c?n.scrollLeft*(d&&-1||1):n.scrollTop,i(),t(o,u)},a=s(!0),l=s(!1);return l(),n.addEventListener("scroll",a,V_),n.addEventListener("scrollend",l,V_),()=>{n.removeEventListener("scroll",a),n.removeEventListener("scrollend",l)}}
vendor: 3,077 bytes, line 1955
1955,sW=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},aW=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const s=e+t;(i=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[r.options.horizontal?"left":"top"]:s,behavior:n})};class lW{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),n=null},observe:o=>{var i;return(i=r())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=r())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,o])=>{typeof o>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:nW,rangeExtractor:QI,onChange:()=>{},measureElement:sW,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...n}},this.notify=n=>{var r,o;(o=(r=this.options).onChange)==null||o.call(r,this,n)},this.maybeNotify=Wa(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=i,this.maybeNotify()}))}}
vendor: 6,111 bytes, line 1955
1955,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const o=new Map,i=new Map;for(let s=r-1;s>=0;s--){const a=n[s];if(o.has(a.lane))continue;const l=i.get(a.lane);if(l==null||a.end>l.end?i.set(a.lane,a):a.end<l.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((s,a)=>s.end===a.end?s.index-a.index:s.end-a.end)[0]:void 0},this.getMeasurementOptions=Wa(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,o,i,s)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:s}),{key:!1}),this.getMeasurements=Wa(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:s},a)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(c=>{this.itemSizeCache.set(c.key,c.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const u=this.measurementsCache.slice(0,l);for(let c=l;c<n;c++){const d=i(c),f=this.options.lanes===1?u[c-1]:this.getFurthestMeasurement(u,c),h=f?f.end+this.options.gap:r+o,g=a.get(d),v=typeof g=="number"?g:this.options.estimateSize(c),w=h+v,b=f?f.lane:c%this.options.lanes;u[c]={index:c,start:h,size:v,end:w,key:d,lane:b}}return this.measurementsCache=u,u},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Wa(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(n,r,o)=>this.range=n.length>0&&r>0?uW({measurements:n,outerSize:r,scrollOffset:o}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Wa(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(n,r,o,i)=>r===null?[]:n({startIndex:r.startIndex,endIndex:r.endIndex,overscan:o,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const o=this.indexFromElement(n),i=this.measurementsCache[o];if(!i)return;const s=i.key,a=this.elementsCache.get(s);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(s,n)),n.isConnected&&this.resizeItem(o,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const o=this.measurementsCache[n];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,s=r-i;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,o)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(o))});return}this._measureElement(n,void 0)},this.getVirtualItems=Wa(()=>[this.getIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let i=0,s=n.length;i<s;i++){const a=n[i],l=r[a];o.push(l)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return zg(r[ZI(0,r.length-1,o=>zg(r[o]).start,n)])},this.getOffsetForAlignment=(n,r)=>{const o=this.getSize(),i=this.getScrollOffset();r==="auto"&&n>=i+o&&(r="end"),r==="end"&&(n-=o);const s=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(l,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=this.measurementsCache[n];if(!o)return;const i=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(o.end>=s+i-this.options.scrollPaddingEnd)r="end";else if(o.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];const a=o.start-this.options.scrollPaddingStart+(o.size-i)/2;switch(r){case"center":return[this.getOffsetForAlignment(a,r),r];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,r),r];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,r),r]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:o})},this.scrollToIndex=(n,{align:r="auto",behavior:o}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(n,r);if(!i)return;const[s,a]=i;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const[u]=zg(this.getOffsetForIndex(n,a));
vendor: 5,614 bytes, line 1955
1955eW(u,this.getScrollOffset())||this.scrollToIndex(n,{align:a,behavior:o})}else this.scrollToIndex(n,{align:a,behavior:o})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;return r.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((n=r[r.length-1])==null?void 0:n.end)??0:Math.max(...r.slice(-this.options.lanes).map(i=>i.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const ZI=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else if(i>r)t=o-1;else return o}return e>0?e-1:0};function uW({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,i=ZI(0,r,a=>e[a].start,n);let s=i;for(;s<r&&e[s].end<n+t;)s++;return{startIndex:i,endIndex:s}}const B_=typeof document<"u"?S.useLayoutEffect:S.useEffect;function cW(e){const t=S.useReducer(()=>({}),{})[1],n={...e,onChange:(o,i)=>{var s;i?wa.flushSync(t):t(),(s=e.onChange)==null||s.call(e,o,i)}},[r]=S.useState(()=>new lW(n));return r.setOptions(n),B_(()=>r._didMount(),[]),B_(()=>r._willUpdate()),r}function eM(e){return cW({observeElementRect:rW,observeElementOffset:iW,scrollToFn:aW,...e})}var tM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bp,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",a="minute",l="hour",u="day",c="week",d="month",f="quarter",h="year",g="date",v="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var z=["th","st","nd","rd"],N=V%100;return"["+V+(z[(N-20)%10]||z[N]||z[0])+"]"}},x=function(V,z,N){var F=String(V);return!F||F.length>=z?V:""+Array(z+1-F.length).join(N)+V},R={s:x,z:function(V){var z=-V.utcOffset(),N=Math.abs(z),F=Math.floor(N/60),j=N%60;return(z<=0?"+":"-")+x(F,2,"0")+":"+x(j,2,"0")},m:function V(z,N){if(z.date()<N.date())return-V(N,z);var F=12*(N.year()-z.year())+(N.month()-z.month()),j=z.clone().add(F,d),L=N-j<0,B=z.clone().add(F+(L?-1:1),d);return+(-(F+(N-j)/(L?j-B:B-j))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:d,y:h,w:c,d:u,D:g,h:l,m:a,s,ms:i,Q:f}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},k="en",I={};I[k]=y;var C="$isDayjsObject",_=function(V){return V instanceof O||!(!V||!V[C])},T=function V(z,N,F){var j;if(!z)return k;if(typeof z=="string"){var L=z.toLowerCase();I[L]&&(j=L),N&&(I[L]=N,j=L);var B=z.split("-");if(!j&&B.length>1)return V(B[0])}else{var H=z.name;I[H]=z,j=H}return!F&&j&&(k=j),j||!F&&k},P=function(V,z){if(_(V))return V.clone();var N=typeof z=="object"?z:{};return N.date=V,N.args=arguments,new O(N)},M=R;M.l=T,M.i=_,M.w=function(V,z){return P(V,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var O=function(){function V(N){this.$L=T(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[C]=!0}var z=V.prototype;return z.parse=function(N){this.$d=function(F){var j=F.date,L=F.utc;if(j===null)return new Date(NaN);if(M.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var B=j.match(w);if(B){var H=B[2]-1||0,G=(B[7]||"0").substring(0,3);return L?new Date(Date.UTC(B[1],H,B[3]||1,B[4]||0,B[5]||0,B[6]||0,G)):new Date(B[1],H,B[3]||1,B[4]||0,B[5]||0,B[6]||0,G)}}return new Date(j)}(N),this.init()},z.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},z.$utils=function(){return M},z.isValid=function(){return this.$d.toString()!==v},z.isSame=function(N,F){var j=P(N);return this.startOf(F)<=j&&j<=this.endOf(F)},z.isAfter=function(N,F){return P(N)<this.startOf(F)},z.isBefore=function(N,F){return this.endOf(F)<P(N)},z.$g=function(N,F,j){return M.u(N)?this[F]:this.set(j,N)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(N,F){var j=this,L=!!M.u(F)||F,B=M.p(N),H=function(Y,W){var se=M.w(j.$u?Date.UTC(j.$y,W,Y):new Date(j.$y,W,Y),j);return L?se:se.endOf(u)},G=function(Y,W){return M.w(j.toDate()[Y].apply(j.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(W)),j)},ee=this.$W,oe=this.$M,X=this.$D,J="set"+(this.$u?"UTC":"");switch(B){case h:return L?H(1,0):H(31,11);case d:return L?H(1,oe):H(0,oe+1);case c:var q=this.$locale().weekStart||0,ne=(ee<q?ee+7:ee)-q;return H(L?X-ne:X+(6-ne),oe);case u:case g:return G(J+"Hours",0);case l:return G(J+"Minutes",1);case a:return G(J+"Seconds",2);case s:return G(J+"Milliseconds",3);default:return this.clone()}},z.endOf=function(N){return this.startOf(N,!1)},z.$set=function(N,F){var j,L=M.p(N),B="set"+(this.$u?"UTC":""),H=(j={},j[u]=B+"Date",j[g]=B+"Date",j[d]=B+"Month",j[h]=B+"FullYear",j[l]=B+"Hours",j[a]=B+"Minutes",j[s]=B+"Seconds",j[i]=B+"Milliseconds",j)[L],G=L===u?this.$D+(F-this.$W):F;if(L===d||L===h){var ee=this.clone().set(g,1);
1955ee.$d[H](G),ee.init(),this.$d=ee.set(g,Math.min(this.$D,ee.daysInMonth())).$d}else H&&this.$d[H](G);return this.init(),this},z.set=function(N,F){return this.clone().$set(N,F)},z.get=function(N){return this[M.p(N)]()},z.add=function(N,F){var j,L=this;N=Number(N);var B=M.p(F),H=function(oe){var X=P(L);return M.w(X.date(X.date()+Math.round(oe*N)),L)};if(B===d)return this.set(d,this.$M+N);if(B===h)return this.set(h,this.$y+N);if(B===u)return H(1);if(B===c)return H(7);var G=(j={},j[a]=r,j[l]=o,j[s]=n,j)[B]||1,ee=this.$d.getTime()+N*G;return M.w(ee,this)},z.subtract=function(N,F){return this.add(-1*N,F)},z.format=function(N){var F=this,j=this.$locale();if(!this.isValid())return j.invalidDate||v;var L=N||"YYYY-MM-DDTHH:mm:ssZ",B=M.z(this),H=this.$H,G=this.$m,ee=this.$M,oe=j.weekdays,X=j.months,J=j.meridiem,q=function(W,se,ue,le){return W&&(W[se]||W(F,L))||ue[se].slice(0,le)},ne=function(W){return M.s(H%12||12,W,"0")},Y=J||function(W,se,ue){var le=W<12?"AM":"PM";return ue?le.toLowerCase():le};return L.replace(b,function(W,se){return se||function(ue){switch(ue){case"YY":return String(F.$y).slice(-2);case"YYYY":return M.s(F.$y,4,"0");case"M":return ee+1;case"MM":return M.s(ee+1,2,"0");case"MMM":return q(j.monthsShort,ee,X,3);case"MMMM":return q(X,ee);case"D":return F.$D;case"DD":return M.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return q(j.weekdaysMin,F.$W,oe,2);case"ddd":return q(j.weekdaysShort,F.$W,oe,3);case"dddd":return oe[F.$W];case"H":return String(H);case"HH":return M.s(H,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return Y(H,G,!0);case"A":return Y(H,G,!1);case"m":return String(G);case"mm":return M.s(G,2,"0");case"s":return String(F.$s);case"ss":return M.s(F.$s,2,"0");case"SSS":return M.s(F.$ms,3,"0");case"Z":return B}return null}(W)||B.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(N,F,j){var L,B=this,H=M.p(F),G=P(N),ee=(G.utcOffset()-this.utcOffset())*r,oe=this-G,X=function(){return M.m(B,G)};switch(H){case h:L=X()/12;break;case d:L=X();break;case f:L=X()/3;break;case c:L=(oe-ee)/6048e5;break;case u:L=(oe-ee)/864e5;break;case l:L=oe/o;break;case a:L=oe/r;break;case s:L=oe/n;break;default:L=oe}return j?L:M.a(L)},z.daysInMonth=function(){return this.endOf(d).$D},z.$locale=function(){return I[this.$L]},z.locale=function(N,F){if(!N)return this.$L;var j=this.clone(),L=T(N,F,!0);return L&&(j.$L=L),j},z.clone=function(){return M.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},V}(),A=O.prototype;return P.prototype=A,[["$ms",i],["$s",s],["$m",a],["$H",l],["$W",u],["$M",d],["$y",h],["$D",g]].forEach(function(V){A[V[1]]=function(z){return this.$g(z,V[0],V[1])}}),P.extend=function(V,z){return V.$i||(V(z,O,P),V.$i=!0),P},P.locale=T,P.isDayjs=_,P.unix=function(V){return P(1e3*V)},P.en=I[k],P.Ls=I,P.p={},P})})(tM);var dW=tM.exports;const je=va(dW);function fW({direction:e,levelIndex:t,rowIndex:n,cellIndex:r,size:o}){switch(e){case"up":return t===0&&n===0?null:n===0?{levelIndex:t-1,rowIndex:r<=o[t-1][o[t-1].length-1]-1?o[t-1].length-1:o[t-1].length-2,cellIndex:r}:{levelIndex:t,rowIndex:n-1,cellIndex:r};case"down":return n===o[t].length-1?{levelIndex:t+1,rowIndex:0,cellIndex:r}:n===o[t].length-2&&r>=o[t][o[t].length-1]?{levelIndex:t+1,rowIndex:0,cellIndex:r}:{levelIndex:t,rowIndex:n+1,cellIndex:r};case"left":return t===0&&n===0&&r===0?null:n===0&&r===0?{levelIndex:t-1,rowIndex:o[t-1].length-1,cellIndex:o[t-1][o[t-1].length-1]-1}:r===0?{levelIndex:t,rowIndex:n-1,cellIndex:o[t][n-1]-1}:{levelIndex:t,rowIndex:n,cellIndex:r-1};case"right":return n===o[t].length-1&&r===o[t][n]-1?{levelIndex:t+1,rowIndex:0,cellIndex:0}:r===o[t][n]-1?{levelIndex:t,rowIndex:n+1,cellIndex:0}:{levelIndex:t,rowIndex:n,cellIndex:r+1};default:return{levelIndex:t,rowIndex:n,cellIndex:r}}}function nM({controlsRef:e,direction:t,levelIndex:n,rowIndex:r,cellIndex:o,size:i}){var l,u,c;const s=fW({direction:t,size:i,rowIndex:r,cellIndex:o,levelIndex:n});if(!s)return;const a=(c=(u=(l=e.current)==null?void 0:l[s.levelIndex])==null?void 0:u[s.rowIndex])==null?void 0:c[s.cellIndex];a&&(a.disabled||a.getAttribute("data-hidden")||a.getAttribute("data-outside")?nM({controlsRef:e,direction:t,levelIndex:s.levelIndex,cellIndex:s.cellIndex,rowIndex:s.rowIndex,size:i}):a.focus())}function pW(e){switch(e){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function hW(e){var t;return(t=e.current)==null?void 0:t.map(n=>n.map(r=>r.length))}function Gw({controlsRef:e,levelIndex:t,rowIndex:n,cellIndex:r,event:o}){const i=pW(o.key);if(i){o.preventDefault();const s=hW(e);nM({controlsRef:e,direction:i,levelIndex:t,rowIndex:n,cellIndex:r,size:s})}}function mW(e,t){if(!e||!t)return t;const n=e.getHours(),r=e.getMinutes(),o=e.getSeconds(),i=e.getMilliseconds(),s=new Date(t);return s.setHours(n),s.setMinutes(r),s.setSeconds(o),s.setMilliseconds(i),s}var rM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bp,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(o,i,s){var a,l=function(f,h,g){g===void 0&&(g={});var v=new Date(f),w=function(b,y){y===void 0&&(y={});var x=y.timeZoneName||"short",R=b+"|"+x,k=r[R];return k||(k=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:b,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:x}),r[R]=k),k}(h,g);return w.formatToParts(v)},u=function(f,h){for(var g=l(f,h),v=[],w=0;w<g.length;w+=1){var b=g[w],y=b.type,x=b.value,R=n[y];R>=0&&(v[R]=parseInt(x,10))}var k=v[3],I=k===24?0:k,C=v[0]+"-"+v[1]+"-"+v[2]+" "+I+":"+v[4]+":"+v[5]+":000",_=+f;return(s.utc(C).valueOf()-(_-=_%1e3))/6e4},c=i.prototype;c.tz=function(f,h){f===void 0&&(f=a);
1955var g,v=this.utcOffset(),w=this.toDate(),b=w.toLocaleString("en-US",{timeZone:f}),y=Math.round((w-new Date(b))/1e3/60),x=15*-Math.round(w.getTimezoneOffset()/15)-y;if(!Number(x))g=this.utcOffset(0,h);else if(g=s(b,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(x,!0),h){var R=g.utcOffset();g=g.add(v-R,"minute")}return g.$x.$timezone=f,g},c.offsetName=function(f){var h=this.$x.$timezone||s.tz.guess(),g=l(this.valueOf(),h,{timeZoneName:f}).find(function(v){return v.type.toLowerCase()==="timezonename"});return g&&g.value};var d=c.startOf;c.startOf=function(f,h){if(!this.$x||!this.$x.$timezone)return d.call(this,f,h);var g=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return d.call(g,f,h).tz(this.$x.$timezone,!0)},s.tz=function(f,h,g){var v=g&&h,w=g||h||a,b=u(+s(),w);if(typeof f!="string")return s(f).tz(w);var y=function(I,C,_){var T=I-60*C*1e3,P=u(T,_);if(C===P)return[T,C];var M=u(T-=60*(P-C)*1e3,_);return P===M?[T,P]:[I-60*Math.min(P,M)*1e3,Math.max(P,M)]}(s.utc(f,v).valueOf(),b,w),x=y[0],R=y[1],k=s(x).utcOffset(R);return k.$x.$timezone=w,k},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(f){a=f}}})})(rM);var gW=rM.exports;const vW=va(gW);var oM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bp,function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(i,s,a){var l=s.prototype;a.utc=function(v){var w={date:v,utc:!0,args:arguments};return new s(w)},l.utc=function(v){var w=a(this.toDate(),{locale:this.$L,utc:!0});return v?w.add(this.utcOffset(),n):w},l.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),u.call(this,v)};var c=l.init;l.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else c.call(this)};var d=l.utcOffset;l.utcOffset=function(v,w){var b=this.$utils().u;if(b(v))return this.$u?0:b(this.$offset)?d.call(this):this.$offset;if(typeof v=="string"&&(v=function(k){k===void 0&&(k="");var I=k.match(r);if(!I)return null;var C=(""+I[0]).match(o)||["-",0,0],_=C[0],T=60*+C[1]+ +C[2];return T===0?0:_==="+"?T:-T}(v),v===null))return this;var y=Math.abs(v)<=16?60*v:v;if(y===0)return this.utc(w);var x=this.clone();if(w)return x.$offset=y,x.$u=!1,x;var R=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(x=this.local().add(y+R,n)).$offset=y,x.$x.$localOffset=R,x};var f=l.format;l.format=function(v){var w=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,w)},l.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var h=l.toDate;l.toDate=function(v){return v==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var g=l.diff;l.diff=function(v,w,b){if(v&&this.$u===v.$u)return g.call(this,v,w,b);var y=this.local(),x=a(v).local();return g.call(y,x,w,b)}}})})(oM);var yW=oM.exports;const bW=va(yW);je.extend(bW);je.extend(vW);function wW(e,t){return t?je(e).tz(t).utcOffset()+e.getTimezoneOffset():0}const H_=(e,t,n)=>{if(!e)return null;if(!t)return e;let r=wW(e,t);return n==="remove"&&(r*=-1),je(e).add(r,"minutes").toDate()};function ra(e,t,n,r){return r||!t?t:Array.isArray(t)?t.map(o=>H_(o,n,e)):H_(t,n,e)}const xW={locale:"en",timezone:null,firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},SW=S.createContext(xW);function Kr(){const e=S.useContext(SW),t=S.useCallback(s=>s||e.locale,[e.locale]),n=S.useCallback(s=>s||e.timezone||void 0,[e.timezone]),r=S.useCallback(s=>typeof s=="number"?s:e.firstDayOfWeek,[e.firstDayOfWeek]),o=S.useCallback(s=>Array.isArray(s)?s:e.weekendDays,[e.weekendDays]),i=S.useCallback(s=>typeof s=="string"?s:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:t,getTimezone:n,getFirstDayOfWeek:r,getWeekendDays:o,getLabelSeparator:i}}function CW(e,t){const n=Kr(),r=o=>ra("remove",o,n.getTimezone()).toISOString();if(t==="range"&&Array.isArray(e)){const[o,i]=e;return o?i?`${r(o)} – ${r(i)}`:`${r(o)} –`:""}return t==="multiple"&&Array.isArray(e)?e.map(o=>
1955o&&r(o)).filter(Boolean).join(", "):!Array.isArray(e)&&e?r(e):""}function iM({value:e,type:t,name:n,form:r}){return p.jsx("input",{type:"hidden",value:CW(e,t),name:n,form:r})}iM.displayName="@mantine/dates/HiddenDatesInput";var sM={day:"m_396ce5cb"};const _W={},RW=(e,{size:t})=>({day:{"--day-size":Xe(t,"day-size")}}),Ww=fe((e,t)=>{const n=re("Day",_W,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,date:u,disabled:c,__staticSelector:d,weekend:f,outside:h,selected:g,renderDay:v,inRange:w,firstInRange:b,lastInRange:y,hidden:x,static:R,highlightToday:k,...I}=n,C=Te({name:d||"Day",classes:sM,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:RW,rootSelector:"day"}),_=Kr();return p.jsx(mn,{...C("day",{style:x?{display:"none"}:void 0}),component:R?"div":"button",ref:t,disabled:c,"data-today":je(u).isSame(ra("add",new Date,_.getTimezone()),"day")||void 0,"data-hidden":x||void 0,"data-highlight-today":k||void 0,"data-disabled":c||void 0,"data-weekend":!c&&!h&&f||void 0,"data-outside":!c&&h||void 0,"data-selected":!c&&g||void 0,"data-in-range":w&&!c||void 0,"data-first-in-range":b&&!c||void 0,"data-last-in-range":y&&!c||void 0,"data-static":R||void 0,unstyled:a,...I,children:(v==null?void 0:v(u))||je(u).date()})});Ww.classes=sM;Ww.displayName="@mantine/dates/Day";function EW({locale:e,format:t="dd",firstDayOfWeek:n=1}){const r=je().day(n),o=[];for(let i=0;i<7;i+=1)typeof t=="string"?o.push(je(r).add(i,"days").locale(e).format(t)):o.push(t(je(r).add(i,"days").toDate()));return o}var aM={weekday:"m_18a3eca"};const TW={},PW=(e,{size:t})=>({weekdaysRow:{"--wr-fz":Qt(t),"--wr-spacing":hn(t)}}),Kw=fe((e,t)=>{const n=re("WeekdaysRow",TW,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,locale:u,firstDayOfWeek:c,weekdayFormat:d,cellComponent:f="th",__staticSelector:h,withWeekNumbers:g,...v}=n,w=Te({name:h||"WeekdaysRow",classes:aM,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:PW,rootSelector:"weekdaysRow"}),b=Kr(),y=EW({locale:b.getLocale(u),format:d,firstDayOfWeek:b.getFirstDayOfWeek(c)}).map((x,R)=>p.jsx(f,{...w("weekday"),children:x},R));return p.jsxs(te,{component:"tr",ref:t,...w("weekdaysRow"),...v,children:[g&&p.jsx(f,{...w("weekday"),children:"#"}),y]})});Kw.classes=aM;Kw.displayName="@mantine/dates/WeekdaysRow";function kW(e,t=1){let n=je(e);const r=t===0?6:t-1;for(;n.day()!==r;)n=n.add(1,"day");return n.toDate()}function IW(e,t=1){let n=je(e);for(;n.day()!==t;)n=n.subtract(1,"day");return n.toDate()}function MW({month:e,firstDayOfWeek:t=1,consistentWeeks:n}){const r=je(e).subtract(je(e).date()-1,"day"),o=je(r).startOf("day"),i=o.toDate(),s=o.add(+o.daysInMonth()-1,"day").toDate(),a=kW(s,t),l=IW(i,t),u=[];for(;l<=a;){const c=[];for(let d=0;d<7;d+=1)c.push(new Date(l)),l.setDate(l.getDate()+1);u.push(c)}if(n&&u.length<6){const c=u[u.length-1],d=c[c.length-1],f=new Date(d);for(f.setDate(f.getDate()+1);u.length<6;){const h=[];for(let g=0;g<7;g+=1)h.push(new Date(f)),f.setDate(f.getDate()+1);u.push(h)}}return u}function lM(e,t){return je(e).format("YYYY-MM")===je(t).format("YYYY-MM")}function uM(e,t){return t instanceof Date?je(e).isAfter(je(t).subtract(1,"day"),"day"):!0}function cM(e,t){return t instanceof Date?je(e).isBefore(je(t).add(1,"day"),"day"):!0}function DW(e,t,n,r,o,i,s){const a=e.flat().filter(c=>{var d;return cM(c,n)&&uM(c,t)&&!(o!=null&&o(c))&&!((d=r==null?void 0:r(c))!=null&&d.disabled)&&(!i||lM(c,s))}),l=a.find(c=>{var d;return(d=r==null?void 0:r(c))==null?void 0:d.selected});if(l)return l;const u=a.find(c=>je().isSame(c,"date"));return u||a[0]}var dM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bp,function(){var n="day";return function(r,o,i){var s=function(u){return u.add(4-u.isoWeekday(),n)},a=o.prototype;a.isoWeekYear=function(){return s(this).year()},a.isoWeek=function(u){if(!this.$utils().u(u))return this.add(7*(u-this.isoWeek()),n);var c,d,f,h,g=s(this),v=(c=this.isoWeekYear(),d=this.$u,f=(d?i.utc:i)().year(c).startOf("year"),h=4-f.isoWeekday(),f.isoWeekday()>4&&(h+=7),f.add(h,n));return g.diff(v,"week")+1},a.isoWeekday=function(u){return this.$utils().u(u)?this.day()||7:this.day(this.day()%7?u:u-7)};var l=a.startOf;a.startOf=function(u,c){var d=this.$utils(),f=!!d.u(c)||c;return d.p(u)==="isoweek"?f?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(u,c)}}})})(dM);var AW=dM.exports;const jW=va(AW);je.extend(jW);function OW(e){const t=e.find(n=>je(n).day()===1);return je(t).isoWeek()}var fM={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const NW={withCellSpacing:!0},LW=(e,{size:t})=>({weekNumber:{"--wn-fz":Qt(t),"--wn-size":Xe(t,"wn-size")}}),sm=fe((e,t)=>{const n=re("Month",NW,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,__staticSelector:u,locale:c,firstDayOfWeek:d,weekdayFormat:f,month:h,weekendDays:g,getDayProps:v,excludeDate:w,minDate:b,maxDate:y,renderDay:x,hideOutsideDates:R,hideWeekdays:k,getDayAriaLabel:I,static:C,__getDayRef:_,__onDayKeyDown:T,__onDayCl
1955ick:P,__onDayMouseEnter:M,__preventFocus:O,__stopPropagation:A,withCellSpacing:V,size:z,highlightToday:N,withWeekNumbers:F,...j}=n,L=Te({name:u||"Month",classes:fM,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:LW,rootSelector:"month"}),B=Kr(),H=MW({month:h,firstDayOfWeek:B.getFirstDayOfWeek(d),consistentWeeks:B.consistentWeeks}),G=DW(H,b,y,v,w,R,h),{resolvedClassNames:ee,resolvedStyles:oe}=xi({classNames:r,styles:s,props:n}),X=H.map((J,q)=>{const ne=J.map((Y,W)=>{const se=!lM(Y,h),ue=(I==null?void 0:I(Y))||je(Y).locale(c||B.locale).format("D MMMM YYYY"),le=v==null?void 0:v(Y),Re=je(Y).isSame(G,"date");return p.jsx("td",{...L("monthCell"),"data-with-spacing":V||void 0,children:p.jsx(Ww,{__staticSelector:u||"Month",classNames:ee,styles:oe,unstyled:a,"data-mantine-stop-propagation":A||void 0,highlightToday:N,renderDay:x,date:Y,size:z,weekend:B.getWeekendDays(g).includes(Y.getDay()),outside:se,hidden:R?se:!1,"aria-label":ue,static:C,disabled:(w==null?void 0:w(Y))||!cM(Y,y)||!uM(Y,b),ref:ye=>_==null?void 0:_(q,W,ye),...le,onKeyDown:ye=>{var ge;(ge=le==null?void 0:le.onKeyDown)==null||ge.call(le,ye),T==null||T(ye,{rowIndex:q,cellIndex:W,date:Y})},onMouseEnter:ye=>{var ge;(ge=le==null?void 0:le.onMouseEnter)==null||ge.call(le,ye),M==null||M(ye,Y)},onClick:ye=>{var ge;(ge=le==null?void 0:le.onClick)==null||ge.call(le,ye),P==null||P(ye,Y)},onMouseDown:ye=>{var ge;(ge=le==null?void 0:le.onMouseDown)==null||ge.call(le,ye),O&&ye.preventDefault()},tabIndex:O||!Re?-1:0})},Y.toString())});return p.jsxs("tr",{...L("monthRow"),children:[F&&p.jsx("td",{...L("weekNumber"),children:OW(J)}),ne]},q)});return p.jsxs(te,{component:"table",...L("month"),size:z,ref:t,...j,children:[!k&&p.jsx("thead",{...L("monthThead"),children:p.jsx(Kw,{__staticSelector:u||"Month",locale:c,firstDayOfWeek:d,weekdayFormat:f,size:z,classNames:ee,styles:oe,unstyled:a,withWeekNumbers:F})}),p.jsx("tbody",{...L("monthTbody"),children:X})]})});sm.classes=fM;sm.displayName="@mantine/dates/Month";var pM={pickerControl:"m_dc6a3c71"};const FW={},$W=(e,{size:t})=>({pickerControl:{"--dpc-fz":Qt(t),"--dpc-size":Xe(t,"dpc-size")}}),am=fe((e,t)=>{const n=re("PickerControl",FW,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,firstInRange:u,lastInRange:c,inRange:d,__staticSelector:f,selected:h,disabled:g,...v}=n,w=Te({name:f||"PickerControl",classes:pM,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:$W,rootSelector:"pickerControl"});return p.jsx(mn,{...w("pickerControl"),ref:t,unstyled:a,"data-picker-control":!0,"data-selected":h&&!g||void 0,"data-disabled":g||void 0,"data-in-range":d&&!g&&!h||void 0,"data-first-in-range":u&&!g||void 0,"data-last-in-range":c&&!g||void 0,disabled:g,...v})});am.classes=pM;am.displayName="@mantine/dates/PickerControl";function hM(e,t,n){return!t&&!n?!1:!!(t&&je(e).isBefore(t,"year")||n&&je(e).isAfter(n,"year"))}function zW(e,t,n,r){const o=e.flat().filter(a=>{var l;return!hM(a,t,n)&&!((l=r==null?void 0:r(a))!=null&&l.disabled)}),i=o.find(a=>{var l;return(l=r==null?void 0:r(a))==null?void 0:l.selected});if(i)return i;const s=o.find(a=>je().isSame(a,"year"));return s||o[0]}function mM(e){const t=e.getFullYear(),n=t-t%10;let r=0;const o=[[],[],[],[]];for(let i=0;i<4;i+=1){const s=i===3?1:3;for(let a=0;a<s;a+=1)o[i].push(new Date(n+r,0)),r+=1}return o}var gM={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const VW={yearsListFormat:"YYYY",withCellSpacing:!0},lm=fe((e,t)=>{const n=re("YearsList",VW,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,decade:u,yearsListFormat:c,locale:d,minDate:f,maxDate:h,getYearControlProps:g,__staticSelector:v,__getControlRef:w,__onControlKeyDown:b,__onControlClick:y,__onControlMouseEnter:x,__preventFocus:R,__stopPropagation:k,withCellSpacing:I,size:C,..._}=n,T=Te({name:v||"YearsList",classes:gM,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,rootSelector:"yearsList"}),P=Kr(),M=mM(u),O=zW(M,f,h,g),A=M.map((V,z)=>{const N=V.map((F,j)=>{const L=g==null?void 0:g(F),B=je(F).isSame(O,"year");return p.jsx("td",{...T("yearsListCell"),"data-with-spacing":I||void 0,children:p.jsx(am,{...T("yearsListControl"),size:C,unstyled:a,"data-mantine-stop-propagation":k||void 0,disabled:hM(F,f,h),ref:H=>w==null?void 0:w(z,j,H),...L,onKeyDown:H=>{var G;(G=L==null?void 0:L.onKeyDown)==null||G.call(L,H),b==null||b(H,{rowIndex:z,cellIndex:j,date:F})},onClick:H=>{var G;(G=L==null?void 0:L.onClick)==null||G.call(L,H),y==null||y(H,F)},onMouseEnter:H=>{var G;(G=L==null?void 0:L.onMouseEnter)==null||G.call(L,H),x==null||x(H,F)},onMouseDown:H=>{var G;(G=L==null?void 0:L.onMouseDown)==null||G.call(L,H),R&&H.preventDefault()}
1955,tabIndex:R||!B?-1:0,children:je(F).locale(P.getLocale(d)).format(c)})},j)});return p.jsx("tr",{...T("yearsListRow"),children:N},z)});return p.jsx(te,{component:"table",ref:t,size:C,...T("yearsList"),..._,children:p.jsx("tbody",{children:A})})});lm.classes=gM;lm.displayName="@mantine/dates/YearsList";function vM(e,t,n){return!t&&!n?!1:!!(t&&je(e).isBefore(t,"month")||n&&je(e).isAfter(n,"month"))}function BW(e,t,n,r){const o=e.flat().filter(a=>{var l;return!vM(a,t,n)&&!((l=r==null?void 0:r(a))!=null&&l.disabled)}),i=o.find(a=>{var l;return(l=r==null?void 0:r(a))==null?void 0:l.selected});if(i)return i;const s=o.find(a=>je().isSame(a,"month"));return s||o[0]}function HW(e){const t=je(e).startOf("year").toDate(),n=[[],[],[],[]];let r=0;for(let o=0;o<4;o+=1)for(let i=0;i<3;i+=1)n[o].push(je(t).add(r,"months").toDate()),r+=1;return n}var yM={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const UW={monthsListFormat:"MMM",withCellSpacing:!0},um=fe((e,t)=>{const n=re("MonthsList",UW,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,__staticSelector:u,year:c,monthsListFormat:d,locale:f,minDate:h,maxDate:g,getMonthControlProps:v,__getControlRef:w,__onControlKeyDown:b,__onControlClick:y,__onControlMouseEnter:x,__preventFocus:R,__stopPropagation:k,withCellSpacing:I,size:C,..._}=n,T=Te({name:u||"MonthsList",classes:yM,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,rootSelector:"monthsList"}),P=Kr(),M=HW(c),O=BW(M,h,g,v),A=M.map((V,z)=>{const N=V.map((F,j)=>{const L=v==null?void 0:v(F),B=je(F).isSame(O,"month");return p.jsx("td",{...T("monthsListCell"),"data-with-spacing":I||void 0,children:p.jsx(am,{...T("monthsListControl"),size:C,unstyled:a,__staticSelector:u||"MonthsList","data-mantine-stop-propagation":k||void 0,disabled:vM(F,h,g),ref:H=>w==null?void 0:w(z,j,H),...L,onKeyDown:H=>{var G;(G=L==null?void 0:L.onKeyDown)==null||G.call(L,H),b==null||b(H,{rowIndex:z,cellIndex:j,date:F})},onClick:H=>{var G;(G=L==null?void 0:L.onClick)==null||G.call(L,H),y==null||y(H,F)},onMouseEnter:H=>{var G;(G=L==null?void 0:L.onMouseEnter)==null||G.call(L,H),x==null||x(H,F)},onMouseDown:H=>{var G;(G=L==null?void 0:L.onMouseDown)==null||G.call(L,H),R&&H.preventDefault()},tabIndex:R||!B?-1:0,children:je(F).locale(P.getLocale(f)).format(d)})},j)});return p.jsx("tr",{...T("monthsListRow"),children:N},z)});return p.jsx(te,{component:"table",ref:t,size:C,...T("monthsList"),..._,children:p.jsx("tbody",{children:A})})});um.classes=yM;um.displayName="@mantine/dates/MonthsList";var bM={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const GW={nextDisabled:!1,previousDisabled:!1,hasNextLevel:!0,withNext:!0,withPrevious:!0},WW=(e,{size:t})=>({calendarHeader:{"--dch-control-size":Xe(t,"dch-control-size"),"--dch-fz":Qt(t)}}),As=fe((e,t)=>{const n=re("CalendarHeader",GW,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,nextIcon:u,previousIcon:c,nextLabel:d,previousLabel:f,onNext:h,onPrevious:g,onLevelClick:v,label:w,nextDisabled:b,previousDisabled:y,hasNextLevel:x,levelControlAriaLabel:R,withNext:k,withPrevious:I,__staticSelector:C,__preventFocus:_,__stopPropagation:T,...P}=n,M=Te({name:C||"CalendarHeader",classes:bM,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:WW,rootSelector:"calendarHeader"}),O=_?A=>A.preventDefault():void 0;return p.jsxs(te,{...M("calendarHeader"),ref:t,...P,children:[I&&p.jsx(mn,{...M("calendarHeaderControl"),"data-direction":"previous","aria-label":f,onClick:g,unstyled:a,onMouseDown:O,disabled:y,"data-disabled":y||void 0,tabIndex:_||y?-1:0,"data-mantine-stop-propagation":T||void 0,children:c||p.jsx(Oc,{...M("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})}),p.jsx(mn,{component:x?"button":"div",...M("calendarHeaderLevel"),onClick:x?v:void 0,unstyled:a,onMouseDown:x?O:void 0,disabled:!x,"data-static":!x||void 0,"aria-label":R,tabIndex:_||!x?-1:0,"data-mantine-stop-propagation":T||void 0,children:w}),k&&p.jsx(mn,{...M("calendarHeaderControl"),"data-direction":"next","aria-label":d,onClick:h,unstyled:a,onMouseDown:O,disabled:b,"data-disabled":b||void 0,tabIndex:_||b?-1:0,"data-mantine-stop-propagation":T||void 0,children:u||p.jsx(Oc,{...M("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})})]})});As.classes=bM;As.displayName="@mantine/dates/CalendarHeader";function KW(e){const t=mM(e);return[t[0][0],t[3][0]]}const qW={decadeLabelFormat:"YYYY"},cm=fe((e,t)=>{const n=re("DecadeLevel",qW,e),{decade:r,locale:o,minDate:i,maxDate:s,yearsListFormat:a,getYearControlProps:l,__getControlRef:u,__onControlKeyDown:c,__onControlClick:d,__onControlMouseEnter:f,withCellSpacing:h,__preventFocus:g,nextIcon:v,previousIcon:w,nextLabel:b,previousLabel:y,onNext:x,onPrevious:R,nextDisabled:k,previousDisabled:I,levelControlAriaLabel:C,withNext:_,withPrevious:T,decadeLabelFormat:P,classNames:M,styles:O,unstyled:A,__staticSelector:V,__stopPropagation:z,size:N,...F}=n,j=Kr(),[L,B]=KW(r),H={__staticSelector:V||"DecadeLevel",classNames:M,styles:O,unstyled:A,size:N}
1955,G=typeof k=="boolean"?k:s?!je(B).endOf("year").isBefore(s):!1,ee=typeof I=="boolean"?I:i?!je(L).startOf("year").isAfter(i):!1,oe=(X,J)=>je(X).locale(o||j.locale).format(J);return p.jsxs(te,{"data-decade-level":!0,size:N,ref:t,...F,children:[p.jsx(As,{label:typeof P=="function"?P(L,B):`${oe(L,P)} – ${oe(B,P)}`,__preventFocus:g,__stopPropagation:z,nextIcon:v,previousIcon:w,nextLabel:b,previousLabel:y,onNext:x,onPrevious:R,nextDisabled:G,previousDisabled:ee,hasNextLevel:!1,levelControlAriaLabel:C,withNext:_,withPrevious:T,...H}),p.jsx(lm,{decade:r,locale:o,minDate:i,maxDate:s,yearsListFormat:a,getYearControlProps:l,__getControlRef:u,__onControlKeyDown:c,__onControlClick:d,__onControlMouseEnter:f,__preventFocus:g,__stopPropagation:z,withCellSpacing:h,...H})]})});cm.classes={...lm.classes,...As.classes};cm.displayName="@mantine/dates/DecadeLevel";const YW={yearLabelFormat:"YYYY"},dm=fe((e,t)=>{const n=re("YearLevel",YW,e),{year:r,locale:o,minDate:i,maxDate:s,monthsListFormat:a,getMonthControlProps:l,__getControlRef:u,__onControlKeyDown:c,__onControlClick:d,__onControlMouseEnter:f,withCellSpacing:h,__preventFocus:g,nextIcon:v,previousIcon:w,nextLabel:b,previousLabel:y,onNext:x,onPrevious:R,onLevelClick:k,nextDisabled:I,previousDisabled:C,hasNextLevel:_,levelControlAriaLabel:T,withNext:P,withPrevious:M,yearLabelFormat:O,__staticSelector:A,__stopPropagation:V,size:z,classNames:N,styles:F,unstyled:j,...L}=n,B=Kr(),H={__staticSelector:A||"YearLevel",classNames:N,styles:F,unstyled:j,size:z},G=typeof I=="boolean"?I:s?!je(r).endOf("year").isBefore(s):!1,ee=typeof C=="boolean"?C:i?!je(r).startOf("year").isAfter(i):!1;return p.jsxs(te,{"data-year-level":!0,size:z,ref:t,...L,children:[p.jsx(As,{label:typeof O=="function"?O(r):je(r).locale(o||B.locale).format(O),__preventFocus:g,__stopPropagation:V,nextIcon:v,previousIcon:w,nextLabel:b,previousLabel:y,onNext:x,onPrevious:R,onLevelClick:k,nextDisabled:G,previousDisabled:ee,hasNextLevel:_,levelControlAriaLabel:T,withNext:P,withPrevious:M,...H}),p.jsx(um,{year:r,locale:o,minDate:i,maxDate:s,monthsListFormat:a,getMonthControlProps:l,__getControlRef:u,__onControlKeyDown:c,__onControlClick:d,__onControlMouseEnter:f,__preventFocus:g,__stopPropagation:V,withCellSpacing:h,...H})]})});dm.classes={...As.classes,...um.classes};dm.displayName="@mantine/dates/YearLevel";const XW={monthLabelFormat:"MMMM YYYY"},fm=fe((e,t)=>{const n=re("MonthLevel",XW,e),{month:r,locale:o,firstDayOfWeek:i,weekdayFormat:s,weekendDays:a,getDayProps:l,excludeDate:u,minDate:c,maxDate:d,renderDay:f,hideOutsideDates:h,hideWeekdays:g,getDayAriaLabel:v,__getDayRef:w,__onDayKeyDown:b,__onDayCl
1955ick:y,__onDayMouseEnter:x,withCellSpacing:R,highlightToday:k,withWeekNumbers:I,__preventFocus:C,__stopPropagation:_,nextIcon:T,previousIcon:P,nextLabel:M,previousLabel:O,onNext:A,onPrevious:V,onLevelClick:z,nextDisabled:N,previousDisabled:F,hasNextLevel:j,levelControlAriaLabel:L,withNext:B,withPrevious:H,monthLabelFormat:G,classNames:ee,styles:oe,unstyled:X,__staticSelector:J,size:q,static:ne,...Y}=n,W=Kr(),se={__staticSelector:J||"MonthLevel",classNames:ee,styles:oe,unstyled:X,size:q},ue=typeof N=="boolean"?N:d?!je(r).endOf("month").isBefore(d):!1,le=typeof F=="boolean"?F:c?!je(r).startOf("month").isAfter(c):!1;return p.jsxs(te,{"data-month-level":!0,size:q,ref:t,...Y,children:[p.jsx(As,{label:typeof G=="function"?G(r):je(r).locale(o||W.locale).format(G),__preventFocus:C,__stopPropagation:_,nextIcon:T,previousIcon:P,nextLabel:M,previousLabel:O,onNext:A,onPrevious:V,onLevelClick:z,nextDisabled:ue,previousDisabled:le,hasNextLevel:j,levelControlAriaLabel:L,withNext:B,withPrevious:H,...se}),p.jsx(sm,{month:r,locale:o,firstDayOfWeek:i,weekdayFormat:s,weekendDays:a,getDayProps:l,excludeDate:u,minDate:c,maxDate:d,renderDay:f,hideOutsideDates:h,hideWeekdays:g,getDayAriaLabel:v,__getDayRef:w,__onDayKeyDown:b,__onDayCl
1955ick:y,__onDayMouseEnter:x,__preventFocus:C,__stopPropagation:_,static:ne,withCellSpacing:R,highlightToday:k,withWeekNumbers:I,...se})]})});fm.classes={...sm.classes,...As.classes};fm.displayName="@mantine/dates/MonthLevel";var wM={levelsGroup:"m_30b26e33"};const JW={},js=fe((e,t)=>{const n=re("LevelsGroup",JW,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,__staticSelector:u,...c}=n,d=Te({name:u||"LevelsGroup",classes:wM,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,rootSelector:"levelsGroup"});return p.jsx(te,{ref:t,...d("levelsGroup"),...c})});js.classes=wM;js.displayName="@mantine/dates/LevelsGroup";const QW={numberOfColumns:1},pm=fe((e,t)=>{const n=re("DecadeLevelGroup",QW,e),{decade:r,locale:o,minDate:i,maxDate:s,yearsListFormat:a,getYearControlProps:l,__onControlClick:u,__onControlMouseEnter:c,withCellSpacing:d,__preventFocus:f,nextIcon:h,previousIcon:g,nextLabel:v,previousLabel:w,onNext:b,onPrevious:y,nextDisabled:x,previousDisabled:R,classNames:k,styles:I,unstyled:C,__staticSelector:_,__stopPropagation:T,numberOfColumns:P,levelControlAriaLabel:M,decadeLabelFormat:O,size:A,vars:V,...z}=n,N=S.useRef([]),F=Array(P).fill(0).map((j,L)=>{const B=je(r).add(L*10,"years").toDate();return p.jsx(cm,{size:A,yearsListFormat:a,decade:B,withNext:L===P-1,withPrevious:L===0,decadeLabelFormat:O,__onControlClick:u,__onControlMouseEnter:c,__onControlKeyDown:(H,G)=>Gw({levelIndex:L,rowIndex:G.rowIndex,cellIndex:G.cellIndex,event:H,controlsRef:N}),__getControlRef:(H,G,ee)=>{Array.isArray(N.current[L])||(N.current[L]=[]),Array.isArray(N.current[L][H])||(N.current[L][H]=[]),N.current[L][H][G]=ee},levelControlAriaLabel:typeof M=="function"?M(B):M,locale:o,minDate:i,maxDate:s,__preventFocus:f,__stopPropagation:T,nextIcon:h,previousIcon:g,nextLabel:v,previousLabel:w,onNext:b,onPrevious:y,nextDisabled:x,previousDisabled:R,getYearControlProps:l,__staticSelector:_||"DecadeLevelGroup",classNames:k,styles:I,unstyled:C,withCellSpacing:d},L)});return p.jsx(js,{classNames:k,styles:I,__staticSelector:_||"DecadeLevelGroup",ref:t,size:A,unstyled:C,...z,children:F})});pm.classes={...js.classes,...cm.classes};pm.displayName="@mantine/dates/DecadeLevelGroup";const ZW={numberOfColumns:1},hm=fe((e,t)=>{const n=re("YearLevelGroup",ZW,e),{year:r,locale:o,minDate:i,maxDate:s,monthsListFormat:a,getMonthControlProps:l,__onControlClick:u,__onControlMouseEnter:c,withCellSpacing:d,__preventFocus:f,nextIcon:h,previousIcon:g,nextLabel:v,previousLabel:w,onNext:b,onPrevious:y,onLevelClick:x,nextDisabled:R,previousDisabled:k,hasNextLevel:I,classNames:C,styles:_,unstyled:T,__staticSelector:P,__stopPropagation:M,numberOfColumns:O,levelControlAriaLabel:A,yearLabelFormat:V,size:z,vars:N,...F}=n,j=S.useRef([]),L=Array(O).fill(0).map((B,H)=>{const G=je(r).add(H,"years").toDate();return p.jsx(dm,{size:z,monthsListFormat:a,year:G,withNext:H===O-1,withPrevious:H===0,yearLabelFormat:V,__stopPropagation:M,__onControlClick:u,__onControlMouseEnter:c,__onControlKeyDown:(ee,oe)=>Gw({levelIndex:H,rowIndex:oe.rowIndex,cellIndex:oe.cellIndex,event:ee,controlsRef:j}),__getControlRef:(ee,oe,X)=>{Array.isArray(j.current[H])||(j.current[H]=[]),Array.isArray(j.current[H][ee])||(j.current[H][ee]=[]),j.current[H][ee][oe]=X},levelControlAriaLabel:typeof A=="function"?A(G):A,locale:o,minDate:i,maxDate:s,__preventFocus:f,nextIcon:h,previousIcon:g,nextLabel:v,previousLabel:w,onNext:b,onPrevious:y,onLevelClick:x,nextDisabled:R,previousDisabled:k,hasNextLevel:I,getMonthControlProps:l,classNames:C,styles:_,unstyled:T,__staticSelector:P||"YearLevelGroup",withCellSpacing:d},H)});return p.jsx(js,{classNames:C,styles:_,__staticSelector:P||"YearLevelGroup",ref:t,size:z,unstyled:T,...F,children:L})});hm.classes={...dm.classes,...js.classes};hm.displayName="@mantine/dates/YearLevelGroup";const eK={numberOfColumns:1},mm=fe((e,t)=>{const n=re("MonthLevelGroup",eK,e),{month:r,locale:o,firstDayOfWeek:i,weekdayFormat:s,weekendDays:a,getDayProps:l,excludeDate:u,minDate:c,maxDate:d,renderDay:f,hideOutsideDates:h,hideWeekdays:g,getDayAriaLabel:v,__onDayClick:w,__onDayMouseEnter:b,withCellSpacing:y,highlightToday:x,withWeekNumbers:R,__preventFocus:k,nextIcon:I,previousIcon:C,nextLabel:_,previousLabel:T,onNext:P,onPrevious:M,onLevelClick:O,nextDisabled:A,previousDisabled:V,hasNextLevel:z,classNames:N,styles:F,unstyled:j,numberOfColumns:L,levelControlAriaLabel:B,monthLabelFormat:H,__staticSelector:G,__stopPropagation:ee,size:oe,static:X,vars:J,...q}=n,ne=S.useRef([]),Y=Array(L).fill(0).map((W,se)=>{const ue=je(r).add(se,"months").toDate();return p.jsx(fm,{month:ue,withNext:se===L-1,withPrevious:se===0,monthLabelFormat:H,__stopPropagation:ee,__onDayCl
1955ick:w,__onDayMouseEnter:b,__onDayKeyDown:(le,Re)=>Gw({levelIndex:se,rowIndex:Re.rowIndex,cellIndex:Re.cellIndex,event:le,controlsRef:ne}),__getDayRef:(le,Re,ye)=>{Array.isArray(ne.current[se])||(ne.current[se]=[]),Array.isArray(ne.current[se][le])||(ne.current[se][le]=[]),ne.current[se][le][Re]=ye},levelControlAriaLabel:typeof B=="function"?B(ue):B,locale:o,firstDayOfWeek:i,weekdayFormat:s,weekendDays:a,getDayProps:l,excludeDate:u,minDate:c,maxDate:d,renderDay:f,hideOutsideDates:h,hideWeekdays:g,getDayAriaLabel:v,__preventFocus:k,nextIcon:I,previousIcon:C,nextLabel:_,previousLabel:T,onNext:P,onPrevious:M,onLevelClick:O,nextDisabled:A,previousDisabled:V,hasNextLevel:z,classNames:N,styles:F,unstyled:j,__staticSelector:G||"MonthLevelGroup",size:oe,static:X,withCellSpacing:y,highlightToday:x,withWeekNumbers:R},se)});return p.jsx(js,{classNames:N,styles:F,__staticSelector:G||"MonthLevelGroup",ref:t,size:oe,...q,children:Y})});mm.classes={...js.classes,...fm.classes};mm.displayName="@mantine/dates/MonthLevelGroup";const U_=e=>e==="range"?[null,null]:e==="multiple"?[]:null;function Oy({type:e,value:t,defaultValue:n,onChange:r,applyTimezone:o=!0}){const i=S.useRef(e),s=Kr(),[a,l,u]=kn({value:ra("add",t,s.getTimezone(),!o),defaultValue:ra("add",n,s.getTimezone(),!o),finalValue:U_(e),onChange:d=>{r==null||r(ra("remove",d,s.getTimezone(),!o))}});let c=a;return i.current!==e&&(i.current=e,t===void 0&&(c=n!==void 0?n:U_(e),l(c))),[c,l,u]}function Vg(e,t){return e?e==="month"?0:e==="year"?1:2:t||0}function tK(e){return e===0?"month":e===1?"year":"decade"}function Nu(e,t,n){return tK(up(Vg(e,0),Vg(t,0),Vg(n,2)))}const nK={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0},gm=fe((e,t)=>{const n=re("Calendar",nK,e),{vars:r,maxLevel:o,minLevel:i,defaultLevel:s,level:a,onLevelChange:l,date:u,defaultDate:c,onDateChange:d,numberOfColumns:f,columnsToScroll:h,ariaLabels:g,nextLabel:v,previousLabel:w,onYearSelect:b,onMonthSelect:y,onYearMouseEnter:x,onMonthMouseEnter:R,__updateDateOnYearSelect:k,__updateDateOnMonthSelect:I,firstDayOfWeek:C,weekdayFormat:_,weekendDays:T,getDayProps:P,excludeDate:M,renderDay:O,hideOutsideDates:A,hideWeekdays:V,getDayAriaLabel:z,monthLabelFormat:N,nextIcon:F,previousIcon:j,__onDayClick:L,__onDayMouseEnter:B,withCellSpacing:H,highlightToday:G,withWeekNumbers:ee,monthsListFormat:oe,getMonthControlProps:X,yearLabelFormat:J,yearsListFormat:q,getYearControlProps:ne,decadeLabelFormat:Y,classNames:W,styles:se,unstyled:ue,minDate:le,maxDate:Re,locale:ye,__staticSelector:ge,size:Le,__preventFocus:de,__stopPropagation:De,onNextDecade:Oe,onPreviousDecade:Be,onNextYear:wt,onPreviousYear:Ge,onNextMonth:he,onPreviousMonth:xe,static:me,__timezoneApplied:ze,...Ee}=n,{resolvedClassNames:Ve,resolvedStyles:He}=xi({classNames:W,styles:se,props:n}),[Ue,xt]=kn({value:a?Nu(a,i,o):void 0,defaultValue:s?Nu(s,i,o):void 0,finalValue:Nu(void 0,i,o),onChange:l}),[Et,zt]=Oy({type:"default",value:u,defaultValue:c,onChange:d,applyTimezone:!ze}),rt={__staticSelector:ge||"Calendar",styles:He,classNames:Ve,unstyled:ue,size:Le},Wt=Kr(),an=h||f||1,dr=new Date,Xn=le&&le>dr?le:dr,Zt=Et||ra("add",Xn,Wt.getTimezone()),bn=()=>{const gt=je(Zt).add(an,"month").toDate();he==null||he(gt),zt(gt)},ln=()=>{const gt=je(Zt).subtract(an,"month").toDate();xe==null||xe(gt),zt(gt)},Vt=()=>{const gt=je(Zt).add(an,"year").toDate();wt==null||wt(gt),zt(gt)},zn=()=>{const gt=je(Zt).subtract(an,"year").toDate();Ge==null||Ge(gt),zt(gt)},$o=()=>{const gt=je(Zt).add(10*an,"year").toDate();Oe==null||Oe(gt),zt(gt)},Tr=()=>{const gt=je(Zt).subtract(10*an,"year").toDate();Be==null||Be(gt),zt(gt)};return p.jsxs(te,{ref:t,size:Le,"data-calendar":!0,...Ee,children:[Ue==="month"&&p.jsx(mm,{month:Zt,minDate:le,maxDate:Re,firstDayOfWeek:C,weekdayFormat:_,weekendDays:T,getDayProps:P,excludeDate:M,renderDay:O,hideOutsideDates:A,hideWeekdays:V,getDayAriaLabel:z,onNext:bn,onPrevious:ln,hasNextLevel:o!=="month",onLevelClick:()=>xt("year"),numberOfColumns:f,locale:ye,levelControlAriaLabel:g==null?void 0:g.monthLevelControl,nextLabel:(g==null?void 0:g.nextMonth)??v,nextIcon:F,previousLabel:(g==null?void 0:g.previousMonth)??w,previousIcon:j,monthLabelFormat:N,__onDayCl
1955ick:L,__onDayMouseEnter:B,__preventFocus:de,__stopPropagation:De,static:me,withCellSpacing:H,highlightToday:G,withWeekNumbers:ee,...rt}),Ue==="year"&&p.jsx(hm,{year:Zt,numberOfColumns:f,minDate:le,maxDate:Re,monthsListFormat:oe,getMonthControlProps:X,locale:ye,onNext:Vt,onPrevious:zn,hasNextLevel:o!=="month"&&o!=="year",onLevelClick:()=>xt("decade"),levelControlAriaLabel:g==null?void 0:g.yearLevelControl,nextLabel:(g==null?void 0:g.nextYear)??v,nextIcon:F,previousLabel:(g==null?void 0:g.previousYear)??w,previousIcon:j,yearLabelFormat:J,__onControlMouseEnter:R,__onControlClick:(gt,be)=>{I&&zt(be),xt(Nu("month",i,o)),y==null||y(be)},__preventFocus:de,__stopPropagation:De,withCellSpacing:H,...rt}),Ue==="decade"&&p.jsx(pm,{decade:Zt,minDate:le,maxDate:Re,yearsListFormat:q,getYearControlProps:ne,locale:ye,onNext:$o,onPrevious:Tr,numberOfColumns:f,nextLabel:(g==null?void 0:g.nextDecade)??v,nextIcon:F,previousLabel:(g==null?void 0:g.previousDecade)??w,previousIcon:j,decadeLabelFormat:Y,__onControlMouseEnter:x,__onControlClick:(gt,be)=>{k&&zt(be),xt(Nu("year",i,o)),b==null||b(be)},__preventFocus:de,__stopPropagation:De,withCellSpacing:H,...rt})]})});gm.classes={...pm.classes,...hm.classes,...mm.classes};gm.displayName="@mantine/dates/Calendar";function rK(e){const{maxLevel:t,minLevel:n,defaultLevel:r,level:o,onLevelChange:i,nextIcon:s,previousIcon:a,date:l,defaultDate:u,onDateChange:c,numberOfColumns:d,columnsToScroll:f,ariaLabels:h,nextLabel:g,previousLabel:v,onYearSelect:w,onMonthSelect:b,onYearMouseEnter:y,onMonthMouseEnter:x,onNextMonth:R,onPreviousMonth:k,onNextYear:I,onPreviousYear:C,onNextDecade:_,onPreviousDecade:T,withCellSpacing:P,highlightToday:M,__updateDateOnYearSelect:O,__updateDateOnMonthSelect:A,withWeekNumbers:V,firstDayOfWeek:z,weekdayFormat:N,weekendDays:F,getDayProps:j,excludeDate:L,renderDay:B,hideOutsideDates:H,hideWeekdays:G,getDayAriaLabel:ee,monthLabelFormat:oe,monthsListFormat:X,getMonthControlProps:J,yearLabelFormat:q,yearsListFormat:ne,getYearControlProps:Y,decadeLabelFormat:W,allowSingleDateInRange:se,allowDeselect:ue,minDate:le,maxDate:Re,locale:ye,...ge}=e;return{calendarProps:{maxLevel:t,minLevel:n,defaultLevel:r,level:o,onLevelChange:i,nextIcon:s,previousIcon:a,date:l,defaultDate:u,onDateChange:c,numberOfColumns:d,columnsToScroll:f,ariaLabels:h,nextLabel:g,previousLabel:v,onYearSelect:w,onMonthSelect:b,onYearMouseEnter:y,onMonthMouseEnter:x,onNextMonth:R,onPreviousMonth:k,onNextYear:I,onPreviousYear:C,onNextDecade:_,onPreviousDecade:T,withCellSpacing:P,highlightToday:M,__updateDateOnYearSelect:O,__updateDateOnMonthSelect:A,withWeekNumbers:V,firstDayOfWeek:z,weekdayFormat:N,weekendDays:F,getDayProps:j,excludeDate:L,renderDay:B,hideOutsideDates:H,hideWeekdays:G,getDayAriaLabel:ee,monthLabelFormat:oe,monthsListFormat:X,getMonthControlProps:J,yearLabelFormat:q,yearsListFormat:ne,getYearControlProps:Y,decadeLabelFormat:W,allowSingleDateInRange:se,allowDeselect:ue,minDate:le,maxDate:Re,locale:ye},others:ge}}function oK(e,t){if(e===null)return null;const n=ra("add",new Date(e),t);return Number.isNaN(n.getTime())||!e?null:n}function iK({date:e,maxDate:t,minDate:n}){return!(e==null||Number.isNaN(e.getTime())||t&&je(e).isAfter(t,"date")||n&&je(e).isBefore(n,"date"))}const sK={valueFormat:"MMMM D, YYYY",fixOnBlur:!0,preserveTime:!0},qw=fe((e,t)=>{const n=lk("DateInput",sK,e),{inputProps:r,wrapperProps:o,value:i,defaultValue:s,onChange:a,clearable:l,clearButtonProps:u,popoverProps:c,getDayProps:d,locale:f,valueFormat:h,dateParser:g,minDate:v,maxDate:w,fixOnBlur:b,onFocus:y,onBlur:x,onClick:R,onKeyDown:k,readOnly:I,name:C,form:_,rightSection:T,unstyled:P,classNames:M,styles:O,allowDeselect:A,preserveTime:V,date:z,defaultDate:N,onDateChange:F,...j}=n,L=S.useRef(null),B=S.useRef(null),[H,G]=S.useState(!1),{calendarProps:ee,others:oe}=rK(j),X=Kr(),q=g||(he=>{const xe=je(he,h,X.getLocale(f)).toDate();return Number.isNaN(xe.getTime())?oK(he,X.getTimezone()):xe}),ne=A!==void 0?A:l,Y=he=>he?je(he).locale(X.getLocale(f)).format(h):"",[W,se,ue]=Oy({type:"default",value:i,defaultValue:s,onChange:a}),[le,Re]=Oy({type:"default",value:z,defaultValue:s||N,onChange:F});S.useEffect(()=>{ue&&i!==null&&Re(i)},[ue,i]);const[ye,ge]=S.useState(Y(W));S.useEffect(()=>{ge(Y(W))},[X.getLocale(f)]);const Le=he=>{const xe=he.currentTarget.value;if(ge(xe),G(!0),xe.trim()===""&&l)se(null);else{const me=q(xe);iK({date:me,minDate:v,maxDate:w})&&(se(me),Re(me))}},de=he=>{x==null||x(he),G(!1),b&&ge(Y(W))},De=he=>{y==null||y(he),G(!0)},Oe=he=>{R==null||R(he),G(!0)},Be=he=>{he.key==="Escape"&&G(!1),k==null||k(he)},wt=he=>({...d==null?void 0:d(he),selected:je(W).isSame(he,"day"),onClick:xe=>{var Ee,Ve;(Ve=d==null?void 0:(Ee=d(he)).onClick)==null||Ve.call(Ee,xe);const me=V?mW(W,he):he,ze=l&&ne&&je(W).isSame(he,"day")?null:me;se(ze),!ue&&ge(Y(ze)),G(!1)}}),Ge=T||(l&&W&&!I?p.jsx(Si,{variant:"transparent",onMouseDown:he=>he.preventDefault(),tabIndex:-1,onClick:()=>{se(null),!ue&&ge(""),G(!1)},unstyled:P,size:r.size||"sm",...u}):null);return co(()=>{W!==void 0&&!H&&ge(Y(W))},[W]),BT(()=>G(!1),void 0,[L.current,B.current]),p.jsxs(p.Fragment,{children:[p.jsx(Lt.Wrapper,{...o,__staticSelector:"DateInput",ref:L,children:p.jsxs(Tn,{opened:H,trapFocus:!1,position:"bottom-start",disabled:I,withRoles:!1,unstyled:P,...c,children:[p.jsx(Tn.Target,{children:p.jsx(Lt,{"data-dates-input":!0,"data-read-only":I||void 0,autoComplete:"off",ref:t,value:ye,onChange:Le,onBlur:de,onFocus:De,onClick:Oe,onKeyDown:Be,readOnly:I,rightSection:Ge,...r,...oe,__staticSelector:"DateInput"})}),p.jsx(Tn.Dropdown,{onMouseDown:he=>he.preventDefault(),"data-dates-dropdown":!0,ref:B,children:p.jsx(gm,{__staticSelector:"DateInput",__timezoneApplied:!0,...ee,classNames:M,styles:O,unstyled:P,__preventFocus:!0,minDate:v,maxDate:w,locale:f,getDayProps:wt,size:r.size,date:le,onDateChange:Re})})]})}),p.jsx(iM,{name:C,form:_,value:W,type:"default"})]})});qw.classes={...Lt.classes,...gm.classes};qw.displayName="@mantine/dates/DateInput";/**
1956 * @license @tabler/icons-react v3.36.0 - MIT
1957 *
1958 * This source code is licensed under the MIT license.
1959 * See the LICENSE file in the root directory of this source tree.
1960 */var aK={outline:{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"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"
1960currentColor",stroke:"none"}};/**
1961 * @license @tabler/icons-react v3.36.0 - MIT
1962 *
1963 * This source code is licensed under the MIT license.
1964 * See the LICENSE file in the root directory of this source tree.
1965 */const Qe=(e,t,n,r)=>{const o=S.forwardRef(({color:i="currentColor",size:s=24,stroke:a=2,title:l,className:u,children:c,...d},f)=>S.createElement("svg",{ref:f,...aK[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${t}`,u].join(" "),...e==="filled"?{fill:i}:{strokeWidth:a,stroke:i},...d},[l&&S.createElement("title",{key:"svg-title"},l),...r.map(([h,g])=>S.createElement(h,g)),...Array.isArray(c)?c:[c]]));return o.displayName=`${n}`,o};/**
1966 * @license @tabler/icons-react v3.36.0 - MIT
1967 *
1968 * This source code is licensed under the MIT license.
1969 * See the LICENSE file in the root directory of this source tree.
1970 */const lK=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 8v4",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],uK=Qe("outline","alert-circle","AlertCircle",lK);/**
1971 * @license @tabler/icons-react v3.36.0 - MIT
1972 *
1973 * This source code is licensed under the MIT license.
1974 * See the LICENSE file in the root directory of this source tree.
1975 */const cK=[["path",{d:"M6 4l-3 3l3 3",key:"svg-0"}],["path",{d:"M18 4l3 3l-3 3",key:"svg-1"}],["path",{d:"M4 14m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-2"}],["path",{d:"M10 7h-7",key:"svg-3"}],["path",{d:"M21 7h-7",key:"svg-4"}]],dK=Qe("outline","arrow-autofit-content","ArrowAutofitContent",cK);/**
1976 * @license @tabler/icons-react v3.36.0 - MIT
1977 *
1978 * This source code is licensed under the MIT license.
1979 * See the LICENSE file in the root directory of this source tree.
1980 */const fK=[["path",{d:"M3 9l4 -4l4 4m-4 -4v14",key:"svg-0"}],["path",{d:"M21 15l-4 4l-4 -4m4 4v-14",key:"svg-1"}]],pK=Qe("outline","arrows-sort","ArrowsSort",fK);/**
1981 * @license @tabler/icons-react v3.36.0 - MIT
1982 *
1983 * This source code is licensed under the MIT license.
1984 * See the LICENSE file in the root directory of this source tree.
1985 */const hK=[["path",{d:"M4 4h16",key:"svg-0"}],["path",{d:"M4 20h16",key:"svg-1"}]],mK=Qe("outline","baseline-density-large","BaselineDensityLarge",hK);/**
1986 * @license @tabler/icons-react v3.36.0 - MIT
1987 *
1988 * This source code is licensed under the MIT license.
1989 * See the LICENSE file in the root directory of this source tree.
1990 */const gK=[["path",{d:"M4 20h16",key:"svg-0"}],["path",{d:"M4 12h16",key:"svg-1"}],["path",{d:"M4 4h16",key:"svg-2"}]],vK=Qe("outline","baseline-density-medium","BaselineDensityMedium",gK);/**
1991 * @license @tabler/icons-react v3.36.0 - MIT
1992 *
1993 * This source code is licensed under the MIT license.
1994 * See the LICENSE file in the root directory of this source tree.
1995 */const yK=[["path",{d:"M4 3h16",key:"svg-0"}],["path",{d:"M4 9h16",key:"svg-1"}],["path",{d:"M4 15h16",key:"svg-2"}],["path",{d:"M4 21h16",key:"svg-3"}]],bK=Qe("outline","baseline-density-small","BaselineDensitySmall",yK);/**
1996 * @license @tabler/icons-react v3.36.0 - MIT
1997 *
1998 * This source code is licensed under the MIT license.
1999 * See the LICENSE file in the root directory of this source tree.
2000 */const wK=[["path",{d:"M7 3m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M17 17v2a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-10a2 2 0 0 1 2 -2h2",key:"svg-1"}]],xK=Qe("outline","box-multiple","BoxMultiple",wK);/**
2001 * @license @tabler/icons-react v3.36.0 - MIT
2002 *
2003 * This source code is licensed under the MIT license.
2004 * See the LICENSE file in the root directory of this source tree.
2005 */const SK=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8z",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3z",key:"svg-1"}]],Vl=Qe("outline","brand-youtube","BrandYoutube",SK);/**
2006 * @license @tabler/icons-react v3.36.0 - MIT
2007 *
2008 * This source code is licensed under the MIT license.
2009 * See the LICENSE file in the root directory of this source tree.
2010 */const CK=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],_K=Qe("outline","chevron-down","ChevronDown",CK);/**
2011 * @license @tabler/icons-react v3.36.0 - MIT
2012 *
2013 * This source code is licensed under the MIT license.
2014 * See the LICENSE file in the root directory of this source tree.
2015 */const RK=[["path",{d:"M7 6v12",key:"svg-0"}],["path",{d:"M18 6l-6 6l6 6",key:"svg-1"}]],EK=Qe("outline","chevron-left-pipe","ChevronLeftPipe",RK);/**
2016 * @license @tabler/icons-react v3.36.0 - MIT
2017 *
2018 * This source code is licensed under the MIT license.
2019 * See the LICENSE file in the root directory of this source tree.
2020 */const TK=[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]],PK=Qe("outline","chevron-left","ChevronLeft",TK);/**
2021 * @license @tabler/icons-react v3.36.0 - MIT
2022 *
2023 * This source code is licensed under the MIT license.
2024 * See the LICENSE file in the root directory of this source tree.
2025 */const kK=[["path",{d:"M6 6l6 6l-6 6",key:"svg-0"}],["path",{d:"M17 5v13",key:"svg-1"}]],IK=Qe("outline","chevron-right-pipe","ChevronRightPipe",kK);/**
2026 * @license @tabler/icons-react v3.36.0 - MIT
2027 *
2028 * This source code is licensed under the MIT license.
2029 * See the LICENSE file in the root directory of this source tree.
2030 */const MK=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],DK=Qe("outline","chevron-right","ChevronRight",MK);/**
2031 * @license @tabler/icons-react v3.36.0 - MIT
2032 *
2033 * This source code is licensed under the MIT license.
2034 * See the LICENSE file in the root directory of this source tree.
2035 */const AK=[["path",{d:"M7 7l5 5l5 -5",key:"svg-0"}],["path",{d:"M7 13l5 5l5 -5",key:"svg-1"}]],jK=Qe("outline","chevrons-down","ChevronsDown",AK);/**
2036 * @license @tabler/icons-react v3.36.0 - MIT
2037 *
2038 * This source code is licensed under the MIT license.
2039 * See the LICENSE file in the root directory of this source tree.
2040 */const OK=[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 12l2 2l4 -4",key:"svg-1"}]],NK=Qe("outline","circle-check","CircleCheck",OK);/**
2041 * @license @tabler/icons-react v3.36.0 - MIT
2042 *
2043 * This source code is licensed under the MIT license.
2044 * See the LICENSE file in the root directory of this source tree.
2045 */const LK=[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}
2045],["path",{d:"M10 10l4 4m0 -4l-4 4",key:"svg-1"}]],FK=Qe("outline","circle-x","CircleX",LK);/**
2046 * @license @tabler/icons-react v3.36.0 - MIT
2047 *
2048 * This source code is licensed under the MIT license.
2049 * See the LICENSE file in the root directory of this source tree.
2050 */const $K=[["path",{d:"M8 6h12",key:"svg-0"}],["path",{d:"M6 12h12",key:"svg-1"}],["path",{d:"M4 18h12",key:"svg-2"}]],zK=Qe("outline","clear-all","ClearAll",$K);/**
2051 * @license @tabler/icons-react v3.36.0 - MIT
2052 *
2053 * This source code is licensed under the MIT license.
2054 * See the LICENSE file in the root directory of this source tree.
2055 */const VK=[["path",{d:"M4 6l5.5 0",key:"svg-0"}],["path",{d:"M4 10l5.5 0",key:"svg-1"}],["path",{d:"M4 14l5.5 0",key:"svg-2"}],["path",{d:"M4 18l5.5 0",key:"svg-3"}],["path",{d:"M14.5 6l5.5 0",key:"svg-4"}],["path",{d:"M14.5 10l5.5 0",key:"svg-5"}],["path",{d:"M14.5 14l5.5 0",key:"svg-6"}],["path",{d:"M14.5 18l5.5 0",key:"svg-7"}]],BK=Qe("outline","columns","Columns",VK);/**
2056 * @license @tabler/icons-react v3.36.0 - MIT
2057 *
2058 * This source code is licensed under the MIT license.
2059 * See the LICENSE file in the root directory of this source tree.
2060 */const HK=[["path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2",key:"svg-0"}],["path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M14 4l0 4l-6 0l0 -4",key:"svg-2"}]],UK=Qe("outline","device-floppy","DeviceFloppy",HK);/**
2061 * @license @tabler/icons-react v3.36.0 - MIT
2062 *
2063 * This source code is licensed under the MIT license.
2064 * See the LICENSE file in the root directory of this source tree.
2065 */const GK=[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],WK=Qe("outline","dots-vertical","DotsVertical",GK);/**
2066 * @license @tabler/icons-react v3.36.0 - MIT
2067 *
2068 * This source code is licensed under the MIT license.
2069 * See the LICENSE file in the root directory of this source tree.
2070 */const KK=[["path",{d:"M5 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M19 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],qK=Qe("outline","dots","Dots",KK);/**
2071 * @license @tabler/icons-react v3.36.0 - MIT
2072 *
2073 * This source code is licensed under the MIT license.
2074 * See the LICENSE file in the root directory of this source tree.
2075 */const YK=[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]],XK=Qe("outline","edit","Edit",YK);/**
2076 * @license @tabler/icons-react v3.36.0 - MIT
2077 *
2078 * This source code is licensed under the MIT license.
2079 * See the LICENSE file in the root directory of this source tree.
2080 */const JK=[["path",{d:"M10.585 10.587a2 2 0 0 0 2.829 2.828",key:"svg-0"}],["path",{d:"M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87",key:"svg-1"}],["path",{d:"M3 3l18 18",key:"svg-2"}]],QK=Qe("outline","eye-off","EyeOff",JK);/**
2081 * @license @tabler/icons-react v3.36.0 - MIT
2082 *
2083 * This source code is licensed under the MIT license.
2084 * See the LICENSE file in the root directory of this source tree.
2085 */const ZK=[["path",{d:"M12 20l-3 1v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v1.5",key:"svg-0"}],["path",{d:"M19.001 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M19.001 15.5v1.5",key:"svg-2"}],["path",{d:"M19.001 21v1.5",key:"svg-3"}],["path",{d:"M22.032 17.25l-1.299 .75",key:"svg-4"}],["path",{d:"M17.27 20l-1.3 .75",key:"svg-5"}],["path",{d:"M15.97 17.25l1.3 .75",key:"svg-6"}],["path",{d:"M20.733 20l1.3 .75",key:"svg-7"}]],eq=Qe("outline","filter-cog","FilterCog",ZK);/**
2086 * @license @tabler/icons-react v3.36.0 - MIT
2087 *
2088 * This source code is licensed under the MIT license.
2089 * See the LICENSE file in the root directory of this source tree.
2090 */const tq=[["path",{d:"M8 4h12v2.172a2 2 0 0 1 -.586 1.414l-3.914 3.914m-.5 3.5v4l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227",key:"svg-0"}],["path",{d:"M3 3l18 18",key:"svg-1"}]],nq=Qe("outline","filter-off","FilterOff",tq);/**
2091 * @license @tabler/icons-react v3.36.0 - MIT
2092 *
2093 * This source code is licensed under the MIT license.
2094 * See the LICENSE file in the root directory of this source tree.
2095 */const rq=[["path",{d:"M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z",key:"svg-0"}]],oq=Qe("outline","filter","Filter",rq);/**
2096 * @license @tabler/icons-react v3.36.0 - MIT
2097 *
2098 * This source code is licensed under the MIT license.
2099 * See the LICENSE file in the root directory of this source tree.
2100 */const iq=[["path",{d:"M5 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M5 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M12 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M12 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M19 9m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M19 15m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}]],sq=Qe("outline","grip-horizontal","GripHorizontal",iq);/**
2101 * @license @tabler/icons-react v3.36.0 - MIT
2102 *
2103 * This source code is licensed under the MIT license.
2104 * See the LICENSE file in the root directory of this source tree.
2105 */const aq=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 16v.01",key:"svg-1"}],["path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483",key:"svg-2"}]],lq=Qe("outline","help-circle","HelpCircle",aq);/**
2106 * @license @tabler/icons-react v3.36.0 - MIT
2107 *
2108 * This source code is licensed under the MIT license.
2109 * See the LICENSE file in the root directory of this source tree.
2110 */const uq=[["path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2",key:"svg-0"}],["path",{d:"M4 16v2a2 2 0 0 0 2 2h2",key:"svg-1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"svg-2"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2",key:"svg-3"}]],cq=Qe("outline","maximize","Maximize",uq);/**
2111 * @license @tabler/icons-react v3.36.0 - MIT
2112 *
2113 * This source code is licensed under the MIT license.
2114 * See the LICENSE file in the root directory of this source tree.
2115 */const dq=[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 12l16 0",key:"svg-1"}],["path",{d:"M4 18l16 0",key:"svg-2"}]],xM=Qe("outline","menu-2","Menu2",dq);/**
2116 * @license @tabler/icons-react v3.36.0 - MIT
2117 *
2118 * This source code is licensed under the MIT license.
2119 * See the LICENSE file in the root directory of this source tree.
2120 */const fq=[["path",{d:"M15 19v-2a2 2 0 0 1 2 -2h2",key:"svg-0"}],["path",{d:"M15 5v2a2 2 0 0 0 2 2h2",key:"svg-1"}],["path",{d:"M5 15h2a2 2 0 0 1 2 2v2",key:"svg-2"}],["path",{d:"M5 9h2a2 2 0 0 0 2 -2v-2",key:"svg-3"}]],pq=Qe("outline","minimize","Minimize",fq);
2120/**
2121 * @license @tabler/icons-react v3.36.0 - MIT
2122 *
2123 * This source code is licensed under the MIT license.
2124 * See the LICENSE file in the root directory of this source tree.
2125 */const hq=[["path",{d:"M3 3l18 18",key:"svg-0"}],["path",{d:"M15 4.5l-3.249 3.249m-2.57 1.433l-2.181 .818l-1.5 1.5l7 7l1.5 -1.5l.82 -2.186m1.43 -2.563l3.25 -3.251",key:"svg-1"}],["path",{d:"M9 15l-4.5 4.5",key:"svg-2"}],["path",{d:"M14.5 4l5.5 5.5",key:"svg-3"}]],mq=Qe("outline","pinned-off","PinnedOff",hq);/**
2126 * @license @tabler/icons-react v3.36.0 - MIT
2127 *
2128 * This source code is licensed under the MIT license.
2129 * See the LICENSE file in the root directory of this source tree.
2130 */const gq=[["path",{d:"M9 4v6l-2 4v2h10v-2l-2 -4v-6",key:"svg-0"}],["path",{d:"M12 16l0 5",key:"svg-1"}],["path",{d:"M8 4l8 0",key:"svg-2"}]],vq=Qe("outline","pinned","Pinned",gq);/**
2131 * @license @tabler/icons-react v3.36.0 - MIT
2132 *
2133 * This source code is licensed under the MIT license.
2134 * See the LICENSE file in the root directory of this source tree.
2135 */const yq=[["path",{d:"M5.039 5.062a7 7 0 0 0 9.91 9.89m1.584 -2.434a7 7 0 0 0 -9.038 -9.057",key:"svg-0"}],["path",{d:"M3 3l18 18",key:"svg-1"}]],bq=Qe("outline","search-off","SearchOff",yq);/**
2136 * @license @tabler/icons-react v3.36.0 - MIT
2137 *
2138 * This source code is licensed under the MIT license.
2139 * See the LICENSE file in the root directory of this source tree.
2140 */const wq=[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],xq=Qe("outline","search","Search",wq);/**
2141 * @license @tabler/icons-react v3.36.0 - MIT
2142 *
2143 * This source code is licensed under the MIT license.
2144 * See the LICENSE file in the root directory of this source tree.
2145 */const Sq=[["path",{d:"M4 6l7 0",key:"svg-0"}],["path",{d:"M4 12l7 0",key:"svg-1"}],["path",{d:"M4 18l9 0",key:"svg-2"}],["path",{d:"M15 9l3 -3l3 3",key:"svg-3"}],["path",{d:"M18 6l0 12",key:"svg-4"}]],Cq=Qe("outline","sort-ascending","SortAscending",Sq);/**
2146 * @license @tabler/icons-react v3.36.0 - MIT
2147 *
2148 * This source code is licensed under the MIT license.
2149 * See the LICENSE file in the root directory of this source tree.
2150 */const _q=[["path",{d:"M4 6l9 0",key:"svg-0"}],["path",{d:"M4 12l7 0",key:"svg-1"}],["path",{d:"M4 18l7 0",key:"svg-2"}],["path",{d:"M15 15l3 3l3 -3",key:"svg-3"}],["path",{d:"M18 6l0 12",key:"svg-4"}]],Rq=Qe("outline","sort-descending","SortDescending",_q);/**
2151 * @license @tabler/icons-react v3.36.0 - MIT
2152 *
2153 * This source code is licensed under the MIT license.
2154 * See the LICENSE file in the root directory of this source tree.
2155 */const Eq=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M3.6 9h16.8",key:"svg-1"}],["path",{d:"M3.6 15h16.8",key:"svg-2"}],["path",{d:"M11.5 3a17 17 0 0 0 0 18",key:"svg-3"}],["path",{d:"M12.5 3a17 17 0 0 1 0 18",key:"svg-4"}]],Tq=Qe("outline","world","World",Eq);/**
2156 * @license @tabler/icons-react v3.36.0 - MIT
2157 *
2158 * This source code is licensed under the MIT license.
2159 * See the LICENSE file in the root directory of this source tree.
2160 */const Pq=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],kq=Qe("outline","x","X",Pq);/**
2161 * @license @tabler/icons-react v3.36.0 - MIT
2162 *
2163 * This source code is licensed under the MIT license.
2164 * See the LICENSE file in the root directory of this source tree.
2165 */const Iq=[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]],Mq=Qe("filled","brand-facebook-filled","BrandFacebookFilled",Iq);/**
2166 * @license @tabler/icons-react v3.36.0 - MIT
2167 *
2168 * This source code is licensed under the MIT license.
2169 * See the LICENSE file in the root directory of this source tree.
2170 */const Dq=[["path",{d:"M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],Aq=Qe("filled","brand-instagram-filled","BrandInstagramFilled",Dq);/**
2171 * @license @tabler/icons-react v3.36.0 - MIT
2172 *
2173 * This source code is licensed under the MIT license.
2174 * See the LICENSE file in the root directory of this source tree.
2175 */const jq=[["path",{d:"M7.462 3.1c2.615 -1.268 6.226 -1.446 9.063 -.503c2.568 .853 4.471 3.175 4.475 5.81c.004 3.061 -1.942 5.492 -4.896 6.243c-1.693 .43 -2.338 .75 -2.942 1.582c-.238 .328 -.45 .745 -.796 1.533l-.22 .5c-1.146 2.601 -2.156 3.762 -4.236 3.735c-2.232 -.03 -3.603 -1.742 -4.313 -4.48c-.458 -1.768 -.617 -3.808 -.594 -5.876c.044 -3.993 1.42 -7.072 4.46 -8.545z",key:"svg-0"}]],Oq=Qe("filled","brand-patreon-filled","BrandPatreonFilled",jq);/**
2176 * @license @tabler/icons-react v3.36.0 - MIT
2177 *
2178 * This source code is licensed under the MIT license.
2179 * See the LICENSE file in the root directory of this source tree.
2180 */const Nq=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],Lq=Qe("filled","brand-tiktok-filled","BrandTiktokFilled",Nq);/**
2181 * @license @tabler/icons-react v3.36.0 - MIT
2182 *
2183 * This source code is licensed under the MIT license.
2184 * See the LICENSE file in the root directory of this source tree.
2185 */const Fq=[["path",{d:"M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z",key:"svg-0"}]],$q=Qe("filled","brand-youtube-filled","BrandYoutubeFilled",Fq);function We(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 o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var Mr={root:"MRT_TableBody-module_root__kGhRy","root-grid":"MRT_TableBody-module_root-grid__WdOGg","root-no-rows":"MRT_TableBody-module_root-no-rows__iyi9K","root-virtualized":"MRT_TableBody-module_root-virtualized__TxPAi","empty-row-tr-grid":"MRT_TableBody-module_empty-row-tr-grid__LTgxw","empty-row-td-grid":"MRT_TableBody-module_empty-row-td-grid__pzlgG","empty-row-td-content":"MRT_TableBody-module_empty-row-td-content__Cc2XW",pinned:"MRT_TableBody-module_pinned__XHpcs"},Bg={root:"MRT_TableBodyRow-module_root__2c3D4","root-grid":"MRT_TableBodyRow-module_root-grid__AwXTe","root-virtualized":"MRT_TableBodyRow-module_root-virtualized__zYgxq"},xo={root:"MRT_TableBodyCell-module_root__Wf-zi","root-grid":"MRT_TableBodyCell-module_root-grid__zIuC-","root-virtualized":"MRT_TableBodyCell-module_root-virtualized__jLl8R","root-data-col":"MRT_TableBodyCell-module_root-data-col__HHcxc","root-nowrap":"MRT_TableBodyCell-module_root-nowrap__-k1Jo","root-cursor-pointer":"MRT_TableBodyCell-module_root-cursor-pointer__4kw7J","root-editable-hover":"MRT_TableBodyCell-module_root-editable-hover__2DKSa","root-cell-hover-reveal":"MRT_TableBodyCell-module_root-cell-hover-reveal__T1fAH","cell-hover-reveal":"MRT_TableBodyCell-module_cell-hover-reveal__Q-1Xj",overflowing:"MRT_TableBodyCell-module_overflowing__QcXP4"};const _e=(e,t)=>
2185e instanceof Function?e(t):e,Hg=["string","number"],zq=["text","autocomplete"],G_=({cell:e,renderedColumnIndex:t=0,renderedRowIndex:n=0,table:r})=>{var o,i;const{getState:s,options:{enableFilterMatchHighlighting:a,mantineHighlightProps:l}}=r,{column:u,row:c}=e,{columnDef:d}=u,{globalFilter:f,globalFilterFn:h}=s(),g=u.getFilterValue(),v=_e(l,{cell:e,column:u,row:c,table:r});let w=e.getIsAggregated()&&d.AggregatedCell?d.AggregatedCell({cell:e,column:u,row:c,table:r}):c.getIsGrouped()&&!e.getIsGrouped()?null:e.getIsGrouped()&&d.GroupedCell?d.GroupedCell({cell:e,column:u,row:c,table:r}):void 0;const b=w!==void 0;if(b||(w=e.renderValue()),a&&d.enableFilterMatchHighlighting!==!1&&w&&Hg.includes(typeof w)&&(g&&Hg.includes(typeof g)&&zq.includes(d.filterVariant)||f&&Hg.includes(typeof f)&&u.getCanGlobalFilter())){let y=((i=(o=u.getFilterValue())!==null&&o!==void 0?o:f)!==null&&i!==void 0?i:"").toString();(g?d._filterFn:h)==="fuzzy"&&(y=y.split(" ")),w=p.jsx(Vb,Object.assign({color:"yellow.3",highlight:y},v,{children:w==null?void 0:w.toString()}))}return d.Cell&&!b&&(w=d.Cell({cell:e,column:u,renderedCellValue:w,renderedColumnIndex:t,renderedRowIndex:n,row:c,table:r})),w},lo=e=>e.replace(/[^a-zA-Z0-9]/g,"_"),Vq=e=>{var t,n;return typeof e.primaryShade=="number"?e.primaryShade:(n=(t=e.primaryShade)===null||t===void 0?void 0:t.dark)!==null&&n!==void 0?n:7},Bq=(e,t)=>e.colors[e.primaryColor][Vq(e)];function Np(e,t){const n=`data-${e}`;switch(typeof t){case"boolean":return t?{[n]:""}:null;case"number":return{[n]:`${t}`};case"string":return{[n]:t};default:return null}}var Hq={root:"MRT_CopyButton-module_root__mkXy4"};const Uq=e=>{var{cell:t,children:n,table:r}=e,o=We(e,["cell","children","table"]);const{options:{localization:{clickToCopy:i,copiedToClipboard:s},mantineCopyButtonProps:a}}=r,{column:l,row:u}=t,{columnDef:c}=l,d={cell:t,column:l,row:u,table:r},f=Object.assign(Object.assign(Object.assign({},_e(a,d)),_e(c.mantineCopyButtonProps,d)),o);return p.jsx(jk,{value:t.getValue(),children:({copied:h,copy:g})=>{var v;return p.jsx(yt,{color:h?"green":void 0,label:(v=f==null?void 0:f.title)!==null&&v!==void 0?v:h?s:i,openDelay:1e3,withinPortal:!0,children:p.jsx(mn,Object.assign({},f,{className:Ce("mrt-copy-button",Hq.root,f==null?void 0:f.className),onClick:w=>{w.stopPropagation(),g()},role:"presentation",title:void 0,children:n}))})}})},vm=e=>{var t,{cell:n,table:r}=e,o=We(e,["cell","table"]);const{getState:i,options:{createDisplayMode:s,editDisplayMode:a,mantineEditSelectProps:l,mantineEditTextInputProps:u},refs:{editInputRefs:c},setCreatingRow:d,setEditingCell:f,setEditingRow:h}=r,{column:g,row:v}=n,{columnDef:w}=g,{creatingRow:b,editingRow:y}=i(),x=(b==null?void 0:b.id)===v.id,R=(y==null?void 0:y.id)===v.id,k=w.editVariant==="select",I=w.editVariant==="multi-select",[C,_]=S.useState(()=>n.getValue()),T={cell:n,column:g,row:v,table:r},P=Object.assign(Object.assign(Object.assign({},_e(u,T)),_e(w.mantineEditTextInputProps,T)),o),M=Object.assign(Object.assign(Object.assign({},_e(l,T)),_e(w.mantineEditSelectProps,T)),o),O=N=>{v._valuesCache[g.id]=N,x?d(v):R&&h(v)},A=N=>{var F;(F=P.onBlur)===null||F===void 0||F.call(P,N),O(C),f(null)},V=N=>{var F,j;(F=P.onKeyDown)===null||F===void 0||F.call(P,N),N.key==="Enter"&&((j=c.current[n.id])===null||j===void 0||j.blur())};if(w.Edit)return(t=w.Edit)===null||t===void 0?void 0:t.call(w,{cell:n,column:g,row:v,table:r});const z={disabled:_e(w.enableEditing,v)===!1,label:["custom","modal"].includes(x?s:a)?g.columnDef.header:void 0,name:n.id,onClick:N=>{var F;N.stopPropagation(),(F=P==null?void 0:P.onClick)===null||F===void 0||F.call(P,N)},placeholder:["custom","modal"].includes(x?s:a)?void 0:w.header,value:C,variant:a==="table"?"unstyled":"default"};return k?p.jsx(iu,Object.assign({},z,{searchable:!0,value:C},M,{onBlur:A,onChange:(N,F)=>{var j,L;(L=(j=M).onChange)===null||L===void 0||L.call(j,N,F),_(N)},onClick:N=>{var F;N.stopPropagation(),(F=M==null?void 0:M.onClick)===null||F===void 0||F.call(M,N)},ref:N=>{N&&(c.current[n.id]=N,M.ref&&(M.ref.current=N))}})):I?p.jsx(na,Object.assign({},z,{searchable:!0,value:C}
2185,M,{onBlur:A,onChange:N=>{var F,j;(j=(F=M).onChange)===null||j===void 0||j.call(F,C),_(N),document.activeElement!==c.current[n.id]&&O(N)},onClick:N=>{var F;N.stopPropagation(),(F=M==null?void 0:M.onClick)===null||F===void 0||F.call(M,N)},ref:N=>{N&&(c.current[n.id]=N,M.ref&&(M.ref.current=N))}})):p.jsx(fn,Object.assign({},z,{onKeyDown:V,value:C??""},P,{onBlur:A,onChange:N=>{var F;(F=P.onChange)===null||F===void 0||F.call(P,N),_(N.target.value)},onClick:N=>{var F;N.stopPropagation(),(F=P==null?void 0:P.onClick)===null||F===void 0||F.call(P,N)},ref:N=>{N&&(c.current[n.id]=N,P.ref&&(P.ref.current=N))}}))},SM=e=>{var t,n,r,o,i,{cell:s,numRows:a=1,renderedColumnIndex:l=0,renderedRowIndex:u=0,rowRef:c,table:d,virtualCell:f}=e,h=We(e,["cell","numRows","renderedColumnIndex","renderedRowIndex","rowRef","table","virtualCell"]);const g=Er(),{getState:v,options:{columnResizeDirection:w,columnResizeMode:b,createDisplayMode:y,editDisplayMode:x,enableClickToCopy:R,enableColumnOrdering:k,enableColumnPinning:I,enableEditing:C,enableGrouping:_,layoutMode:T,mantineSkeletonProps:P,mantineTableBodyCellProps:M},refs:{editInputRefs:O},setEditingCell:A,setHoveredColumn:V}=d,{columnSizingInfo:z,creatingRow:N,density:F,draggingColumn:j,editingCell:L,editingRow:B,hoveredColumn:H,isLoading:G,showSkeletons:ee}=v(),{column:oe,row:X}=s,{columnDef:J}=oe,{columnDefType:q}=J,ne={cell:s,column:oe,renderedColumnIndex:l,renderedRowIndex:u,row:X,table:d},Y=Object.assign(Object.assign(Object.assign({},_e(M,ne)),_e(J.mantineTableBodyCellProps,ne)),h),W=_e(P,ne),[se,ue]=S.useState(100);S.useEffect(()=>{if(!G&&!ee||se!==100)return;const He=oe.getSize();ue(q==="display"?He/2:Math.round(Math.random()*(He-He/3)+He/3))},[G,ee]);const le={minWidth:`max(calc(var(--col-${lo(oe==null?void 0:oe.id)}-size) * 1px), ${(t=J.minSize)!==null&&t!==void 0?t:30}px)`,width:`calc(var(--col-${lo(oe.id)}-size) * 1px)`};T==="grid"?le.flex=`${[0,!1].includes(J.grow)?0:`var(--col-${lo(oe.id)}-size)`}
2185 0 auto`:T==="grid-no-grow"&&(le.flex=`${+(J.grow||0)} 0 auto`);const Re=(j==null?void 0:j.id)===oe.id,ye=(H==null?void 0:H.id)===oe.id,ge=I&&J.columnDefType!=="group"&&oe.getIsPinned(),Le=!s.getIsPlaceholder()&&_e(C,X)&&_e(J.enableEditing,X)!==!1,de=Le&&!["custom","modal"].includes(x)&&(x==="table"||(B==null?void 0:B.id)===X.id||(L==null?void 0:L.id)===s.id)&&!X.getIsGrouped(),De=Le&&y==="row"&&(N==null?void 0:N.id)===X.id,Oe=_e(R,s)||_e(J.enableClickToCopy,s)&&_e(J.enableClickToCopy,s)!==!1,Be=He=>{var Ue;(Ue=Y==null?void 0:Y.onDoubleClick)===null||Ue===void 0||Ue.call(Y,He),Le&&x==="cell"&&(A(s),setTimeout(()=>{var xt;const Et=O.current[s.id];Et&&(Et.focus(),(xt=Et.select)===null||xt===void 0||xt.call(Et))},100))},wt=He=>{var Ue;(Ue=Y==null?void 0:Y.onDragEnter)===null||Ue===void 0||Ue.call(Y,He),_&&(H==null?void 0:H.id)==="drop-zone"&&V(null),k&&j&&V(J.enableColumnOrdering!==!1?oe:null)},Ge={cell:s,renderedColumnIndex:l,renderedRowIndex:u,table:d},he=S.useRef(null),[xe,me]=S.useState(!1),ze=()=>{if(!J.enableCellHoverReveal)return;const He=he.current;if(He){const Ue=He.scrollWidth>He.clientWidth;me(Ue)}},Ee=()=>{J.enableCellHoverReveal&&me(!1)},Ve=()=>{var He,Ue,xt;return s.getIsPlaceholder()?(Ue=(He=J.PlaceholderCell)===null||He===void 0?void 0:He.call(J,{cell:s,column:oe,row:X,table:d}))!==null&&Ue!==void 0?Ue:null:ee!==!1&&(G||ee)?p.jsx(aw,Object.assign({he
2185ight:20,width:se},W)):q==="display"&&(["mrt-row-expand","mrt-row-numbers","mrt-row-select"].includes(oe.id)||!X.getIsGrouped())?(xt=J.Cell)===null||xt===void 0?void 0:xt.call(J,Object.assign({column:oe,renderedCellValue:s.renderValue(),row:X,rowRef:c},Ge)):De||de?p.jsx(vm,{cell:s,table:d}):Oe&&J.enableClickToCopy!==!1?p.jsx(Uq,{cell:s,table:d,children:p.jsx(G_,Object.assign({},Ge))}):p.jsx(G_,Object.assign({},Ge))};return p.jsx(id,Object.assign({"data-column-pinned":ge||void 0,"data-dragging-column":Re||void 0,"data-first-right-pinned":ge==="right"&&oe.getIsFirstColumn(ge)||void 0,"data-hovered-column-target":ye||void 0,"data-index":l,"data-last-left-pinned":ge==="left"&&oe.getIsLastColumn(ge)||void 0,"data-last-row":u===a-1||void 0,"data-resizing":b==="onChange"&&(z==null?void 0:z.isResizingColumn)===oe.id&&w||void 0},Y,{__vars:Object.assign({"--mrt-cell-align":(n=Y.align)!==null&&n!==void 0?n:g.dir==="rtl"?"right":"left","--mrt-table-cell-left":ge==="left"?`${oe.getStart(ge)}`:void 0,"--mrt-table-cell-right":ge==="right"?`${oe.getAfter(ge)}`:void 0},Y.__vars),className:Ce(xo.root,(T==null?void 0:T.startsWith("grid"))&&xo["root-grid"],f&&xo["root-virtualized"],Le&&x==="cell"&&xo["root-cursor-pointer"],Le&&["cell","table"].includes(x??"")&&q!=="display"&&xo["root-editable-hover"],q==="data"&&xo["root-data-col"],F==="xs"&&xo["root-nowrap"],J.enableCellHoverReveal&&xo["root-cell-hover-reveal"],Y==null?void 0:Y.className),onDoubleClick:Be,onDragEnter:wt,onMouseEnter:ze,onMouseLeave:Ee,style:He=>Object.assign(Object.assign({},le),_e(Y.style,He)),children:p.jsx(p.Fragment,{children:(r=Y.children)!==null&&r!==void 0?r:J.enableCellHoverReveal?p.jsxs("div",{className:Ce(J.enableCellHoverReveal&&!(De||de)&&xo["cell-hover-reveal"],xe&&xo.overflowing),ref:he,children:[Ve(),s.getIsGrouped()&&!J.GroupedCell&&p.jsxs(p.Fragment,{children:[" (",(o=X.subRows)===null||o===void 0?void 0:o.length,")"]})]}):p.jsxs(p.Fragment,{children:[Ve(),s.getIsGrouped()&&!J.GroupedCell&&p.jsxs(p.Fragment,{children:[" (",(i=X.subRows)===null||i===void 0?void 0:i.length,")"]})]})})}))},Gq=S.memo(SM,(e,t)=>t.cell===e.cell);var Ls={root:"MRT_TableDetailPanel-module_root__vQAlM","root-grid":"MRT_TableDetailPanel-module_root-grid__7UMC6","root-virtual-row":"MRT_TableDetailPanel-module_root-virtual-row__r-X4Z",inner:"MRT_TableDetailPanel-module_inner__o-Fk-","inner-grid":"MRT_TableDetailPanel-module_inner-grid__WLZgF","inner-expanded":"MRT_TableDetailPanel-module_inner-expanded__6tg9T","inner-virtual":"MRT_TableDetailPanel-module_inner-virtual__TItRy"};const Wq=e=>{var t,n,{parentRowRef:r,renderedRowIndex:o=0,row:i,rowVirtualizer:s,striped:a,table:l,virtualRow:u}=e,c=We(e,["parentRowRef","renderedRowIndex","row","rowVirtualizer","striped","table","virtualRow"]);const{getState:d,getVisibleLeafColumns:f,options:{layoutMode:h,mantineDetailPanelProps:g,mantineTableBodyRowProps:v,renderDetailPanel:w}}=l,{isLoading:b}=d(),y=_e(v,{isDetailPanel:!0,row:i,table:l}),x=Object.assign(Object.assign({},_e(g,{row:i,table:l})),c),R=i.getAllCells().filter(I=>I.column.columnDef.columnDefType==="data").map(I=>p.jsx(vm,{cell:I,table:l},I.id)),k=!b&&i.getIsExpanded()&&(w==null?void 0:w({internalEditComponents:R,row:i,table:l}));return p.jsx(ii,Object.assign({"data-index":w?o*2+1:o,"data-striped":a,ref:I=>{var C;I&&((C=s==null?void 0:s.measureElement)===null||C===void 0||C.call(s,I))}},y,{__vars:Object.assign({"--mrt-parent-row-height":u?`${(n=(t=r.current)===null||t===void 0?void 0:t.getBoundingClientRect())===null||n===void 0?void 0:n.height}px`:void 0,"--mrt-virtual-row-start":u?`${u.start}px`:void 0},y==null?void 0:y.__vars),className:Ce("mantine-Table-tr-detail-panel",Ls.root,(h==null?void 0:h.startsWith("grid"))&&Ls["root-grid"],u&&Ls["root-virtual-row"],y==null?void 0:y.className),children:p.jsx(id,Object.assign({colSpan:f().length,component:"td"},x,{__vars:{"--mrt-inner-width":`${l.getTotalSize()}px`},className:Ce("mantine-Table-td-detail-panel",Ls.inner,(h==null?void 0:h.startsWith("grid"))&&Ls["inner-grid"],i.getIsExpanded()&&Ls["inner-expanded"],u&&Ls["inner-virtual"]),p:i.getIsExpanded()&&k?"md":0,children:s?i.getIsExpanded()&&k:p.jsx(Yl,{in:i.getIsExpanded(),children:k})}
2185))}))},Kq=(e,t,n)=>{let r=0;return e.columnFiltersMeta[n]&&(r=XG(e.columnFiltersMeta[n],t.columnFiltersMeta[n])),r===0?Ws.alphanumeric(e,t,n):r},qq=Object.assign(Object.assign({},Ws),{fuzzy:Kq}),Yq=(e,t)=>Math.max(...Object.values(t.columnFiltersMeta).map(n=>n.rank))-Math.max(...Object.values(e.columnFiltersMeta).map(n=>n.rank)),CM=(e,t)=>{const{getCenterRows:n,getPrePaginationRowModel:r,getRowModel:o,getState:i,getTopRows:s,options:{createDisplayMode:a,enablePagination:l,enableRowPinning:u,manualPagination:c,positionCreatingRow:d,rowPinningDisplayMode:f}}=e,{creatingRow:h,pagination:g}=i(),v=Xq(e);let w=[];if(!v)w=!u||f!=null&&f.includes("sticky")?t?r().rows:o().rows:n();else{if(w=r().rows.sort((b,y)=>Yq(b,y)),l&&!c&&!t){const b=g.pageIndex*g.pageSize;w=w.slice(b,b+g.pageSize)}u&&!(f!=null&&f.includes("sticky"))&&(w=w.filter(b=>!b.getIsPinned()))}if(u&&(f!=null&&f.includes("sticky"))){const b=w.filter(y=>y.getIsPinned()).map(y=>y.id);w=[...s().filter(y=>!b.includes(y.id)),...w]}if(d!==void 0&&h&&a==="row"){const b=isNaN(+d)?d==="top"?0:w.length:+d;w=[...w.slice(0,b),h,...w.slice(b)]}return w},_M=e=>{const{getState:t,options:{enableGlobalFilterRankedResults:n,manualExpanding:r,manualFiltering:o,manualGrouping:i,manualSorting:s}}=e,{expanded:a,globalFilterFn:l}=t();return!r&&!o&&!i&&!s&&n&&l==="fuzzy"&&a!==!0&&!Object.values(a).some(Boolean)},Xq=e=>{const{globalFilter:t,sorting:n}=e.getState();return _M(e)&&t&&!Object.values(n).some(Boolean)},Lp=({row:e,table:t})=>{const{options:{enableRowSelection:n}}=t;return e.getIsSelected()||_e(n,e)&&e.getCanSelectSubRows()&&e.getIsAllSubRowsSelected()},Jq=({renderedRowIndex:e=0,row:t,table:n})=>(r,o)=>{var i;const{getState:s,options:{enableBatchRowSelection:a,enableMultiRowSelection:l,enableRowPinning:u,manualPagination:c,rowPinningDisplayMode:d},refs:{lastSelectedRowId:f}}=n,{pagination:{pageIndex:h,pageSize:g}}=s(),v=c?0:g*h,w=Lp({row:t,table:n});t.toggleSelected(o??!w);const b=new Set([t.id]);if(a&&l&&r.nativeEvent.shiftKey&&f.current!==null){const y=CM(n,!0),x=y.findIndex(R=>R.id===f.current);if(x!==-1){const R=Lp({row:y==null?void 0:y[x],table:n}),k=e+v,[I,C]=x<k?[x,k]:[k,x];if(w!==R)for(let _=I;_<=C;_++)y[_].toggleSelected(!w),b.add(y[_].id)}}f.current=t.id,t.getCanSelectSubRows()&&t.getIsAllSubRowsSelected()&&((i=t.subRows)===null||i===void 0||i.forEach(y=>y.toggleSelected(!1))),u&&(d!=null&&d.includes("select"))&&b.forEach(y=>{n.getRow(y).pin(w?!1:d!=null&&d.includes("bottom")?"bottom":"top")})},RM=({table:e})=>(t,n,r)=>{const{options:{enableRowPinning:o,rowPinningDisplayMode:i,selectAllMode:s},refs:{lastSelectedRowId:a}}=e;s==="all"||r?e.toggleAllRowsSelected(n??t.target.checked):e.toggleAllPageRowsSelected(n??t.target.checked),o&&(i!=null&&i.includes("select"))&&e.setRowPinning({bottom:[],top:[]}),a.current=null},hc=e=>{var t,n,r,{children:o,columnVirtualizer:i,numRows:s,pinnedRowIds:a,renderedRowIndex:l=0,row:u,rowVirtualizer:c,table:d,tableProps:f,virtualRow:h}=e,g=We(e,["children","columnVirtualizer","numRows","pinnedRowIds","renderedRowIndex","row","rowVirtualizer","table","tableProps","virtualRow"]);const{getState:v,options:{enableRowOrdering:w,enableRowPinning:b,enableStickyFooter:y,enableStickyHeader:x,layoutMode:R,mantineTableBodyRowProps:k,memoMode:I,renderDetailPanel:C,rowPinningDisplayMode:_},refs:{tableFooterRef:T,tableHeadRef:P},setHoveredRow:M}=d,{density:O,draggingColumn:A,draggingRow:V,editingCell:z,editingRow:N,hoveredRow:F,isFullScreen:j,rowPinning:L}=v(),B=u.getVisibleCells(),{virtualColumns:H,virtualPaddingLeft:G,virtualPaddingRight:ee}=i??{},oe=Lp({row:u,table:d}),X=b&&u.getIsPinned(),J=X&&(_==null?void 0:_.includes("sticky"))&&"sticky",q=(V==null?void 0:V.id)===u.id,ne=(F==null?void 0:F.id)===u.id,Y=Object.assign(Object.assign({},_e(k,{renderedRowIndex:l,row:u,table:d})),g),[W,se]=S.useMemo(()=>!b||!J||!a||!u.getIsPinned()?[]:[[...a].reverse().indexOf(u.id),a.indexOf(u.id)],[a,L]),ue=(x||j)&&((t=P.current)===null||t===void 0?void 0:t.clientHeight)||0,le=y&&((n=T.current)===null||n===void 0?void 0:n.clientHeight)||0,Re=parseInt((r=Y==null?void 0:Y.style)===null||r===void 0?void 0:r.height,10)||(O==="xs"?37:O==="md"?53:69),ye=de=>{w&&V&&M(u)},ge=S.useRef(null);let Le=f.striped;return Le&&(Le===!0&&(Le="odd"),Le==="odd"&&l%2!==0&&(Le=!1),Le==="even"&&l%2===0&&(Le=!1)),p.jsxs(p.Fragment,{children:[p.jsxs(ii,Object.assign({"data-dragging-row":q||void 0,"data-hovered-row-target":ne||void 0,"data-index":C?l*2:l,"data-row-pinned":J||X||void 0,"data-selected":oe||void 0,"data-striped":Le,onDragEnter:ye,ref:de=>{de&&(ge.current=de,c==null||c.measureElement(de))}},Y,{__vars:Object.assign(Object.assign({},Y==null?void 0:Y.__vars),{"--mrt-pinned-row-bottom":!h&&W!==void 0&&X?`${W*Re+(y?le-1:0)}`:void 0,"--mrt-pinned-row-top":h?void 0:se!==void 0&&X?`${se*Re+(x||j?ue-1:0)}`:void 0,"--mrt-virtual-row-start":h?`${h.start}`:void 0}),className:Ce(Bg.root,(R==null?void 0:R.startsWith("grid"))&&Bg["root-grid"],h&&Bg["root-virtualized"],Y==null?void 0:Y.className),children:[G?p.jsx(te,{component:"td",display:"flex",w:G}):null,o||(H??u.getVisibleCells()).map((de,De)=>{let Oe=de;i&&(De=de.index,Oe=B[De]);const Be={cell:Oe,numRows:s,renderedColumnIndex:De,renderedRowIndex:l,rowRef:ge,table:d,virtualCell:i?de:void 0};return I==="cells"&&Oe.column.columnDef.columnDefType==="data"&&!A&&!V&&(z==null?void 0:z.id)!==Oe.id&&(N==null?void 0:N.id)!==u.id?p.jsx(Gq,Object.assign({},Be),Oe.id):p.jsx(SM,Object.assign({},Be),Oe.id)}),ee?p.jsx(te,{component:"td",display:"flex",w:ee}):null]})),C&&!u.getIsGrouped()&&p.jsx(Wq,{parentRowRef:ge,renderedRowIndex:l,row:u,rowVirtualizer:c,striped:Le,table:d,virtualRow:h})]})},Ug=S.memo(hc,(e,t)=>e.row===t.row);var Lu={root:"MRT_ExpandButton-module_root__IFYio","root-ltr":"MRT_ExpandButton-module_root-ltr__FHNnp",chevron:"MRT_ExpandButton-module_chevron__XzC5P",right:"MRT_ExpandButton-module_right__-pC-A",up:"MRT_ExpandButton-module_up__TZGBo","root-rtl":"MRT_ExpandButton-module_root-rtl__zoudS"};const Ny=e=>{var t,n,{row:r,table:o}=e,i=We(e,["row","table"]);const s=Er(),{options:{icons:{IconChevronDown:a},localization:l,mantineExpandButtonProps:u,positionExpandColumn:c,renderDetailPanel:d}}=o,f=Object.assign(Object.assign({},_e(u,{row:r,table:o})),i),h=r.getAllCells().filter(x=>x.column.columnDef.columnDefType==="data").map(x=>p.jsx(vm,{cell:x,table:o},x.id)),g=r.getCanExpand(),v=r.getIsExpanded(),w=!!(d!=null&&d({internalEditComponents:h,row:r,table:o})),b=x=>{var R;x.stopPropagation(),r.toggleExpanded(),(R=f==null?void 0:f.onClick)===null||R===void 0||R.call(f,x)},y=s.dir==="rtl"||c==="last";return p.jsx(yt,{disabled:!g&&!w,label:(t=f==null?void 0:f.title)!==null&&t!==void 0?t:v?l.collapse:l.expand,openDelay:1e3,withinPortal:!0,children:p.jsx(lt,Object.assign({"aria-label":l.expand,color:"gray",disabled:!g&&!w,variant:"subtle"},f,{__vars:{"--mrt-row-depth":`${r.depth}`},className:Ce("mrt-expand-button",Lu.root,Lu[`root-${y?"rtl":"ltr"}`],f==null?void 0:f.className),onClick:b,title:void 0,children:(n=f==null?void 0:f.children)!==null&&n!==void 0?n:p.jsx(a,{className:Ce("mrt-expand-button-chevron",Lu.chevron,!g&&!d?Lu.right:v?Lu.up:void 0)})}))})},Qq=e=>{var t,n,{table:r,tableProps:o}=e,i=We(e,["table","tableProps"]);const{getState:s,options:{layoutMode:a,localization:l,renderDetailPanel:u,renderEmptyRowsFallback:c},refs:{tablePaperRef:d}}=r,{columnFilters:f,globalFilter:h}=s(),g=S.useMemo(()=>du(r,"mrt-row-empty",{},0,0),[]),v=Object.assign(Object.assign({},i),{renderedRowIndex:0,row:g,virtualRow:void 0});return p.jsxs(hc,Object.assign({className:Ce("mrt-table-body-row",(a==null?void 0:a.startsWith("grid"))&&Mr["empty-row-tr-grid"]),table:r,tableProps:o},v,{children:[u&&p.jsx(id,{className:Ce("mrt-table-body-cell",(a==null?void 0:a.startsWith("grid"))&&Mr["empty-row-td-grid"]),colSpan:1,children:p.jsx(Ny,{row:g,table:r})}),p.jsx("td",{className:Ce("mrt-table-body-cell",(a==null?void 0:a.startsWith("grid"))&&Mr["empty-row-td-grid"]),colSpan:r.getVisibleLeafColumns().length,children:(t=c==null?void 0:c({table:r}))!==null&&t!==void 0?t:p.jsx(nt,{__vars:{"--mrt-paper-width":`${(n=d.current)===null||n===void 0?void 0:n.clientWidth}`},className:Ce(Mr["empty-row-td-content"]),children:h||f.length?l.no
2185ResultsFound:l.noRecordsToDisplay})})]}))},Zq=e=>{const{getRowModel:t,getState:n,options:{data:r,enableGlobalFilterRankedResults:o,positionCreatingRow:i}}=e,{creatingRow:s,expanded:a,globalFilter:l,pagination:u,rowPinning:c,sorting:d}=n();return S.useMemo(()=>CM(e),[s,r,o,a,t().rows,l,u.pageIndex,u.pageSize,i,c,d])},EM=(e,t)=>{const n=QI(e);return t===void 0||(t>=0&&t<Math.max(e.startIndex-e.overscan,0)&&n.unshift(t),t>=0&&t>e.endIndex+e.overscan&&n.push(t)),n},eY=(e,t)=>{var n;const{getRowModel:r,getState:o,options:{enableRowVirtualization:i,renderDetailPanel:s,rowVirtualizerInstanceRef:a,rowVirtualizerOptions:l},refs:{tableContainerRef:u}}=e,{density:c,draggingRow:d,expanded:f}=o();if(!i)return;const h=_e(l,{table:e}),g=(n=t==null?void 0:t.length)!==null&&n!==void 0?n:r().rows.length,v=c==="xs"?42.7:c==="md"?54.7:70.7,w=eM(Object.assign({count:s?g*2:g,estimateSize:b=>s&&b%2===1?f===!0?100:0:v,getScrollElement:()=>u.current,measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?b=>b==null?void 0:b.getBoundingClientRect().height:void 0,overscan:4,rangeExtractor:S.useCallback(b=>{var y;return EM(b,(y=d==null?void 0:d.index)!==null&&y!==void 0?y:0)},[d])},h));return w.virtualRows=w.getVirtualItems(),a&&(a.current=w),w},TM=e=>{var t,n,r,{columnVirtualizer:o,table:i,tableProps:s}=e,a=We(e,["columnVirtualizer","table","tableProps"]);const{getBottomRows:l,getIsSomeRowsPinned:u,getRowModel:c,getState:d,getTopRows:f,options:{enableStickyFooter:h,enableStickyHeader:g,layoutMode:v,mantineTableBodyProps:w,memoMode:b,renderDetailPanel:y,rowPinningDisplayMode:x},refs:{tableFooterRef:R,tableHeadRef:k}}=i,{isFullScreen:I,rowPinning:C}=d(),_=Object.assign(Object.assign({},_e(w,{table:i})),a),T=(g||I)&&((t=k.current)===null||t===void 0?void 0:t.clientHeight)||0,P=h&&((n=R.current)===null||n===void 0?void 0:n.clientHeight)||0,M=S.useMemo(()=>{var N,F;return!(!((N=C.bottom)===null||N===void 0)&&N.length)&&!(!((F=C.top)===null||F===void 0)&&F.length)?[]:c().rows.filter(j=>j.getIsPinned()).map(j=>j.id)},[C,c().rows]),O=Zq(i),A=eY(i,O),{virtualRows:V}=A??{},z={columnVirtualizer:o,numRows:O.length,table:i,tableProps:s};return p.jsxs(p.Fragment,{children:[!(x!=null&&x.includes("sticky"))&&u("top")&&p.jsx(uc,Object.assign({},_,{__vars:Object.assign({"--mrt-table-head-height":`${T}`},_==null?void 0:_.__vars),className:Ce(Mr.pinned,(v==null?void 0:v.startsWith("grid"))&&Mr["root-grid"],_==null?void 0:_.className),children:f().map((N,F)=>{const j=Object.assign(Object.assign({},z),{renderedRowIndex:F,row:N});return b==="rows"?p.jsx(Ug,Object.assign({},j),N.id):p.jsx(hc,Object.assign({},j),N.id)})})),p.jsx(uc,Object.assign({},_,{__vars:Object.assign({"--mrt-table-body-height":A?`${A.getTotalSize()}px`:void 0},_==null?void 0:_.__vars),className:Ce(Mr.root,(v==null?void 0:v.startsWith("grid"))&&Mr["root-grid"],!O.length&&Mr["root-no-rows"],A&&Mr["root-virtualized"],_==null?void 0:_.className),children:(r=_==null?void 0:_.children)!==null&&r!==void 0?r:O.length?p.jsx(p.Fragment,{children:(V??O).map((N,F)=>{if(A)if(y){if(N.index%2===1)return null;F=N.index/2}else F=N.index;const j=A?O[F]:N,L=Object.assign(Object.assign({},z),{pinnedRowIds:M,renderedRowIndex:F,row:j,rowVirtualizer:A,virtualRow:A?N:void 0}),B=`${j.id}-${j.index}`;return b==="rows"?p.jsx(Ug,Object.assign({},L),B):p.jsx(hc,Object.assign({},L),B)})}):p.jsx(Qq,Object.assign({},z))})),!(x!=null&&x.includes("sticky"))&&u("bottom")&&p.jsx(uc,Object.assign({},_,{__vars:Object.assign({"--mrt-table-footer-height":`${P}`},_==null?void 0:_.__vars),className:Ce(Mr.pinned,(v==null?void 0:v.startsWith("grid"))&&Mr["root-grid"],_==null?void 0:_.className),children:l().map((N,F)=>{const j=Object.assign(Object.assign({},z),{renderedRowIndex:F,row:N});return b==="rows"?p.jsx(Ug,Object.assign({},j),N.id):p.jsx(hc,Object.assign({},j),N.id)})}))]})},tY=S.memo(TM,(e,t)=>e.table.options.data===t.table.options.data);var nY={"grab-icon":"MRT_GrabHandleButton-module_grab-icon__mQimy"};const Yw=({actionIconProps:e,onDragEnd:t,onDragStart:n,table:{options:{icons:{IconGripHorizontal:r},localization:{move:o}}}})=>{var i,s;return p.jsx(yt,{label:(i=e==null?void 0:e.title)!==null&&i!==void 0?i:o,openDelay:1e3,withinPortal:!0,children:p.jsx(lt,Object.assign({"aria-label":(s=e==null?void 0:e.title)!==null&&s!==void 0?s:o,draggable:!0},e,{className:Ce("mrt-grab-handle-button",nY["grab-icon"],e==null?void 0:e.className),color:"gray",onClick:a=>{var l;a.stopPropagation(),(l=e==null?void 0:e.onClick)===null||l===void 0||l.call(e,a)},onDragEnd:t,onDragStart:n,size:"sm",title:void 0,variant:"transparent",children:p.jsx(r,{size:"100%"})}))})},rY=e=>{var{row:t,rowRef:n,table:r}=e,o=We(e,["row","rowRef","table"]);const{options:{mantineRowDragHandleProps:i}}=r,s=Object.assign(Object.assign({},_e(i,{row:t,table:r})),o),a=u=>{var c;
2185(c=s==null?void 0:s.onDragStart)===null||c===void 0||c.call(s,u),u.dataTransfer.setDragImage(n.current,0,0),r.setDraggingRow(t)},l=u=>{var c;(c=s==null?void 0:s.onDragEnd)===null||c===void 0||c.call(s,u),r.setDraggingRow(null),r.setHoveredRow(null)};return p.jsx(Yw,{actionIconProps:s,onDragEnd:l,onDragStart:a,table:r})},Gg=e=>{var{pinningPosition:t,row:n,table:r}=e,o=We(e,["pinningPosition","row","table"]);const{options:{icons:{IconPinned:i,IconX:s},localization:a,rowPinningDisplayMode:l}}=r,u=n.getIsPinned(),[c,d]=S.useState(!1),f=h=>{d(!1),h.stopPropagation(),n.pin(u?!1:t)};return p.jsx(yt,{label:u?a.unpin:a.pin,openDelay:1e3,opened:c,children:p.jsx(lt,Object.assign({"aria-label":a.pin,color:"gray",onClick:f,onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),size:"xs",style:{height:"24px",width:"24px"},variant:"subtle"},o,{children:u?p.jsx(s,{}):p.jsx(i,{fontSize:"small",style:{transform:`rotate(${l==="sticky"?135:t==="top"?180:0}deg)`}})}))})},oY=e=>{var{row:t,table:n}=e,r=We(e,["row","table"]);const{getState:o,options:{enableRowPinning:i,rowPinningDisplayMode:s}}=n,{density:a}=o();if(!_e(i,t))return null;const u=Object.assign({row:t,table:n},r);return s==="top-and-bottom"&&!t.getIsPinned()?p.jsxs(te,{style:{display:"flex",flexDirection:a==="xs"?"row":"column"},children:[p.jsx(Gg,Object.assign({pinningPosition:"top"},u)),p.jsx(Gg,Object.assign({pinningPosition:"bottom"},u))]}):p.jsx(Gg,Object.assign({pinningPosition:s==="bottom"?"bottom":"top"},u))};var Wg={root:"MRT_ColumnPinningButtons-module_root__scTtW",left:"MRT_ColumnPinningButtons-module_left__W6Aog",right:"MRT_ColumnPinningButtons-module_right__7AJE3"};const iY=({column:e,table:t})=>{const{options:{icons:{IconPinned:n,IconPinnedOff:r},localization:o}}=t;return p.jsx(Yt,{className:Ce("mrt-column-pinning-buttons",Wg.root),children:e.getIsPinned()?p.jsx(yt,{label:o.unpin,withinPortal:!0,children:p.jsx(lt,{color:"gray",onClick:()=>e.pin(!1),size:"md",variant:"subtle",children:p.jsx(r,{})})}):p.jsxs(p.Fragment,{children:[p.jsx(yt,{label:o.pinToLeft,withinPortal:!0,children:p.jsx(lt,{color:"gray",onClick:()=>e.pin("left"),size:"md",variant:"subtle",children:p.jsx(n,{className:Wg.left})})}),p.jsx(yt,{label:o.pinToRight,withinPortal:!0,children:p.jsx(lt,{color:"gray",onClick:()=>e.pin("right"),size:"md",variant:"subtle",children:p.jsx(n,{className:Wg.right})})})]})})};var sY={root:"MRT_EditActionButtons-module_root__BfxVZ"};const PM=e=>{var{row:t,table:n,variant:r="icon"}=e,o=We(e,["row","table","variant"]);const{getState:i,options:{icons:{IconCircleX:s,IconDeviceFloppy:a},localization:l,onCreatingRowCancel:u,onCreatingRowSave:c,onEditingRowCancel:d,onEditingRowSave:f},refs:{editInputRefs:h},setCreatingRow:g,setEditingRow:v}=n,{creatingRow:w,editingRow:b,isSaving:y}=i(),x=(w==null?void 0:w.id)===t.id,R=(b==null?void 0:b.id)===t.id,k=()=>{x?(u==null||u({row:t,table:n}),g(null)):R&&(d==null||d({row:t,table:n}),v(null)),t._valuesCache={}},I=()=>{var C;(C=Object.values(h==null?void 0:h.current).filter(_=>{var T,P;return t.id===((P=(T=_==null?void 0:_.name)===null||T===void 0?void 0:T.split("_"))===null||P===void 0?void 0:P[0])}))===null||C===void 0||C.forEach(_=>{_.value!==void 0&&Object.hasOwn(t==null?void 0:t._valuesCache,_.name)&&(t._valuesCache[_.name]=_.value)}),x?c==null||c({exitCreatingMode:()=>g(null),row:t,table:n,values:t._valuesCache}):R&&(f==null||f({exitEditingMode:()=>v(null),row:t,table:n,values:t==null?void 0:t._valuesCache}))};return p.jsx(te,Object.assign({className:Ce("mrt-edit-action-buttons",sY.root),onClick:C=>C.stopPropagation()},o,{children:r==="icon"?p.jsxs(p.Fragment,{children:[p.jsx(yt,{label:l.cancel,withinPortal:!0,children:p.jsx(lt,{"aria-label":l.cancel,color:"red",onClick:k,variant:"subtle",children:p.jsx(s,{})})}),p.jsx(yt,{label:l.save,withinPortal:!0,children:p.jsx(lt,{"aria-label":l.save,color:"blue",loading:y,onClick:I,variant:"subtle",children:p.jsx(a,{})})})]}):p.jsxs(p.Fragment,{children:[p.jsx(Ct,{onClick:k,variant:"subtle",children:l.cancel}),p.jsx(Ct,{loading:y,onClick:I,variant:"filled",children:l.save})]})}))};var lf={root:"MRT_ExpandAllButton-module_root__gkBZD",chevron:"MRT_ExpandAllButton-module_chevron__Iep0j",up:"MRT_ExpandAllButton-module_up__Xth3U",right:"MRT_ExpandAllButton-module_right__bS4L-"};const aY=e=>{var t,n,{table:r}=e,o=We(e,["table"]);const{getCanSomeRowsExpand:i,getIsAllRowsExpanded:s,getIsSomeRowsExpanded:a,getState:l,options:{icons:{IconChevronsDown:u},localization:c,mantineExpandAllButtonProps:d,renderDetailPanel:f},toggleAllRowsExpanded:h}=r,{density:g,isLoading:v}=l(),w=Object.assign(Object.assign({},_e(d,{table:r})),o),b=s();return p.jsx(yt,{label:((t=w==null?void 0:w.title)!==null&&t!==void 0?t:b)?c.collapseAll:c.expandAll,openDelay:1e3,withinPortal:!0,children:p.jsx(lt,Object.assign({"aria-label":c.expandAll,color:"gray",variant:"subtle"},w,{className:Ce("mrt-expand-all-button",lf.root,w==null?void 0:w.className,g),disabled:v||!f&&!i(),onClick:()=>h(!b),title:void 0,children:(n=w==null?void 0:w.children)!==null&&n!==void 0?n:p.jsx(u,{className:Ce(lf.chevron,b?lf.up:a()?lf.right:void 0)})}))})};var W_={root:"MRT_ShowHideColumnsMenu-module_root__2UWak",content:"MRT_ShowHideColumnsMenu-module_content__ehkWQ"},Ka={root:"MRT_ShowHideColumnsMenuItems-module_root__wYgv-",menu:"MRT_ShowHideColumnsMenuItems-module_menu__CeATR",grab:"MRT_ShowHideColumnsMenuItems-module_grab__a-d-y",pin:"MRT_ShowHideColumnsMenuItems-module_pin__P437b",switch:"MRT_ShowHideColumnsMenuItems-module_switch__tMsdt",header:"MRT_ShowHideColumnsMenuItems-module_header__xVkKb"};const Cl=e=>{var t,n,r,o;return(o=(t=e.id)!==null&&t!==void 0?t:(r=(n=e.accessorKey)===null||n===void 0?void 0:n.toString)===null||r===void 0?void 0:r.call(n))!==null&&o!==void 0?o:e.header},Fp=e=>{const t=[],n=r=>{r.forEach(o=>{o.columns?n(o.columns):t.push(o)})};return n(e),t},kM=({columnDefs:e,tableOptions:t})=>{const{aggregationFns:n={},defaultDisplayColumn:r,filterFns:o={},sortingFns:i={},state:{columnFilterFns:s={}}={}}=t;return e.map(a=>{var l,u;if(a.id||(a.id=Cl(a)),a.columnDefType||(a.columnDefType="data"),!((l=a.columns)===null||l===void 0)&&l.length)a.columnDefType="group",a.columns=kM({columnDefs:a.columns,tableOptions:t});else if(a.columnDefType==="data"){if(Array.isArray(a.aggregationFn)){const c=a.aggregationFn;a.aggregationFn=(d,f,h)=>c.map(g=>{var v;return(v=n[g])===null||v===void 0?void 0:v.call(n,d,f,h)})}Object.keys(o).includes(s[a.id])&&(a.filterFn=(u=o[s[a.id]])!==null&&u!==void 0?u:o.fuzzy,a._filterFn=s[a.id]),Object.keys(i).includes(a.sortingFn)&&(a.sortingFn=i[a.sortingFn])}else a.columnDefType==="display"&&(a=Object.assign(Object.assign({},r),a));return a})},IM=(e,t,n)=>{e.getCanPin()&&e.pin(t.getIsPinned());const r=[...n];return r.splice(r.indexOf(t.id),0,r.splice(r.indexOf(e.id),1)[0]),r},lY=e=>{const{filterVariant:t}=e;return t==="multi-select"?"arrIncludesSome":t!=null&&t.includes("range")?"betweenInclusive":["checkbox","date","select"].includes(t||"")?"equals":"fuzzy"},MM=({allColumns:e,column:t,hoveredColumn:n,setHoveredColumn:r,table:o})=>{var i;
2185const s=rn(),{getState:a,options:{enableColumnOrdering:l,enableColumnPinning:u,enableHiding:c,localization:d},setColumnOrder:f}=o,{columnOrder:h}=a(),{columnDef:g}=t,{columnDefType:v}=g,w=v!=="group"&&t.getIsVisible()||v==="group"&&t.getLeafColumns().some(_=>_.getIsVisible()),b=_=>{var T,P;v==="group"?(P=(T=_==null?void 0:_.columns)===null||T===void 0?void 0:T.forEach)===null||P===void 0||P.call(T,M=>{M.toggleVisibility(!w)}):_.toggleVisibility()},y=S.useRef(null),[x,R]=S.useState(!1),k=_=>{R(!0),_.dataTransfer.setDragImage(y.current,0,0)},I=_=>{R(!1),r(null),n&&f(IM(t,n,h))},C=_=>{!x&&g.enableColumnOrdering!==!1&&r(t)};return!g.header||g.visibleInShowHideMenu===!1?null:p.jsxs(p.Fragment,{children:[p.jsx(Ne.Item,Object.assign({className:Ka.root,component:"span",onDragEnter:C,ref:y,style:{"--_column-depth":`${(t.depth+.5)*2}rem`,"--_hover-color":Bq(s)}},Np("dragging",x),Np("order-hovered",(n==null?void 0:n.id)===t.id),{children:p.jsxs(te,{className:Ka.menu,children:[v!=="group"&&l&&!e.some(_=>_.columnDef.columnDefType==="group")&&(g.enableColumnOrdering!==!1?p.jsx(Yw,{onDragEnd:I,onDragStart:k,table:o}):p.jsx(te,{className:Ka.grab})),u&&(t.getCanPin()?p.jsx(iY,{column:t,table:o}):p.jsx(te,{className:Ka.pin})),c?p.jsx(yt,{label:d.toggleVisibility,openDelay:1e3,withinPortal:!0,children:p.jsx(rd,{checked:w,className:Ka.switch,disabled:!t.getCanHide(),label:g.header,onChange:()=>b(t)})}):p.jsx(nt,{className:Ka.header,children:g.header})]})})),(i=t.columns)===null||i===void 0?void 0:i.map((_,T)=>p.jsx(MM,{allColumns:e,column:_,hoveredColumn:n,setHoveredColumn:r,table:o},`${T}-${_.id}`))]})};function Ia({header:e,id:t,size:n,tableOptions:r}){const{defaultDisplayColumn:o,displayColumnDefOptions:i,localization:s}=r;return Object.assign(Object.assign(Object.assign(Object.assign({},o),{header:e?s[e]:"",size:n}),i==null?void 0:i[t]),{id:t})}const DM=e=>{const{enableRowPinning:t,rowPinningDisplayMode:n}=e;return!!(t&&!(n!=null&&n.startsWith("select")))},AM=e=>{const{enableRowDragging:t,enableRowOrdering:n}=e;return!!(t||n)},Xw=e=>{const{enableExpanding:t,enableGrouping:n,renderDetailPanel:r,state:{grouping:o}}=e;return!!(t||n&&(o!=null&&o.length)||r)},Jw=e=>{const{createDisplayMode:t,editDisplayMode:n,enableEditing:r,enableRowActions:o,state:{creatingRow:i}}=e;return!!(o||i&&t==="row"||r&&["modal","row"].includes(n??""))},jM=e=>!!e.enableRowSelection,OM=e=>!!e.enableRowNumbers,NM=e=>e.layoutMode==="grid-no-grow",uY=e=>[DM(e)&&"mrt-row-pin",AM(e)&&"mrt-row-drag",e.positionActionsColumn==="first"&&Jw(e)&&"mrt-row-actions",e.positionExpandColumn==="first"&&Xw(e)&&"mrt-row-expand",jM(e)&&"mrt-row-select",OM(e)&&"mrt-row-numbers"].filter(
2185Boolean),cY=e=>[e.positionActionsColumn==="last"&&Jw(e)&&"mrt-row-actions",e.positionExpandColumn==="last"&&Xw(e)&&"mrt-row-expand",NM(e)&&"mrt-row-spacer"].filter(Boolean),Qw=(e,t=!1)=>{const{state:{columnOrder:n=[]}}=e,r=uY(e),o=cY(e),i=Fp(e.columns).map(a=>Cl(a));let s=t?i:Array.from(new Set([...n,...i]));return s=s.filter(a=>!r.includes(a)&&!o.includes(a)),[...r,...s,...o]},dY=({table:e})=>{const{getAllColumns:t,getAllLeafColumns:n,getCenterLeafColumns:r,getIsAllColumnsVisible:o,getIsSomeColumnsPinned:i,getIsSomeColumnsVisible:s,getLeftLeafColumns:a,getRightLeafColumns:l,getState:u,options:{enableColumnOrdering:c,enableColumnPinning:d,enableHiding:f,localization:h}}=e,{columnOrder:g,columnPinning:v}=u(),w=R=>{n().filter(k=>k.columnDef.enableHiding!==!1).forEach(k=>k.toggleVisibility(R))},b=S.useMemo(()=>{const R=t();return g.length>0&&!R.some(k=>k.columnDef.columnDefType==="group")?[...a(),...Array.from(new Set(g)).map(k=>r().find(I=>(I==null?void 0:I.id)===k)),...l()].filter(Boolean):R},[g,v,t(),r(),a(),l()]),[y,x]=S.useState(null);return p.jsxs(Ne.Dropdown,{className:Ce("mrt-show-hide-columns-menu",W_.root),children:[p.jsxs(Yt,{className:W_.content,children:[f&&p.jsx(Ct,{disabled:!s(),onClick:()=>w(!1),variant:"subtle",children:h.hideAll}),c&&p.jsx(Ct,{onClick:()=>e.setColumnOrder(Qw(e.options,!0)),variant:"subtle",children:h.resetOrder}),d&&p.jsx(Ct,{disabled:!i(),onClick:()=>e.resetColumnPinning(!0),variant:"subtle",children:h.unpinAll}),f&&p.jsx(Ct,{disabled:o(),onClick:()=>w(!0),variant:"subtle",children:h.showAll})]}),p.jsx(Ne.Divider,{}),b.map((R,k)=>p.jsx(MM,{allColumns:b,column:R,hoveredColumn:y,setHoveredColumn:x,table:e},`${k}-${R.id}`))]})},fY=e=>{var{table:t,title:n}=e,r=We(e,["table","title"]);const{icons:{IconColumns:o},localization:{showHideColumns:i}}=t.options;return p.jsxs(Ne,{closeOnItemClick:!1,withinPortal:!0,children:[p.jsx(yt,{label:n??i,withinPortal:!0,children:p.jsx(Ne.Target,{children:p.jsx(lt,Object.assign({"aria-label":n??i,color:"gray",size:"lg",variant:"subtle"},r,{children:p.jsx(o,{})}))})}),p.jsx(dY,{table:t})]})},pY={md:"xs",xl:"md",xs:"xl"},hY=e=>{var{table:{getState:t,options:{icons:{IconBaselineDensityLarge:n,IconBaselineDensityMedium:r,IconBaselineDensitySmall:o},localization:{toggleDensity:i}},setDensity:s},title:a}=e,l=We(e,["table","title"]);const{density:u}=t();return p.jsx(yt,{label:a??i,withinPortal:!0,children:p.jsx(lt,Object.assign({"aria-label":a??i,color:"gray",onClick:()=>s(c=>pY[c]),size:"lg",variant:"subtle"},l,{children:u==="xs"?p.jsx(o,{}):u==="md"?p.jsx(r,{}):p.jsx(n,{})}))})},mY=e=>{var{table:{getState:t,options:{icons:{IconFilter:n,IconFilterOff:r},localization:{showHideFilters:o}},setShowColumnFilters:i},title:s}=e,a=We(e,["table","title"]);const{showColumnFilters:l}=t();return p.jsx(yt,{label:s??o,withinPortal:!0,children:p.jsx(lt,Object.assign({"aria-label":s??o,color:"gray",onClick:()=>i(u=>!u),size:"lg",variant:"subtle"},a,{children:l?p.jsx(r,{}):p.jsx(n,{})}))})},gY=e=>{var{table:{getState:t,options:{icons:{IconMaximize:n,IconMinimize:r},localization:{toggleFullScreen:o}},setIsFullScreen:i},title:s}=e,a=We(e,["table","title"]);const{isFullScreen:l}=t(),[u,c]=S.useState(!1),d=()=>{c(!1),i(f=>!f)};return p.jsx(yt,{label:s??o,opened:u,withinPortal:!0,children:p.jsx(lt,Object.assign({"aria-label":s??o,color:"gray",onClick:d,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),size:"lg",variant:"subtle"},a,{children:l?p.jsx(r,{}):p.jsx(n,{})}))})},vY=e=>{var{table:{getState:t,options:{icons:{IconSearch:n,IconSearchOff:r},localization:{showHideSearch:o}},refs:{searchInputRef:i},setShowGlobalFilter:s},title:a}=e,l=We(e,["table","title"]);const{globalFilter:u,showGlobalFilter:c}=t(),d=()=>{s(!c),setTimeout(()=>{var f;return(f=i.current)===null||f===void 0?void 0:f.focus()},100)};return p.jsx(yt,{label:a??o,withinPortal:!0,children:p.jsx(lt,Object.assign({"aria-label":a??o,color:"gray",disabled:!!u,onClick:d,size:"lg",variant:"subtle"},l,{children:c?p.jsx(r,{}):p.jsx(n,{})}))})},yY=e=>{var{handleEdit:t,row:n,table:r}=e,o=We(e,["handleEdit","row","table"]);const{options:{editDisplayMode:i,enableEditing:s,icons:{IconDots:a,IconEdit:l},localization:u,positionActionsColumn:c,renderRowActionMenuItems:d}}=r;return p.jsxs(Ne,{closeOnItemClick:!0,position:c==="first"?"bottom-start":c==="last"?"bottom-end":void 0,withinPortal:!0,children:[p.jsx(yt,{label:u.rowActions,openDelay:1e3,withinPortal:!0,children:p.jsx(Ne.Target,{children:p.jsx(lt,Object.assign({"aria-label":u.rowActions,color:"gray",onClick:f=>f.stopPropagation(),size:"sm",variant:"subtle"},o,{children:p.jsx(a,{})}))})}),p.jsxs(Ne.Dropdown,{onClick:f=>f.stopPropagation(),children:[s&&i!=="table"&&p.jsx(Ne.Item,{leftSection:p.jsx(l,{}),onClick:t,children:u.edit}),d==null?void 0:d({row:n,table:r})]})]})},bY=({cell:e,row:t,table:n})=>{const{getState:r,options:{createDisplayMode:o,editDisplayMode:i,enableEditing:s,icons:{IconEdit:a},localization:{edit:l},renderRowActionMenuItems:u,renderRowActions:c},setEditingRow:d}=n,{creatingRow:f,editingRow:h}=r(),g=(f==null?void 0:f.id)===t.id,v=(h==null?void 0:h.id)===t.id,w=y=>{y.stopPropagation(),d(Object.assign({},t))},b=g&&o==="row"||v&&i==="row";return p.jsx(p.Fragment,{children:c&&!b?c({cell:e,row:t,table:n}):b?p.jsx(PM,{row:t,table:n}):!u&&_e(s,t)?p.jsx(yt,{label:l,openDelay:1e3,position:"right",withinPortal:!0,children:p.jsx(lt,{"aria-label":l,color:"gray",disabled:!!h&&h.id!==t.id,onClick:w,size:"md",variant:"subtle",children:p.jsx(a,{})})}):u?p.jsx(yY,{handleEdit:w,row:t,table:n}):null})};var Kg={root:"MRT_TableFooter-module_root__-JXpw",grid:"MRT_TableFooter-module_grid__J3Ga-",sticky:"MRT_TableFooter-module_sticky__GcoK6"},K_={root:"MRT_TableFooterRow-module_root__EuoPr","layout-mode-grid":"MRT_TableFooterRow-module_layout-mode-grid__dUEMF"},qg={root:"MRT_TableFooterCell-module_root__d8Scs",grid:"MRT_TableFooterCell-module_grid__H9jLk",group:"MRT_TableFooterCell-module_group__l3-p-"};const wY=e=>{var t,n,r,o,i,{footer:s,renderedColumnIndex:a,table:l}=e,u=We(e,["footer","renderedColumnIndex","table"]);const c=Er(),{options:{enableColumnPinning:d,layoutMode:f,mantineTableFooterCellProps:h}}=l,{column:g}=s,{columnDef:v}=g,{columnDefType:w}=v,b=d&&v.columnDefType!=="group"&&g.getIsPinned(),y={column:g,table:l},x=Object.assign(Object.assign(Object.assign({},_e(h,y)),_e(v.mantineTableFooterCellProps,y)),u),R={minWidth:`max(calc(var(--header-${lo(s==null?void 0:s.id)}-size) * 1px), ${(t=v.minSize)!==null&&t!==void 0?t:30}px)`,width:`calc(var(--header-${lo(s.id)}-size) * 1px)`};return f==="grid"?R.flex=`${[0,!1].includes(v.grow)?0:`var(--header-${lo(s.id)}-size)`}
2185 0 auto`:f==="grid-no-grow"&&(R.flex=`${+(v.grow||0)} 0 auto`),p.jsx(Nl,Object.assign({colSpan:s.colSpan,"data-column-pinned":b||void 0,"data-first-right-pinned":b==="right"&&g.getIsFirstColumn(b)||void 0,"data-index":a,"data-last-left-pinned":b==="left"&&g.getIsLastColumn(b)||void 0},x,{__vars:Object.assign({"--mrt-cell-align":(n=x.align)!==null&&n!==void 0?n:w==="group"?"center":c.dir==="rtl"?"right":"left","--mrt-table-cell-left":b==="left"?`${g.getStart(b)}`:void 0,"--mrt-table-cell-right":b==="right"?`${g.getAfter(b)}`:void 0},x==null?void 0:x.__vars),className:Ce(qg.root,(f==null?void 0:f.startsWith("grid"))&&qg.grid,w==="group"&&qg.group,x==null?void 0:x.className),style:k=>Object.assign(Object.assign({},R),_e(x.style,k)),children:(r=x.children)!==null&&r!==void 0?r:s.isPlaceholder?null:(i=(o=_e(v.Footer,{column:g,footer:s,table:l}))!==null&&o!==void 0?o:v.footer)!==null&&i!==void 0?i:null}))},xY=e=>{var t,{columnVirtualizer:n,footerGroup:r,table:o}=e,i=We(e,["columnVirtualizer","footerGroup","table"]);const{options:{layoutMode:s,mantineTableFooterRowProps:a}}=o,{virtualColumns:l,virtualPaddingLeft:u,virtualPaddingRight:c}=n??{};if(!(!((t=r.headers)===null||t===void 0)&&t.some(f=>typeof f.column.columnDef.footer=="string"&&!!f.column.columnDef.footer||f.column.columnDef.Footer)))return null;const d=Object.assign(Object.assign({},_e(a,{footerGroup:r,table:o})),i);return p.jsxs(ii,Object.assign({className:Ce(K_.root,(s==null?void 0:s.startsWith("grid"))&&K_["layout-mode-grid"])},d,{children:[u?p.jsx(te,{component:"th",display:"flex",w:u}):null,(l??r.headers).map((f,h)=>{let g=f;return n&&(h=f.index,g=r.headers[h]),p.jsx(wY,{footer:g,renderedColumnIndex:h,table:o},g.id)}),c?p.jsx(te,{component:"th",display:"flex",w:c}):null]}))},SY=e=>{var{columnVirtualizer:t,table:n}=e,r=We(e,["columnVirtualizer","table"]);const{getFooterGroups:o,getState:i,options:{enableStickyFooter:s,layoutMode:a,mantineTableFooterProps:l},refs:{tableFooterRef:u}}=n,{isFullScreen:c}=i(),d=Object.assign(Object.assign({},_e(l,{table:n})),r),f=(c||s)&&s!==!1;return p.jsx(dw,Object.assign({},d,{className:Ce(Kg.root,d==null?void 0:d.className,f&&Kg.sticky,(a==null?void 0:a.startsWith("grid"))&&Kg.grid),ref:h=>{u.current=h,d!=null&&d.ref&&(d.ref.current=h)},children:o().map(h=>p.jsx(xY,{columnVirtualizer:t,footerGroup:h,table:n},h.id))}))};var Vi={root:"MRT_TableHead-module_root__j9NkO","root-grid":"MRT_TableHead-module_root-grid__c3aGl","root-table-row-group":"MRT_TableHead-module_root-table-row-group__d9FO4","root-sticky":"MRT_TableHead-module_root-sticky__0kuDE","banner-tr":"MRT_TableHead-module_banner-tr__EhT-x","banner-th":"MRT_TableHead-module_banner-th__KwM5a",grid:"MRT_TableHead-module_grid__OJ-td"},Yg={root:"MRT_TableHeadRow-module_root__hUKv4","layout-mode-grid":"MRT_TableHeadRow-module_layout-mode-grid__4ZGri",sticky:"MRT_TableHeadRow-module_sticky__Ej7Ax"},xn={root:"MRT_TableHeadCell-module_root__6y50a","root-grid":"MRT_TableHeadCell-module_root-grid__bAf1d","root-virtualized":"MRT_TableHeadCell-module_root-virtualized__CWLit","root-no-select":"MRT_TableHeadCell-module_root-no-select__BEOVU",content:"MRT_TableHeadCell-module_content__-pzSK","content-spaced":"MRT_TableHeadCell-module_content-spaced__S85Aa","content-center":"MRT_TableHeadCell-module_content-center__c-17L","content-right":"MRT_TableHeadCell-module_content-right__NSRZU","content-wrapper":"MRT_TableHeadCell-module_content-wrapper__py6aJ","content-wrapper-hidden-overflow":"MRT_TableHeadCell-module_content-wrapper-hidden-overflow__QY40r","content-wrapper-nowrap":"MRT_TableHeadCell-module_content-wrapper-nowrap__-4aIg",labels:"MRT_TableHeadCell-module_labels__oiMSr","labels-right":"MRT_TableHeadCell-module_labels-right__6ZJp-","labels-center":"MRT_TableHeadCell-module_labels-center__MM9q8","labels-sortable":"MRT_TableHeadCell-module_labels-sortable__tyuLr","labels-data":"MRT_TableHeadCell-module_labels-data__PvFGO","content-actions":"MRT_TableHeadCell-module_content-actions__utxbm"},CY={"filter-mode-label":"MRT_TableHeadCellFilterContainer-module_filter-mode-label__8reK-"};const LM=(e,t,n,r)=>{const o=KG(e.getValue(t),n,{threshold:Gn.MATCHES});return r(o),o.passed};LM.autoRemove=e=>!e;const FM=(e,t,n)=>{var r;return(r=e.getValue(t))===null||r===void 0?void 0:r.toString().toLowerCase().trim().includes(n.toString().toLowerCase().trim())};FM.autoRemove=e=>!e;const $M=(e,t,n)=>{var r;return(r=e.getValue(t))===null||r===void 0?void 0:r.toString().toLowerCase().trim().startsWith(n.toString().toLowerCase().trim())};$M.autoRemove=e=>!e;const zM=(e,t,n)=>{var r;return(r=e.getValue(t))===null||r===void 0?void 0:r.toString().toLowerCase().trim().endsWith(n.toString().toLowerCase().trim())};zM.autoRemove=e=>!e;const ym=(e,t,n)=>{var r;return((r=e.getValue(t))===null||r===void 0?void 0:r.toString().toLowerCase().trim())===(n==null?void 0:n.toString().toLowerCase().trim())};ym.autoRemove=e=>!e;const VM=(e,t,n)=>{var r;return((r=e.getValue(t))===null||r===void 0?void 0:r.toString().toLowerCase().trim())!==n.toString().toLowerCase().trim()};VM.autoRemove=e=>!e;
2185const bm=(e,t,n)=>{var r;return!isNaN(+n)&&!isNaN(+e.getValue(t))?+e.getValue(t)>+n:((r=e.getValue(t))===null||r===void 0?void 0:r.toString().toLowerCase().trim())>(n==null?void 0:n.toString().toLowerCase().trim())};bm.autoRemove=e=>!e;const Zw=(e,t,n)=>ym(e,t,n)||bm(e,t,n);Zw.autoRemove=e=>!e;const wm=(e,t,n)=>{var r;return!isNaN(+n)&&!isNaN(+e.getValue(t))?+e.getValue(t)<+n:((r=e.getValue(t))===null||r===void 0?void 0:r.toString().toLowerCase().trim())<(n==null?void 0:n.toString().toLowerCase().trim())};wm.autoRemove=e=>!e;const ex=(e,t,n)=>ym(e,t,n)||wm(e,t,n);ex.autoRemove=e=>!e;const BM=(e,t,n)=>(["",void 0].includes(n[0])||bm(e,t,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||["",void 0].includes(n[1])||wm(e,t,n[1]));BM.autoRemove=e=>!e;const HM=(e,t,n)=>(["",void 0].includes(n[0])||Zw(e,t,n[0]))&&(!isNaN(+n[0])&&!isNaN(+n[1])&&+n[0]>+n[1]||["",void 0].includes(n[1])||ex(e,t,n[1]));HM.autoRemove=e=>!e;const UM=(e,t,n)=>{var r;return!(!((r=e.getValue(t))===null||r===void 0)&&r.toString().trim())};UM.autoRemove=e=>!e;const GM=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))===null||r===void 0)&&r.toString().trim())};GM.autoRemove=e=>!e;const _Y=Object.assign(Object.assign({},Co),{between:BM,betweenInclusive:HM,contains:FM,empty:UM,endsWith:zM,equals:ym,fuzzy:LM,greaterThan:bm,greaterThanOrEqualTo:Zw,lessThan:wm,lessThanOrEqualTo:ex,notEmpty:GM,notEquals:VM,startsWith:$M});function tx(e,t){var n;if(!t)return"";const r=`filter${t[0].toUpperCase()}${t.slice(1)}`;return(n=e[r])!==null&&n!==void 0?n:""}var RY={root:"MRT_FilterCheckBox-module_root__59h9r"};const EY=e=>{var t,n,r,{column:o,table:i}=e,s=We(e,["column","table"]);const{getState:a,options:{localization:l,mantineFilterCheckboxProps:u}}=i,{density:c}=a(),{columnDef:d}=o,f={column:o,table:i},h=Object.assign(Object.assign(Object.assign({},_e(u,f)),_e(d.mantineFilterCheckboxProps,f)),s),g=(t=l.filterByColumn)===null||t===void 0?void 0:t.replace("{column}",d.header),v=o.getFilterValue();return p.jsx(yt,{label:(n=h==null?void 0:h.title)!==null&&n!==void 0?n:g,openDelay:1e3,withinPortal:!0,children:p.jsx(Is,Object.assign({checked:v==="true",className:Ce("mrt-filter-checkbox",RY.root),indeterminate:v===void 0,label:(r=h.title)!==null&&r!==void 0?r:g,size:c==="xs"?"sm":"md"},h,{onChange:w=>{var b;o.setFilterValue(o.getFilterValue()===void 0?"true":o.getFilterValue()==="true"?"false":void 0),(b=h==null?void 0:h.onChange)===null||b===void 0||b.call(h,w)},onClick:w=>{var b;w.stopPropagation(),(b=h==null?void 0:h.onClick)===null||b===void 0||b.call(h,w)},title:void 0}))})};var TY={root:"MRT_FilterRangeFields-module_root__KfCcg"},Fu={root:"MRT_FilterTextInput-module_root__Ss8Ql","date-filter":"MRT_FilterTextInput-module_date-filter__jOBLB","range-filter":"MRT_FilterTextInput-module_range-filter__JQHAL","not-filter-chip":"MRT_FilterTextInput-module_not-filter-chip__u8b1y","filter-chip-badge":"MRT_FilterTextInput-module_filter-chip-badge__Sel2k"};const Ly=e=>{var t,n,r,o,i,s,a,l,{header:u,rangeFilterIndex:c,table:d}=e,f=We(e,["header","rangeFilterIndex","table"]);const{options:{columnFilterDisplayMode:h,columnFilterModeOptions:g,icons:{IconX:v},localization:w,mantineFilterAutocompleteProps:b,mantineFilterDateInputProps:y,mantineFilterMultiSelectProps:x={clearable:!0},mantineFilterSelectProps:R,mantineFilterTextInputProps:k,manualFiltering:I},refs:{filterInputRefs:C},setColumnFilterFns:_}=d,{column:T}=u,{columnDef:P}=T,M={column:T,rangeFilterIndex:c,table:d},O=Object.assign(Object.assign(Object.assign({},_e(k,M)),_e(P.mantineFilterTextInputProps,M)),f),A=Object.assign(Object.assign({},_e(R,M)),_e(P.mantineFilterSelectProps,M)),V=Object.assign(Object.assign({},_e(x,M)),_e(P.mantineFilterMultiSelectProps,M)),z=Object.assign(Object.assign({},_e(y,M)),_e(P.mantineFilterDateInputProps,M)),N=Object.assign(Object.assign({},_e(b,M)),_e(P.mantineFilterAutocompleteProps,M)),F=P.filterVariant==="range"||P.filterVariant==="date-range"||c!==void 0,j=P.filterVariant==="select",L=P.filterVariant==="multi-select",B=P.filterVariant==="date"||P.filterVariant==="date-range",H=P.filterVariant==="autocomplete",G=(t=P==null?void 0:P.columnFilterModeOptions)!==null&&t!==void 0?t:g,ee=P._filterFn,oe=["empty","notEmpty"].includes(ee)?tx(w,ee):"",X=F?c===0?w.min:c===1?w.max:"":(n=O==null?void 0:O.placeholder)!==null&&n!==void 0?n:(r=w.filterByColumn)===null||r===void 0?void 0:r.replace("{column}",String(P.header)),J=T.getFacetedUniqueValues(),q=S.useMemo(()=>{var de,De,Oe;return((Oe=(De=(de=N==null?void 0:N.data)!==null&&de!==void 0?de:A==null?void 0:A.data)!==null&&De!==void 0?De:V==null?void 0:V.data)!==null&&Oe!==void 0?Oe:(
2185H||j||L)&&J?Array.from(J.keys()).filter(Be=>Be!==null).sort((Be,wt)=>Be.localeCompare(wt)):[]).filter(Be=>Be!=null)},[N==null?void 0:N.data,J,H,L,j,V==null?void 0:V.data,A==null?void 0:A.data]),ne=S.useRef(!1),[Y,W]=S.useState(()=>{var de,De;return L?T.getFilterValue()||[]:F?((de=T.getFilterValue())===null||de===void 0?void 0:de[c])||"":(De=T.getFilterValue())!==null&&De!==void 0?De:""}),[se]=HT(Y,I?400:200);S.useEffect(()=>{ne.current&&(F?T.setFilterValue(de=>{const De=Array.isArray(de)?de:["",""];return De[c]=se,De}):T.setFilterValue(se??void 0))},[se]),S.useEffect(()=>{if(!ne.current){ne.current=!0;return}const de=T.getFilterValue();de===void 0?ue():W(F&&c!==void 0?(de??["",""])[c]:de??"")},[T.getFilterValue()]);const ue=()=>{L?(W([]),T.setFilterValue([])):F?(W(""),T.setFilterValue(de=>{const De=Array.isArray(de)?de:["",""];return De[c]=void 0,De})):j?(W(null),T.setFilterValue(null)):(W(""),T.setFilterValue(void 0))},le=()=>{L?(W([]),T.setFilterValue([])):(W(""),T.setFilterValue(void 0)),_(de=>{var De;return Object.assign(Object.assign({},de),{[u.id]:(De=G==null?void 0:G[0])!==null&&De!==void 0?De:"fuzzy"})})},Re={"aria-label":X,className:Ce("mrt-filter-text-input",Fu.root,B?Fu["date-filter"]:F?Fu["range-filter"]:!oe&&Fu["not-filter-chip"]),disabled:!!oe,onCh
2185ange:W,onClick:de=>de.stopPropagation(),placeholder:X,style:Object.assign({},L?V==null?void 0:V.style:j?A==null?void 0:A.style:B?z==null?void 0:z.style:O==null?void 0:O.style),title:X,value:L&&!Array.isArray(Y)?[]:Y,variant:"unstyled"},{className:ye}=Re,ge=We(Re,["className"]),Le=Y?p.jsx(lt,{"aria-label":w.clearFilter,color:"var(--mantine-color-gray-7)",onClick:ue,size:"sm",title:(o=w.clearFilter)!==null&&o!==void 0?o:"",variant:"transparent",children:p.jsx(v,{})}):null;return P.Filter?p.jsx(p.Fragment,{children:(i=P.Filter)===null||i===void 0?void 0:i.call(P,{column:T,header:u,rangeFilterIndex:c,table:d})}):oe?p.jsx(te,{style:ge.style,children:p.jsx(Jc,{className:Fu["filter-chip-badge"],onClick:le,rightSection:Le,size:"lg",children:oe})}):L?p.jsx(na,Object.assign({},ge,{searchable:!0},V,{className:Ce(ye,V.className),data:q,onChange:de=>W(de),ref:de=>{de&&(C.current[`${T.id}-${c??0}`]=de,V.ref&&(V.ref.current=de))},rightSection:!((s=Y==null?void 0:Y.toString())===null||s===void 0)&&s.length&&(V!=null&&V.clearable)?Le:void 0,style:ge.style})):j?p.jsx(iu,Object.assign({},ge,{clearable:!0,searchable:!0},A,{className:Ce(ye,A.className),clearButtonProps:{size:"md"},data:q,ref:de=>{de&&(C.current[`${T.id}-${c??0}`]=de,A.ref&&(A.ref.current=de))},style:ge.style})):B?p.jsx(qw,Object.assign({},ge,{allowDeselect:!0,clearable:!0,popoverProps:{withinPortal:h!=="popover"}},z,{className:Ce(ye,z.className),onChange:de=>ge.onChange(de===null?"":de),ref:de=>{de&&(C.current[`${T.id}-${c??0}`]=de,z.ref&&(z.ref.current=de))},style:ge.style})):H?p.jsx(Db,Object.assign({},ge,{onChange:de=>W(de),rightSection:!((a=Y==null?void 0:Y.toString())===null||a===void 0)&&a.length?Le:void 0},N,{className:Ce(ye,N.className),data:q,ref:de=>{de&&(C.current[`${T.id}-${c??0}`]=de,N.ref&&(N.ref.current=de))},style:ge.style})):p.jsx(fn,Object.assign({},ge,{onChange:de=>W(de.target.value),rightSection:!((l=Y==null?void 0:Y.toString())===null||l===void 0)&&l.length?Le:void 0},O,{className:Ce(ye,O.className),mt:0,ref:de=>{de&&(C.current[`${T.id}-${c??0}`]=de,O.ref&&(O.ref.current=de))},style:ge.style}))},PY=e=>{var{header:t,table:n}=e,r=We(e,["header","table"]);return p.jsxs(te,Object.assign({},r,{className:Ce("mrt-filter-range-fields",TY.root,r.className),children:[p.jsx(Ly,{header:t,rangeFilterIndex:0,table:n}),p.jsx(Ly,{header:t,rangeFilterIndex:1,table:n})]}))};var kY={root:"MRT_FilterRangeSlider-module_root__uwYEk"};const IY=e=>{var t,{header:n,table:r}=e,o=We(e,["header","table"]);const{options:{mantineFilterRangeSliderProps:i},refs:{filterInputRefs:s}}=r,{column:a}=n,{columnDef:l}=a,u={column:a,table:r},c=Object.assign(Object.assign(Object.assign({},_e(i,u)),_e(l.mantineFilterRangeSliderProps,u)),o);let[d,f]=c.min!==void 0&&c.max!==void 0?[c.min,c.max]:(t=a.getFacetedMinMaxValues())!==null&&t!==void 0?t:[0,1];Array.isArray(d)&&(d=d[0]),Array.isArray(f)&&(f=f[0]),d===null&&(d=0),f===null&&(f=1);const[h,g]=S.useState([d,f]),v=a.getFilterValue(),w=S.useRef(!1);return S.useEffect(()=>{w.current&&(v===void 0?g([d,f]):Array.isArray(v)&&g(v)),w.current=!0},[v,d,f]),p.jsx(lw,Object.assign({className:Ce("mrt-filter-range-slider",kY.root),max:f,min:d,onChange:b=>{g(b)},onChangeEnd:b=>{Array.isArray(b)&&(b[0]<=d&&b[1]>=f?a.setFilterValue(void 0):a.setFilterValue(b))},value:h},c,{ref:b=>{b&&(s.current[`${a.id}-0`]=b,c!=null&&c.ref&&(c.ref=b))}}))};var MY={symbol:"MRT_FilterOptionMenu-module_symbol__a1Bsy"};const DY=e=>[{divider:!1,label:e.filterFuzzy,option:"fuzzy",symbol:"≈"},{divider:!1,label:e.filterContains,option:"contains",symbol:"*"},{divider:!1,label:e.filterStartsWith,option:"startsWith",symbol:"a"},{divider:!0,label:e.filterEndsWith,option:"endsWith",symbol:"z"},{divider:!1,label:e.filterEquals,option:"equals",symbol:"="},{divider:!0,label:e.filterNotEquals,option:"notEquals",symbol:"≠"},{divider:!1,label:e.filterBetween,option:"between",symbol:"⇿"},{divider:!0,label:e.filterBetweenInclusive,option:"betweenInclusive",symbol:"⬌"},{divider:!1,label:e.filterGreaterThan,option:"greaterThan",symbol:">"},{divider:!1,label:e.filterGreaterThanOrEqualTo,option:"greaterThanOrEqualTo",symbol:"≥"},{divider:!1,label:e.filterLessThan,option:"lessThan",symbol:"<"},{divider:!0,label:e.filterLessThanOrEqualTo,option:"lessThanOrEqualTo",symbol:"≤"},{divider:!1,label:e.filterEmpty,option:"empty",symbol:"∅"},{divider:!1,label:e.filterNotEmpty,option:"notEmpty",symbol:"!∅"}],uf=["between","betweenInclusive","inNumberRange"],Xg=["empty","notEmpty"],AY=["arrIncludesSome","arrIncludesAll","arrIncludes"],q_=["range-slider","date-range","range"],WM=({header:e,onSelect:t,table:n})=>{var r,o,i,s;const{getState:a,options:{columnFilterModeOptions:l,globalFilterModeOptions:u,localization:c,renderColumnFilterModeMenuItems:d,renderGlobalFilterModeMenuItems:f}
2185,setColumnFilterFns:h,setGlobalFilterFn:g}=n,{globalFilterFn:v}=a(),{column:w}=e??{},{columnDef:b}=w??{},y=w==null?void 0:w.getFilterValue();let x=(r=b==null?void 0:b.columnFilterModeOptions)!==null&&r!==void 0?r:l;q_.includes(b==null?void 0:b.filterVariant)&&(x=[...uf,...x??[]].filter(C=>uf.includes(C)));const R=S.useMemo(()=>DY(c).filter(C=>b?x===void 0||(x==null?void 0:x.includes(C.option)):(!u||u.includes(C.option))&&["contains","fuzzy","startsWith"].includes(C.option)),[]),k=C=>{var _;const T=(_=b==null?void 0:b._filterFn)!==null&&_!==void 0?_:"";!e||!w?g(C):C!==T&&(h(P=>Object.assign(Object.assign({},P),{[e.id]:C})),Xg.includes(C)?y!==" "&&!Xg.includes(T)?w.setFilterValue(" "):y&&w.setFilterValue(y):(b==null?void 0:b.filterVariant)==="multi-select"||AY.includes(C)?y instanceof String||y!=null&&y.length?w.setFilterValue([]):y&&w.setFilterValue(y):q_.includes(b==null?void 0:b.filterVariant)||uf.includes(C)?!Array.isArray(y)||!(y!=null&&y.every(P=>P===""))&&!uf.includes(T)?w.setFilterValue(["",""]):w.setFilterValue(y):Array.isArray(y)?w.setFilterValue(""):y===" "&&Xg.includes(T)?w.setFilterValue(void 0):w.setFilterValue(y)),t==null||t()},I=e&&b?b._filterFn:v;return p.jsx(Ne.Dropdown,{children:(s=e&&w&&b?(i=(o=b.renderColumnFilterModeMenuItems)===null||o===void 0?void 0:o.call(b,{column:w,internalFilterOptions:R,onSelectFilterMode:k,table:n}))!==null&&i!==void 0?i:d==null?void 0:d({column:w,internalFilterOptions:R,onSelectFilterMode:k,table:n}):f==null?void 0:f({internalFilterOptions:R,onSelectFilterMode:k,table:n}))!==null&&s!==void 0?s:R.map(({divider:C,label:_,option:T,symbol
2185:P},M)=>p.jsxs(S.Fragment,{children:[p.jsx(Ne.Item,{color:T===I?"blue":void 0,leftSection:p.jsx("span",{className:MY.symbol,children:P}),onClick:()=>k(T),value:T,children:_}),C&&p.jsx(Ne.Divider,{})]},M))})},KM=e=>{var t,n,{header:r,table:o}=e,i=We(e,["header","table"]);const{getState:s,options:{columnFilterDisplayMode:a,columnFilterModeOptions:l,enableColumnFilterModes:u,icons:{IconFilterCog:c},localization:d},refs:{filterInputRefs:f}}=o,{showColumnFilters:h}=s(),{column:g}=r,{columnDef:v}=g,w=v._filterFn,b=(t=v==null?void 0:v.columnFilterModeOptions)!==null&&t!==void 0?t:l,y=u&&v.enableColumnFilterModes!==!1&&(b===void 0||!!(b!=null&&b.length));return p.jsx(Yl,{in:h||a==="popover",children:p.jsxs(Yt,Object.assign({direction:"column"},i,{children:[p.jsxs(Yt,{align:"flex-end",children:[v.filterVariant==="checkbox"?p.jsx(EY,{column:g,table:o}):v.filterVariant==="range-slider"?p.jsx(IY,{header:r,table:o}):["date-range","range"].includes((n=v.filterVariant)!==null&&n!==void 0?n:"")||["between","betweenInclusive","inNumberRange"].includes(v._filterFn)?p.jsx(PY,{header:r,table:o}):p.jsx(Ly,{header:r,table:o}),y&&p.jsxs(Ne,{withinPortal:a!=="popover",children:[p.jsx(yt,{label:d.changeFilterMode,position:"bottom-start",withinPortal:!0,children:p.jsx(Ne.Target,{children:p.jsx(lt,{"aria-label":d.changeFilterMode,color:"gray",size:"md",variant:"subtle",children:p.jsx(c,{})})})}),p.jsx(WM,{header:r,onSelect:()=>setTimeout(()=>{var x;return(x=f.current[`${g.id}-0`])===null||x===void 0?void 0:x.focus()},100),table:o})]})]}),y?p.jsx(nt,{c:"dimmed",className:CY["filter-mode-label"],component:"label",children:d.filterMode.replace("{filterType}",tx(d,w))}):null]}))})};var jY={root:"MRT_TableHeadCellFilterLabel-module_root__Rur2R"};const OY=e=>{var t,n,r,{header:o,table:i}=e,s=We(e,["header","table"]);const{options:{columnFilterDisplayMode:a,icons:{IconFilter:l},localization:u},refs:{filterInputRefs:c},setShowColumnFilters:d}=i,{column:f}=o,{columnDef:h}=f,g=f.getFilterValue(),[v,w]=S.useState(!1),b=Array.isArray(g)&&g.some(Boolean)||!!g&&!Array.isArray(g),y=h.filterVariant==="range"||h.filterVariant==="date-range"||["between","betweenInclusive","inNumberRange"].includes(h._filterFn),x=h._filterFn,R=h.filterTooltipValueFn||(I=>I),k=a==="popover"&&!b?(t=u.filterByColumn)===null||t===void 0?void 0:t.replace("{column}",String(h.header)):u.filteringByColumn.replace("{column}",String(h.header)).replace("{filterType}",tx(u,x)).replace("{filterValue}",`"${Array.isArray(f.getFilterValue())?f.getFilterValue().map(I=>R(I)).join(`" ${y?u.and:u.or} "`):R(f.getFilterValue())}"`).replace('" "',"");return p.jsx(p.Fragment,{children:p.jsxs(Tn,{keepMounted:h.filterVariant==="range-slider",onChange:w,onClose:()=>w(!1),opened:v,position:"top",shadow:"xl",width:360,withinPortal:!0,children:[p.jsx(Br,{mounted:a==="popover"||!!f.getFilterValue()&&!y||y&&(!!(!((n=f.getFilterValue())===null||n===void 0)&&n[0])||!!(!((r=f.getFilterValue())===null||r===void 0)&&r[1])),transition:"scale",children:()=>p.jsx(Tn.Target,{children:p.jsx(yt,{disabled:v,label:k,multiline:!0,w:k.length>40?300:void 0,withinPortal:!0,children:p.jsx(lt,Object.assign({className:Ce("mrt-table-head-cell-filter-label-icon",jY.root),size:18},Np("active",b),{onClick:I=>{I.stopPropagation(),a==="popover"?w(C=>!C):d(!0),setTimeout(()=>{const C=c.current[`${f.id}-0`];C==null||C.focus(),C==null||C.select()},100)}},s,{children:p.jsx(l,{size:"100%"})}))})})}),a==="popover"&&p.jsx(Tn.Dropdown,{onClick:I=>I.stopPropagation(),onKeyDown:I=>I.key==="Enter"&&w(!1),onMouseDown:I=>I.stopPropagation(),children:p.jsx(KM,{header:o,table:i})})]})})},NY=e=>{var{column:t,table:n,tableHeadCellRef:r}=e,o=We(e,["column","table","tableHeadCellRef"]);const{getState:i,options:{enableColumnOrdering:s,mantineColumnDragHandleProps:a},setColumnOrder:l,setDraggingColumn:u,setHoveredColumn:c}=n,{columnDef:d}=t,{columnOrder:f,draggingColumn:h,hoveredColumn:g}=i(),v={column:t,table:n},w=Object.assign(Object.assign(Object.assign({},_e(a,v)),_e(d.mantineColumnDragHandleProps,v)),o),b=x=>{var R;(R=w==null?void 0:w.onDragStart)===null||R===void 0||R.call(w,x),u(t),x.dataTransfer.setDragImage(r.current,0,0)},y=x=>{var R;(R=w==null?void 0:w.onDragEnd)===null||R===void 0||R.call(w,x),(g==null?void 0:g.id)==="drop-zone"?t.toggleGrouping():s&&g&&(g==null?void 0:g.id)!==(h==null?void 0:h.id)&&l(IM(t,g,f)),u(null),c(null)};return p.jsx(Yw,{actionIconProps:w,onDragEnd:y,onDragStart:b,table:n})};var Jg={root:"MRT_TableHeadCellResizeHandle-module_root__paufe","root-ltr":"MRT_TableHeadCellResizeHandle-module_root-ltr__652AZ","root-rtl":"MRT_TableHeadCellResizeHandle-module_root-rtl__5VlSo","root-hide":"MRT_TableHeadCellResizeHandle-module_root-hide__-ILlD"};const LY=e=>{var t,{header:n,table:r}=e,o=We(e,["header","table"]);const{getState:i,options:{columnResizeDirection:s,columnResizeMode:a},setColumnSizingInfo:l}=r,{density:u}=i(),{column:c}
2185=n,d=n.getResizeHandler(),f=c.getIsResizing()&&a==="onEnd"?`translateX(${(s==="rtl"?-1:1)*((t=i().columnSizingInfo.deltaOffset)!==null&&t!==void 0?t:0)}px)`:void 0;return p.jsx(te,Object.assign({onDoubleClick:()=>{l(h=>Object.assign(Object.assign({},h),{isResizingColumn:!1})),c.resetSize()},onMouseDown:d,onTouchStart:d,role:"separator"},o,{__vars:Object.assign({"--mrt-transform":f},o.__vars),className:Ce("mrt-table-head-cell-resize-handle",Jg.root,Jg[`root-${s}`],!n.subHeaders.length&&a==="onChange"&&Jg["root-hide"],u,o.className)}))};var Y_={"sort-icon":"MRT_TableHeadCellSortLabel-module_sort-icon__zs1xA","multi-sort-indicator":"MRT_TableHeadCellSortLabel-module_multi-sort-indicator__MGBj2"};const FY=e=>{var{header:t,table:n}=e,r=We(e,["header","table"]);const{getState:o,options:{icons:{IconArrowsSort:i,IconSortAscending:s,IconSortDescending:a},localization:l}}=n,u=t.column,{columnDef:c}=u,{sorting:d}=o(),f=u.getIsSorted(),h=u.getSortIndex(),g=f?f==="desc"?l.sortedByColumnDesc.replace("{column}",c.header):l.sortedByColumnAsc.replace("{column}",c.header):u.getNextSortingOrder()==="desc"?l.sortByColumnDesc.replace("{column}",c.header):l.sortByColumnAsc.replace("{column}",c.header),v=p.jsx(lt,Object.assign({"aria-label":g},Np("sorted",f),r,{className:Ce("mrt-table-head-sort-button",Y_["sort-icon"],r.className),children:f==="desc"?p.jsx(a,{size:"100%"}):f==="asc"?p.jsx(s,{size:"100%"}):p.jsx(i,{size:"100%"})}));return p.jsx(yt,{label:g,openDelay:1e3,withinPortal:!0,children:d.length<2||h===-1?v:p.jsx(Bb,{className:Ce("mrt-table-head-multi-sort-indicator",Y_["multi-sort-indicator"]),inline:!0,label:h+1,offset:4,children:v})})};var X_={left:"MRT_ColumnActionMenu-module_left__cfNmY",right:"MRT_ColumnActionMenu-module_right__-nK56"};const $Y=e=>{var t,n,r,o,i,s,a,l,u,c,{header:d,table:f}=e,h=We(e,["header","table"]);const{getState:g,options:{columnFilterDisplayMode:v,enableColumnFilters:w,enableColumnPinning:b,enableColumnResizing:y,enableGrouping:x,enableHiding:R,enableSorting:k,enableSortingRemoval:I,icons:{IconArrowAutofitContent:C,IconBoxMultiple:_,IconClearAll:T,IconColumns:P,IconDotsVertical:M,IconEyeOff:O,IconFilter:A,IconFilterOff:V,IconPinned:z,IconPinnedOff:N,IconSortAscending:F,IconSortDescending:j},localization:L,mantineColumnActionsButtonProps:B,renderColumnActionsMenuItems:H},refs:{filterInputRefs:G},setColumnOrder:ee,setColumnSizingInfo:oe,setShowColumnFilters:X,toggleAllColumnsVisible:J}=f,{column:q}=d,{columnDef:ne}=q,{columnSizing:Y,columnVisibility:W}=g(),se={column:q,table:f},ue=Object.assign(Object.assign({},_e(B,se)),_e(ne.mantineColumnActionsButtonProps,se)),le=()=>{q.clearSorting()},Re=()=>{q.toggleSorting(!1)},ye=()=>{q.toggleSorting(!0)},ge=()=>{oe(he=>Object.assign(Object.assign({},he),{isResizingColumn:!1})),q.resetSize()},Le=()=>{q.toggleVisibility(!1)},de=he=>{q.pin(he)},De=()=>{q.toggleGrouping(),ee(he=>["mrt-row-expand",...he])},Oe=()=>{q.setFilterValue("")},Be=()=>{X(!0),setTimeout(()=>{var he;return(he=G.current[`${q.id}-0`])===null||he===void 0?void 0:he.focus()},100)},wt=()=>{J(!0)},Ge=p.jsxs(p.Fragment,{children:[k&&q.getCanSort()&&p.jsxs(p.Fragment,{children:[I!==!1&&p.jsx(Ne.Item,{disabled:!q.getIsSorted(),leftSection:p.jsx(T,{}),onClick:le,children:L.clearSort}),p.jsx(Ne.Item,{disabled:q.getIsSorted()==="asc",leftSection:p.jsx(F,{}),onClick:Re,children:(t=L.sortByColumnAsc)===null||t===void 0?void 0:t.replace("{column}",String(ne.header))}),p.jsx(Ne.Item,{disabled:q.getIsSorted()==="desc",leftSection:p.jsx(j,{}),onClick:ye,children:(n=L.sortByColumnDesc)===null||n===void 0?void 0:n.replace("{column}",String(ne.header))}),(w||x||R)&&p.jsx(Ne.Divider,{},3)]}),w&&v!=="popover"&&q.getCanFilter()&&p.jsxs(p.Fragment,{children:[p.jsx(Ne.Item,{disabled:!q.getFilterValue(),leftSection:p.jsx(V,{}),onClick:Oe,children:L.clearFilter}),p.jsx(Ne.Item,{leftSection:p.jsx(A,{}),onClick:Be,children:(r=L.filterByColumn)===null||r===void 0?void 0:r.replace("{column}",String(ne.header))}),(x||R)&&p.jsx(Ne.Divider,{},2)]}),x&&q.getCanGroup()&&p.jsxs(p.Fragment,{children:[p.jsx(Ne.Item,{leftSection:p.jsx(_,{}),onClick:De,children:(o=L[q.getIsGrouped()?"ungroupByColumn":"groupByColumn"])===null||o===void 0?void 0:o.replace("{column}",String(ne.header))}),b&&p.jsx(Ne.Divider,{})]}),b&&q.getCanPin()&&p.jsxs(p.Fragment,{children:[p.jsx(Ne.Item,{disabled:q.getIsPinned()==="left"||!q.getCanPin(),leftSection:p.jsx(z,{className:X_.left}),onClick:()=>de("left"),children:L.pinToLeft}),p.jsx(Ne.Item,{disabled:q.getIsPinned()==="right"||!q.getCanPin(),leftSection:p.jsx(z,{className:X_.right}),onClick:()=>de("right"),children:L.pinToRight}),p.jsx(Ne.Item,{disabled:!q.getIsPinned(),leftSection:p.jsx(N,{}),onClick:()=>de(!1),children:L.unpin}),R&&p.jsx(Ne.Divider,{})]}),y&&q.getCanResize()&&p.jsx(Ne.Item,{disabled:!Y[q.id],leftSection:p.jsx(C,{}),onClick:ge,children:L.resetColumnSize},0),R&&p.jsxs(p.Fragment,{children:[p.jsx(Ne.Item,{disabled:!q.getCanHide(),leftSection:p.jsx(O,{}),onClick:Le,children:(i=L.hideColumn)===null||i===void 0?void 0:i.replace("{column}",String(ne.header))},0),p.jsx(Ne.Item,{disabled:!Object.values(W).filter(he=>!he).length,leftSection:p.jsx(P,{}),onClick:wt,children:(s=L.showAllColumns)===null||s===void 0?void 0:s.replace("{column}",String(ne.header))},1)]})]});return p.jsxs(Ne,Object.assign({closeOnItemClick:!0,position:"bottom-start",withinPortal:!0},h,{children:[p.jsx(yt,{label:(a=ue==null?void 0:ue.title)!==null&&a!==void 0?a:L.columnActions,openDelay:1e3,withinPortal:!0,children:p.jsx(Ne.Target,{children:p.jsx(lt,Object.assign({"aria-label":L.columnActions,color:"gray",size:"sm",variant:"subtle"},ue,{children:p.jsx(M,{size:"100%"})}))})}),p.jsx(Ne.Dropdown,{children:(c=(u=(l=ne.renderColumnActionsMenuItems)===null||l===void 0?void 0:l.call(ne,{column:q,internalColumnMenuItems:Ge,table:f}))!==null&&u!==void 0?u:H==null?void 0:H({column:q,internalColumnMenuItems:Ge,table:f}))!==null&&c!==void 0?c:Ge})]}))},zY=e=>{var t,n,r,o,i,s,{columnVirtualizer:a,header:l,renderedHeaderIndex:u=0,table:c}=e,d=We(e,["columnVirtualizer","header","renderedHeaderIndex","table"]);const f=Er(),{getState:h,options:{columnFilterDisplayMode:g,columnResizeDirection:v,columnResizeMode:w,enableColumnActions:b,enableColumnDragging:y,enableColumnOrdering:x,enableColumnPinning:R,enableGrouping:k,enableHeaderActionsHoverReveal:I,enableMultiSort:C,layoutMode:_,mantineTableHeadCellProps:T},refs:{tableHeadCellRefs:P},setHoveredColumn:M}=c,{columnSizingInfo:O,draggingColumn:A,grouping:V,hoveredColumn:z}=h(),{column:N}=l,{columnDef:F}=N,{columnDefType:j}=F,L={column:N,table:c},B=Object.assign(Object.assign(Object.assign({},_e(T,L)),_e(F.mantineTableHeadCellProps,L)),d),H={minWidth:`max(calc(var(--header-${lo(l==null?void 0:l.id)}-size) * 1px), ${(t=F.minSize)!==null&&t!==void 0?t:30}px)`,width:`calc(var(--header-${lo(l.id)}-size) * 1px)`};_==="grid"?H.flex=`${[0,!1].includes(F.grow)?0:`var(--header-${lo(l.id)}-size)`} 0 auto`:_==="grid-no-grow"&&(H.flex=`${+(F.grow||0)} 0 auto`);const G=R&&F.columnDefType!=="group"&&N.getIsPinned(),ee=(A==null?void 0:A.id)===N.id,oe=(z==null?void 0:z.id)===N.id,{hovered:X,ref:J}=dN(),[q,ne]=S.useState(!1),Y=(b||F.enableColumnActions)&&F.enableColumnActions!==!1,W=!I||q||X&&!c.getVisibleFlatColumns().find(ye=>ye.getIsResizing()),se=y!==!1&&F.enableColumnDragging!==!1&&(y||x&&F.enableColumnOrdering!==!1||k&&F.enableGrouping!==!1&&!V.includes(N.id))&&W,ue=S.useMemo(()=>{let ye=0;return N.getCanSort()&&ye++,W&&(ye+=1.75),se&&(ye+=1.25),ye},[W,se]),le=ye=>{k&&(z==null?void 0:z.id)==="drop-zone"&&M(null),x&&A&&j!=="group"&&M(F.enableColumnOrdering!==!1?N:null)},Re=(F==null?void 0:F.Header)instanceof Function?(n=F==null?void 0:F.Header)===null||n===void 0?void 0:n.call(F,{column:N,header:l,table:c}):(r=F==null?void 0:F.Header)!==null&&r!==void 0?r:F.header;return p.jsxs(Nl,Object.assign({colSpan:l.colSpan,"data-column-pinned":G||void 0,"data-dragging-column":ee||void 0,"data-first-right-pinned":G==="right"&&N.getIsFirstColumn(G)||void 0,"data-hovered-column-target":oe||void 0,"data-index":u,"data-last-left-pinned":G==="left"&&N.getIsLastColumn(G)||void 0,"data-resizing":w==="onChange"&&(O==null?void 0:O.isResizingColumn)===N.id&&v||void 0},B,{__vars:{"--mrt-table-cell-left":G==="left"?`${N.getStart(G)}`:void 0,"--mrt-table-cell-right":G==="right"?`${N.getAfter(G)}`:void 0},align:j==="group"?"center":f.dir==="rtl"?"right":"left",className:Ce(xn.root,(_==null?void 0:_.startsWith("grid"))&&xn["root-grid"],C&&N.getCanSort()&&xn["root-no-select"],a&&xn["root-virtualized"],B==null?void 0:B.className),onDragEnter:le,ref:ye=>{var ge;ye&&(P.current[N.id]=ye,J.current=ye,j!=="group"&&((ge=a==null?void 0:a.measureElement)===null||ge===void 0||ge.call(a,ye)))},style:ye=>Object.assign(Object.assign({},H),_e(B==null?void 0:B.style,ye)),children:[l.isPlaceholder?null:(o=B.children)!==null&&o!==void 0?o:p.jsxs(Yt,{className:Ce("mrt-table-head-cell-content",xn.content,(j==="group"||(B==null?void 0:B.align)==="center")&&xn["content-center"],(B==null?void 0:B.align)==="right"&&xn["content-right"],N.getCanResize()&&xn["content-spaced"]),children:[p.jsxs(Yt,{__vars:{"--mrt-table-head-cell-labels-padding-left":`${ue}`},className:Ce("mrt-table-head-cell-labels",xn.labels,N.getCanSort()&&j!=="group"&&xn["labels-sortable"],(B==null?void 0:B.align)==="right"?xn["labels-right"]:(B==null?void 0:B.align)==="center"&&xn["labels-center"],j==="data"&&xn["labels-data"]),onClick:N.getToggleSortingHandler(),children:[p.jsx(Yt,{className:Ce("mrt-table-head-cell-content-wrapper",xn["content-wrapper"],j==="data"&&xn["content-wrapper-hidden-overflow"],((s=(i=F.header)===null||i===void 0?void 0:i.length)!==null&&s!==void 0?s:0)<20&&xn["content-wrapper-nowrap"]),children:Re}),N.getCanFilter()&&(N.getIsFiltered()||W)&&p.jsx(OY,{header:l,table:c}),N.getCanSort()&&(N.getIsSorted()||W)&&p.jsx(FY,{header:l,table:c})]}),j!=="group"&&p.jsxs(Yt,{className:Ce("mrt-table-head-cell-content-actions",xn["content-actions"]),children:[se&&p.jsx(NY,{column:N,table:c,tableHeadCellRef:{current:P.current[N.id]}}),Y&&W&&p.jsx($Y,{header:l,onChange:ne,opened:q,table:c})]}),N.getCanResize()&&p.jsx(LY,{header:l,table:c})]}),g==="subheader"&&N.getCanFilter()&&p.jsx(KM,{header:l,table:c})]}))},VY=e=>{var{columnVirtualizer:t,headerGroup:n,table:r}=e,o=We(e,["columnVirtualizer","headerGroup","table"]);const{getState:i,options:{enableStickyHeader:s,layoutMode:a,mantineTableHeadRowProps:l}}=r,{isFullScreen:u}=i(),{virtualColumns:c,virtualPaddingLeft:d,virtualPaddingRight:f}=t??{},h=Object.assign(Object.assign({},_e(l,{headerGroup:n,table:r})),o);return p.jsxs(ii,Object.assign({},h,{className:Ce(Yg.root,(s||u)&&Yg.sticky,(a==null?void 0:a.startsWith("grid"))&&Yg["layout-mode-grid"],h==null?void 0:h.className),children:[d?p.jsx(te,{component:"th",display:"flex",w:d}):null,(c??n.headers).map((g,v)=>{let w=g;return t&&(v=g.index,w=n.headers[v]),p.jsx(zY,{columnVirtualizer:t,header:w,renderedHeaderIndex:v,table:r},w.id)}),f?p.jsx(te,{component:"th",display:"flex",w:f}):null]}))};var qa={alert:"MRT_ToolbarAlertBanner-module_alert__PAhUK","alert-stacked":"MRT_ToolbarAlertBanner-module_alert-stacked__HR7Nq","alert-bottom":"MRT_ToolbarAlertBanner-module_alert-bottom__u9L-S","alert-badge":"MRT_ToolbarAlertBanner-module_alert-badge__GwDmX","toolbar-alert":"MRT_ToolbarAlertBanner-module_toolbar-alert__3sJGU","head-overlay":"MRT_ToolbarAlertBanner-module_head-overlay__Hw7jK"};const Fy=e=>{var t,{renderedRowIndex:n=0,row:r,table:o}=e,i=We(e,["renderedRowIndex","row","table"]);const{getState:s,options:{enableMultiRowSelection:a,localization:l,mantineSelectAllCheckboxProps:u,mantineSelectCheckboxProps:c,selectAllMode:d,selectDisplayMode:f}}=o,{density:h,isLoading:g}=s(),v=!r,w=v?d==="page"?o.getIsAllPageRowsSelected():o.getIsAllRowsSelected():void 0,b=v?w:Lp({row:r,table:o}),y=Object.assign(Object.assign({},v?_e(u,{table:o}):_e(c,{row:r,table:o})),i),x=r?Jq({renderedRowIndex:n,row:r,table:o}
2185):void 0,R=RM({table:o}),k=Object.assign(Object.assign({"aria-label":v?l.toggleSelectAll:l.toggleSelectRow,checked:b,disabled:g||r&&!r.getCanSelect()||(r==null?void 0:r.id)==="mrt-row-create",onChange:I=>{I.stopPropagation(),v?R(I):x(I)},size:h==="xs"?"sm":"md"},y),{onClick:I=>{var C;I.stopPropagation(),(C=y==null?void 0:y.onClick)===null||C===void 0||C.call(y,I)},title:void 0});return p.jsx(yt,{label:(t=y==null?void 0:y.title)!==null&&t!==void 0?t:v?l.toggleSelectAll:l.toggleSelectRow,openDelay:1e3,withinPortal:!0,children:p.jsx("span",{children:f==="switch"?p.jsx(rd,Object.assign({},k)):f==="radio"||a===!1?p.jsx(ou,Object.assign({},k)):p.jsx(Is,Object.assign({indeterminate:!b&&v?o.getIsSomeRowsSelected():(r==null?void 0:r.getIsSomeSelected())&&r.getCanSelectSubRows()},k))})})},nx=e=>{var t,n,r,{stackAlertBanner:o,table:i}=e,s=We(e,["stackAlertBanner","table"]);const{getFilteredSelectedRowModel:a,getPrePaginationRowModel:l,getState:u,options:{enableRowSelection:c,enableSelectAll:d,icons:{IconX:f},localization:h,mantineToolbarAlertBannerBadgeProps:g,mantineToolbarAlertBannerProps:v,manualPagination:w,positionToolbarAlertBanner:b,renderToolbarAlertBannerContent:y,rowCount:x}}=i,{density:R,grouping:k,rowSelection:I,showAlertBanner:C}=u(),_=Object.assign(Object.assign({},_e(v,{table:i})),s),T=_e(g,{table:i}),P=x??l().flatRows.length,M=S.useMemo(()=>w?Object.values(I).filter(Boolean).length:a().rows.length,[I,P,w]),O=M?p.jsxs(Yt,{align:"center",gap:"sm",children:[(n=(t=h.selectedCountOfRowCountRowsSelected)===null||t===void 0?void 0:t.replace("{selectedCount}",M.toString()))===null||n===void 0?void 0:n.replace("{rowCount}",P.toString()),p.jsx(Ct,{onClick:V=>RM({table:i})(V,!1,!0),size:"compact-xs",variant:"subtle",children:h.clearSelection})]}):null,A=k.length>0?p.jsxs(Yt,{children:[h.groupedBy," ",k.map((V,z)=>p.jsxs(S.Fragment,{children:[z>0?h.thenBy:"",p.jsxs(Jc,Object.assign({className:qa["alert-badge"],rightSection:p.jsx(lt,{color:"white",onClick:()=>i.getColumn(V).toggleGrouping(),size:"xs",variant:"subtle",children:p.jsx(f,{style:{transform:"scale(0.8)"}})}),variant:"filled"},T,{children:[i.getColumn(V).columnDef.header," "]}))]},`${z}-${V}`))]}):null;return p.jsx(Yl,{in:C||!!O||!!A,transitionDuration:o?200:0,children:p.jsx(mb,Object.assign({color:"blue",icon:!1},_,{className:Ce(qa.alert,o&&!b&&qa["alert-stacked"],!o&&b==="bottom"&&qa["alert-bottom"],_==null?void 0:_.className),children:(r=y==null?void 0:y({groupedAlert:A,selectedAlert:O,table:i}))!==null&&r!==void 0?r:p.jsxs(Yt,{className:Ce(qa["toolbar-alert"],b==="head-overlay"&&qa["head-overlay"],R),children:[c&&d&&b==="head-overlay"&&p.jsx(Fy,{table:i}),p.jsxs(Ze,{children:[_==null?void 0:_.children,O,A]})]})}))})},BY=e=>{var{columnVirtualizer:t,table:n}=e,r=We(e,["columnVirtualizer","table"]);const{getHeaderGroups:o,getSelectedRowModel:i,getState:s,options:{enableStickyHeader:a,layoutMode:l,mantineTableHeadProps:u,positionToolbarAlertBanner:c},refs:{tableHeadRef:d}}=n,{isFullScreen:f,showAlertBanner:h}=s(),g=Object.assign(Object.assign({},_e(u,{table:n})),r),v=a||f;return p.jsx(cw,Object.assign({},g,{className:Ce(Vi.root,l!=null&&l.startsWith("grid")?Vi["root-grid"]:Vi["root-table-row-group"],v&&Vi["root-sticky"],g==null?void 0:g.className),pos:v&&(l!=null&&l.startsWith("grid"))?"sticky":"relative",ref:w=>{d.current=w,g!=null&&g.ref&&(g.ref.current=w)},children:c==="head-overlay"&&(h||i().rows.length>0)?p.jsx(ii,{className:Ce(Vi["banner-tr"],(l==null?void 0:l.startsWith("grid"))&&Vi.grid),children:p.jsx(Nl,{className:Ce(Vi["banner-th"],(l==null?void 0:l.startsWith("grid"))&&Vi.grid),colSpan:n.getVisibleLeafColumns().length,children:p.jsx(nx,{table:n})})}):o().map(w=>p.jsx(VY,{columnVirtualizer:t,headerGroup:w,table:n},w.id))}))};var J_={root:"MRT_GlobalFilterTextInput-module_root__Xmcpv",collapse:"MRT_GlobalFilterTextInput-module_collapse__v311d"};const Qg=e=>{var{table:t}=e,n=We(e,["table"]);const{getState:r,options:{enableGlobalFilterModes:o,icons:{IconSearch:i,IconX:s},localization:a,mantineSearchTextInputProps:l,manualFiltering:u,positionGlobalFilter:c},refs:{searchInputRef:d},setGlobalFilter:f}=t,{globalFilter:h,showGlobalFilter:g}=r(),v=Object.assign(Object.assign({},_e(l,{table:t})),n),w=S.useRef(!1),[b,y]=S.useState(h??""),[x]=HT(b,u?500:250);S.useEffect(()=>
2185{f(x||void 0)},[x]);const R=()=>{y(""),f(void 0)};return S.useEffect(()=>{w.current&&(h===void 0?R():y(h)),w.current=!0},[h]),p.jsxs(Yl,{className:J_.collapse,in:g,children:[o&&p.jsxs(Ne,{withinPortal:!0,children:[p.jsx(Ne.Target,{children:p.jsx(lt,{"aria-label":a.changeSearchMode,color:"gray",size:"sm",variant:"transparent",children:p.jsx(i,{})})}),p.jsx(WM,{onSelect:R,table:t})]}),p.jsx(fn,Object.assign({leftSection:!o&&p.jsx(i,{}),mt:0,mx:c!=="left"?"mx":void 0,onChange:k=>y(k.target.value),placeholder:a.search,rightSection:b?p.jsx(lt,{"aria-label":a.clearSearch,color:"gray",disabled:!(b!=null&&b.length),onClick:R,size:"sm",variant:"transparent",children:p.jsx(yt,{label:a.clearSearch,withinPortal:!0,children:p.jsx(s,{})})}):null,value:b??"",variant:"filled"},v,{className:Ce("mrt-global-filter-text-input",J_.root,v==null?void 0:v.className),ref:k=>{k&&(d.current=k,v!=null&&v.ref&&(v.ref=k))}}))]})},HY=(e,t,n=-1,r=0,o,i)=>du(e,"mrt-row-create",Object.assign({},...Fp(e.options.columns).map(s=>({[Cl(s)]:""}))),n,r,o,i),UY=e=>Object.assign({Cell:({cell:t,row:n,table:r})=>p.jsx(bY,{cell:t,row:n,table:r})},Ia({header:"actions",id:"mrt-row-actions",size:70,tableOptions:e})),GY=e=>Object.assign({Cell:({row:t,rowRef:n,table:r})=>p.jsx(rY,{row:t,rowRef:n,table:r}),grow:!1},Ia({header:"move",id:"mrt-row-drag",size:60,tableOptions:e})),WY=e=>{var t;const{defaultColumn:n,enableExpandAll:r,groupedColumnMode:o,positionExpandColumn:i,renderDetailPanel:s,state:{grouping:a}}=e,l=i==="last"?{align:"right"}:void 0;return Object.assign({Cell:({cell:u,column:c,row:d,table:f})=>{var h,g,v;const w={row:d,table:f},b=(h=d.subRows)===null||h===void 0?void 0:h.length;return e.groupedColumnMode==="remove"&&d.groupingColumnId?p.jsxs(Yt,{align:"center",gap:"0.25rem",children:[p.jsx(Ny,Object.assign({},w)),p.jsx(yt,{label:f.getColumn(d.groupingColumnId).columnDef.header,openDelay:1e3,position:"right",children:p.jsx("span",{children:d.groupingValue})}),!!b&&p.jsxs("span",{children:["(",b,")"]})]}):p.jsxs(p.Fragment,{children:[p.jsx(Ny,Object.assign({},w)),(v=(g=c.columnDef).GroupedCell)===null||v===void 0?void 0:v.call(g,{cell:u,column:c,row:d,table:f})]})},Header:r?({table:u})=>{var c;return p.jsxs(Yt,{align:"center",children:[p.jsx(aY,{table:u}),o==="remove"&&((c=a==null?void 0:a.map(d=>u.getColumn(d).columnDef.header))===null||c===void 0?void 0:c.join(", "))]})}:void 0,mantineTableBodyCellProps:l,mantineTableHeadCellProps:l},Ia({header:"expand",id:"mrt-row-expand",size:o==="remove"?(t=n==null?void 0:n.size)!==null&&t!==void 0?t:180:s?r?60:70:100,tableOptions:e}))},KY=e=>{const{localization:t,rowNumberDisplayMode:n}=e,{pagination:{pageIndex:r,pageSize:o}}=e.state;return Object.assign({Cell:({renderedRowIndex:i=0,row:s})=>{var a;return((a=n==="static"?i+o*r:s.index)!==null&&a!==void 0?a:0)+1},grow:!1,Header:()=>t.rowNumber},Ia({header:"rowNumbers",id:"mrt-row-numbers",size:50,tableOptions:e}))},qY=e=>Object.assign({Cell:({row:t,table:n})=>p.jsx(oY,{row:t,table:n}),grow:!1},Ia({header:"pin",id:"mrt-row-pin",size:60,tableOptions:e})),YY=e=>{const{enableMultiRowSelection:t,enableSelectAll:n}=e;return Object.assign({Cell:({renderedRowIndex:r,row:o,table:i})=>p.jsx(Fy,{renderedRowIndex:r,row:o,table:i}),grow:!1,Header:n&&t?({table:r})=>p.jsx(Fy,{table:r}):void 0},Ia({header:"select",id:"mrt-row-select",size:n?60:70,tableOptions:e}))},XY=Object.assign({},Nf),JY={IconArrowAutofitContent:dK,IconArrowsSort:pK,IconBaselineDensityLarge:mK,IconBaselineDensityMedium:vK,IconBaselineDensitySmall:bK,IconBoxMultiple:xK,IconChevronDown:_K,IconChevronLeft:PK,IconChevronLeftPipe:EK,IconChevronRight:DK,IconChevronRightPipe:IK,IconChevronsDown:jK,IconCircleX:FK,IconClearAll:zK,IconColumns:BK,IconDeviceFloppy:UK,IconDots:qK,IconDotsVertical:WK,IconEdit:XK,IconEyeOff:QK,IconFilter:oq,IconFilterCog:eq,IconFilterOff:nq,IconGripHorizontal:sq,IconMaximize:cq,IconMinimize:pq,IconPinned:vq,IconPinnedOff:mq,IconSearch:xq,IconSearchOff:bq,IconSortAscending:Cq,IconSortDescending:Rq,IconX:kq},QY={actions:"Actions",and:"and",cancel:"Cancel",changeFilterMode:"Change filter mode",changeSearchMode:"Change search mode",clearFilter:"Clear filter",clearSearch:"
2185Clear search",clearSelection:"Clear selection",clearSort:"Clear sort",clickToCopy:"Click to copy",copy:"Copy",collapse:"Collapse",collapseAll:"Collapse all",columnActions:"Column Actions",copiedToClipboard:"Copied to clipboard",dropToGroupBy:"Drop to group by {column}",edit:"Edit",expand:"Expand",expandAll:"Expand all",filterArrIncludes:"Includes",filterArrIncludesAll:"Includes all",filterArrIncludesSome:"Includes",filterBetween:"Between",filterBetweenInclusive:"Between Inclusive",filterByColumn:"Filter by {column}",filterContains:"Contains",filterEmpty:"Empty",filterEndsWith:"Ends With",filterEquals:"Equals",filterEqualsString:"Equals",filterFuzzy:"Fuzzy",filterGreaterThan:"Greater Than",filterGreaterThanOrEqualTo:"Greater Than Or Equal To",filterInNumberRange:"Between",filterIncludesString:"Contains",filterIncludesStringSensitive:"Contains",filterLessThan:"Less Than",filterLessThanOrEqualTo:"Less Than Or Equal To",filterMode:"Filter Mode: {filterType}",filterNotEmpty:"Not Empty",filterNotEquals:"Not Equals",filterStartsWith:"Starts With",filterWeakEquals:"Equals",filteringByColumn:"Filtering by {column} - {filterType} {filterValue}",goToFirstPage:"Go to first page",goToLastPage:"Go to last page",goToNextPage:"Go to next page",goToPreviousPage:"Go to previous page",grab:"Grab",groupByColumn:"Group by {column}",groupedBy:"Grouped by ",hideAll:"Hide all",hideColumn:"Hide {column} column",max:"Max",min:"Min",move:"Move",noRecordsToDisplay:"No records to display",noResultsFound:"No results found",of:"of",or:"or",pin:"Pin",pinToLeft:"Pin to left",pinToRight:"Pin to right",resetColumnSize:"Reset column size",resetOrder:"Reset order",rowActions:"Row Actions",rowNumber:"#",rowNumbers:"Row Numbers",rowsPerPage:"Rows per page",save:"Save",search:"Search",selectedCountOfRowCountRowsSelected:"{selectedCount} of {rowCount} row(s) selected",select:"Select",showAll:"Show all",showAllColumns:"Show all columns",showHideColumns:"Show/Hide columns",showHideFilters:"Show/Hide filters",showHideSearch:"Show/Hide search",sortByColumnAsc:"Sort by {column} ascending",sortByColumnDesc:"Sort by {column} descending",sortedByColumnAsc:"Sorted by {column} ascending",sortedByColumnDesc:"Sorted by {column} descending",thenBy:", then by ",toggleDensity:"Toggle density",toggleFullScreen:"Toggle full screen",toggleSelectAll:"Toggle select all",toggleSelectRow:"Toggle select row",toggleVisibility:"Toggle visibility",ungroupByColumn:"Ungroup by {column}",unpin:"Unpin",unpinAll:"Unpin all"},ZY={filterVariant:"text",maxSize:1e3,minSize:40,size:180},qM={columnDefType:"display",enableClickToCopy:!1,enableColumnActions:!1,enableColumnDragging:!1,enableColumnFilter:!1,enableColumnOrdering:!1,enableEditing:!1,enableGlobalFilter:!1,enableGrouping:!1,enableHiding:!1,enableResizing:!1,enableSorting:!1},eX=e=>{var t,{aggregationFns:n,autoResetExpanded:r=!1,columnFilterDisplayMode:o="subheader",columnResizeDirection:i,columnResizeMode:s="onChange",createDisplayMode:a="modal",defaultColumn:l,defaultDisplayColumn:u,editDisplayMode:c="modal",enableBatchRowSelection:d=!0,enableBottomToolbar:f=!0,enableColumnActions:h=!0,enableColumnFilters:g=!0,enableColumnOrdering:v=!1,enableColumnPinning:w=!1,enableColumnResizing:b=!1,enableColumnVirtualization:y,enableDensityToggle:x=!0,enableExpandAll:R=!0,enableExpanding:k,enableFacetedValues:I=!1,enableFilterMatchHighlighting:C=!0,enableFilters:_=!0,enableFullScreenToggle:T=!0,enableGlobalFilter:P=!0,enableGlobalFilterRankedResults:M=!0,enableGrouping:O=!1,enableHeaderActionsHoverReveal:A=!1,enableHiding:V=!0,enableMultiRowSelection:z=!0,enableMultiSort:N=!0,enablePagination:F=!0,enableRowPinning:j=!1,enableRowSelection:L=!1,enableRowVirtualization:B,enableSelectAll:H=!0,enableSorting:G=!0,enableStickyHeader:ee=!1,enableTableFooter:oe=!0,enableTableHead:X=!0,enableToolbarInternalActions:J=!0,enableTopToolbar:q=!0,filterFns:ne,icons:Y,layoutMode:W,localization:se,manualFiltering:ue,manualGrouping:le,manualPagination:Re,manualSorting:ye,paginationDisplayMode:ge="default",positionActionsColumn:Le="first",positionCreatingRow:de="top",positionExpandColumn:De="first",positionGlobalFilter:Oe="right",positionPagination:Be="bottom",positionToolbarAlertBanner:wt="top",positionToolbarDropZone:Ge="top",rowNumberDis
2185playMode:he="static",rowPinningDisplayMode:xe="sticky",selectAllMode:me="page",sortingFns:ze}=e,Ee=We(e,["aggregationFns","autoResetExpanded","columnFilterDisplayMode","columnResizeDirection","columnResizeMode","createDisplayMode","defaultColumn","defaultDisplayColumn","editDisplayMode","enableBatchRowSelection","enableBottomToolbar","enableColumnActions","enableColumnFilters","enableColumnOrdering","enableColumnPinning","enableColumnResizing","enableColumnVirtualization","enableDensityToggle","enableExpandAll","enableExpanding","enableFacetedValues","enableFilterMatchHighlighting","enableFilters","enableFullScreenToggle","enableGlobalFilter","enableGlobalFilterRankedResults","enableGrouping","enableHeaderActionsHoverReveal","enableHiding","enableMultiRowSelection","enableMultiSort","enablePagination","enableRowPinning","enableRowSelection","enableRowVirtualization","enableSelectAll","enableSorting","enableStickyHeader","enableTableFooter","enableTableHead","enableToolbarInternalActions","enableTopToolbar","filterFns","icons","layoutMode","localization","manualFiltering","manualGrouping","manualPagination","manualSorting","paginationDisplayMode","positionActionsColumn","positionCreatingRow","positionExpandColumn","positionGlobalFilter","positionPagination","positionToolbarAlertBanner","positionToolbarDropZone","rowNumberDisplayMode","rowPinningDisplayMode","selectAllMode","sortingFns"]);const Ve=Er();return Y=S.useMemo(()=>Object.assign(Object.assign({},JY),Y),[Y]),se=S.useMemo(()=>Object.assign(Object.assign({},QY),se),[se]),n=S.useMemo(()=>Object.assign(Object.assign({},XY),n),[]),ne=S.useMemo(()=>Object.assign(Object.assign({},_Y),ne),[]),ze=S.useMemo(()=>Object.assign(Object.assign({},qq),ze),[]),l=S.useMemo(()=>Object.assign(Object.assign({},ZY),l),[l]),u=S.useMemo(()=>Object.assign(Object.assign({},qM),u),[u]),[y,B]=S.useMemo(()=>[y,B],[]),i||(i=Ve.dir||"ltr"),W=W||(b?"grid-no-grow":"semantic"),W==="semantic"&&(B||y)&&(W="grid"),B&&(ee=!0),F===!1&&Re===void 0&&(Re=!0),!((t=Ee.data)===null||t===void 0)&&t.length||(ue=!0,le=!0,Re=!0,ye=!0),Object.assign({aggregationFns:n,autoResetExpanded:r,columnFilterDisplayMode:o,columnResizeDirection:i,columnResizeMode:s,createDisplayMode:a,defaultColumn:l,defaultDisplayColumn:u,editDisplayMode:c,enableBatchRowSelection:d,enableBottomToolbar:f,enableColumnActions:h,enableColumnFilters:g,enableColumnOrdering:v,enableColumnPinning:w,enableColumnResizing:b,enableColumnVirtualization:y,enableDensityToggle:x,enableExpandAll:R,enableExpanding:k,enableFacetedValues:I,enableFilterMatchHighlighting:C,enableFilters:_,enableFullScreenToggle:T,enableGlobalFilter:P,enableGlobalFilterRankedResults:M,enableGrouping:O,enableHeaderActionsHoverReveal:A,enableHiding:V,enableMultiRowSelection:z,enableMultiSort:N,enablePagination:F,enableRowPinning:j,enableRowSelection:L,enableRowVirtualization:B,enableSelectAll:H,enableSorting:G,enableStickyHeader:ee,enableTableFooter:oe,enableTableHead:X,enableToolbarInternalActions:J,enableTopToolbar:q,filterFns:ne,getCoreRowModel:MG(),getExpandedRowModel:k||O?DG():void 0,getFacetedMinMaxValues:I?AG():void 0,getFacetedRowModel:I?NG():void 0,getFacetedUniqueValues:I?LG():void 0,getFilteredRowModel:g||P||_?FG():void 0,getGroupedRowModel:O?$G():void 0,getPaginationRowModel:F?VG():void 0,getSortedRowModel:G?BG():void 0,getSubRows:He=>He==null?void 0:He.subRows,icons:Y,layoutMode:W,localization:se,manualFiltering:ue,manualGrouping:le,manualPagination:Re,manualSorting:ye,paginationDisplayMode:ge,positionActionsColumn:Le,positionCreatingRow:de,positionExpandColumn:De,positionGlobalFilter:Oe,positionPagination:Be,positionToolbarAlertBanner:wt,positionToolbarDropZone:Ge,rowNumberDisplayMode:he,rowPinningDisplayMode:xe,selectAllMode:me,sortingFns:ze},Ee)},Zg={children:null,style:{minWidth:0,padding:0,width:0}},tX=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Ia({id:"mrt-row-spacer",size:0,tableOptions:e})),{grow:!0}),qM),{mantineTableBodyCellProps:Zg,mantineTableFooterCellProps:Zg,mantineTableHeadCellProps:Zg}),nX=e=>{const{getIsSomeRowsPinned:t,getPrePaginationRowModel:n,getState:r,options:{enablePagination:o,enableRowPinning:i,rowCount:s}}=e,{columnOrder:a,density:l,globalFilter:u,isFullScreen:c,isLoading:d,pagination:f,showSkeletons:h,sorting:g}=r(),v=e.options.columns.length,w=s??n().rows.length,b=S.useReducer(()=>({}),{})[1],y=S.useRef(),x=S.useRef();S.useEffect(()=>{typeof window<"u"&&(y.current=document.body.style.height)},[]),S.useEffect(()=>{if(typeof window<"u")if(c)x.current=document.body.getBoundingClientRect().top,document.body.style.height="100dvh";else{if(document.body.style.height=y.current,!x.current)return;window.scrollTo({behavior:"instant",top:-1*x.current})}},[c]),S.useEffect(()=>{v!==a.length&&e.setColumnOrder(Qw(e.options))},[v]),S.useEffect(()=>{if(!o||d||h)return;const{pageIndex:k,pageSize:I}=f,C=k*I;C>=w&&C>0&&e.setPageIndex(Math.ceil(w/I)-1)},[w]);const R=S.useRef(g);S.useEffect(()=>{g.length&&(R.current=g)},[g]),S.useEffect(()=>{_M(e)&&(u?e.setSorting([]):e.setSorting(()=>R.current||[]))},[u]),S.useEffect(()=>{i&&t()&&setTimeout(()=>{b()},150)},[l])},rX=e=>{var t,n,r,o,i,s,a,l,u,c,d,f,h,g,v,w,b,y,x,R,k,I,C,_,T,P,M,O,A,V,z,N,F;const j=S.useRef(null),L=S.useRef(null),B=S.useRef({}),H=S.useRef({}),G=S.useRef(null),ee=S.useRef(null),oe=S.useRef({}),X=S.useRef(null),J=S.useRef(null),q=S.useRef(null),ne=S.useRef(null),Y=S.useMemo(()=>{var U,K,Z;const ce=(U=e.initialState)!==null&&U!==void 0?U:{};return ce.columnOrder=(K=ce.columnOrder)!==null&&K!==void 0?K:Qw(Object.assign(Object.assign({},e),{state:Object.assign(Object.assign({},e.initialState),e.state)})),ce.globalFilterFn=(Z=e.globalFilterFn)!==null&&Z!==void 0?Z:"fuzzy",ce},[]);e.initialState=Y;const[W,se]=S.useState((t=Y.creatingRow)!==null&&t!==void 0?t:null),[ue,le]=S.useState(()=>Object.assign({},...Fp(e.columns).map(U=>{var K,Z,ce,we;return{[Cl(U)]:U.filterFn instanceof Function?(K=U.filterFn.name)!==null&&K!==void 0?K:"custom":(we=(Z=U.filterFn)!==null&&Z!==void 0?Z:(ce=Y==null?void 0:Y.columnFilterFns)===null||ce===void 0?void 0:ce[Cl(U)])!==null&&we!==void 0?we:lY(U)}}))),[Re,ye]=S.useState((n=Y.columnOrder)!==null&&n!==void 0?n:[]),[ge,Le]=S.useState((r=Y.columnSizingInfo)!==null&&r!==void 0?r:{}),[de,De]=S.useState((o=Y==null?void 0:Y.density)!==null&&o!==void 0?o:"md"),[Oe,Be]=S.useState((i=Y.draggingColumn)!==null&&i!==void 0?i:null),[wt,Ge]=S.useState((s=Y.draggingRow)!==null&&s!==void 0?s:null),[he,xe]=S.useState((a=Y.editingCell)!==null&&a!==void 0?a:null),[me,ze]=S.useState((l=Y.editingRow)!==null&&l!==void 0?l:null),[Ee,Ve]=S.useState((u=Y.globalFilterFn)!==null&&u!==void 0?u:"fuzzy"),[He,Ue]=S.useState((c=Y.grouping)!==null&&c!==void 0?c:[]),[xt,Et]=S.useState((d=Y.hoveredColumn)!==null&&d!==void 0?d:null),[zt,rt]=S.useState((f=Y.hoveredRow)!==null&&f!==void 0?f:null),[Wt,an]=S.useState((h=Y==null?void 0:Y.isFullScreen)!==null&&h!==void 0?h:!1),[dr,Xn]=S.useState((g=Y==null?void 0:Y.pagination)!==null&&g!==void 0?g:{pageIndex:0,pageSize:10}),[Zt,bn]=S.useState((v=Y==null?void 0:Y.showAlertBanner)!==null&&v!==void 0?v:!1),[ln,Vt]=S.useState((w=Y==null?void 0:Y.showColumnFilters)!==null&&w!==void 0?w:!1),[zn,$o]=S.useState((b=Y==null?void 0:Y.showGlobalFilter)!==null&&b!==void 0?b:!1),[Tr,gt]=S.useState((y=Y==null?void 0:Y.showToolbarDropZone)!==null&&y!==void 0?y:!1);e.state=Object.assign({columnFilterFns:ue,columnOrder:Re,columnSizingInfo:ge,creatingRow:W,density:de,draggingColumn:Oe,draggingRow:wt,editingCell:he,editingRow:me,globalFilterFn:Ee,grouping:He,hoveredColumn:xt,hoveredRow:zt,isFullScreen:Wt,pagination:dr,showAlertBanner:Zt,showColumnFilters:ln,showGlobalFilter:zn,showToolbarDropZone:Tr},e.state);const be=e,fr=S.useRef([]);be.columns=be.state.columnSizingInfo.isResizingColumn||be.state.draggingColumn||be.state.draggingRow?fr.current:kM({columnDefs:[...[DM(be)&&qY(be),AM(be)&&GY(be),Jw(be)&&UY(be),Xw(be)&&WY(be),jM(be)&&YY(be),OM(be)&&KY(be)].filter(
2185Boolean),...be.columns,...[NM(be)&&tX(be)].filter(Boolean)],tableOptions:be}),fr.current=be.columns,be.data=S.useMemo(()=>(be.state.isLoading||be.state.showSkeletons)&&!be.data.length?[...Array(Math.min(be.state.pagination.pageSize,20)).fill(null)].map(()=>Object.assign({},...Fp(be.columns).map(U=>({[Cl(U)]:null})))):be.data,[be.data,be.state.isLoading,be.state.showSkeletons]);const et=HG(Object.assign(Object.assign({onColumnOrderChange:ye,onColumnSizingInfoChange:Le,onGroupingChange:Ue,onPaginationChange:Xn},be),{globalFilterFn:(x=be.filterFns)===null||x===void 0?void 0:x[Ee??"fuzzy"]}));return et.refs={bottomToolbarRef:L,editInputRefs:B,filterInputRefs:H,lastSelectedRowId:j,searchInputRef:G,tableContainerRef:ee,tableFooterRef:ne,tableHeadCellRefs:oe,tableHeadRef:q,tablePaperRef:X,topToolbarRef:J},et.setCreatingRow=U=>{let K=U;U===!0&&(K=HY(et)),be!=null&&be.onCreatingRowChange?be.onCreatingRowChange(K):se(K)},et.setColumnFilterFns=(R=be.onColumnFilterFnsChange)!==null&&R!==void 0?R:le,et.setDensity=(k=be.onDensityChange)!==null&&k!==void 0?k:De,et.setDraggingColumn=(I=be.onDraggingColumnChange)!==null&&I!==void 0?I:Be,et.setDraggingRow=(C=be.onDraggingRowChange)!==null&&C!==void 0?C:Ge,et.setEditingCell=(_=be.onEditingCellChange)!==null&&_!==void 0?_:xe,et.setEditingRow=(T=be.onEditingRowChange)!==null&&T!==void 0?T:ze,et.setGlobalFilterFn=(P=be.onGlobalFilterFnChange)!==null&&P!==void 0?P:Ve,et.setHoveredColumn=(M=be.onHoveredColumnChange)!==null&&M!==void 0?M:Et,et.setHoveredRow=(O=be.onHoveredRowChange)!==null&&O!==void 0?O:rt,et.setIsFullScreen=(A=be.onIsFullScreenChange)!==null&&A!==void 0?A:an,et.setShowAlertBanner=(V=be.onShowAlertBannerChange)!==null&&V!==void 0?V:bn,et.setShowColumnFilters=(z=be.onShowColumnFiltersChange)!==null&&z!==void 0?z:Vt,et.setShowGlobalFilter=(N=be.onShowGlobalFilterChange)!==null&&N!==void 0?N:$o,et.setShowToolbarDropZone=(F=be.onShowToolbarDropZoneChange)!==null&&F!==void 0?F:gt,nX(et),et},oX=e=>rX(eX(e));var iX={root:"MRT_TablePaper-module_root__q0v5L"},ev={root:"MRT_TableContainer-module_root__JIsGB","root-sticky":"MRT_TableContainer-module_root-sticky__uC4qx","root-fullscreen":"MRT_TableContainer-module_root-fullscreen__aM8Jg"},Q_={root:"MRT_Table-module_root__ms2uS","root-grid":"MRT_Table-module_root-grid__2Pynz"};const sX=e=>{var t,n,r,o;const{getLeftLeafColumns:i,getRightLeafColumns:s,getState:a,getVisibleLeafColumns:l,options:{columnVirtualizerInstanceRef:u,columnVirtualizerOptions:c,enableColumnPinning:d,enableColumnVirtualization:f},refs:{tableContainerRef:h}}=e,{columnPinning:g,draggingColumn:v}=a();if(!f)return;const w=_e(c,{table:e}),b=l(),[y,x]=S.useMemo(()=>d?[i().map(P=>P.getPinnedIndex()),s().map(P=>b.length-P.getPinnedIndex()-1).sort((P,M)=>P-M)]:[[],[]],[b.length,g,d]),R=y.length,k=x.length,I=S.useMemo(()=>v!=null&&v.id?b.findIndex(P=>P.id===(v==null?void 0:v.id)):void 0,[v==null?void 0:v.id]),C=eM(Object.assign({count:b.length,estimateSize:P=>b[P].getSize(),getScrollElement:()=>h.current,horizontal:!0,overscan:3,rangeExtractor:S.useCallback(P=>{const M=EM(P,I);return!R&&!k?M:[...new Set([...y,...M,...x])]},[y,x,I])},w)),_=C.getVirtualItems();C.virtualColumns=_;const T=_.length;if(T){const P=C.getTotalSize(),M=((t=_[R])===null||t===void 0?void 0:t.start)||0,O=((n=_[y.length-1])===null||n===void 0?void 0:n.end)||0,A=((r=_[T-k])===null||r===void 0?void 0:r.start)||0,V=((o=_[T-k-1])===null||o===void 0?void 0:o.end)||0;C.virtualPaddingLeft=M-O,C.virtualPaddingRight=P-V-(k?P-A:0)}return u&&(u.current=C),C},aX=e=>{var{table:t}=e,n=We(e,["table"]);const{getFlatHeaders:r,getState:o,options:{columns:i,enableTableFooter:s,enableTableHead:a,layoutMode:l,mantineTableProps:u,memoMode:c}}=t,{columnSizing:d,columnSizingInfo:f,columnVisibility:h,density:g}=o(),v=Object.assign(Object.assign({highlightOnHover:!0,horizontalSpacing:g,verticalSpacing:g},_e(u,{table:t})),n),w=S.useMemo(()=>{const k=r(),I={};for(let C=0;C<k.length;C++){const _=k[C],T=_.getSize();I[`--header-${lo(_.id)}-size`]=T,I[`--col-${lo(_.column.id)}-size`]=T}return I},[i,d,f,h]),y={columnVirtualizer:sX(t),table:t},{colorScheme:x}=lL(),{stripedColor:R}=v;return p.jsxs(Wr,Object.assign({className:Ce("mrt-table",Q_.root,(l==null?void 0:l.startsWith("grid"))&&Q_["root-grid"],v.className)},v,{__vars:Object.assign(Object.assign(Object.assign({},w),{"--mrt-striped-row-background-color":R,"--mrt-striped-row-hover-background-color":R?x==="dark"?aL(R,.08):Gu(R,.12):void 0}),v.__vars),children:[a&&p.jsx(BY,Object.assign({},y)),c==="table-body"||f.isResizingColumn?p.jsx(tY,Object.assign({},y,{tableProps:v})):p.jsx(TM,Object.assign({},y,{tableProps:v})),s&&p.jsx(SY,Object.assign({},y))]}))},lX=e=>{var t,{open:n,table:r}=e,o=We(e,["open","table"]);const{getState:i,options:{mantineCreateRowModalProps:s,mantineEditRowModalProps:a,onCreatingRowCancel:l,onEditingRowCancel:u,renderCreateRowModalContent:c,renderEditRowModalContent:d},setCreatingRow:f,setEditingRow:h}=r,{creatingRow:g,editingRow:v}=i(),w=g??v,b={row:w,table:r},y=Object.assign(Object.assign(Object.assign({},_e(a,b)),g&&_e(s,b)),o),x=w.getAllCells().filter(k=>k.column.columnDef.columnDefType==="data").map(k=>p.jsx(vm,{cell:k,table:r},k.id)),R=()=>{var k;g?(l==null||l({row:w,table:r}),f(null)):(u==null||u({row:w,table:r}),h(null)),w._valuesCache={},(k=y.onClose)===null||k===void 0||k.call(y)};return S.createElement(cr,Object.assign({opened:n,withCloseButton:!1},y,{key:w.id,onClose:R}),(t=g&&(c==null?void 0:c({internalEditComponents:x,row:w,table:r}))||(d==null?void 0:d({internalEditComponents:x,row:w,table:r})))!==null&&t!==void 0?t:p.jsxs(p.Fragment,{children:[p.jsx("form",{onSubmit:k=>k.preventDefault(),children:p.jsx(Ze,{gap:"lg",pb:24,pt:16,children:x})}),p.jsx(Yt,{justify:"flex-end",children:p.jsx(PM,{row:w,table:r,variant:"text"})})]}))},uX=typeof window<"u"?S.useLayoutEffect:S.useEffect,cX=e=>{var{table:t}=e,n=We(e,["table"]);const{getState:r,options:{createDisplayMode:o,editDisplayMode:i,enableStickyHeader:s,mantineLoadingOverlayProps:a,mantineTableContainerProps:l},refs:{bottomToolbarRef:u,tableContainerRef:c,topToolbarRef:d}}=t,{creatingRow:f,editingRow:h,isFullScreen:g,isLoading:v,showLoadingOverlay:w}=r(),[b,y]=S.useState(0),x=Object.assign(Object.assign({},_e(l,{table:t})),n),R=_e(a,{table:t});uX(()=>{var C,_,T,P;const M=typeof document<"u"&&(_=(C=d.current)===null||C===void 0?void 0:C.offsetHeight)!==null&&_!==void 0?_:0,O=typeof document<"u"&&(P=(T=u==null?void 0:u.current)===null||T===void 0?void 0:T.offsetHeight)!==null&&P!==void 0?P:0;y(M+O)});const k=o==="modal"&&f,I=i==="modal"&&h;return p.jsxs(te,Object.assign({},x,{__vars:Object.assign({"--mrt-top-toolbar-height":`${b}`},x==null?void 0:x.__vars),className:Ce("mrt-table-container",ev.root,s&&ev["root-sticky"],g&&ev["root-fullscreen"],x==null?void 0:x.className),ref:C=>{C&&(c.current=C,x!=null&&x.ref&&(x.ref.current=C))},children:[p.jsx(kh,Object.assign({visible:v||w,zIndex:2},R)),p.jsx(aX,{table:t}),(k||I)&&p.jsx(lX,{open:!0,table:t})]}))};
2185var YM={"common-toolbar-styles":"common-styles-module_common-toolbar-styles__DnjR8"},$u={root:"MRT_BottomToolbar-module_root__VDeWo","root-fullscreen":"MRT_BottomToolbar-module_root-fullscreen__esE15","custom-toolbar-container":"MRT_BottomToolbar-module_custom-toolbar-container__XcDRF","paginator-container":"MRT_BottomToolbar-module_paginator-container__A3eWY","paginator-container-alert-banner":"MRT_BottomToolbar-module_paginator-container-alert-banner__gyqtO"},Z_={collapse:"MRT_ProgressBar-module_collapse__rOLJH","collapse-top":"MRT_ProgressBar-module_collapse-top__oCi0h"};const XM=e=>{var{isTopToolbar:t,table:n}=e,r=We(e,["isTopToolbar","table"]);const{getState:o,options:{mantineProgressProps:i}}=n,{isSaving:s,showProgressBars:a}=o(),l=Object.assign(Object.assign({},_e(i,{isTopToolbar:t,table:n})),r);return p.jsx(Yl,{className:Ce(Z_.collapse,t&&Z_["collapse-top"]),in:s||a,children:p.jsx(ru,Object.assign({animated:!0,"aria-busy":"true","aria-label":"Loading",radius:0,value:100},l))})};var tv={root:"MRT_TablePagination-module_root__yZ8pm",pagesize:"MRT_TablePagination-module_pagesize__-vmTn","with-top-margin":"MRT_TablePagination-module_with-top-margin__aM5-m"};const eR=[5,10,15,20,25,30,50,100].map(e=>e.toString()),JM=e=>{var t,{position:n="bottom",table:r}=e,o=We(e,["position","table"]);const{getPrePaginationRowModel:i,getState:s,options:{enableToolbarInternalActions:a,icons:{IconChevronLeft:l,IconChevronLeftPipe:u,IconChevronRight:c,IconChevronRightPipe:d},localization:f,mantinePaginationProps:h,paginationDisplayMode:g,rowCount:v},setPageIndex:w,setPageSize:b}=r,{pagination:{pageIndex:y=0,pageSize:x=10},showGlobalFilter:R}=s(),k=Object.assign(Object.assign({},_e(h,{table:r})),o),I=v??i().rows.length,C=Math.ceil(I/x),_=C>2,T=y*x,P=Math.min(y*x+x,I),M=k??{},{rowsPerPageOptions:O=eR,showRowsPerPage:A=!0,withEdges:V=_}=M,z=We(M,["rowsPerPageOptions","showRowsPerPage","withEdges"]),N=n==="top"&&a&&!R;return p.jsxs(te,{className:Ce("mrt-table-pagination",tv.root,N&&tv["with-top-margin"]),children:[(k==null?void 0:k.showRowsPerPage)!==!1&&p.jsxs(mt,{gap:"xs",children:[p.jsx(nt,{id:"rpp-label",children:f.rowsPerPage}),p.jsx(iu,{allowDeselect:!1,"aria-labelledby":"rpp-label",className:tv.pagesize,data:(t=k==null?void 0:k.rowsPerPageOptions)!==null&&t!==void 0?t:eR,onChange:F=>b(+F),value:x.toString()})]}),g==="pages"?p.jsx(mo,Object.assign({firstIcon:u,lastIcon:d,nextIcon:c,onChange:F=>w(F-1),previousIcon:l,total:C,value:y+1,withEdges:V},z)):g==="default"?p.jsxs(p.Fragment,{children:[p.jsx(nt,{children:`${P===0?0:(T+1).toLocaleString()}-${P.toLocaleString()} ${f.of} ${I.toLocaleString()}`}),p.jsxs(mt,{gap:6,children:[V&&p.jsx(lt,{"aria-label":f.goToFirstPage,color:"gray",disabled:y<=0,onClick:()=>w(0),variant:"subtle",children:p.jsx(u,{})}),p.jsx(lt,{"aria-label":f.goToPreviousPage,color:"gray",disabled:y<=0,onClick:()=>w(y-1),variant:"subtle",children:p.jsx(l,{})}),p.jsx(lt,{"aria-label":f.goToNextPage,color:"gray",disabled:P>=I,onClick:()=>w(y+1),variant:"subtle",children:p.jsx(c,{})}),V&&p.jsx(lt,{"aria-label":f.goToLastPage,color:"gray",disabled:P>=I,onClick:()=>w(C-1),variant:"subtle",children:p.jsx(d,{})})]})]}):null]})};var tR={root:"MRT_ToolbarDropZone-module_root__eGTXb",hovered:"MRT_ToolbarDropZone-module_hovered__g7PeJ"};const QM=e=>{var{table:t}=e,n=We(e,["table"]);const{getState:r,options:{enableGrouping:o,localization:i},setHoveredColumn:s,setShowToolbarDropZone:a}=t,{draggingColumn:l,grouping:u,hoveredColumn:c,showToolbarDropZone:d}=r(),f=h=>{s({id:"drop-zone"})};return S.useEffect(()=>{var h;((h=t.options.state)===null||h===void 0?void 0:h.showToolbarDropZone)!==void 0&&a(!!o&&!!l&&l.columnDef.enableGrouping!==!1&&!u.includes(l.id))},[o,l,u]),p.jsx(Br,{mounted:d,transition:"fade",children:()=>{var h,g;return p.jsx(Yt,Object.assign({className:Ce("mrt-toolbar-dropzone",tR.root,(c==null?void 0:c.id)==="drop-zone"&&tR.hovered),onDragEnter:f},n,{children:p.jsx(nt,{children:i.dropToGroupBy.replace("{column}",(g=(h=l==null?void 0:l.columnDef)===null||h===void 0?void 0:h.header)!==null&&g!==void 0?g:"")})}))}})},dX=e=>{var{table:t}=e,n=We(e,["table"]);const{getState:r,options:{enablePagination:o,mantineBottomToolbarProps:i,positionPagination:s,positionToolbarAlertBanner:a,positionToolbarDropZone:l,renderBottomToolbarCustomActions:u},refs:{bottomToolbarRef:c}}=t,{isFullScreen:d}=r(),f=Eo("(max-width: 720px)"),h=Object.assign(Object.assign({},_e(i,{table:t})),n),g=f||!!u;return p.jsxs(te,Object.assign({},h,{className:Ce("mrt-bottom-toolbar",$u.root,YM["common-toolbar-styles"],d&&$u["root-fullscreen"],h==null?void 0:h.className),ref:v=>{v&&(c.current=v,h!=null&&h.ref&&(h.ref.current=v))},children:[p.jsx(XM,{isTopToolbar:!1,table:t}),a==="bottom"&&p.jsx(nx,{stackAlertBanner:g,table:t}),["both","bottom"].includes(l??"")&&p.jsx(QM,{table:t}),p.jsxs(te,{className:$u["custom-toolbar-container"],children:[u?u({table:t}):p.jsx("span",{}),p.jsx(te,{className:Ce($u["paginator-container"],g&&$u["paginator-container-alert-banner"]),children:o&&["both","bottom"].includes(s??"")&&p.jsx(JM,{position:"bottom",table:t})})]})]}))};var cf={root:"MRT_TopToolbar-module_root__r4-V9","root-fullscreen":"MRT_TopToolbar-module_root-fullscreen__3itT8","actions-container":"MRT_TopToolbar-module_actions-container__-uL0u","actions-container-stack-alert":"MRT_TopToolbar-module_actions-container-stack-alert__OYDL6"},fX={root:"MRT_ToolbarInternalButtons-module_root__NKoUG"};const pX=e=>{var t,{table:n}=e,r=We(e,["table"]);const{options:{columnFilterDisplayMode:o,enableColumnFilters:i,enableColumnOrdering:s,enableColumnPinning:a,enableDensityToggle:l,enableFilters:u,enableFullScreenToggle:c,enableGlobalFilter:d,enableHiding:f,initialState:h,renderToolbarInternalActions:g}}=n;return p.jsx(Yt,Object.assign({},r,{className:Ce("mrt-toolbar-internal-buttons",fX.root,r==null?void 0:r.className),children:(t=g==null?void 0:g({table:n}))!==null&&t!==void 0?t:p.jsxs(p.Fragment,{children:[u&&d&&!(h!=null&&h.showGlobalFilter)&&p.jsx(vY,{table:n}),u&&i&&o!=="popover"&&p.jsx(mY,{table:n}),(f||s||a)&&p.jsx(fY,{table:n}),l&&p.jsx(hY,{table:n}),c&&p.jsx(gY,{table:n})]})}))},hX=e=>{var t,{table:n}=e,r=We(e,["table"]);const{getState:o,options:{enableGlobalFilter:i,enablePagination:s,enableToolbarInternalActions:a,mantineTopToolbarProps:l,positionGlobalFilter:u,positionPagination:c,positionToolbarAlertBanner:d,positionToolbarDropZone:f,renderTopToolbarCustomActions:h},refs:{topToolbarRef:g}}=n,{isFullScreen:v,showGlobalFilter:w}=o(),b=Eo("(max-width:720px)"),y=Eo("(max-width:1024px)"),x=Object.assign(Object.assign({},_e(l,{table:n})),r),R=b||!!h||w&&y,k={style:y?void 0:{zIndex:3},table:n};return p.jsxs(te,Object.assign({},x,{className:Ce(YM["common-toolbar-styles"],cf.root,v&&cf["root-fullscreen"],x==null?void 0:x.className),ref:I=>{I&&(g.current=I,x!=null&&x.ref&&(x.ref.current=I))},children:[d==="top"&&p.jsx(nx,{stackAlertBanner:R,table:n}),["both","top"].includes(f??"")&&p.jsx(QM,{table:n}),p.jsxs(Yt,{className:Ce(cf["actions-container"],R&&cf["actions-container-stack-alert"]),children:[i&&u==="left"&&p.jsx(Qg,Object.assign({},k)),(t=h==null?void 0:h({table:n}))!==null&&t!==void 0?t:p.jsx("span",{}),a?p.jsxs(Yt,{justify:"end",wrap:"wrap-reverse",children:[i&&u==="right"&&p.jsx(Qg,Object.assign({},k)),p.jsx(pX,{table:n})]}):i&&u==="right"&&p.jsx(Qg,Object.assign({},k))]}),s&&["both","top"].includes(c??"")&&p.jsx(Yt,{justify:"end",children:p.jsx(JM,{position:"top",table:n})}),p.jsx(XM,{isTopToolbar:!0,table:n})]}))},mX=e=>{var t,n,{table:r}=e,o=We(e,["table"]);const{getState:i,options:{enableBottomToolbar:s,enableTopToolbar:a,mantinePaperProps:l,renderBottomToolbar:u,renderTopToolbar:c},refs:{tablePaperRef:d}}=r,{isFullScreen:f}=i(),h=Object.assign(Object.assign({},_e(l,{table:r})),o);return p.jsxs(Xc,Object.assign({shadow:"xs",withBorder:!0},h,{className:Ce("mrt-table-paper",iX.root,f&&"mrt-table-paper-fullscreen",h==null?void 0:h.className),ref:g=>{d.current=g,h!=null&&h.ref&&(h.ref.current=g)},style:g=>Object.assign(Object.assign({zIndex:f?200:void 0},_e(h==null?void 0:h.style,g)),f?{border:0,borderRadius:0,bottom:0,height:"100vh",left:0,margin:0,maxHeight:"100vh",maxWidth:"100vw",padding:0,position:"fixed",right:0,top:0,width:"100vw"}:null),children:[a&&((t=_e(c,{table:r}))!==null&&t!==void 0?t:p.jsx(hX,{table:r})),p.jsx(cX,{table:r}),s&&((n=_e(u,{table:r}))!==null&&n!==void 0?n:p.jsx(dX,{table:r}))]}))},gX=e=>e.table!==void 0,ZM=e=>{let t;return gX(e)?t=e.table:t=oX(e),p.jsx(mX,{table:t})},vX={actions:"Ações",and:"e",cancel:"Cancelar",changeFilterMode:"Alterar o modo de filtro",changeSearchMode:"Alterar o modo de pesquisa",clearFilter:"Limpar filtros",clearSearch:"Limpar pesquisa",clearSelection:"Limpar seleção",clearSort:"Limpar classificações",clickToCopy:"Clique para copiar",copy:"Copiar",collapse:"Recolher",collapseAll:"Recolher tudo",columnActions:"Ações das colunas",copiedToClipboard:"Copiado para área de transferência",dropToGroupBy:"Solte para agrupar por {column}",edit:"Editar",expand:"Expandir",expandAll:"Expandir tudo",filterArrIncludes:"Inclui",filterArrIncludesAll:"Incluir tudo",filterArrIncludesSome:"Inclui alguns",filterBetween:"Entre",filterBetweenInclusive:"Entre valores incluídos",filterByColumn:"Filtrar por {column}",filterContains:"Contém",filterEmpty:"vazio",filterEndsWith:"Termina com",filterEquals:"Igual",filterEqualsString:"Igual",filterFuzzy:"Impreciso",filterGreaterThan:"Maior que",filterGreaterThanOrEqualTo:"Maior ou igual que",f
2185ilterInNumberRange:"Entre",filterIncludesString:"Contém",filterIncludesStringSensitive:"Contém",filterLessThan:"Menor que",filterLessThanOrEqualTo:"Menor ou igual que",filterMode:"Modo de filtro: {filterType}",filterNotEmpty:"Não é vazio",filterNotEquals:"Não é igual",filterStartsWith:"Começa com",filterWeakEquals:"Igual",filteringByColumn:"Filtrando por {column} - {filterType} {filterValue}",goToFirstPage:"Ir para a primeira página",goToLastPage:"Ir para a última página",goToNextPage:"Ir para a próxima página",goToPreviousPage:"Ir para a página anterior",grab:"Agarrar",groupByColumn:"Agrupar por {column}",groupedBy:"Agrupado por ",hideAll:"Ocultar tudo",hideColumn:"Ocultar coluna {column}",max:"Max",min:"Min",move:"Mover",noRecordsToDisplay:"Não há registros a serem exibidos",noResultsFound:"Nenhum resultado encontrado",of:"de",or:"ou",pin:"Fixar",pinToLeft:"Fixar à esquerda",pinToRight:"Fixar à direita",resetColumnSize:"Restaurar tamanho da coluna",resetOrder:"Restaurar ordem",rowActions:"Ações da linha",rowNumber:"#",rowNumbers:"Número da linha",rowsPerPage:"Linhas por página",save:"Salvar",search:"Pesquisar",selectedCountOfRowCountRowsSelected:"{selectedCount} de {rowCount} linha(s) selecionada(s)",select:"Selecionar",showAll:"Mostrar tudo",showAllColumns:"Mostrar todas as colunas",showHideColumns:"Mostrar/Ocultar colunas",showHideFilters:"Mostrar/Ocultar filtros",showHideSearch:"Mostrar/Ocultar barra de pesquisa",sortByColumnAsc:"Ordenar por {column} em ascendente",sortByColumnDesc:"Ordenar por {column} em descendente",sortedByColumnAsc:"Ordenado por {column} em ascendente",sortedByColumnDesc:"Ordenado por {column} em descendente",thenBy:", depois por ",toggleDensity:"Alternar densidade",toggleFullScreen:"Alternar tela cheia",toggleSelectAll:"Alternar selecionar tudo",toggleSelectRow:"Alternar seleção da linha",toggleVisibility:"Alternar visibilidade",ungroupByColumn:"Desagrupar por {column}",unpin:"Desfixar",unpinAll:"Desfixar tudo"};var yX=vX;const bX=[{rating:5,name:"Memetopia",link:"https://memetopia.web.app",description:"Gerador memes com IA",inputs:["image"],outputs:["image"],businessModels:["free","freeCredits"],examples:[{type:"image",src:"/memetopia/exemplo-tcg-keanu.png",description:"Carta de Magic engraçada desenhada a partir de uma foto."},{type:"image",src:"/memetopia/exemplo-image-macro-gato.png",description:"Texto gerado por IA e posicionado automaticamente em cima da imagem fornecida."}],author:"Simplesmente IA",authorLink:"https://simplesmenteia.web.app",reviewedAt:"2025-04-07"},{rating:5,name:"ComfyUI",link:"https://comfy.org",description:"Interface gráfica e plataforma para executar IAs de todos os tipos.",inputs:["multimodal"],outputs:["multimodal"],businessModels:["openSource"],examples:[],reviewedAt:"2025-04-24",author:"Comfy.org",authorLink:"https://comfy.org/"},{rating:5,name:"Qwen Image Edit",link:"https://huggingface.co/Qwen/Qwen-Image-Edit-2509",description:"Família de modelos para edição de imagens. Disponível nas versões padrão, 2509 e 2511.",inputs:["text","image"],outputs:["image"],businessModels:["openWeights"],examples:[{type:"image",src:"/home/consistency.png",description:"Manter consistência de personagens."},{type:"image",src:"/home/inpainting-virtual-try-on.png",description:"Trocar de roupa."},{type:"image",src:"/home/relight.png",description:"Editar fundo e iluminação da imagem."},{type:"image",src:"/home/restore.png",description:"Restauração de imagem antiga ou danificada."},{type:"image",src:"/home/ghibli.png",description:"Transformar foto em estilo Studio Ghibli."},{type:"image",src:"/home/real-to-anime.png",description:"Transformar sua foto em anime."},{type:"image",src:"/home/anime-to-real.png",description:"Transformar de ilustração para foto realista."}],reviewedAt:"2025-12-31",author:"Qwen",authorLink:"https://qwen.ai/"},{rating:5,name:"Z-Image",link:"https://huggingface.co/Tongyi-MAI/Z-Image-Turbo",description:"Família de modelos de imagem. Leve e de alta qualidade. Modelos: Turbo e Normal (Omni Base e Edit ainda em desenvolvimento).",inputs:["text","image"],outputs:["image"],businessModels:["openWeights"],examples:[{type:"image",src:"/home/realistic.png",description:"Fotos realistas com Z-Image Turbo."},{type:"image",src:"/home/prompts.png",description:"Renderização de texto com Z-Image Turbo."}
2185],reviewedAt:"2025-12-23",author:"Qwen Tongyi-MAI Lab",authorLink:"https://qwen.ai/"},{rating:5,name:"Flux.2",link:"https://huggingface.co/black-forest-labs/FLUX.2-dev",description:"Família de modelos de criação e edição de imagens. Modelos: Flux.2 Dev, Flux.2 Klein (4B e 9B). APIs pagas também disponíveis.",inputs:["text","image"],outputs:["image"],businessModels:["openWeights"],examples:[],reviewedAt:"2026-01-31",author:"Black Forest Labs",authorLink:"https://blackforestlabs.ai/"},{rating:5,name:"Runpod",link:"https://runpod.io/?ref=bytju08u",description:"Plataforma para aluguel de GPUs poderosas para IA.",inputs:[],outputs:["gpuRental"],businessModels:["onDemand"],examples:[],reviewedAt:"2025-04-18"},{rating:4,name:"Vast.ai",link:"https://cloud.vast.ai/?ref_id=219092",description:"Plataforma para aluguel de GPUs poderosas para IA.",inputs:[],outputs:["gpuRental"],businessModels:["onDemand"],examples:[],reviewedAt:"2025-04-18"},{rating:4,name:"Fooocus",link:"https://github.com/lllyasviel/Fooocus",description:"Interface gráfica para rodar Stable Diffusion XL.",inputs:["text","image"],outputs:["image"],businessModels:["openSource"],examples:[],reviewedAt:"2025-04-24"},{rating:4,name:"Forge",link:"https://github.com/lllyasviel/stable-diffusion-webui-forge/",description:"Interface gráfica para rodar IAs de imagens.",inputs:["text","image"],outputs:["image"],businessModels:["openSource"],examples:[],reviewedAt:"2025-04-24"},{rating:4,name:"Flux.1",link:"https://huggingface.co/black-forest-labs/FLUX.1-dev",description:"Família de checkpoints de imagens de arquitetura Transformer. Modelos: Flux 1 Dev, Flux 1 Schnell, Flux 1 Dev Krea. APIs pagas também disponíveis (Pro, Ultra, etc).",inputs:["text","image"],outputs:["image"],businessModels:["openWeights"],examples:[{type:"image",src:"/home/pro-photo.png",description:"Fotos profissionais realistas com Flux.1 Dev Krea."}],reviewedAt:"2025-04-05",author:"Black Forest Labs",authorLink:"https://blackforestlabs.ai/"},{rating:4,name:"Chroma",link:"https://huggingface.co/lodestones/Chroma",description:"Família de finetunes de modelos de imagens. Possui várias versões, baseadas no Flux.1 Schnell, Flux.2 Klein 4B, Z-Image, etc.",inputs:["text","image"],outputs:["image"],businessModels:["openWeights"],examples:[],license:"Apache-2.0",reviewedAt:"2026-01-31",author:"Lodestones"},{rating:4,name:"Flux Kontext Dev",link:"https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev",description:"Família de checkpoints para edição de imagens. Modelos: Flux Kontext Dev. APIs pagas: Flux Kontext Pro e Max.",inputs:["text","image"],outputs:["image"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-07-07",author:"Black Forest Labs",authorLink:"https://blackforestlabs.ai/"},{rating:4,name:"Stable Diffusion",link:"https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0",description:"Família de checkpoints de imagens de arquitetura Diffusion. Modelos: SD 1.5, SDXL, SD 3.5 (Medium e Large), SD Cascade, SD 2.1.",inputs:["text","image"],outputs:["image"],businessModels:["openWeights"],examples:[{type:"image",src:"/home/anime.png",description:"Criação de imagens de anime."},{type:"image",src:"/home/pixel-art-lora.png",description:"Finetunes especializados em pixel art."},{type:"image",src:"/home/controlnet.png",description:"Suporte a modelos ControlNet para controlar a estrutura das gerações."}],reviewedAt:"2025-04-05",author:"Stability AI",authorLink:"https://stability.ai/"},{rating:5,name:"CivitAI",description:"Repositório de modelos de IA variados - Stable Diffusion, Flux, LoRAs, ControlNet, Hunyuan, Wan2.1, etc.",link:"https://civitai.com/",inputs:["text","image"],outputs:["image"],businessModels:["freeCredits","purchaseCredits"],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"Leonardo.ai",link:"https://leonardo.ai/",description:"Gerador de imagens online usando Stable Diffusion, Flux, etc.",inputs:["text","image"],outputs:["image"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"fal.ai",link:"https://fal.ai/",description:"API as a service, possui APIs para gerar imagens (com Flux), vídeos, áudio, etc.",inputs:["image","video","audio","speech","text"],outputs:["image","video","audio","speech","text"],businessModels:["onDemand"],examples:[],reviewedAt:"2025-04-05"}
2185,{rating:5,name:"Replicate",link:"https://replicate.com/",description:"API as a service, possui APIs para gerar imagens (Stable Diffusion, Flux, etc), vídeos, áudio, etc.",inputs:["image","video","audio","speech","text"],outputs:["image","video","audio","speech","text"],businessModels:["onDemand"],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"Midjourney v7",link:"https://www.midjourney.com/",description:"Gerador de imagens e vídeos, modelo proprietário.",inputs:["text","image"],outputs:["image","video"],businessModels:["subscription"],examples:[],reviewedAt:"2025-04-05"},{rating:4,name:"Adobe Firefly",link:"https://www.adobe.com/nz/products/firefly.html",description:"Gerador de imagens disponível dentro do pacote Adobe.",inputs:["text","image"],outputs:["image"],businessModels:["subscription"],examples:[],reviewedAt:"2025-04-05",author:"Adobe",authorLink:"https://www.adobe.com/"},{rating:5,name:"Ideogram 3.0",link:"https://ideogram.ai/",description:"Gerador de imagens, modelo proprietário, excelente com textos.",inputs:["text","image"],outputs:["image"],businessModels:["subscription"],examples:[],reviewedAt:"2025-04-05"},{rating:4,name:"Playground",link:"https://playground.com/",description:"Gerador de imagens, modelo proprietário.",inputs:["text","image"],outputs:["image"],businessModels:["subscription"],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Recraft AI",link:"https://www.recraft.ai/",description:"Gerador de imagens, modelo proprietário.",inputs:["text","image"],outputs:["image"],businessModels:["subscription","freeCredits"],examples:[],reviewedAt:"2025-04-09"},{rating:3,name:"AuraFlow",description:"Família de checkpoints de imagens open-source, ainda em fase de desenvolvimento.",link:"https://huggingface.co/fal/AuraFlow",inputs:["text","image"],outputs:["image"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-04-05",author:"Fal AI",authorLink:"https://fal.ai/"},{rating:5,name:"GPT Image",description:"Gerador de imagens do ChatGPT.",link:"https://chatgpt.com/images",inputs:["text","image"],outputs:["image"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-12-23",author:"OpenAI",authorLink:"https://openai.com/"},{rating:5,name:"Higgsfield",description:"Gerador de imagens e vídeos, focado em realismo. Possui integração com outras plataformas.",link:"https://higgsfield.ai/",inputs:["text","image"],outputs:["image","video","avatar"],businessModels:["subscription"],examples:[],reviewedAt:"2026-01-31",author:"Higgsfield AI",authorLink:"https://higgsfield.ai/"},{rating:3,name:"DALL-E 3",description:"Gerador de imagens do ChatGPT e Bing Copilot.",link:"https://openai.com/index/dall-e-3/",inputs:["text","image"],outputs:["image"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-05",author:"OpenAI",authorLink:"https://openai.com/"},{rating:3,name:"Looka",link:"https://looka.com/",description:"Gerador de logos.",inputs:["text"],outputs:["image"],businessModels:["free"],examples:[],reviewedAt:"2025-04-05"},{rating:3,name:"Meta Emu",link:"https://www.whatsapp.com/",description:"Gerador de imagens do WhatsApp e Facebook.",inputs:["text","image"],outputs:["image"],businessModels:["free"],examples:[],reviewedAt:"2025-04-05",author:"Meta",authorLink:"https://ai.meta.com/"},{rating:3,name:"NVIDIA Sana",link:"https://nvlabs.github.io/Sana/",description:"Gerador de imagens em alta resolução.",inputs:["text","image"],outputs:["image"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-04-05",author:"NVIDIA",authorLink:"https://www.nvidia.com/"},{rating:4,name:"Reve Image",link:"https://preview.reve.art/",description:"Gerador de imagens, modelo proprietário, excelente com textos.",inputs:["text","image"],outputs:["image"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-05"},{rating:3,name:"Lumina-Image 2.0",link:"https://github.com/Alpha-VLLM/Lumina-Image-2.0",description:"Modelo de imagens de 2.6B de parâmetros. VAE: Flux (16 canais). Text encoder: Gemma 2 2B.",inputs:["text"],outputs:["image"],businessModels:["openWeights"],license:"MIT License",examples:[],reviewedAt:"2025-04-09"},{rating:3,name:"HiDream I1 Full",link:"https://huggingface.co/HiDream-ai/HiDream-I1-Full",description:"Modelo transformer de imagens de 17B de parâmetros. VAE: Flux (16 canais). Text encoders: Llama 3.1 8B e t5-v1_1-xxl.",input
2185s:["text"],outputs:["image"],businessModels:["openWeights"],license:"MIT License",examples:[],reviewedAt:"2025-04-09"},{rating:5,name:"Higgsfield Soul",link:"https://higgsfield.ai/soul",description:"Modelo de imagens realista.",inputs:["text"],outputs:["image"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-07-09"},{rating:5,name:"SeedVR 2",description:"Upscaler (aumento de resolução) aberto",link:"https://github.com/ByteDance-Seed/SeedVR",inputs:["image"],outputs:["image"],businessModels:["openWeights"],examples:[{type:"image",src:"/home/upscale.png",description:"Fração de uma imagem ampliada com SeedVR 2."}],license:"Apache 2.0",reviewedAt:"2025-12-31",author:"ByteDance",authorLink:"https://www.bytedance.com/"},{rating:5,name:"Upscayl",description:"Upscaler (aumento de resolução)",link:"https://upscayl.org/",inputs:["image"],outputs:["image"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"Magnific AI",description:"Upscaler (aumento de resolução)",link:"https://magnific.ai/",inputs:["image"],outputs:["image"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"Topaz Labs' Gigapixel",description:"Upscaler (aumento de resolução)",link:"https://www.topazlabs.com/gigapixel/",inputs:["image"],outputs:["image"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"Dzine",description:"Oferece ferramentas para gerar imagens, consistência de personagens, inserir/remover objetos e fundos, upscale, trocar de roupa (virtual try-on), etc.",link:"https://dzine.ai/",inputs:["text","image"],outputs:["image","video","model"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"Astria",description:"Oferece ferramentas para gerar imagens, consistência de personagens, trocar de roupa (virtual try-on), fotos corporativas, design de interiores, etc.",link:"https://astria.ai/",inputs:["text","image"],outputs:["image","video","model"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{name:"VIVAGO AI",link:"https://vivago.ai/",description:"",rating:null,inputs:["text","image"],outputs:["image","video","3d"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-09"},{rating:null,name:"Rendernet",link:"https://rendernet.ai/",inputs:["image"],outputs:["image"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Remini",link:"https://remini.ai/",inputs:["image"],outputs:["image"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"HeyGen AI",description:"Gerador de avatar animado.",link:"https://www.heygen.com/",inputs:["image","text"],outputs:["avatar","speech"],businessModels:[],examples:[],reviewedAt:"2025-04-18"},{rating:null,name:"Humva",description:"Gerador de avatar animado.",link:"http://humva.com/",inputs:["image"],outputs:["avatar"],businessModels:[],examples:[],reviewedAt:"2025-04-18"},{rating:4,name:"Sora 2",link:"https://sora.com/",description:"Gerador de vídeos do ChatGPT.",inputs:["text","image"],outputs:["video"],businessModels:["subscription"],examples:[],reviewedAt:"2025-04-05",author:"OpenAI",authorLink:"https://openai.com/"},{rating:5,name:"Nano Banana 2",description:"Gerador e editor de imagens do Gemini.",link:"https://gemini.google.com/",inputs:["text","image"],outputs:["image"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-12-23",author:"Google",authorLink:"https://google.com/"},{rating:4,name:"Imagen 3",description:"Gerador de imagens do Gemini e ImageFX.",link:"https://gemini.google.com/",inputs:["text","image"],outputs:["video","image"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-05",author:"Google",authorLink:"https://google.com/"},{rating:5,name:"RunwayML Gen-4",link:"https://runwayml.com/",inputs:["text","image"],outputs:["video"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Luma Dream Machine",link:"https://lumalabs.ai/dream-machine",inputs:["text","image"],outputs:["video"],businessModels:[],examples:[],reviewedAt:"2025-04-05",author:"Luma Labs",authorLink:"https://lumalabs.ai/"},{rating:5,name:"Minimax Hailuo 2",link:"https://hailuoai.video/",inputs:["text","image"],outputs:["video"],businessModels:["subscription"],examples:[],reviewedAt:"2025-07-09",author:"Minimax AI"},{rating:5,name:"VEO 3",link:"https://deepmind.google/models/veo/",inputs:["text","image"],outputs:["video"],businessModels:["free
2185Credits","subscription"],examples:[],reviewedAt:"2025-07-09",author:"Google"},{rating:null,name:"Pollo.ai",link:"https://pollo.ai/",inputs:["text","image"],outputs:["video"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:4,name:"Hunyuan Video",description:"Família de checkpoints de vídeo.",link:"https://hunyuanvideoai.com/",inputs:["text","image","video"],outputs:["image","video"],businessModels:["openWeights","freeCredits","subscription"],examples:[],reviewedAt:"2025-12-23",author:"Tencent"},{rating:5,name:"Wan 2",description:"Modelos de vídeo. Possui diversas variantes: VACE, MultiTalk, Phantom, FLF, Fun, UniAnimate, MAGREF, lightx2v / Self forcing, SkyReels, Ovi, InfiniteTalk, Animate, SCAIL, etc.",link:"https://github.com/Wan-Video/Wan2.1",inputs:["text","image","video"],outputs:["image","video"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-12-23"},{rating:5,name:"LTX 2",link:"https://huggingface.co/Lightricks/LTX-2",description:"Checkpoint de vídeo e áudio nativo. Mais rápido que seus concorrentes.",inputs:["text","image","video","audio"],outputs:["image","video","audio"],businessModels:["openWeights"],examples:[],reviewedAt:"2026-01-31",author:"Lightricks"},{rating:5,name:"KlingAI",link:"https://www.klingai.com/",inputs:["text","image"],outputs:["video","avatar"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-05"},{rating:4,name:"FramePack",link:"https://github.com/lllyasviel/FramePack/",description:"Finetune do Hunyuan que permite gerar vídeos mais longos.",inputs:["text","image"],outputs:["video"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-04-29"},{rating:null,name:"AI Studio",link:"https://aistudio.google.com/",inputs:["speech"],outputs:["text"],businessModels:[],examples:[],reviewedAt:"2025-04-05",author:"Google",authorLink:"https://google.com/"},{rating:null,name:"Deepgram",link:"https://deepgram.com/",inputs:["speech","text"],outputs:["text","speech"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Tactiq",link:"https://tactiq.io/",description:"Gera transcrições de reuniões",inputs:["speech","video"],outputs:["text"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Sonix",link:"https://sonix.ai/",inputs:["speech","video"],outputs:["text"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"faster-whisper",link:"https://github.com/Purfview/whisper-standalone-win",description:"Transcrição de áudio",inputs:["speech","video"],outputs:["text"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-04-05"},{rating:4,name:"Capcut",link:"https://www.capcut.com/",inputs:["speech","text"],outputs:["text","speech","image","video"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Caption",inputs:["speech"],outputs:["text"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"DeepSeek",link:"https://chat.deepseek.com/",inputs:["multimodal"],outputs:["multimodal"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"ChatGPT",link:"https://chat.openai.com/",inputs:["multimodal"],outputs:["multimodal"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-05",author:"OpenAI",authorLink:"https://openai.com/"},{rating:5,name:"Claude Sonnet",link:"https://claude.ai/",inputs:["multimodal"],outputs:["text","code"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"Gemini",link:"https://gemini.google.com/",inputs:["multimodal"],outputs:["multimodal"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-05",author:"Google",authorLink:"https://google.com/"},{rating:4,name:"Llama",link:"https://www.llama.com/",description:"LLM aberta.",inputs:["multimodal"],outputs:["multimodal"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-12-23",author:"Meta",authorLink:"https://ai.meta.com/"},{rating:4,name:"Meta AI",link:"https://www.whatsapp.com/",description:"IA do WhatsApp e Facebook.",inputs:["multimodal"],outputs:["multimodal"],businessModels:["free"],examples:[],reviewedAt:"2025-12-23",author:"Meta",authorLink:"https://ai.meta.com/"},{rating:5,name:"Grok",link:"https://x.ai/",description:"IA do X. Gera imagens e vídeos.",inputs:["multimodal"],outputs:["multimodal"],businessModels:["free
2185Credits","subscription"],examples:[],reviewedAt:"2025-12-23",author:"X (Twitter)",authorLink:"https://x.com/"},{rating:5,name:"SesameLabs CSM",link:"https://github.com/SesameAILabs/csm",inputs:["text","speech"],outputs:["speech"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"VibeVoice",link:"https://huggingface.co/aoi-ot/VibeVoice-Large",inputs:["text","speech"],outputs:["speech"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-12-23",author:"Microsoft",authorLink:"https://www.microsoft.com/"},{rating:5,name:"Elevenlabs",link:"https://elevenlabs.io/",inputs:["text","speech"],outputs:["audio","speech"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Natural Readers",link:"https://www.naturalreaders.com/",inputs:["text"],outputs:["speech"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"voicefy",link:"https://www.voicefy.com.br/",description:"Gerador de voz brasileiro.",inputs:["text"],outputs:["speech"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"DiffRhythm-base",link:"https://github.com/ASLP-lab/DiffRhythm",inputs:["text","audio"],outputs:["audio","music"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Orpheus-TTS",link:"https://github.com/canopyai/Orpheus-TTS",inputs:["text"],outputs:["speech"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"AudioX",link:"https://github.com/ZeyueT/AudioX",inputs:["text"],outputs:["audio"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"Suno",link:"https://suno.com/",description:"Gerador de música",inputs:["text"],outputs:["music"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"Udio",link:"https://www.udio.com/",description:"Gerador de música",inputs:["text"],outputs:["music"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:4,name:"Riffusion",link:"https://www.riffusion.com/",description:"Gerador de música",inputs:["text","music"],outputs:["music"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-12-23"},{rating:null,name:"NovaSR",link:"https://github.com/ysharma3501/NovaSR",description:"Modelo super eficiente (50kb) pra aumentar resolução de áudio e música.",inputs:["audio"],outputs:["audio"],businessModels:["openWeights"],examples:[],reviewedAt:"2026-01-18"},{rating:null,name:"HeartMula",link:"https://heartmula.github.io/",description:"Gerador de música open-source. Disponível nas versões 3B e 7B (em breve)",inputs:["text","music"],outputs:["music"],businessModels:["openWeights"],examples:[],reviewedAt:"2026-01-18"},{rating:4,name:"Ace-Step",link:"https://github.com/ace-step/ACE-Step",description:"Gerador de música open-source quase em tempo real.",inputs:["text","music"],outputs:["music"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-07-09"},{rating:null,name:"Stable Audio",link:"https://stability.ai/stable-audio",inputs:["text"],outputs:["audio"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"MMAudio",link:"https://github.com/hkchengrex/MMAudio",inputs:["video","text"],outputs:["audio"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-05-01"},{rating:null,name:"AudioX",link:"https://github.com/ZeyueT/AudioX",inputs:["video","text"],outputs:["audio","music"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-05-01"},{rating:4,name:"Index-TTS 2",description:"TTS e clona vozes. Suporta emoções.",link:"https://huggingface.co/IndexTeam/IndexTTS-2",inputs:["text","speech"],outputs:["speech"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-12-23"},{rating:null,name:"XTTS v2",description:"TTS e clona vozes. Suporta 17 idiomas, incluindo Português.",link:"https://huggingface.co/coqui/XTTS-v2",inputs:["text","speech"],outputs:["speech"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-05-04"},{rating:null,name:"F5 TTS",description:"TTS e clona vozes",link:"https://github.com/SWivid/F5-TTS",inputs:["text","speech"],outputs:["speech"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-05-04"},{rating:null,name:"Zonos",description:"TTS e clona vozes",link:"https://github.com/Zyphra/Zonos",inputs:["text","speech"],outputs:["speech"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-05-04"},{rating:null,name:"Dia",description:"TTS e clona vozes",link:"https://github.com/nari-labs/dia",inputs:["text","speech"],outputs:["speech"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-05-04"},{rating:null,name:"AssemblyAI",link:"https://www.assemblyai.com/",inputs:["video"],outputs:["text"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Glasp",link:"https://glasp.co/",inputs:["video","pdf"],outputs:["text"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Gamma app",link:"https://gamma.app/",description:"Gera slides",inputs:[],outputs:["slide"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Canva",link:"https://www.canva.com/",inputs:["text"],outputs:["infographics","image"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Tableau",link:"https://www.tableau.com/products/artificial-intelligence",input
2185s:[],outputs:["infographics"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Adobe Express",link:"https://www.adobe.com/express/",description:"Antigo Adobe Spark",inputs:[],outputs:["infographics"],businessModels:[],examples:[],reviewedAt:"2025-04-05",author:"Adobe"},{rating:null,name:"Infogram",link:"https://infogram.com/",inputs:[],outputs:["infographics"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Venngage",link:"https://venngage.com/",inputs:[],outputs:["infographics"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Knime",link:"https://www.knime.com/",inputs:[],outputs:["infographics"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"ChatPDF",link:"https://www.chatpdf.com/",inputs:[],outputs:["pdf"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Glif",link:"https://glif.app/",inputs:["text","image"],outputs:["image"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Mapify",link:"https://mapify.so/",inputs:[],outputs:["mindmap"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"MindMeister",link:"https://www.mindmeister.com/",inputs:[],outputs:["mindmap"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"NotebookLM",link:"https://notebooklm.google/",inputs:[],outputs:["research","podcast"],businessModels:[],examples:[],reviewedAt:"2025-04-05",author:"Google",authorLink:"https://google.com/"},{rating:5,name:"Github Copilot",link:"https://github.com/features/copilot",inputs:["text","code"],outputs:["text","code"],businessModels:[],examples:[],reviewedAt:"2025-12-23",author:"Github",authorLink:"https://github.com/"},{rating:null,name:"Cline",link:"https://cline.bot/",inputs:["text","code"],outputs:["text","code"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Roo Code",link:"https://github.com/RooCodeInc/Roo-Code",description:'Antes chamado de "Roo Cline", é um plugin do VS Code que conecta com LLMs para gerar código.',inputs:["text","code"],outputs:["text","code"],businessModels:["openSource"],examples:[],reviewedAt:"2025-07-09"},{rating:null,name:"Continue Dev",link:"https://github.com/continuedev/continue",description:"Plugin de IDEs (VS Code, JetBrains) que conecta com LLMs para gerar código.",inputs:["text","code"],outputs:["text","code"],businessModels:["openSource"],examples:[],reviewedAt:"2025-07-09"},{rating:null,name:"Aider",link:"https://github.com/Aider-AI/aider",description:"Plugin de IDEs que conecta com LLMs para gerar código. Também roda em terminal.",inputs:["text","code"],outputs:["text","code"],businessModels:["openSource"],examples:[],reviewedAt:"2025-07-09"},{rating:5,name:"Lovable",link:"https://lovable.dev/",inputs:["text","code"],outputs:["text","code"],businessModels:[],examples:[],reviewedAt:"2025-12-23"},{rating:4,name:"Bolt",link:"https://bolt.new/",inputs:["text","code"],outputs:["text","code"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:4,name:"Vercel v0",link:"https://v0.dev/",inputs:["text","code"],outputs:["text","code"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"Joy Caption",link:"https://huggingface.co/spaces/fancyfeast/joy-caption-alpha-two",description:"Caption (descreve imagens)",inputs:["image"],outputs:["text"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"InternVL2-26b",link:"https://huggingface.co/OpenGVLab/InternVL2-26B",description:"Caption (descreve imagens)",inputs:["image"],outputs:["text"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"qwen2.5-vl-7b-instruct",link:"https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct",description:"Caption (descreve imagens)",inputs:["image"],outputs:["text"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:4,name:"Llava",link:"https://ollama.com/library/llava",description:"Caption (descreve imagens)",inputs:["image"],outputs:["text"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:5,name:"Florence 2",link:"https://huggingface.co/microsoft/Florence-2-large",description:"Caption (descreve imagens)",inputs:["image"],outputs:["text"],businessModels:[],examples:[],reviewedAt:"2025-04-05",author:"Microsoft"},{rating:null,name:"Visily",link:"https://www.visily.ai/",description:"Gera design de UI (interface)",inputs:[],outputs:["design"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Uizard",link:"https://uizard.io/",description:"Gera design de UI (interface)",inputs:[],outputs:["design"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{rating:null,name:"Galileo AI",link:"https://www.usegalileo.ai/",description:"Gera design de UI (interface)",inputs:[],outputs:["design"],businessModels:[],examples:[],reviewedAt:"2025-04-05"},{name:"Fastphoto",link:"https://fastphoto.io/",description:"Fotos corporativas, alterar estilo de imagem, mudar cenário, design de interiores.",rating:null,inputs:["image","text"],outputs:["image"],businessModels:["free
2185Credits","subscription"],license:"Uso comercial das imagens apenas se pagar plano Pro ou superior.",examples:[],reviewedAt:"2025-04-09"},{rating:null,name:"Manus AI",link:"https://manus.im/",description:"Sistema multi-agentes",inputs:["multimodal"],outputs:["agent"],businessModels:["subscription"],examples:[],reviewedAt:"2025-04-09"},{rating:null,name:"Genspark AI",link:"https://www.genspark.ai/",description:"Sistema multi-agentes",inputs:["multimodal"],outputs:["agent","multimodal"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-09"},{rating:5,name:"Trellis 2",link:"https://github.com/microsoft/TRELLIS",description:"",inputs:["text","image"],outputs:["3d"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-12-23",author:"Microsoft",authorLink:"https://www.microsoft.com/"},{rating:null,name:"Stable Zero123",link:"https://huggingface.co/stabilityai/stable-zero123",description:"",inputs:["text","image"],outputs:["3d"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-04-09",author:"Stability AI",authorLink:"https://stability.ai/"},{rating:null,name:"TripoSF",link:"https://xianglonghe.github.io/TripoSF",description:"",inputs:["text","image"],outputs:["3d"],businessModels:["openWeights"],examples:[],reviewedAt:"2025-04-09"},{rating:null,name:"Hi 3DGen",link:"https://stable-x.github.io/Hi3DGen/",description:"",inputs:["text","image"],outputs:["3d"],businessModels:["openWeights"],examples:[],author:"ByteDance",authorLink:"https://www.bytedance.com/",reviewedAt:"2025-04-09"},{rating:null,name:"Hunyuan3D-2",link:"https://github.com/Tencent/Hunyuan3D-2",description:"",inputs:["text","image"],outputs:["3d"],businessModels:["openWeights"],examples:[],author:"Tencent",authorLink:"https://www.tencent.com/",reviewedAt:"2025-04-09"},{rating:null,name:"RemNote",link:"https://www.remnote.com/",description:"Gera flashcards para estudo",inputs:["text"],outputs:["studyMaterial"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-14"},{rating:null,name:"Revisely",link:"https://www.revisely.com/flashcard-generator",description:"Gera flashcards para estudo",inputs:["text","image","video","document","pdf"],outputs:["studyMaterial"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-14"},{rating:null,name:"Monic.ai",link:"https://beta.monic.ai/",description:"Gera flashcards para estudo",inputs:["text","image","video","document","pdf"],outputs:["studyMaterial"],businessModels:["subscription"],examples:[],reviewedAt:"2025-04-14"},{rating:null,name:"Dekki",link:"https://www.dekki.ai/",description:"Gera flashcards para estudo",inputs:["text","image","video","document","pdf"],outputs:["studyMaterial"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-14"},{rating:null,name:"flashka",link:"https://www.flashka.ai/",description:"Gera flashcards para estudo",inputs:["text","image","video","document","pdf"],outputs:["studyMaterial"],businessModels:["freeCredits","subscription"],examples:[],reviewedAt:"2025-04-14"},{rating:null,name:"OpenClaw",link:"https://openclaw.ai/",description:"Agente autônomo (antigo Clawdbot ou Moltbot).",inputs:["text","document"],outputs:["agent"],businessModels:["openSource"],examples:[],reviewedAt:"2026-01-31"},{rating:null,name:"Project Genie",link:"https://blog.google/innovation-and-ai/models-and-research/google-deepmind/project-genie/",description:"World model que permite criar seu próprio mundo interativo, estilo videogame. No momento, disponível para usuários inscritos do Google AI Ultra.",inputs:["text","image"],outputs:["world"],businessModels:["subscription"],examples:[],reviewedAt:"2026-01-31",author:"Google"}];function $y({tip:e,onClear:t,...n}){const r={rightSection:t&&n.value?p.jsx(Si,{onClick:t}):!!e&&p.jsx(yt,{label:e,children:p.jsx(lt,{size:"sm",variant:"transparent",children:p.jsx(lq,{})})}),...n};return r.maxRows===1?p.jsx(fn,{...r}):p.jsx(Gb,{autosize:!0,minRows:1,...r})}function wX(e){if(!/^[0-9a-zA-Z-]+$/.test(e))throw new Error(`[@mantine/use-form] Form name "${e}
2185" is invalid, it should contain only letters, numbers and dashes`)}const xX=typeof window<"u"?S.useLayoutEffect:S.useEffect;function Sn(e,t){xX(()=>{if(e)return window.addEventListener(e,t),()=>window.removeEventListener(e,t)},[e])}function SX(e,t){e&&wX(e),Sn(`mantine-form:${e}:set-field-value`,n=>t.setFieldValue(n.detail.path,n.detail.value)),Sn(`mantine-form:${e}:set-values`,n=>t.setValues(n.detail)),Sn(`mantine-form:${e}:set-initial-values`,n=>t.setInitialValues(n.detail)),Sn(`mantine-form:${e}:set-errors`,n=>t.setErrors(n.detail)),Sn(`mantine-form:${e}:set-field-error`,n=>t.setFieldError(n.detail.path,n.detail.error)),Sn(`mantine-form:${e}:clear-field-error`,n=>t.clearFieldError(n.detail)),Sn(`mantine-form:${e}:clear-errors`,t.clearErrors),Sn(`mantine-form:${e}:reset`,t.reset),Sn(`mantine-form:${e}:validate`,t.validate),Sn(`mantine-form:${e}:validate-field`,n=>t.validateField(n.detail)),Sn(`mantine-form:${e}:reorder-list-item`,n=>t.reorderListItem(n.detail.path,n.detail.payload)),Sn(`mantine-form:${e}:remove-list-item`,n=>t.removeListItem(n.detail.path,n.detail.index)),Sn(`mantine-form:${e}:insert-list-item`,n=>t.insertListItem(n.detail.path,n.detail.item,n.detail.index)),Sn(`mantine-form:${e}:set-dirty`,n=>t.setDirty(n.detail)),Sn(`mantine-form:${e}:set-touched`,n=>t.setTouched(n.detail)),Sn(`mantine-form:${e}:reset-dirty`,n=>t.resetDirty(n.detail)),Sn(`mantine-form:${e}:reset-touched`,t.resetTouched)}function CX(e){return t=>{if(!t)e(t);else if(typeof t=="function")e(t);else if(typeof t=="object"&&"nativeEvent"in t){const{currentTarget:n}=t;n instanceof HTMLInputElement?n.type==="checkbox"?e(n.checked):e(n.value):(n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&e(n.value)}else e(t)}}function zy(e){return e===null||typeof e!="object"?{}:Object.keys(e).reduce((t,n)=>{const r=e[n];return r!=null&&r!==!1&&(t[n]=r),t},{})}function _X(e){const[t,n]=S.useState(zy(e)),r=S.useRef(t),o=S.useCallback(l=>{n(u=>{const c=zy(typeof l=="function"?l(u):l);return r.current=c,c})},[]),i=S.useCallback(()=>o({}),[]),s=S.useCallback(l=>{r.current[l]!==void 0&&o(u=>{const c={...u};return delete c[l],c})},[t]),a=S.useCallback((l,u)=>{u==null||u===!1?s(l):r.current[l]!==u&&o(c=>({...c,[l]:u}))},[t]);return{errorsState:t,setErrors:o,clearErrors:i,setFieldError:a,clearFieldError:s}}function Vy(e,t){if(t===null||typeof t!="object")return{};const n={...t};return Object.keys(t).forEach(r=>{r.includes(`${String(e)}.`)&&delete n[r]}),n}function nR(e,t){const n=e.substring(t.length+1).split(".")[0];return parseInt(n,10)}function rR(e,t,n,r){if(t===void 0)return n;const o=`${String(e)}`;let i=n;r===-1&&(i=Vy(`${o}.${t}`,i));const s={...i},a=new Set;return Object.entries(i).filter(([l])=>{if(!l.startsWith(`${o}.`))return!1;const u=nR(l,o);return Number.isNaN(u)?!1:u>=t}).forEach(([l,u])=>{const c=nR(l,o),d=l.replace(`${o}.${c}`,`${o}.${c+r}`);s[d]=u,a.add(d),a.has(l)||delete s[l]}),s}function RX(e,{from:t,to:n},r){const o=`${e}.${t}`,i=`${e}.${n}`,s={...r},a=new Set;return Object.keys(r).forEach(l=>{if(a.has(l))return;let u,c;if(l.startsWith(o)?(u=l,c=l.replace(o,i)):l.startsWith(i)&&(u=l.replace(i,o),c=l),u&&c){const d=s[u],f=s[c];f===void 0?delete s[u]:s[u]=f,d===void 0?delete s[c]:s[c]=d,a.add(u),a.add(c)}}),s}function oR(e,t,n){typeof n.value=="object"&&(n.value=dl(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t==="__proto__"?Object.defineProperty(e,t,n):e[t]=n.value}function dl(e){if(typeof e!="object")return e;var t=0,n,r,o,i=Object.prototype.toString.call(e);if(i==="[object Object]"?o=Object.create(e.__proto__||null):i==="[object Array]"?o=Array(e.length):i==="[object Set]"?(o=new Set,e.forEach(function(s){o.add(dl(s))})):i==="[object Map]"?(o=new Map,e.forEach(function(s,a){o.set(dl(a),dl(s))})):i==="[object Date]"?o=new Date(+e):i==="[object RegExp]"?o=new RegExp(e.source,e.flags):i==="[object DataView]"?o=new e.constructor(dl(e.buffer)):i==="[object ArrayBuffer]"?o=e.slice(0):i.slice(-6)==="Array]"&&(o=new e.constructor(e)),o){for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)oR(o,r[t],Object.getOwnPropertyDescriptor(e,r[t]));for(t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++)Object.hasOwnProperty.call(o,n=r[t])&&o[n]===e[n]||oR(o,n,Object.getOwnPropertyDescriptor(e,n))}return o||e}function eD(e){return typeof e!="string"?[]:e.split(".")}function _n(e,t){const n=eD(e);if(n.length===0||typeof t!="object"||t===null)return;let r=t[n[0]];for(let o=1;o<n.length&&r!=null;o+=1)r=r[n[o]];return r}
2185function hd(e,t,n){const r=eD(e);if(r.length===0)return n;const o=dl(n);if(r.length===1)return o[r[0]]=t,o;let i=o[r[0]];for(let s=1;s<r.length-1;s+=1){if(i===void 0)return o;i=i[r[s]]}return i[r[r.length-1]]=t,o}function EX(e,{from:t,to:n},r){const o=_n(e,r);if(!Array.isArray(o))return r;const i=[...o],s=o[t];return i.splice(t,1),i.splice(n,0,s),hd(e,i,r)}function TX(e,t,n,r){const o=_n(e,r);if(!Array.isArray(o))return r;const i=[...o];return i.splice(typeof n=="number"?n:i.length,0,t),hd(e,i,r)}function PX(e,t,n){const r=_n(e,n);return Array.isArray(r)?hd(e,r.filter((o,i)=>i!==t),n):n}function kX(e,t,n,r){const o=_n(e,r);if(!Array.isArray(o)||o.length<=n)return r;const i=[...o];return i[n]=t,hd(e,i,r)}function IX({$values:e,$errors:t,$status:n}){const r=S.useCallback((a,l)=>{n.clearFieldDirty(a),t.setErrors(u=>RX(a,l,u)),e.setValues({values:EX(a,l,e.refValues.current),updateState:!0})},[]),o=S.useCallback((a,l)=>{n.clearFieldDirty(a),t.setErrors(u=>rR(a,l,u,-1)),e.setValues({values:PX(a,l,e.refValues.current),updateState:!0})},[]),i=S.useCallback((a,l,u)=>{n.clearFieldDirty(a),t.setErrors(c=>rR(a,u,c,1)),e.setValues({values:TX(a,l,u,e.refValues.current),updateState:!0})},[]),s=S.useCallback((a,l,u)=>{n.clearFieldDirty(a),e.setValues({values:kX(a,u,l,e.refValues.current),updateState:!0})},[]);return{reorderListItem:r,removeListItem:o,insertListItem:i,replaceListItem:s}}var MX=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;o--!==0;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!==t&&n!==n};const df=va(MX);function zu(e,t){const n=Object.keys(e);if(typeof t=="string"){const r=n.filter(o=>o.startsWith(`${t}.`));return e[t]||r.some(o=>e[o])||!1}return n.some(r=>e[r])}function DX({initialDirty:e,initialTouched:t,mode:n,$values:r}){const[o,i]=S.useState(t),[s,a]=S.useState(e),l=S.useRef(t),u=S.useRef(e),c=S.useCallback(I=>{const C=typeof I=="function"?I(l.current):I;l.current=C,n==="controlled"&&i(C)},[]),d=S.useCallback((I,C=!1)=>{const _=typeof I=="function"?I(u.current):I;u.current=_,(n==="controlled"||C)&&a(_)},[]),f=S.useCallback(()=>c({}),[]),h=S.useCallback(I=>{const C=I?{...r.refValues.current,...I}:r.refValues.current;r.setValuesSnapshot(C),d({})},[]),g=S.useCallback((I,C)=>{c(_=>zu(_,I)===C?_:{..._,[I]:C})},[]),v=S.useCallback((I,C,_)=>{d(T=>zu(T,I)===C?T:{...T,[I]:C},_)},[]),w=S.useCallback((I,C)=>{const _=zu(u.current,I),T=!df(_n(I,r.getValuesSnapshot()),C),P=Vy(I,u.current);P[I]=T,d(P,_!==T)},[]),b=S.useCallback(I=>zu(l.current,I),[]),y=S.useCallback(I=>d(C=>{if(typeof I!="string")return C;const _=Vy(I,C);return delete _[I],df(_,C)?C:_}),[]),x=S.useCallback(I=>{if(I){const _=_n(I,u.current);if(typeof _=="boolean")return _;const T=_n(I,r.refValues.current),P=_n(I,r.valuesSnapshot.current);return!df(T,P)}return Object.keys(u.current).length>0?zu(u.current):!df(r.refValues.current,r.valuesSnapshot.current)},[]),R=S.useCallback(()=>u.current,[]),k=S.useCallback(()=>l.current,[]);return{touchedState:o,dirtyState:s,touchedRef:l,dirtyRef:u,setTouched:c,setDirty:d,resetDirty:h,resetTouched:f,isTouched:b,setFieldTouched:g,setFieldDirty:v,setTouchedState:i,setDirtyState:a,clearFieldDirty:y,isDirty:x,getDirty:R,getTouched:k,setCalculatedFieldDirty:w}}function AX({initialValues:e,onValuesChange:t,mode:n}){const r=S.useRef(!1),[o,i]=S.useState(e||{}),s=S.useRef(o),a=S.useRef(o),l=S.useCallback(({values:v,subscribers:w,updateState:b=!0,mergeWithPreviousValues:y=!0})=>{const x=s.current,R=v instanceof Function?v(s.current):v,k=y?{...x,...R}:R;
2185s.current=k,b&&i(k),t==null||t(k,x),w==null||w.filter(Boolean).forEach(I=>I({updatedValues:k,previousValues:x}))},[t]),u=S.useCallback(v=>{var y;const w=_n(v.path,s.current),b=v.value instanceof Function?v.value(w):v.value;if(w!==b){const x=s.current,R=hd(v.path,b,s.current);l({values:R,updateState:v.updateState}),(y=v.subscribers)==null||y.filter(Boolean).forEach(k=>k({path:v.path,updatedValues:R,previousValues:x}))}},[l]),c=S.useCallback(v=>{a.current=v},[]),d=S.useCallback((v,w)=>{r.current||(r.current=!0,l({values:v,updateState:n==="controlled"}),c(v),w())},[l]),f=S.useCallback(()=>{l({values:a.current,updateState:!0,mergeWithPreviousValues:!1})},[l]),h=S.useCallback(()=>s.current,[]),g=S.useCallback(()=>a.current,[]);return{initialized:r,stateValues:o,refValues:s,valuesSnapshot:a,setValues:l,setFieldValue:u,resetValues:f,setValuesSnapshot:c,initialize:d,getValues:h,getValuesSnapshot:g}}function jX({$status:e}){const t=S.useRef({}),n=S.useCallback((o,i)=>{S.useEffect(()=>(t.current[o]=t.current[o]||[],t.current[o].push(i),()=>{t.current[o]=t.current[o].filter(s=>s!==i)}),[i])},[]),r=S.useCallback(o=>t.current[o]?t.current[o].map(i=>s=>i({previousValue:_n(o,s.previousValues),value:_n(o,s.updatedValues),touched:e.isTouched(o),dirty:e.isDirty(o)})):[],[]);return{subscribers:t,watch:n,getFieldSubscribers:r}}function iR(e,t){return e?`${e}-${t.toString()}`:t.toString()}const ff=Symbol("root-rule");function sR(e){const t=zy(e);return{hasErrors:Object.keys(t).length>0,errors:t}}function By(e,t,n="",r={}){return typeof e!="object"||e===null?r:Object.keys(e).reduce((o,i)=>{const s=e[i],a=`${n===""?"":`${n}.`}${i}`,l=_n(a,t);let u=!1;return typeof s=="function"&&(o[a]=s(l,t,a)),typeof s=="object"&&Array.isArray(l)&&(u=!0,l.forEach((c,d)=>By(s,t,`${a}.${d}`,o)),ff in s&&(o[a]=s[ff](l,t,a))),typeof s=="object"&&typeof l=="object"&&l!==null&&(u||By(s,t,a,o),ff in s&&(o[a]=s[ff](l,t,a))),o},r)}function Hy(e,t){return sR(typeof e=="function"?e(t):By(e,t))}function pf(e,t,n){if(typeof e!="string")return{hasError:!1,error:null};const r=Hy(t,n),o=Object.keys(r.errors).find(i=>e.split(".").every((s,a)=>s===i.split(".")[a]));return{hasError:!!o,error:o?r.errors[o]:null}}const OX="__MANTINE_FORM_INDEX__";function aR(e,t){return t?typeof t=="boolean"?t:Array.isArray(t)?t.includes(e.replace(/[.][0-9]+/g,`.${OX}`)):!1:!1}function rx({name:e,mode:t="controlled",initialValues:n,initialErrors:r={},initialDirty:o={},initialTouched:i={},clearInputErrorOnChange:s=!0,validateInputOnChange:a=!1,validateInputOnBlur:l=!1,onValuesChange:u,transformValues:c=v=>v,enhanceGetInputProps:d,validate:f,onSubmitPreventDefault:h="always",touchTrigger:g="change"}={}){const v=_X(r),w=AX({initialValues:n,onValuesChange:u,mode:t}),b=DX({initialDirty:o,initialTouched:i,$values:w,mode:t}),y=IX({$values:w,$errors:v,$status:b}),x=jX({$status:b}),[R,k]=S.useState(0),[I,C]=S.useState({}),[_,T]=S.useState(!1),P=S.useCallback(()=>{w.resetValues(),v.clearErrors(),b.resetDirty(),b.resetTouched(),t==="uncontrolled"&&k(X=>X+1)},[]),M=S.useCallback(X=>{s&&v.clearErrors(),t==="uncontrolled"&&k(J=>J+1),Object.keys(x.subscribers.current).forEach(J=>{const q=_n(J,w.refValues.current),ne=_n(J,X);q!==ne&&x.getFieldSubscribers(J).forEach(Y=>Y({previousValues:X,updatedValues:w.refValues.current}))})},[s]),O=S.useCallback(X=>{const J=w.refValues.current;w.initialize(X,()=>t==="uncontrolled"&&k(q=>q+1)),M(J)},[M]),A=S.useCallback((X,J,q)=>{const ne=aR(X,a),Y=J instanceof Function?J(_n(X,w.refValues.current)):J;b.setCalculatedFieldDirty(X,Y),g==="change"&&b.setFieldTouched(X,!0),!ne&&s&&v.clearFieldError(X),w.setFieldValue({path:X,value:J,updateState:t==="controlled",subscribers:[...x.getFieldSubscribers(X),ne?W=>{const se=pf(X,f,W.updatedValues);se.hasError?v.setFieldError(X,se.error):v.clearFieldError(X)}:null,(q==null?void 0:q.forceUpdate)!==!1&&t!=="controlled"?()=>C(W=>({...W,[X]:(W[X]||0)+1})):null]})},[u,f]),V=S.useCallback(X=>{const J=w.refValues.current;w.setValues({values:X,updateState:t==="controlled"}),M(J)},[u,M]),z=S.useCallback(()=>{const X=Hy(f,w.refValues.current);return v.setErrors(X.errors),X},[f]),N=S.useCallback(X=>{const J=pf(X,f,w.refValues.current);return J.hasError?v.setFieldError(X,J.error):v.clearFieldError(X),J},[f]),F=(X,{type:J="input",withError:q=!0,withFocus:ne=!0,...Y}={})=>{const se={onChange:CX(ue=>
2185A(X,ue,{forceUpdate:!1})),"data-path":iR(e,X)};return q&&(se.error=v.errorsState[X]),J==="checkbox"?se[t==="controlled"?"checked":"defaultChecked"]=_n(X,w.refValues.current):se[t==="controlled"?"value":"defaultValue"]=_n(X,w.refValues.current),ne&&(se.onFocus=()=>b.setFieldTouched(X,!0),se.onBlur=()=>{if(aR(X,l)){const ue=pf(X,f,w.refValues.current);ue.hasError?v.setFieldError(X,ue.error):v.clearFieldError(X)}}),Object.assign(se,d==null?void 0:d({inputProps:se,field:X,options:{type:J,withError:q,withFocus:ne,...Y},form:oe}))},j=(X,J)=>q=>{h==="always"&&(q==null||q.preventDefault());const ne=z();if(ne.hasErrors)h==="validation-failed"&&(q==null||q.preventDefault()),J==null||J(ne.errors,w.refValues.current,q);else{const Y=X==null?void 0:X(c(w.refValues.current),q);Y instanceof Promise&&(T(!0),Y.finally(()=>T(!1)))}},L=X=>c(X||w.refValues.current),B=S.useCallback(X=>{X.preventDefault(),P()},[]),H=S.useCallback(X=>X?!pf(X,f,w.refValues.current).hasError:!Hy(f,w.refValues.current).hasErrors,[f]),G=X=>`${R}-${X}-${I[X]||0}`,ee=S.useCallback(X=>
2185document.querySelector(`[data-path="${iR(e,X)}"]`),[]),oe={watch:x.watch,initialized:w.initialized.current,values:w.stateValues,getValues:w.getValues,getInitialValues:w.getValuesSnapshot,setInitialValues:w.setValuesSnapshot,initialize:O,setValues:V,setFieldValue:A,submitting:_,setSubmitting:T,errors:v.errorsState,setErrors:v.setErrors,setFieldError:v.setFieldError,clearFieldError:v.clearFieldError,clearErrors:v.clearErrors,resetDirty:b.resetDirty,setTouched:b.setTouched,setDirty:b.setDirty,isTouched:b.isTouched,resetTouched:b.resetTouched,isDirty:b.isDirty,getTouched:b.getTouched,getDirty:b.getDirty,reorderListItem:y.reorderListItem,insertListItem:y.insertListItem,removeListItem:y.removeListItem,replaceListItem:y.replaceListItem,reset:P,validate:z,validateField:N,getInputProps:F,onSubmit:j,onReset:B,isValid:H,getTransformedValues:L,key:G,getInputNode:ee};return SX(e,oe),oe}const ct="pages.aiServices",Bl=bX,$p=Bl.reduce((e,t)=>(t.inputs.forEach(n=>{e.includes(n)||e.push(n)}),t.outputs.forEach(n=>{e.includes(n)||e.push(n)}),e),[]).sort(),NX=Bl.reduce((e,t)=>(t.businessModels.forEach(n=>{e.includes(n)||e.push(n)}),e),[]).sort(),LX={1:"red.6",2:"orange.5",3:"yellow.5",4:"cyan.5",5:"lime.5"},nv=5,FX=new Date(Math.max(...Bl.map(e=>new Date(e.reviewedAt||0).getTime()))).toLocaleDateString(navigator.language);function $X(){const{t:e}=yn(),[t]=WH(),[n,r]=S.useState(!1),o=S.useMemo(()=>[{accessorKey:"rating",header:e(`${ct}.table.columns.rating.header`),Cell:({row:h})=>p.jsx(zX,{rating:h.original.rating||0}),size:32},{accessorKey:"name",header:e(`${ct}.table.columns.name.header`),Cell:({row:h})=>p.jsx(VX,{name:h.original.name,link:h.original.link}),filterFn:"fuzzy"},{accessorKey:"description",header:e(`${ct}.table.columns.description.header`),filterFn:"fuzzy"},{accessorKey:"inputs",accessorFn:h=>h.inputs.map(g=>e(`${ct}.enums.mediaType.${g}`)).join(", "),header:e(`${ct}.table.columns.inputs.header`),Cell:({row:h})=>p.jsx(lR,{mediaTypes:h.original.inputs}),filterVariant:"multi-select",mantineFilterMultiSelectProps:{data:$p.map(h=>e(`${ct}.enums.mediaType.${h}`)).sort()}},{accessorKey:"outputs",accessorFn:h=>h.outputs.map(g=>e(`${ct}.enums.mediaType.${g}`)).join(", "),header:e(`${ct}.table.columns.outputs.header`),Cell:({row:h})=>p.jsx(lR,{mediaTypes:h.original.outputs}),filterVariant:"multi-select",mantineFilterMultiSelectProps:{data:$p.map(h=>e(`${ct}.enums.mediaType.${h}`)).sort()}},{accessorKey:"businessModels",accessorFn:h=>h.businessModels.map(g=>e(`${ct}.enums.businessModels.${g}`)).join(", "),header:e(`${ct}.table.columns.businessModels.header`),Cell:({row:h})=>p.jsx(BX,{businessModels:h.original.businessModels}),filterVariant:"multi-select",mantineFilterMultiSelectProps:{data:NX.map(h=>e(`${ct}.enums.businessModels.${h}`)).sort()}},{accessorKey:"license",header:e(`${ct}.table.columns.license.header`)},{accessorKey:"examples",header:e(`${ct}.table.columns.examples.header`),Cell:({row:h})=>p.jsx(HX,{examples:h.original.examples})},{accessorKey:"author",header:e(`${ct}.table.columns.author.header`),Cell:({row:h})=>p.jsx(UX,{author:h.original.author,authorLink:h.original.authorLink})},{accessorKey:"reviewedAt",header:e(`${ct}.table.columns.reviewedAt.header`),Cell:({row:h})=>p.jsx(GX,{reviewedAt:h.original.reviewedAt})}],[e]),[i,s]=S.useState({author:!1,reviewedAt:!1,license:!1}),[a,l]=S.useState({pageIndex:0,pageSize:20}),[u,c]=S.useState(!0),[d,f]=S.useState([]);return S.useEffect(()=>{if(!t||!t.size)return;const h=[],g=o.map(v=>v.accessorKey);t.forEach((v,w)=>{g.includes(w)&&h.push({id:w,value:v.split(",")})}),f(h)},[t,o,f]),p.jsxs(nm,{header:e(`${ct}.header`),gap:0,children:[p.jsx(nt,{size:"sm",c:"dimmed",children:e(`${ct}.lastReviewedAt`,{value:FX})}),p.jsxs(mt,{my:"xl",children:[p.jsx(nt,{children:e(`${ct}.description`)}),p.jsx(Ct,{onClick:()=>r(!0),children:e(`${ct}.suggestion.button`)})]}),p.jsx(Ze,{children:p.jsx(ZM,{data:Bl,columns:o,state:{columnVisibility:i,pagination:a,showColumnFilters:u,columnFilters:d},mantinePaginationProps:{rowsPerPageOptions:["10","20","50",`${Bl.length}`]},enableColumnFilters:!0,onColumnVisibilityChange:s,onPaginationChange:l,onShowColumnFiltersChange:c,onColumnFiltersChange:f,localization:yX,defaultColumn:{maxSize:200}})}),p.jsx(WX,{open:n,setOpen:r})]})}function zX({rating:e}){if(!e)return"?";e>nv&&(e=nv);const t=LX[`${e}`];return p.jsx(ys,{c:t,style:{border:`1px solid var(--mantine-color-${t.split(".").join("-")})`},size:"md",children:`${e}/${nv}`})}
2185function VX({name:e,link:t}){return t?p.jsx(rr,{component:cu,to:t,target:"_blank",rel:"noopener noreferrer",children:e}):e}function lR({mediaTypes:e}){const{t}=yn();return e!=null&&e.length?p.jsx(mt,{gap:4,children:e.map(n=>p.jsx(tD,{children:t(`${ct}.enums.mediaType.${n}`)},n))}):"?"}function BX({businessModels:e}){const{t}=yn();return p.jsx(mt,{gap:4,children:e.map(n=>p.jsx(tD,{children:t(`${ct}.enums.businessModels.${n}`)},n))})}function HX({examples:e}){const[t,n]=S.useState(null);return p.jsxs(mt,{children:[e.map((r,o)=>p.jsx("div",{children:r.type==="image"?p.jsx(Ph,{src:r.src,alt:`Exemplo ${o+1}`,width:"60px",height:"60px",fit:"contain",onClick:()=>n(r),style:{cursor:"pointer"}}):p.jsx(rr,{href:r.src,target:"_blank",rel:"noopener noreferrer",children:`(${o+1})`})},o)),p.jsx(cr,{opened:!!t,onClose:()=>n(null),size:"xl",children:p.jsxs(Ze,{justify:"center",children:[p.jsx("img",{style:{width:"100%",height:"auto",maxHeight:"70vh",objectFit:"contain"},src:(t==null?void 0:t.src)||"",alt:"Exemplo"}),p.jsx(nt,{ta:"center",children:t==null?void 0:t.description})]})})]})}function UX({author:e,authorLink:t}){return t?p.jsx(rr,{component:cu,to:t,target:"_blank",rel:"noopener noreferrer",children:e}):e}function GX({reviewedAt:e}){if(!e)return null;const t=new Date(e),n={year:"numeric",month:"2-digit",day:"2-digit"};return t.toLocaleDateString(void 0,n)}function tD(e){return p.jsx(ys,{...e,style:{border:"1px solid var(--mantine-color-gray-7)"}})}function WX({open:e,setOpen:t}){const{t:n}=yn(),r=rx({initialValues:{name:"",link:"",description:"",rating:null,inputs:[],outputs:[],businessModels:[],license:"",author:"",authorLink:"",examples:[],updatedAt:new Date().toISOString().split("T")[0]}});function o(i){Lo.show({message:n(`${ct}.suggestion.subheader`)}),console.log(`,
2186`+JSON.stringify(i,null,2))}return p.jsx(cr,{opened:e,onClose:()=>t(!1),size:"lg",children:p.jsxs(Ze,{children:[p.jsx(da,{order:3,children:n(`${ct}.suggestion.header`)}),p.jsx(jb,{color:"yellow",icon:p.jsx(uK,{}),iconSize:30,py:"xs",children:n(`${ct}.suggestion.subheader`)}),p.jsxs(ot,{children:[p.jsx(ot.Col,{span:9,children:p.jsx(fn,{label:n(`${ct}.table.columns.name.header`),...r.getInputProps("name")})}),p.jsx(ot.Col,{span:3,children:p.jsx(fn,{label:n(`${ct}.table.columns.rating.header`),...r.getInputProps("rating"),type:"number",min:0,max:5})}),p.jsx(ot.Col,{children:p.jsx(fn,{label:n(`${ct}.table.columns.link.header`),...r.getInputProps("link")})}),p.jsx(ot.Col,{children:p.jsx($y,{label:n(`${ct}.table.columns.description.header`),...r.getInputProps("description")})}),p.jsx(ot.Col,{span:6,children:p.jsx(na,{label:n(`${ct}.table.columns.inputs.header`),data:$p,...r.getInputProps("inputs")})}),p.jsx(ot.Col,{span:6,children:p.jsx(na,{label:n(`${ct}.table.columns.outputs.header`),data:$p,...r.getInputProps("outputs")})}),p.jsx(ot.Col,{span:6,children:p.jsx(na,{label:n(`${ct}.table.columns.businessModels.header`),data:Bl.reduce((i,s)=>(s.businessModels.forEach(a=>{i.includes(a)||i.push(a)}),i),[]).sort(),...r.getInputProps("businessModels")})}),p.jsx(ot.Col,{span:6,children:p.jsx(fn,{label:n(`${ct}.table.columns.license.header`),...r.getInputProps("license")})}),p.jsx(ot.Col,{span:6,children:p.jsx(fn,{label:n(`${ct}.table.columns.author.header`),...r.getInputProps("author")})}),p.jsx(ot.Col,{span:6,children:p.jsx(fn,{label:n(`${ct}.table.columns.authorLink.header`),...r.getInputProps("authorLink")})})]}),p.jsx(mt,{justify:"flex-end",children:p.jsx(Ct,{onClick:()=>o(r.values),children:n("submit")})})]})})}function nD(){return[{socialMedia:"youtube",socialMediaName:un("socialMedia.youtube.name"),description:un("socialMedia.youtube.description"),icon:$q,url:un("socialMedia.youtube.url")},{socialMedia:"patreon",socialMediaName:un("socialMedia.patreon.name"),description:un("socialMedia.patreon.description"),icon:Oq,url:un("socialMedia.patreon.url")},{socialMedia:"tiktok",socialMediaName:un("socialMedia.tiktok.name"),description:un("socialMedia.tiktok.description"),icon:Lq,url:un("socialMedia.tiktok.url")},{socialMedia:"instagram",socialMediaName:un("socialMedia.instagram.name"),description:un("socialMedia.instagram.description"),icon:Aq,url:un("socialMedia.instagram.url")},{socialMedia:"facebook",socialMediaName:un("socialMedia.facebook.name"),description:un("socialMedia.facebook.description"),icon:Mq,url:un("socialMedia.facebook.url")},{socialMedia:"website",socialMediaName:un("socialMedia.website.name"),description:un("socialMedia.website.description"),icon:Tq,url:un("socialMedia.website.url")}]}function xm({actionIconProps:e,iconProps:t}){const n=nD();return p.jsx(p.Fragment,{children:n.map((r,o)=>p.jsx(lt,{component:cu,to:r.url,target:"_blank",rel:"noopener noreferrer",size:"lg",variant:"transparent",...e,children:p.jsx(r.icon,{size:24,...t})},o))})}const Xu="layouts.wiki",KX=nD();function qX(){return p.jsxs(Ze,{id:"wiki-root",style:{flexGrow:1,animation:"fadeInRight 0.4s ease-out"},children:[p.jsx(YX,{}),p.jsx(tm,{}),p.jsx(XX,{})]})}function YX(){const{t:e}=yn();return p.jsxs(mt,{justify:"space-between",px:"lg",py:"lg",className:"dark-gradient-bg",children:[p.jsxs(mt,{gap:"xs",children:[p.jsx(_i,{src:"/logo-256.png",alt:e("appName")||"",variant:"outline"}),p.jsx(rD,{})]}
2186),p.jsxs(mt,{visibleFrom:"md",children:[p.jsx(mt,{gap:0,children:p.jsx(xm,{})}),p.jsx(Ct,{component:"a",href:e("socialMedia.youtube.url"),target:"_blank",rel:"noopener noreferrer",size:"lg",className:"animate-pulse",children:e(`${Xu}.header.youtube`)})]}),p.jsxs(Ne,{shadow:"md",width:240,position:"bottom-end",children:[p.jsx(Ne.Target,{children:p.jsx(lt,{hiddenFrom:"md",children:p.jsx(xM,{})})}),p.jsx(Ne.Dropdown,{children:KX.map((t,n)=>p.jsx(Ne.Item,{component:cu,to:t.url,target:"_blank",rel:"noopener noreferrer",leftSection:p.jsx(t.icon,{size:16}),children:t.description},n))})]})]})}function XX(){const{t:e}=yn();return p.jsxs(Ze,{className:"dark-gradient-bg",p:"lg",gap:"xl",children:[p.jsxs(mt,{justify:"space-between",gap:"xl",align:"flex-start",children:[p.jsxs(Ze,{children:[p.jsxs(mt,{gap:"xs",children:[p.jsx(_i,{src:"/logo-256.png",alt:e("appName")||"",variant:"outline"}),p.jsx(rD,{})]}),p.jsx(nt,{maw:500,children:e(`${Xu}.footer.description`)})]}),p.jsxs(Ze,{gap:"xs",children:[p.jsx(mt,{gap:0,children:p.jsx(xm,{})}),p.jsx(Ct,{component:"a",href:e("socialMedia.youtube.url"),target:"_blank",rel:"noopener noreferrer",children:e(`${Xu}.header.youtube`)})]})]}),p.jsxs(mt,{justify:"space-between",children:[p.jsx(nt,{size:"xs",children:e(`${Xu}.footer.copyright`,{year:new Date().getFullYear()})}),p.jsx(nt,{size:"xs",children:e(`${Xu}.footer.madeWithLove`)})]})]})}function rD(e){const{t}=yn();return p.jsx(nt,{c:"var(--mantine-color-white)",size:"xl",style:{fontFamily:"serif",textShadow:"0px 0px 10px"},...e,children:t("appName")})}async function oD(){const e=await Dw();return e?{displayName:e.displayName,email:e.email,photoURL:e.photoURL}:null}const uR=[{date:"05-06",name:"Dia Nacional da Matemática"},{date:"05-06",name:"Dia do Cartógrafo"},{date:"05-06",name:"Dia do Psicanalista"},{date:"05-07",name:"Dia Mundial do Silêncio"},{date:"05-07",name:"Dia do Oftalmologista"},{date:"05-08",name:"Dia do Artista Plástico Brasileiro"},{date:"05-08",name:"Dia do Profissional de Marketing"},{date:"05-10",name:"Nacional do Guia de Turismo"},{date:"05-10",name:"Dia da Cozinheira"},{date:"05-11",name:"Dia das mães (Segundo domingo de maio)"},{date:"05-12",name:"Dia Internacional da Enfermagem e do Enfermeiro"},{date:"05-13",name:"Dia da Abolição da Escravatura"},{date:"05-13",name:"Dia do Chefe de Cozinha"},{date:"05-15",name:"Dia do Cortejo"},{date:"05-15",name:"Dia do Assistente Social"},{date:"05-16",name:"Dia dos cientistas"},{date:"05-16",name:"Dia do Gari"},{date:"05-17",name:"Dia Internacional da Luta Contra à Homofobia."},{date:"05-17",name:"Dia Internacional da Comunicação"},{date:"05-18",name:"Dia Nacional de Combate ao Abuso e à Exploração Sexual de Crianças e Adolescentes"},{date:"05-19",name:"Dia do Profissional de Física"},{date:"05-20",name:"Dia do Comissário de Menores"},{date:"05-20",name:"Dia Nacional do Técnico e Auxiliar de Enfermagem"},{date:"05-20",name:"Dia do Pedagogo"},{date:"05-22",name:"Dia do Apicultor"},{date:"05-23",name:"Dia do Sol"},{date:"05-24",name:"Dia da Indústria Gráfica"},{date:"05-24",name:"Dia da Lua"},{date:"05-25",name:"Dia da Indústria e do Industrial"},{date:"05-25",name:"Dia da Costureira"},{date:"05-25",name:"Dia do Massagista"},{date:"05-25",name:"Dia do Trabalhador Rural"},{date:"05-25",name:"Dia do Orgulho Nerd"},{date:"05-26",name:"Dia do Revendedor Lotérico"},{date:"05-28",name:"Dia de Ação pela Saúde da Mulher"},{date:"05-28",name:"Dia Mundial Contra a Mortalidade Materna"},{date:"05-28",name:"Dia do Ceramista"},{date:"05-29",name:"Dia do Geógrafo e do Estatístico — Instituto Brasileiro de Geografia e Estatística (IBGE)"},{date:"05-30",name:"Dia do Geólogo"},{date:"05-30",name:"Dia do Decorador"},{date:"05-31",name:"Dia da Aeromoça e do Comissário de Voo"},{date:"06-03",name:"Dia Internacional do Administrador de Pessoal e da Comunidade Social"},{date:"06-03",name:"Dia do Profissional de Recursos Humanos"},{date:"06-04",name:"Dia do Engenheiro Agrimensor"},{date:"06-05",name:"Dia Mundial do meio ambiente"},{date:"06-08",name:"Dia do Oceanógrafo"},{date:"06-09",name:"Dia do Porteiro"},{date:"06-09",name:"Dia do Tenista"},{date:"06-11",name:"Dia do Educador Sanitário"},{date:"06-12",name:"Dia dos Namorados"},{date:"06-12",name:"Dia mundial contra o Trabalho infantil"},{date:"06-13",name:"Dia de Santo Antônio"},{date:"06-14",name:"Dia do Solista"},{date:"06-17",name:"Dia do Gestor Comercial"},{date:"06-18",name:"Dia do Químico"},{date:"06-18",name:"Dia da Imigração japonesa no Brasil"},{date:"06-19",name:"Dia do Cinema Brasileiro"},{date:"06-19",name:"Dia Nacional do Luto"},{date:"06-20",name:"Início do Inverno (2025)"},{date:"06-21",name:"Dia do Profissional de Mídia"},{date:"06-22",name:"Dia do Aeroviário"},{date:"06-22",name:"Dia do Economiário"},{date:"06-23",name:"Dia Olímpico e do Atleta Olímpico"},{date:"06-23",name:"Dia Internacional das Mulheres na Engenharia"},{date:"06-24",name:"Dia de São João"},{date:"06-26",name:"Dia do Metrologista"},{date:"06-27",name:"Dia Nacional do Quadrilheiro Junino"},{date:"06-28",name:"Dia Internacional do Orgulho LGBTQIA+"},{date:"06-29",name:"Dia de São Pedro"},{date:"06-29",name:"Dia de São Paulo"},{date:"06-29",name:"Dia do Pescador"},{date:"06-29",name:"Dia do Telefonista"},{date:"07-02",name:"Dia do Bombeiro Brasileiro"},{date:"07-04",name:"Dia do Operador de Telemarketing"}
2186,{date:"07-08",name:"Dia Nacional do Pesquisador"},{date:"07-10",name:"Dia do Engenheiro de Minas"},{date:"07-12",name:"Dia do Engenheiro Florestal"},{date:"07-13",name:"Dia Mundial do Rock"},{date:"07-14",name:"Dia do Engenheiro de Aquicultura"},{date:"07-14",name:"Dia do Administrador Hospitalar"},{date:"07-15",name:"Dia dos Homens"},{date:"07-16",name:"Dia do Comerciante"},{date:"07-20",name:"Dia do Amigo"},{date:"07-20",name:"Dia Pan-americano do Engenheiro"},{date:"07-21",name:"Dia Nacional do Garimpeiro"},{date:"07-22",name:"Dia do Cantor Lírico"},{date:"07-25",name:"Dia do Escritor"},{date:"07-26",name:"Dia dos Avós"},{date:"07-26",name:"Dia Nacional do Arqueólogo"},{date:"07-27",name:"Dia do Pediatra"},{date:"07-28",name:"Dia do Agricultor"},{date:"07-31",name:"Dia Mundial do Guarda-Florestal"},{date:"08-01",name:"Dia do Cerealista"},{date:"08-03",name:"Dia do Tintureiro"},{date:"08-04",name:"Dia do Padre e do Sacerdote"},{date:"08-06",name:"Dia Nacional dos Profissionais da Educação"},{date:"08-10",name:"Dia dos Pais (Segundo domingo de agosto)"},{date:"08-11",name:"Dia do Estudante"},{date:"08-11",name:"Dia do Garçom"},{date:"08-11",name:"Dia do Magistrado"},{date:"08-13",name:"Dia Mundial do canhoto"},{date:"08-13",name:"Dia do Economista"},{date:"08-14",name:"Dia do Cardiologista"},{date:"08-15",name:"Dia do Analista de Sistemas"},{date:"08-16",name:"Dia do Filósofo"},{date:"08-19",name:"Dia do Artista de Teatro"},{date:"08-19",name:"Dia do Historiador"},{date:"08-22",name:"Dia do Folclore"},{date:"08-22",name:"Dia do Supervisor e Coordenador"},{date:"08-23",name:"Dia do Susto"},{date:"08-23",name:"Dia do Aviador Naval"},{date:"08-25",name:"Dia do Soldado"},{date:"08-27",name:"Dia do Psicólogo"},{date:"08-31",name:"Dia do Nutricionista"},{date:"09-01",name:"Dia do Profissional de Educação Física"},{date:"09-02",name:"Dia do Florista"},{date:"09-02",name:"Dia do Repórter Fotográfico"},{date:"09-03",name:"Dia Nacional do Biólogo"},{date:"09-05",name:"Dia da Amazônia"},{date:"09-05",name:"Dia dos Irmãos"},{date:"09-06",name:"Dia do Alfaiate"},{date:"09-07",name:"Dia da Proclamação da Independência do Brasil"},{date:"09-09",name:"Dia do Administrador"},{date:"09-09",name:"Dia do Médico Veterinário"},{date:"09-11",name:"Dia Nacional do Cerrado"},{date:"09-13",name:"Dia do Programador"},{date:"09-16",name:"Dia do Caminhoneiro"},{date:"09-19",name:"Dia Nacional do Educador Social"},{date:"09-19",name:"Dia do Ortopedista"},{date:"09-20",name:"Dia do Engenheiro Químico"},{date:"09-20",name:"Dia do Funcionário Municipal"},{date:"09-21",name:"Dia da Árvore"},{date:"09-22",name:"Início da Primavera (2025)"},{date:"09-23",name:"Dia da Aurora"},{date:"09-23",name:"Dia do Soldador"},{date:"09-25",name:"Dia Nacional da Rádio"},{date:"09-25",name:"Dia Internacional do Farmacêutico"},{date:"09-26",name:"Dia Nacional dos Surdos"},{date:"09-27",name:"Dia do Encanador"},{date:"09-28",name:"Dia do Hidrógrafo"},{date:"09-30",name:"Dia da Secretaria"},{date:"09-30",name:"Dia Mundial do Tradutor"},{date:"09-30",name:"Dia Nacional do Jornaleiro"},{date:"10-01",name:"Dia do Vendedor"},{date:"10-03",name:"Dia Mundial do Dentista"},{date:"10-04",name:"Dia do Agente Comunitário de Saúde"},{date:"10-04",name:"Dia do Barman"},{date:"10-04",name:"Dia do Médico do Trabalho"},{date:"10-05",name:"Dia Mundial dos Professores"},{date:"10-06",name:"Dia do Tecnólogo"},{date:"10-07",name:"Dia do Compositor Brasileiro"},{date:"10-08",name:"Dia do Nordestino"},{date:"10-12",name:"Dia das Crianças"},{date:"10-13",name:"Dia Nacional do Fisioterapeuta"},{date:"10-14",name:"Dia do Meteorologista"},{date:"10-15",name:"Dia do Professor"},{date:"10-15",name:"Dia do Educador Ambiental"},{date:"10-16",name:"Dia do Anestesiologista"},{date:"10-16",name:"Dia do Engenheiro de Alimentos"},{date:"10-17",name:"Dia do Eletricista"},{date:"10-18",name:"Dia do Médico"},{date:"10-18",name:"Dia do Pintor"},{date:"10-19",name:"Dia do Guarda Noturno"},{date:"10-19",name:"Dia do Profissional de Informática"},{date:"10-19",name:"Dia do Profissional de Tecnologia da Informação"},{date:"10-19",name:"Dia do Operador de Caixa"},{date:"10-20",name:"Dia do Arquivista"},{date:"10-20",name:"Dia do Maquinista"},{date:"10-20",name:"Dia Mundial do Controlador de Tráfego Aéreo"},{date:"10-20",name:"Dia do Poeta"},{date:"10-22",name:"Dia do Enólogo"},{date:"10-22",name:"Dia do Paraquedista"},{date:"10-23",name:"Dia do Aviador"},{date:"10-25",name:"Dia do Dentista"},{date:"10-25",name:"Dia do Engenheiro Civil"},{date:"10-25",name:"Dia do Sapateiro"},{date:"10-26",name:"Dia do Trabalhador da Construção Civil"},{date:"10-27",name:"Dia do Engenheiro Agrícola"},{date:"10-28",name:"Dia do Servidor Público"},{date:"10-30",name:"Dia do Balconista"},{date:"10-30",name:"Dia do Comerciário"},{date:"10-30",name:"Dia do Ginecologista"},{date:"10-30",name:"Dia da Merendeira Escolar"},{date:"10-30",name:"Dia do Designer de Interiores"},{date:"10-31",name:"Dia do Saci"},{date:"10-31",name:"Dia das Bruxas (Halloween)"},{date:"11-01",name:"Dia de Todos os Santos"}
2186,{date:"11-02",name:"Dia de Finados"},{date:"11-03",name:"Dia da Instituição do Direito de Voto da Mulher"},{date:"11-04",name:"Dia do Inventor"},{date:"11-05",name:"Dia do Designer Gráfico"},{date:"11-05",name:"Dia do Protético"},{date:"11-05",name:"Dia do Radioamador"},{date:"11-05",name:"Dia do Técnico Agrícola"},{date:"11-05",name:"Dia do Técnico em Eletrônica"},{date:"11-05",name:"Dia Nacional da Língua Portuguesa"},{date:"11-05",name:"Dia da Cultura e da Ciência"},{date:"11-07",name:"Dia do Radialista"},{date:"11-08",name:"Dia do Radiologista"},{date:"11-08",name:"Dia Mundial do Urbanismo"},{date:"11-09",name:"Dia do Hoteleiro"},{date:"11-09",name:"Dia Internacional contra o Fascismo e o Antissemitismo"},{date:"11-12",name:"Dia do Diretor de Escola"},{date:"11-12",name:"Dia Nacional do Inventor"},{date:"11-14",name:"Dia Nacional da Alfabetização"},{date:"11-14",name:"Dia do Vendedor Ambulante"},{date:"11-15",name:"Dia da Proclamação da República"},{date:"11-15",name:"Dia do Joalheiro"},{date:"11-18",name:"Dia do Conselheiro Tutelar"},{date:"11-19",name:"Dia da Bandeira Nacional"},{date:"11-19",name:"Dia Internacional do Homem"},{date:"11-20",name:"Dia da Consciência Negra"},{date:"11-20",name:"Dia do Biomédico"},{date:"11-20",name:"Dia do Auditor Interno"},{date:"11-20",name:"Dia do Técnico em Contabilidade"},{date:"11-22",name:"Dia do Músico"},{date:"11-23",name:"Dia do Engenheiro Eletricista"},{date:"11-27",name:"Dia do Técnico em Segurança do Trabalho"},{date:"12-01",name:"Dia do Numismata"},{date:"12-01",name:"Dia Mundial de Conscientização e Combate à AIDS"},{date:"12-02",name:"Dia Nacional das Relações Públicas"},{date:"12-04",name:"Dia do Orientador Educacional"},{date:"12-04",name:"Dia do Perito Criminal"},{date:"12-04",name:"Dia do Pedicuro"},{date:"12-04",name:"Dia do Trabalhador nas Minas de Carvão"},{date:"12-05",name:"Dia do Médico de Família e Comunidade"},{date:"12-07",name:"Dia Nacional da Silvicultura"},{date:"12-07",name:"Dia Internacional da Aviação Civil"},{date:"12-08",name:"Dia da Justiça"},{date:"12-08",name:"Dia do Colunista Social"},{date:"12-09",name:"Dia do Fonoaudiólogo"},{date:"12-10",name:"Dia Universal do Palhaço"},{date:"12-10",name:"Dia do Sociólogo"},{date:"12-11",name:"Dia do Engenheiro Civil"},{date:"12-13",name:"Dia do Engenheiro Avaliador e Perito de Engenharia"},{date:"12-13",name:"Dia do Lapidador"},{date:"12-13",name:"Dia do Marinheiro"},{date:"12-13",name:"Dia do Ótico"},{date:"12-13",name:"Dia do Pedreiro"},{date:"12-13",name:"Dia do Engenheiro de Pesca"},{date:"12-13",name:"Dia do Arquiteto"},{date:"12-13",name:"Dia do Jardineiro"},{date:"12-13",name:"Dia do Engenheiro de Produção"},{date:"12-18",name:"Dia do Museólogo"},{date:"12-20",name:"Dia do Mecânico"},{date:"12-21",name:"Início do Verão (2025)"},{date:"12-24",name:"Véspera de Natal"},{date:"12-25",name:"Natal"},{date:"12-28",name:"Dia do Salva-vidas"},{date:"12-28",name:"Dia do Petroquímico"},{date:"12-31",name:"Vespera de Ano-Novo"}];async function JX(e,t){const r=`https://api-pdtruafuwa-uc.a.run.app${e}`,o=await Dw();if(!o)throw new Error("User is not authenticated");const i=await o.getIdToken(),s=await fetch(r,{method:"POST",...t,headers:{Authorization:`Bearer ${i}`,"Access-Control-Allow-Origin":"*","Content-Type":"application/json",...t==null?void 0:t.headers}});if(!s.ok){const a=new Error("HTTP Error");throw a.statusCode=s.status,a.statusText=s.statusText,a}return await s.json()}const zp=[{id:"flux-1-dev",name:"Flux 1 Dev"},{id:"flux-1-schnell",name:"Flux 1 Schnell"},{id:"hidream-l1-dev",name:"HiDream l1 Dev"},{id:"hidream-l1-fast",name:"HiDream l1 Fast (padrão)"},{id:"juggernaut-xl-lightning",name:"Juggernaut XL Lightning (SDXL)",promptStyle:"prompt de Stable Diffusion XL, ou seja, uma lista de tags escritas em Inglês separadas por vírgula,"}],cR=[{id:"landscape",name:"Landscape"},{id:"square",name:"Square"},{id:"portrait",name:"Portrait"}],iD=new Date().toLocaleDateString("en-CA"),[dR,QX]=iD.split("-",2);async function ZX({request:e}){var d,f;const t=await oD(),n=new URL(e.url).searchParams,r=n.get("date")||iD,o=n.get("theme")||"",i=((d=zp.find(h=>h.id===n.get("modelId")))==null?void 0:d.id)||zp[1].id,s=Math.max(1,Math.min(4,parseInt(n.get("batchCount")||"2",10))),a=((f=cR.find(h=>h.id===n.get("orientation")))==null?void 0:f.id)||cR[1].id,l=parseInt(n.get("seed")||"-1"),u=n.get("recipient")||(t==null?void 0:t.email)||"[email protected]",c=!!n.get("isManualPrompt")||!1;return{date:r,theme:o,modelId:i,batchCount:s,orientation:a,seed:l,recipient:u,isManualPrompt:c}}function eJ(){const{date:e,theme:t,modelId:n,batchCount:r,orientation:o,seed:i,recipient:s,isManualPrompt:a}=yH(),l=rx({initialValues:{date:e,theme:t,hashtags:"",prompt:"",isManualPrompt:a,modelId:n,batchCount:r,orientation:o,seed:i,recipient:s}}),[u,c]=S.useState(!1),[d,f]=S.useState({pageIndex:0,pageSize:4}),[h,g]=S.useState("xs"),v=S.useMemo(()=>{const y=zp.find(x=>x.id===l.values.modelId);return(y==null?void 0:y.promptStyle)||"prompt detalhado para geração de imagens, escrito em Inglês e em linguagem natural,"},[l.values.modelId]),w=async y=>{try{if(u)return;c(!0);const{date:x,prompt:R,theme:k,hashtags:I,isManualPrompt:C,modelId:_,batchCount:T,orientation:P,seed:M,recipient:O}=y,A=await JX("/daily-post",{method:"POST",body:JSON.stringify({date:x,prompt:R,theme:k,hashtags:I,isManualPrompt:C,modelId:_,batchCount:T,orientation:P,seed:M,recipient:O})});console.log("Response: ",A),mi.show({title:"Success",message:"Image generated successfully, please check the recipient inbox",color:"green"})}catch(x){mi.show({title:"Error",message:"An error occurred while generating the image. Please try again later.",color:"red"}),console.error("Error generating image: ",x)}finally{c(!1)}},b=S.useMemo(()=>[{accessorKey:"date",header:"Date",Cell:({row:y})=>new Date(`${dR}-${y.original.date}`).toLocaleDateString("en-NZ",{dateStyle:"medium"}),size:64},{accessorKey:"name",header:"Event name",filterFn:"fuzzy"}],[]);return p.jsx(nm,{header:`Daily posts - ${new Date().toLocaleDateString("en-NZ",{dateStyle:"full"})}`,children:p.jsx("form",{onSubmit:l.onSubmit(w),children:p.jsxs(ot,{children:[p.jsx(ot.Col,{span:{base:12},children:p.jsx(ZM,{data:uR,columns:b,positionGlobalFilter:"left",state:{pagination:d,density:h,showGlobalFilter:!0},mantinePaginationProps:{rowsPerPageOptions:["4","12","50",`${uR.length}`]},mantineSearchTextInputProps:{placeholder:`MM-dd (eg.: ${QX})`,defaultValue:e},mantineTableBodyRowProps:({row:y})=>({onClick:()=>{l.setFieldValue("date",`${dR}-${y.original.date}`),l.setFieldValue("prompt",`Crie um ${v}
2186 homenageando de forma criativa o ${y.original.name}.`),l.setFieldValue("theme",y.original.name)}}),enableColumnFilters:!0,onPaginationChange:f,onDensityChange:g,defaultColumn:{maxSize:200}})}),p.jsx(ot.Col,{span:{base:12,xs:6},children:p.jsx(fn,{label:"Date",type:"date",required:!0,...l.getInputProps("date")})}),p.jsx(ot.Col,{span:{base:12,xs:6},children:p.jsx(fn,{label:"Theme",...l.getInputProps("theme")})}),p.jsx(ot.Col,{span:{base:12},children:p.jsx($y,{label:"Hashtags",...l.getInputProps("hashtags"),onClear:()=>l.setFieldValue("hashtags","")})}),p.jsx(ot.Col,{span:{base:12},children:p.jsx($y,{label:"Prompt",required:!0,...l.getInputProps("prompt"),onClear:()=>l.setFieldValue("prompt","")})}),p.jsx(ot.Col,{span:{base:12},children:p.jsx(Is,{label:"Manually prompt image model",...l.getInputProps("isManualPrompt",{type:"checkbox"})})}),p.jsx(ot.Col,{span:{base:12,xs:6},children:p.jsx(iu,{label:"Image model",data:zp.map(y=>y.id),searchable:!0,required:!0,...l.getInputProps("modelId")})}),p.jsx(ot.Col,{span:{base:12,xs:6},children:p.jsx(fn,{label:"Seed",type:"number",required:!0,min:-1,max:Number.MAX_SAFE_INTEGER,...l.getInputProps("seed")})}),p.jsx(ot.Col,{span:{base:12},children:p.jsx(fn,{label:"Recipient",description:"Email to receive the generated images, separated by commas",type:"email",...l.getInputProps("recipient")})}),p.jsx(ot.Col,{span:{base:12},children:p.jsx(Ct,{type:"submit",loading:u,children:"Generate"})})]})})})}async function tJ(){if(!await oD())throw Aw("/auth/logout");return null}function nJ(){return p.jsxs(Ze,{children:[p.jsx(tm,{}),p.jsx(rr,{component:cu,to:"/auth/logout",children:"Sign out"})]})}const rJ=async()=>{if(await Dw())throw Aw("/admin/dailyPost");return null};function oJ(){const e=Zh(),[t,n]=S.useState(!1),r=rx({initialValues:{email:"",password:""}}),o=async i=>{try{if(t)return;n(!0);const s=await pI(i.email,i.password);if(!s)throw new Error("User is not authenticated");console.debug("User signed in:",s),e("/admin/dailyPost")}catch(s){console.error("Error signing in:",s),mi.show({title:"Error signing in",message:"There was an error signing in. Please try again.",color:"red"})}finally{n(!1)}};return p.jsx(nm,{title:"Sign in",children:p.jsx("form",{onSubmit:r.onSubmit(o),children:p.jsxs(Ze,{children:[p.jsx(fn,{label:"Email",placeholder:"Enter your email",...r.getInputProps("email")}),p.jsx(fn,{label:"Password",placeholder:"Enter your password",type:"password",...r.getInputProps("password")}),p.jsx(Ct,{type:"submit",loading:t,children:"Sign in"})]})})})}const iJ=async()=>{throw await hI(),Aw("/auth/login")};function sJ(){return p.jsx(p.Fragment,{children:"Signing out..."})}function aJ(){return window.location.replace("https://memetopia.web.app"),null}const cn="layouts.heroPage";function lJ(){return p.jsxs(Ze,{id:"hero-page-root",style:{flexGrow:1,animation:"fadeInRight 0.4s ease-out"},gap:0,children:[p.jsx(uJ,{}),p.jsx(tm,{}),p.jsx(cJ,{})]})}function uJ(){const{t:e}=yn();return p.jsxs(mt,{justify:"space-between",bg:"#000",px:{md:"7rem",base:"xl"},py:"lg",children:[p.jsxs(mt,{gap:"xs",children:[p.jsx(_i,{src:"/logo-256.png",alt:e("appName")||"",variant:"outline"}),p.jsx(sD,{})]}),p.jsxs(mt,{visibleFrom:"md",children:[p.jsx(rr,{href:"#about",children:e(`${cn}.header.about`)}),p.jsx(rr,{href:"#content",children:e(`${cn}.header.content`)}),p.jsx(rr,{href:"#instructor",children:e(`${cn}.header.instructor`)}),p.jsx(rr,{href:"#resources",children:e(`${cn}.header.resources`)}),p.jsx(Ct,{component:"a",href:e("socialMedia.youtube.url"),target:"_blank",rel:"noopener noreferrer",size:"md",children:e(`${cn}.header.youtube`)})]}),p.jsxs(Ne,{shadow:"md",width:200,position:"bottom-end",children:[p.jsx(Ne.Target,{children:p.jsx(lt,{hiddenFrom:"md",children:p.jsx(xM,{})})}),p.jsxs(Ne.Dropdown,{children:[p.jsx(Ne.Item,{component:"a",href:"#about",children:e(`${cn}.header.about`)}),p.jsx(Ne.Item,{component:"a",href:"#content",children:e(`${cn}.header.content`)}),p.jsx(Ne.Item,{component:"a",href:"#instructor",children:e(`${cn}.header.instructor`)}),p.jsx(Ne.Item,{component:"a",href:"#resources",children:e(`${cn}.header.resources`)}),p.jsx(Ne.Item,{color:"var(--mantine-primary-color-light-color)",component:"a",href:e("socialMedia.youtube.url"),target:"_blank",rel:"noopener noreferrer",children:e(`${cn}.header.youtube`)})]})]})]})}function cJ(){const{t:e}=yn();return p.jsxs(Ze,{px:{md:"7rem",base:"xl"},py:{md:"4rem",base:"xl"},bg:"#000",gap:"xl",children:[p.jsxs(mt,{justify:"space-between",gap:"xl",align:"flex-start",wrap:"wrap",children:[p.jsxs(Ze,{children:[p.jsxs(mt,{gap:"xs",children:[p.jsx(_i,{src:"/logo-256.png",alt:e("appName")||"",variant:"outline"}),p.jsx(sD,{})]}),p.jsx(nt,{maw:500,children:e(`${cn}.footer.description`)})]}),p.jsxs(Ze,{align:"flex-end",gap:"xs",children:[p.jsx(nt,{fw:700,c:"white",children:e(`${cn}.footer.linksHeader`)}),p.jsx(rr,{href:e("socialMedia.youtube.url"),target:"_blank",rel:"noopener noreferrer",children:e(`${cn}.footer.youtube`)}),p.jsx(rr,{href:e("socialMedia.patreon.url"),target:"_blank",rel:"noopener noreferrer",children:e(`${cn}.footer.patreon`)}),p.jsx(rr,{href:"/memetopia",children:e(`${cn}.footer.memetopia`)}),p.jsx(rr,{href:"/wiki/ia",children:e(`${cn}.footer.wiki`)})]})]}),p.jsxs(mt,{justify:"space-between",children:[p.jsx(nt,{size:"xs",children:e(`${cn}.footer.copyright`,{year:new Date().getFullYear()})}),p.jsx(nt,{size:"xs",children:e(`${cn}.footer.madeWithLove`)})]})]})}function sD(e){const{t}=yn();return p.jsx(nt,{c:"var(--mantine-color-white)",size:"xl",style:{fontFamily:"serif",textShadow:"0px 0px 20px"},...e,children:t("appName")})}function dJ(e,t,n,r,o){return r+(o-r)*((e-t)/(n-t))}function ox(e){return typeof e=="number"}function fR(e){return typeof e=="string"}function Uy(e){return Object.prototype.toString.call(e)==="[object Object]"}function fJ(e){return Array.isArray(e)}
2186function pR(e){return Uy(e)||fJ(e)}function qt(e){return Math.abs(e)}function ix(e){return e?e/qt(e):0}function Ju(e,t){return qt(e-t)}function pJ(e,t){if(e===0||t===0||qt(e)<=qt(t))return 0;var n=Ju(qt(e),qt(t));return qt(n/e)}function hJ(e){var t=Math.pow(10,e);return function(n){return Math.round(n*t)/t}}function Vc(e){return oa(e).map(Number)}function li(e){return e[Sm(e)]}function Sm(e){return Math.max(0,e.length-1)}function oa(e){return Object.keys(e)}function aD(e,t){return[e,t].reduce(function(n,r){return oa(r).forEach(function(o){var i=n[o],s=r[o],a=Uy(i)&&Uy(s);n[o]=a?aD(i,s):s}),n},{})}function lD(e,t){var n=oa(e),r=oa(t);return n.length!==r.length?!1:n.every(function(o){var i=e[o],s=t[o];return typeof i=="function"?"".concat(i)==="".concat(s):!pR(i)||!pR(s)?i===s:lD(i,s)})}function mJ(e,t){var n={start:r,center:o,end:i};function r(){return 0}function o(u){return i(u)/2}function i(u){return t-u}function s(){return t*Number(e)}function a(u){return ox(e)?s():n[e](u)}var l={measure:a};return l}function gJ(e){var t=0;function n(s,a){return function(){s===!!t&&a()}}function r(){t=window.requestAnimationFrame(e)}function o(){window.cancelAnimationFrame(t),t=0}var i={proceed:n(!0,r),start:n(!1,r),stop:n(!0,o)};return i}function vJ(e,t){var n=e==="y"?"y":"x",r=e==="y"?"x":"y",o=a(),i=l();function s(c){var d=c.width,f=c.height;return n==="x"?d:f}function a(){return n==="y"?"top":t==="rtl"?"right":"left"}function l(){return n==="y"?"bottom":t==="rtl"?"left":"right"}var u={scroll:n,cross:r,startEdge:o,endEdge:i,measureSize:s};return u}function Hl(e,t){var n=qt(e-t);function r(u){return u<e}function o(u){return u>t}function i(u){return r(u)||o(u)}function s(u){return i(u)?r(u)?e:t:u}function a(u){return n?u-n*Math.ceil((u-t)/n):u}var l={length:n,max:t,min:e,constrain:s,reachedAny:i,reachedMax:o,reachedMin:r,removeOffset:a};return l}function uD(e,t,n){var r=Hl(0,e),o=r.min,i=r.constrain,s=e+1,a=l(t);function l(g){return n?qt((s+g)%s):i(g)}function u(){return a}function c(g){return a=l(g),h}function d(g){return c(u()+g)}function f(){return uD(e,u(),n)}var h={add:d,clone:f,get:u,set:c,min:o,max:e};return h}function yJ(e){var t=e==="rtl"?-1:1;function n(o){return o*t}var r={apply:n};return r}function Vp(){var e=[];function t(o,i,s,a){return a===void 0&&(a={passive:!0}),o.addEventListener(i,s,a),e.push(function(){return o.removeEventListener(i,s,a)}),r}function n(){return e=e.filter(function(o){return o()}),r}var r={add:t,removeAll:n};return r}function ps(e){var t=e;function n(){return t}function r(d){return t=u(d),c}function o(d){return t+=u(d),c}function i(d){return t-=u(d),c}function s(d){return t*=d,c}function a(d){return t/=d,c}function l(){return t!==0&&a(t),c}function u(d){return ox(d)?d:d.get()}var c={add:o,divide:a,get:n,multiply:s,normalize:l,set:r,subtract:i};return c}function bJ(e,t,n,r,o,i,s,a,l,u,c,d,f,h,g,v){var w=e.cross,b=["INPUT","SELECT","TEXTAREA"],y={passive:!1},x=ps(0),R=Vp(),k=Vp(),I=f.measure(20),C={mouse:300,touch:400},_={mouse:500,touch:600},T=g?5:16,P=1,M=0,O=0,A=!1,V=!1,z=!1,N=!1;function F(){var W=n;R.add(W,"dragstart",function(se){return se.preventDefault()},y).add(W,"touchmove",function(){},y).add(W,"touchend",function(){}).add(W,"touchstart",ee).add(W,"mousedown",ee).add(W,"touchcancel",X).add(W,"contextmenu",X).add(W,"click",J,!0)}function j(){var W=N?document:n;k.add(W,"touchmove",oe,y).add(W,"touchend",X).add(W,"mousemove",oe,y).add(W,"mouseup",X)}function L(){R.removeAll(),k.removeAll()}function B(W){var se=W.nodeName||"";return b.indexOf(se)>-1}function H(){var W=g?_:C,se=N?"mouse":"touch";return W[se]}function G(W,se){var ue=c.clone().add(ix(W)*-1),le=ue.get()===c.min||ue.get()===c.max,Re=u.byDistance(W,!g).distance;return g||qt(W)<I?Re:!h&&le?Re*.4:v&&se?Re*.5:u.byIndex(ue.get(),0).distance}function ee(W){if(N=!o.isTouchEvent(W),!(N&&W.button!==0)&&!B(W.target)){var se=Ju(r.get(),i.get())>=2,ue=N||!se;A=!0,o.pointerDown(W),x.set(r),r.set(i),l.useBaseMass().useSpeed(80),j(),M=o.readPoint(W),O=o.readPoint(W,w),d.emit("pointerDown"),ue&&(z=!1)}}function oe(W){if(!V&&!N){if(!W.cancelable)return X(W);var se=o.readPoint(W),ue=o.readPoint(W,w),le=Ju(se,M),Re=Ju(ue,O);if(V=le>Re,!V&&!z)return X(W)}var ye=o.pointerMove(W);!z&&ye&&(z=!0),s.start(),r.add(t.apply(ye)),W.preventDefault()}function X(W){var se=u.byDistance(0,!1),ue=se.index!==c.get(),le=o.pointerUp(W)*H(),Re=G(t.apply(le),ue),ye=pJ(le,Re),ge=Ju(r.get(),x.get())>=.5,Le=ue&&ye>.75,de=qt(le)<I,De=Le?10:T,Oe=Le?P+2.5*ye:P;ge&&!N&&(z=!0),V=!1,A=!1,k.removeAll(),l.useSpeed(de?9:De).useMass(Oe),a.distance(Re,!g),N=!1,d.emit("pointerUp")}function J(W){z&&(W.stopPropagation(),W.preventDefault())}function q(){return!z}function ne(){return A}var Y={addActivationEvents:F,clickAllowed:q,pointerDown:ne,removeAllEvents:L};return Y}
2186function wJ(e){var t=170,n,r;function o(d){return typeof TouchEvent<"u"&&d instanceof TouchEvent}function i(d){return d.timeStamp}function s(d,f){var h=f||e.scroll,g="client".concat(h==="x"?"X":"Y");return(o(d)?d.touches[0]:d)[g]}function a(d){return n=d,r=d,s(d)}function l(d){var f=s(d)-s(r),h=i(d)-i(n)>t;return r=d,h&&(n=d),f}function u(d){if(!n||!r)return 0;var f=s(r)-s(n),h=i(d)-i(n),g=i(d)-i(r)>t,v=f/h,w=h&&!g&&qt(v)>.1;return w?v:0}var c={isTouchEvent:o,pointerDown:a,pointerMove:l,pointerUp:u,readPoint:s};return c}function xJ(e){function t(r){return e*(r/100)}var n={measure:t};return n}function SJ(e,t,n){var r=hJ(2),o=ps(0),i=ps(0),s=ps(0),a=0,l=t,u=n;function c(){o.add(i),e.add(o),i.multiply(0)}function d(R){R.divide(u),i.add(R)}function f(R){s.set(R).subtract(e);var k=dJ(s.get(),0,100,0,l);return a=ix(s.get()),s.normalize().multiply(k).subtract(o),d(s),x}function h(R){var k=R.get()-e.get(),I=!r(k);return I&&e.set(R),I}function g(){return a}function v(){return b(t)}function w(){return y(n)}function b(R){return l=R,x}function y(R){return u=R,x}var x={direction:g,seek:f,settle:h,update:c,useBaseMass:w,useBaseSpeed:v,useMass:y,useSpeed:b};return x}function CJ(e,t,n,r,o){var i=o.measure(10),s=o.measure(50),a=.85,l=!1;function u(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function c(h){if(u()){var g=e.reachedMin(t.get())?"min":"max",v=qt(e[g]-t.get()),w=n.get()-t.get(),b=Math.min(v/s,a);n.subtract(w*b),!h&&qt(w)<i&&(n.set(e.constrain(n.get())),r.useSpeed(10).useMass(3))}}function d(h){l=!h}var f={constrain:c,toggleActive:d};return f}function _J(e,t,n,r){var o=Hl(-t+e,n[0]),i=n.map(o.constrain),s=l();function a(){var c=i[0],d=li(i),f=i.lastIndexOf(c),h=i.indexOf(d)+1;return Hl(f,h)}function l(){if(t<=e)return[o.max];if(r==="keepSnaps")return i;var c=a(),d=c.min,f=c.max;return i.slice(d,f)}var u={snapsContained:s};return u}function RJ(e,t,n){var r=o();function o(){var s=t[0],a=li(t),l=n?s-e:a,u=s;return Hl(l,u)}var i={limit:r};return i}function EJ(e,t,n,r){var o=.1,i=t.min+o,s=t.max+o,a=Hl(i,s),l=a.reachedMin,u=a.reachedMax;function c(h){return h===1?u(n.get()):h===-1?l(n.get()):!1}function d(h){if(c(h)){var g=e*(h*-1);r.forEach(function(v){return v.add(g)})}}var f={loop:d};return f}function TJ(e){var t=e.max,n=e.length;function r(i){var s=i-t;return s/-n}var o={get:r};return o}function PJ(e,t,n,r,o,i,s){var a=e.startEdge,l=e.endEdge,u=i.groupSlides,c=h().map(t.measure),d=g(),f=v();function h(){return u(r).map(function(b){return li(b)[l]-b[0][a]}).map(qt)}function g(){return r.map(function(b){return n[a]-b[a]}).map(function(b){return-qt(b)})}function v(){var b=0,y=li(d)-li(o);return u(d).map(function(x){return x[0]}).map(function(x,R,k){var I=!R,C=R===Sm(k);return s&&I?b:s&&C?y:x+c[R]})}var w={snaps:d,snapsAligned:f};return w}function kJ(e,t,n,r,o){var i=r.reachedAny,s=r.removeOffset,a=r.constrain;function l(g){return g.concat().sort(function(v,w){return qt(v)-qt(w)})[0]}function u(g){var v=e?s(g):a(g),w=t.map(function(y){return y-v}).map(function(y){return c(y,0)}).map(function(y,x){return{diff:y,index:x}}).sort(function(y,x){return qt(y.diff)-qt(x.diff)}),b=w[0].index;return{index:b,distance:v}}function c(g,v){var w=[g,g+n,g-n];if(!e)return w[0];if(!v)return l(w);var b=w.filter(function(y){return ix(y)===v});return l(b)}function d(g,v){var w=t[g]-o.get(),b=c(w,v);return{index:g,distance:b}}function f(g,v){var w=o.get()+g,b=u(w),y=b.index,x=b.distance,R=!e&&i(w);if(!v||R)return{index:y,distance:g};var k=t[y]-x,I=g+c(k,0);return{index:y,distance:I}}var h={byDistance:f,byIndex:d,shortcut:c};return h}function IJ(e,t,n,r,o,i){function s(c){var d=c.distance,f=c.index!==t.get();d&&(e.start(),o.add(d)),f&&(n.set(t.get()),t.set(c.index),i.emit("select"))}function a(c,d){var f=r.byDistance(c,d);s(f)}function l(c,d){var f=t.clone().set(c),h=r.byIndex(f.get(),d);s(h)}var u={distance:a,index:l};return u}function cD(e,t,n){var r=e.scroll==="x"?s:a,o=n.style,i=!1;function s(f){return"translate3d(".concat(f,"px,0px,0px)")}function a(f){return"translate3d(0px,".concat(f,"px,0px)")}function l(f){i||(o.transform=r(t.apply(f.get())))}function u(f){i=!f}function c(){i||(o.transform="",n.getAttribute("style")||n.removeAttribute("style"))}var d={clear:c,to:l,toggleActive:u};return d}function MJ(e,t,n,r,o,i,s,a,l){var u=Vc(o),c=Vc(o).reverse(),d=v().concat(w());function f(k,I){return k.reduce(function(C,_){return C-o[_]},I)}function h(k,I){return k.reduce(function(C,_){var T=f(C,I);return T>0?C.concat([_]):C},[])}function g(k,I){var C=I==="start",_=C?-r:r,T=s.findSlideBounds([_]);return k.map(function(P){var M=C?0:-r,O=C?r:0,A=T.filter(function(L){return L.index===P})[0],V=A[C?"end":"start"],z=ps(-1),N=ps(-1),F=cD(e,t,l[P]),j=function(){return z.set(a.get()>V?M:O)};return{index:P,location:N,translate:F,target:j}})}function v(){var k=i[0]-1,I=h(c,k);return g(I,"end")}function w(){var k=n-i[0]-1,I=h(u,k);return g(I,"start")}function b(){return d.every(function(k){var I=k.index,C=u.filter(function(_){return _!==I});return f(C,n)<=.1})}function y(){d.forEach(function(k){var I=k.target,C=k.translate,_=k.location,T=I();T.get()!==_.get()&&(T.get()===0?C.clear():C.to(T),_.set(T))})}function x(){d.forEach(function(k){return k.translate.clear()})}var R={canLoop:b,clear:x,loop:y,loopPoints:d};return R}function DJ(e,t,n,r,o,i,s){var a=o.removeOffset,l=o.constrain,u=.5,c=i?[0,t,-t]:[0],d=h(c,s);function f(w){var b=w||0;
2186return n.map(function(y){var x=Hl(u,y-u);return x.constrain(y*b)})}function h(w,b){var y=w||c,x=f(b);return y.reduce(function(R,k){var I=r.map(function(C,_){return{start:C-n[_]+x[_]+k,end:C+e-x[_]+k,index:_}});return R.concat(I)},[])}function g(w,b){var y=i?a(w):l(w),x=b||d;return x.reduce(function(R,k){var I=k.index,C=k.start,_=k.end,T=R.indexOf(I)!==-1,P=C<y&&_>y;return!T&&P?R.concat([I]):R},[])}var v={check:g,findSlideBounds:h};return v}function AJ(e,t,n,r,o){var i=e.measureSize,s=e.startEdge,a=e.endEdge,l=n[0]&&o,u=h(),c=g(),d=n.map(i),f=v();function h(){if(!l)return 0;var b=n[0];return qt(t[s]-b[s])}function g(){if(!l)return 0;var b=window.getComputedStyle(li(r));return parseFloat(b.getPropertyValue("margin-".concat(a)))}function v(){return n.map(function(b,y,x){var R=!y,k=y===Sm(x);return R?d[y]+u:k?d[y]+c:x[y+1][s]-b[s]}).map(qt)}var w={slideSizes:d,slideSizesWithGaps:f};return w}function jJ(e,t,n){var r=ox(n);function o(l,u){return Vc(l).filter(function(c){return c%u===0}).map(function(c){return l.slice(c,c+u)})}function i(l){return Vc(l).reduce(function(u,c){var d=t.slice(li(u),c+1),f=d.reduce(function(h,g){return h+g},0);return!c||f>e?u.concat(c):u},[]).map(function(u,c,d){return l.slice(u,d[c+1])})}function s(l){return r?o(l,n):i(l)}var a={groupSlides:s};return a}function OJ(e,t,n,r,o){var i=r.align,s=r.axis,a=r.direction,l=r.startIndex,u=r.inViewThreshold,c=r.loop,d=r.speed,f=r.dragFree,h=r.slidesToScroll,g=r.skipSnaps,v=r.containScroll,w=t.getBoundingClientRect(),b=n.map(function(Re){return Re.getBoundingClientRect()}),y=yJ(a),x=vJ(s,a),R=x.measureSize(w),k=xJ(R),I=mJ(i,R),C=!c&&v!=="",_=c||v!=="",T=AJ(x,w,b,n,_),P=T.slideSizes,M=T.slideSizesWithGaps,O=jJ(R,M,h),A=PJ(x,I,w,b,M,O,C),V=A.snaps,z=A.snapsAligned,N=-li(V)+li(M),F=_J(R,N,z,v).snapsContained,j=C?F:z,L=RJ(N,j,c).limit,B=uD(Sm(j),l,c),H=B.clone(),G=Vc(n),ee=function(){c||le.scrollBounds.constrain(le.dragHandler.pointerDown()),le.scrollBody.seek(q).update();var Re=le.scrollBody.settle(q);Re&&!le.dragHandler.pointerDown()&&(le.animation.stop(),o.emit("settle")),Re||o.emit("scroll"),c&&(le.scrollLooper.loop(le.scrollBody.direction()),le.slideLooper.loop()),le.translate.to(J),le.animation.proceed()},oe=gJ(ee),X=j[B.get()],J=ps(X),q=ps(X),ne=SJ(J,d,1),Y=kJ(c,j,N,L,q),W=IJ(oe,B,H,Y,q,o),se=DJ(R,N,P,V,L,c,u),ue=bJ(x,y,e,q,wJ(x),J,oe,W,ne,Y,B,o,k,c,f,g),le={containerRect:w,slideRects:b,animation:oe,axis:x,direction:y,dragHandler:ue,eventStore:Vp(),percentOfView:k,index:B,indexPrevious:H,limit:L,location:J,options:r,scrollBody:ne,scrollBounds:CJ(L,J,q,ne,k),scrollLooper:EJ(N,L,J,[J,q]),scrollProgress:TJ(L),scrollSnaps:j,scrollTarget:Y,scrollTo:W,slideLooper:MJ(x,y,R,N,M,j,se,J,n),slidesToScroll:O,slidesInView:se,slideIndexes:G,target:q,translate:cD(x,y,t)};return le}function NJ(){var e={};function t(s){return e[s]||[]}function n(s){return t(s).forEach(function(a){return a(s)}),i}function r(s,a){return e[s]=t(s).concat([a]),i}function o(s,a){return e[s]=t(s).filter(function(l){return l!==a}),i}var i={emit:n,off:o,on:r};return i}var LJ={align:"center",axis:"x",container:null,slides:null,containScroll:"",direction:"ltr",slidesToScroll:1,breakpoints:{},dragFree:!1,draggable:!0,inViewThreshold:0,loop:!1,skipSnaps:!1,speed:10,startIndex:0,active:!0};function sx(){function e(o,i){return aD(o,i||{})}function t(o,i){var s=JSON.stringify(oa(o.breakpoints||{})),a=JSON.stringify(oa(i.breakpoints||{}));return s!==a?!1:lD(o,i)}function n(o){var i=o.breakpoints||{},s=oa(i).filter(function(a){return window.matchMedia(a).matches}).map(function(a){return i[a]}).reduce(function(a,l){return e(a,l)},{});return e(o,s)}var r={merge:e,areEqual:t,atMedia:n};return r}function FJ(){var e=sx(),t=e.atMedia,n=e.areEqual,r=[],o=[];function i(){return o.some(function(c){return c()})}function s(c){var d=t(c.options);return function(){return!n(d,t(c.options))}}function a(c,d){return o=c.map(s),r=c.filter(function(f){return t(f.options).active}),r.forEach(function(f){return f.init(d)}),c.reduce(function(f,h){var g;return Object.assign(f,(g={},g[h.name]=h,g))},{})}function l(){r=r.filter(function(c){return c.destroy()})}var u={init:a,destroy:l,haveChanged:i};return u}function hs(e,t,n){var r=Vp(),o=sx(),i=FJ(),s=NJ(),a=s.on,l=s.off,u=k,c=!1,d,f=o.merge(LJ,hs.globalOptions),h=o.merge(f),g=[],v,w=0,b,y;function x(){var q=h.container,ne=h.slides,Y=fR(q)?e.querySelector(q):q;b=Y||e.children[0];var W=fR(ne)?b.querySelectorAll(ne):ne;y=[].slice.call(W||b.children)}function R(q,ne){if(!c){if(f=o.merge(f,q),h=o.atMedia(f),x(),d=OJ(e,b,y,h,s),w=d.axis.measureSize(e.getBoundingClientRect()),!h.active)return I();if(d.translate.to(d.location),g=ne||g,v=i.init(g,J),h.loop){if(!d.slideLooper.canLoop()){I(),R({loop:!1},ne),f=o.merge(f,{loop:!0});return}d.slideLooper.loop()}h.draggable&&b.offsetParent&&y.length&&d.dragHandler.addActivationEvents()}}function k(q,ne){var Y=j();I(),R(o.merge({startIndex:Y},q),ne),s.emit("reInit")}function I(){d.dragHandler.removeAllEvents(),d.animation.stop(),d.eventStore.removeAll(),d.translate.clear(),d.slideLooper.clear(),i.destroy()}function C(){c||(c=!0,r.removeAll(),I(),s.emit("destroy"))}function _(){var q=o.atMedia(f),ne=!o.areEqual(q,h),Y=d.axis.measureSize(e.getBoundingClientRect()),W=w!==Y,se=i.haveChanged();(W||ne||se)&&k(),s.emit("resize")}function T(q){var ne=d[q?"target":"location"].get(),Y=h.loop?"removeOffset":"constrain";return d.slidesInView.check(d.limit[Y](ne))}function P(q){var ne=T(q);return d.slideIndexes.filter(function(Y){return ne.indexOf(Y)===-1})}function M(q,ne,Y){!h.active||c||(d.scrollBody.useBaseMass().useSpeed(ne?100:h.speed),d.scrollTo.index(q,Y||0))}function O(q){var ne=d.index.clone().add(1);M(ne.get(),q===!0,-1)}function A(q){var ne=d.index.clone().add(-1);M(ne.get(),q===!0,1)}function V(){var q=d.index.clone().add(1);return q.get()!==j()}function z(){var q=d.index.clone().add(-1);return q.get()!==j()}function N(){return d.scrollSnaps.map(d.scrollProgress.get)}function F(){return d.scrollProgress.get(d.location.get())}function j(){return d.index.get()}function L(){return d.indexPrevious.get()}function B(){return d.dragHandler.clickAllowed()}function H(){return v}function G(){return d}function ee(){return e}function oe(){return b}function X(){return y}var J={canScrollNext:V,canScrollPrev:z,clickAllowed:B,containerNode:oe,internalEngine:G,destroy:C,off:l,on:a,plugins:H,previousScrollSnap:L,reInit:u,rootNode:ee,scrollNext:O,scrollPrev:A,scrollProgress:F,scrollSnapList:N,scrollTo:M,selectedScrollSnap:j,slideNo
2186des:X,slidesInView:T,slidesNotInView:P};return R(t,n),r.add(window,"resize",_),setTimeout(function(){return s.emit("init")},0),J}hs.globalOptions=void 0;hs.optionsHandler=sx;function $J(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function hR(e){return e.concat().sort(function(t,n){return t.name>n.name?1:-1}).map(function(t){return t.options})}function zJ(e,t){if(e.length!==t.length)return!1;var n=hs.optionsHandler().areEqual,r=hR(e),o=hR(t);return r.every(function(i,s){var a=o[s];return n(i,a)})}function ax(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=S.useRef(hs.optionsHandler()),r=S.useRef(e),o=S.useRef(t),i=S.useState(),s=i[0],a=i[1],l=S.useState(),u=l[0],c=l[1],d=S.useCallback(function(){s&&s.reInit(r.current,o.current)},[s]);return S.useEffect(function(){if($J()&&u){hs.globalOptions=ax.globalOptions;var f=hs(u,r.current,o.current);return a(f),function(){return f.destroy()}}else a(void 0)},[u,a]),S.useEffect(function(){n.current.areEqual(r.current,e)||(r.current=e,d())},[e,d]),S.useEffect(function(){zJ(o.current,t)||(o.current=t,d())},[t,d]),[c,s]}ax.globalOptions=void 0;const[VJ,BJ]=ur("Carousel component was not found in tree");var lx={root:"m_17884d0f",viewport:"m_a2dae653",container:"m_fcd81474",controls:"m_39bc3463",control:"m_64f58e10",indicators:"m_71ea3ab1",indicator:"m_eae68602",slide:"m_d98df724"};const HJ={},ux=fe((e,t)=>{const{classNames:n,className:r,style:o,styles:i,vars:s,mod:a,...l}=re("CarouselSlide",HJ,e),u=BJ();return p.jsx(te,{ref:t,mod:[{orientation:u.orientation},a],...u.getStyles("slide",{className:r,style:o,classNames:n,styles:i}),...l})});ux.classes=lx;ux.displayName="@mantine/carousel/CarouselSlide";function UJ({slideGap:e,slideSize:t,selector:n}){const r=rn(),o=Rs({"--carousel-slide-gap":hn(Jo(e)),"--carousel-slide-size":ae(Jo(t))}),i=nn(r.breakpoints).reduce((l,u)=>(l[u]||(l[u]={}),typeof e=="object"&&e[u]!==void 0&&(l[u]["--carousel-slide-gap"]=hn(e[u])),typeof t=="object"&&t[u]!==void 0&&(l[u]["--carousel-slide-size"]=hn(t[u])),l),{}),a=V0(nn(i),r.breakpoints).filter(l=>nn(i[l.value]).length>0).map(l=>({query:`(min-width: ${r.breakpoints[l.value]})`,styles:i[l.value]}));return p.jsx(ql,{styles:o,media:a,selector:n})}function mR(e){return typeof e=="object"&&e!==null?nn(e):[]}function GJ(e){return e.sort((t,n)=>Dc(t)-Dc(n))}function WJ({slideGap:e,slideSize:t}){const n=Array.from(new Set([...mR(e),...mR(t)]));return GJ(n)}function KJ({slideGap:e,slideSize:t,selector:n}){const r=Rs({"--carousel-slide-gap":hn(Jo(e)),"--carousel-slide-size":ae(Jo(t))}),o=WJ({slideGap:e,slideSize:t}).reduce((s,a)=>(s[a]||(s[a]={}),typeof e=="object"&&e[a]!==void 0&&(s[a]["--carousel-slide-gap"]=hn(e[a])),typeof t=="object"&&t[a]!==void 0&&(s[a]["--carousel-slide-size"]=hn(t[a])),s),{}),i=Object.keys(o).map(s=>({query:`carousel (min-width: ${s})`,styles:o[s]}));return p.jsx(ql,{styles:r,container:i,selector:n})}function gR({dir:e,orientation:t,direction:n}){return n==="previous"?t==="horizontal"?90*(e==="ltr"?1:-1):-180:t==="horizontal"?90*(e==="ltr"?-1:1):0}const qJ={controlSize:26,controlsOffset:"sm",slideSize:"100%",slideGap:0,orientation:"horizontal",align:"center",slidesToScroll:1,includeGapInSize:!0,draggable:!0,dragFree:!1,loop:!1,speed:10,initialSlide:0,inViewThreshold:0,withControls:!0,withIndicators:!1,skipSnaps:!1,containScroll:"",withKeyboardEvents:!0,type:"media"},YJ=(e,{height:t,controlSize:n,controlsOffset:r})=>({root:{"--carousel-height":ae(t),"--carousel-control-size":ae(n),"--carousel-controls-offset":hn(r)}}),bi=fe((e,t)=>{const n=re("Carousel",qJ,e),{classNames:r,className:o,style:i,styles:s,unstyled:a,vars:l,children:u,getEmblaApi:c,onNextSlide:d,onPreviousSlide:f,onSlideChange:h,nextControlProps:g,previousControlProps:v,controlSize:w,controlsOffset:b,slideSize:y,slideGap:x,orientation:R,height:k,align:I,slidesToScroll:C,includeGapInSize:_,draggable:T,dragFree:P,loop:M,speed:O,initialSlide:A,inViewThreshold:V,withControls:z,withIndicators:N,plugins:F,nextControlIcon:j,previousControlIcon:L,skipSnaps:B,containScroll:H,withKeyboardEvents:G,mod:ee,type:oe,...X}=n,J=Te({name:"Carousel",classes:lx,props:n,className:o,style:i,classNames:r,styles:s,unstyled:a,vars:l,varsResolver:YJ}),q=qc(),{dir:ne}=Er(),[Y,W]=ax({axis:R==="horizontal"?"x":"y",direction:R==="horizontal"?ne:void 0,startIndex:A,loop:M,align:I,slidesToScroll:C,draggable:T,dragFree:P,speed:O,inViewThreshold:V,skipSnaps:B,containScroll:H},F),[se,ue]=S.useState(0),[le,Re]=S.useState(0),ye=S.useCallback(Ge=>W&&W.scrollTo(Ge),[W]),ge=S.useCallback(()=>
2186{if(!W)return;const Ge=W.selectedScrollSnap();ue(Ge),Ge!==se&&(h==null||h(Ge))},[W,ue,h,se]),Le=S.useCallback(()=>{W==null||W.scrollPrev(),f==null||f()},[W]),de=S.useCallback(()=>{W==null||W.scrollNext(),d==null||d()},[W]),De=S.useCallback(Ge=>{G&&(Ge.key==="ArrowRight"&&(Ge.preventDefault(),de()),Ge.key==="ArrowLeft"&&(Ge.preventDefault(),Le()))},[W]);S.useEffect(()=>{if(W)return c==null||c(W),ge(),Re(W.scrollSnapList().length),W.on("select",ge),()=>{W.off("select",ge)}},[W,C,ge]),S.useEffect(()=>{W&&(W.reInit(),Re(W.scrollSnapList().length),ue(Ge=>up(Ge,0,S.Children.toArray(u).length-1)))},[S.Children.toArray(u).length,C]);const Oe=(W==null?void 0:W.canScrollPrev())||!1,Be=(W==null?void 0:W.canScrollNext())||!1,wt=Array(le).fill(0).map((Ge,he)=>S.createElement(mn,{...J("indicator"),key:he,"data-active":he===se||void 0,"aria-hidden":!0,tabIndex:-1,onClick:()=>ye(he),"data-orientation":R,onMouseDown:xe=>xe.preventDefault()}));return p.jsxs(VJ,{value:{getStyles:J,orientation:R},children:[oe==="container"?p.jsx(KJ,{...n,selector:`.${q}`}):p.jsx(UJ,{...n,selector:`.${q}`}),p.jsxs(te,{ref:t,...J("root",{className:"responsiveClassName"}),...X,mod:[{orientation:R,"include-gap-in-size":_},ee],onKeyDownCapture:De,children:[p.jsx("div",{...J("viewport"),ref:Y,"data-type":oe,children:p.jsx("div",{...J("container",{className:q}),"data-orientation":R,children:u})}),N&&p.jsx("div",{...J("indicators"),"data-orientation":R,children:wt}),z&&p.jsxs("div",{...J("controls"),"data-orientation":R,children:[p.jsx(mn,{...v,...J("control",{className:v==null?void 0:v.className,style:v==null?void 0:v.style}),onClick:Ge=>{var he;Le(),(he=v==null?void 0:v.onClick)==null||he.call(v,Ge)},"data-inactive":!Oe||void 0,tabIndex:Oe?0:-1,children:typeof L<"u"?L:p.jsx(Oc,{style:{transform:`rotate(${gR({dir:ne,orientation:R,direction:"previous"})}deg)`}})}),p.jsx(mn,{...J("control",{className:g==null?void 0:g.className,style:g==null?void 0:g.style}),...g,onClick:Ge=>{var he;de(),(he=g==null?void 0:g.onClick)==null||he.call(g,Ge)},"data-inactive":!Be||void 0,tabIndex:Be?0:-1,children:typeof j<"u"?j:p.jsx(Oc,{style:{transform:`rotate(${gR({dir:ne,orientation:R,direction:"next"})}deg)`}})})]})]})]})});bi.classes=lx;bi.displayName="@mantine/carousel/Carousel";bi.Slide=ux;const vR=[{name:"@bichodetudo",content:"Esse é o MELHOR CANAL NO YT DE IA"},{name:"@DouglasdosSantos-ke1ok",content:"De longe o melhor conteúdo para aprender."},{name:"@mjtestegg",content:"Irmão, eu quase nunca comento em vídeos, mas esse aqui merece demais! Acompanho vários canais sobre ComfyUI, e sério, o seu é o que mais gosto. A didática é impecável, a edição é top e você vai direto ao ponto, sem enrolação nenhuma. Continue com esse trabalho incrível, você tem tudo para chegar longe! Torcendo pra ver seu canal bombando. Você merece muito! Gratidão pelos ensinamentos, de coração! 🙌"},{name:"@Noisedecomunidade",content:"cara vc é de longe o melhor canal que eu ja vi aqui de comfyui! parabens pelo excelente trabalho, vou indicar seu canal para todos os meus amigos designers"},{name:"@rlpena6",content:"Melhor canal brasileiro sobre o tema."},{name:"@carlosedubarreto",content:"Olha, parabens. Eu em geral quando vejo um tutorial em portugues eu passo direto, mas voce explica tão bem e tão normal que foi muito agradavel assistir o video completo. Muito bom. Ganhou um inscrito"},{name:"@RS-hc7yv",content:"Parabéns! O seu é o melhor canal sobre comfyui"},{name:"@OTAkinBR77",content:"Mano, você ajuda as pessoes q tu não tem noção, melhor canal sobre IA q ja vi"},{name:"@gustavodandrea2097",content:"Mt bons os seus videos, os  melhores que eu consegui achar!"},{name:"@gustavoheck2378",content:"Parabéns demais, é inacreditável a qualidade dos seus vídeos. Clareza extrema na explicação e ainda tudo com links para downloads. Eu estou impressionado, toda sorte do mundo pra você"},{name:"@alaginhooDiary",content:"Muito bom cara, até me inscrevi, é difícil achar vídeos de Brasileiros usando Comfyui"},{name:"@toniferreira89 ",content:"O melho canal para aprender sobre Comfyui, parab
2186éns!!! estou aprendendo muito com vcs, ja assistir vários canais mas o seu é o melhor!!"},{name:"@fireofdevil",content:"Cara, não para nunca. Não desiste. Teu conteudo é perfeito. Muito bem explicado, bem feito. TA OTIMO! Perfeito..."},{name:"@nooway4741",content:"mano seu canal é o mais explicativo e completo"},{name:"@XIAG7",content:"Você é incrível, mano, sabe muito e compartilha de verdade. Muito obrigado por tudo."},{name:"@ArdMeteor.",content:"Acabei de ver um vídeo do seu canal e achei a explicação muito boa! Eu estava há dias procurando algo que me ajudasse com o ComfyUI, e agora que encontrei esse canal, vou maratonar todos os vídeos kkk"},{name:"@AndreBack",content:"Voce é o cara! adorei, primeiro tutorial em BR completo e bem explicado sem esconder detalhes"},{name:"@zanngx",content:"Cara, muito bom o seu canal. Continue compartilhando conhecimento, não pare"},{name:"@lucasvenancio4",content:"Você merece seu conteúdo é melhor que muito curso pago!!"},{name:"@leonardocosta5952",content:"Merece muito, e vai crescer muito mais, melhor canal aqui no Brasil com essa finalidade"},{name:"@marcossantanasilva939",content:"Você e diferenciado, sempre passa todas as informações necessárias para iniciantes e avançados e não cobra em força a inscrição no seu canal para liberar o workflow."},{name:"@dailsonbarros",content:"Top demais, to estudando comfyUI esse foi um dos melhores canais em português que achei."},{name:"@GiuseppeNunes",content:"Excelente vídeo. Me inscrevi agora no seu canal e pretendo assistir todos os vídeos, gostei da dinâmica, objetividade e simplicidade como traz o conteúdo. Concordo com outro comentário que vi aqui, o youtube tá cheio de vídeos péssimos sobre IA, muitas vezes omitindo informações pra vender curso e aqui encontrei completamente o contrário. Parabéns pelo canal e continue assim!"},{name:"@RogerMachado3D",content:"O MELHOR CANAR DE COMFYUI... MUITO Obrigado por compartilhar seu conhecimento!!!! INCRIVEL!!! BORA MARATONAR..hahaha"},{name:"@michel3d69",content:"Muito bom! O melhor do youtube."},{name:"@JP-xm8dc",content:"Didática perfeita! Obrigado🚀"},{name:"@michel3d69",content:"Teu canal é ótimo. Tudo explicado com muita clareza e agilidade e com excelente edição de vídeo."},{name:"@auronax89",content:"parabéns pelo conteúido, você ensina muito bem. Te desejo sucesso"},{name:"@haxorsss",content:"Conteudo de milhões, está de parabéns meu amigo."},{name:"@SidenilNunesdeOliveira",content:"Finalmente um canal BR de qualidade"}];var XJ={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function md(e){var t=hs.optionsHandler(),n=t.merge(XJ,md.globalOptions),r,o,i,s=0,a=!1;function l(v){o=v,r=t.atMedia(g.options),a=r.jump,i=r.stopOnInteraction?u:d;var w=o.internalEngine().eventStore,b=o.rootNode(),y=r.rootNode&&r.rootNode(b)||b;o.on("pointerDown",i),r.stopOnInteraction||o.on("pointerUp",f),r.stopOnMouseEnter&&(w.add(y,"mouseenter",i),r.stopOnInteraction||w.add(y,"mouseleave",f)),w.add(document,"visibilitychange",function(){if(document.visibilityState==="hidden")return d();f()}),w.add(window,"pagehide",function(x){x.persisted&&d()}),r.playOnInit&&c()}function u(){o.off("pointerDown",i),r.stopOnInteraction||o.off("pointerUp",f),d(),s=0}function c(v){d(),typeof v<"u"&&(a=v),s=window.setTimeout(h,r.delay)}function d(){s&&window.clearTimeout(s)}function f(){s&&(d(),c())}function h(){var v=o.internalEngine().index,w=r.stopOnLastSnap&&v.get()===v.max;if(w)return u();o.canScrollNext()?o.scrollNext(a):o.scrollTo(0,a),c()}var g={name:"autoplay",options:t.merge(n,e),init:l,destroy:u,play:c,stop:d,reset:f};return g}md.globalOptions=void 0;const tt="pages.home",Ma={px:{md:"7rem",base:"xl"},py:{md:"4rem",base:"xl"}},JJ=[{id:"realistic",videoId:"E7mNXOCMh4c"},{id:"upscale",videoId:"NBU7QlDkFPM"},{id:"comics",videoId:"AF4g7KHgtac"},{id:"controlnet",videoId:"vuFP5EzkIww"},{id:"relight",videoId:"1f2s_2i4jE8"},{id:"inpainting-virtual-try-on",videoId:"tGZkiASx0k8"},{id:"prompts",videoId:"jZ_4jtSOy0U"},{id:"consistency",videoId:"AF4g7KHgtac"},{id:"real-to-anime",videoId:"AF4g7KHgtac"},{id:"anime-to-real",playlistId:"PL7IppkKdsj1iWeq7Mzub7GkOsJfss4V5K"},{id:"pro-photo",videoId:"_j6xRVHDx7M"},{id:"ghibli",videoId:"OFsauLxT8Eg"},{id:"pixel-art-lora",videoId:"x9Ibo8Mk4iE"},{id:"anime",videoId:"uo9wL95Cw3E"},{id:"concept-art-sdxl",playlistId:"PL7IppkKdsj1g4uHaYkPZeL8uLh3YjdvWw"},{id:"restore",videoId:"AF4g7KHgtac"}],QJ=[{id:"E7mNXOCMh4c",label:"Realismo com Z-Image Turbo"}
2186,{id:"AF4g7KHgtac",label:"Consistência com Qwen Image Edit 2509"},{id:"uo9wL95Cw3E",label:"Anime com Illustrious XL"},{id:"hD4-WRY_I9Q",label:"Clone de voz com VibeVoice"},{id:"3QrNYhKrBtg",label:"Geração de vídeo com Wan 2.1"},{id:"vuFP5EzkIww",label:"Controle de poses com ControlNet"},{id:"tGZkiASx0k8",label:"Edições com inpainting"},{id:"NBU7QlDkFPM",label:"Ampliar imagens com UltimateSD Upscale"},{id:"jIafBbAiJic",label:"ComfyUI para iniciante"},{id:"xv0G9erU3wE",label:"Stable Diffusion em PCs fracos"},{id:"_j6xRVHDx7M",label:"Usando Flux.1 Dev"}];function ZJ(){return p.jsxs("main",{className:"landing-page",children:[p.jsx(eQ,{}),p.jsx(nQ,{}),p.jsx(tQ,{}),p.jsx(rQ,{}),p.jsx(iQ,{}),p.jsx(oQ,{}),p.jsx(sQ,{})]})}function eQ(){const{t:e}=yn(),t=new Array(5).fill(0).map((r,o)=>e(`${tt}.hero.benefits.${o}`)),n=S.useRef(md({delay:3e3}));return p.jsxs(ot,{...Ma,align:"center",gutter:{base:"xl"},className:"hero-background",grow:!0,children:[p.jsx(ot.Col,{span:{base:12,md:5},children:p.jsxs(Ze,{children:[p.jsx(Nr,{order:1,children:e(`${tt}.hero.motto`)}),p.jsx(nt,{size:"lg",children:e(`${tt}.hero.description`)}),p.jsx(Ze,{gap:"xs",my:"lg",children:t.map((r,o)=>p.jsx(aQ,{children:r},o))}),p.jsx(mt,{children:p.jsx(Ct,{component:"a",href:e("socialMedia.youtube.url"),target:"_blank",rel:"noopener noreferrer",size:"lg",leftSection:p.jsx(Vl,{size:24}),children:e(`${tt}.hero.cta.primary`)})})]})}),p.jsx(ot.Col,{span:7,children:p.jsx(bi,{slideSize:{base:"100%",xs:"50%",sm:"33%"},slideGap:"md",loop:!0,align:"start",mt:"xl",w:"100%",plugins:[n.current],withIndicators:!0,children:JJ.map((r,o)=>{const i=r.videoId?`https://youtu.be/${r.videoId}`:r.playlistId?`https://www.youtube.com/playlist?list=${r.playlistId}`:null;return p.jsx(bi.Slide,{children:p.jsxs(te,{style:{position:"relative"},my:"xl",children:[p.jsx(Ph,{src:`/home/${r.id}.png`,alt:e(`${tt}.hero.imageAlt`),radius:"lg",h:"auto",fit:"scale-down",style:{boxShadow:"0 0 2px var(--mantine-primary-color-light-color)"}}),i&&p.jsx(te,{style:{position:"absolute",bottom:0,left:0,right:0,background:"linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%)",borderBottomLeftRadius:"var(--mantine-radius-lg)",borderBottomRightRadius:"var(--mantine-radius-lg)",padding:"2rem 1rem 0.75rem"},children:p.jsxs(mt,{justify:"space-between",align:"center",gap:"xs",children:[p.jsx(nt,{size:"sm",c:"white",style:{flex:1,textOverflow:"ellipsis"},children:e(`${tt}.hero.items.${r.id}.label`)}),p.jsx(Ct,{component:"a",href:i,target:"_blank",rel:"noopener noreferrer",size:"compact-sm",leftSection:p.jsx(Vl,{size:16}),children:"Ver"})]})})]})},o)})})})]})}function tQ(){const{t:e}=yn(),t=S.useRef(md({delay:3e3}));return p.jsxs(Ze,{id:"content",...Ma,bg:"#000",align:"center",children:[p.jsx("div",{children:p.jsx(ga,{children:e(`${tt}.freeContent.pill`)})}),p.jsx(Nr,{ta:"center",children:e(`${tt}.freeContent.title`)}),p.jsxs(ot,{mt:"xl",align:"stretch",children:[p.jsx(ot.Col,{span:{base:12,md:6},children:p.jsx(oi,{bg:"var(--mantine-color-dark-7)",style:{height:"100%",border:"2px solid var(--mantine-primary-color-filled)",boxShadow:"0 0 20px rgba(132, 204, 22, 0.3)"},children:p.jsxs(Ze,{style:{height:"100%"},justify:"space-between",children:[p.jsxs(Ze,{children:[p.jsx(Vl,{size:64,color:"var(--mantine-primary-color-filled)"}),p.jsx(Nr,{order:3,children:e(`${tt}.freeContent.youtube.title`)}),p.jsx(nt,{children:e(`${tt}.freeContent.youtube.description`)})]}),p.jsx(Ct,{component:"a",href:e("socialMedia.youtube.url"),target:"_blank",rel:"noopener noreferrer",size:"lg",fullWidth:!0,leftSection:p.jsx(Vl,{size:20}),children:e(`${tt}.freeContent.youtube.cta`)})]})})}),p.jsx(ot.Col,{span:{base:12,md:6},children:p.jsxs(Ze,{h:"100%",children:[p.jsx(oi,{bg:"var(--mantine-color-dark-7)",style:{flexGrow:1},children:p.jsxs(Ze,{justify:"space-between",h:"100%",children:[p.jsxs(Ze,{children:[p.jsx(nt,{size:"xl",fw:700,children:e(`${tt}.freeContent.patreon.title`)}),p.jsx(nt,{children:e(`${tt}.freeContent.patreon.description`)})]}),p.jsx(Ct,{component:"a",href:e("socialMedia.patreon.url"),target:"_blank",rel:"noopener noreferrer",fullWidth:!0,children:e(`${tt}.freeContent.patreon.cta`)})]})}),p.jsx(oi,{bg:"var(--mantine-color-dark-7)",style:{flexGrow:1},children:p.jsxs(Ze,{justify:"space-between",h:"100%",children:[p.jsxs(Ze,{children:[p.jsx(nt,{size:"xl",fw:700,children:e(`${tt}.freeContent.wiki.title`)}),p.jsx(nt,{children:e(`${tt}.freeContent.wiki.description`)})]}),p.jsx(Ct,{component:"a",href:"/wiki/ia",fullWidth:!0,children:e(`${tt}.freeContent.wiki.cta`)})]})})]})})]}),p.jsx(bi,{slideSize:{base:"100%",sm:"50%",md:"33.333333%"},slideGap:"md",loop:!0,align:"start",mt:"xl",w:"100%",plugins:[t.current],children:QJ.map((n,r)=>p.jsx(bi.Slide,{children:p.jsx(te,{style:{position:"relative",height:"16rem",overflow:"clip",borderRadius:"8px"},children:p.jsx("iframe",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},src:`https://www.youtube.com/embed/${n.id}`,title:n.label,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})},r))})]})}function nQ(){const{t:e}=yn();
2186return p.jsxs(ot,{id:"playlist",...Ma,align:"center",gutter:{base:"xl"},children:[p.jsx(ot.Col,{span:{base:12,md:7},children:p.jsx(te,{style:{position:"relative",paddingBottom:"56.25%",height:0,overflow:"hidden",borderRadius:"8px"},children:p.jsx("iframe",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"},src:"https://www.youtube.com/embed/videoseries?list=PL7IppkKdsj1g4uHaYkPZeL8uLh3YjdvWw",title:"ComfyUI para Iniciantes",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})}),p.jsx(ot.Col,{span:{base:12,md:5},children:p.jsxs(Ze,{children:[p.jsx("div",{children:p.jsx(ga,{children:e(`${tt}.playlist.pill`)})}),p.jsx(Nr,{order:2,children:e(`${tt}.playlist.title`)}),p.jsx(nt,{children:e(`${tt}.playlist.description`)}),p.jsx(Ct,{component:"a",href:"https://www.youtube.com/watch?v=jIafBbAiJic&list=PL7IppkKdsj1g4uHaYkPZeL8uLh3YjdvWw",target:"_blank",rel:"noopener noreferrer",size:"md",leftSection:p.jsx(Vl,{size:20}),children:e(`${tt}.playlist.cta`)})]})})]})}function rQ(){const{t:e}=yn(),t=dL({base:"center",md:"flex-end"});return p.jsxs(Ze,{id:"instructor",...Ma,gap:"xl",children:[p.jsxs(Ze,{align:"center",visibleFrom:"md",children:[p.jsx(ga,{children:e(`${tt}.instructor.pill`)}),p.jsx(Nr,{order:1,ta:"center",children:e(`${tt}.instructor.header`)})]}),p.jsxs(Ze,{hiddenFrom:"md",children:[p.jsx("div",{children:p.jsx(ga,{children:e(`${tt}.instructor.pill`)})}),p.jsx(Nr,{order:1,children:e(`${tt}.instructor.header`)})]}),p.jsxs(ot,{mt:"xl",gutter:"xl",align:"center",children:[p.jsx(ot.Col,{span:{base:12,md:6},children:p.jsx(mt,{justify:t,children:p.jsx(_i,{src:"/curso-comfyui/instructor.gif",h:240,w:240,variant:"outline",style:{border:"1px solid var(--mantine-primary-color-filled)",boxShadow:"0 0 20px var(--mantine-primary-color-filled)"}})})}),p.jsx(ot.Col,{span:{base:12,md:6},children:p.jsxs(Ze,{gap:"lg",children:[p.jsxs(Ze,{gap:0,children:[p.jsx(Nr,{order:2,children:e(`${tt}.instructor.name`)}),p.jsx(nt,{c:"var(--mantine-primary-color-light-color)",children:e(`${tt}.instructor.subtitle`)})]}),p.jsx(nt,{children:e(`${tt}.instructor.about`,{years:new Date().getFullYear()-2022})}),p.jsx(mt,{gap:0,children:p.jsx(xm,{})})]})})]})]})}function oQ(){const{t:e}=yn();return p.jsxs(Ze,{id:"resources",...Ma,align:"center",children:[p.jsx("div",{children:p.jsx(ga,{children:e(`${tt}.resources.pill`)})}),p.jsx(Nr,{ta:"center",children:e(`${tt}.resources.title`)}),p.jsxs(ot,{mt:"xl",gutter:"xl",children:[p.jsx(ot.Col,{span:{base:12,md:6},children:p.jsx(oi,{bg:"#000",h:"100%",children:p.jsxs(Ze,{h:"100%",justify:"space-between",children:[p.jsxs(Ze,{children:[p.jsx(Nr,{order:3,children:e(`${tt}.resources.memetopia.title`)}),p.jsx(nt,{children:e(`${tt}.resources.memetopia.description`)})]}),p.jsx(Ct,{component:"a",href:"/memetopia",size:"md",target:"_blank",rel:"noopener noreferrer",children:e(`${tt}.resources.memetopia.cta`)})]})})}),p.jsx(ot.Col,{span:{base:12,md:6},children:p.jsx(oi,{bg:"#000",h:"100%",children:p.jsxs(Ze,{h:"100%",justify:"space-between",children:[p.jsxs(Ze,{children:[p.jsx(Nr,{order:3,children:e(`${tt}.resources.wiki.title`)}),p.jsx(nt,{children:e(`${tt}.resources.wiki.description`)})]}),p.jsx(Ct,{component:"a",href:"/wiki/ia",size:"md",children:e(`${tt}.resources.wiki.cta`)})]})})})]})]})}function iQ(){const{t:e}=yn(),t=S.useRef(md({delay:3e3}));return p.jsxs(Ze,{id:"testimonials",...Ma,bg:"#000",align:"center",children:[p.jsx("div",{children:p.jsx(ga,{children:e(`${tt}.testimonials.pill`)})}),p.jsx(Nr,{ta:"center",children:e(`${tt}.testimonials.title`)}),p.jsx(bi,{slideSize:{base:"100%",sm:"50%",md:"33.333333%"},slideGap:"md",loop:!0,align:"start",mt:"xl",w:"100%",plugins:[t.current],children:vR.map((n,r)=>p.jsx(bi.Slide,{children:p.jsx(oi,{bg:"var(--mantine-color-dark-7)",h:"100%",children:p.jsxs(Ze,{children:[p.jsxs(mt,{children:[p.jsx(_i,{size:"lg"}),p.jsxs(Ze,{gap:"xs",flex:1,children:[p.jsx(nt,{fw:700,children:[n.name[1],n.name.slice(2,6).replace(/./g,"*"),n.name.slice(-1)].join("")}),p.jsx(Jc,{size:"sm",variant:"light",children:"YouTube"})]}),p.jsx(nt,{c:"dimmed",size:"xs",style:{alignSelf:"flex-start"},children:`${r+1}/${vR.length}`})]}),p.jsxs(nt,{fs:"italic",children:['"',n.content,'"']})]})})},r))})]})}function sQ(){const{t:e}=yn();
2186return p.jsxs(Ze,{id:"social",...Ma,align:"center",className:"hero-background",children:[p.jsx("div",{children:p.jsx(ga,{children:e(`${tt}.social.pill`)})}),p.jsx(Nr,{ta:"center",children:e(`${tt}.social.title`)}),p.jsx(nt,{ta:"center",children:e(`${tt}.social.subtitle`)}),p.jsx(Ct,{component:"a",href:e("socialMedia.youtube.url"),target:"_blank",rel:"noopener noreferrer",size:"xl",my:"lg",leftSection:p.jsx(Vl,{size:28}),children:e(`${tt}.social.youtube`)}),p.jsx(mt,{gap:"md",mt:"md",children:p.jsx(xm,{})})]})}function ga(e){return p.jsx(ys,{c:"var(--mantine-primary-color-light-color)",style:{border:"1px solid var(--mantine-primary-color-light-color)"},size:"md",...e})}function Nr(e){return p.jsx(da,{c:"var(--mantine-color-white)",order:1,...e})}function aQ({children:e}){return p.jsxs(Yt,{gap:4,align:"flex-start",children:[p.jsx(NK,{color:"var(--mantine-primary-color-filled)"}),p.jsx(nt,{size:"sm",c:"var(--mantine-color-white)",children:e})]})}function lQ(){return p.jsx(KU,{children:p.jsx(sB,{children:p.jsx(eP,{theme:gz,forceColorScheme:"dark",children:p.jsxs(mz,{children:[p.jsx(Lo,{}),p.jsx(uQ,{})]})})})})}function uQ(){const e=S.useMemo(()=>IH([{path:"/",element:p.jsx(m_,{}),errorElement:p.jsx(pU,{}),children:[{path:"",element:p.jsx(lJ,{}),children:[{index:!0,element:p.jsx(ZJ,{})}]},{path:"curso",children:[{index:!0,element:p.jsx(tf,{to:"/",replace:!0})}]},{path:"wiki",element:p.jsx(qX,{}),children:[{index:!0,element:p.jsx(tf,{to:"ia",replace:!0})},{path:"ia",element:p.jsx($X,{})}]},{path:"auth",element:p.jsx(m_,{}),children:[{index:!0,element:p.jsx(tf,{to:"login",replace:!0})},{path:"login",loader:rJ,element:p.jsx(oJ,{})},{path:"logout",loader:iJ,element:p.jsx(sJ,{})}]},{path:"admin",element:p.jsx(nJ,{}),loader:tJ,children:[{index:!0,element:p.jsx(tf,{to:"dailyPost",replace:!0})},{path:"dailyPost",loader:ZX,element:p.jsx(eJ,{})}]},{path:"memetopia",element:p.jsx(aJ,{})}]}]),[]);return p.jsx(FH,{router:e})}DT(document.getElementById("root")).render(p.jsx(S.StrictMode,{children:p.jsx(lQ,{})}));

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.