vendor: 4,138 bytes, lines 1-9
1var Qh=e=>{throw TypeError(e)};var ac=(e,t,n)=>t.has(e)||Qh("Cannot "+n);var j=(e,t,n)=>(ac(e,t,"read from private field"),n?n.call(e):t.get(e)),se=(e,t,n)=>t.has(e)?Qh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),X=(e,t,n,r)=>(ac(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Me=(e,t,n)=>(ac(e,t,"access private method"),n);var Ho=(e,t,n,r)=>({set _(s){X(e,t,s,n)},get _(){return j(e,t,r)}});function By(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function r0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s0={exports:{}},El={},i0={exports:{}},te={};/** 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 Co=Symbol.for("react.element"),zy=Symbol.for("react.portal"),qy=Symbol.for("react.fragment"),Hy=Symbol.for("react.strict_mode"),Wy=Symbol.for("react.profiler"),Vy=Symbol.for("react.provider"),Gy=Symbol.for("react.context"),Ky=Symbol.for("react.forward_ref"),Jy=Symbol.for("react.suspense"),Yy=Symbol.for("react.memo"),Qy=Symbol.for("react.lazy"),Xh=Symbol.iterator;function Xy(e){return e===null||typeof e!="object"?null:(e=Xh&&e[Xh]||e["@@iterator"],typeof e=="function"?e:null)}var o0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},a0=Object.assign,l0={};function ti(e,t,n){this.props=e,this.context=t,this.refs=l0,this.updater=n||o0}ti.prototype.isReactComponent={};ti.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")};ti.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function c0(){}c0.prototype=ti.prototype;function wu(e,t,n){this.props=e,this.context=t,this.refs=l0,this.updater=n||o0}var $u=wu.prototype=new c0;$u.constructor=wu;a0($u,ti.prototype);$u.isPureReactComponent=!0;var Zh=Array.isArray,d0=Object.prototype.hasOwnProperty,Su={current:null},u0={key:!0,ref:!0,__self:!0,__source:!0};function h0(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)d0.call(t,r)&&!u0.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];s.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:Co,type:e,key:i,ref:o,props:s,_owner:Su.current}}function Zy(e,t){return{$$typeof:Co,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Eu(e){return typeof e=="object"&&e!==null&&e.$$typeof===Co}function e2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ef=/\/+/g;function lc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?e2(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function $a(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Co:case zy:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+lc(o,0):r,Zh(s)?(n="",e!=null&&(n=e.replace(ef,"$&/")+"/"),$a(s,t,n,"",function(d){return d})):s!=null&&(Eu(s)&&(s=Zy(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(ef,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",Zh(e))for(var l=0;l<e.length;l++){i=e[l];var c=r+lc(i,l);o+=$a(i,t,n,c,s)}else if(c=Xy(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=r+lc(i,l++),o+=$a(i,t,n,c,s);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 o}function Wo(e,t,n){if(e==null)return e;var r=[],s=0;return $a(e,r,"","",function(i){return t.call(n,i,s++)}),r}function t2(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 Je={current:null},Sa={transition:null},n2={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:Sa,ReactCurrentOwner:Su};function f0(){throw Error("act(...) is not supported in production builds of React.")}te.Children={map:Wo,forEach:function(e,t,n){Wo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Wo(e,function(){t++}),t},toArray:function(e){return Wo(e,function(t){return t})||[]},only:function(e){if(!Eu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};te.Component=ti;te.Fragment=qy;te.Profiler=Wy;te.PureComponent=wu;te.StrictMode=Hy;te.Suspense=Jy;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=n2;te.act=f0;te.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=a0({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=Su.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)d0.call(t,c)&&!u0.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];r.children=l}return{$$typeof:Co,type:e.type,key:s,ref:i,props:r,_owner:o}};te.createContext=function(e){return e={$$typeof:Gy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Vy,_context:e},e.Consumer=e};te.createElement=h0;te.createFactory=function(e){var t=h0.bind(null,e);return t.type=e,t};te.createRef=function(){return{current:null}};te.forwardRef=function(e){return{$$typeof:Ky,render:e}};te.isValidElement=Eu;te.lazy=function(e){return{$$typeof:Qy,_payload:{_status:-1,_result:e},_init:t2}};te.memo=function(e,t){return{$$typeof:Yy,type:e,compare:t===void 0?null:t}};te.startTransition=function(e){var t=Sa.transition;Sa.transition={};try{e()}finally{Sa.transition=t}};te.unstable_act=f0;te.useCallback=function(e,t){return Je.current.useCallback(e,t)};te.useContext=function(e){return Je.current.useContext(e)};te.useDebugValue=function(){};te.useDeferredValue=function(e){return Je.current.useDeferredValue(e)};te.useEffect=function(e,t){return Je.current.useEffect(e,t)};te.useId=function(){return Je.current.useId()};te.useImperativeHandle=function(e,t,n){return Je.current.useImperativeHandle(e,t,n)};te.useInsertionEffect=function(e,t){return Je.current.useInsertionEffect(e,t)};te.useLayoutEffect=function(e,t){return Je.current.useLayoutEffect(e,t)};te.useMemo=function(e,t){return Je.current.useMemo(e,t)};te.useReducer=function(e,t,n){return Je.current.useReducer(e,t,n)};te.useRef=function(e){return Je.current.useRef(e)};te.useState=function(e){return Je.current.useState(e)};te.useSyncExternalStore=function(e,t,n){return Je.current.useSyncExternalStore(e,t,n)};te.useTransition=function(){return Je.current.useTransition()};te.version="18.3.1";i0.exports=te;var w=i0.exports;const R=r0(w),p0=By({__proto__:null,default:R},[w]);/** 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 r2=w,s2=Symbol.for("react.element"),i2=Symbol.for("react.fragment"),o2=Object.prototype.hasOwnProperty,a2=r2.__SECRET_INT
vendor: 8,826 bytes, lines 17-33
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l2={key:!0,ref:!0,__self:!0,__source:!0};function m0(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)o2.call(t,r)&&!l2.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:s2,type:e,key:i,ref:o,props:s,_owner:a2.current}}El.Fragment=i2;El.jsx=m0;El.jsxs=m0;s0.exports=El;var a=s0.exports,g0={exports:{}},ft={},v0={exports:{}},y0={};/** 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(k,N){var D=k.length;k.push(N);e:for(;0<D;){var z=D-1>>>1,q=k[z];if(0<s(q,N))k[z]=N,k[D]=q,D=z;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var N=k[0],D=k.pop();if(D!==N){k[0]=D;e:for(var z=0,q=k.length,C=q>>>1;z<C;){var I=2*(z+1)-1,ee=k[I],ge=I+1,ie=k[ge];if(0>s(ee,D))ge<q&&0>s(ie,ee)?(k[z]=ie,k[ge]=D,z=ge):(k[z]=ee,k[I]=D,z=I);else if(ge<q&&0>s(ie,D))k[z]=ie,k[ge]=D,z=ge;else break e}}return N}function s(k,N){var D=k.sortIndex-N.sortIndex;return D!==0?D:k.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var c=[],d=[],u=1,h=null,p=3,f=!1,x=!1,v=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(k){for(var N=n(d);N!==null;){if(N.callback===null)r(d);else if(N.startTime<=k)r(d),N.sortIndex=N.expirationTime,t(c,N);else break;N=n(d)}}function $(k){if(v=!1,y(k),!x)if(n(c)!==null)x=!0,K(S);else{var N=n(d);N!==null&&G($,N.startTime-k)}}function S(k,N){x=!1,v&&(v=!1,g(P),P=-1),f=!0;var D=p;try{for(y(N),h=n(c);h!==null&&(!(h.expirationTime>N)||k&&!W());){var z=h.callback;if(typeof z=="function"){h.callback=null,p=h.priorityLevel;var q=z(h.expirationTime<=N);N=e.unstable_now(),typeof q=="function"?h.callback=q:h===n(c)&&r(c),y(N)}else r(c);h=n(c)}if(h!==null)var C=!0;else{var I=n(d);I!==null&&G($,I.startTime-N),C=!1}return C}finally{h=null,p=D,f=!1}}var E=!1,_=null,P=-1,A=5,O=-1;function W(){return!(e.unstable_now()-O<A)}function F(){if(_!==null){var k=e.unstable_now();O=k;var N=!0;try{N=_(!0,k)}finally{N?Y():(E=!1,_=null)}}else E=!1}var Y;if(typeof m=="function")Y=function(){m(F)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,J=L.port2;L.port1.onmessage=F,Y=function(){J.postMessage(null)}}else Y=function(){b(F,0)};function K(k){_=k,E||(E=!0,Y())}function G(k,N){P=b(function(){k(e.unstable_now())},N)}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(k){k.callback=null},e.unstable_continueExecution=function(){x||f||(x=!0,K(S))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(k){switch(p){case 1:case 2:case 3:var N=3;break;default:N=p}var D=p;p=N;try{return k()}finally{p=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,N){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var D=p;p=k;try{return N()}finally{p=D}},e.unstable_scheduleCallback=function(k,N,D){var z=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?z+D:z):D=z,k){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=D+q,k={id:u++,callback:N,priorityLevel:k,startTime:D,expirationTime:q,sortIndex:-1},D>z?(k.sortIndex=D,t(d,k),n(c)===null&&k===n(d)&&(v?(g(P),P=-1):v=!0,G($,D-z))):(k.sortIndex=q,t(c,k),x||f||(x=!0,K(S))),k},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(k){var N=p;return function(){var D=p;p=N;try{return k.apply(this,arguments)}finally{p=D}}}})(y0);v0.exports=y0;var c2=v0.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 d2=w,ht=c2;function T(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 x0=new Set,qi={};function Hr(e,t){Ws(e,t),Ws(e+"Capture",t)}function Ws(e,t){for(qi[e]=t,e=0;e<t.length;e++)x0.add(t[e])}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jc=Object.prototype.hasOwnProperty,u2=/^[: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]*$/,tf={},nf={};function h2(e){return Jc.call(nf,e)?!0:Jc.call(tf,e)?!1:u2.test(e)?nf[e]=!0:(tf[e]=!0,!1)}function f2(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 p2(e,t,n,r){if(t===null||typeof t>"u"||f2(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 Ye(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Ye(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){De[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var _u=/[\-:]([a-z])/g;function ku(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
33-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(_u,ku);De[t]=new Ye(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(_u,ku);De[t]=new Ye(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(_u,ku);De[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function ju(e,t,n,r){var s=De.hasOwnProperty(t)?De[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(p2(t,n,s,r)&&(n=null),r||s===null?h2(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Sn=d2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vo=Symbol.for("react.element"),fs=Symbol.for("react.portal"),ps=Symbol.for("react.fragment"),Nu=Symbol.for("react.strict_mode"),Yc=Symbol.for("react.profiler"),b0=Symbol.for("react.provider"),w0=Symbol.for("react.context"),Cu=Symbol.for("react.forward_ref"),Qc=Symbol.for("react.suspense"),Xc=Symbol.for("react.suspense_list"),Pu=Symbol.for("react.memo"),Ln=Symbol.for("react.lazy"),$0=Symbol.for("react.offscreen"),rf=Symbol.iterator;function ui(e){return e===null||typeof e!="object"?null:(e=rf&&e[rf]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Object.assign,cc;function Si(e){if(cc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);cc=t&&t[1]||""}return` 34`+cc+e}var dc=!1;function uc(e,t){if(!e||dc)return"";dc=!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(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var s=d.stack.split(` 35`),i=r.stack.split(` 36`),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var c=` 37`+s[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=l);break}}}finally{dc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Si(e):""}function m2(e){switch(e.tag){case 5:return Si(e.type);case 16:return Si("Lazy");case 13:return Si("Suspense");case 19:return Si("SuspenseList");case 0:case 2:case 15:return e=uc(e.type,!1),e;case 11:return e=uc(e.type.render,!1),e;case 1:return e=uc(e.type,!0),e;default:return""}}function Zc(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 ps:return"Fragment";case fs:return"Portal";case Yc:return"Profiler";case Nu:return"StrictMode";case Qc:return"Suspense";case Xc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w0:return(e.displayName||"Context")+".Consumer";case b0:return(e._context.displayName||"Context")+".Provider";case Cu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pu:return t=e.displayName||null,t!==null?t:Zc(e.type)||"Memo";case Ln:t=e._payload,e=e._init;try{return Zc(e(t))}catch{}}return null}function g2(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 Zc(t);case 8:return t===Nu?"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 sr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function S0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function v2(e){var t=S0(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 s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Go(e){e._valueTracker||(e._valueTracker=v2(e))}function E0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=S0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fa(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 ed(e,t){var n=t.checked;return xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function sf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=sr(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}}
vendor: 4,651 bytes, line 37
37function _0(e,t){t=t.checked,t!=null&&ju(e,"checked",t,!1)}function td(e,t){_0(e,t);var n=sr(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")?nd(e,t.type,n):t.hasOwnProperty("defaultValue")&&nd(e,t.type,sr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function of(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 nd(e,t,n){(t!=="number"||Fa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ei=Array.isArray;function ks(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+sr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function rd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function af(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(Ei(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:sr(n)}}function k0(e,t){var n=sr(t.value),r=sr(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 lf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function j0(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 sd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?j0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ko,N0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ko=Ko||document.createElement("div"),Ko.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ko.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ci={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},y2=["Webkit","ms","Moz","O"];Object.keys(Ci).forEach(function(e){y2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ci[t]=Ci[e]})});function C0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ci.hasOwnProperty(e)&&Ci[e]?(""+t).trim():t+"px"}function P0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=C0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var x2=xe({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 id(e,t){if(t){if(x2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function od(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";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 ad=null;function Tu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ld=null,js=null,Ns=null;function cf(e){if(e=Ao(e)){if(typeof ld!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Cl(t),ld(e.stateNode,e.type,t))}}function T0(e){js?Ns?Ns.push(e):Ns=[e]:js=e}function A0(){if(js){var e=js,t=Ns;if(Ns=js=null,cf(e),t)for(e=0;e<t.length;e++)cf(t[e])}}function R0(e,t){return e(t)}function O0(){}var hc=!1;function L0(e,t,n){if(hc)return e(t,n);hc=!0;try{return R0(e,t,n)}finally{hc=!1,(js!==null||Ns!==null)&&(O0(),A0())}}function Wi(e,t){var n=e.stateNode;if(n===null)return null;var r=Cl(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(T(231,t,typeof n));return n}var cd=!1;if(gn)try{var hi={};Object.defineProperty(hi,"passive",{get:function(){cd=!0}}),window.addEventListener("test",hi,hi),window.removeEventListener("test",hi,hi)}catch{cd=!1}function b2(e,t,n,r,s,i,o,l,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(u){this.onError(u)}}var Pi=!1,Ua=null,Ba=!1,dd=null,w2={onError:function(e){Pi=!0,Ua=e}};function $2(e,t,n,r,s,i,o,l,c){Pi=!1,Ua=null,b2.apply(w2,arguments)}function S2(e,t,n,r,s,i,o,l,c){if($2.apply(this,arguments),Pi){if(Pi){var d=Ua;Pi=!1,Ua=null}else throw Error(T(198));Ba||(Ba=!0,dd=d)}}function Wr(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 I0(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 df(e){if(Wr(e)!==e)throw Error(T(188))}function E2(e){var t=e.alternate;if(!t){if(t=Wr(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return df(s),e;if(i===r)return df(s),t;i=i.sibling}throw Error(T(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function D0(e){return e=E2(e),e!==null?M0(e):null}function M0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=M0(e);if(t!==null)return t;e=e.sibling}return null}var F0=ht.unstable_scheduleCallback,uf=ht.unstable_cancelCallback,_2=ht.unstable_shouldYield,k2=ht.unstable_requestPaint,Ee=ht.unstable_now,j2=ht.unstable_getCurrentPriorityLevel,Au=ht.unstable_ImmediatePriority,U0=ht.unstable_UserBlockingPriority,za=ht.unstable_NormalPriority,N2=ht.unstable_LowPriority,B0=ht.unstable_IdlePriority,_l=null,Zt=null;function C2(e){if(Zt&&typeof Zt.onCommitFiberRoot=="function")try{Zt.onCommitFiberRoot(_l,e,void 0,(e.current.flags&128)===128)}catch{}}var It=Math.clz32?Math.clz32:A2,P2=Math.log,T2=Math.LN2;function A2(e){return e>>>=0,e===0?32:31-(P2(e)/T2|0)|0}var Jo=64,Yo=4194304;function _i(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 qa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~s;l!==0?r=_i(l):(i&=o,i!==0&&(r=_i(i)))}else o=n&~s,o!==0?r=_i(o):i!==0&&(r=_i(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===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-It(t),s=1<<n,r|=e[n],t&=~s;return r}function R2(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 O2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-It(i),l=1<<o,c=s[o];c===-1?(!(l&n)||l&r)&&(s[o]=R2(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function ud(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function z0(){var e=Jo;return Jo<<=1,!(Jo&4194240)&&(Jo=64),e}function fc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Po(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-It(t),e[t]=n}function L2(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 s=31-It(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Ru(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-It(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var oe=0;function q0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var H0,Ou,W0,V0,G0,hd=!1,Qo=[],Jn=null,Yn=null,Qn=null,Vi=new Map,Gi=new Map,Dn=[],I2="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 hf(e,t){switch(e){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Yn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":Vi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gi.delete(t.pointerId)}}function fi(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Ao(t),t!==null&&Ou(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 12,981 bytes, line 37
37function D2(e,t,n,r,s){switch(t){case"focusin":return Jn=fi(Jn,e,t,n,r,s),!0;case"dragenter":return Yn=fi(Yn,e,t,n,r,s),!0;case"mouseover":return Qn=fi(Qn,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Vi.set(i,fi(Vi.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Gi.set(i,fi(Gi.get(i)||null,e,t,n,r,s)),!0}return!1}function K0(e){var t=_r(e.target);if(t!==null){var n=Wr(t);if(n!==null){if(t=n.tag,t===13){if(t=I0(n),t!==null){e.blockedOn=t,G0(e.priority,function(){W0(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 Ea(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ad=r,n.target.dispatchEvent(r),ad=null}else return t=Ao(n),t!==null&&Ou(t),e.blockedOn=n,!1;t.shift()}return!0}function ff(e,t,n){Ea(e)&&n.delete(t)}function M2(){hd=!1,Jn!==null&&Ea(Jn)&&(Jn=null),Yn!==null&&Ea(Yn)&&(Yn=null),Qn!==null&&Ea(Qn)&&(Qn=null),Vi.forEach(ff),Gi.forEach(ff)}function pi(e,t){e.blockedOn===t&&(e.blockedOn=null,hd||(hd=!0,ht.unstable_scheduleCallback(ht.unstable_NormalPriority,M2)))}function Ki(e){function t(s){return pi(s,e)}if(0<Qo.length){pi(Qo[0],e);for(var n=1;n<Qo.length;n++){var r=Qo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Jn!==null&&pi(Jn,e),Yn!==null&&pi(Yn,e),Qn!==null&&pi(Qn,e),Vi.forEach(t),Gi.forEach(t),n=0;n<Dn.length;n++)r=Dn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Dn.length&&(n=Dn[0],n.blockedOn===null);)K0(n),n.blockedOn===null&&Dn.shift()}var Cs=Sn.ReactCurrentBatchConfig,Ha=!0;function F2(e,t,n,r){var s=oe,i=Cs.transition;Cs.transition=null;try{oe=1,Lu(e,t,n,r)}finally{oe=s,Cs.transition=i}}function U2(e,t,n,r){var s=oe,i=Cs.transition;Cs.transition=null;try{oe=4,Lu(e,t,n,r)}finally{oe=s,Cs.transition=i}}function Lu(e,t,n,r){if(Ha){var s=fd(e,t,n,r);if(s===null)Sc(e,t,r,Wa,n),hf(e,r);else if(D2(s,e,t,n,r))r.stopPropagation();else if(hf(e,r),t&4&&-1<I2.indexOf(e)){for(;s!==null;){var i=Ao(s);if(i!==null&&H0(i),i=fd(e,t,n,r),i===null&&Sc(e,t,r,Wa,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Sc(e,t,r,null,n)}}var Wa=null;function fd(e,t,n,r){if(Wa=null,e=Tu(r),e=_r(e),e!==null)if(t=Wr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=I0(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 Wa=e,null}function J0(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(j2()){case Au:return 1;case U0:return 4;case za:case N2:return 16;case B0:return 536870912;default:return 16}default:return 16}}var Vn=null,Iu=null,_a=null;function Y0(){if(_a)return _a;var e,t=Iu,n=t.length,r,s="value"in Vn?Vn.value:Vn.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return _a=s.slice(e,1<r?1-r:void 0)}function ka(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 Xo(){return!0}function pf(){return!1}function pt(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Xo:pf,this.isPropagationStopped=pf,this}return xe(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=Xo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xo)},persist:function(){},isPersistent:Xo}),t}var ni={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Du=pt(ni),To=xe({},ni,{view:0,detail:0}),B2=pt(To),pc,mc,mi,kl=xe({},To,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mu,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!==mi&&(mi&&e.type==="mousemove"?(pc=e.screenX-mi.screenX,mc=e.screenY-mi.screenY):mc=pc=0,mi=e),pc)},movementY:function(e){return"movementY"in e?e.movementY:mc}}),mf=pt(kl),z2=xe({},kl,{dataTransfer:0}),q2=pt(z2),H2=xe({},To,{relatedTarget:0}),gc=pt(H2),W2=xe({},ni,{animationName:0,elapsedTime:0,pseudoElement:0}),V2=pt(W2),G2=xe({},ni,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),K2=pt(G2),J2=xe({},ni,{data:0}),gf=pt(J2),Y2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q2={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"},X2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Z2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=X2[e])?!!t[e]:!1}function Mu(){return Z2}var ex=xe({},To,{key:function(e){if(e.key){var t=Y2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ka(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Q2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mu,charCode:function(e){return e.type==="keypress"?ka(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ka(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tx=pt(ex),nx=xe({},kl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vf=pt(nx),rx=xe({},To,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mu}),sx=pt(rx),ix=xe({},ni,{propertyName:0,elapsedTime:0,pseudoElement:0}),ox=pt(ix),ax=xe({},kl,{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}),lx=pt(ax),cx=[9,13,27,32],Fu=gn&&"CompositionEvent"in window,Ti=null;gn&&"documentMode"in document&&(Ti=document.documentMode);var dx=gn&&"TextEvent"in window&&!Ti,Q0=gn&&(!Fu||Ti&&8<Ti&&11>=Ti),yf=" ",xf=!1;function X0(e,t){switch(e){case"keyup":return cx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Z0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ms=!1;function ux(e,t){switch(e){case"compositionend":return Z0(t);case"keypress":return t.which!==32?null:(xf=!0,yf);case"textInput":return e=t.data,e===yf&&xf?null:e;default:return null}}function hx(e,t){if(ms)return e==="compositionend"||!Fu&&X0(e,t)?(e=Y0(),_a=Iu=Vn=null,ms=!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 Q0&&t.locale!=="ko"?null:t.data;default:return null}}var fx={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 bf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fx[e.type]:t==="textarea"}function eg(e,t,n,r){T0(r),t=Va(t,"onChange"),0<t.length&&(n=new Du("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ai=null,Ji=null;function px(e){ug(e,0)}function jl(e){var t=ys(e);if(E0(t))return e}function mx(e,t){if(e==="change")return t}var tg=!1;if(gn){var vc;if(gn){var yc="oninput"in document;if(!yc){var wf=document.createElement("div");wf.setAttribute("oninput","return;"),yc=typeof wf.oninput=="function"}vc=yc}else vc=!1;tg=vc&&(!document.documentMode||9<document.documentMode)}function $f(){Ai&&(Ai.detachEvent("onpropertychange",ng),Ji=Ai=null)}function ng(e){if(e.propertyName==="value"&&jl(Ji)){var t=[];eg(t,Ji,e,Tu(e)),L0(px,t)}}function gx(e,t,n){e==="focusin"?($f(),Ai=t,Ji=n,Ai.attachEvent("onpropertychange",ng)):e==="focusout"&&$f()}function vx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return jl(Ji)}function yx(e,t){if(e==="click")return jl(t)}function xx(e,t){if(e==="input"||e==="change")return jl(t)}function bx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:bx;function Yi(e,t){if(Mt(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 s=n[r];if(!Jc.call(t,s)||!Mt(e[s],t[s]))return!1}return!0}function Sf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ef(e,t){var n=Sf(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=Sf(n)}}function rg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sg(){for(var e=window,t=Fa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fa(e.document)}return t}function Uu(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 wx(e){var t=sg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rg(n.ownerDocument.documentElement,n)){if(r!==null&&Uu(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 s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Ef(n,i);var o=Ef(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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 $x=gn&&"documentMode"in document&&11>=document.documentMode,gs=null,pd=null,Ri=null,md=!1;function _f(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;md||gs==null||gs!==Fa(r)||(r=gs,"selectionStart"in r&&Uu(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,352 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Ri&&Yi(Ri,r)||(Ri=r,r=Va(pd,"onSelect"),0<r.length&&(t=new Du("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gs)))}function Zo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vs={animationend:Zo("Animation","AnimationEnd"),animationiteration:Zo("Animation","AnimationIteration"),animationstart:Zo("Animation","AnimationStart"),transitionend:Zo("Transition","TransitionEnd")},xc={},ig={};gn&&(ig=document.createElement("div").style,"AnimationEvent"in window||(delete vs.animationend.animation,delete vs.animationiteration.animation,delete vs.animationstart.animation),"TransitionEvent"in window||delete vs.transitionend.transition);function Nl(e){if(xc[e])return xc[e];if(!vs[e])return e;var t=vs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ig)return xc[e]=t[n];return e}var og=Nl("animationend"),ag=Nl("animationiteration"),lg=Nl("animationstart"),cg=Nl("transitionend"),dg=new Map,kf="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 dr(e,t){dg.set(e,t),Hr(t,[e])}for(var bc=0;bc<kf.length;bc++){var wc=kf[bc],Sx=wc.toLowerCase(),Ex=wc[0].toUpperCase()+wc.slice(1);dr(Sx,"on"+Ex)}dr(og,"onAnimationEnd");dr(ag,"onAnimationIteration");dr(lg,"onAnimationStart");dr("dblclick","onDoubleClick");dr("focusin","onFocus");dr("focusout","onBlur");dr(cg,"onTransitionEnd");Ws("onMouseEnter",["mouseout","mouseover"]);Ws("onMouseLeave",["mouseout","mouseover"]);Ws("onPointerEnter",["pointerout","pointerover"]);Ws("onPointerLeave",["pointerout","pointerover"]);Hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ki="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(" "),_x=new Set("cancel close invalid load scroll toggle".split(" ").concat(ki));function jf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,S2(r,t,void 0,e),e.currentTarget=null}function ug(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],c=l.instance,d=l.currentTarget;if(l=l.listener,c!==i&&s.isPropagationStopped())break e;jf(s,l,d),i=c}else for(o=0;o<r.length;o++){if(l=r[o],c=l.instance,d=l.currentTarget,l=l.listener,c!==i&&s.isPropagationStopped())break e;jf(s,l,d),i=c}}}if(Ba)throw e=dd,Ba=!1,dd=null,e}function ue(e,t){var n=t[bd];n===void 0&&(n=t[bd]=new Set);var r=e+"__bubble";n.has(r)||(hg(t,e,2,!1),n.add(r))}function $c(e,t,n){var r=0;t&&(r|=4),hg(n,e,r,t)}var ea="_reactListening"+Math.random().toString(36).slice(2);function Qi(e){if(!e[ea]){e[ea]=!0,x0.forEach(function(n){n!=="selectionchange"&&(_x.has(n)||$c(n,!1,e),$c(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ea]||(t[ea]=!0,$c("selectionchange",!1,t))}}function hg(e,t,n,r){switch(J0(t)){case 1:var s=F2;break;case 4:s=U2;break;default:s=Lu}n=s.bind(null,t,n,e),s=void 0,!cd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}
vendor: 4,454 bytes, line 37
37function Sc(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;o=o.return}for(;l!==null;){if(o=_r(l),o===null)return;if(c=o.tag,c===5||c===6){r=i=o;continue e}l=l.parentNode}}r=r.return}L0(function(){var d=i,u=Tu(n),h=[];e:{var p=dg.get(e);if(p!==void 0){var f=Du,x=e;switch(e){case"keypress":if(ka(n)===0)break e;case"keydown":case"keyup":f=tx;break;case"focusin":x="focus",f=gc;break;case"focusout":x="blur",f=gc;break;case"beforeblur":case"afterblur":f=gc;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":f=mf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=q2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=sx;break;case og:case ag:case lg:f=V2;break;case cg:f=ox;break;case"scroll":f=B2;break;case"wheel":f=lx;break;case"copy":case"cut":case"paste":f=K2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=vf}var v=(t&4)!==0,b=!v&&e==="scroll",g=v?p!==null?p+"Capture":null:p;v=[];for(var m=d,y;m!==null;){y=m;var $=y.stateNode;if(y.tag===5&&$!==null&&(y=$,g!==null&&($=Wi(m,g),$!=null&&v.push(Xi(m,$,y)))),b)break;m=m.return}0<v.length&&(p=new f(p,x,null,n,u),h.push({event:p,listeners:v}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&n!==ad&&(x=n.relatedTarget||n.fromElement)&&(_r(x)||x[vn]))break e;if((f||p)&&(p=u.window===u?u:(p=u.ownerDocument)?p.defaultView||p.parentWindow:window,f?(x=n.relatedTarget||n.toElement,f=d,x=x?_r(x):null,x!==null&&(b=Wr(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(f=null,x=d),f!==x)){if(v=mf,$="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=vf,$="onPointerLeave",g="onPointerEnter",m="pointer"),b=f==null?p:ys(f),y=x==null?p:ys(x),p=new v($,m+"leave",f,n,u),p.target=b,p.relatedTarget=y,$=null,_r(u)===d&&(v=new v(g,m+"enter",x,n,u),v.target=y,v.relatedTarget=b,$=v),b=$,f&&x)t:{for(v=f,g=x,m=0,y=v;y;y=ts(y))m++;for(y=0,$=g;$;$=ts($))y++;for(;0<m-y;)v=ts(v),m--;for(;0<y-m;)g=ts(g),y--;for(;m--;){if(v===g||g!==null&&v===g.alternate)break t;v=ts(v),g=ts(g)}v=null}else v=null;f!==null&&Nf(h,p,f,v,!1),x!==null&&b!==null&&Nf(h,b,x,v,!0)}}e:{if(p=d?ys(d):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var S=mx;else if(bf(p))if(tg)S=xx;else{S=vx;var E=gx}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(S=yx);if(S&&(S=S(e,d))){eg(h,S,n,u);break e}E&&E(e,p,d),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&nd(p,"number",p.value)}switch(E=d?ys(d):window,e){case"focusin":(bf(E)||E.contentEditable==="true")&&(gs=E,pd=d,Ri=null);break;case"focusout":Ri=pd=gs=null;break;case"mousedown":md=!0;break;case"contextmenu":case"mouseup":case"dragend":md=!1,_f(h,n,u);break;case"selectionchange":if($x)break;case"keydown":case"keyup":_f(h,n,u)}var _;if(Fu)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else ms?X0(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Q0&&n.locale!=="ko"&&(ms||P!=="onCompositionStart"?P==="onCompositionEnd"&&ms&&(_=Y0()):(Vn=u,Iu="value"in Vn?Vn.value:Vn.textContent,ms=!0)),E=Va(d,P),0<E.length&&(P=new gf(P,e,null,n,u),h.push({event:P,listeners:E}),_?P.data=_:(_=Z0(n),_!==null&&(P.data=_)))),(_=dx?ux(e,n):hx(e,n))&&(d=Va(d,"onBeforeInput"),0<d.length&&(u=new gf("onBeforeInput","beforeinput",null,n,u),h.push({event:u,listeners:d}),u.data=_))}ug(h,t)})}function Xi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Va(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Wi(e,n),i!=null&&r.unshift(Xi(e,i,s)),i=Wi(e,t),i!=null&&r.push(Xi(e,i,s))),e=e.return}return r}function ts(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}
vendor: 4,283 bytes, lines 37-38
37function Nf(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,c=l.alternate,d=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&d!==null&&(l=d,s?(c=Wi(n,i),c!=null&&o.unshift(Xi(n,c,l))):s||(c=Wi(n,i),c!=null&&o.push(Xi(n,c,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kx=/\r\n?/g,jx=/\u0000|\uFFFD/g;function Cf(e){return(typeof e=="string"?e:""+e).replace(kx,` 38`).replace(jx,"")}function ta(e,t,n){if(t=Cf(t),Cf(e)!==t&&n)throw Error(T(425))}function Ga(){}var gd=null,vd=null;function yd(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 xd=typeof setTimeout=="function"?setTimeout:void 0,Nx=typeof clearTimeout=="function"?clearTimeout:void 0,Pf=typeof Promise=="function"?Promise:void 0,Cx=typeof queueMicrotask=="function"?queueMicrotask:typeof Pf<"u"?function(e){return Pf.resolve(null).then(e).catch(Px)}:xd;function Px(e){setTimeout(function(){throw e})}function Ec(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Ki(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Ki(t)}function Xn(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 Tf(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 ri=Math.random().toString(36).slice(2),Qt="__reactFiber$"+ri,Zi="__reactProps$"+ri,vn="__reactContainer$"+ri,bd="__reactEvents$"+ri,Tx="__reactListeners$"+ri,Ax="__reactHandles$"+ri;function _r(e){var t=e[Qt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[vn]||n[Qt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Tf(e);e!==null;){if(n=e[Qt])return n;e=Tf(e)}return t}e=n,n=e.parentNode}return null}function Ao(e){return e=e[Qt]||e[vn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ys(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function Cl(e){return e[Zi]||null}var wd=[],xs=-1;function ur(e){return{current:e}}function fe(e){0>xs||(e.current=wd[xs],wd[xs]=null,xs--)}function ce(e,t){xs++,wd[xs]=e.current,e.current=t}var ir={},qe=ur(ir),tt=ur(!1),Mr=ir;function Vs(e,t){var n=e.type.contextTypes;if(!n)return ir;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function nt(e){return e=e.childContextTypes,e!=null}function Ka(){fe(tt),fe(qe)}function Af(e,t,n){if(qe.current!==ir)throw Error(T(168));ce(qe,t),ce(tt,n)}function fg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(T(108,g2(e)||"Unknown",s));return xe({},n,r)}function Ja(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ir,Mr=qe.current,ce(qe,e),ce(tt,tt.current),!0}function Rf(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=fg(e,t,Mr),r.__reactInternalMemoizedMergedChildContext=e,fe(tt),fe(qe),ce(qe,e)):fe(tt),ce(tt,n)}var dn=null,Pl=!1,_c=!1;function pg(e){dn===null?dn=[e]:dn.push(e)}function Rx(e){Pl=!0,pg(e)}function hr(){if(!_c&&dn!==null){_c=!0;var e=0,t=oe;try{var n=dn;for(oe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}dn=null,Pl=!1}catch(s){throw dn!==null&&(dn=dn.slice(e+1)),F0(Au,hr),s}finally{oe=t,_c=!1}}return null}var bs=[],ws=0,Ya=null,Qa=0,vt=[],yt=0,Fr=null,fn=1,pn="";function xr(e,t){bs[ws++]=Qa,bs[ws++]=Ya,Ya=e,Qa=t}function mg(e,t,n){vt[yt++]=fn,vt[yt++]=pn,vt[yt++]=Fr,Fr=e;var r=fn;e=pn;var s=32-It(r)-1;r&=~(1<<s),n+=1;var i=32-It(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,fn=1<<32-It(t)+s|n<<s|r,pn=i+e}else fn=1<<i|n<<s|r,pn=e}function Bu(e){e.return!==null&&(xr(e,1),mg(e,1,0))}function zu(e){for(;e===Ya;)Ya=bs[--ws],bs[ws]=null,Qa=bs[--ws],bs[ws]=null;for(;e===Fr;
vendor: 24,141 bytes, lines 38-40
38)Fr=vt[--yt],vt[yt]=null,pn=vt[--yt],vt[yt]=null,fn=vt[--yt],vt[yt]=null}var dt=null,ct=null,me=!1,Lt=null;function gg(e,t){var n=xt(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 Of(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,dt=e,ct=Xn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,dt=e,ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Fr!==null?{id:fn,overflow:pn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=xt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,dt=e,ct=null,!0):!1;default:return!1}}function $d(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Sd(e){if(me){var t=ct;if(t){var n=t;if(!Of(e,t)){if($d(e))throw Error(T(418));t=Xn(n.nextSibling);var r=dt;t&&Of(e,t)?gg(r,n):(e.flags=e.flags&-4097|2,me=!1,dt=e)}}else{if($d(e))throw Error(T(418));e.flags=e.flags&-4097|2,me=!1,dt=e}}}function Lf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;dt=e}function na(e){if(e!==dt)return!1;if(!me)return Lf(e),me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!yd(e.type,e.memoizedProps)),t&&(t=ct)){if($d(e))throw vg(),Error(T(418));for(;t;)gg(e,t),t=Xn(t.nextSibling)}if(Lf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ct=Xn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ct=null}}else ct=dt?Xn(e.stateNode.nextSibling):null;return!0}function vg(){for(var e=ct;e;)e=Xn(e.nextSibling)}function Gs(){ct=dt=null,me=!1}function qu(e){Lt===null?Lt=[e]:Lt.push(e)}var Ox=Sn.ReactCurrentBatchConfig;function gi(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(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=s.refs;o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function ra(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function If(e){var t=e._init;return t(e._payload)}function yg(e){function t(g,m){if(e){var y=g.deletions;y===null?(g.deletions=[m],g.flags|=16):y.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function s(g,m){return g=nr(g,m),g.index=0,g.sibling=null,g}function i(g,m,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<m?(g.flags|=2,m):y):(g.flags|=2,m)):(g.flags|=1048576,m)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,m,y,$){return m===null||m.tag!==6?(m=Ac(y,g.mode,$),m.return=g,m):(m=s(m,y),m.return=g,m)}function c(g,m,y,$){var S=y.type;return S===ps?u(g,m,y.props.children,$,y.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ln&&If(S)===m.type)?($=s(m,y.props),$.ref=gi(g,m,y),$.return=g,$):($=Ra(y.type,y.key,y.props,null,g.mode,$),$.ref=gi(g,m,y),$.return=g,$)}function d(g,m,y,$){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=Rc(y,g.mode,$),m.return=g,m):(m=s(m,y.children||[]),m.return=g,m)}function u(g,m,y,$,S){return m===null||m.tag!==7?(m=Dr(y,g.mode,$,S),m.return=g,m):(m=s(m,y),m.return=g,m)}function h(g,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Ac(""+m,g.mode,y),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Vo:return y=Ra(m.type,m.key,m.props,null,g.mode,y),y.ref=gi(g,null,m),y.return=g,y;case fs:return m=Rc(m,g.mode,y),m.return=g,m;case Ln:var $=m._init;return h(g,$(m._payload),y)}if(Ei(m)||ui(m))return m=Dr(m,g.mode,y,null),m.return=g,m;ra(g,m)}return null}function p(g,m,y,$){var S=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return S!==null?null:l(g,m,""+y,$);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Vo:return y.key===S?c(g,m,y,$):null;case fs:return y.key===S?d(g,m,y,$):null;case Ln:return S=y._init,p(g,m,S(y._payload),$)}if(Ei(y)||ui(y))return S!==null?null:u(g,m,y,$,null);ra(g,y)}return null}function f(g,m,y,$,S){if(typeof $=="string"&&$!==""||typeof $=="number")return g=g.get(y)||null,l(m,g,""+$,S);if(typeof $=="object"&&$!==null){switch($.$$typeof){case Vo:return g=g.get($.key===null?y:$.key)||null,c(m,g,$,S);case fs:return g=g.get($.key===null?y:$.key)||null,d(m,g,$,S);case Ln:var E=$._init;return f(g,m,y,E($._payload),S)}if(Ei($)||ui($))return g=g.get(y)||null,u(m,g,$,S,null);ra(m,$)}return null}function x(g,m,y,$){for(var S=null,E=null,_=m,P=m=0,A=null;_!==null&&P<y.length;P++){_.index>P?(A=_,_=null):A=_.sibling;var O=p(g,_,y[P],$);if(O===null){_===null&&(_=A);break}e&&_&&O.alternate===null&&t(g,_),m=i(O,m,P),E===null?S=O:E.sibling=O,E=O,_=A}if(P===y.length)return n(g,_),me&&xr(g,P),S;if(_===null){for(;P<y.length;P++)_=h(g,y[P],$),_!==null&&(m=i(_,m,P),E===null?S=_:E.sibling=_,E=_);return me&&xr(g,P),S}for(_=r(g,_);P<y.length;P++)A=f(_,g,P,y[P],$),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?P:A.key),m=i(A,m,P),E===null?S=A:E.sibling=A,E=A);return e&&_.forEach(function(W){return t(g,W)}),me&&xr(g,P),S}function v(g,m,y,$){var S=ui(y);if(typeof S!="function")throw Error(T(150));if(y=S.call(y),y==null)throw Error(T(151));for(var E=S=null,_=m,P=m=0,A=null,O=y.next();_!==null&&!O.done;P++,O=y.next()){_.index>P?(A=_,_=null):A=_.sibling;var W=p(g,_,O.value,$);if(W===null){_===null&&(_=A);break}e&&_&&W.alternate===null&&t(g,_),m=i(W,m,P),E===null?S=W:E.sibling=W,E=W,_=A}if(O.done)return n(g,_),me&&xr(g,P),S;if(_===null){for(;!O.done;P++,O=y.next())O=h(g,O.value,$),O!==null&&(m=i(O,m,P),E===null?S=O:E.sibling=O,E=O);return me&&xr(g,P),S}for(_=r(g,_);!O.done;P++,O=y.next())O=f(_,g,P,O.value,$),O!==null&&(e&&O.alternate!==null&&_.delete(O.key===null?P:O.key),m=i(O,m,P),E===null?S=O:E.sibling=O,E=O);return e&&_.forEach(function(F){return t(g,F)}),me&&xr(g,P),S}function b(g,m,y,$){if(typeof y=="object"&&y!==null&&y.type===ps&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Vo:e:{for(var S=y.key,E=m;E!==null;){if(E.key===S){if(S=y.type,S===ps){if(E.tag===7){n(g,E.sibling),m=s(E,y.props.children),m.return=g,g=m;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ln&&If(S)===E.type){n(g,E.sibling),m=s(E,y.props),m.ref=gi(g,E,y),m.return=g,g=m;break e}n(g,E);break}else t(g,E);E=E.sibling}y.type===ps?(m=Dr(y.props.children,g.mode,$,y.key),m.return=g,g=m):($=Ra(y.type,y.key,y.props,null,g.mode,$),$.ref=gi(g,m,y),$.return=g,g=$)}return o(g);case fs:e:{for(E=y.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=s(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=Rc(y,g.mode,$),m.return=g,g=m}return o(g);case Ln:return E=y._init,b(g,m,E(y._payload),$)}if(Ei(y))return x(g,m,y,$);if(ui(y))return v(g,m,y,$);ra(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,y),m.return=g,g=m):(n(g,m),m=Ac(y,g.mode,$),m.return=g,g=m),o(g)):n(g,m)}return b}var Ks=yg(!0),xg=yg(!1),Xa=ur(null),Za=null,$s=null,Hu=null;function Wu(){Hu=$s=Za=null}function Vu(e){var t=Xa.current;fe(Xa),e._currentValue=t}function Ed(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 Ps(e,t){Za=e,Hu=$s=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(et=!0),e.firstContext=null)}function wt(e){var t=e._currentValue;if(Hu!==e)if(e={context:e,memoizedValue:t,next:null},$s===null){if(Za===null)throw Error(T(308));$s=e,Za.dependencies={lanes:0,firstContext:e}}else $s=$s.next=e;return t}var kr=null;function Gu(e){kr===null?kr=[e]:kr.push(e)}function bg(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Gu(t)):(n.next=s.next,s.next=n),t.interleaved=n,yn(e,r)}function yn(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 In=!1;function Ku(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wg(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 mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,re&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,yn(e,n)}return s=r.interleaved,s===null?(t.next=t,Gu(r)):(t.next=s.next,s.next=t),r.interleaved=t,yn(e,n)}function ja(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,Ru(e,n)}}function Df(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,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 el(e,t,n,r){var s=e.updateQueue;In=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,d=c.next;c.next=null,o===null?i=d:o.next=d,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==o&&(l===null?u.firstBaseUpdate=d:l.next=d,u.lastBaseUpdate=c))}if(i!==null){var h=s.baseState;o=0,u=d=c=null,l=i;do{var p=l.lane,f=l.eventTime;if((r&p)===p){u!==null&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,v=l;switch(p=t,f=n,v.tag){case 1:if(x=v.payload,typeof x=="function"){h=x.call(f,h,p);break e}h=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=v.payload,p=typeof x=="function"?x.call(f,h,p):x,p==null)break e;h=xe({},h,p);break e;case 2:In=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(d=u=f,c=h):u=u.next=f,o|=p;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;p=l,l=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(!0);if(u===null&&(c=h),s.baseState=c,s.firstBaseUpdate=d,s.lastBaseUpdate=u,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);Br|=o,e.lanes=o,e.memoizedState=h}}function Mf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(T(191,s));s.call(r)}}}var Ro={},en=ur(Ro),eo=ur(Ro),to=ur(Ro);function jr(e){if(e===Ro)throw Error(T(174));return e}function Ju(e,t){switch(ce(to,t),ce(eo,e),ce(en,Ro),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sd(t,e)}fe(en),ce(en,t)}function Js(){fe(en),fe(eo),fe(to)}function $g(e){jr(to.current);var t=jr(en.current),n=sd(t,e.type);t!==n&&(ce(eo,e),ce(en,n))}function Yu(e){eo.current===e&&(fe(en),fe(eo))}var ve=ur(0);function tl(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 kc=[];function Qu(){for(var e=0;e<kc.length;e++)kc[e]._workInProgressVersionPrimary=null;kc.length=0}var Na=Sn.ReactCurrentDispatcher,jc=Sn.ReactCurrentBatchConfig,Ur=0,ye=null,Ne=null,Te=null,nl=!1,Oi=!1,no=0,Lx=0;function Fe(){throw Error(T(321))}function Xu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mt(e[n],t[n]))return!1;return!0}function Zu(e,t,n,r,s,i){if(Ur=i,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Na.current=e===null||e.memoizedState===null?Fx:Ux,e=n(r,s),Oi){i=0;do{if(Oi=!1,no=0,25<=i)throw Error(T(301));i+=1,Te=Ne=null,t.updateQueue=null,Na.current=Bx,e=n(r,s)}while(Oi)}if(Na.current=rl,t=Ne!==null&&Ne.next!==null,Ur=0,Te=Ne=ye=null,nl=!1,t)throw Error(T(300));return e}function eh(){var e=no!==0;return no=0,e}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?ye.memoizedState=Te=e:Te=Te.next=e,Te}function $t(){if(Ne===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Te===null?ye.memoizedState:Te.next;if(t!==null)Te=t,Ne=e;else{if(e===null)throw Error(T(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Te===null?ye.memoizedState=Te=e:Te=Te.next=e}return Te}function ro(e,t){return typeof t=="function"?t(e):t}function Nc(e){var t=$t(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=Ne,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=o=null,c=null,d=i;do{var u=d.lane;if((Ur&u)===u)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var h={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(l=c=h,o=r):c=c.next=h,ye.lanes|=u,Br|=u}d=d.next}while(d!==null&&d!==i);c===null?o=r:c.next=l,Mt(r,t.memoizedState)||(et=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,ye.lanes|=i,Br|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Cc(e){var t=$t(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Mt(i,t.memoizedState)||(et=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Sg(){}function Eg(e,t){var n=ye,r=$t(),s=t(),i=!Mt(r.memoizedState,s);if(i&&(r.memoizedState=s,et=!0),r=r.queue,th(jg.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Te!==null&&Te.memoizedState.tag&1){if(n.flags|=2048,so(9,kg.bind(null,n,r,s,t),void 0,null),Ae===null)throw Error(T(349));Ur&30||_g(n,t,s)}return s}function _g(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kg(e,t,n,r){t.value=n,t.getSnapshot=r,Ng(t)&&Cg(e)}function jg(e,t,n){return n(function(){Ng(t)&&Cg(e)})}function Ng(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mt(e,n)}catch{return!0}}function Cg(e){var t=yn(e,1);t!==null&&Dt(t,e,1,-1)}function Ff(e){var t=Wt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ro,lastRenderedState:e},t.queue=e,e=e.dispatch=Mx.bind(null,ye,e),[t.memoizedState,e]}function so(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.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 Pg(){return $t().memoizedState}function Ca(e,t,n,r){var s=Wt();ye.flags|=e,s.memoizedState=so(1|t,n,void 0,r===void 0?null:r)}function Tl(e,t,n,r){var s=$t();r=r===void 0?null:r;var i=void 0;if(Ne!==null){var o=Ne.memoizedState;if(i=o.destroy,r!==null&&Xu(r,o.deps)){s.memoizedState=so(t,n,i,r);return}}ye.flags|=e,s.memoizedState=so(1|t,n,i,r)}function Uf(e,t){return Ca(8390656,8,e,t)}function th(e,t){return Tl(2048,8,e,t)}function Tg(e,t){return Tl(4,2,e,t)}function Ag(e,t){return Tl(4,4,e,t)}function Rg(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 Og(e,t,n){return n=n!=null?n.concat([e]):null,Tl(4,4,Rg.bind(null,t,e),n)}function nh(){}function Lg(e,t){var n=$t();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Xu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ig(e,t){var n=$t();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Xu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Dg(e,t,n){return Ur&21?(Mt(n,t)||(n=z0(),ye.lanes|=n,Br|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,et=!0),e.memoizedState=n)}function Ix(e,t){var n=oe;oe=n!==0&&4>n?n:4,e(!0);var r=jc.transition;jc.transition={};try{e(!1),t()}finally{oe=n,jc.transition=r}}function Mg(){return $t().memoizedState}function Dx(e,t,n){var r=tr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fg(e))Ug(t,n);else if(n=bg(e,t,n,r),n!==null){var s=Ke();Dt(n,e,r,s),Bg(n,t,r)}}function Mx(e,t,n){var r=tr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fg(e))Ug(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(s.hasEagerState=!0,s.eagerState=l,Mt(l,o)){var c=t.interleaved;c===null?(s.next=s,Gu(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=bg(e,t,s,r),n!==null&&(s=Ke(),Dt(n,e,r,s),Bg(n,t,r))}}function Fg(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Ug(e,t){Oi=nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ru(e,n)}}var rl={readContext:wt,useCallback:Fe,useContext:Fe,useEffect:Fe,useImperativeHandle:Fe,useInsertionEffect:Fe,useLayoutEffect:Fe,useMemo:Fe,useReducer:Fe,useRef:Fe,useState:Fe,useDebugValue:Fe,useDeferredValue:Fe,useTransition:Fe,useMutableSource:Fe,useSyncExternalStore:Fe,useId:Fe,unstable_isNewReconciler:!1},Fx={readContext:wt,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:wt,useEffect:Uf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ca(4194308,4,Rg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ca(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ca(4,2,e,t)},useMemo:function(e,t){var n=Wt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wt();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=Dx.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:Ff,useDebugValue:nh,useDeferredValue:function(e){return Wt().memoizedState=e},useTransition:function(){var e=Ff(!1),t=e[0];return e=Ix.bind(null,e[1]),Wt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,s=Wt();if(me){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),Ae===null)throw Error(T(349));Ur&30||_g(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Uf(jg.bind(null,r,i,e),[e]),r.flags|=2048,so(9,kg.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Wt(),t=Ae.identifierPrefix;if(me){var n=pn,r=fn;n=(r&~(1<<32-It(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=no++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Lx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ux={readContext:wt,useCallback:Lg,useContext:wt,useEffect:th,useImperativeHandle:Og,useInsertionEffect:Tg,useLayoutEffect:Ag,useMemo:Ig,useReducer:Nc,useRef:Pg,useState:function(){return Nc(ro)},useDebugValue:nh,useDeferredValue:function(e){var t=$t();return Dg(t,Ne.memoizedState,e)},useTransition:function(){var e=Nc(ro)[0],t=$t().memoizedState;return[e,t]},useMutableSource:Sg,useSyncExternalStore:Eg,useId:Mg,unstable_isNewReconciler:!1},Bx={readContext:wt,useCallback:Lg,useContext:wt,useEffect:th,useImperativeHandle:Og,useInsertionEffect:Tg,useLayoutEffect:Ag,useMemo:Ig,useReducer:Cc,useRef:Pg,useState:function(){return Cc(ro)},useDebugValue:nh,useDeferredValue:function(e){var t=$t();return Ne===null?t.memoizedState=e:Dg(t,Ne.memoizedState,e)},useTransition:function(){var e=Cc(ro)[0],t=$t().memoizedState;return[e,t]},useMutableSource:Sg,useSyncExternalStore:Eg,useId:Mg,unstable_isNewReconciler:!1};function Ct(e,t){if(e&&e.defaultProps){t=xe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _d(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Al={isMounted:function(e){return(e=e._reactInternals)?Wr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ke(),s=tr(e),i=mn(r,s);i.payload=t,n!=null&&(i.callback=n),t=Zn(e,i,s),t!==null&&(Dt(t,e,s,r),ja(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ke(),s=tr(e),i=mn(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Zn(e,i,s),t!==null&&(Dt(t,e,s,r),ja(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ke(),r=tr(e),s=mn(n,r);s.tag=2,t!=null&&(s.callback=t),t=Zn(e,s,r),t!==null&&(Dt(t,e,r,n),ja(t,e,r))}};function Bf(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Yi(n,r)||!Yi(s,i):!0}function zg(e,t,n){var r=!1,s=ir,i=t.contextType;return typeof i=="object"&&i!==null?i=wt(i):(s=nt(t)?Mr:qe.current,r=t.contextTypes,i=(r=r!=null)?Vs(e,s):ir),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Al,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function zf(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&&Al.enqueueReplaceState(t,t.state,null)}function kd(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Ku(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=wt(i):(i=nt(t)?Mr:qe.current,s.context=Vs(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(_d(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Al.enqueueReplaceState(s,s.state,null),el(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Ys(e,t){try{var n="",r=t;do n+=m2(r),r=r.return;while(r);var s=n}catch(i){s=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:e,source:t,stack:s,digest:null}}
vendor: 11,185 bytes, line 40
40function Pc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function jd(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var zx=typeof WeakMap=="function"?WeakMap:Map;function qg(e,t,n){n=mn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){il||(il=!0,Dd=r),jd(e,t)},n}function Hg(e,t,n){n=mn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){jd(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){jd(e,t),typeof r!="function"&&(er===null?er=new Set([this]):er.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function qf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zx;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=nb.bind(null,e,t,n),t.then(e,e))}function Hf(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 Wf(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=mn(-1,1),t.tag=2,Zn(n,t,1))),n.lanes|=1),e)}var qx=Sn.ReactCurrentOwner,et=!1;function Ve(e,t,n,r){t.child=e===null?xg(t,null,n,r):Ks(t,e.child,n,r)}function Vf(e,t,n,r,s){n=n.render;var i=t.ref;return Ps(t,s),r=Zu(e,t,n,r,i,s),n=eh(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,xn(e,t,s)):(me&&n&&Bu(t),t.flags|=1,Ve(e,t,r,s),t.child)}function Gf(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!dh(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Wg(e,t,i,r,s)):(e=Ra(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Yi,n(o,r)&&e.ref===t.ref)return xn(e,t,s)}return t.flags|=1,e=nr(i,r),e.ref=t.ref,e.return=t,t.child=e}function Wg(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Yi(i,r)&&e.ref===t.ref)if(et=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(et=!0);else return t.lanes=e.lanes,xn(e,t,s)}return Nd(e,t,n,r,s)}function Vg(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ce(Es,ot),ot|=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,ce(Es,ot),ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ce(Es,ot),ot|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ce(Es,ot),ot|=r;return Ve(e,t,s,n),t.child}function Gg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Nd(e,t,n,r,s){var i=nt(n)?Mr:qe.current;return i=Vs(t,i),Ps(t,s),n=Zu(e,t,n,r,i,s),r=eh(),e!==null&&!et?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,xn(e,t,s)):(me&&r&&Bu(t),t.flags|=1,Ve(e,t,n,s),t.child)}function Kf(e,t,n,r,s){if(nt(n)){var i=!0;Ja(t)}else i=!1;if(Ps(t,s),t.stateNode===null)Pa(e,t),zg(t,n,r),kd(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var c=o.context,d=n.contextType;typeof d=="object"&&d!==null?d=wt(d):(d=nt(n)?Mr:qe.current,d=Vs(t,d));var u=n.getDerivedStateFromProps,h=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||c!==d)&&zf(t,o,r,d),In=!1;var p=t.memoizedState;o.state=p,el(t,r,o,s),c=t.memoizedState,l!==r||p!==c||tt.current||In?(typeof u=="function"&&(_d(t,n,u,r),c=t.memoizedState),(l=In||Bf(t,n,l,r,p,c,d))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=d,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,wg(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:Ct(t.type,l),o.props=d,h=t.pendingProps,p=o.context,c=n.contextType,typeof c=="object"&&c!==null?c=wt(c):(c=nt(n)?Mr:qe.current,c=Vs(t,c));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||p!==c)&&zf(t,o,r,c),In=!1,p=t.memoizedState,o.state=p,el(t,r,o,s);var x=t.memoizedState;l!==h||p!==x||tt.current||In?(typeof f=="function"&&(_d(t,n,f,r),x=t.memoizedState),(d=In||Bf(t,n,d,r,p,x,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,x,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,x,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),o.props=r,o.state=x,o.context=c,r=d):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Cd(e,t,n,r,i,s)}function Cd(e,t,n,r,s,i){Gg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Rf(t,n,!1),xn(e,t,i);r=t.stateNode,qx.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ks(t,e.child,null,i),t.child=Ks(t,null,l,i)):Ve(e,t,l,i),t.memoizedState=r.state,s&&Rf(t,n,!0),t.child}function Kg(e){var t=e.stateNode;t.pendingContext?Af(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Af(e,t.context,!1),Ju(e,t.containerInfo)}function Jf(e,t,n,r,s){return Gs(),qu(s),t.flags|=256,Ve(e,t,n,r),t.child}var Pd={dehydrated:null,treeContext:null,retryLane:0};function Td(e){return{baseLanes:e,cachePool:null,transitions:null}}function Jg(e,t,n){var r=t.pendingProps,s=ve.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),ce(ve,s&1),e===null)return Sd(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):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Ll(o,r,0,null),e=Dr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Td(n),t.memoizedState=Pd,e):rh(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return Hx(e,t,o,r,l,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,l=s.sibling;var c={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=nr(s,c),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=nr(l,i):(i=Dr(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Td(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Pd,r}return i=e.child,e=i.sibling,r=nr(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 rh(e,t){return t=Ll({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function sa(e,t,n,r){return r!==null&&qu(r),Ks(t,e.child,null,n),e=rh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Hx(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Pc(Error(T(422))),sa(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Ll({mode:"visible",children:r.children},s,0,null),i=Dr(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ks(t,e.child,null,o),t.child.memoizedState=Td(o),t.memoizedState=Pd,i);if(!(t.mode&1))return sa(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(T(419)),r=Pc(i,r,void 0),sa(e,t,o,r)}if(l=(o&e.childLanes)!==0,et||l){if(r=Ae,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,yn(e,s),Dt(r,e,s,-1))}return ch(),r=Pc(Error(T(421))),sa(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=rb.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,ct=Xn(s.nextSibling),dt=t,me=!0,Lt=null,e!==null&&(vt[yt++]=fn,vt[yt++]=pn,vt[yt++]=Fr,fn=e.id,pn=e.overflow,Fr=t),t=rh(t,r.children),t.flags|=4096,t)}function Yf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ed(e.return,t,n)}function Tc(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function Yg(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Ve(e,t,r.children,n),r=ve.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&&Yf(e,n,t);else if(e.tag===19)Yf(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(ce(ve,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&tl(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Tc(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&tl(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Tc(t,!0,n,null,i);break;case"together":Tc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Pa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Br|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));
vendor: 5,451 bytes, line 40
40if(t.child!==null){for(e=t.child,n=nr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=nr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Wx(e,t,n){switch(t.tag){case 3:Kg(t),Gs();break;case 5:$g(t);break;case 1:nt(t.type)&&Ja(t);break;case 4:Ju(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;ce(Xa,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ce(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?Jg(e,t,n):(ce(ve,ve.current&1),e=xn(e,t,n),e!==null?e.sibling:null);ce(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Yg(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ce(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,Vg(e,t,n)}return xn(e,t,n)}var Qg,Ad,Xg,Zg;Qg=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}};Ad=function(){};Xg=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,jr(en.current);var i=null;switch(n){case"input":s=ed(e,s),r=ed(e,r),i=[];break;case"select":s=xe({},s,{value:void 0}),r=xe({},r,{value:void 0}),i=[];break;case"textarea":s=rd(e,s),r=rd(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ga)}id(n,r);var o;n=null;for(d in s)if(!r.hasOwnProperty(d)&&s.hasOwnProperty(d)&&s[d]!=null)if(d==="style"){var l=s[d];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(qi.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var c=r[d];if(l=s!=null?s[d]:void 0,r.hasOwnProperty(d)&&c!==l&&(c!=null||l!=null))if(d==="style")if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(qi.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&ue("scroll",e),i||l===c||(i=[])):(i=i||[]).push(d,c))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};Zg=function(e,t,n,r){n!==r&&(t.flags|=4)};function vi(e,t){if(!me)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 Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vx(e,t,n){var r=t.pendingProps;switch(zu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return nt(t.type)&&Ka(),Ue(t),null;case 3:return r=t.stateNode,Js(),fe(tt),fe(qe),Qu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(na(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Lt!==null&&(Ud(Lt),Lt=null))),Ad(e,t),Ue(t),null;case 5:Yu(t);var s=jr(to.current);if(n=t.type,e!==null&&t.stateNode!=null)Xg(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return Ue(t),null}if(e=jr(en.current),na(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Qt]=t,r[Zi]=i,e=(t.mode&1)!==0,n){case"dialog":ue("cancel",r),ue("close",r);break;case"iframe":case"object":case"embed":ue("load",r);break;case"video":case"audio":for(s=0;s<ki.length;s++)ue(ki[s],r);break;case"source":ue("error",r);break;case"img":case"image":case"link":ue("error",r),ue("load",r);break;case"details":ue("toggle",r);break;case"input":sf(r,i),ue("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ue("invalid",r);break;case"textarea":af(r,i),ue("invalid",r)}id(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&ta(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&ta(r.textContent,l,e),s=["children",""+l]):qi.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&ue("scroll",r)}switch(n){case"input":Go(r),of(r,i,!0);break;case"textarea":Go(r),lf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ga)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=j0(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Qt]=t,e[Zi]=r,Qg(e,t,!1,!1),t.stateNode=e;e:{switch(o=od(n,r),n){case"dialog":ue("cancel",e),ue("close",e),s=r;break;case"iframe":case"object":case"embed":ue("load",e),s=r;break;case"video":case"audio":for(s=0;s<ki.length;s++)ue(ki[s],e);s=r;break;case"source":ue("error",e),s=r;break;case"img":case"image":case"link":ue("error",e),ue("load",e),s=r;break;case"details":ue("toggle",e),s=r;break;case"input":sf(e,r),s=ed(e,r),ue("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=xe({},r,{value:void 0}),ue("invalid",e);break;case"textarea":af(e,r),s=rd(e,r),ue("invalid",e);break;default:s=r}id(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?P0(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&N0(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Hi(e,c):typeof c=="number"&&Hi(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(qi.hasOwnProperty(i)?c!=null&&i==="onScroll"&&ue("scroll",e):c!=null&&ju(e,i,c,o))}switch(n){case"input":Go(e),of(e,r,!1);break;case"textarea":Go(e),lf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+sr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?ks(e,!!r.multiple,i,!1):r.defaultValue!=null&&ks(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Ga)}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 Ue(t),null;case 6:if(e&&t.stateNode!=null)Zg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=jr(to.current),jr(en.current),na(t)){if(r=t.stateNode,n=t.memoizedProps,r[Qt]=t,(i=r.nodeValue!==n)&&(e=dt,e!==null))switch(e.tag){case 3:ta(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ta(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Qt]=t,t.stateNode=r}return Ue(t),null;case 13:if(fe(ve),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&ct!==null&&t.mode&1&&!(t.flags&128))vg(),Gs(),t.flags|=98560,i=!1;else if(i=na(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(T(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(T(317));i[Qt]=t}else Gs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ue(t),i=!1}else Lt!==null&&(Ud(Lt),Lt=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||ve.current&1?Pe===0&&(Pe=3):ch())),t.updateQueue!==null&&(t.flags|=4),Ue(t),null);case 4:return Js(),Ad(e,t),e===null&&Qi(t.stateNode.containerInfo),Ue(t),null;case 10:return Vu(t.type._context),Ue(t),null;case 17:return nt(t.type)&&Ka(),Ue(t),null;case 19:if(fe(ve),i=t.memoizedState,i===null)return Ue(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)vi(i,!1);else{if(Pe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=tl(e),o!==null){for(t.flags|=128,vi(i,!1),r=o.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,o=i.alternate,o===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=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ce(ve,ve.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ee()>Qs&&(t.flags|=128,r=!0,vi(i,!1),t.lanes=4194304)}else{if(!r)if(e=tl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!me)return Ue(t),null}else 2*Ee()-i.renderingStartTime>Qs&&n!==1073741824&&(t.flags|=128,r=!0,vi(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ee(),t.sibling=null,n=ve.current,ce(ve,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return lh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ot&1073741824&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Gx(e,t){switch(zu(t),t.tag){case 1:return nt(t.type)&&Ka(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 25,347 bytes, line 40
40case 3:return Js(),fe(tt),fe(qe),Qu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yu(t),null;case 13:if(fe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Gs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ve),null;case 4:return Js(),null;case 10:return Vu(t.type._context),null;case 22:case 23:return lh(),null;case 24:return null;default:return null}}var ia=!1,ze=!1,Kx=typeof WeakSet=="function"?WeakSet:Set,U=null;function Ss(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Se(e,t,r)}else n.current=null}function Rd(e,t,n){try{n()}catch(r){Se(e,t,r)}}var Qf=!1;function Jx(e,t){if(gd=Ha,e=sg(),Uu(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 s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,c=-1,d=0,u=0,h=e,p=null;t:for(;;){for(var f;h!==n||s!==0&&h.nodeType!==3||(l=o+s),h!==i||r!==0&&h.nodeType!==3||(c=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(f=h.firstChild)!==null;)p=h,h=f;for(;;){if(h===e)break t;if(p===n&&++d===s&&(l=o),p===i&&++u===r&&(c=o),(f=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=f}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(vd={focusedElem:e,selectionRange:n},Ha=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var v=x.memoizedProps,b=x.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ct(t.type,v),b);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch($){Se(t,t.return,$)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return x=Qf,Qf=!1,x}function Li(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Rd(t,n,i)}s=s.next}while(s!==r)}}function Rl(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 Od(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 e1(e){var t=e.alternate;t!==null&&(e.alternate=null,e1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[Zi],delete t[bd],delete t[Tx],delete t[Ax])),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 t1(e){return e.tag===5||e.tag===3||e.tag===4}function Xf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||t1(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 Ld(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=Ga));else if(r!==4&&(e=e.child,e!==null))for(Ld(e,t,n),e=e.sibling;e!==null;)Ld(e,t,n),e=e.sibling}function Id(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(Id(e,t,n),e=e.sibling;e!==null;)Id(e,t,n),e=e.sibling}var Le=null,Ot=!1;function Tn(e,t,n){for(n=n.child;n!==null;)n1(e,t,n),n=n.sibling}function n1(e,t,n){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(_l,n)}catch{}switch(n.tag){case 5:ze||Ss(n,t);case 6:var r=Le,s=Ot;Le=null,Tn(e,t,n),Le=r,Ot=s,Le!==null&&(Ot?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&(Ot?(e=Le,n=n.stateNode,e.nodeType===8?Ec(e.parentNode,n):e.nodeType===1&&Ec(e,n),Ki(e)):Ec(Le,n.stateNode));break;case 4:r=Le,s=Ot,Le=n.stateNode.containerInfo,Ot=!0,Tn(e,t,n),Le=r,Ot=s;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Rd(n,t,o),s=s.next}while(s!==r)}Tn(e,t,n);break;case 1:if(!ze&&(Ss(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Se(n,t,l)}Tn(e,t,n);break;case 21:Tn(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,Tn(e,t,n),ze=r):Tn(e,t,n);break;default:Tn(e,t,n)}}function Zf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kx),t.forEach(function(r){var s=sb.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Le=l.stateNode,Ot=!1;break e;case 3:Le=l.stateNode.containerInfo,Ot=!0;break e;case 4:Le=l.stateNode.containerInfo,Ot=!0;break e}l=l.return}if(Le===null)throw Error(T(160));n1(i,o,s),Le=null,Ot=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(d){Se(s,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)r1(t,e),t=t.sibling}function r1(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(kt(t,e),qt(e),r&4){try{Li(3,e,e.return),Rl(3,e)}catch(v){Se(e,e.return,v)}try{Li(5,e,e.return)}catch(v){Se(e,e.return,v)}}break;case 1:kt(t,e),qt(e),r&512&&n!==null&&Ss(n,n.return);break;case 5:if(kt(t,e),qt(e),r&512&&n!==null&&Ss(n,n.return),e.flags&32){var s=e.stateNode;try{Hi(s,"")}catch(v){Se(e,e.return,v)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&_0(s,i),od(l,o);var d=od(l,i);for(o=0;o<c.length;o+=2){var u=c[o],h=c[o+1];u==="style"?P0(s,h):u==="dangerouslySetInnerHTML"?N0(s,h):u==="children"?Hi(s,h):ju(s,u,h,d)}switch(l){case"input":td(s,i);break;case"textarea":k0(s,i);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?ks(s,!!i.multiple,f,!1):p!==!!i.multiple&&(i.defaultValue!=null?ks(s,!!i.multiple,i.defaultValue,!0):ks(s,!!i.multiple,i.multiple?[]:"",!1))}s[Zi]=i}catch(v){Se(e,e.return,v)}}break;case 6:if(kt(t,e),qt(e),r&4){if(e.stateNode===null)throw Error(T(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(v){Se(e,e.return,v)}}break;case 3:if(kt(t,e),qt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ki(t.containerInfo)}catch(v){Se(e,e.return,v)}break;case 4:kt(t,e),qt(e);break;case 13:kt(t,e),qt(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(oh=Ee())),r&4&&Zf(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(ze=(d=ze)||u,kt(t,e),ze=d):kt(t,e),qt(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&e.mode&1)for(U=e,u=e.child;u!==null;){for(h=U=u;U!==null;){switch(p=U,f=p.child,p.tag){case 0:case 11:case 14:case 15:Li(4,p,p.return);break;case 1:Ss(p,p.return);var x=p.stateNode;if(typeof x.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(v){Se(r,n,v)}}break;case 5:Ss(p,p.return);break;case 22:if(p.memoizedState!==null){tp(h);continue}}f!==null?(f.return=p,U=f):tp(h)}u=u.sibling}e:for(u=null,h=e;;){if(h.tag===5){if(u===null){u=h;try{s=h.stateNode,d?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=C0("display",o))}catch(v){Se(e,e.return,v)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(v){Se(e,e.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:kt(t,e),qt(e),r&4&&Zf(e);break;case 21:break;default:kt(t,e),qt(e)}}function qt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(t1(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Hi(s,""),r.flags&=-33);var i=Xf(e);Id(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Xf(e);Ld(e,l,o);break;default:throw Error(T(161))}}catch(c){Se(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yx(e,t,n){U=e,s1(e)}function s1(e,t,n){for(var r=(e.mode&1)!==0;U!==null;){var s=U,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||ia;if(!o){var l=s.alternate,c=l!==null&&l.memoizedState!==null||ze;l=ia;var d=ze;if(ia=o,(ze=c)&&!d)for(U=s;U!==null;)o=U,c=o.child,o.tag===22&&o.memoizedState!==null?np(s):c!==null?(c.return=o,U=c):np(s);for(;i!==null;)U=i,s1(i),i=i.sibling;U=s,ia=l,ze=d}ep(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,U=i):ep(e)}}function ep(e){for(;U!==null;){var t=U;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ze||Rl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ze)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:Ct(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Mf(t,i,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Mf(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&Ki(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}ze||t.flags&512&&Od(t)}catch(p){Se(t,t.return,p)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function tp(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function np(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Rl(4,t)}catch(c){Se(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(c){Se(t,s,c)}}var i=t.return;try{Od(t)}catch(c){Se(t,i,c)}break;case 5:var o=t.return;try{Od(t)}catch(c){Se(t,o,c)}}}catch(c){Se(t,t.return,c)}if(t===e){U=null;break}var l=t.sibling;if(l!==null){l.return=t.return,U=l;break}U=t.return}}var Qx=Math.ceil,sl=Sn.ReactCurrentDispatcher,sh=Sn.ReactCurrentOwner,bt=Sn.ReactCurrentBatchConfig,re=0,Ae=null,ke=null,Ie=0,ot=0,Es=ur(0),Pe=0,io=null,Br=0,Ol=0,ih=0,Ii=null,Ze=null,oh=0,Qs=1/0,an=null,il=!1,Dd=null,er=null,oa=!1,Gn=null,ol=0,Di=0,Md=null,Ta=-1,Aa=0;function Ke(){return re&6?Ee():Ta!==-1?Ta:Ta=Ee()}function tr(e){return e.mode&1?re&2&&Ie!==0?Ie&-Ie:Ox.transition!==null?(Aa===0&&(Aa=z0()),Aa):(e=oe,e!==0||(e=window.event,e=e===void 0?16:J0(e.type)),e):1}function Dt(e,t,n,r){if(50<Di)throw Di=0,Md=null,Error(T(185));Po(e,n,r),(!(re&2)||e!==Ae)&&(e===Ae&&(!(re&2)&&(Ol|=n),Pe===4&&Mn(e,Ie)),rt(e,r),n===1&&re===0&&!(t.mode&1)&&(Qs=Ee()+500,Pl&&hr()))}function rt(e,t){var n=e.callbackNode;O2(e,t);var r=qa(e,e===Ae?Ie:0);if(r===0)n!==null&&uf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&uf(n),t===1)e.tag===0?Rx(rp.bind(null,e)):pg(rp.bind(null,e)),Cx(function(){!(re&6)&&hr()}),n=null;else{switch(q0(r)){case 1:n=Au;break;case 4:n=U0;break;case 16:n=za;break;case 536870912:n=B0;break;default:n=za}n=h1(n,i1.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function i1(e,t){if(Ta=-1,Aa=0,re&6)throw Error(T(327));var n=e.callbackNode;if(Ts()&&e.callbackNode!==n)return null;var r=qa(e,e===Ae?Ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=al(e,r);else{t=r;var s=re;re|=2;var i=a1();(Ae!==e||Ie!==t)&&(an=null,Qs=Ee()+500,Ir(e,t));do try{eb();break}catch(l){o1(e,l)}while(!0);Wu(),sl.current=i,re=s,ke!==null?t=0:(Ae=null,Ie=0,t=Pe)}if(t!==0){if(t===2&&(s=ud(e),s!==0&&(r=s,t=Fd(e,s))),t===1)throw n=io,Ir(e,0),Mn(e,r),rt(e,Ee()),n;if(t===6)Mn(e,r);else{if(s=e.current.alternate,!(r&30)&&!Xx(s)&&(t=al(e,r),t===2&&(i=ud(e),i!==0&&(r=i,t=Fd(e,i))),t===1))throw n=io,Ir(e,0),Mn(e,r),rt(e,Ee()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:br(e,Ze,an);break;case 3:if(Mn(e,r),(r&130023424)===r&&(t=oh+500-Ee(),10<t)){if(qa(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Ke(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=xd(br.bind(null,e,Ze,an),t);break}br(e,Ze,an);break;case 4:if(Mn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-It(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Ee()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qx(r/1960))-r,10<r){e.timeoutHandle=xd(br.bind(null,e,Ze,an),r);break}br(e,Ze,an);break;case 5:br(e,Ze,an);break;default:throw Error(T(329))}}}return rt(e,Ee()),e.callbackNode===n?i1.bind(null,e):null}function Fd(e,t){var n=Ii;return e.current.memoizedState.isDehydrated&&(Ir(e,t).flags|=256),e=al(e,t),e!==2&&(t=Ze,Ze=n,t!==null&&Ud(t)),e}function Ud(e){Ze===null?Ze=e:Ze.push.apply(Ze,e)}function Xx(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 s=n[r],i=s.getSnapshot;s=s.value;try{if(!Mt(i(),s))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 Mn(e,t){for(t&=~ih,t&=~Ol,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-It(t),r=1<<n;e[n]=-1,t&=~r}}function rp(e){if(re&6)throw Error(T(327));Ts();var t=qa(e,0);if(!(t&1))return rt(e,Ee()),null;var n=al(e,t);if(e.tag!==0&&n===2){var r=ud(e);r!==0&&(t=r,n=Fd(e,r))}if(n===1)throw n=io,Ir(e,0),Mn(e,t),rt(e,Ee()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,br(e,Ze,an),rt(e,Ee()),null}function ah(e,t){var n=re;re|=1;try{return e(t)}finally{re=n,re===0&&(Qs=Ee()+500,Pl&&hr())}}function zr(e){Gn!==null&&Gn.tag===0&&!(re&6)&&Ts();var t=re;re|=1;var n=bt.transition,r=oe;try{if(bt.transition=null,oe=1,e)return e()}finally{oe=r,bt.transition=n,re=t,!(re&6)&&hr()}}function lh(){ot=Es.current,fe(Es)}function Ir(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Nx(n)),ke!==null)for(n=ke.return;n!==null;){var r=n;switch(zu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ka();break;case 3:Js(),fe(tt),fe(qe),Qu();break;case 5:Yu(r);break;case 4:Js();break;case 13:fe(ve);break;case 19:fe(ve);break;case 10:Vu(r.type._context);break;case 22:case 23:lh()}n=n.return}if(Ae=e,ke=e=nr(e.current,null),Ie=ot=t,Pe=0,io=null,ih=Ol=Br=0,Ze=Ii=null,kr!==null){for(t=0;t<kr.length;t++)if(n=kr[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}kr=null}return e}function o1(e,t){do{var n=ke;try{if(Wu(),Na.current=rl,nl){for(var r=ye.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}nl=!1}if(Ur=0,Te=Ne=ye=null,Oi=!1,no=0,sh.current=null,n===null||n.return===null){Pe=1,io=t,ke=null;break}e:{var i=e,o=n.return,l=n,c=t;if(t=Ie,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,u=l,h=u.tag;if(!(u.mode&1)&&(h===0||h===11||h===15)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Hf(o);if(f!==null){f.flags&=-257,Wf(f,o,l,i,t),f.mode&1&&qf(i,d,t),t=f,c=d;var x=t.updateQueue;if(x===null){var v=new Set;v.add(c),t.updateQueue=v}else x.add(c);break e}else{if(!(t&1)){qf(i,d,t),ch();break e}c=Error(T(426))}}else if(me&&l.mode&1){var b=Hf(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),Wf(b,o,l,i,t),qu(Ys(c,l));break e}}i=c=Ys(c,l),Pe!==4&&(Pe=2),Ii===null?Ii=[i]:Ii.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=qg(i,c,t);Df(i,g);break e;case 1:l=c;var m=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(er===null||!er.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var $=Hg(i,l,t);Df(i,$);break e}}i=i.return}while(i!==null)}c1(n)}catch(S){t=S,ke===n&&n!==null&&(ke=n=n.return);continue}break}while(!0)}function a1(){var e=sl.current;return sl.current=rl,e===null?rl:e}function ch(){(Pe===0||Pe===3||Pe===2)&&(Pe=4),Ae===null||!(Br&268435455)&&!(Ol&268435455)||Mn(Ae,Ie)}function al(e,t){var n=re;re|=2;var r=a1();(Ae!==e||Ie!==t)&&(an=null,Ir(e,t));do try{Zx();break}catch(s){o1(e,s)}while(!0);if(Wu(),re=n,sl.current=r,ke!==null)throw Error(T(261));return Ae=null,Ie=0,Pe}function Zx(){for(;ke!==null;)l1(ke)}function eb(){for(;ke!==null&&!_2();)l1(ke)}function l1(e){var t=u1(e.alternate,e,ot);e.memoizedProps=e.pendingProps,t===null?c1(e):ke=t,sh.current=null}function c1(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Gx(n,t),n!==null){n.flags&=32767,ke=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Pe=6,ke=null;return}}else if(n=Vx(n,t,ot),n!==null){ke=n;return}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);Pe===0&&(Pe=5)}function br(e,t,n){var r=oe,s=bt.transition;try{bt.transition=null,oe=1,tb(e,t,n,r)}finally{bt.transition=s,oe=r}return null}function tb(e,t,n,r){do Ts();while(Gn!==null);if(re&6)throw Error(T(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(L2(e,i),e===Ae&&(ke=Ae=null,Ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||oa||(oa=!0,h1(za,function(){return Ts(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=bt.transition,bt.transition=null;var o=oe;oe=1;var l=re;re|=4,sh.current=null,Jx(e,n),r1(n,e),wx(vd),Ha=!!gd,vd=gd=null,e.current=n,Yx(n),k2(),re=l,oe=o,bt.transition=i}else e.current=n;if(oa&&(oa=!1,Gn=e,ol=s),i=e.pendingLanes,i===0&&(er=null),C2(n.stateNode),rt(e,Ee()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(il)throw il=!1,e=Dd,Dd=null,e;return ol&1&&e.tag!==0&&Ts(),i=e.pendingLanes,i&1?e===Md?Di++:(Di=0,Md=e):Di=0,hr(),null}function Ts(){if(Gn!==null){var e=q0(ol),t=bt.transition,n=oe;try{if(bt.transition=null,oe=16>e?16:e,Gn===null)var r=!1;else{if(e=Gn,Gn=null,ol=0,re&6)throw Error(T(331));var s=re;for(re|=4,U=e.current;U!==null;){var i=U,o=i.child;if(U.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var d=l[c];for(U=d;U!==null;){var u=U;switch(u.tag){case 0:case 11:case 15:Li(8,u,i)}var h=u.child;if(h!==null)h.return=u,U=h;else for(;U!==null;){u=U;var p=u.sibling,f=u.return;if(e1(u),u===d){U=null;break}if(p!==null){p.return=f,U=p;break}U=f}}}var x=i.alternate;if(x!==null){var v=x.child;if(v!==null){x.child=null;do{var b=v.sibling;v.sibling=null,v=b}while(v!==null)}}U=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,U=o;else e:for(;U!==null;){if(i=U,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Li(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,U=g;break e}U=i.return}}var m=e.current;for(U=m;U!==null;){o=U;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,U=y;else e:for(o=m;U!==null;){if(l=U,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Rl(9,l)}}catch(S){Se(l,l.return,S)}if(l===o){U=null;break e}var $=l.sibling;if($!==null){$.return=l.return,U=$;break e}U=l.return}}if(re=s,hr(),Zt&&typeof Zt.onPostCommitFiberRoot=="function")try{Zt.onPostCommitFiberRoot(_l,e)}catch{}r=!0}return r}finally{oe=n,bt.transition=t}}return!1}function sp(e,t,n){t=Ys(n,t),t=qg(e,t,1),e=Zn(e,t,1),t=Ke(),e!==null&&(Po(e,1,t),rt(e,t))}function Se(e,t,n){if(e.tag===3)sp(e,e,n);else for(;t!==null;){if(t.tag===3){sp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(er===null||!er.has(r))){e=Ys(n,e),e=Hg(t,e,1),t=Zn(t,e,1),e=Ke(),t!==null&&(Po(t,1,e),rt(t,e));break}}t=t.return}}function nb(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ke(),e.pingedLanes|=e.suspendedLanes&n,Ae===e&&(Ie&n)===n&&(Pe===4||Pe===3&&(Ie&130023424)===Ie&&500>Ee()-oh?Ir(e,0):ih|=n),rt(e,t)}function d1(e,t){t===0&&(e.mode&1?(t=Yo,Yo<<=1,!(Yo&130023424)&&(Yo=4194304)):t=1);var n=Ke();e=yn(e,t),e!==null&&(Po(e,t,n),rt(e,n))}function rb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),d1(e,n)}function sb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),d1(e,n)}var u1;u1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tt.current)et=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return et=!1,Wx(e,t,n);et=!!(e.flags&131072)}else et=!1,me&&t.flags&1048576&&mg(t,Qa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Pa(e,t),e=t.pendingProps;var s=Vs(t,qe.current);Ps(t,n),s=Zu(null,t,r,e,s,n);var i=eh();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,nt(r)?(i=!0,Ja(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Ku(t),s.updater=Al,t.stateNode=s,s._reactInternals=t,kd(t,r,e,n),t=Cd(null,t,r,!0,i,n)):(t.tag=0,me&&i&&Bu(t),Ve(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Pa(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=ob(r),e=Ct(r,e),s){case 0:t=Nd(null,t,r,e,n);break e;case 1:t=Kf(null,t,r,e,n);break e;case 11:t=Vf(null,t,r,e,n);break e;case 14:t=Gf(null,t,r,Ct(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ct(r,s),Nd(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ct(r,s),Kf(e,t,r,s,n);case 3:e:{if(Kg(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,s=i.element,wg(e,t),el(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Ys(Error(T(423)),t),t=Jf(e,t,r,n,s);break e}else if(r!==s){s=Ys(Error(T(424)),t),t=Jf(e,t,r,n,s);break e}else for(ct=Xn(t.stateNode.containerInfo.firstChild),dt=t,me=!0,Lt=null,n=xg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gs(),r===s){t=xn(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return $g(t),e===null&&Sd(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,yd(r,s)?o=null:i!==null&&yd(r,i)&&(t.flags|=32),Gg(e,t),Ve(e,t,o,n),t.child;case 6:return e===null&&Sd(t),null;case 13:return Jg(e,t,n);case 4:return Ju(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ks(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ct(r,s),Vf(e,t,r,s,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,ce(Xa,r._currentValue),r._currentValue=o,i!==null)if(Mt(i.value,o)){if(i.children===s.children&&!tt.current){t=xn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=mn(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Ed(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(T(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Ed(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ve(e,t,s.children,n),t=t.child}return t;
vendor: 5,659 bytes, line 40
40case 9:return s=t.type,r=t.pendingProps.children,Ps(t,n),s=wt(s),r=r(s),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,s=Ct(r,t.pendingProps),s=Ct(r.type,s),Gf(e,t,r,s,n);case 15:return Wg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:Ct(r,s),Pa(e,t),t.tag=1,nt(r)?(e=!0,Ja(t)):e=!1,Ps(t,n),zg(t,r,s),kd(t,r,s,n),Cd(null,t,r,!0,e,n);case 19:return Yg(e,t,n);case 22:return Vg(e,t,n)}throw Error(T(156,t.tag))};function h1(e,t){return F0(e,t)}function ib(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 xt(e,t,n,r){return new ib(e,t,n,r)}function dh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ob(e){if(typeof e=="function")return dh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Cu)return 11;if(e===Pu)return 14}return 2}function nr(e,t){var n=e.alternate;return n===null?(n=xt(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 Ra(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")dh(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ps:return Dr(n.children,s,i,t);case Nu:o=8,s|=8;break;case Yc:return e=xt(12,n,t,s|2),e.elementType=Yc,e.lanes=i,e;case Qc:return e=xt(13,n,t,s),e.elementType=Qc,e.lanes=i,e;case Xc:return e=xt(19,n,t,s),e.elementType=Xc,e.lanes=i,e;case $0:return Ll(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case b0:o=10;break e;case w0:o=9;break e;case Cu:o=11;break e;case Pu:o=14;break e;case Ln:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=xt(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Dr(e,t,n,r){return e=xt(7,e,r,t),e.lanes=n,e}function Ll(e,t,n,r){return e=xt(22,e,r,t),e.elementType=$0,e.lanes=n,e.stateNode={isHidden:!1},e}function Ac(e,t,n){return e=xt(6,e,null,t),e.lanes=n,e}function Rc(e,t,n){return t=xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ab(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fc(0),this.expirationTimes=fc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fc(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function uh(e,t,n,r,s,i,o,l,c){return e=new ab(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=xt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ku(i),e}function lb(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:fs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function f1(e){if(!e)return ir;e=e._reactInternals;e:{if(Wr(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(nt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(nt(n))return fg(e,n,t)}return t}function p1(e,t,n,r,s,i,o,l,c){return e=uh(n,r,!0,e,s,i,o,l,c),e.context=f1(null),n=e.current,r=Ke(),s=tr(n),i=mn(r,s),i.callback=t??null,Zn(n,i,s),e.current.lanes=s,Po(e,s,r),rt(e,r),e}function Il(e,t,n,r){var s=t.current,i=Ke(),o=tr(s);return n=f1(n),t.context===null?t.context=n:t.pendingContext=n,t=mn(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Zn(s,t,o),e!==null&&(Dt(e,s,o,i),ja(e,s,o)),o}function ll(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 ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hh(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function cb(){return null}var m1=typeof reportError=="function"?reportError:function(e){console.error(e)};function fh(e){this._internalRoot=e}Dl.prototype.render=fh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Il(e,t,null,null)};Dl.prototype.unmount=fh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zr(function(){Il(null,e,null,null)}),t[vn]=null}};function Dl(e){this._internalRoot=e}Dl.prototype.unstable_scheduleHydration=function(e){if(e){var t=V0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dn.length&&t!==0&&t<Dn[n].priority;n++);Dn.splice(n,0,e),n===0&&K0(e)}};function ph(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ml(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function op(){}
40function db(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var d=ll(o);i.call(d)}}var o=p1(t,r,e,0,null,!1,!1,"",op);return e._reactRootContainer=o,e[vn]=o.current,Qi(e.nodeType===8?e.parentNode:e),zr(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var d=ll(c);l.call(d)}}var c=uh(e,0,!1,null,null,!1,!1,"",op);return e._reactRootContainer=c,e[vn]=c.current,Qi(e.nodeType===8?e.parentNode:e),zr(function(){Il(t,c,n,r)}),c}function Fl(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var c=ll(o);l.call(c)}}Il(t,o,e,s)}else o=db(n,t,e,s,r);return ll(o)}H0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=_i(t.pendingLanes);n!==0&&(Ru(t,n|1),rt(t,Ee()),!(re&6)&&(Qs=Ee()+500,hr()))}break;case 13:zr(function(){var r=yn(e,1);if(r!==null){var s=Ke();Dt(r,e,1,s)}}),hh(e,1)}};Ou=function(e){if(e.tag===13){var t=yn(e,134217728);if(t!==null){var n=Ke();Dt(t,e,134217728,n)}hh(e,134217728)}};W0=function(e){if(e.tag===13){var t=tr(e),n=yn(e,t);if(n!==null){var r=Ke();Dt(n,e,t,r)}hh(e,t)}};V0=function(){return oe};G0=function(e,t){var n=oe;try{return oe=e,t()}finally{oe=n}};ld=function(e,t,n){switch(t){case"input":if(td(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 s=Cl(r);if(!s)throw Error(T(90));E0(r),td(r,s)}}}break;case"textarea":k0(e,n);break;case"select":t=n.value,t!=null&&ks(e,!!n.multiple,t,!1)}};R0=ah;O0=zr;var ub={usingClientEntryPoint:!1,Events:[Ao,ys,Cl,T0,A0,ah]},yi={findFiberByHostInstance:_r,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hb={bundleType:yi.bundleType,version:yi.version,rendererPackageName:yi.rendererPackageName,rendererConfig:yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Sn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=D0(e),e===null?null:e.stateNode},findFiberByHostInstance:yi.findFiberByHostInstance||cb,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 aa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!aa.isDisabled&&aa.supportsFiber)try{_l=aa.inject(hb),Zt=aa}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ub;ft.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ph(t))throw Error(T(200));return lb(e,t,null,n)};ft.createRoot=function(e,t){if(!ph(e))throw Error(T(299));var n=!1,r="",s=m1;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=uh(e,1,!1,null,null,n,!1,r,s),e[vn]=t.current,Qi(e.nodeType===8?e.parentNode:e),new fh(t)};ft.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(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=D0(t),e=e===null?null:e.stateNode,e};ft.flushSync=function(e){return zr(e)};ft.hydrate=function(e,t,n){if(!Ml(t))throw Error(T(200));return Fl(null,e,t,!0,n)};ft.hydrateRoot=function(e,t,n){if(!ph(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=m1;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=p1(t,null,e,1,n??null,s,!1,i,o),e[vn]=t.current,Qi(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Dl(t)};ft.render=function(e,t,n){if(!Ml(t))throw Error(T(200));return Fl(null,e,t,!1,n)};ft.unmountComponentAtNode=function(e){if(!Ml(e))throw Error(T(40));return e._reactRootContainer?(zr(function(){Fl(null,null,e,!1,function(){e._reactRootContainer=null,e[vn]=null})}),!0):!1};ft.unstable_batchedUpdates=ah;ft.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ml(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return Fl(e,t,n,!1,r)};ft.version="18.3.1-next-f1338f8080-20240426";function g1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(g1)}catch(e){console.error(e)}}g1(),g0.exports=ft;var Oo=g0.exports;const v1=r0(Oo);var y1,ap=Oo;y1=ap.createRoot,ap.hydrateRoot;var Ul=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Bl=typeof window>"u"||"Deno"in globalThis;function Pt(){}function fb(e,t){return typeof e=="function"?e(t):e}function pb(e){return typeof e=="number"&&e>=0&&e!==1/0}function mb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Bd(e,t){return typeof e=="function"?e(t):e}function gb(e,t){return typeof e=="function"?e(t):e}function lp(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==mh(o,t.options))return!1}else if(!ao(t.queryKey,o))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||i&&!i(t))}function cp(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(oo(t.options.mutationKey)!==oo(i))return!1}else if(!ao(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function mh(e,t){return((t==null?void 0:t.queryKeyHashFn)||oo)(e)}function oo(e){return JSON.stringify(e,(t,n)=>zd(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function ao(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ao(e[n],t[n])):!1}function x1(e,t){if(e===t)return e;const n=dp(e)&&dp(t);if(n||zd(e)&&zd(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),o=i.length,l=n?[]:{},c=new Set(r);let d=0;for(let u=0;u<o;u++){const h=n?u:i[u];(!n&&c.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(l[h]=void 0,d++):(l[h]=x1(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&d++)}return s===o&&d===s?e:l}return t}function dp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zd(e){if(!up(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!up(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function up(e){return Object.prototype.toString.call(e)==="[object Object]"}function vb(e){return new Promise(t=>{setTimeout(t,e)})}function yb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?x1(e,t):t}function xb(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function bb(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var gh=Symbol();function b1(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===gh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Pr,Bn,Ds,Jm,wb=(Jm=class extends Ul{constructor(){super();se(this,Pr);se(this,Bn);se(this,Ds);X(this,Ds,t=>{if(!Bl&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){j(this,Bn)||this.setEventListener(j(this,Ds))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,Bn))==null||t.call(this),X(this,Bn,void 0))}setEventListener(t){var n;X(this,Ds,t),(n=j(this,Bn))==null||n.call(this),X(this,Bn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){j(this,Pr)!==t&&(X(this,Pr,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,912 bytes, line 40
40this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof j(this,Pr)=="boolean"?j(this,Pr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Pr=new WeakMap,Bn=new WeakMap,Ds=new WeakMap,Jm),w1=new wb,Ms,zn,Fs,Ym,$b=(Ym=class extends Ul{constructor(){super();se(this,Ms,!0);se(this,zn);se(this,Fs);X(this,Fs,t=>{if(!Bl&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){j(this,zn)||this.setEventListener(j(this,Fs))}onUnsubscribe(){var t;this.hasListeners()||((t=j(this,zn))==null||t.call(this),X(this,zn,void 0))}setEventListener(t){var n;X(this,Fs,t),(n=j(this,zn))==null||n.call(this),X(this,zn,t(this.setOnline.bind(this)))}setOnline(t){j(this,Ms)!==t&&(X(this,Ms,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return j(this,Ms)}},Ms=new WeakMap,zn=new WeakMap,Fs=new WeakMap,Ym),cl=new $b;function Sb(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function Eb(e){return Math.min(1e3*2**e,3e4)}function $1(e){return(e??"online")==="online"?cl.isOnline():!0}var S1=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Oc(e){return e instanceof S1}function E1(e){let t=!1,n=0,r=!1,s;const i=Sb(),o=v=>{var b;r||(p(new S1(v)),(b=e.abort)==null||b.call(e))},l=()=>{t=!0},c=()=>{t=!1},d=()=>w1.isFocused()&&(e.networkMode==="always"||cl.isOnline())&&e.canRun(),u=()=>$1(e.networkMode)&&e.canRun(),h=v=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,v),s==null||s(),i.resolve(v))},p=v=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,v),s==null||s(),i.reject(v))},f=()=>new Promise(v=>{var b;s=g=>{(r||d())&&v(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var v;s=void 0,r||(v=e.onContinue)==null||v.call(e)}),x=()=>{if(r)return;let v;const b=n===0?e.initialPromise:void 0;try{v=b??e.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(h).catch(g=>{var E;if(r)return;const m=e.retry??(Bl?0:3),y=e.retryDelay??Eb,$=typeof y=="function"?y(n,g):y,S=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,g);if(t||!S){p(g);return}n++,(E=e.onFail)==null||E.call(e,n,g),vb($).then(()=>d()?void 0:f()).then(()=>{t?p(g):x()})})};return{promise:i,cancel:o,continue:()=>(s==null||s(),i),cancelRetry:l,continueRetry:c,canStart:u,start:()=>(u()?x():f().then(x),i)}}var _b=e=>setTimeout(e,0);function kb(){let e=[],t=0,n=l=>{l()},r=l=>{l()},s=_b;const i=l=>{t?e.push(l):s(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&s(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||o()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var Ge=kb(),Tr,Qm,_1=(Qm=class{constructor(){se(this,Tr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pb(this.gcTime)&&X(this,Tr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Bl?1/0:5*60*1e3))}clearGcTimeout(){j(this,Tr)&&(clearTimeout(j(this,Tr)),X(this,Tr,void 0))}},Tr=new WeakMap,Qm),Us,Ar,gt,Rr,Be,jo,Or,At,on,Xm,jb=(Xm=class extends _1{constructor(t){super();se(this,At);se(this,Us);se(this,Ar);se(this,gt);se(this,Rr);se(this,Be);se(this,jo);se(this,Or);X(this,Or,!1),X(this,jo,t.defaultOptions),this.setOptions(t.options),this.observers=[],X(this,Rr,t.client),X(this,gt,j(this,Rr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,X(this,Us,Cb(this.options)),this.state=t.state??j(this,Us),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=j(this,Be))==null?void 0:t.promise}setOptions(t){this.options={...j(this,jo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&j(this,gt).remove(this)}setData(t,n){const r=yb(this.state.data,t,this.options);return Me(this,At,on).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Me(this,At,on).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=j(this,Be))==null?void 0:r.promise;return(s=j(this,Be))==null||s.cancel(t),n?n.then(Pt).catch(Pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(j(this,Us))}isActive(){return this.observers.some(t=>gb(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gh||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 40
40Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Bd(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!mb(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,Be))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=j(this,Be))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),j(this,gt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(j(this,Be)&&(j(this,Or)?j(this,Be).cancel({revert:!0}):j(this,Be).cancelRetry()),this.scheduleGc()),j(this,gt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Me(this,At,on).call(this,{type:"invalidate"})}
vendor: 14,124 bytes, line 40
40fetch(t,n){var d,u,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(j(this,Be))return j(this,Be).continueRetry(),j(this,Be).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,s=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(X(this,Or,!0),r.signal)})},i=()=>{const p=b1(this.options,n),x=(()=>{const v={client:j(this,Rr),queryKey:this.queryKey,meta:this.meta};return s(v),v})();return X(this,Or,!1),this.options.persister?this.options.persister(p,x,this):p(x)},l=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:j(this,Rr),state:this.state,fetchFn:i};return s(p),p})();(d=this.options.behavior)==null||d.onFetch(l,this),X(this,Ar,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=l.fetchOptions)==null?void 0:u.meta))&&Me(this,At,on).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const c=p=>{var f,x,v,b;Oc(p)&&p.silent||Me(this,At,on).call(this,{type:"error",error:p}),Oc(p)||((x=(f=j(this,gt).config).onError)==null||x.call(f,p,this),(b=(v=j(this,gt).config).onSettled)==null||b.call(v,this.state.data,p,this)),this.scheduleGc()};return X(this,Be,E1({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var f,x,v,b;if(p===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(g){c(g);return}(x=(f=j(this,gt).config).onSuccess)==null||x.call(f,p,this),(b=(v=j(this,gt).config).onSettled)==null||b.call(v,p,this.state.error,this),this.scheduleGc()},onError:c,onFail:(p,f)=>{Me(this,At,on).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{Me(this,At,on).call(this,{type:"pause"})},onContinue:()=>{Me(this,At,on).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),j(this,Be).start()}},Us=new WeakMap,Ar=new WeakMap,gt=new WeakMap,Rr=new WeakMap,Be=new WeakMap,jo=new WeakMap,Or=new WeakMap,At=new WeakSet,on=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Nb(r.data,this.options),fetchMeta:t.meta??null};case"success":return X(this,Ar,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return Oc(s)&&s.revert&&j(this,Ar)?{...j(this,Ar),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ge.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),j(this,gt).notify({query:this,type:"updated",action:t})})},Xm);function Nb(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$1(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Cb(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Gt,Zm,Pb=(Zm=class extends Ul{constructor(t={}){super();se(this,Gt);this.config=t,X(this,Gt,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??mh(s,n);let o=this.get(i);return o||(o=new jb({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(o)),o}add(t){j(this,Gt).has(t.queryHash)||(j(this,Gt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=j(this,Gt).get(t.queryHash);n&&(t.destroy(),n===t&&j(this,Gt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ge.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return j(this,Gt).get(t)}getAll(){return[...j(this,Gt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>lp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>lp(t,r)):n}notify(t){Ge.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ge.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ge.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Gt=new WeakMap,Zm),Kt,We,Lr,Jt,On,e0,Tb=(e0=class extends _1{constructor(t){super();se(this,Jt);se(this,Kt);se(this,We);se(this,Lr);this.mutationId=t.mutationId,X(this,We,t.mutationCache),X(this,Kt,[]),this.state=t.state||Ab(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){j(this,Kt).includes(t)||(j(this,Kt).push(t),this.clearGcTimeout(),j(this,We).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){X(this,Kt,j(this,Kt).filter(n=>n!==t)),this.scheduleGc(),j(this,We).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){j(this,Kt).length||(this.state.status==="pending"?this.scheduleGc():j(this,We).remove(this))}continue(){var t;return((t=j(this,Lr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,l,c,d,u,h,p,f,x,v,b,g,m,y,$,S,E,_,P;const n=()=>{Me(this,Jt,On).call(this,{type:"continue"})};X(this,Lr,E1({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,O)=>{Me(this,Jt,On).call(this,{type:"failed",failureCount:A,error:O})},onPause:()=>{Me(this,Jt,On).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>j(this,We).canRun(this)}));const r=this.state.status==="pending",s=!j(this,Lr).canStart();try{if(r)n();else{Me(this,Jt,On).call(this,{type:"pending",variables:t,isPaused:s}),await((o=(i=j(this,We).config).onMutate)==null?void 0:o.call(i,t,this));const O=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));O!==this.state.context&&Me(this,Jt,On).call(this,{type:"pending",context:O,variables:t,isPaused:s})}const A=await j(this,Lr).start();return await((u=(d=j(this,We).config).onSuccess)==null?void 0:u.call(d,A,t,this.state.context,this)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,A,t,this.state.context)),await((x=(f=j(this,We).config).onSettled)==null?void 0:x.call(f,A,null,this.state.variables,this.state.context,this)),await((b=(v=this.options).onSettled)==null?void 0:b.call(v,A,null,t,this.state.context)),Me(this,Jt,On).call(this,{type:"success",data:A}),A}catch(A){try{throw await((m=(g=j(this,We).config).onError)==null?void 0:m.call(g,A,t,this.state.context,this)),await(($=(y=this.options).onError)==null?void 0:$.call(y,A,t,this.state.context)),await((E=(S=j(this,We).config).onSettled)==null?void 0:E.call(S,void 0,A,this.state.variables,this.state.context,this)),await((P=(_=this.options).onSettled)==null?void 0:P.call(_,void 0,A,t,this.state.context)),A}finally{Me(this,Jt,On).call(this,{type:"error",error:A})}}finally{j(this,We).runNext(this)}}},Kt=new WeakMap,We=new WeakMap,Lr=new WeakMap,Jt=new WeakSet,On=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ge.batch(()=>{j(this,Kt).forEach(r=>{r.onMutationUpdate(t)}),j(this,We).notify({mutation:this,type:"updated",action:t})})},e0);function Ab(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hn,Rt,No,t0,Rb=(t0=class extends Ul{constructor(t={}){super();se(this,hn);se(this,Rt);se(this,No);this.config=t,X(this,hn,new Set),X(this,Rt,new Map),X(this,No,0)}build(t,n,r){const s=new Tb({mutationCache:this,mutationId:++Ho(this,No)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){j(this,hn).add(t);const n=la(t);if(typeof n=="string"){const r=j(this,Rt).get(n);r?r.push(t):j(this,Rt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(j(this,hn).delete(t)){const n=la(t);if(typeof n=="string"){const r=j(this,Rt).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&j(this,Rt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=la(t);if(typeof n=="string"){const r=j(this,Rt).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=la(t);if(typeof n=="string"){const s=(r=j(this,Rt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ge.batch(()=>{j(this,hn).forEach(t=>{this.notify({type:"removed",mutation:t})}),j(this,hn).clear(),j(this,Rt).clear()})}getAll(){return Array.from(j(this,hn))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>cp(n,r))}findAll(t={}){return this.getAll().filter(n=>cp(t,n))}notify(t){Ge.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ge.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pt))))}},hn=new WeakMap,Rt=new WeakMap,No=new WeakMap,t0);function la(e){var t;return(t=e.options.scope)==null?void 0:t.id}function hp(e){return{onFetch:(t,n)=>{var u,h,p,f,x;const r=t.options,s=(p=(h=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:h.fetchMore)==null?void 0:p.direction,i=((f=t.state.data)==null?void 0:f.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let v=!1;const b=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},g=b1(t.options,t.fetchOptions),m=async(y,$,S)=>{if(v)return Promise.reject();if($==null&&y.pages.length)return Promise.resolve(y);const _=(()=>{const W={client:t.client,queryKey:t.queryKey,pageParam:$,direction:S?"backward":"forward",meta:t.options.meta};return b(W),W})(),P=await g(_),{maxPages:A}=t.options,O=S?bb:xb;return{pages:O(y.pages,P,A),pageParams:O(y.pageParams,$,A)}};if(s&&i.length){const y=s==="backward",$=y?Ob:fp,S={pages:i,pageParams:o},E=$(r,S);l=await m(S,E,y)}else{const y=e??i.length;do{const $=c===0?o[0]??r.initialPageParam:fp(r,l);if(c>0&&$==null)break;l=await m(l,$),c++}while(c<y)}return l};t.options.persister?t.fetchFn=()=>{var v,b;return(b=(v=t.options).persister)==null?void 0:b.call(v,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function fp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ob(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var we,qn,Hn,Bs,zs,Wn,qs,Hs,n0,Lb=(n0=class{constructor(e={}){se(this,we);se(this,qn);se(this,Hn);se(this,Bs);se(this,zs);se(this,Wn);se(this,qs);se(this,Hs);X(this,we,e.queryCache||new Pb),X(this,qn,e.mutationCache||new Rb),X(this,Hn,e.defaultOptions||{}),X(this,Bs,new Map),X(this,zs,new Map),X(this,Wn,0)}mount(){Ho(this,Wn)._++,j(this,Wn)===1&&(X(this,qs,w1.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,we).onFocus())})),X(this,Hs,cl.subscribe(async e=>{e&&(await this.resumePausedMutations(),j(this,we).onOnline())})))}unmount(){var e,t;Ho(this,Wn)._--,j(this,Wn)===0&&((e=j(this,qs))==null||e.call(this),X(this,qs,void 0),(t=j(this,Hs))==null||t.call(this),X(this,Hs,void 0))}isFetching(e){return j(this,we).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return j(this,qn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,we).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=j(this,we).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Bd(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return j(this,we).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=j(this,we).get(r.queryHash),i=s==null?void 0:s.state.data,o=fb(t,i);if(o!==void 0)return j(this,we).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ge.batch(()=>j(this,we).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=j(this,we).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=j(this,we);Ge.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=j(this,we);return Ge.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ge.batch(()=>j(this,we).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Pt).catch(Pt)}invalidateQueries(e,t={}){return Ge.batch(()=>(j(this,we).findAll(e).forEach(n=>
40{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ge.batch(()=>j(this,we).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Pt)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=j(this,we).build(this,t);return n.isStaleByTime(Bd(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pt).catch(Pt)}fetchInfiniteQuery(e){return e.behavior=hp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pt).catch(Pt)}ensureInfiniteQueryData(e){return e.behavior=hp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return cl.isOnline()?j(this,qn).resumePausedMutations():Promise.resolve()}getQueryCache(){return j(this,we)}getMutationCache(){return j(this,qn)}getDefaultOptions(){return j(this,Hn)}setDefaultOptions(e){X(this,Hn,e)}setQueryDefaults(e,t){j(this,Bs).set(oo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...j(this,Bs).values()],n={};return t.forEach(r=>{ao(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){j(this,zs).set(oo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...j(this,zs).values()],n={};return t.forEach(r=>{ao(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...j(this,Hn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mh(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===gh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...j(this,Hn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){j(this,we).clear(),j(this,qn).clear()}},we=new WeakMap,qn=new WeakMap,Hn=new WeakMap,Bs=new WeakMap,zs=new WeakMap,Wn=new WeakMap,qs=new WeakMap,Hs=new WeakMap,n0),Ib=w.createContext(void 0),Db=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),a.jsx(Ib.Provider,{value:e,children:t}));/** 41 * @remix-run/router v1.23.0 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */function lo(){return lo=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},lo.apply(this,arguments)}var Kn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Kn||(Kn={}));const pp="popstate";function Mb(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:o,hash:l}=r.location;return qd("",{pathname:i,search:o,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:dl(s)}return Ub(t,n,null,e)}function je(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function k1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Fb(){return Math.random().toString(36).substr(2,8)}function mp(e,t){return{usr:e.state,key:e.key,idx:t}}function qd(e,t,n,r){return n===void 0&&(n=null),lo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?si(t):t,{state:n,key:t&&t.key||r||Fb()})}function dl(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 si(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:s=document.defaultView,v5Compat:i=!1}=r,o=s.history,l=Kn.Pop,c=null,d=u();d==null&&(d=0,o.replaceState(lo({},o.state,{idx:d}),""));function u(){return(o.state||{idx:null}).idx}function h(){l=Kn.Pop;let b=u(),g=b==null?null:b-d;d=b,c&&c({action:l,location:v.location,delta:g})}function p(b,g){l=Kn.Push;let m=qd(v.location,b,g);d=u()+1;let y=mp(m,d),$=v.createHref(m);try{o.pushState(y,"",$)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign($)}i&&c&&c({action:l,location:v.location,delta:1})}function f(b,g){l=Kn.Replace;let m=qd(v.location,b,g);d=u();let y=mp(m,d),$=v.createHref(m);o.replaceState(y,"",$),i&&c&&c({action:l,location:v.location,delta:0})}function x(b){let g=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof b=="string"?b:dl(b);return m=m.replace(/ $/,"%20"),je(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let v={get action(){return l},get location(){return e(s,o)},listen(b){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(pp,h),c=b,()=>{s.removeEventListener(pp,h),c=null}},createHref(b){return t(s,b)},createURL:x,encodeLocation(b){let g=x(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:f,go(b){return o.go(b)}};return v}var gp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(gp||(gp={}));function Bb(e,t,n){return n===void 0&&(n="/"),zb(e,t,n,!1)}function zb(e,t,n,r){let s=typeof t=="string"?si(t):t,i=vh(s.pathname||"/",n);if(i==null)return null;let o=j1(e);qb(o);let l=null;for(let c=0;l==null&&c<o.length;++c){let d=e3(i);l=Xb(o[c],d,r)}return l}function j1(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,o,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};c.relativePath.startsWith("/")&&(je(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not val
49id. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=rr([r,c.relativePath]),u=n.concat(c);i.children&&i.children.length>0&&(je(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),j1(i.children,t,u,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:Yb(d,i.index),routesMeta:u})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,o);else for(let c of N1(i.path))s(i,o,c)}),t}function N1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let o=N1(r.join("/")),l=[];return l.push(...o.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...o),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function qb(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Qb(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Hb=/^:[\w-]+$/,Wb=3,Vb=2,Gb=1,Kb=10,Jb=-2,vp=e=>e==="*";function Yb(e,t){let n=e.split("/"),r=n.length;return n.some(vp)&&(r+=Jb),t&&(r+=Vb),n.filter(s=>!vp(s)).reduce((s,i)=>s+(Hb.test(i)?Wb:i===""?Gb:Kb),r)}function Qb(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function Xb(e,t,n){let{routesMeta:r}=e,s={},i="/",o=[];for(let l=0;l<r.length;++l){let c=r[l],d=l===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",h=yp({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},u),p=c.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=yp({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!h)return null;
vendor: 13,850 bytes, lines 49-67
49Object.assign(s,h.params),o.push({params:s,pathname:rr([i,h.pathname]),pathnameBase:s3(rr([i,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(i=rr([i,h.pathnameBase]))}return o}function yp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Zb(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],o=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((d,u,h)=>{let{paramName:p,isOptional:f}=u;if(p==="*"){let v=l[h]||"";o=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const x=l[h];return f&&!x?d[p]=void 0:d[p]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:o,pattern:e}}function Zb(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),k1(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=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function e3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return k1(!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 vh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function t3(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?si(e):e;return{pathname:n?n.startsWith("/")?n:n3(n,t):t,search:i3(r),hash:o3(s)}}function n3(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function Lc(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 r3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function C1(e,t){let n=r3(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function P1(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=si(e):(s=lo({},e),je(!s.pathname||!s.pathname.includes("?"),Lc("?","pathname","search",s)),je(!s.pathname||!s.pathname.includes("#"),Lc("#","pathname","hash",s)),je(!s.search||!s.search.includes("#"),Lc("#","search","hash",s)));let i=e===""||s.pathname==="",o=i?"/":s.pathname,l;if(o==null)l=n;else{let h=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),h-=1;s.pathname=p.join("/")}l=h>=0?t[h]:"/"}let c=t3(s,l),d=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||u)&&(c.pathname+="/"),c}const rr=e=>e.join("/").replace(/\/\/+/g,"/"),s3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),i3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,o3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function a3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const T1=["post","put","patch","delete"];new Set(T1);const l3=["get",...T1];new Set(l3);/** 50 * React Router v6.30.1 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function co(){return co=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},co.apply(this,arguments)}const yh=w.createContext(null),c3=w.createContext(null),Vr=w.createContext(null),zl=w.createContext(null),Gr=w.createContext({outlet:null,matches:[],isDataRoute:!1}),A1=w.createContext(null);function d3(e,t){let{relative:n}=t===void 0?{}:t;Lo()||je(!1);let{basename:r,navigator:s}=w.useContext(Vr),{hash:i,pathname:o,search:l}=O1(e,{relative:n}),c=o;return r!=="/"&&(c=o==="/"?r:rr([r,o])),s.createHref({pathname:c,search:l,hash:i})}function Lo(){return w.useContext(zl)!=null}function fr(){return Lo()||je(!1),w.useContext(zl).location}function R1(e){w.useContext(Vr).static||w.useLayoutEffect(e)}function xh(){let{isDataRoute:e}=w.useContext(Gr);return e?S3():u3()}function u3(){Lo()||je(!1);let e=w.useContext(yh),{basename:t,future:n,navigator:r}=w.useContext(Vr),{matches:s}=w.useContext(Gr),{pathname:i}=fr(),o=JSON.stringify(C1(s,n.v7_relativeSplatPath)),l=w.useRef(!1);return R1(()=>{l.current=!0}),w.useCallback(function(d,u){if(u===void 0&&(u={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let h=P1(d,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:rr([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,o,i,e])}function O1(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(Vr),{matches:s}=w.useContext(Gr),{pathname:i}=fr(),o=JSON.stringify(C1(s,r.v7_relativeSplatPath));return w.useMemo(()=>P1(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function h3(e,t){return f3(e,t)}function f3(e,t,n,r){Lo()||je(!1);let{navigator:s}=w.useContext(Vr),{matches:i}=w.useContext(Gr),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let d=fr(),u;if(t){var h;let b=typeof t=="string"?si(t):t;c==="/"||(h=b.pathname)!=null&&h.startsWith(c)||je(!1),u=b}else u=d;let p=u.pathname||"/",f=p;if(c!=="/"){let b=c.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(b.length).join("/")}let x=Bb(e,{pathname:f}),v=y3(x&&x.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:rr([c,s.encodeLocation?s.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?c:rr([c,s.encodeLocation?s.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&v?w.createElement(zl.Provider,{value:{location:co({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Kn.Pop}},v):v}function p3(){let e=$3(),t=a3(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:s},n):null,null)}const m3=w.createElement(p3,null);class g3 extends w.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?w.createElement(Gr.Provider,{value:this.props.routeContext},w.createElement(A1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function v3(e){let{routeContext:t,match:n,children:r}=e,s=w.useContext(yh);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(Gr.Provider,{value:t},r)}function y3(e,t,n,r){var s;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 o=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let u=o.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);u>=0||je(!1),o=o.slice(0,Math.min(o.length,u+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let h=o[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=u),h.route.id){let{loaderData:p,errors:f}=n,x=h.route.loader&&p[h.route.id]===void 0&&(!f||f[h.route.id]===void 0);if(h.route.lazy||x){c=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((u,h,p)=>{let f,x=!1,v=null,b=null;n&&(f=l&&h.route.id?l[h.route.id]:void 0,v=h.route.errorElement||m3,c&&(d<0&&p===0?(x=!0,b=null):d===p&&(x=!0,b=h.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,p+1)),m=()=>{let y;return f?y=v:x?y=b:h.route.Component?y=w.createElement(h.route.Component,null):h.route.element?y=h.route.element:y=u,w.createElement(v3,{match:h,routeContext:{outlet:u,matches:g,isDataRoute:n!=null},children:y})};return n&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?w.createElement(g3,{location:n.location,revalidation:n.revalidation,component:v,error:f,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var L1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(L1||{}),ul=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}(ul||{});function x3(e){let t=w.useContext(yh);return t||je(!1),t}function b3(e){let t=w.useContext(c3);return t||je(!1),t}function w3(e){let t=w.useContext(Gr);return t||je(!1),t}function I1(e){let t=w3(),n=t.matches[t.matches.length-1];return n.route.id||je(!1),n.route.id}function $3(){var e;let t=w.useContext(A1),n=b3(ul.UseRouteError),r=I1(ul.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function S3(){let{router:e}=x3(L1.UseNavigateStable),t=I1(ul.UseNavigateStable),n=w.useRef(!1);return R1(()=>{n.current=!0}),w.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,co({fromRouteId:t},i)))},[e,t])}function E3(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function wr(e){je(!1)}function _3(e){let{basename:t="/",children:n=null,location:r,navigationType:s=Kn.Pop,navigator:i,static:o=!1,future:l}=e;Lo()&&je(!1);let c=t.replace(/^\/*/,"/"),d=w.useMemo(()=>({basename:c,navigator:i,static:o,future:co({v7_relativeSplatPath:!1},l)}),[c,l,i,o]);typeof r=="string"&&(r=si(r));let{pathname:u="/",search:h="",hash:p="",state:f=null,key:x="default"}=r,v=w.useMemo(()=>{let b=vh(u,c);return b==null?null:{location:{pathname:b,search:h,hash:p,state:f,key:x},navigationType:s}},[c,u,h,p,f,x,s]);return v==null?null:w.createElement(Vr.Provider,{value:d},w.createElement(zl.Provider,{children:n,value:v}))}function k3(e){let{children:t,location:n}=e;return h3(Hd(t),n)}new Promise(()=>{});function Hd(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,s)=>{if(!w.isValidElement(r))return;let i=[...t,s];if(r.type===w.Fragment){n.push.apply(n,Hd(r.props.children,i));return}r.type!==wr&&je(!1),!r.props.index||!r.props.children||je(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Hd(r.props.children,i)),n.push(o)}),n}/** 59 * React Router DOM v6.30.1 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function Wd(){return Wd=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},Wd.apply(this,arguments)}function j3(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function N3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function C3(e,t){return e.button===0&&(!t||t==="_self")&&!N3(e)}const P3=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],T3="6";try{window.__reactRouterVersion=T3}catch{}const A3="startTransition",xp=p0[A3];function R3(e){let{basename:t,children:n,future:r,window:s}=e,i=w.useRef();i.current==null&&(i.current=Mb({window:s,v5Compat:!0}));let o=i.current,[l,c]=w.useState({action:o.action,location:o.location}),{v7_startTransition:d}=r||{},u=w.useCallback(h=>{d&&xp?xp(()=>c(h)):c(h)},[c,d]);return w.useLayoutEffect(()=>o.listen(u),[o,u]),w.useEffect(()=>E3(r),[r]),w.createElement(_3,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const O3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",L3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,As=w.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:o,state:l,target:c,to:d,preventScrollReset:u,viewTransition:h}
67=t,p=j3(t,P3),{basename:f}=w.useContext(Vr),x,v=!1;if(typeof d=="string"&&L3.test(d)&&(x=d,O3))try{let y=new URL(window.location.href),$=d.startsWith("//")?new URL(y.protocol+d):new URL(d),S=vh($.pathname,f);$.origin===y.origin&&S!=null?d=S+$.search+$.hash:v=!0}catch{}let b=d3(d,{relative:s}),g=I3(d,{replace:o,state:l,target:c,preventScrollReset:u,relative:s,viewTransition:h});function m(y){r&&r(y),y.defaultPrevented||g(y)}return w.createElement("a",Wd({},p,{href:x||b,onClick:v||i?r:m,ref:n,target:c}))});var bp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(bp||(bp={}));var wp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wp||(wp={}));function I3(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:l}=t===void 0?{}:t,c=xh(),d=fr(),u=O1(e,{relative:o});return w.useCallback(h=>{if(C3(h,n)){h.preventDefault();let p=r!==void 0?r:dl(d)===dl(u);c(e,{replace:p,state:s,preventScrollReset:i,relative:o,viewTransition:l})}},[d,c,u,r,s,n,e,i,o,l])}var $p=["light","dark"],D3="(prefers-color-scheme: dark)",M3=w.createContext(void 0),F3={setTheme:e=>{},themes:[]},U3=()=>{var e;return(e=w.useContext(M3))!=null?e:F3};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:o,attrs:l,nonce:c})=>{let d=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?$p.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(x,v=!1,b=!0)=>{let g=o?o[x]:x,m=v?x+"|| ''":`'${g}'`,y="";return s&&b&&!v&&$p.includes(x)&&(y+=`d.style.colorScheme = '${x}';`),n==="class"?v||g?y+=`c.add(${m})`:y+="null":g&&(y+=`d[s](n,${m})`),y},f=e?`!function(){${u}${p(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${D3}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}${d?"":"else{"+p(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${p(o?"x[e]":"e",!0)}}else{${p(i,!1,!1)};}${h}}catch(t){}}();`;return w.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:f}})});var B3=e=>{switch(e){case"success":return H3;case"info":return V3;case"warning":return W3;case"error":return G3;default:return null}},z3=Array(12).fill(0),q3=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},z3.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),H3=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),W3=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),V3=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),G3=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),K3=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),J3=()=>{let[e,t]=R.useState(document.hidden);return R.useEffect(()=>{let n=()=>{t(document.hidden)};
67return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Vd=1,Y3=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Vd++,i=this.toasts.find(l=>l.id===s),o=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...e,id:s,title:n}),{...l,...e,id:s,dismissible:o,title:n}):l):this.addToast({title:n,...r,dismissible:o,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
67this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,o=r.then(async c=>{if(i=["resolve",c],R.isValidElement(c))s=!1,this.create({id:n,type:"default",message:c});else if(X3(c)&&!c.ok){s=!1;let d=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:d,description:u})}else if(t.success!==void 0){s=!1;let d=typeof t.success=="function"?await t.success(c):t.success,u=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:d,description:u})}}).catch(async c=>{if(i=["reject",c],t.error!==void 0){s=!1;let d=typeof t.error=="function"?await t.error(c):t.error,u=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:d,description:u})}}).finally(()=>{var c;s&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,d)=>o.then(()=>i[0]==="reject"?d(i[1]):c(i[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Vd++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Xe=new Y3,Q3=(e,t)=>{let n=(t==null?void 0:t.id)||Vd++;return Xe.addToast({title:e,...t,id:n}),n},X3=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Z3=Q3,ew=()=>Xe.toasts,tw=()=>Xe.getActiveToasts();Object.assign(Z3,{success:Xe.success,info:Xe.info,warning:Xe.warning,error:Xe.error,custom:Xe.custom,message:Xe.message,promise:Xe.promise,dismiss:Xe.dismiss,loading:Xe.loading},{getHistory:ew,getToasts:tw});function nw(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}nw(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
67left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
67:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
67--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 68`);function ca(e){return e.label!==void 0}var rw=3,sw="32px",iw="16px",Sp=4e3,ow=356,aw=14,lw=20,cw=200;function jt(...e){return e.filter(Boolean).join(" ")}function dw(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var uw=e=>{var t,n,r,s,i,o,l,c,d,u,h;let{invert:p,toast:f,unstyled:x,interacting:v,setHeights:b,visibleToasts:g,heights:m,index:y,toasts:$,expanded:S,removeToast:E,defaultRichColors:_,closeButton:P,style:A,cancelButtonStyle:O,actionButtonStyle:W,className:F="",descriptionClassName:Y="",duration:L,position:J,gap:K,loadingIcon:G,expandByDefault:k,classNames:N,icons:D,closeButtonAriaLabel:z="Close toast",pauseWhenPageIsHidden:q}=e,[C,I]=R.useState(null),[ee,ge]=R.useState(null),[ie,Jr]=R.useState(!1),[_n,pr]=R.useState(!1),[kn,Yr]=R.useState(!1),[jn,Bo]=R.use
vendor: 4,235 bytes, line 68
68State(!1),[rc,zo]=R.useState(!1),[sc,ci]=R.useState(0),[Qr,Wh]=R.useState(0),di=R.useRef(f.duration||L||Sp),Vh=R.useRef(null),mr=R.useRef(null),Ay=y===0,Ry=y+1<=g,mt=f.type,Xr=f.dismissible!==!1,Oy=f.className||"",Ly=f.descriptionClassName||"",qo=R.useMemo(()=>m.findIndex(Q=>Q.toastId===f.id)||0,[m,f.id]),Iy=R.useMemo(()=>{var Q;return(Q=f.closeButton)!=null?Q:P},[f.closeButton,P]),Gh=R.useMemo(()=>f.duration||L||Sp,[f.duration,L]),ic=R.useRef(0),Zr=R.useRef(0),Kh=R.useRef(0),es=R.useRef(null),[Dy,My]=J.split("-"),Jh=R.useMemo(()=>m.reduce((Q,ae,pe)=>pe>=qo?Q:Q+ae.height,0),[m,qo]),Yh=J3(),Fy=f.invert||p,oc=mt==="loading";Zr.current=R.useMemo(()=>qo*K+Jh,[qo,Jh]),R.useEffect(()=>{di.current=Gh},[Gh]),R.useEffect(()=>{Jr(!0)},[]),R.useEffect(()=>{let Q=mr.current;if(Q){let ae=Q.getBoundingClientRect().height;return Wh(ae),b(pe=>[{toastId:f.id,height:ae,position:f.position},...pe]),()=>b(pe=>pe.filter(St=>St.toastId!==f.id))}},[b,f.id]),R.useLayoutEffect(()=>{if(!ie)return;let Q=mr.current,ae=Q.style.height;Q.style.height="auto";let pe=Q.getBoundingClientRect().height;Q.style.height=ae,Wh(pe),b(St=>St.find(Et=>Et.toastId===f.id)?St.map(Et=>Et.toastId===f.id?{...Et,height:pe}:Et):[{toastId:f.id,height:pe,position:f.position},...St])},[ie,f.title,f.description,b,f.id]);let Nn=R.useCallback(()=>{pr(!0),ci(Zr.current),b(Q=>Q.filter(ae=>ae.toastId!==f.id)),setTimeout(()=>{E(f)},cw)},[f,E,b,Zr]);R.useEffect(()=>{if(f.promise&&mt==="loading"||f.duration===1/0||f.type==="loading")return;let Q;return S||v||q&&Yh?(()=>{if(Kh.current<ic.current){let ae=new Date().getTime()-ic.current;di.current=di.current-ae}Kh.current=new Date().getTime()})():di.current!==1/0&&(ic.current=new Date().getTime(),Q=setTimeout(()=>{var ae;(ae=f.onAutoClose)==null||ae.call(f,f),Nn()},di.current)),()=>clearTimeout(Q)},[S,v,f,mt,q,Yh,Nn]),R.useEffect(()=>{f.delete&&Nn()},[Nn,f.delete]);function Uy(){var Q,ae,pe;return D!=null&&D.loading?R.createElement("div",{className:jt(N==null?void 0:N.loader,(Q=f==null?void 0:f.classNames)==null?void 0:Q.loader,"sonner-loader"),"data-visible":mt==="loading"},D.loading):G?R.createElement("div",{className:jt(N==null?void 0:N.loader,(ae=f==null?void 0:f.classNames)==null?void 0:ae.loader,"sonner-loader"),"data-visible":mt==="loading"},G):R.createElement(q3,{className:jt(N==null?void 0:N.loader,(pe=f==null?void 0:f.classNames)==null?void 0:pe.loader),visible:mt==="loading"})}return R.createElement("li",{tabIndex:0,ref:mr,className:jt(F,Oy,N==null?void 0:N.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,N==null?void 0:N.default,N==null?void 0:N[mt],(n=f==null?void 0:f.classNames)==null?void 0:n[mt]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:_,"data-styled":!(f.jsx||f.unstyled||x),"data-mounted":ie,"data-promise":!!f.promise,"data-swiped":rc,"data-removed":_n,"data-visible":Ry,"data-y-position":Dy,"data-x-position":My,"data-index":y,"data-front":Ay,"data-swiping":kn,"data-dismissible":Xr,"data-type":mt,"data-invert":Fy,"data-swipe-out":jn,"data-swipe-direction":ee,"data-expanded":!!(S||k&&ie),style:{"--index":y,"--toasts-before":y,"--z-index":$.length-y,"--offset":`${_n?sc:Zr.current}px`,"--initial-height":k?"auto":`${Qr}px`,...A,...f.style},onDragEnd:()=>{Yr(!1),I(null),es.current=null},onPointerDown:Q=>{oc||!Xr||(Vh.current=new Date,ci(Zr.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(Yr(!0),es.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,ae,pe,St;if(jn||!Xr)return;es.current=null;let Et=Number(((Q=mr.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Cn=Number(((ae=mr.current)==null?void 0:ae.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),gr=new Date().getTime()-((pe=Vh.current)==null?void 0:pe.getTime()),_t=C==="x"?Et:Cn,Pn=Math.abs(_t)/gr;if(Math.abs(_t)>=lw||Pn>.11){ci(Zr.current),(St=f.onDismiss)==null||St.call(f,f),ge(C==="x"?Et>0?"right":"left":Cn>0?"down":"up"),Nn(),Bo(!0),zo(!1);return}Yr(!1),I(null)},onPointerMove:Q=>{var ae,pe,St,Et;if(!es.current||!Xr||((ae=window.getSelection())==null?void 0:ae.toString().length)>0)return;let Cn=Q.clientY-es.current.y,gr=Q.clientX-es.current.x,_t=(pe=e.swipeDirections)!=null?pe
68:dw(J);!C&&(Math.abs(gr)>1||Math.abs(Cn)>1)&&I(Math.abs(gr)>Math.abs(Cn)?"x":"y");let Pn={x:0,y:0};C==="y"?(_t.includes("top")||_t.includes("bottom"))&&(_t.includes("top")&&Cn<0||_t.includes("bottom")&&Cn>0)&&(Pn.y=Cn):C==="x"&&(_t.includes("left")||_t.includes("right"))&&(_t.includes("left")&&gr<0||_t.includes("right")&&gr>0)&&(Pn.x=gr),(Math.abs(Pn.x)>0||Math.abs(Pn.y)>0)&&zo(!0),(St=mr.current)==null||St.style.setProperty("--swipe-amount-x",`${Pn.x}px`),(Et=mr.current)==null||Et.style.setProperty("--swipe-amount-y",`${Pn.y}px`)}},Iy&&!f.jsx?R.createElement("button",{"aria-label":z,"data-disabled":oc,"data-close-button":!0,onClick:oc||!Xr?()=>{}:()=>{var Q;Nn(),(Q=f.onDismiss)==null||Q.call(f,f)},className:jt(N==null?void 0:N.closeButton,(s=f==null?void 0:f.classNames)==null?void 0:s.closeButton)},(i=D==null?void 0:D.close)!=null?i:K3):null,f.jsx||w.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:R.createElement(R.Fragment,null,mt||f.icon||f.promise?R.createElement("div",{"data-icon":"",className:jt(N==null?void 0:N.icon,(o=f==null?void 0:f.classNames)==null?void 0:o.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Uy():null,f.type!=="loading"?f.icon||(D==null?void 0:D[mt])||B3(mt):null):null,R.createElement("div",{"data-content":"",className:jt(N==null?void 0:N.content,(l=f==null?void 0:f.classNames)==null?void 0:l.content)},R.createElement("div",{"data-title":"",className:jt(N==null?void 0:N.title,(c=f==null?void 0:f.classNames)==null?void 0:c.title)},typeof f.title=="function"?f.title():f.title),f.description?R.createElement("div",{"data-description":"",className:jt(Y,Ly,N==null?void 0:N.description,(d=f==null?void 0:f.classNames)==null?void 0:d.description)},typeof f.description=="function"?f.description():f.description):null),w.isValidElement(f.cancel)?f.cancel:f.cancel&&ca(f.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||O,onClick:Q=>{var ae,pe;ca(f.cancel)&&Xr&&((pe=(ae=f.cancel).onClick)==null||pe.call(ae,Q),Nn())},className:jt(N==null?void 0:N.cancelButton,(u=f==null?void 0:f.classNames)==null?void 0:u.cancelButton)},f.cancel.label):null,w.isValidElement(f.action)?f.action:f.action&&ca(f.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||W,onClick:Q=>{var ae,pe;ca(f.action)&&((pe=(ae=f.action).onClick)==null||pe.call(ae,Q),!Q.defaultPrevented&&Nn())},className:jt(N==null?void 0:N.actionButton,(h=f==null?void 0:f.classNames)==null?void 0:h.actionButton)},f.action.label):null))};function Ep(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function hw(e,t){let n={};return[e,t].forEach((r,s)=>
vendor: 4,966 bytes, line 68
68{let i=s===1,o=i?"--mobile-offset":"--offset",l=i?iw:sw;function c(d){["top","right","bottom","left"].forEach(u=>{n[`${o}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${o}-${d}`]=l:n[`${o}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):c(l)}),n}var fw=w.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:o,className:l,offset:c,mobileOffset:d,theme:u="light",richColors:h,duration:p,style:f,visibleToasts:x=rw,toastOptions:v,dir:b=Ep(),gap:g=aw,loadingIcon:m,icons:y,containerAriaLabel:$="Notifications",pauseWhenPageIsHidden:S}=e,[E,_]=R.useState([]),P=R.useMemo(()=>Array.from(new Set([r].concat(E.filter(q=>q.position).map(q=>q.position)))),[E,r]),[A,O]=R.useState([]),[W,F]=R.useState(!1),[Y,L]=R.useState(!1),[J,K]=R.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=R.useRef(null),k=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=R.useRef(null),D=R.useRef(!1),z=R.useCallback(q=>{_(C=>{var I;return(I=C.find(ee=>ee.id===q.id))!=null&&I.delete||Xe.dismiss(q.id),C.filter(({id:ee})=>ee!==q.id)})},[]);return R.useEffect(()=>Xe.subscribe(q=>{if(q.dismiss){_(C=>C.map(I=>I.id===q.id?{...I,delete:!0}:I));return}setTimeout(()=>{v1.flushSync(()=>{_(C=>{let I=C.findIndex(ee=>ee.id===q.id);return I!==-1?[...C.slice(0,I),{...C[I],...q},...C.slice(I+1)]:[q,...C]})})})}),[]),R.useEffect(()=>{if(u!=="system"){K(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;let q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:C})=>{K(C?"dark":"light")})}catch{q.addListener(({matches:I})=>{try{K(I?"dark":"light")}catch(ee){console.error(ee)}})}},[u]),R.useEffect(()=>{E.length<=1&&F(!1)},[E]),R.useEffect(()=>{let q=C=>{var I,ee;s.every(ge=>C[ge]||C.code===ge)&&(F(!0),(I=G.current)==null||I.focus()),C.code==="Escape"&&(document.activeElement===G.current||(ee=G.current)!=null&&ee.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[s]),R.useEffect(()=>{if(G.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,D.current=!1)}},[G.current]),R.createElement("section",{ref:t,"aria-label":`${$} ${k}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},P.map((q,C)=>{var I;let[ee,ge]=q.split("-");return E.length?R.createElement("ol",{key:q,dir:b==="auto"?Ep():b,tabIndex:-1,ref:G,className:l,"data-sonner-toaster":!0,"data-theme":J,"data-y-position":ee,"data-lifted":W&&E.length>1&&!i,"data-x-position":ge,style:{"--front-toast-height":`${((I=A[0])==null?void 0:I.height)||0}px`,"--width":`${ow}px`,"--gap":`${g}px`,...f,...hw(c,d)},onBlur:ie=>{D.current&&!ie.currentTarget.contains(ie.relatedTarget)&&(D.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||D.current||(D.current=!0,N.current=ie.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{Y||F(!1)},onDragEnd:()=>F(!1),onPointerDown:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},E.filter(ie=>!ie.position&&C===0||ie.position===q).map((ie,Jr)=>{var _n,pr;return R.createElement(uw,{key:ie.id,icons:y,index:Jr,toast:ie,defaultRichColors:h,duration:(_n=v==null?void 0:v.duration)!=null?_n:p,className:v==null?void 0:v.className,descriptionClassName:v==null?void 0:v.descriptionClassName,invert:n,visibleToasts:x,closeButton:(pr=v==null?void 0:v.closeButton)!=null?pr:o,interacting:Y,position:q,style:v==null?void 0:v.style,unstyled:v==null?void 0:v.unstyled,classNames:v==null?void 0:v.classNames,cancelButtonStyle:v==null?void 0:v.cancelButtonStyle,actionButtonStyle:v==null?void 0:v.actionButtonStyle,removeToast:z,toasts:E.filter(kn=>kn.position==ie.position),heights:A.filter(kn=>kn.position==ie.position),setHeights:O,expandByDefault:i,gap:g,loadingIcon:m,expanded:W,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const pw=({...e})=>{const{theme:t="system"}=U3();return a.jsx(fw,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},mw=1,gw=1e6;let Ic=0;function vw(){return Ic=(Ic+1)%Number.MAX_SAFE_INTEGER,Ic.toString()}
68const Dc=new Map,_p=e=>{if(Dc.has(e))return;const t=setTimeout(()=>{Dc.delete(e),Mi({type:"REMOVE_TOAST",toastId:e})},gw);Dc.set(e,t)},yw=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,mw)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?_p(n):e.toasts.forEach(r=>{_p(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Oa=[];let La={toasts:[]};function Mi(e){La=yw(La,e),Oa.forEach(t=>{t(La)})}function xw({...e}){const t=vw(),n=s=>Mi({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Mi({type:"DISMISS_TOAST",toastId:t});return Mi({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function bw(){const[e,t]=w.useState(La);return w.useEffect(()=>(Oa.push(t),()=>{const n=Oa.indexOf(t);n>-1&&Oa.splice(n,1)}),[e]),{...e,toast:xw,dismiss:n=>Mi({type:"DISMISS_TOAST",toastId:n})}}function Ce(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function kp(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function D1(...e){return t=>{let n=!1;const r=e.map(s=>{const i=kp(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():kp(e[s],null)}}}}function Ft(...e){return w.useCallback(D1(...e),e)}function ql(e,t=[]){let n=[];function r(i,o){const l=w.createContext(o),c=n.length;n=[...n,o];const d=h=>{var g;const{scope:p,children:f,...x}=h,v=((g=p==null?void 0:p[e])==null?void 0:g[c])||l,b=w.useMemo(()=>x,Object.values(x));return a.jsx(v.Provider,{value:b,children:f})};d.displayName=i+"Provider";function u(h,p){var v;const f=((v=p==null?void 0:p[e])==null?void 0:v[c])||l,x=w.useContext(f);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[d,u]}const s=()=>{const i=n.map(o=>w.createContext(o));return function(l){const c=(l==null?void 0:l[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[r,ww(s,...t)]}function ww(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((l,{useScope:c,scopeName:d})=>{const h=c(i)[`__scope${d}`];return{...l,...h}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Gd(e){const t=$w(e),n=w.forwardRef((r,s)=>{const{children:i,...o}=r,l=w.Children.toArray(i),c=l.find(Ew);if(c){const d=c.props.children,u=l.map(h=>h===c?w.Children.count(d)>1?w.Children.only(null):w.isValidElement(d)?d.props.children:null:h);return a.jsx(t,{...o,ref:s,children:w.isValidElement(d)?w.cloneElement(d,void 0,u):null})}return a.jsx(t,{...o,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}function $w(e){const t=w.forwardRef((n,r)=>{const{children:s,...i}=n;if(w.isValidElement(s)){const o=kw(s),l=_w(i,s.props);return s.type!==w.Fragment&&(l.ref=r?D1(r,o):o),w.cloneElement(s,l)}return w.Children.count(s)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var M1=Symbol("radix.slottable");function Sw(e){const t=({children:n})=>a.jsx(a.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=M1,t}function Ew(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===M1}function _w(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{const c=i(...l);return s(...l),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function kw(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function jw(e){const t=e+"CollectionProvider",[n,r]=ql(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:b,children:g}=v,m=R.useRef(null),y=R.useRef(new Map).current;return a.jsx(s,{scope:b,itemMap:y,collectionRef:m,children:g})};o.displayName=t;const l=e+"CollectionSlot",c=Gd(l),d=R.forwardRef((v,b)=>{const{scope:g,children:m}=v,y=i(l,g),$=Ft(b,y.collectionRef);return a.jsx(c,{ref:$,children:m})});d.displayName=l;const u=e+"CollectionItemSlot",h="data-radix-collection-item",p=Gd(u),f=R.forwardRef((v,b)=>{const{scope:g,children:m,...y}=v,$=R.useRef(null),S=Ft(b,$),E=i(u,g);return R.useEffect(()=>(E.itemMap.set($,{ref:$,...y}),()=>
vendor: 9,168 bytes, line 68
68void E.itemMap.delete($))),a.jsx(p,{[h]:"",ref:S,children:m})});f.displayName=u;function x(v){const b=i(e+"CollectionConsumer",v);return R.useCallback(()=>{const m=b.collectionRef.current;if(!m)return[];const y=Array.from(m.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((E,_)=>y.indexOf(E.ref.current)-y.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:d,ItemSlot:f},x,r]}var Nw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],st=Nw.reduce((e,t)=>{const n=Gd(`Primitive.${t}`),r=w.forwardRef((s,i)=>{const{asChild:o,...l}=s,c=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function F1(e,t){e&&Oo.flushSync(()=>e.dispatchEvent(t))}function or(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Cw(e,t=globalThis==null?void 0:globalThis.document){const n=or(e);w.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Pw="DismissableLayer",Kd="dismissableLayer.update",Tw="dismissableLayer.pointerDownOutside",Aw="dismissableLayer.focusOutside",jp,U1=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bh=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:l,...c}=e,d=w.useContext(U1),[u,h]=w.useState(null),p=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=w.useState({}),x=Ft(t,_=>h(_)),v=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=v.indexOf(b),m=u?v.indexOf(u):-1,y=d.layersWithOutsidePointerEventsDisabled.size>0,$=m>=g,S=Ow(_=>{const P=_.target,A=[...d.branches].some(O=>O.contains(P));!$||A||(s==null||s(_),o==null||o(_),_.defaultPrevented||l==null||l())},p),E=Lw(_=>{const P=_.target;[...d.branches].some(O=>O.contains(P))||(i==null||i(_),o==null||o(_),_.defaultPrevented||l==null||l())},p);return Cw(_=>{m===d.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},p),w.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(jp=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),Np(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=jp)}},[u,p,n,d]),w.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),Np())},[u,d]),w.useEffect(()=>{const _=()=>f({});return document.addEventListener(Kd,_),()=>document.removeEventListener(Kd,_)},[]),a.jsx(st.div,{...c,ref:x,style:{pointerEvents:y?$?"auto":"none":void 0,...e.style},onFocusCapture:Ce(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ce(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ce(e.onPointerDownCapture,S.onPointerDownCapture)})});bh.displayName=Pw;var Rw="DismissableLayerBranch",B1=w.forwardRef((e,t)=>{const n=w.useContext(U1),r=w.useRef(null),s=Ft(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),a.jsx(st.div,{...e,ref:s})});B1.displayName=Rw;function Ow(e,t=globalThis==null?void 0:globalThis.document){const n=or(e),r=w.useRef(!1),s=w.useRef(()=>{});return w.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){z1(Tw,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Lw(e,t=globalThis==null?void 0:globalThis.document){const n=or(e),r=w.useRef(!1);return w.useEffect(()=>{const s=i=>{i.target&&!r.current&&z1(Aw,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Np(){const e=new CustomEvent(Kd);document.dispatchEvent(e)}function z1(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?F1(s,i):s.dispatchEvent(i)}var Iw=bh,Dw=B1,ar=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},Mw="Portal",q1=w.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[s,i]=w.useState(!1);ar(()=>i(!0),[]);const o=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return o?v1.createPortal(a.jsx(st.div,{...r,ref:t}),o):null});q1.displayName=Mw;function Fw(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var wh=e=>{const{present:t,children:n}=e,r=Uw(t),s=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=Ft(r.ref,Bw(s));return typeof n=="function"||r.isPresent?w.cloneElement(s,{ref:i}):null};wh.displayName="Presence";function Uw(e){const[t,n]=w.useState(),r=w.useRef(null),s=w.useRef(e),i=w.useRef("none"),o=e?"mounted":"unmounted",[l,c]=Fw(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const d=da(r.current);i.current=l==="mounted"?d:"none"},[l]),ar(()=>{const d=r.current,u=s.current;if(u!==e){const p=i.current,f=da(d);e?c("MOUNT"):f==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(u&&p!==f?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),ar(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,h=f=>{const v=da(r.current).includes(f.animationName);if(f.target===t&&v&&(c("ANIMATION_END"),!s.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},p=f=>{f.target===t&&(i.current=da(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function da(e){return(e==null?void 0:e.animationName)||"none"}function Bw(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var zw=p0[" useInsertionEffect ".trim().toString()]||ar;function qw({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,o]=Hw({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:s;{const u=w.useRef(e!==void 0);w.useEffect(()=>{const h=u.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const d=w.useCallback(u=>{var h;if(l){const p=Ww(u)?u(e):u;p!==e&&((h=o.current)==null||h.call(o,p))}else i(u)},[l,e,i,o]);return[c,d]}function Hw({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),s=w.useRef(n),i=w.useRef(t);return zw(()=>{i.current=t},[t]),w.useEffect(()=>{var o;s.current!==n&&((o=i.current)==null||o.call(i,n),s.current=n)},[n,s]),[n,r,i]}function Ww(e){return typeof e=="function"}var Vw=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Gw="VisuallyHidden",Hl=w.forwardRef((e,t)=>a.jsx(st.span,{...e,ref:t,style:{...Vw,...e.style}}));Hl.displayName=Gw;var Kw=Hl,$h="ToastProvider",[Sh,Jw,Yw]=jw("Toast"),[H1,gk]=ql("Toast",[Yw]),[Qw,Wl]=H1($h),W1=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=e,[l,c]=w.useState(null),[d,u]=w.useState(0),h=w.useRef(!1),p=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${$h}\`. Expected non-empty \`string\`.`),a.jsx(Sh.Provider,{scope:t,children:a.jsx(Qw,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:w.useCallback(()=>u(f=>f+1),[]),onToastRemove:w.useCallback(()=>u(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p,children:o})})};W1.displayName=$h;var V1="ToastViewport",Xw=["F8"],Jd="toast.viewportPause",Yd="toast.viewportResume",G1=w.forwardRef((e,t)=>
68{const{__scopeToast:n,hotkey:r=Xw,label:s="Notifications ({hotkey})",...i}=e,o=Wl(V1,n),l=Jw(n),c=w.useRef(null),d=w.useRef(null),u=w.useRef(null),h=w.useRef(null),p=Ft(t,h,o.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=o.toastCount>0;w.useEffect(()=>{const b=g=>{var y;r.length!==0&&r.every($=>g[$]||g.code===$)&&((y=h.current)==null||y.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),w.useEffect(()=>{const b=c.current,g=h.current;if(x&&b&&g){const m=()=>{if(!o.isClosePausedRef.current){const E=new CustomEvent(Jd);g.dispatchEvent(E),o.isClosePausedRef.current=!0}},y=()=>{if(o.isClosePausedRef.current){const E=new CustomEvent(Yd);g.dispatchEvent(E),o.isClosePausedRef.current=!1}},$=E=>{!b.contains(E.relatedTarget)&&y()},S=()=>{b.contains(document.activeElement)||y()};return b.addEventListener("focusin",m),b.addEventListener("focusout",$),b.addEventListener("pointermove",m),b.addEventListener("pointerleave",S),window.addEventListener("blur",m),window.addEventListener("focus",y),()=>{b.removeEventListener("focusin",m),b.removeEventListener("focusout",$),b.removeEventListener("pointermove",m),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",m),window.removeEventListener("focus",y)}}},[x,o.isClosePausedRef]);const v=w.useCallback(({tabbingDirection:b})=>{const m=l().map(y=>{const $=y.ref.current,S=[$,...u$($)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?m.reverse():m).flat()},[l]);return w.useEffect(()=>{const b=h.current;if(b){const g=m=>{var S,E,_;const y=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!y){const P=document.activeElement,A=m.shiftKey;if(m.target===b&&A){(S=d.current)==null||S.focus();return}const F=v({tabbingDirection:A?"backwards":"forwards"}),Y=F.findIndex(L=>L===P);Mc(F.slice(Y+1))?m.preventDefault():A?(E=d.current)==null||E.focus():(_=u.current)==null||_.focus()}};return b.addEventListener("keydown",g),()=>b.removeEventListener("keydown",g)}},[l,v]),a.jsxs(Dw,{ref:c,role:"region","aria-label":s.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&a.jsx(Qd,{ref:d,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"forwards"});Mc(b)}}),a.jsx(Sh.Slot,{scope:n,children:a.jsx(st.ol,{tabIndex:-1,...i,ref:p})}),x&&a.jsx(Qd,{ref:u,onFocusFromOutsideViewport:()=>{const b=v({tabbingDirection:"backwards"});Mc(b)}})]})});G1.displayName=V1;var K1="ToastFocusProxy",Qd=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=Wl(K1,n);return a.jsx(Hl,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:o=>{var d;const l=o.relatedTarget;!((d=i.viewport)!=null&&d.contains(l))&&r()}})});Qd.displayName=K1;var Io="Toast",Zw="toast.swipeStart",e$="toast.swipeMove",t$="toast.swipeCancel",n$="toast.swipeEnd",J1=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=e,[l,c]=qw({prop:r,defaultProp:s??!0,onChange:i,caller:Io});return a.jsx(wh,{present:n||l,children:a.jsx(i$,{open:l,...o,ref:t,onClose:()=>c(!1),onPause:or(e.onPause),onResume:or(e.onResume),onSwipeStart:Ce(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ce(e.onSwipeMove,d=>{const{x:u,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:Ce(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Ce(e.onSwipeEnd,d=>{const{x:u,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});J1.displayName=Io;var[r$,s$]=H1(Io,{onClose(){}}),i$=w.forwardRef((e,t)=>
68{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:u,onSwipeMove:h,onSwipeCancel:p,onSwipeEnd:f,...x}=e,v=Wl(Io,n),[b,g]=w.useState(null),m=Ft(t,L=>g(L)),y=w.useRef(null),$=w.useRef(null),S=s||v.duration,E=w.useRef(0),_=w.useRef(S),P=w.useRef(0),{onToastAdd:A,onToastRemove:O}=v,W=or(()=>{var J;(b==null?void 0:b.contains(document.activeElement))&&((J=v.viewport)==null||J.focus()),o()}),F=w.useCallback(L=>{!L||L===1/0||(window.clearTimeout(P.current),E.current=new Date().getTime(),P.current=window.setTimeout(W,L))},[W]);w.useEffect(()=>{const L=v.viewport;if(L){const J=()=>{F(_.current),d==null||d()},K=()=>{const G=new Date().getTime()-E.current;_.current=_.current-G,window.clearTimeout(P.current),c==null||c()};return L.addEventListener(Jd,K),L.addEventListener(Yd,J),()=>{L.removeEventListener(Jd,K),L.removeEventListener(Yd,J)}}},[v.viewport,S,c,d,F]),w.useEffect(()=>{i&&!v.isClosePausedRef.current&&F(S)},[i,S,v.isClosePausedRef,F]),w.useEffect(()=>(A(),()=>O()),[A,O]);const Y=w.useMemo(()=>b?nv(b):null,[b]);return v.viewport?a.jsxs(a.Fragment,{children:[Y&&a.jsx(o$,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Y}),a.jsx(r$,{scope:n,onClose:W,children:Oo.createPortal(a.jsx(Sh.ItemSlot,{scope:n,children:a.jsx(Iw,{asChild:!0,onEscapeKeyDown:Ce(l,()=>{v.isFocusedToastEscapeKeyDownRef.current||W(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:a.jsx(st.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":v.swipeDirection,...x,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Ce(e.onKeyDown,L=>{L.key==="Escape"&&(l==null||l(L.nativeEvent),L.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:Ce(e.onPointerDown,L=>{L.button===0&&(y.current={x:L.clientX,y:L.clientY})}),onPointerMove:Ce(e.onPointerMove,L=>{if(!y.current)return;const J=L.clientX-y.current.x,K=L.clientY-y.current.y,G=!!$.current,k=["left","right"].includes(v.swipeDirection),N=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,D=k?N(0,J):0,z=k?0:N(0,K),q=L.pointerType==="touch"?10:2,C={x:D,y:z},I={originalEvent:L,delta:C};G?($.current=C,ua(e$,h,I,{discrete:!1})):Cp(C,v.swipeDirection,q)?($.current=C,ua(Zw,u,I,{discrete:!1}),L.target.setPointerCapture(L.pointerId)):(Math.abs(J)>q||Math.abs(K)>q)&&(y.current=null)}),onPointerUp:Ce(e.onPointerUp,L=>{const J=$.current,K=L.target;if(K.hasPointerCapture(L.pointerId)&&K.releasePointerCapture(L.pointerId),$.current=null,y.current=null,J){const G=L.currentTarget,k={originalEvent:L,delta:J};Cp(J,v.swipeDirection,v.swipeThreshold)?ua(n$,f,k,{discrete:!0}):ua(t$,p,k,{discrete:!0}),G.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),o$=e=>{const{__scopeToast:t,children:n,...r}=e,s=Wl(Io,t),[i,o]=w.useState(!1),[l,c]=w.useState(!1);return c$(()=>o(!0)),w.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:a.jsx(q1,{asChild:!0,children:a.jsx(Hl,{...r,children:i&&a.jsxs(a.Fragment,{children:[s.label," ",n]})})})},a$="ToastTitle",Y1=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.jsx(st.div,{...r,ref:t})});Y1.displayName=a$;var l$="ToastDescription",Q1=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return a.jsx(st.div,{...r,ref:t})});Q1.displayName=l$;var X1="ToastAction",Z1=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?a.jsx(tv,{altText:n,asChild:!0,children:a.jsx(Eh,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${X1}\`. Expected non-empty \`string\`.`),null)});Z1.displayName=X1;var ev="ToastClose",Eh=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=s$(ev,n);return a.jsx(tv,{asChild:!0,children:a.jsx(st.button,{type:"button",...r,ref:t,onClick:Ce(e.onClick,s.onClose)})})});Eh.displayName=ev;var tv=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return a.jsx(st.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function nv(e){const t=[];
vendor: 4,279 bytes, lines 68-93
68return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),d$(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=r.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...nv(r))}}),t}function ua(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?F1(s,i):s.dispatchEvent(i)}var Cp=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function c$(e=()=>{}){const t=or(e);ar(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function d$(e){return e.nodeType===e.ELEMENT_NODE}function u$(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Mc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var h$=W1,rv=G1,sv=J1,iv=Y1,ov=Q1,av=Z1,lv=Eh;function cv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=cv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function dv(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=cv(e))&&(r&&(r+=" "),r+=t);return r}const Pp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Tp=dv,f$=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Tp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,o=Object.keys(s).map(d=>{const u=n==null?void 0:n[d],h=i==null?void 0:i[d];if(u===null)return null;const p=Pp(u)||Pp(h);return s[d][p]}),l=n&&Object.entries(n).reduce((d,u)=>{let[h,p]=u;return p===void 0||(d[h]=p),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:h,className:p,...f}=u;return Object.entries(f).every(x=>{let[v,b]=x;return Array.isArray(b)?b.includes({...i,...l}[v]):{...i,...l}[v]===b})?[...d,h,p]:d},[]);return Tp(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** 69 * @license lucide-react v0.462.0 - ISC 70 * 71 * This source code is licensed under the ISC license. 72 * See the LICENSE file in the root directory of this source tree. 73 */const p$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 74 * @license lucide-react v0.462.0 - ISC 75 * 76 * This source code is licensed under the ISC license. 77 * See the LICENSE file in the root directory of this source tree. 78 */var m$={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"};/** 79 * @license lucide-react v0.462.0 - ISC 80 * 81 * This source code is licensed under the ISC license. 82 * See the LICENSE file in the root directory of this source tree. 83 */const g$=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...l},c)=>w.createElement("svg",{ref:c,...m$,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:uv("lucide",s),...l},[...o.map(([d,u])=>w.createElement(d,u)),...Array.isArray(i)?i:[i]]));/** 84 * @license lucide-react v0.462.0 - ISC 85 * 86 * This source code is licensed under the ISC license. 87 * See the LICENSE file in the root directory of this source tree. 88 */const ne=(e,t)=>{const n=w.forwardRef(({className:r,...s},i)=>w.createElement(g$,{ref:i,iconNode:t,className:uv(`lucide-${p$(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 89 * @license lucide-react v0.462.0 - ISC 90 * 91 * This source code is licensed under the ISC license. 92 * See the LICENSE file in the root directory of this source tree. 93 */const v$=ne("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l
93-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/** 94 * @license lucide-react v0.462.0 - ISC 95 * 96 * This source code is licensed under the ISC license. 97 * See the LICENSE file in the root directory of this source tree. 98 */const y$=ne("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 99 * @license lucide-react v0.462.0 - ISC 100 * 101 * This source code is licensed under the ISC license. 102 * See the LICENSE file in the root directory of this source tree. 103 */const Ia=ne("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 104 * @license lucide-react v0.462.0 - ISC 105 * 106 * This source code is licensed under the ISC license. 107 * See the LICENSE file in the root directory of this source tree. 108 */const x$=ne("CalendarHeart",[["path",{d:"M3 10h18V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7",key:"136lmk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21.29 14.7a2.43 2.43 0 0 0-2.65-.52c-.3.12-.57.3-.8.53l-.34.34-.35-.34a2.43 2.43 0 0 0-2.65-.53c-.3.12-.56.3-.79.53-.95.94-1 2.53.2 3.74L17.5 22l3.6-3.55c1.2-1.21 1.14-2.8.19-3.74Z",key:"1t7hil"}]]);/** 109 * @license lucide-react v0.462.0 - ISC 110 * 111 * This source code is licensed under the ISC license. 112 * See the LICENSE file in the root directory of this source tree. 113 */const b$=ne("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 114 * @license lucide-react v0.462.0 - ISC 115 * 116 * This source code is licensed under the ISC license. 117 * See the LICENSE file in the root directory of this source tree. 118 */const w$=ne("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/** 119 * @license lucide-react v0.462.0 - ISC 120 * 121 * This source code is licensed under the ISC license. 122 * See the LICENSE file in the root directory of this source tree. 123 */const Nr=ne("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 124 * @license lucide-react v0.462.0 - ISC 125 * 126 * This source code is licensed under the ISC license. 127 * See the LICENSE file in the root directory of this source tree. 128 */const $$=ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 129 * @license lucide-react v0.462.0 - ISC 130 * 131 * This source code is licensed under the ISC license. 132 * See the LICENSE file in the root directory of this source tree. 133 */const S$=ne("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 134 * @license lucide-react v0.462.0 - ISC 135 * 136 * This source code is licensed under the ISC license. 137 * See the LICENSE file in the root directory of this source tree. 138 */const E$=ne("CircleArrowRight",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]]);/** 139 * @license lucide-react v0.462.0 - ISC 140 * 141 * This source code is licensed under the ISC license. 142 * See the LICENSE file in the root directory of this source tree. 143 */const _h=ne("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 144 * @license lucide-react v0.462.0 - ISC 145 * 146 * This source code is licensed under the ISC license. 147 * See the LICENSE file in the root directory of this source tree. 148 */const _$=ne("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 149 * @license lucide-react v0.462.0 - ISC 150 * 151 * This source code is licensed under the ISC license. 152 * See the LICENSE file in the root directory of this source tree. 153 */const k$=ne("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]]);/** 154 * @license lucide-react v0.462.0 - ISC 155 * 156 * This source code is licensed under the ISC license. 157 * See the LICENSE file in the root directory of this source tree. 158 */const j$=ne("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 159 * @license lucide-react v0.462.0 - ISC 160 * 161 * This source code is licensed under the ISC license. 162 * See the LICENSE file in the root directory of this source tree. 163 */const N$=ne("CloudRain",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M16 14v6",key:"1j4efv"}],["path",{d:"M8 14v6",key:"17c4r9"}],["path",{d:"M12 16v6",key:"c8a4gj"}]]);/** 164 * @license lucide-react v0.462.0 - ISC 165 * 166 * This source code is licensed under the ISC license. 167 * See the LICENSE file in the root directory of this source tree. 168 */const C$=ne("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 169 * @license lucide-react v0.462.0 - ISC 170 * 171 * This source code is licensed under the ISC license. 172 * See the LICENSE file in the root directory of this source tree. 173 */const P$=ne("Droplet",[["path",{d:"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z",key:"c7niix"}]]);/** 174 * @license lucide-react v0.462.0 - ISC 175 * 176 * This source code is licensed under the ISC license. 177 * See the LICENSE file in the root directory of this source tree. 178 */const T$=ne("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",ke
178y:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/** 179 * @license lucide-react v0.462.0 - ISC 180 * 181 * This source code is licensed under the ISC license. 182 * See the LICENSE file in the root directory of this source tree. 183 */const hv=ne("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 184 * @license lucide-react v0.462.0 - ISC 185 * 186 * This source code is licensed under the ISC license. 187 * See the LICENSE file in the root directory of this source tree. 188 */const A$=ne("Hourglass",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]]);/** 189 * @license lucide-react v0.462.0 - ISC 190 * 191 * This source code is licensed under the ISC license. 192 * See the LICENSE file in the root directory of this source tree. 193 */const R$=ne("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 194 * @license lucide-react v0.462.0 - ISC 195 * 196 * This source code is licensed under the ISC license. 197 * See the LICENSE file in the root directory of this source tree. 198 */const O$=ne("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 199 * @license lucide-react v0.462.0 - ISC 200 * 201 * This source code is licensed under the ISC license. 202 * See the LICENSE file in the root directory of this source tree. 203 */const L$=ne("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 204 * @license lucide-react v0.462.0 - ISC 205 * 206 * This source code is licensed under the ISC license. 207 * See the LICENSE file in the root directory of this source tree. 208 */const I$=ne("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** 209 * @license lucide-react v0.462.0 - ISC 210 * 211 * This source code is licensed under the ISC license. 212 * See the LICENSE file in the root directory of this source tree. 213 */const D$=ne("MoonStar",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9",key:"4ay0iu"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}]]);/** 214 * @license lucide-react v0.462.0 - ISC 215 * 216 * This source code is licensed under the ISC license. 217 * See the LICENSE file in the root directory of this source tree. 218 */const M$=ne("PillBottle",[["path",{d:"M18 11h-4a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h4",key:"17ldeb"}],["path",{d:"M6 7v13a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7",key:"nc37y6"}],["rect",{width:"16",height:"5",x:"4",y:"2",rx:"1",key:"3jeezo"}]]);/** 219 * @license lucide-react v0.462.0 - ISC 220 * 221 * This source code is licensed under the ISC license. 222 * See the LICENSE file in the root directory of this source tree. 223 */const F$=ne("Pill",[["path",{d:"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z",key:"wa1lgi"}],["path",{d:"m8.5 8.5 7 7",key:"rvfmvr"}]]);/** 224 * @license lucide-react v0.462.0 - ISC 225 * 226 * This source code is licensed under the ISC license. 227 * See the LICENSE file in the root directory of this source tree. 228 */const U$=ne("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/** 229 * @license lucide-react v0.462.0 - ISC 230 * 231 * This source code is licensed under the ISC license. 232 * See the LICENSE file in the root directory of this source tree. 233 */const B$=ne("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 234 * @license lucide-react v0.462.0 - ISC 235 * 236 * This source code is licensed under the ISC license. 237 * See the LICENSE file in the root directory of this source tree. 238 */const z$=ne("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 239 * @license lucide-react v0.462.0 - ISC 240 * 241 * This source code is licensed under the ISC license. 242 * See the LICENSE file in the root directory of this source tree. 243 */const q$=ne("Sprout",[["path",{d:"M7 20h10",key:"e6iznv"}],["path",{d:"M10 20c5.5-2.5.8-6.4 3-10",key:"161w41"}],["path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z",key:"9gtqwd"}],["path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z",key:"bkxnd2"}]]);/** 244 * @license lucide-react v0.462.0 - ISC 245 * 246 * This source code is licensed under the ISC license. 247 * See the LICENSE file in the root directory of this source tree. 248 */const fv=ne("Stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]);/** 249 * @license lucide-react v0.462.0 - ISC 250 * 251 * This source code is licensed under the ISC license. 252 * See the LICENSE file in the root directory of this source tree. 253 */const H$=ne("Thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]);/** 254 * @license lucide-react v0.462.0 - ISC 255 * 256 * This source code is licensed under the ISC license. 257 * See the LICENSE file in the root directory of this source tree. 258 */const W$=ne("Waves",[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]]);/** 259 * @license lucide-react v0.462.0 - ISC 260 * 261 * This source code is licensed under the ISC license. 262 * See the LICENSE file in the root directory of this source tree. 263 */const V$=ne("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,906 bytes, line 263
263],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),kh="-",G$=e=>{const t=J$(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const l=o.split(kh);return l[0]===""&&l.length!==1&&l.shift(),pv(l,t)||K$(o)},getConflictingClassGroupIds:(o,l)=>{const c=n[o]||[];return l&&r[o]?[...c,...r[o]]:c}}},pv=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?pv(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(kh);return(o=t.validators.find(({validator:l})=>l(i)))==null?void 0:o.classGroupId},Ap=/^\[(.+)\]$/,K$=e=>{if(Ap.test(e)){const t=Ap.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},J$=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Q$(Object.entries(e.classGroups),n).forEach(([i,o])=>{Xd(o,r,i,t)}),r},Xd=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Rp(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(Y$(s)){Xd(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{Xd(o,Rp(t,i),n,r)})})},Rp=(e,t)=>{let n=e;return t.split(kh).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Y$=e=>e.isThemeGetter,Q$=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,l])=>[t+o,l])):i);return[n,s]}):e,X$=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}},mv="!",Z$=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,o=l=>{const c=[];let d=0,u=0,h;for(let b=0;b<l.length;b++){let g=l[b];if(d===0){if(g===s&&(r||l.slice(b,b+i)===t)){c.push(l.slice(u,b)),u=b+i;continue}if(g==="/"){h=b;continue}}g==="["?d++:g==="]"&&d--}const p=c.length===0?l:l.substring(u),f=p.startsWith(mv),x=f?p.substring(1):p,v=h&&h>u?h-u:void 0;return{modifiers:c,hasImportantModifier:f,baseClassName:x,maybePostfixModifierPosition:v}};return n?l=>n({className:l,parseClassName:o}):o},e4=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},t4=e=>({cache:X$(e.cacheSize),parseClassName:Z$(e),...G$(e)}),n4=/\s+/,r4=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],o=e.trim().split(n4);let l="";for(let c=o.length-1;c>=0;c-=1){const d=o[c],{modifiers:u,hasImportantModifier:h,baseClassName:p,maybePostfixModifierPosition:f}=n(d);let x=!!f,v=r(x?p.substring(0,f):p);if(!v){if(!x){l=d+(l.length>0?" "+l:l);continue}if(v=r(p),!v){l=d+(l.length>0?" "+l:l);continue}x=!1}const b=e4(u).join(":"),g=h?b+mv:b,m=g+v;if(i.includes(m))continue;i.push(m);const y=s(v,x);for(let $=0;$<y.length;++$){const S=y[$];i.push(g+S)}l=d+(l.length>0?" "+l:l)}return l};function s4(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=gv(t))&&(r&&(r+=" "),r+=n);return r}const gv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=gv(e[r]))&&(n&&(n+=" "),n+=t);return n};function i4(e,...t){let n,r,s,i=o;function o(c){const d=t.reduce((u,h)=>h(u),e());return n=t4(d),r=n.cache.get,s=n.cache.set,i=l,l(c)}function l(c){const d=r(c);if(d)return d;const u=r4(c,n);return s(c,u),u}return function(){return i(s4.apply(null,arguments))}}const de=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},vv=/^\[(?:([a-z-]+):)?(.+)\]$/i,o4=/^\d+\/\d+$/,a4=new Set(["px","full","screen"]),l4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,c4=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,d4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,u4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,h4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sn=e=>Rs(e)||a4.has(e)||o4.test(e),An=e=>ii(e,"length",b4),Rs=e=>!!e&&!Number.isNaN(Number(e)),Fc=e=>ii(e,"number",Rs),xi=e=>!!e&&Number.isInteger(Number(e)),f4=e=>e.endsWith("%")&&Rs(e.slice(0,-1)),Z=e=>vv.test(e),Rn=e=>l4.test(e),p4=new Set(["length","size","percentage"]),m4=e=>ii(e,p4,yv),g4=e=>ii(e,"position",yv),v4=new Set(["image","url"]),y4=e=>ii(e,v4,$4),x4=e=>ii(e,"",w4),bi=()=>!0,ii=(e,t,n)=>{const r=vv.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},b4=e=>c4.test(e)&&!d4.test(e),yv=()=>!1,w4=e=>u4.test(e),$4=e=>h4.test(e),S4=()=>{const e=de("colors"),t=de("spacing"),n=de("blur"),r=de("brightness"),s=de("borderColor"),i=de("borderRadius"),o=de("borderSpacing"),l=de("borderWidth"),c=de("contrast"),d=de("grayscale"),u=de("hueRotate"),h=de("invert"),p=de("gap"),f=de("gradientColorStops"),x=de("gradientColorStopPositions"),v=de("inset"),b=de("margin"),g=de("opacity"),m=de("padding"),y=de("saturate"),$=de("scale"),S=de("sepia"),E=de("skew"),_=de("space"),P=de("translate"),A=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",Z,t],F=()=>[Z,t],Y=()=>["",sn,An],L=()=>["auto",Rs,Z],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],K=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",Z],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[Rs,Z];return{cacheSize:500,separator:":",theme:{colors:[bi],spacing:[sn,An],blur:["none","",Rn,Z],brightness:z(),borderColor:[e],borderRadius:["n
263one","","full",Rn,Z],borderSpacing:F(),borderWidth:Y(),contrast:z(),grayscale:N(),hueRotate:z(),invert:N(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[f4,An],inset:W(),margin:W(),opacity:z(),padding:F(),saturate:z(),scale:z(),sepia:N(),skew:z(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[Rn]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),Z]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xi,Z]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",xi,Z]}],"grid-cols":[{"grid-cols":[bi]}],"col-start-end":[{col:["auto",{span:["full",xi,Z]},Z]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[bi]}],"row-start-end":[{row:["auto",{span:[xi,Z]},Z]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,t]}],"min-w":[{"min-w":[Z,t,"min","max","fit"]}],"max-w":[{"max-w":[Z,t,"none","full","min","max","fit","prose",{screen:[Rn]},Rn]}],h:[{h:[Z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Rn,An]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Fc]}],"font-family":[{font:[bi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",Rs,Fc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",sn,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",sn,An]}],"underline-offset":[{"underline-offset":["auto",sn,Z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),g4]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",m4]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},y4]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}
vendor: 5,172 bytes, line 263
263],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...K(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:K()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...K()]}],"outline-offset":[{"outline-offset":[sn,Z]}],"outline-w":[{outline:[sn,An]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[sn,An]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rn,x4]}],"shadow-color":[{shadow:[bi]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Rn,Z]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[y]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[$]}],"scale-x":[{"scale-x":[$]}],"scale-y":[{"scale-y":[$]}],rotate:[{rotate:[xi,Z]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,487 bytes, line 263
263],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[sn,An,Fc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},E4=i4(S4);function Kr(...e){return E4(dv(e))}const _4=h$,xv=w.forwardRef(({className:e,...t},n)=>a.jsx(rv,{ref:n,className:Kr("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));xv.displayName=rv.displayName;const k4=f$("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),bv=w.forwardRef(({className:e,variant:t,...n},r)=>a.jsx(sv,{ref:r,className:Kr(k4({variant:t}),e),...n}));bv.displayName=sv.displayName;const j4=w.forwardRef(({className:e,...t},n)=>a.jsx(av,{ref:n,className:Kr("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));
vendor: 3,536 bytes, line 263
263j4.displayName=av.displayName;const wv=w.forwardRef(({className:e,...t},n)=>a.jsx(lv,{ref:n,className:Kr("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:a.jsx(V$,{className:"h-4 w-4"})}));wv.displayName=lv.displayName;const $v=w.forwardRef(({className:e,...t},n)=>a.jsx(iv,{ref:n,className:Kr("text-sm font-semibold",e),...t}));$v.displayName=iv.displayName;const Sv=w.forwardRef(({className:e,...t},n)=>a.jsx(ov,{ref:n,className:Kr("text-sm opacity-90",e),...t}));Sv.displayName=ov.displayName;function N4(){const{toasts:e}=bw();return a.jsxs(_4,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return a.jsxs(bv,{...i,children:[a.jsxs("div",{className:"grid gap-1",children:[n&&a.jsx($v,{children:n}),r&&a.jsx(Sv,{children:r})]}),s,a.jsx(wv,{})]},t)}),a.jsx(xv,{})]})}const C4=["top","right","bottom","left"],lr=Math.min,at=Math.max,hl=Math.round,ha=Math.floor,tn=e=>({x:e,y:e}),P4={left:"right",right:"left",bottom:"top",top:"bottom"},T4={start:"end",end:"start"};function Zd(e,t,n){return at(e,lr(t,n))}function bn(e,t){return typeof e=="function"?e(t):e}function wn(e){return e.split("-")[0]}function oi(e){return e.split("-")[1]}function jh(e){return e==="x"?"y":"x"}function Nh(e){return e==="y"?"height":"width"}const A4=new Set(["top","bottom"]);function Xt(e){return A4.has(wn(e))?"y":"x"}function Ch(e){return jh(Xt(e))}function R4(e,t,n){n===void 0&&(n=!1);const r=oi(e),s=Ch(e),i=Nh(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=fl(o)),[o,fl(o)]}function O4(e){const t=fl(e);return[eu(e),t,eu(t)]}function eu(e){return e.replace(/start|end/g,t=>T4[t])}const Op=["left","right"],Lp=["right","left"],L4=["top","bottom"],I4=["bottom","top"];function D4(e,t,n){switch(e){case"top":case"bottom":return n?t?Lp:Op:t?Op:Lp;case"left":case"right":return t?L4:I4;default:return[]}}function M4(e,t,n,r){const s=oi(e);let i=D4(wn(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(eu)))),i}function fl(e){return e.replace(/left|right|bottom|top/g,t=>P4[t])}function F4(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ev(e){return typeof e!="number"?F4(e):{top:e,right:e,bottom:e,left:e}}function pl(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Ip(e,t,n){let{reference:r,floating:s}=e;const i=Xt(t),o=Ch(t),l=Nh(o),c=wn(t),d=i==="y",u=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,p=r[l]/2-s[l]/2;let f;switch(c){case"top":f={x:u,y:r.y-s.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:h};break;case"left":f={x:r.x-s.width,y:h};break;default:f={x:r.x,y:r.y}}switch(oi(t)){case"start":f[o]-=p*(n&&d?-1:1);break;case"end":f[o]+=p*(n&&d?-1:1);break}return f}const U4=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:h}=Ip(d,r,c),p=r,f={},x=0;for(let v=0;v<l.length;v++){const{name:b,fn:g}=l[v],{x:m,y,data:$,reset:S}=await g({x:u,y:h,initialPlacement:r,placement:p,strategy:s,middlewareData:f,re
vendor: 9,459 bytes, line 263
263cts:d,platform:o,elements:{reference:e,floating:t}});u=m??u,h=y??h,f={...f,[b]:{...f[b],...$}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(p=S.placement),S.rects&&(d=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:u,y:h}=Ip(d,p,c)),v=-1)}return{x:u,y:h,placement:p,strategy:s,middlewareData:f}};async function uo(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=bn(t,e),x=Ev(f),b=l[p?h==="floating"?"reference":"floating":h],g=pl(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),m=h==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),$=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},S=pl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:m,offsetParent:y,strategy:c}):m);return{top:(g.top-S.top+x.top)/$.y,bottom:(S.bottom-g.bottom+x.bottom)/$.y,left:(g.left-S.left+x.left)/$.x,right:(S.right-g.right+x.right)/$.x}}const B4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:o,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=bn(e,t)||{};if(d==null)return{};const h=Ev(u),p={x:n,y:r},f=Ch(s),x=Nh(f),v=await o.getDimensions(d),b=f==="y",g=b?"top":"left",m=b?"bottom":"right",y=b?"clientHeight":"clientWidth",$=i.reference[x]+i.reference[f]-p[f]-i.floating[x],S=p[f]-i.reference[f],E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let _=E?E[y]:0;(!_||!await(o.isElement==null?void 0:o.isElement(E)))&&(_=l.floating[y]||i.floating[x]);const P=$/2-S/2,A=_/2-v[x]/2-1,O=lr(h[g],A),W=lr(h[m],A),F=O,Y=_-v[x]-W,L=_/2-v[x]/2+P,J=Zd(F,L,Y),K=!c.arrow&&oi(s)!=null&&L!==J&&i.reference[x]/2-(L<F?O:W)-v[x]/2<0,G=K?L<F?L-F:L-Y:0;return{[f]:p[f]+G,data:{[f]:J,centerOffset:L-J-G,...K&&{alignmentOffset:G}},reset:K}}}),z4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:v=!0,...b}=bn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=wn(s),m=Xt(l),y=wn(l)===l,$=await(c.isRTL==null?void 0:c.isRTL(d.floating)),S=p||(y||!v?[fl(l)]:O4(l)),E=x!=="none";!p&&E&&S.push(...M4(l,v,x,$));const _=[l,...S],P=await uo(t,b),A=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&A.push(P[g]),h){const L=R4(s,o,$);A.push(P[L[0]],P[L[1]])}if(O=[...O,{placement:s,overflows:A}],!A.every(L=>L<=0)){var W,F;const L=(((W=i.flip)==null?void 0:W.index)||0)+1,J=_[L];if(J&&(!(h==="alignment"?m!==Xt(J):!1)||O.every(k=>k.overflows[0]>0&&Xt(k.placement)===m)))return{data:{index:L,overflows:O},reset:{placement:J}};let K=(F=O.filter(G=>G.overflows[0]<=0).sort((G,k)=>G.overflows[1]-k.overflows[1])[0])==null?void 0:F.placement;if(!K)switch(f){case"bestFit":{var Y;const G=(Y=O.filter(k=>{if(E){const N=Xt(k.placement);return N===m||N==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(N=>N>0).reduce((N,D)=>N+D,0)]).sort((k,N)=>k[1]-N[1])[0])==null?void 0:Y[0];G&&(K=G);break}case"initialPlacement":K=l;break}if(s!==K)return{reset:{placement:K}}}return{}}}};function Dp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Mp(e){return C4.some(t=>e[t]>=0)}const q4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=bn(e,t);switch(r){case"referenceHidden":{const i=await uo(t,{...s,elementContext:"reference"}),o=Dp(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Mp(o)}}}case"escaped":{const i=await uo(t,{...s,altBoundary:!0}),o=Dp(i,n.floating);return{data:{escapedOffsets:o,escaped:Mp(o)}}}default:return{}}}}},_v=new Set(["left","top"]);async function H4(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=wn(n),l=oi(n),c=Xt(n)==="y",d=_v.has(o)?-1:1,u=i&&c?-1:1,h=bn(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:x}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof x=="number"&&(f=l==="end"?x*-1:x),c?{x:f*u,y:p*d}:{x:p*d,y:f*u}}const W4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:l}=t,c=await H4(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},V4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:b=>{let{x:g,y:m}=b;return{x:g,y:m}}},...c}=bn(e,t),d={x:n,y:r},u=await uo(t,c),h=Xt(wn(s)),p=jh(h);let f=d[p],x=d[h];if(i){const b=p==="y"?"top":"left",g=p==="y"?"bottom":"right",m=f+u[b],y=f-u[g];f=Zd(m,f,y)}if(o){const b=h==="y"?"top":"left",g=h==="y"?"bottom":"right",m=x+u[b],y=x-u[g];x=Zd(m,x,y)}const v=l.fn({...t,[p]:f,[h]:x});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:i,[h]:o}}}}}},G4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=bn(e,t),u={x:n,y:r},h=Xt(s),p=jh(h);let f=u[p],x=u[h];const v=bn(l,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const y=p==="y"?"height":"width",$=i.reference[p]-i.floating[y]+b.mainAxis,S=i.reference[p]+i.reference[y]-b.mainAxis;f<$?f=$:f>S&&(f=S)}if(d){var g,m;const y=p==="y"?"width":"height",$=_v.has(wn(s)),S=i.reference[h]-i.floating[y]+($&&((g=o.offset)==null?void 0:g[h])||0)+($?0:b.crossAxis),E=i.reference[h]+i.reference[y]+($?0:((m=o.offset)==null?void 0:m[h])||0)-($?b.crossAxis:0);x<S?x=S:x>E&&(x=E)}return{[p]:f,[h]:x}}}},K4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:o,elements:l}=t,{apply:c=()=>{},...d}=bn(e,t),u=await uo(t,d),h=wn(s),p=oi(s),f=Xt(s)==="y",{width:x,height:v}=i.floating;let b,g;h==="top"||h==="bottom"?(b=h,g=p===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(g=h,b=p==="end"?"top":"bottom");const m=v-u.top-u.bottom,y=x-u.left-u.right,$=lr(v-u[b],m),S=lr(x-u[g],y),E=!t.middlewareData.shift;let _=$,P=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=m),E&&!p){const O=at(u.left,0),W=at(u.right,0),F=at(u.top,0),Y=at(u.bottom,0);f?P=x-2*(O!==0||W!==0?O+W:at(u.left,u.right)):_=v-2*(F!==0||Y!==0?F+Y:at(u.top,u.bottom))}await c({...t,availableWidth:P,availableHeight:_});const A=await o.getDimensions(l.floating);return x!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function Vl(){return typeof window<"u"}function ai(e){return kv(e)?(e.nodeName||"").toLowerCase():"#document"}function ut(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rn(e){var t;return(t=(kv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kv(e){return Vl()?e instanceof Node||e instanceof ut(e).Node:!1}function Ut(e){return Vl()?e instanceof Element||e instanceof ut(e).Element:!1}function nn(e){return Vl()?e instanceof HTMLElement||e instanceof ut(e).HTMLElement:!1}function Fp(e){return!Vl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ut(e).ShadowRoot}const J4=new Set(["inline","contents"]);function Do(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Bt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!J4.has(s)}const Y4=new Set(["table","td","th"]);function Q4(e){return Y4.has(ai(e))}const X4=[":popover-open",":modal"];function Gl(e){return X4.some(t=>{try{return e.matches(t)}catch{return!1}})}const Z4=["transform","translate","scale","rotate","perspective"],e5=["transform","translate","scale","rotate","perspective","filter"],t5=["paint","layout","strict","content"];function Ph(e){const t=Th(),n=Ut(e)?Bt(e):e;return Z4.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)||e5.some(r=>(n.willChange||"").includes(r))||t5.some(r=>(n.contain||"").includes(r))}function n5(e){let t=cr(e);for(;nn(t)&&!Xs(t);){if(Ph(t))return t;if(Gl(t))return null;t=cr(t)}return null}function Th(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const r5=new Set(["html","body","#document"]);function Xs(e){return r5.has(ai(e))}function Bt(e){return ut(e).getComputedStyle(e)}function Kl(e){return Ut(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cr(e){if(ai(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fp(e)&&e.host||rn(e);return Fp(t)?t.host:t}function jv(e){const t=cr(e);return Xs(t)?e.ownerDocument?e.ownerDocument.body:e.body:nn(t)&&Do(t)?t:jv(t)}
vendor: 4,109 bytes, line 263
263function ho(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=jv(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=ut(s);if(i){const l=tu(o);return t.concat(o,o.visualViewport||[],Do(s)?s:[],l&&n?ho(l):[])}return t.concat(s,ho(s,[],n))}function tu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nv(e){const t=Bt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=nn(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,l=hl(n)!==i||hl(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function Ah(e){return Ut(e)?e:e.contextElement}function Os(e){const t=Ah(e);if(!nn(t))return tn(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Nv(t);let o=(i?hl(n.width):n.width)/r,l=(i?hl(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const s5=tn(0);function Cv(e){const t=ut(e);return!Th()||!t.visualViewport?s5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function i5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ut(e)?!1:t}function qr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=Ah(e);let o=tn(1);t&&(r?Ut(r)&&(o=Os(r)):o=Os(e));const l=i5(i,n,r)?Cv(i):tn(0);let c=(s.left+l.x)/o.x,d=(s.top+l.y)/o.y,u=s.width/o.x,h=s.height/o.y;if(i){const p=ut(i),f=r&&Ut(r)?ut(r):r;let x=p,v=tu(x);for(;v&&r&&f!==x;){const b=Os(v),g=v.getBoundingClientRect(),m=Bt(v),y=g.left+(v.clientLeft+parseFloat(m.paddingLeft))*b.x,$=g.top+(v.clientTop+parseFloat(m.paddingTop))*b.y;c*=b.x,d*=b.y,u*=b.x,h*=b.y,c+=y,d+=$,x=ut(v),v=tu(x)}}return pl({width:u,height:h,x:c,y:d})}function Rh(e,t){const n=Kl(e).scrollLeft;return t?t.left+n:qr(rn(e)).left+n}function Pv(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=r.left+t.scrollLeft-(n?0:Rh(e,r)),i=r.top+t.scrollTop;return{x:s,y:i}}function o5(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",o=rn(r),l=t?Gl(t.floating):!1;if(r===o||l&&i)return n;let c={scrollLeft:0,scrollTop:0},d=tn(1);const u=tn(0),h=nn(r);if((h||!h&&!i)&&((ai(r)!=="body"||Do(o))&&(c=Kl(r)),nn(r))){const f=qr(r);d=Os(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}const p=o&&!h&&!i?Pv(o,c,!0):tn(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x+p.x,y:n.y*d.y-c.scrollTop*d.y+u.y+p.y}}function a5(e){return Array.from(e.getClientRects())}function l5(e){const t=rn(e),n=Kl(e),r=e.ownerDocument.body,s=at(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=at(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Rh(e);const l=-n.scrollTop;return Bt(r).direction==="rtl"&&(o+=at(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:l}}function c5(e,t){const n=ut(e),r=rn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,c=0;if(s){i=s.width,o=s.height;const d=Th();(!d||d&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:l,y:c}}const d5=new Set(["absolute","fixed"]);function u5(e,t){const n=qr(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=nn(e)?Os(e):tn(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,c=s*i.x,d=r*i.y;return{width:o,height:l,x:c,y:d}}function Up(e,t,n){let r;if(t==="viewport")r=c5(e,n);else if(t==="document")r=l5(rn(e));else if(Ut(t))r=u5(t,n);else{const s=Cv(e);r={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return pl(r)}function Tv(e,t){const n=cr(e);return n===t||!Ut(n)||Xs(n)?!1:Bt(n).position==="fixed"||Tv(n,t)}function h5(e,t){const n=t.get(e);if(n)return n;let r=ho(e,[],!1).filter(l=>Ut(l)&&ai(l)!=="body"),s=null;const i=Bt(e).position==="fixed";let o=i?cr(e):e;for(;Ut(o)&&!Xs(o);){const l=Bt(o),c=Ph(o);!c&&l.position==="fixed"&&(s=null),(i?!c&&!s:!c&&l.position==="static"&&!!s&&d5.has(s.position)||Do(o)&&!c&&Tv(e,o))?r=r.filter(u=>u!==o):s=l,o=cr(o)}return t.set(e,r),r}function f5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Gl(t)?[]:h5(t,this._c):[].concat(n),r],l=o[0],c=o.reduce((d,u)=>{const h=Up(t,u,s);return d.top=at(h.top,d.top),d.right=lr(h.right,d.right),d.bottom=lr(h.bottom,d.bottom),d.left
vendor: 9,804 bytes, line 263
263=at(h.left,d.left),d},Up(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function p5(e){const{width:t,height:n}=Nv(e);return{width:t,height:n}}function m5(e,t,n){const r=nn(t),s=rn(t),i=n==="fixed",o=qr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=tn(0);function d(){c.x=Rh(s)}if(r||!r&&!i)if((ai(t)!=="body"||Do(s))&&(l=Kl(t)),r){const f=qr(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else s&&d();i&&!r&&s&&d();const u=s&&!r&&!i?Pv(s,l):tn(0),h=o.left+l.scrollLeft-c.x-u.x,p=o.top+l.scrollTop-c.y-u.y;return{x:h,y:p,width:o.width,height:o.height}}function Uc(e){return Bt(e).position==="static"}function Bp(e,t){if(!nn(e)||Bt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return rn(e)===n&&(n=n.ownerDocument.body),n}function Av(e,t){const n=ut(e);if(Gl(e))return n;if(!nn(e)){let s=cr(e);for(;s&&!Xs(s);){if(Ut(s)&&!Uc(s))return s;s=cr(s)}return n}let r=Bp(e,t);for(;r&&Q4(r)&&Uc(r);)r=Bp(r,t);return r&&Xs(r)&&Uc(r)&&!Ph(r)?n:r||n5(e)||n}const g5=async function(e){const t=this.getOffsetParent||Av,n=this.getDimensions,r=await n(e.floating);return{reference:m5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function v5(e){return Bt(e).direction==="rtl"}const y5={convertOffsetParentRelativeRectToViewportRelativeRect:o5,getDocumentElement:rn,getClippingRect:f5,getOffsetParent:Av,getElementRects:g5,getClientRects:a5,getDimensions:p5,getScale:Os,isElement:Ut,isRTL:v5};function Rv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function x5(e,t){let n=null,r;const s=rn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:u,top:h,width:p,height:f}=d;if(l||t(),!p||!f)return;const x=ha(h),v=ha(s.clientWidth-(u+p)),b=ha(s.clientHeight-(h+f)),g=ha(u),y={rootMargin:-x+"px "+-v+"px "+-b+"px "+-g+"px",threshold:at(0,lr(1,c))||1};let $=!0;function S(E){const _=E[0].intersectionRatio;if(_!==c){if(!$)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!Rv(d,e.getBoundingClientRect())&&o(),$=!1}try{n=new IntersectionObserver(S,{...y,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(e)}return o(!0),i}function b5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=Ah(e),u=s||i?[...d?ho(d):[],...ho(t)]:[];u.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const h=d&&l?x5(d,n):null;let p=-1,f=null;o&&(f=new ResizeObserver(g=>{let[m]=g;m&&m.target===d&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),n()}),d&&!c&&f.observe(d),f.observe(t));let x,v=c?qr(e):null;c&&b();function b(){const g=qr(e);v&&!Rv(v,g)&&n(),v=g,x=requestAnimationFrame(b)}return n(),()=>{var g;u.forEach(m=>{s&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),h==null||h(),(g=f)==null||g.disconnect(),f=null,c&&cancelAnimationFrame(x)}}const w5=W4,$5=V4,S5=z4,E5=K4,_5=q4,zp=B4,k5=G4,j5=(e,t,n)=>{const r=new Map,s={platform:y5,...n},i={...s.platform,_c:r};return U4(e,t,{...s,platform:i})};var N5=typeof document<"u",C5=function(){},Da=N5?w.useLayoutEffect:C5;function ml(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,s;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(!ml(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!ml(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ov(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qp(e,t){const n=Ov(e);return Math.round(t*n)/n}function Bc(e){const t=w.useRef(e);return Da(()=>{t.current=e}),t}function P5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,h]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=w.useState(r);ml(p,r)||f(r);const[x,v]=w.useState(null),[b,g]=w.useState(null),m=w.useCallback(k=>{k!==E.current&&(E.current=k,v(k))},[]),y=w.useCallback(k=>{k!==_.current&&(_.current=k,g(k))},[]),$=i||x,S=o||b,E=w.useRef(null),_=w.useRef(null),P=w.useRef(u),A=c!=null,O=Bc(c),W=Bc(s),F=Bc(d),Y=w.useCallback(()=>{if(!E.current||!_.current)return;const k={placement:t,strategy:n,middleware:p};W.current&&(k.platform=W.current),j5(E.current,_.current,k).then(N=>{const D={...N,isPositioned:F.current!==!1};L.current&&!ml(P.current,D)&&(P.current=D,Oo.flushSync(()=>{h(D)}))})},[p,t,n,W,F]);Da(()=>{d===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,h(k=>({...k,isPositioned:!1})))},[d]);const L=w.useRef(!1);Da(()=>(L.current=!0,()=>{L.current=!1}),[]),Da(()=>{if($&&(E.current=$),S&&(_.current=S),$&&S){if(O.current)return O.current($,S,Y);Y()}},[$,S,Y,O,A]);const J=w.useMemo(()=>({reference:E,floating:_,setReference:m,setFloating:y}),[m,y]),K=w.useMemo(()=>({reference:$,floating:S}),[$,S]),G=w.useMemo(()=>{const k={position:n,left:0,top:0};if(!K.floating)return k;const N=qp(K.floating,u.x),D=qp(K.floating,u.y);return l?{...k,transform:"translate("+N+"px, "+D+"px)",...Ov(K.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:D}},[n,l,K.floating,u.x,u.y]);return w.useMemo(()=>({...u,update:Y,refs:J,elements:K,floatingStyles:G}),[u,Y,J,K,G])}const T5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?zp({element:r.current,padding:s}).fn(n):{}:r?zp({element:r,padding:s}).fn(n):{}}}},A5=(e,t)=>({...w5(e),options:[e,t]}),R5=(e,t)=>({...$5(e),options:[e,t]}),O5=(e,t)=>({...k5(e),options:[e,t]}),L5=(e,t)=>({...S5(e),options:[e,t]}),I5=(e,t)=>({...E5(e),options:[e,t]}),D5=(e,t)=>({..._5(e),options:[e,t]}),M5=(e,t)=>({...T5(e),options:[e,t]});var F5="Arrow",Lv=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return a.jsx(st.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:a.jsx("polygon",{points:"0,0 30,0 15,10"})})});Lv.displayName=F5;var U5=Lv;function B5(e){const[t,n]=w.useState(void 0);return ar(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,l;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;o=d.inlineSize,l=d.blockSize}else o=e.offsetWidth,l=e.offsetHeight;n({width:o,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Iv="Popper",[Dv,Mv]=ql(Iv),[vk,Fv]=Dv(Iv),Uv="PopperAnchor",Bv=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=Fv(Uv,n),o=w.useRef(null),l=Ft(t,o);return w.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:a.jsx(st.div,{...s,ref:l})});Bv.displayName=Uv;var Oh="PopperContent",[z5,q5]=Dv(Oh),zv=w.forwardRef((e,t)=>{var ie,Jr,_n,pr,kn,Yr;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:x,...v}=e,b=Fv(Oh,n),[g,m]=w.useState(null),y=Ft(t,jn=>m(jn)),[$,S]=w.useState(null),E=B5($),_=(E==null?void 0:E.width)??0,P=(E==null?void 0:E.height)??0,A=r+(i!=="center"?"-"+i:""),O=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},W=Array.isArray(d)?d:[d],F=W.length>0,Y={padding:O,boundary:W.filter(W5),altBoundary:F},{refs:L,floatingStyles:J,placement:K,isPositioned:G,middlewareData:k}=P5({strategy:"fixed",placement:A,whileElementsMounted:(...jn)=>b5(...jn,{animationFrame:f==="always"}),elements:{reference:b.anchor},middleware:[A5({mainAxis:s+P,alignmentAxis:o}),c&&R5({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?O5():void 0,...Y}),c&&L5({...Y}),I5({...Y,apply:({elements:jn,rects:Bo,availableWidth:rc,availableHeight:zo})=>{const{width:sc,height:ci}=Bo.reference,Qr=jn.floating.style;Qr.setProperty("--radix-popper-available-width",`${rc}px`),Qr.setProperty("--radix-popper-available-height",`${zo}px`),Qr.setProperty("--radix-popper-anchor-width",`${sc}px`),Qr.setProperty("--radix-popper-anchor-height",`${ci}px`)}}),$&&M5({element:$,padding:l}),V5({arrowWidth:_,arrowHeight:P}),p&&D5({strategy:"referenceHidden",...Y})]}),[N,D]=Wv(K),z=or(x);ar(()=>{G&&(z==null||z())},[G,z]);const q=(ie=k.arrow)==null?void 0:ie.x,C=(Jr=k.arrow)==null?void 0:Jr.y,I=((_n=k.arrow)==null?void 0:_n.centerOffset)!==0,[ee,ge]=w.useState();return ar(()=>{g&&ge(window.getComputedStyle(g).zIndex)},[g]),a.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:G?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(pr=k.transformOrigin)==null?void 0:pr.x,(kn=k.transformOrigin)==null?void 0:kn.y].join(" "),...((Yr=k.hide)==null?void 0:Yr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:a.jsx(z5,{scope:n,placedSide:N,onArrowChange:S,arrowX:q,arrowY:C,shouldHideArrow:I,children:a.jsx(st.div,{"data-side":N,"data-align":D,...v,ref:y,style:{...v.style,animation:G?void 0:"none"}})})})});zv.displayName=Oh;var qv="PopperArrow",H5={top:"bottom",right:"left",bottom:"top",left:"r
263ight"},Hv=w.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=q5(qv,r),o=H5[i.placedSide];return a.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:a.jsx(U5,{...s,ref:n,style:{...s.style,display:"block"}})})});Hv.displayName=qv;function W5(e){return e!==null}var V5=e=>({name:"transformOrigin",options:e,fn(t){var b,g,m;const{placement:n,rects:r,middlewareData:s}=t,o=((b=s.arrow)==null?void 0:b.centerOffset)!==0,l=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[d,u]=Wv(n),h={start:"0%",center:"50%",end:"100%"}[u],p=(((g=s.arrow)==null?void 0:g.x)??0)+l/2,f=(((m=s.arrow)==null?void 0:m.y)??0)+c/2;let x="",v="";return d==="bottom"?(x=o?h:`${p}px`,v=`${-c}px`):d==="top"?(x=o?h:`${p}px`,v=`${r.floating.height+c}px`):d==="right"?(x=`${-c}px`,v=o?h:`${f}px`):d==="left"&&(x=`${r.floating.width+c}px`,v=o?h:`${f}px`),{data:{x,y:v}}}});function Wv(e){const[t,n="center"]=e.split("-");return[t,n]}var G5=Bv,K5=zv,J5=Hv,[Jl,yk]=ql("Tooltip",[Mv]),Lh=Mv(),Vv="TooltipProvider",Y5=700,Hp="tooltip.open",[Q5,Gv]=Jl(Vv),Kv=e=>{const{__scopeTooltip:t,delayDuration:n=Y5,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,o=w.useRef(!0),l=w.useRef(!1),c=w.useRef(0);return w.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),a.jsx(Q5,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:w.useCallback(d=>{l.current=d},[]),disableHoverableContent:s,children:i})};Kv.displayName=Vv;var Jv="Tooltip",[xk,Yl]=Jl(Jv),nu="TooltipTrigger",X5=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Yl(nu,n),i=Gv(nu,n),o=Lh(n),l=w.useRef(null),c=Ft(t,l,s.onTriggerChange),d=w.useRef(!1),u=w.useRef(!1),h=w.useCallback(()=>d.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),a.jsx(G5,{asChild:!0,...o,children:a.jsx(st.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:Ce(e.onPointerMove,p=>{p.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:Ce(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:Ce(e.onPointerDown,()=>{s.open&&s.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Ce(e.onFocus,()=>{d.current||s.onOpen()}),onBlur:Ce(e.onBlur,s.onClose),onClick:Ce(e.onClick,s.onClose)})})});X5.displayName=nu;var Z5="TooltipPortal",[bk,e8]=Jl(Z5,{forceMount:void 0}),Zs="TooltipContent",Yv=w.forwardRef((e,t)=>{const n=e8(Zs,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,o=Yl(Zs,e.__scopeTooltip);return a.jsx(wh,{present:r||o.open,children:o.disableHoverableContent?a.jsx(Qv,{side:s,...i,ref:t}):a.jsx(t8,{side:s,...i,ref:t})})}),t8=w.forwardRef((e,t)=>{const n=Yl(Zs,e.__scopeTooltip),r=Gv(Zs,e.__scopeTooltip),s=w.useRef(null),i=Ft(t,s),[o,l]=w.useState(null),{trigger:c,onClose:d}=n,u=s.current,{onPointerInTransitChange:h}=r,p=w.useCallback(()=>{l(null),h(!1)},[h]),f=w.useCallback((x,v)=>{const b=x.currentTarget,g={x:x.clientX,y:x.clientY},m=o8(g,b.getBoundingClientRect()),y=a8(g,m),$=l8(v.getBoundingClientRect()),S=d8([...y,...$]);l(S),h(!0)},[h]);return w.useEffect(()=>()=>p(),[p]),w.useEffect(()=>{if(c&&u){const x=b=>f(b,u),v=b=>f(b,c);return c.addEventListener("pointerleave",x),u.addEventListener("pointerleave",v),()=>{c.removeEventListener("pointerleave",x),u.removeEventListener("pointerleave",v)}}},[c,u,f,p]),w.useEffect(()=>{if(o){const x=v=>{const b=v.target,g={x:v.clientX,y:v.clientY},m=(c==null?void 0:c.contains(b))||(u==null?void 0:u.contains(b)),y=!c8(g,o);m?p():y&&(p(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[c,u,o,d,p]),a.jsx(Qv,{...e,ref:i})}),[n8,r8]=Jl(Jv,{isInside:!1}),s8=Sw("TooltipContent"),Qv=w.forwardRef((e,t)=>
vendor: 5,134 bytes, line 263
263{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...l}=e,c=Yl(Zs,n),d=Lh(n),{onClose:u}=c;return w.useEffect(()=>(document.addEventListener(Hp,u),()=>document.removeEventListener(Hp,u)),[u]),w.useEffect(()=>{if(c.trigger){const h=p=>{const f=p.target;f!=null&&f.contains(c.trigger)&&u()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,u]),a.jsx(bh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:u,children:a.jsxs(K5,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[a.jsx(s8,{children:r}),a.jsx(n8,{scope:n,isInside:!0,children:a.jsx(Kw,{id:c.contentId,role:"tooltip",children:s||r})})]})})});Yv.displayName=Zs;var Xv="TooltipArrow",i8=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=Lh(n);return r8(Xv,n).isInside?null:a.jsx(J5,{...s,...r,ref:t})});i8.displayName=Xv;function o8(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function a8(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function l8(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function c8(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const l=t[i],c=t[o],d=l.x,u=l.y,h=c.x,p=c.y;u>r!=p>r&&n<(h-d)*(r-u)/(p-u)+d&&(s=!s)}return s}function d8(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),u8(t)}function u8(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var h8=Kv,Zv=Yv;const f8=h8,p8=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(Zv,{ref:r,sideOffset:t,className:Kr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));p8.displayName=Zv.displayName;const m8=()=>a.jsx("div",{className:"bg-lila py-2 px-3 text-center",children:a.jsxs("p",{className:"text-white text-[11px] sm:text-sm font-body leading-snug",children:["ð¸ Acceso anticipado · $9.99/mes para siempre"," ",a.jsx("span",{className:"block sm:inline",children:"â antes del lanzamiento público"})]})}),Mo=()=>{const{pathname:e}=fr(),t=e==="/para-profesionales";return a.jsx("nav",{className:"bg-white border-b border-ov-border sticky top-0 z-40",children:a.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-4 flex items-center justify-between",children:[a.jsxs(As,{to:"/",className:"font-display text-xl font-bold",children:[a.jsx("span",{className:"text-navy",children:"ovulación"}),a.jsx("span",{className:"text-lila",children:".ai"})]}),t?a.jsx(As,{to:"/",className:"font-body text-sm text-ov-text-mid hover:text-lila transition-colors",children:"â Para pacientes"}):a.jsx(As,{to:"/para-profesionales",className:"font-body text-sm text-ov-text-mid hover:text-lila transition-colors",children:"Para profesionales â"})]})})},M={primary:"#9B6FA8",primaryHover:"#8659A0",secondary:"#C8A4D4",card:"#F5EFF9",bg:"#FDFAF7",surface:"#FFFFFF",ink:"#1C1024",inkSoft:"#6B5670",green:"#2D9E6B",amber:"#D4920A",red:"#E05A6B",border:"hsl(283 32% 89%)",ring:"hsl(18 60% 94%)",muted:"hsl(50 4% 52%)"},he={menstrual:"hsl(15 83% 71%)",folicular:"hsl(244 75% 88%)",fertilSoft:"hsl(160 53% 75%)",fertilPeak:"hsl(161 69% 37%)",lutea:"hsl(42 94% 72%)",premenstrual:"hsl(338 72% 75%)",flor:"hsl(338 61% 58%)"},Wp=[4200,4800,6400,7600],g8=["No estoy exagerando","Tres minutos","El cÃrculo","La consulta"],v8=[{title:"Mi DÃa",sub:"Cómo te sientes hoy",time:"21:40",tab:2},{title:"Mi DÃa",sub:"Cómo te sientes hoy",time:"07:15",tab:2}
263,{title:"Mi Ciclo",sub:"Calendario y fases",time:"07:16",tab:1},{title:"Mi Consulta",sub:"Tu consulta y evidencia",time:"18:20",tab:4}],Vp=[{label:"Inicio",Icon:R$},{label:"Mi Ciclo",Icon:x$},{label:"Mi DÃa",Icon:z$},{label:"Mi Plan",Icon:F$},{label:"Mi Consulta",Icon:fv}],$r=160,ru=120,Fi=86,y8=28,Gp=Math.PI/180,gl=e=>-Math.PI/2+(e-1)/y8*2*Math.PI,vl=(e,t=Fi)=>[$r+t*Math.cos(e),ru+t*Math.sin(e)];function wi(e,t){const n=gl(e)-.5*Gp,r=gl(t)+.5*Gp,[s,i]=vl(n),[o,l]=vl(r),c=r-n>Math.PI?1:0;return{d:`M ${s} ${i} A ${Fi} ${Fi} 0 ${c} 1 ${o} ${l}`,len:Fi*(r-n)}}const zc=[{...wi(1,5),color:he.menstrual,w:11,o:.92},{...wi(6,8),color:he.folicular,w:11,o:.78},{...wi(9,15),color:"url(#hv-fertil)",w:13,o:1},{...wi(16,25),color:he.lutea,w:11,o:.92},{...wi(26,28),color:he.premenstrual,w:11,o:.72}],x8=[36.28,36.22,36.31,36.25,36.3,36.24,36.33,36.27,36.31,36.26,36.3,36.22,36.15,36.19,36.48,36.58,36.62,36.57,36.66,36.61,36.7,36.64,36.68,36.72,36.66,36.63,36.58,36.44],b8=Array.from({length:28},(e,t)=>{const n=t+1;return n<=5?{letter:"",bg:he.menstrual,fg:"#fff"}:n<=8?{letter:"S",bg:"#E6E2E8",fg:M.inkSoft}:n<=10?{letter:"C",bg:he.lutea,fg:M.ink}:n===11?{letter:"A",bg:he.fertilSoft,fg:M.ink}:n<=14?{letter:"E",bg:he.fertilPeak,fg:"#fff"}:n===15?{letter:"A",bg:he.fertilSoft,fg:M.ink}:n<=17?{letter:"C",bg:he.lutea,fg:M.ink}:{letter:"S",bg:"#E6E2E8",fg:M.inkSoft}}),w8=` 264@keyframes hv-in { from { opacity:0; transform: translateY(8px);} to { opacity:1; transform:none; } } 265@keyframes hv-pop { from { opacity:0; transform: scale(.6);} to { opacity:1; transform: scale(1); } } 266@keyframes hv-dot { 0%,100% { opacity:.35; transform: translateY(0);} 50% { opacity:1; transform: translateY(-2px);} } 267@keyframes hv-pulse { 0% { box-shadow: 0 0 0 0 rgba(155,111,168,.5);} 100% { box-shadow: 0 0 0 12px rgba(155,111,168,0);} } 268@keyframes hv-fill { from { width: 0% } to { width: 100% } } 269@keyframes hv-blink { 0%,100% { opacity:1 } 50% { opacity:.3 } } 270.hv-in { animation: hv-in .42s ease-out both; } 271.hv-pop { animation: hv-pop .5s cubic-bezier(.34,1.56,.64,1) both; } 272`,$8=()=>{const e=w.useRef(null),t=w.useRef([]),[n,r]=w.useState(!1),[s,i]=w.useState(!1),[o,l]=w.useState(0),[c,d]=w.useState({}),[u,h]=w.useState(0),[p,f]=w.useState(1),x=()=>{t.current.forEach(C=>window.clearTimeout(C)),t.current=[]},v=(C,I)=>{t.current.push(window.setTimeout(I,C))},b=(C,I)=>v(I,()=>d(ee=>({...ee,[C]:!0})));w.useEffect(()=>{const C=window.matchMedia("(prefers-reduced-motion: reduce)"),I=()=>i(C.matches);return I(),C.addEventListener("change",I),()=>C.removeEventListener("change",I)},[]),w.useEffect(()=>{if(s||n)return;const C=e.current;if(!C)return;const I=new IntersectionObserver(ee=>{ee.some(ge=>ge.isIntersecting)&&(r(!0),I.disconnect())},{threshold:.3});return I.observe(C),()=>I.disconnect()},[s,n]),w.useEffect(()=>{if(!(s||!n))return x(),d({}),h(0),f(1),o===0?(b("m0",0),b("typing",900),b("m1",1500),b("m2",2300),b("close",3e3)):o===1?([0,620,1240,1860].forEach((C,I)=>b(`row${I}`,C)),b("card",2600),b("close",3500)):o===2?(zc.forEach((C,I)=>v(300+I*320,()=>h(I+1))),b("flor",2100),b("today",2500),v(2500,()=>{const C=performance.now(),I=()=>{const ee=Math.min(1,(performance.now()-C)/900);f(Math.max(1,Math.round(ee*24))),ee<1&&requestAnimationFrame(I)};requestAnimationFrame(I)}),b("traffic",3400),b("close",4300)):([0,470,940,1410,1880,2350].forEach((C,I)=>b(`s${I}`,C)),b("scroll",3600),b("pulse",6600)),v(Wp[o],()=>l(C=>(C+1)%4)),x},[o,n,s]);const g=s,m=C=>g||!!c[C],y=s?2:o,$=v8[y],S=s?zc.length:u,E=s?24:p,_=()=>a.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:M.green,strokeWidth:"3.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:a.jsx("polyline",{points:"20 6 9 17 4 12"})}),P=({children:C})=>a.jsx("div",{style:{fontSize:8.5,letterSpacing:1.2,fontWeight:700,color:M.primary,marginBottom:5},children:C}),A=a.jsxs("div",{style:{padding:"14px 12px",display:"flex",flexDirection:"column",gap:8},children:[m("m0")&&a.jsx("div",{className:"hv-in",style:{alignSelf:"flex-end",maxWidth:"82%",background:M.primary,color:"#fff",borderRadius:"14px 14px 4px 14px",padding:"8px 11px",fontSize:11,lineHeight:1.35},children:"Otra vez el dolor. Como cada mes por estas fechas."}),m("typing")&&!m("m1")&&a.jsxs("div",{className:"hv-in",style:{display:"flex",alignItems:"center",gap:6},children:[a.jsx("span",{style:{width:18,height:18,borderRadius:999,background:M.primary,display:"inline-block"}}),a.jsx("span",{style:{background:M.card,borderRadius:12,padding:"7px 10px",display:"inline-flex",gap:3},children:[0,1,2].map(C=>a.jsx("span",{style:{width:4,height:4,borderRadius:999,background:M.primary,animation:`hv-dot 1s ${C*.15}s infinite`}},C))})]}),m("m1")&&a.jsxs("div",{className:"hv-in",style:{display:"flex",gap:6,alignItems:"flex-end"},children:[a.jsx("span",{style:{width:18,height:18,borderRadius:999,background:M.primary,flexShrink:0}}),a.jsx("div",{style:{maxWidth:"82%",background:M.card,color:M.ink,borderRadius:"14px 14px 14px 4px",padding:"8px 11px",fontSize:11,lineHeight:1.35},children:"Estás en el dÃa 24 de tu ciclo. ¿Del 1 al 10, cuánto?"})]}),m("m2")&&a.jsx("div",{className:"hv-in",style:{alignSelf:"flex-end",background:M.primary,color:"#fff",borderRadius:"14px 14px 4px 14px",padding:"8px 14px",fontSize:12,fontWeight:600},children:"8"}),m("close")&&a.jsxs("div",{className:"hv-in",style:{marginTop:"auto",textAlign:"center",padding:"16px 10px 4px",fontFamily:"'Playfair Display', Georgia, serif",fontSize:16,lineHeight:1.35,color:M.ink},children:["Llevas ",a.jsx("strong",{children:"6 años"})," sin nombre para esto."]})]}),O=[["Temperatura basal","36,4 °C"],["Moco cervical","clara de huevo"],["Dolor","8 / 10"],["Ãnimo","irritable"]],W=a.jsxs("div",{style:{padding:"14px 12px"},children:[a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:5,marginBottom:8},children:[a.jsx("span",{style:{width:5,height:5,borderRadius:999,background:M.primary,animation:"hv-blink 1.4s infinite"}}),a.jsx("span",{style:{fontSize:8.5,letterSpacing:1.2,fontWeight:700,color:M.primary},children:"TU REGISTRO DE HOY"})]}),a.jsx("div",{style:{display:"flex",flexDirection:"column",gap:6},children:O.map(([C,I],ee)=>m(`row${ee}`)?a.jsxs("div",{className:"hv-in",style:{display:"flex",alignItems:"center",justifyContent:"space-between",background:M.surface,border:`1px solid ${M.border}`,borderRadius:10,padding:"7px 10px"},children:[a.jsx("span",{style:{fontSize:10.5,color:M.inkSoft},children:C}),a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:5,fontSize:10.5,fontWeight:600,color:M.ink},children:[I," ",a.jsx(_,{})]})]},C):null)}),m("card")&&a.jsxs("div",{className:"hv-in",style:{marginTop:10,background:M.card,border:"1px solid rgba(200,164,212,.3)",borderRadius:14,padding:11},children:[a.jsx("div",{style:{fontSize:11.5,fontWeight:700,color:M.ink},children:"¿Cómo te sientes hoy?"}),a.jsx("div",{style:{fontSize:9.5,color:M.inkSoft,margin:"3px 0 8px",lineHeight:1.35},children:"Cuéntame cómo has dormido, cómo va el dolor y qué has notado"}),a.jsx("div",{style:{background:M.primary,color:"#fff",borderRadius:9,padding:"7px 0",textAlign:"center",fontSize:10.5,fontWeight:600},children:"Hablar con Luna â"}),a.jsx("div",{style:{fontSize:8.5,color:M.muted,textAlign:"center",marginTop:6},children:"Conversación guiada · ~3 minutos"})]}),m("close")&&a.jsx("div",{className:"hv-in",style:{marginTop:10,background:"rgba(155,111,168,.08)",borderRadius:12,padding:"12px 10px",textAlign:"center",fontFamily:"'Playfair Display', Georgia, serif",fontSize:14,fontWeight:700,color:M.ink},children:"No adivinamos. Leemos tu patrón."})]}),[F,Y]=vl(gl(14)),[L,J]=vl(gl(24)),K=[{l:"Ovulación",c:he.flor,flower:!0},{l:"Fértil",c:he.fertilPeak},{l:"Folicular",c:he.folicular},{l:"Lútea",c:he.lutea},{l:"Premenstrual",c:he.premenstrual},{l:"Menstrual",c:he.menstrual}
272],G=a.jsxs("div",{style:{padding:"6px 10px 10px"},children:[a.jsxs("svg",{viewBox:"0 0 320 240",width:"100%",role:"img","aria-label":"CÃrculo del ciclo menstrual de 28 dÃas. DÃa 24, fase lútea. Ovulación estimada el dÃa 14 y ventana fértil del dÃa 9 al 15.",style:{display:"block"},children:[a.jsxs("defs",{children:[a.jsxs("radialGradient",{id:"hv-glow",children:[a.jsx("stop",{offset:"0%",stopColor:"#9B6FA8",stopOpacity:"0.10"}),a.jsx("stop",{offset:"55%",stopColor:"#9B6FA8",stopOpacity:"0.04"}),a.jsx("stop",{offset:"100%",stopColor:"#9B6FA8",stopOpacity:"0"})]}),a.jsxs("linearGradient",{id:"hv-fertil",x1:"0",y1:"0",x2:"1",y2:"1",children:[a.jsx("stop",{offset:"0%",stopColor:he.fertilSoft}),a.jsx("stop",{offset:"50%",stopColor:he.fertilPeak}),a.jsx("stop",{offset:"100%",stopColor:he.fertilSoft})]}),a.jsxs("radialGradient",{id:"hv-today",children:[a.jsx("stop",{offset:"0%",stopColor:"#9B6FA8",stopOpacity:"0.35"}),a.jsx("stop",{offset:"100%",stopColor:"#9B6FA8",stopOpacity:"0"})]})]}),a.jsx("circle",{cx:$r,cy:ru,r:115,fill:"url(#hv-glow)"}),a.jsx("circle",{cx:$r,cy:ru,r:Fi,fill:"none",stroke:M.ring,strokeWidth:3,opacity:.6}),zc.map((C,I)=>a.jsx("path",{d:C.d,fill:"none",stroke:C.color,strokeWidth:C.w,strokeLinecap:"round",opacity:C.o,strokeDasharray:C.len,strokeDashoffset:I<S?0:C.len,style:{transition:"stroke-dashoffset .55s ease-out"}},I)),m("flor")&&a.jsx("g",{transform:`translate(${F} ${Y})`,children:a.jsxs("g",{className:"hv-pop",style:{transformOrigin:"center"},children:[a.jsx("circle",{r:"9",fill:"#FFFFFF",stroke:he.fertilPeak,strokeWidth:"1.5",opacity:"0.95"}),a.jsx("path",{d:"M0,-4.5 C2,-4.5 3.5,-2 2,0 C3.5,2 2,4.5 0,4.5 C-2,4.5 -3.5,2 -2,0 C-3.5,-2 -2,-4.5 0,-4.5",fill:he.flor}),a.jsx("circle",{r:"1.5",fill:he.lutea})]})}),m("today")&&a.jsxs("g",{className:"hv-pop",style:{transformOrigin:`${L}px ${J}px`},children:[a.jsx("circle",{cx:L,cy:J,r:"22",fill:"url(#hv-today)"}),a.jsx("circle",{cx:L,cy:J,r:"14",fill:"#9B6FA8",opacity:"0.18"}),a.jsx("circle",{cx:L,cy:J,r:"8",fill:"#9B6FA8",opacity:"0.32"}),a.jsx("circle",{cx:L,cy:J,r:"5",fill:"#9B6FA8"}),a.jsx("circle",{cx:L,cy:J,r:"2",fill:"#FFFFFF"})]}),a.jsx("text",{x:$r,y:105,textAnchor:"middle",fontSize:"9",letterSpacing:"3",fill:M.muted,children:"DÃA"}),a.jsx("text",{x:$r,y:142,textAnchor:"middle",fontSize:"48",fontWeight:"300",fontFamily:"Georgia, serif",fill:"hsl(279 38% 10%)",children:E}),a.jsx("text",{x:$r,y:158,textAnchor:"middle",fontSize:"11",fontWeight:"500",fill:he.lutea,children:"Lútea"}),a.jsx("line",{x1:"135",y1:"170",x2:"185",y2:"170",stroke:M.border,strokeWidth:"0.8"}),a.jsx("text",{x:$r,y:181,textAnchor:"middle",fontSize:"8",fill:M.muted,children:"Regla estimada el 14 ago"})]}),a.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:"4px 6px",marginTop:2},children:K.map(C=>a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4,fontSize:9.5,color:M.inkSoft},children:[C.flower?a.jsx("svg",{width:"9",height:"9",viewBox:"-5 -5 10 10","aria-hidden":"true",children:a.jsx("path",{d:"M0,-4.5 C2,-4.5 3.5,-2 2,0 C3.5,2 2,4.5 0,4.5 C-2,4.5 -3.5,2 -2,0 C-3.5,-2 -2,-4.5 0,-4.5",fill:he.flor})}):a.jsx("span",{style:{width:6,height:6,borderRadius:999,background:C.c}}),C.l]},C.l))}),m("traffic")&&a.jsxs("div",{className:"hv-in",style:{marginTop:8,background:"#FBF1DC",border:"1px solid #EBD49E",borderRadius:16,padding:"7px 11px",display:"flex",alignItems:"center",gap:7},children:[a.jsx("span",{style:{width:7,height:7,borderRadius:999,background:M.amber}}),a.jsx("span",{style:{fontSize:10.5,fontWeight:600,color:"#8C6307"},children:"Ojo con este patrón"})]}),m("close")&&a.jsxs("div",{className:"hv-in",style:{marginTop:7,background:"rgba(155,111,168,.08)",borderRadius:12,padding:"9px 10px"},children:[a.jsx("div",{style:{fontSize:11,fontWeight:700,color:M.ink},children:"Tu dolor cae siempre en los dÃas 24-28."}),a.jsx("div",{style:{fontSize:9.5,color:M.inkSoft,marginTop:3,lineHeight:1.35},children:"Tres ciclos seguidos. 6/10, 7/10 y 8/10. No es casualidad, es un patrón."})]})]}),k=x8.map((C,I)=>{const ee=8+I/27*264,ge=70-(C-36)/.9*62;return`${I===0?"M":"L"} ${ee.toFixed(1)} ${ge.toFixed(1)}`}).join(" "),N=C=>70-(C-36)/.9*62,D=C=>8+(C-1)/27*264,z=a.jsxs("div",{style:{position:"relative",height:"100%",overflow:"hidden"},children:[a.jsxs("div",{style:{position:"absolute",inset:"0 0 auto 0",padding:"12px 12px 20px",transform:m("scroll")?"translateY(-300px)":"translateY(0)",transition:"transform 3400ms linear"},children:[m("s0")&&a.jsxs("div",{className:"hv-in",style:{marginBottom:10},children:[a.jsx("div",{style:{fontFamily:"'Playfair Display', Georgia, serif",fontSize:15,color:M.ink},children:"Tu ciclo contado"}),a.jsx("div",{style:{fontSize:9,color:M.inkSoft,marginTop:2,lineHeight:1.35},children:"Un mes de acompañamiento reproductivo, leÃdo en prosa clÃnica por Luna IA"})]}),m("s1")&&a.jsxs("div",{className:"hv-in",style:{marginBottom:10},children:[a.jsx(P,{children:"CURVA TÃRMICA DEL CICLO"}),a.jsxs("div",{style:{background:M.surface,border:`1px solid ${M.border}`,borderRadius:10,padding:6}
272,children:[a.jsxs("svg",{viewBox:"0 0 280 78",width:"100%",role:"img","aria-label":"Curva de temperatura basal de 28 dÃas, bifásica, con subida sostenida a partir del dÃa 15 por encima de la coverline de 36,42 grados.",children:[a.jsx("rect",{x:D(9),y:"4",width:D(15)-D(9),height:"66",fill:he.fertilSoft,opacity:"0.28"}),a.jsx("text",{x:D(12),y:"12",textAnchor:"middle",fontSize:"6",fill:M.inkSoft,children:"ventana fértil"}),a.jsx("line",{x1:"8",y1:N(36.42),x2:"272",y2:N(36.42),stroke:M.muted,strokeWidth:"0.8",strokeDasharray:"3 3"}),a.jsx("text",{x:"272",y:N(36.42)-3,textAnchor:"end",fontSize:"6",fill:M.muted,children:"coverline 36,42"}),a.jsx("path",{d:k,fill:"none",stroke:M.primary,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("circle",{cx:D(13),cy:N(36.15),r:"2.6",fill:M.primary}),a.jsx("text",{x:D(13),y:N(36.15)+10,textAnchor:"middle",fontSize:"6",fill:M.inkSoft,children:"nadir"})]}),a.jsx("div",{style:{fontSize:8.5,color:M.inkSoft,marginTop:3},children:"Subida sostenida desde el dÃa 15. Fase lútea de 14 dÃas."})]})]}),m("s2")&&a.jsxs("div",{className:"hv-in",style:{background:M.card,borderRadius:12,padding:10,marginBottom:10},children:[a.jsx("div",{style:{fontSize:11,fontWeight:700,color:M.ink,marginBottom:6},children:"Confluencia triple de ovulación"}),[["Temperatura","subida sostenida desde el dÃa 15"],["Moco","clara de huevo, dÃas 12-14"],["SÃntoma","dolor ovulatorio, dÃa 14"]].map(([C,I])=>a.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[a.jsx(_,{}),a.jsxs("span",{style:{fontSize:9.5,color:M.ink},children:[a.jsx("strong",{style:{fontWeight:600},children:C})," · ",I]})]},C)),a.jsxs("div",{style:{fontSize:10,color:M.ink,marginTop:6},children:["Ovulación estimada: ",a.jsx("strong",{children:"dÃa 14"}),"."]})]}),m("s3")&&a.jsxs("div",{className:"hv-in",style:{marginBottom:10},children:[a.jsx(P,{children:"LÃNEA TEMPORAL DEL MOCO CERVICAL · 30 DÃAS"}),a.jsx("div",{role:"img","aria-label":"LÃnea temporal del moco cervical durante 28 dÃas, con clara de huevo del dÃa 12 al 14.",style:{display:"grid",gridTemplateColumns:"repeat(28,1fr)",gap:1.5},children:b8.map((C,I)=>a.jsx("div",{style:{background:C.bg,color:C.fg,borderRadius:2,height:13,fontSize:6.5,fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center"},children:C.letter},I))}),a.jsx("div",{style:{fontSize:8,color:M.inkSoft,marginTop:4},children:"S = Seco · C = Cremoso · A = Acuoso · E = Clara de huevo"})]}),m("s4")&&a.jsxs("div",{className:"hv-in",style:{marginBottom:10},children:[a.jsx(P,{children:"OBSERVACIONES PARA SU CONSULTA"}),a.jsx("p",{style:{fontSize:9.5,lineHeight:1.45,color:M.ink,margin:0},children:"Dolor cÃclico en los dÃas 24-28 de los tres últimos ciclos, con intensidad creciente (6/10, 7/10, 8/10). Ciclo de 28 dÃas y fase lútea de 14 dÃas, ambos estables. Ovulación confirmada por confluencia triple en los tres ciclos."})]}),m("s5")&&a.jsxs("div",{className:"hv-in",children:[a.jsxs("div",{style:{display:"flex",gap:6},children:[a.jsx("div",{style:{flex:1,background:M.primary,color:"#fff",borderRadius:9,padding:"8px 0",textAlign:"center",fontSize:10.5,fontWeight:600,animation:m("pulse")?"hv-pulse 1.2s ease-out 2":void 0},children:"Compartir con mi médico"}),a.jsx("div",{style:{border:`1px solid ${M.border}`,color:M.inkSoft,borderRadius:9,padding:"8px 12px",fontSize:10.5,fontWeight:600},children:"PDF"})]}),a.jsx("div",{style:{fontSize:9,color:M.inkSoft,marginTop:6,lineHeight:1.35},children:"Documento de apoyo a la consulta. No es un diagnóstico ni sustituye el criterio de tu médico."})]})]}),a.jsx("div",{"aria-hidden":"true",style:{position:"absolute",top:0,left:0,right:0,height:22,background:`linear-gradient(${M.bg}, rgba(253,250,247,0))`}}),a.jsx("div",{"aria-hidden":"true",style:{position:"absolute",bottom:0,left:0,right:0,height:22,background:`linear-gradient(rgba(253,250,247,0), ${M.bg})`}})]}),q=[A,W,G,z];return a.jsxs("div",{className:"w-full flex justify-center",children:[a.jsx("style",{children:w8}),a.jsx("div",{style:{width:"100%",maxWidth:332,borderRadius:30,padding:9,background:"#1E293B",boxShadow:"0 30px 70px -20px rgba(28,16,36,.45), 0 8px 24px -8px rgba(28,16,36,.35)"},children:a.jsxs("div",{style:{borderRadius:23,overflow:"hidden",background:M.bg},children:[a.jsxs("div",{style:{background:M.ink,color:"#fff",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"5px 13px 3px",fontSize:9.5,fontWeight:600},children:[a.jsx("span",{children:$.time}),a.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4},children:[a.jsx("svg",{width:"12",height:"9",viewBox:"0 0 12 9","aria-hidden":"true",children:[0,1,2,3].map(C=>a.jsx("rect",{x:C*3,y:8-(C+1)*2,width:"2",height:(C+1)*2,fill:"#fff",opacity:.9},C))}),a.jsxs("svg",{width:"16",height:"9",viewBox:"0 0 16 9","aria-hidden":"true",children:[a.jsx("rect",{x:"0.5",y:"0.5",width:"12",height:"8",rx:"2",fill:"none",stroke:"#fff",opacity:"0.8"}),a.jsx("rect",{x:"2",y:"2",width:"8.5",height:"5",rx:"1",fill:"#fff"}),a.jsx("rect",{x:"13.5",y:"3",width:"1.5",height:"3",rx:"0.7",fill:"#fff",opacity:"0.8"})]})]})]}),a.jsxs("div",{style:{background:M.ink,color:"#fff",padding:"2px 13px 6px",fontSize:10,display:"flex",alignItems:"center",gap:6},children:[a.jsxs("span",{style:{fontWeight:600},children:["ovulación",a.jsx("span",{style:{color:M.secondary},children:".ai"})]}),a.jsx("span",{style:{opacity:.55,fontSize:8.5},children:"· por PraxisPulse"})]}),a.jsxs("div",{style:{background:"linear-gradient(135deg, #9B6FA8 0%, #C8A4D4 100%)",color:"#fff",padding:"10px 12px",display:"flex",alignItems:"center",gap:9},children:[a.jsx("span",{style:{width:28,height:28,borderRadius:9,background:"rgba(255,255,255,.22)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(()=>{const C=Vp[$.tab].Icon;return a.jsx(C,{size:15,strokeWidth:2,"aria-hidden":"true"})})()}),a.jsxs("span",{style:{flex:1,minWidth:0},children:[a.jsx("span",{style:{display:"block",fontSize:12.5,fontWeight:700,lineHeight:1.2},children:$.title}),a.jsxs("span",{style:{display:"flex",alignItems:"center",gap:4,fontSize:9,opacity:.9},children:[a.jsx("span",{style:{width:4,height:4,borderRadius:999,background:"rgba(255,255,255,.85)"}}),$.sub]})]}),a.jsxs("span",{style:{textAlign:"right"},children:[a.jsx("span",{style:{display:"block",fontSize:14,fontWeight:700,lineHeight:1},children:"6/7"}),a.jsx("span",{style:{fontSize:8,opacity:.85},children:"ritmo"})]})]}),a.jsx("div",{ref:e,"aria-live":"polite",style:{height:414,overflow:"hidden",background:M.bg},children:q[y]}),a.jsx("div",{style:{display:"flex",borderTop:`1px solid ${M.border}`,background:M.surface,padding:"5px 2px 7px"},children:Vp.map((C,I)=>{const ee=I===$.tab,ge=C.Icon;return a.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",gap:2,color:ee?M.primary:M.muted},children:[a.jsx(ge,{size:14,strokeWidth:ee?2.4:1.8,"aria-hidden":"true"}),a.jsx("span",{style:{fontSize:7.5,fontWeight:ee?700:500},children:C.label})]},C.label)})}),a.jsx("div",{style:{display:"flex",gap:4,padding:"6px 10px 9px",background:M.surface},children:g8.map((C,I)=>a.jsxs("div",{style:{flex:1},children:[a.jsx("div",{style:{height:3,borderRadius:999,background:M.border,overflow:"hidden"},children:a.jsx("div",{style:{height:"100%",width:y>
272I?"100%":"0%",background:I===0?M.amber:M.primary,animation:y===I&&!s?`hv-fill ${Wp[I]}ms linear forwards`:void 0}},`${I}-${y}`)}),a.jsx("div",{style:{fontSize:6.8,marginTop:3,textAlign:"center",color:y===I?M.ink:M.muted,fontWeight:y===I?700:500},children:C})]},C))})]})})]})},S8=()=>{var e;(e=document.querySelector("#form-final"))==null||e.scrollIntoView({behavior:"smooth",block:"center"})},E8=()=>{var e;(e=document.querySelector("#como-funciona"))==null||e.scrollIntoView({behavior:"smooth",block:"start"})},_8=()=>a.jsxs("section",{className:"relative bg-white overflow-hidden",children:[a.jsxs("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 -z-0",children:[a.jsx("div",{className:"absolute left-1/2 top-[10%] -translate-x-1/2 w-[900px] h-[900px] max-w-[120vw] rounded-full bg-lila-pale blur-3xl opacity-70"}),a.jsx("div",{className:"absolute left-[15%] top-[55%] w-[400px] h-[400px] rounded-full bg-lila-soft blur-3xl opacity-50"}),a.jsx("div",{className:"absolute right-[10%] top-[20%] w-[360px] h-[360px] rounded-full bg-lila-soft blur-3xl op
272acity-40"})]}),a.jsxs("div",{className:"relative z-10 max-w-6xl mx-auto px-4 pt-12 pb-16 md:pt-20 md:pb-24 text-center flex flex-col items-center lg:grid lg:grid-cols-[1.05fr_.95fr] lg:gap-x-14 lg:items-center",children:[a.jsxs("div",{className:"order-1 lg:col-start-1 lg:row-start-1 lg:text-left w-full",children:[a.jsxs("div",{className:"inline-flex items-center gap-2 mb-8 px-4 py-1.5 rounded-full bg-lila-pale border border-lila/15",children:[a.jsxs("span",{className:"relative flex h-2 w-2",children:[a.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-lila opacity-60"}),a.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-lila"})]}),a.jsx("span",{className:"font-body text-xs sm:text-sm font-medium text-lila",children:"Programa Fundadora · 100 plazas con precio congelado"})]}),a.jsx("p",{className:"font-display italic text-lg md:text-xl text-lila mb-5",children:"¿Y si no estás exagerando?"}),a.jsxs("h1",{className:"font-display font-bold text-ov-text leading-[1.08] tracking-tight text-[32px] sm:text-[42px] md:text-[52px] lg:text-[50px] xl:text-[56px] mb-6 text-balance",children:["Hay algo en tu cuerpo que se repite cada mes.",a.jsx("span",{className:"block italic text-lila mt-2",children:"Y nadie te ha ayudado a leerlo."})]}),a.jsx("p",{className:"font-body text-base md:text-[19px] text-ov-text-mid max-w-[620px] mx-auto lg:mx-0 leading-relaxed",children:"Dolor que vuelve cada mes. Cambios de ánimo que no reconoces. Cansancio, inflamación, ciclos irregulares o reglas que te paran la vida."}),a.jsx("p",{className:"font-body text-base md:text-[19px] font-semibold text-ov-text max-w-[620px] mx-auto lg:mx-0 leading-relaxed mt-4 mb-10",children:"Luna te ayuda a registrar lo que sientes, ver el patrón completo y llegar a consulta con datos â para que dejes de sentir que todo está en tu cabeza."}),a.jsxs("div",{className:"max-w-[520px] mx-auto lg:mx-0",children:[a.jsx("button",{onClick:S8,className:"group w-full bg-lila text-white font-body font-semibold px-8 py-5 rounded-xl shadow-[0_10px_40px_-10px_rgba(124,92,191,0.55)] hover:bg-[#6a4aab] hover:-translate-y-[2px] hover:shadow-[0_14px_50px_-10px_rgba(124,92,191,0.65)] transition-all text-base md:text-lg",children:"â Quiero entender mi ciclo"}),a.jsx("p",{className:"text-xs md:text-sm text-ov-text-soft font-body mt-4",children:"Gratis · Privado · Sin spam · Acceso anticipado incluido"})]})]}),a.jsx("div",{className:"order-2 mt-12 lg:mt-0 w-full lg:col-start-2 lg:row-start-1 lg:row-span-2",children:a.jsx($8,{})}),a.jsx("div",{className:"order-3 lg:col-start-1 lg:row-start-2 lg:text-left",children:a.jsxs("button",{onClick:E8,className:"mt-14 inline-flex flex-col items-center gap-1 text-ov-text-soft hover:text-lila transition-colors group","aria-label":"Descubre cómo funciona",children:[a.jsx("span",{className:"font-body text-sm",children:"Descubre cómo funciona"}),a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"animate-bounce",children:a.jsx("polyline",{points:"6 9 12 15 18 9"})})]})})]})]}),k8=["1 de cada 10 mujeres vive con endometriosis","Hasta el 70% de mujeres con SOP no está diagnosticada","Hasta 20 años entre los primeros sÃntomas y el diagnóstico de PMDD","La perimenopausia puede durar entre 4 y 8 años antes de recibir nombre","Una consulta aislada rara vez explica todo el patrón"],j8=()=>a.jsxs("section",{className:"bg-[#F5EFF9] py-10",children:[a.jsx("div",{className:"max-w-7xl mx-auto px-4 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-x-6 gap-y-5",children:k8.map(e=>a.jsx("p",{className:"text-center font-semibold text-sm md:text-[15px] text-ov-text leading-snug",children:e},e))}),a.jsx("p",{className:"text-center text-base md:text-[17px] italic text-ov-text-soft max-w-[640px] mx-auto pt-8 pb-2 px-4 leading-relaxed",children:"El problema no es que tu cuerpo no hable. Es que nadie te enseñó a escuchar el patrón completo."})]}),be=({label:e,title:t,body:n,centered:r=!1,light:s=!1})=>a.jsxs("div",{className:`mb-10 ${r?"text-center":""}`,children:[a.jsx("span",{className:`inline-block font-body text-xs font-semibold uppercase tracking-wider mb-3 px-3 py-1 rounded-full ${s?"bg-white/20 text-white/80":"bg-lila-soft text-lila"}`,children:e}),a.jsx("h2",{className:`font-display text-3xl md:text-4xl font-bold mt-2 ${s?"text-white":"text-ov-text"}`,children:t}),n&&a.jsx("p",{className:`font-body text-lg mt-4 max-w-2xl ${r?"mx-auto":""} ${s?"text-white/80":"text-ov-text-mid"}`,children:n})]}),N8=[{icon:"ð¡ï¸",title:"Por qué el termómetro importa â y cuál necesitas realmente",desc:"La diferencia entre 0.01°C y 0.1°C. Por qué el termómetro de fiebre no sirve. Cómo un dato mal tomado puede cambiarlo todo."},{icon:"ð
",title:"La fase lútea: lo que rara vez hay tiempo de explicar en consulta",desc:"Qué ocurre en tu cuerpo después de ovular, por qué ese perÃodo define tu fertilidad, y qué significa si los sÃntomas no encajan."}
272,{icon:"ð´",title:"Ciclos irregulares: qué es normal y qué merece atención",desc:"Los rangos reales. Lo que deberÃa investigarse si tu ciclo varÃa. Cuándo es hormonal, cuándo es metabólico."},{icon:"ð¬",title:"SOP y endometriosis: lo que los datos revelan entre consultas",desc:"Cómo afectan a la temperatura basal, al moco cervical, a la ventana fértil."},{icon:"ð¤",title:"Cómo llevar tus datos a la próxima consulta",desc:"Lo que tu médico necesita saber para tomar buenas decisiones sobre tu fertilidad."}],C8=()=>a.jsx("section",{className:"bg-ov-bg py-16 md:py-24",children:a.jsxs("div",{className:"max-w-3xl mx-auto px-4",children:[a.jsx(be,{label:"Tu guÃa gratuita",title:"Lo que nadie te explicó sobre tu ciclo menstrual",body:"Cinco cosas que tu cuerpo comunica cada mes â y que la consulta no alcanza a explicar."}),a.jsxs("div",{className:"bg-white border border-ov-border rounded-2xl shadow-[0_4px_24px_rgba(124,92,191,0.07)] overflow-hidden",children:[a.jsxs("div",{className:"p-6 md:p-10",children:[a.jsx("h3",{className:"font-display text-xl md:text-2xl font-semibold text-ov-text mb-6",children:"ð Lo que vas a recibir â completamente gratis"}),a.jsx("div",{className:"space-y-5",children:N8.map(e=>a.jsxs("div",{className:"flex gap-3",children:[a.jsx("span",{className:"text-xl flex-shrink-0 mt-0.5",children:e.icon}),a.jsxs("div",{children:[a.jsx("p",{className:"font-body text-sm font-bold text-ov-text",children:e.title}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid mt-0.5",children:e.desc})]})]},e.title))})]}),a.jsx("div",{className:"border-t border-ov-border p-6 md:p-10 text-center",children:a.jsx("a",{href:"#form-final",className:"inline-flex items-center justify-center rounded-full bg-lila hover:bg-lila/90 text-white font-body font-semibold text-base px-8 py-4 transition-colors",children:"Quiero mi guÃa gratuita â"})})]})]})}),P8=[{id:1,Icon:A$,figure:"8â12 años",title:"Llevas años con dolor que nadie nombra",description:'Retraso medio en diagnosticar endometriosis en Europa. Una década escuchando "es normal".',eu:{pretitle:"El coste de no diagnosticar a tiempo",subCards:[{figure:"5 ginecólogos",title:"Visitas antes del diagnóstico",desc:"Cifra promedio que visita una mujer con endometriosis antes de que alguien dé con el diagnóstico correcto. Cada consulta empieza desde cero."},{figure:"300â800 â¬/año",title:"Hormonoterapia y manejo del dolor",desc:"Anticonceptivos hormonales, dienogest, analgésicos, terapia multimodal. Tratamiento sintomático prolongado durante años sin lectura clÃnica integrada."},{figure:"2.000â4.500 â¬",title:"CirugÃa laparoscópica diagnóstica/terapéutica",desc:"Procedimiento estándar para confirmar y tratar focos de endometriosis. Una intervención que muchas mujeres repiten más de una vez."},{figure:"11 horas/semana",title:"Pérdida laboral promedio",desc:"Horas de trabajo perdidas cada semana por dolor, fatiga y consultas médicas. La pérdida de productividad supera a los costes directos en la mayorÃa de estudios europeos."}],banner:{label:"CARGA ECONÃMICA REAL EN EUROPA",figure:"7.000 â 10.000 â¬",text:"por mujer y año, según estudios documentados en Austria, Suecia, Alemania y España. Más una década promedio de dolor sin nombre."},closing:"El coste no son las pastillas. Es la década viviendo con un dolor cÃclico que nadie supo leer como patrón."},us:{pretitle:"El coste de no diagnosticar a tiempo",subCards:[{figure:"$1.500â$3.500",title:"Estudio diagnóstico inicial",desc:"AnalÃticas hormonales, ecografÃas transvaginales, resonancia magnética pélvica. El proceso para que alguien diga el nombre que llevas años buscando."},{figure:"$4.000â$11.500",title:"CirugÃa laparoscópica",desc:"Diagnóstica o terapéutica. Más del 65% de pacientes en EE.UU. pasa por una cirugÃa relacionada en el primer año tras el diagnóstico."},{figure:"$10.000+",title:"Costes directos anuales primer año post-diagnóstico",desc:"Datos del sistema sanitario estadounidense. Tres veces el coste de una mujer sin endometriosis durante los primeros 12 meses."},{figure:"$13.000+",title:"Pérdida de productividad anual",desc:"Costes indirectos por absentismo y reducción de rendimiento laboral. La carga indirecta supera la directa en casi todos los estudios."}],banner:{label:"CARGA ECONÃMICA REAL EN EEUU",figure:"$13.000 â $16.500",text:"por mujer y año el primer año tras diagnóstico â más todos los años previos sin nombre clÃnico."},closing:"El coste no son las pastillas. Es la década viviendo con un dolor cÃclico que nadie supo leer como patrón."}},{id:2,Icon:D$,figure:"20 años",title:"Cada mes tu cuerpo cambia y nadie te lo explica",description:"Diferencia entre los primeros sÃntomas y el diagnóstico promedio de SPM severo o PMDD.",eu:{pretitle:"El coste de un patrón que el sistema no busca",subCards:[{figure:"480 ciclos",title:"Lo que vives sin diagnóstico formal",desc:"Una mujer atraviesa unos 480 ciclos en su vida reproductiva. Si los sÃntomas empiezan a los 15 y el diagnóstico llega a los 35, son 240 ciclos sin nombre para lo que vives."},{figure:"8 horas/ciclo",title:"Absentismo laboral promedio",desc:"Horas perdidas cada ciclo por sÃntomas premenstruales severos. Más de 100 horas al año â equivalente a más de dos semanas de trabajo desaparecidas sin causa visible."},{figure:"3â16%",title:"Mujeres que abandonaron su trabajo por SPM/PMDD",desc:"Cifra documentada en literatura europea. La carga real del trastorno premenstrual severo no es solo el sÃntoma â es la decisión de dejar de luchar contra un sistema que no lo nombra."},{figure:"2 ciclos",title:"Lo que requiere el diagnóstico formal",desc:"Los criterios diagnósticos internacionales exigen registro prospectivo diario durante al menos 2 ciclos consecutivos. Casi ninguna paciente lo recibe â porque casi ningún profesional se lo pide."}],banner:{label:"EL COSTE INVISIBLE EN EUROPA",figure:">3.500 â¬/año",text:"pérdida de productividad documentada por paciente â sin contar las visitas a múltiples especialistas que nunca llegaron al diagnóstico correcto."},closing:"El diagnóstico requiere un registro que el sistema no te pide. Tu cuerpo lo registra solo cada mes â Luna lo convierte en datos clÃnicos que tu médico puede leer."},us:{pretitle:"El coste de un patrón que el sistema no busca",subCards:[{figure:"240 ciclos",title:"Ciclos vividos sin diagnóstico",desc:"Si los sÃntomas empiezan a los 15 y el diagnóstico llega a los 35 â promedio documentado en literatura clÃnica internacional â son veinte años con sÃntomas cÃclicos sin nombre clÃnico."},{figure:"$4.333+/año",title:"Pérdida de productividad documentada",desc:"Coste indirecto promedio por paciente con PMDD según estudios estadounidenses. Sumado a 20 años son más de $80.000 sin contar visitas, medicación ni tratamientos."},{figure:"$500+",title:"Visitas médicas en 2 años antes del diagnóstico",desc:"Cifra mÃnima documentada. Múltiples consultas a ginecologÃa, atención primaria, psiquiatrÃa, sin que ninguna pida el registro prospectivo que confirmarÃa el diagnóstico."},{figure:"60% más riesgo",title:"De depresión y ansiedad asociadas",desc:"Las mujeres con trastornos premenstruales severos tienen mayor riesgo documentado de depresión, ansiedad y suicidalidad. La carga emocional es la cifra más alta y la menos contada."}],banner:{label:"EL COSTE INVISIBLE EN EEUU",figure:">$80.000",text:"pérdida acumulada de productividad estimada en 20 años de sÃntomas sin diagnóstico formal â sin contar consultas, medicación ni daño emocional."},closing:"El diagnóstico requiere un registro que el sistema no te pide. Tu cuerpo lo registra solo cada mes â Luna lo convierte en datos clÃnicos que tu médico puede leer."}},{id:3,Icon:U$,figure:"70%",title:"Te diagnosticaron y te dejaron sola",de
272scription:"Mujeres con SOP sin diagnosticar a nivel mundial según OMS. Y de las diagnosticadas, casi ninguna recibe seguimiento real.",eu:{pretitle:"El coste de un sÃndrome que nadie acompaña",subCards:[{figure:"2 años promedio",title:"Hasta recibir el diagnóstico",desc:'Cifra documentada en literatura europea. Acné, ciclos irregulares, fatiga, resistencia a la insulina â años de sÃntomas sin lectura integrada antes de que alguien diga "ovario poliquÃstico".'},{figure:"400â900 â¬/año",title:"Tratamiento hormonal y metabólico",desc:"Anticonceptivos, metformina, tratamientos para hirsutismo, suplementación. Tratamiento sintomático prolongado durante años â recetado en consultas que duran lo que duran."},{figure:"56,6%",title:"Mujeres con SOP que sufren depresión o ansiedad",desc:"La conexión entre disfunción metabólica y salud mental está documentada. La consulta endocrina rara vez la nombra. La consulta de salud mental rara vez la conecta con el ciclo."},{figure:"3x riesgo",title:"De diabetes tipo 2 y sÃndrome metabólico",desc:"El SOP no termina en el ciclo. Es un sÃndrome de medicina interna que toca insulina, lÃpidos, presión, peso, fertilidad y salud mental. Pocas pacientes reciben esa lectura completa."}],banner:{label:"LA CARGA DEL SOP EN EUROPA",figure:">50%",text:"de las mujeres con SOP presenta problemas de salud mental asociados. Más el triple de riesgo de diabetes tipo 2. La consulta inicial cubre menos del 2% del coste real del sÃndrome â el resto son las consecuencias de no acompañar."},closing:"SOP es sÃndrome metabólico-endocrino, no un problema reproductivo aislado. Es territorio de medicina interna â y casi nadie lo lee asÃ."},us:{pretitle:"El coste de un sÃndrome que nadie acompaña",subCards:[{figure:"$8.000 millones/año",title:"Carga económica del SOP solo en EEUU",desc:"Datos publicados en Journal of Clinical Endocrinology & Metabolism. Diagnóstico, tratamiento reproductivo, complicaciones metabólicas y embarazos."},{figure:"$15.000 millones/año",title:"Si se incluye salud mental asociada",desc:"Cuando se suman ansiedad, depresión y trastornos alimentarios documentados en pacientes con SOP, la cifra anual asciende a quince mil millones â y sigue subestimada."},{figure:"46%",title:"De los costes proviene del área reproductiva",desc:"Disfunción menstrual, hirsutismo, infertilidad. Otro 48% proviene de complicaciones metabólicas â diabetes tipo 2, accidente cerebrovascular. Solo el 2% es diagnóstico inicial."},{figure:"2x más probable",title:"De trastornos de la conducta alimentaria",desc:"Documentado en literatura. La conexión entre disfunción hormonal, peso, autoestima y conducta alimentaria es clÃnica. El sistema rara vez la trata como un patrón unificado."}],banner:{label:"EL SISTEMA NO ACOMPAÃA EL SÃNDROME",figure:"<2%",text:"del coste total de SOP corresponde al diagnóstico inicial. El 98% restante son las consecuencias â médicas, metabólicas, mentales â de no acompañar el patrón a tiempo."},closing:"SOP es sÃndrome metabólico-endocrino, no un problema reproductivo aislado. Es territorio de medicina interna â y casi nadie lo lee asÃ."}},{id:4,Icon:W$,figure:"4â8 años",title:"Algo está cambiando y te dicen que es la edad",description:"Duración media de la perimenopausia. Años de variabilidad, sÃntomas y formación clÃnica desigual.",eu:{pretitle:"El coste de una transición que la medicina no enseña a leer",subCards:[{figure:"74%",title:"Mujeres con sÃntomas que NO buscan atención médica",desc:'Solo una de cada cuatro mujeres con sÃntomas perimenopáusicos consulta. La razón documentada: "es la edad" o desinformación generalizada sobre qué es esperable y qué no.'},{figure:"200â600 â¬/año",title:"Suplementación, fitoterapia y tratamientos sin marco clÃnico",desc:"Cuando el sistema no nombra lo que vives, buscas alternativas. Fitoestrógenos, suplementos hormonales, terapias complementarias. Decisiones tomadas sin lectura clÃnica del ciclo."},{figure:"400â900 â¬/año",title:"Terapia hormonal sustitutiva (cuando se prescribe)",desc:"Estradiol transdérmico u oral, progesterona micronizada, controles. Es la opción más basada en evidencia para muchas mujeres â pero requiere un marco clÃnico que la mayorÃa no recibe a tiempo."}
272,{figure:"10 años o más",title:"SÃntomas vasomotores en algunos casos",desc:"Sofocos, sudores nocturnos, cambios de humor. La duración varÃa drásticamente entre mujeres. Sin patrón objetivo que se lleve a consulta, la prescripción llega tarde â o no llega."}],banner:{label:"LA TRANSICIÃN INVISIBLE EN EUROPA",figure:"3.000â6.000 â¬",text:"gasto estimado por mujer durante toda la perimenopausia entre tratamientos, consultas, suplementos y alternativas â sin contar la pérdida laboral acumulada en hasta una década."},closing:"La formación clÃnica sobre perimenopausia sigue siendo desigual incluso en atención primaria. Llegar con un patrón objetivo cambia la conversación."},us:{pretitle:"El coste de una transición que la medicina no enseña a leer",subCards:[{figure:"2 millones/año",title:"Mujeres que entran en perimenopausia solo en EEUU",desc:'Cada año. Y la mayorÃa llega sin información sobre qué esperar, cuánto durará, ni qué sÃntomas merecen atención clÃnica frente a los que se asumen como "edad".'},{figure:"$26.600 millones/año",title:"Coste total en EEUU (productividad + sanidad)",desc:"$1.800 millones en pérdida laboral más $24.800 millones en costes sanitarios, según Mayo Clinic. La cifra real por mujer es difÃcil de aislar â pero es alta y casi nunca conversada."},{figure:"$13.000 millones/año",title:"Gasto directo de las mujeres en tratar sÃntomas",desc:"Suplementos, terapia hormonal, copays â cifra documentada por AARP. Más de $10.000 millones en tratamientos no médicos. Decisiones tomadas, en muchos casos, sin marco clÃnico."},{figure:"10% caÃda",title:"En ingresos cuatro años después de consultar",desc:"Investigación de Stanford. Las mujeres que consultan por sÃntomas perimenopáusicos sufren una caÃda de ingresos del 10% cuatro años después â por reducción de jornada o cambio a roles menos exigentes."}],banner:{label:"LA TRANSICIÃN INVISIBLE EN EEUU",figure:"$26.600 millones",text:"pérdida laboral más coste sanitario anual solo en EEUU. La cifra individual varÃa â la pérdida de carrera es lo que casi nadie cuenta."},closing:"La formación clÃnica sobre perimenopausia sigue siendo desigual incluso en atención primaria. Llegar con un patrón objetivo cambia la conversación."}},{id:5,Icon:q$,figure:"5.000â20.000 â¬",title:"Llevas meses intentándolo sin entender por qué no funciona",description:"Coste del camino intervencionista en fertilidad antes de que alguien te enseñe a leer tu propio ciclo.",eu:{pretitle:"El coste del camino intervencionista",subCards:[{figure:"200â400â¬",title:"Estudio diagnóstico inicial",desc:"AnalÃticas hormonales, ecografÃas, seminograma. Antes de empezar cualquier tratamiento."},{figure:"700â1.400â¬",title:"Inseminación artificial",desc:'El tratamiento "más económico". Incluida la medicación hormonal. Por intento.'},{figure:"4.500â6.700â¬",title:"FIV básica + medicación",desc:"Un solo ciclo. Sin extras. Muchas mujeres necesitan dos o tres intentos."},{figure:"+9.000â¬",title:"FIV con ovodonación",desc:"Cuando ya se descarta el óvulo propio. Sin contar diagnóstico genético preimplantacional."}],banner:{label:"COSTE DEL CAMINO INTERVENCIONISTA EN ESPAÃA",figure:"5.000 â 20.000â¬",text:"en dinero directo â más los meses de incertidumbre, estrés emocional y consultas que empiezan desde cero."},closing:"Antes de cualquier intervención: tu cuerpo produce datos cada mes que pueden cambiar la conversación clÃnica."},us:{pretitle:"El coste del camino intervencionista",subCards:[{figure:"$250â$500",title:"Consulta inicial + diagnóstico",desc:"AnalÃticas hormonales, ecografÃas, análisis de semen. Solo para empezar a hablar."},{figure:"$1.500â$4.000",title:"Inseminación intrauterina (IUI)",desc:"El primer tratamiento. Incluida medicación. Por intento."},{figure:"$15.000â$30.000",title:"FIV completa + medicación",desc:"Un solo ciclo. La media necesita 2â3 ciclos."},{figure:"$35.000â$60.000",title:"FIV con óvulos donados",desc:"Cuando se descarta el óvulo propio."}],banner:{label:"COSTE REAL EN EEUU",figure:"$15.000 â $50.000+",text:"por ciclo completo. La media del paciente gasta más de $50.000 en el proceso total."},closing:"Antes de cualquier intervención: tu cuerpo produce datos cada mes que pueden camb
272iar la conversación clÃnica."}}],T8=()=>{const[e,t]=w.useState(null),[n,r]=w.useState(()=>typeof window<"u"&&sessionStorage.getItem("ovulacion-cost-currency")==="us"?"us":"eu");w.useEffect(()=>{typeof window<"u"&&sessionStorage.setItem("ovulacion-cost-currency",n)},[n]);const s=i=>{e===i?t(null):(t(i),setTimeout(()=>{var o;(o=document.getElementById(`cost-card-${i}`))==null||o.scrollIntoView({behavior:"smooth",block:"start"})},100))};return a.jsx("section",{className:"bg-white py-16 md:py-24",children:a.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[a.jsx(be,{label:"El coste real",title:"El coste no siempre es económico. A veces es una década de tu vida.",body:"Cada dolor tiene un precio que el sistema no te explica antes de pagarlo. Abre el que reconozcas como tuyo."}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:P8.map(i=>{const o=e===i.id,l=n==="eu"?i.eu:i.us,c=i.Icon;return a.jsx("div",{id:`cost-card-${i.id}`,className:`scroll-mt-6 ${o?"md:col-span-2 lg:col-span-3":""}`,children:a.jsxs("div",{className:`bg-white border border-lila-pale rounded-2xl shadow-[0_4px_16px_rgba(120,80,200,0.08)] transition-all duration-200 ${o?"":"hover:-translate-y-1 hover:shadow-[0_8px_24px_rgba(120,80,200,0.14)]"}`,children:[a.jsxs("button",{onClick:()=>s(i.id),className:"w-full text-left p-6 md:p-8 relative","aria-expanded":o,children:[a.jsxs("div",{className:"flex items-start justify-between mb-5",children:[a.jsx(c,{className:"w-7 h-7 text-lila",strokeWidth:2}),o?a.jsx(S$,{size:24,className:"text-lila flex-shrink-0"}):a.jsx($$,{size:24,className:"text-lila flex-shrink-0"})]}),a.jsx("p",{className:"font-display font-bold text-lila text-3xl md:text-5xl leading-none mb-3 whitespace-nowrap",children:i.figure}),a.jsx("h3",{className:"font-display text-xl md:text-2xl font-bold text-navy leading-tight mb-2",children:i.title}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid",children:i.description})]}),a.jsx("div",{className:`grid transition-all duration-300 ease-out ${o?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,children:a.jsx("div",{className:"overflow-hidden",children:a.jsxs("div",{className:"px-5 pb-6 md:px-8 md:pb-8 pt-2 border-t border-lila-pale/60",children:[a.jsxs("div",{className:"flex flex-wrap justify-center gap-2 my-6",children:[a.jsx("button",{onClick:()=>r("eu"),className:`px-4 py-2 rounded-full font-body text-sm font-medium transition-all ${n==="eu"?"bg-lila text-white":"bg-transparent border border-ov-border text-ov-text-mid hover:border-lila"}`,children:"ðªð¸ España / Europa â¬"}),a.jsx("button",{onClick:()=>r("us"),className:`px-4 py-2 rounded-full font-body text-sm font-medium transition-all ${n==="us"?"bg-lila text-white":"bg-transparent border border-ov-border text-ov-text-mid hover:border-lila"}`,children:"ð EEUU / LATAM $"})]}),a.jsx("p",{className:"font-body font-semibold text-ov-text-mid text-center mb-5",children:l.pretitle}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-6",children:l.subCards.map((d,u)=>a.jsxs("div",{className:"bg-lila-pale rounded-xl p-4 md:p-5",children:[a.jsx("p",{className:"font-display text-xl md:text-2xl font-bold text-lila",children:d.figure}),a.jsx("p",{className:"font-body text-sm font-bold text-ov-text mt-1",children:d.title}),a.jsx("p",{className:"font-body text-xs text-ov-text-mid mt-1 leading-relaxed",children:d.desc})]},u))}),a.jsxs("div",{className:"bg-lila text-white rounded-xl p-6 md:p-8 text-center mb-4",children:[a.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-wider opacity-80",children:l.banner.label}),a.jsx("p",{className:"font-display text-2xl md:text-4xl font-bold mt-2",children:l.banner.figure}),a.jsx("p",{className:"font-body text-sm opacity-80 mt-2",children:l.banner.text})]}),a.jsx("p",{className:"font-body text-sm italic text-ov-text-mid pt-4 text-center",children:l.closing})]})})})]})},i.id)})}),a.jsxs("div",{className:"bg-lila-pale border border-ov-border rounded-xl p-6 mt-8",children:[a.jsxs("p",{className:"font-body text-sm text-ov-text-mid",children:[a.jsx("strong",{className:"text-ov-text",children:"Y antes de todo eso:"})," nadie te enseñó a leer tu temperatura, a interpretar tu moco cervical, a entender en qué fase está tu ciclo. Datos que tu cuerpo produce gratis cada mes â y que ninguna consulta aislada tuvo tiempo de explicarte."]}),a.jsxs("p",{className:"font-body text-sm text-ov-text mt-3",children:["Eso es lo que hace ovulación.ai. ",a.jsx("strong",{children:"Sea cual sea tu camino â entender un dolor crónico, llevar a tu médico el patrón completo o preparar tu cuerpo para concebir."})]})]})]})})},A8=[{number:"8â12",unit:"años",title:"Retraso medio en diagnosticar endometriosis en Europa",desc:"Una década escuchando que el dolor que sientes cada mes es normal. Hasta 6 de cada 10 afectadas siguen sin diagnóstico cuando ya la padecen.",source:"Quirónsalud · ADAEC · WHO"},{number:"20",unit:"años",title:"Entre los primeros sÃntomas y el diagnóstico de PMDD",desc:"Los sÃntomas premenstruales severos suelen aparecer hacia los 15. El diagnóstico promedio llega a los 35. Veinte años sin nombre clÃnico para algo que el cuerpo registra cada mes.",source:"Frontiers in Psychiatry · DSM-5"},{number:"70%",unit:"",title:"De mujeres con SOP no están diagnosticadas",desc:"Datos de la Organización Mundial de la Salud. Acné, fatiga, ciclos irregulares, resistencia a la insulina â sÃntomas vividos durante años sin lectura clÃnica integrada que los conecte como un solo sÃndrome.",source:"OMS · Sociedad Española de EndocrinologÃa y Nutrición"},{number:"<5%",unit:"",title:"Formación curricular sobre lectura del propio ciclo",desc:"Tu cuerpo produce información clÃnica cada mes â temperatura, moco cervical, sÃntomas, patrones. Datos gratis, accesibles, listos para ser leÃdos. Y la mayorÃa de mujeres llega a la edad adulta sin que ningún
272sistema educativo o sanitario les enseñe a leerlos.",source:"Helloclue · Literatura FAM · Revisión de programas curriculares de medicina y enfermerÃa en Europa y LATAM"}],Kp=[{label:"Endometriosis",body:['Tienes 28 años. Llevas con dolor menstrual intenso desde la adolescencia. Has ido a tres ginecólogos. El primero te dijo que era normal. El segundo te recetó un anticonceptivo y te dijo que volvieras si seguÃa. El tercero pidió una ecografÃa, salió "limpia", y te dijo que probablemente era estrés.',"Mientras tanto el dolor cada mes es un poco más intenso. La regla te dura un poco más. Hay dÃas que tienes que cancelar todo. Y cuando dices en voz alta lo que vives, sientes que estás exagerando â porque eso es lo que el sistema te ha hecho creer."],validation:"Patrón documentado: la media europea para llegar al diagnóstico de endometriosis supera los 8 años. Hasta 6 de cada 10 afectadas siguen sin diagnóstico cuando ya la padecen."},{label:"SÃndrome premenstrual severo · PMDD",body:["Una semana antes del perÃodo algo cambia en ti. No es tristeza â es una sensación más profunda, como si todo lo malo que has vivido se acumulara de golpe. Discutes con tu pareja por cosas que la semana anterior no te hubieran molestado. Lloras sin razón clara. Sientes que no eres tú.",'Llega el perÃodo y, en uno o dos dÃas, todo vuelve a su lugar. Como si hubieras pasado por encima de un agujero. Y cada mes piensas: "esta vez voy a controlarlo, esta vez será distinto". Pero no es disciplina. Es biologÃa que el sistema clÃnico no te enseña a leer.'],validation:"Patrón documentado: los sÃntomas premenstruales severos suelen aparecer hacia los 15 años; el diagnóstico promedio llega a los 35. El criterio diagnóstico requiere registro prospectivo durante al menos dos ciclos consecutivos â registro que casi ninguna paciente recibe."},{label:"SÃndrome de Ovario PoliquÃstico",body:["El dÃa que finalmente alguien dijo el nombre â sÃndrome de ovario poliquÃstico â sentiste alivio. Por fin algo concreto. Por fin una causa.","Saliste con una receta, una indicación de bajar de peso, y una cita en seis meses. Y al cabo de dos semanas, cuando el alivio del diagnóstico se desvaneció, te diste cuenta de que no entendÃas nada. Cómo afecta a tu temperatura. Cómo afecta a tu moco cervical. Si estás ovulando o no. Por qué algunos meses te sientes mejor que otros. Qué señales deberÃa preocuparte vigilar.","El nombre lo tienes. La lectura del cuerpo, no."],validation:"Patrón documentado: los estudios sobre satisfacción clÃnica en SOP reportan altos niveles de insatisfacción con el cuidado recibido y ausencia de seguimiento estructurado más allá del diagnóstico inicial."},{label:"Perimenopausia",body:["Tienes 43 años. Llevas un año notando cosas raras. Te despiertas a las cuatro de la mañana sin razón. Te enfadas con velocidad que no reconoces. La memoria te falla en momentos pequeños. Tu ciclo cambió â más corto un mes, más largo el siguiente.",'Vas a consulta. Mencionas todo. La respuesta es alguna versión de "es estrés", "trabajas mucho", "tienes 43 años, es lo esperable". Vuelves a casa con la sensación de que algo importante está pasando en tu cuerpo y nadie tiene tiempo de mirarlo.'],validation:"Patrón documentado: la perimenopausia puede durar entre cuatro y ocho años, y la formación clÃnica sobre esta etapa sigue siendo desigual incluso en atención primaria. Solo 1 de cada 4 mujeres con sÃntomas busca atención sanitaria."},{label:"Dolor menstrual severo",body:["Cada mes hay dÃas que no puedes con la vida. Faltas al trabajo, o vas y haces como si estuvieras bien. Has probado todos los analgésicos que se venden sin receta. Has aprendido a llevar bolsas de calor a la oficina. Has cancelado planes, reuniones, viajes.",'Y cuando lo cuentas, escuchas que "la regla duele", que "a muchas mujeres les pasa", que "hay que aguantar". Pero hay diferencia entre regla con molestia y regla que te detiene la vida â y nadie te enseñó a marcarla.'],validation:"Patrón documentado: la dismenorrea severa afecta entre el 20 y el 30% de las mujeres en edad fértil. La diferenciación entre dismenorrea primaria y secundaria â esta última asociada a patologÃa subyacente como endometriosis o aden
272omiosis â requiere registro prospectivo de la intensidad y patrón del dolor."}],R8=()=>a.jsx("section",{className:"bg-ov-bg-alt py-16 md:py-24",children:a.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[a.jsx(be,{label:"Lo que ninguna estadÃstica explica",title:"Los datos describen el problema. Tú lo vives.",body:"Cada número es una mujer que preguntó, esperó y volvió a casa sin respuestas suficientes."}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mb-10",children:A8.map((e,t)=>a.jsxs("div",{className:"bg-white border border-lila-pale rounded-2xl p-8",children:[a.jsxs("p",{className:"font-display text-4xl md:text-5xl font-bold text-lila leading-none mb-3",children:[e.number,e.unit&&a.jsx("span",{className:"text-2xl md:text-3xl font-semibold text-ov-text-mid ml-2",children:e.unit})]}),a.jsx("h3",{className:"font-display text-xl md:text-2xl font-bold text-navy leading-tight mb-3",children:e.title}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid leading-relaxed",children:e.desc}),e.source&&a.jsx("p",{className:"font-body text-xs text-ov-text-soft mt-3 italic",children:e.source})]},t))}),a.jsx("p",{className:"font-body text-base italic text-ov-text-soft text-center max-w-3xl mx-auto mb-16",children:"Detrás de cada número hay una mujer que preguntó, esperó y volvió a casa sin una explicación suficiente. No porque su cuerpo no hablara. Porque nadie le enseñó a leer el patrón completo."}),a.jsxs("div",{className:"mb-16",children:[a.jsx(be,{label:"¿Te reconoces aquÃ?",title:"El sistema ve el sÃntoma. Casi nunca ve la semana entera.",body:"Estos no son testimonios. Son los patrones que la literatura clÃnica internacional lleva décadas describiendo. Si reconoces tu vida en alguna de estas escenas, no estás imaginándolo."}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 auto-rows-fr",children:Kp.slice(0,3).map((e,t)=>a.jsxs("div",{className:"bg-lila-pale rounded-2xl p-6 md:p-8 border border-lila-pale",children:[a.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-wider text-lila mb-4",children:e.label}),a.jsx("div",{className:"space-y-3 mb-4",children:e.body.map((n,r)=>a.jsx("p",{className:"font-body text-[15px] md:text-base text-ov-text leading-relaxed",children:n},r))}),a.jsx("p",{className:"font-body text-sm italic text-ov-text-soft pt-4 border-t border-lila/15 leading-relaxed",children:e.validation})]},t))}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-6 md:max-w-4xl md:mx-auto auto-rows-fr",children:Kp.slice(3,5).map((e,t)=>a.jsxs("div",{className:"bg-lila-pale rounded-2xl p-6 md:p-8 border border-lila-pale",children:[a.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-wider text-lila mb-4",children:e.label}),a.jsx("div",{className:"space-y-3 mb-4",children:e.body.map((n,r)=>a.jsx("p",{className:"font-body text-[15px] md:text-base text-ov-text leading-relaxed",children:n},r))}),a.jsx("p",{className:"font-body text-sm italic text-ov-text-soft pt-4 border-t border-lila/15 leading-relaxed",children:e.validation})]},t))})]}),a.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[a.jsx("h3",{className:"font-display text-2xl md:text-3xl font-bold text-navy mb-5 leading-tight",children:"El problema no son los datos. Es que nadie te los explica."}),a.jsx("p",{className:"font-body text-base text-ov-text-mid leading-relaxed",children:"Tu cuerpo produce información clÃnica cada mes â temperatura, moco cervical, sÃntomas, patrones, intensidad. Gratis. Sin laboratorio. Sin lista de espera. Estés intentando concebir, viviendo con un dolor crónico, atravesando un cambio hormonal o intentando entender por qué algunos meses sientes que algo no está bien â el problema no es la falta de datos. Es la falta de alguien que te ayude a leerlos."})]})]})}),O8=[{Icon:P$,title:"Tienes dolor todos los meses y te dicen que es normal",desc:"Dolor pélvico cÃclico que va creciendo, dispareunia, fatiga premenstrual, dÃas que tienes que cancelar todo. Has ido a consulta. Te han dicho que es estrés, que es la regla, que aprendas a vivir con ello. Ocho años de promedio en Europa antes de que alguien lo nombre."},{Icon:N$,title:"Cada mes te conviertes en alguien que no reconoces",desc:"La semana antes de la regla algo cambia. Irritabilidad sin causa, tristeza profunda, ansiedad, sensación de estar al borde. Llega el perÃodo y todo vuelve a su sitio â como si nada. Lo has intentado contar y no lo nombras bien. Casi nadie lo nombra bien."}
272,{Icon:M$,title:"Te diagnosticaron y te mandaron a casa con una pastilla",desc:'Acné, ciclos irregulares, fatiga, cambios de peso que no entiendes. Cuando finalmente alguien dice "ovario poliquÃstico", la consulta termina. Recibes metformina, anticonceptivo o ambos. Y luego te quedas sola â sin saber cómo afecta tu cuerpo, tus hormonas, tu energÃa, tu dÃa a dÃa.'},{Icon:v$,title:"Algo está cambiando y te dicen que es la edad",desc:'Tu ciclo ya no es como era. Despiertas a las 4 de la mañana sin razón. Cambios de humor. Calores. La memoria que te falla en momentos raros. Vas a consulta y escuchas "es estrés", "tienes 42 años, es normal". Pero tú sabes que algo más está pasando.'},{Icon:k$,title:"Cada mes te toca parar la vida",desc:'DÃas en cama. Analgésico tras analgésico. Faltar al trabajo o aprender a disimular. Te dicen que es normal porque "le pasa a muchas mujeres". Pero hay diferencia entre regla con molestia y regla que te impide vivir â y nadie te ayudó a marcarla.'},{Icon:B$,title:"Llevas meses intentándolo sin entender qué pasa con tu cuerpo",desc:"Estás midiendo. Estás registrando. Estás haciendo todo bien. Y los meses pasan. La consulta dura lo que dura, los datos que llevas no encajan en ese tiempo, y sales con más dudas que respuestas. Antes de saltar a tratamientos, mereces entender lo que tu cuerpo ya está diciendo cada mes."}],L8=()=>a.jsx("section",{className:"bg-ov-bg-alt py-16 md:py-24",children:a.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[a.jsx(be,{label:"¿Te suena alguno de estos?",title:"No es que no prestaste atención. Es que el sistema no te enseñó a leer lo que tu cuerpo te dice.",body:"Si reconoces tu historia en alguna de estas, no estás sola â y no estás exagerando."}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:O8.map(e=>{const t=e.Icon;return a.jsxs("div",{className:"bg-white border border-lila-pale rounded-2xl p-8 shadow-[0_4px_16px_rgba(120,80,200,0.08)] transition-all duration-200 hover:-translate-y-1 hover:shadow-[0_8px_24px_rgba(120,80,200,0.14)]",children:[a.jsx(t,{className:"w-7 h-7 text-lila mb-5",strokeWidth:2}),a.jsx("h3",{className:"font-display text-xl md:text-2xl font-bold text-navy leading-tight mb-3",children:e.title}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid leading-relaxed",children:e.desc})]},e.title)})})]})}),I8=[{num:"1",title:"Cuéntale a Luna cómo te sientes hoy",desc:"Una conversación breve cada dÃa. Luna â tu acompañante con IA â te hace las preguntas que harÃa una médica con paciencia infinita. Temperatura basal, moco cervical, sÃntomas, energÃa. Cada dato que compartes alimenta el sistema.",tag:"~3 minutos"},{num:"2",title:"Un motor que aprende tu ciclo â y mejora con cada dato",desc:`Luna no trabaja con un algoritmo genérico. Trabaja con tus datos. 273 274Tu cuerpo no es un promedio. El sistema trata a todas igual â Luna aprende solo la tuya. 275 276Cada temperatura que registras le enseña algo: cuánto dura tu fase lútea, en qué rango exacto se mueve tu temperatura, cuál es el patrón individual de tu ciclo. Con esa información, el motor no espera a que suba la temperatura para decirte que ya ovulaste â anticipa cuándo va a subir. 277 278Desde el tercer ciclo registrado, Luna empieza a reconocer tu patrón personal. Desde el sexto, ya sabe cosas sobre tu ciclo que ningún termómetro te dirÃa. 279 280El moco cervical mejora la predicción â pero no es obligatorio. Temperatura sola es suficiente para empezar.`,tag:"Basado en evidencia cientÃfica",tagPill:!0,note:"Temperatura bifásica y reconocimiento de fertilidad respaldados por literatura cientÃfica internacional (NEJM, ESHRE, OMS). El sistema es una herramienta de orientación, no un dispositivo médico diagnóstico."},{num:"3",title:"Tu médico llega preparado a la consulta",desc:"Datos organizados, patrones identificados, preguntas relevantes. El tiempo de consulta se dedica a lo que importa: decidir sobre tu salud con información real, no con lo que lograste recordar.",tag:"En tu próxima consulta"}],D8=()=>a.jsxs("div",{className:"max-w-[320px] rounded-xl shadow-sm border border-ov-border overflow-hidden mx-auto md:mx-0",children:[a.jsxs("div",{className:"bg-lila px-4 py-2 flex items-center gap-2",children:[a.jsx("div",{className:"w-7 h-7 rounded-full bg-white/20 flex items-center justify-center text-sm",children:"ð"}),a.jsx("p",{className:"text-white font-body text-xs font-semibold",children:"Luna · ovulación.ai"})]}),a.jsxs("div",{className:"p-4 space-y-2 bg-white",children:[a.jsx("div",{className:"flex justify-start",children:a.jsx("div",{className:"max-w-[85%] px-3 py-2 font-body text-xs bg-lila-pale border border-ov-border text-ov-text rounded-[12px] rounded-bl-[3px]",children:"Hola Valentina 𸠿Tomaste tu temperatura basal hoy a la misma hora que ayer?"})}),a.jsx("div",{className:"flex justify-end",children:a.jsx("div",{className:"max-w-[85%] px-3 py-2 font-body text-xs bg-lila text-white rounded-[12px] rounded-br-[3px]",children:"SÃ, 36.4°C. Igual que ayer."})})]})]}),M8=()=>{const e=[36.2,36.15,36.25,36.18,36.22,36.3,36.2,36.28,36.15,36.22,36.18,36.25,36.1,36.05,36.45,36.6,36.65,36.7,36.68,36.72,36.75,36.7,36.78,36.72,36.68,36.75,36.7,36.65],t=400,n=180,r=38,s=10,i=28,o=24,l=t-r-s,c=n-i-o,d=36,u=36.9,h=b=>r+(b-1)/27*l,p=b=>i+(1-(b-d)/(u-d))*c,f=e.map((b,g)=>`${g===0?"M":"L"}${h(g+1).toFixed(1)},${p(b).toFixed(1)}`).join(" "),x=[36,36.2,36.4,36.6,36.8],v=[1,7,14,21,28];return a.jsx("div",{className:"w-full rounded-xl border border-ov-border overflow-hidden",style:{background:"#faf8f5"},children:a.jsxs("svg",{viewBox:`0 0 ${t} ${n}`,className:"w-full",style:{height:180},children:[a.jsx("text",{x:r+l*.22,y:14,textAnchor:"middle",className:"fill-ov-text-mid",style:{fontSize:9,fontFamily:"DM Sans"},children:"Fase folicular"}),a.jsx("text",{x:r+l*.75,y:14,textAnchor:"middle",className:"fill-ov-text-mid",style:{fontSize:9,fontFamily:"DM Sans"},children:"Fase lútea"}),x.map(b=>a.jsx("line",{x1:r,x2:t-s,y1:p(b),y2:p(b),stroke:"hsl(var(--ov-border))",strokeWidth:.5},b)),x.map(b=>a.jsx("text",{x:r-4,y:p(b)+3,textAnchor:"end",className:"fill-ov-text-soft",style:{fontSize:8,fontFamily:"DM Sans"},children:b.toFixed(1)},b)),v.map(b=>a.jsx("text",{x:h(b),y:n-6,textAnchor:"middle",className:"fill-ov-text-soft",style:{fontSize:8,fontFamily:"DM Sans"},children:b},b)),a.jsx("rect",{x:h(9),y:i,width:h(14)-h(9),height:c,fill:"hsl(var(--ov-green))",opacity:.1,rx:3}),a.jsx("text",{x:(h(9)+h(14))/2,y:i+12,textAnchor:"middle",style:{fontSize:8,fontFamily:"DM Sans",fill:"hsl(var(--ov-green))"},children:"Fértil"}),a.jsx("line",{x1:r,x2:t-s,y1:p(36.5),y2:p(36.5),stroke:"#7c5cbf",strokeWidth:.8,strokeDasharray:"4 3"}),a.jsx("text",{x:t-s+1,y:p(36.5)+3,textAnchor:"start",style:{fontSize:7,fill:"#7c5cbf",fontFamily:"DM Sans"},children:"36.5°"}),a.jsx("path",{d:f,fill:"none",stroke:"#7c5cbf",strokeWidth:1.5,strokeLinejoin:"round"}),e.map((b,g)=>a.jsx("circle",{cx:h(g+1),cy:p(b),r:2.2,fill:"#7c5cbf"},g)),a.jsx("line",{x1:h(14),y1:p(e[13])+5,x2:h(14),y2:p(e[13])+18,stroke:"hsl(var(--ov-green))",strokeWidth:1.2,markerEnd:"url(#arrowG)"}),a.jsx("defs",{children:a.jsx("marker",{id:"arrowG",markerWidth:"6",markerHeight:"6",refX:"3",refY:"6",orient:"auto",children:a.jsx("path",{d:"M0,6 L3,0 L6,6",fill:"none",stroke:"hsl(var(--ov-green))",strokeWidth:"1"})})}),a.jsx("text",{x:h(14),y:p(e[13])+26,textAnchor:"middle",style:{fontSize:7,fill:"hsl(var(--ov-green))",fontFamily:"DM Sans"},children:"Ovulación"})]})})},F8=()=>{const e=[{label:"Duración media del ciclo",value:"27 dÃas"},{label:"Fase lútea estimada",value:"13 dÃas â Estable"},{label:"Patrón de dolor cÃclico",value:"DÃas 24â28 (6/10)"},{label:"SÃntomas premenstruales",value:"DÃas 21â28"},{label:"Ventana fértil identificada",value:"DÃas 12â16"}];return a.jsxs("div",{className:"max-w-[300px] rounded-xl border border-lila/20 overflow-hidden shadow-sm mx-auto md:mx-0",children:[a.jsx("div",{className:"px-4 py-3 bg-[#0a1628]",children:a.jsx("p",{className:"font-body text-xs font-semibold text-white",children:"Resumen del ciclo â Ãltimos 30 dÃas"})}),a.jsx("div",{className:"bg-white divide-y divide-ov-border",children:e.map((t,n)=>a.jsxs("div",{className:"flex justify-between items-center px-4 py-2.5",children:[a.jsx("span",{className:"font-body text-xs text-ov
280-text-mid",children:t.label}),a.jsx("span",{className:"font-body text-xs font-bold text-lila",children:t.value})]},n))}),a.jsx("div",{className:"px-4 py-3 bg-white border-t border-ov-border",children:a.jsx("span",{className:"inline-block text-xs font-body font-medium px-3 py-1 rounded-full bg-lila text-white",children:"Listo para tu consulta â"})})]})},U8=[a.jsx(D8,{}),a.jsx(M8,{}),a.jsx(F8,{})],B8=()=>a.jsx("section",{className:"bg-white py-16 md:py-24",children:a.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[a.jsx(be,{label:"Cómo funciona",title:"Tan fácil como contestar un mensaje.",body:"Sin apps complicadas. Sin tecnicismos. Sin curva de aprendizaje."}),a.jsx("div",{className:"space-y-14",children:I8.map((e,t)=>a.jsxs("div",{className:"grid md:grid-cols-2 gap-8 items-center min-h-[200px]",children:[a.jsxs("div",{className:"flex gap-4 md:gap-6 items-start",children:[a.jsx("span",{className:"font-display text-6xl md:text-8xl font-bold text-lila-soft leading-none",style:{WebkitTextStroke:"2px hsl(262, 46%, 65%)"},children:e.num}),a.jsxs("div",{className:"flex-1 pt-2",children:[a.jsx("h3",{className:"font-display text-xl font-bold text-ov-text",children:e.title}),a.jsx("div",{className:"font-body text-sm text-ov-text-mid mt-2 space-y-3",children:e.desc.split(` 281 282`).map((n,r)=>a.jsx("p",{children:n},r))}),a.jsxs("span",{className:`inline-block mt-3 text-xs font-body font-medium px-3 py-1 rounded-full ${e.tagPill?"bg-lila text-white":"bg-lila-soft text-lila"}`,children:[e.tagPill?"âï¸ ":"",e.tag]}),e.note&&a.jsx("p",{className:"font-body text-xs italic text-ov-text-soft mt-2",children:e.note})]})]}),a.jsx("div",{className:"flex items-start justify-center md:justify-start",children:U8[t]})]},e.num))}),a.jsx("div",{className:"bg-lila-pale border border-ov-border rounded-xl p-5 mt-10",children:a.jsxs("p",{className:"font-body text-xs text-ov-text-soft",children:["â ï¸ ",a.jsx("strong",{children:"Nota clÃnica:"})," El sistema predictivo es una herramienta de orientación. No constituye diagnóstico médico ni garantiza resultados de concepción."]})})]})}),z8=[{from:"luna",text:"Hola Valentina 𸠿Tomaste tu temperatura basal hoy a la misma hora que ayer?"},{from:"user",text:"SÃ, 36.4°C. Igual que ayer."},{from:"luna",text:"Bien. Llevamos 6 dÃas de temperatura estable en esa franja. ¿Notaste algún cambio en el moco cervical en las últimas 24 horas?"},{from:"user",text:"SÃ, hoy se ve diferente â más elástico."},{from:"luna",text:"Eso se llama moco tipo clara de huevo y es una señal clave ð¿ Combinado con la temperatura de esta semana, tu cuerpo está mostrando que la ovulación puede ocurrir en las próximas 24â48 horas."}],q8=()=>a.jsx("section",{className:"bg-lila-pale py-16 md:py-24",children:a.jsxs("div",{className:"max-w-2xl mx-auto px-4",children:[a.jsx(be,{label:"Asà se siente",title:"Una conversación de 3 minutos que puede cambiarlo todo.",centered:!0}),a.jsxs("div",{className:"bg-white border border-ov-border rounded-[20px] shadow-[0_4px_24px_rgba(124,92,191,0.12)] overflow-hidden",children:[a.jsxs("div",{className:"bg-lila px-5 py-3 flex items-center gap-3",children:[a.jsx("div",{className:"w-10 h-10 rounded-full bg-white/20 flex items-center justify-center text-lg",children:"ð"}),a.jsxs("div",{children:[a.jsx("p",{className:"text-white font-body text-sm font-semibold",children:"Luna · ovulación.ai"}),a.jsx("p",{className:"text-white/75 font-body text-xs",children:"â Disponible 24/7"})]})]}),a.jsxs("div",{className:"p-5 md:p-7 space-y-3",children:[z8.map((e,t)=>a.jsx("div",{className:`flex ${e.from==="user"?"justify-end":"justify-start"}`,children:a.jsx("div",{className:`max-w-[85%] px-4 py-3 font-body text-sm ${e.from==="user"?"bg-lila text-white rounded-[14px] rounded-br-[4px]":"bg-lila-pale border border-ov-border text-ov-text rounded-[14px] rounded-bl-[4px]"}`,children:e.text})},t)),a.jsx("div",{className:"flex justify-start",children:a.jsxs("div",{className:"max-w-[92%] bg-[#f0faf5] border border-[#b8e8d0] rounded-[14px] px-4 py-3",children:[a.jsxs("p",{className:"font-body text-sm font-bold text-ov
282-green flex items-center gap-2",children:[a.jsx("span",{className:"w-4 h-4 rounded-full bg-ov-green inline-block flex-shrink-0"}),"VERDE â VENTANA FÃRTIL"]}),a.jsx("p",{className:"font-body text-xs text-ov-text-mid mt-1",children:"Temperatura + moco cervical + dÃa del ciclo alineados. He preparado tu resumen de los últimos 7 dÃas para tu próxima consulta."})]})})]})]})]})}),Jp=[{label:"Qué hace",thermo:"Confirma la ovulación 12â24h después",ov:"Anticipa la ventana fértil antes de que llegue"},{label:"Datos que usa",thermo:"Un indicador, un momento",ov:"Patrón histórico + moco cervical opcional"},{label:"Precisión",thermo:"Igual en cada ciclo",ov:"Mejora ciclo a ciclo"},{label:"Conocimiento de ti",thermo:"Ninguno",ov:"Aprende tu fase lútea individual"}],Yp=[{cycles:"1 ciclo",knows:"Referencia basal. Registra y espera.",level:"Inicio"},{cycles:"3 ciclos",knows:"Tu fase lútea empieza a ser predecible.",level:"Predicción inicial"},{cycles:"6 ciclos",knows:"Tu patrón individual es claro.",level:"Precisión media-alta"},{cycles:"6+ ciclos + moco cervical",knows:"Dos señales alineadas.",level:"Máxima precisión disponible"}],H8=()=>a.jsx("section",{className:"bg-ov-bg-alt py-16 md:py-24",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[a.jsx(be,{label:"La diferencia entre confirmar y predecir",title:"Por qué un termómetro solo no es suficiente â y qué cambia cuando el sistema te conoce."}),a.jsxs("p",{className:"font-body text-sm text-ov-text-mid leading-relaxed mb-8 max-w-3xl",children:["El termómetro basal lleva décadas existiendo. Si bastara con tenerlo, no estarÃas aquÃ.",a.jsx("br",{}),a.jsx("br",{}),"El problema es este: la temperatura sube 12â24 horas después de que ovulaste. Para cuando ves la señal, la ventana fértil ya está cerrando. El termómetro te dice dónde estuviste. No dónde vas."]}),a.jsxs("div",{className:"bg-lila-pale border border-lila rounded-xl p-8 text-center mb-10",children:[a.jsx("p",{className:"font-body text-sm text-ov-text-mid",children:"Un termómetro te dice que ya ovulaste."}),a.jsx("p",{className:"font-display text-xl md:text-2xl font-bold text-navy mt-2",children:"ovulación.ai aprende cuándo vas a ovular."})]}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid leading-relaxed mb-10 max-w-3xl",children:"Lo que cambia con el historial es la dirección del tiempo. La fase lútea de cada mujer es sorprendentemente constante â varÃa menos de 2 dÃas entre ciclos. Cuando el sistema conoce tu fase lútea habitual, puede calcular hacia atrás desde tu próxima menstruación y anticipar tu ventana fértil antes de que llegue."}),a.jsx("div",{className:"hidden md:block mb-10",children:a.jsxs("table",{className:"w-full border-collapse",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{className:"font-body text-xs font-bold text-ov-text-soft uppercase tracking-wider text-left p-3 border-b border-ov-border"}),a.jsx("th",{className:"font-body text-xs font-bold text-ov-text-soft uppercase tracking-wider text-left p-3 border-b border-ov-border",children:"Termómetro basal solo"}),a.jsx("th",{className:"font-body text-xs font-bold text-lila uppercase tracking-wider text-left p-3 border-b border-ov-border",children:"ovulación.ai"})]})}),a.jsx("tbody",{children:Jp.map((e,t)=>a.jsxs("tr",{className:t%2===0?"bg-white":"bg-ov-bg",children:[a.jsx("td",{className:"font-body text-sm font-bold text-ov-text p-3 border-b border-ov-border",children:e.label}),a.jsx("td",{className:"font-body text-sm text-ov-text-mid p-3 border-b border-ov-border",children:e.thermo}),a.jsx("td",{className:"font-body text-sm text-ov-text font-medium p-3 border-b border-ov-border",children:e.ov})]},t))})]})}),a.jsx("div",{className:"md:hidden space-y-4 mb-10",children:Jp.map((e,t)=>a.jsxs("div",{className:"bg-white border border-ov-border rounded-xl p-5",children:[a.jsx("p",{className:"font-body text-xs font-bold text-ov-text-soft uppercase tracking-wider mb-3",children:e.label}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"font-body text-[11px] text-ov
282-text-soft uppercase",children:"Termómetro"}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid",children:e.thermo})]}),a.jsxs("div",{children:[a.jsx("p",{className:"font-body text-[11px] text-lila uppercase font-medium",children:"ovulación.ai"}),a.jsx("p",{className:"font-body text-sm text-ov-text font-medium",children:e.ov})]})]})]},t))}),a.jsx("div",{className:"hidden md:block mb-10",children:a.jsxs("table",{className:"w-full border-collapse",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{className:"font-body text-xs font-bold text-ov-text-soft uppercase tracking-wider text-left p-3 border-b border-ov-border",children:"Ciclos registrados"}),a.jsx("th",{className:"font-body text-xs font-bold text-ov-text-soft uppercase tracking-wider text-left p-3 border-b border-ov-border",children:"Qué sabe Luna"}),a.jsx("th",{className:"font-body text-xs font-bold text-ov-text-soft uppercase tracking-wider text-left p-3 border-b border-ov-border",children:"Nivel"})]})}),a.jsx("tbody",{children:Yp.map((e,t)=>a.jsxs("tr",{className:t%2===0?"bg-white":"bg-ov-bg",children:[a.jsx("td",{className:"font-body text-sm font-bold text-ov-text p-3 border-b border-ov-border",children:e.cycles}),a.jsx("td",{className:"font-body text-sm text-ov-text-mid p-3 border-b border-ov-border",children:e.knows}),a.jsx("td",{className:"p-3 border-b border-ov-border",children:a.jsx("span",{className:"font-body text-xs font-medium px-2.5 py-1 rounded-full bg-lila-soft text-lila",children:e.level})})]},t))})]})}),a.jsx("div",{className:"md:hidden space-y-4 mb-10",children:Yp.map((e,t)=>a.jsxs("div",{className:"bg-white border border-ov-border rounded-xl p-5",children:[a.jsx("p",{className:"font-body text-sm font-bold text-ov-text",children:e.cycles}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid mt-1",children:e.knows}),a.jsx("span",{className:"inline-block mt-2 font-body text-xs font-medium px-2.5 py-1 rounded-full bg-lila-soft text-lila",children:e.level})]},t))}),a.jsx("p",{className:"font-body text-sm font-medium text-ov-text text-center mb-6",children:"Cada ciclo que registras es una inversión. Tu historial es tu ventaja."}),a.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl p-6",children:[a.jsxs("p",{className:"font-body text-sm text-ov-text leading-relaxed",children:[a.jsx("strong",{children:"Lo que sà afirmamos â y está respaldado por la literatura FAM:"})," La combinación de temperatura basal histórica + patrón individual de ciclo + moco cervical opcional es más precisa para identificar la ventana fértil que cualquier indicador aislado. Eso es lo que hace Luna cada dÃa."]}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid mt-3 italic",children:"ovulación.ai no predice tu ovulación desde el primer dÃa. La aprende. Y cada ciclo que registras, la predicción mejora."})]})]})}),W8=[{color:"green",label:"Verde â Fértil",bg:"bg-[#f0faf5]",border:"border-[#b8e8d0]",dot:"bg-ov-green",desc:"Tu temperatura, tu moco cervical y tu historial de ciclo se alinean. Es tu ventana. Tu momento."},{color:"amber",label:"Ãmbar â Potencialmente fértil",bg:"bg-[#fffbf0]",border:"border-[#f5dda0]",dot:"bg-ov-amber",desc:"Las señales están cambiando. Puede estar cerca la ovulación o acabar de pasar. Luna te ayuda a interpretarlo."},{color:"red",label:"Rojo â Fase no fértil",bg:"bg-[#fff5f5]",border:"border-[#f5c0c0]",dot:"bg-ov-red",desc:"Tu cuerpo está en otra fase del ciclo. Momento de registrar, entender el patrón, preparar la próxima ventana."}],V8=()=>a.jsx("section",{className:"bg-white py-16 md:py-24",children:a.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[a.jsx(be,{label:"El semáforo de fertilidad",title:"Siempre sabes en qué momento estás.",body:"No necesitas ser médica para entender tus señales. ovulación.ai invierte la lógica de los dispositivos de anticoncepción: aquà el verde significa que es tu momento."}),a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:W8.map(e=>a.jsxs("div",{className:`${e.bg} border ${e.border} rounded-xl p-6 text-center`,children:[a.jsx("div",{className:`w-5 h-5 rounded-full ${e.dot} mx-auto mb-3`}
282),a.jsx("p",{className:"font-body text-sm font-bold text-ov-text",children:e.label}),a.jsx("p",{className:"font-body text-xs text-ov-text-mid mt-2",children:e.desc})]},e.color))}),a.jsx("p",{className:"font-body text-xs italic text-ov-text-soft text-center mt-6",children:"El semáforo no diagnostica. Te da claridad para que nunca navegues tu ciclo sola."})]})}),G8=["SÃntomas que registras pero no sabes qué significan","Consultas donde sales con más dudas que respuestas","Meses, a veces años, esperando un nombre para lo que sientes","La sensación de que estás exagerando â o de que todo está en tu cabeza","Decisiones médicas tomadas con datos incompletos sobre tu cuerpo"],K8=["Cada dato registrado tiene contexto clÃnico encima","Llegas a la consulta con 30 dÃas de patrón objetivo, no con tu memoria","Luna te acompaña cada dÃa. Nadie sola entre consultas.","Ves el patrón en tiempo real. Sabes cuándo algo cambia.","Llegas con claridad, con preguntas, con datos que tu médico puede leer"],J8=()=>a.jsx("section",{className:"bg-ov-bg-alt py-16 md:py-24",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[a.jsx(be,{label:"La diferencia",title:"Antes y después de entender tu ciclo con datos."}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[a.jsxs("div",{children:[a.jsx("h4",{className:"font-body text-xs font-semibold uppercase tracking-wider text-ov-text-soft mb-4 pb-2 border-b-2 border-ov-border",children:"Antes"}),a.jsx("ul",{className:"space-y-3",children:G8.map(e=>a.jsxs("li",{className:"font-body text-sm text-ov-text-mid flex gap-2",children:[a.jsx("span",{className:"text-ov-red flex-shrink-0",children:"â"}),e]},e))})]}),a.jsxs("div",{children:[a.jsx("h4",{className:"font-body text-xs font-semibold uppercase tracking-wider text-lila mb-4 pb-2 border-b-2 border-lila",children:"Después"}),a.jsx("ul",{className:"space-y-3",children:K8.map(e=>a.jsxs("li",{className:"font-body text-sm text-ov-text flex gap-2",children:[a.jsx("span",{className:"text-ov-green flex-shrink-0",children:"â"}),e]},e))})]})]})]})}),Y8=()=>a.jsx("section",{className:"bg-white py-16 md:py-24",children:a.jsxs("div",{className:"max-w-3xl mx-auto px-4",children:[a.jsx(be,{label:"Quién está detrás",title:""}),a.jsxs("div",{className:"bg-lila-pale border border-ov-border rounded-[20px] p-6 md:p-10",children:[a.jsxs("blockquote",{className:"font-display text-base md:text-xl italic text-navy leading-relaxed pb-6 mb-6 border-b border-ov-border",children:['"Me formé en un sistema que va directo a intervenir. AnalÃticas, ecografÃas, estimulaciones. Y en algún momento me hice una pregunta incómoda: ¿cuántas mujeres llegan a esa puerta sin haber entendido primero lo que su propio cuerpo ya les estaba diciendo?',a.jsx("br",{}),a.jsx("br",{}),"Mi esposa lleva años midiendo su temperatura basal con un dispositivo de alta precisión. Con esos datos aprendió a leer su ciclo de una forma que ninguna consulta le habÃa enseñado. Entendió sus patrones, su fase lútea, su ventana fértil â con datos reales, no con suposiciones. Siendo médico internista, lo que Gaby aprendió con esos datos â su fase lútea, su ventana fértil, su patrón individual â superó lo que cualquier consulta aislada le habÃa podido dar.",a.jsx("br",{}),a.jsx("br",{}),'Eso me hizo construir ovulación.ai. Para que cualquier mujer â esté intentando concebir, conviviendo con un dolor cÃclico que nadie nombra, atravesando un cambio hormonal o simplemente intentando entender por qué algunos meses siente que algo no está bien â tenga ese mismo acompañamiento. Con IA, con contexto clÃnico, con criterio clÃnico detrás de cada pregunta y cada informe. Antes de que el sistema decida que es hora de intervenir. O junto a él."']}),a.jsxs("div",{className:"flex items-center gap-4",children:[a.jsx("div",{className:"w-16 h-16 md:w-20 md:h-20 rounded-full bg-lila flex items-center justify-center text-2xl flex-shrink-0",children:"ð¨ââï¸"}),a.jsxs("div",{children:[a.jsx("p",{className:"font-body text-base font-bold text-navy",children:"Dr. Pedro Mujica"}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid",children:"Médico Internista · 15 años de experiencia clÃnica"}),a.jsxs("div",{className:"flex gap-2 mt-2",children:[a.jsx("span",{className:"bg-lila-soft text-lila font-body text-xs px-2 py-0.5 rounded-full",children:"Medicina Interna"}),a.jsx("span",{className:"bg-lila-soft text-lila font-body text-xs px-2 py-0.5 rounded-full",children:"Control de sÃntomas"})]})]})]})]})]})}
282),Q8=["Tienes endometriosis y nadie te ha explicado cómo se manifiesta en tus datos cÃclicos",'Tienes SOP y vives entre "todo está bien" y "no entiendes tu cuerpo"',"Tus sÃntomas premenstruales son severos y nadie los ha mirado de cerca",'Estás en los primeros años de perimenopausia y te dicen "es la edad"','Tu dolor menstrual te detiene cada mes y te dicen "es normal"',"Estás intentando concebir y quieres entender tu ciclo con datos reales","Llevas varios ciclos registrados y quieres que esos datos empiecen a explicarte tu cuerpo, no solo a confirmarlo","Quieres acompañamiento diario entre consultas, no silencio"],X8=["Buscas un método anticonceptivo â ovulación.ai es una herramienta de concepción","Quieres un diagnóstico automático sin médico en el circuito","No estás dispuesta a dedicar 3 minutos al dÃa a entender tu cuerpo","Crees que buscar en internet es suficiente para leer tu ciclo"],Z8=()=>a.jsx("section",{className:"bg-ov-bg-alt py-16 md:py-24",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[a.jsx(be,{label:"¿Es para ti?",title:"Hablemos claro."}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[a.jsxs("div",{className:"bg-white border border-ov-border rounded-[14px] p-7",children:[a.jsx("h4",{className:"font-body text-sm font-bold text-lila mb-4",children:"Sà es para ti siâ¦"}),a.jsx("ul",{className:"space-y-3",children:Q8.map(e=>a.jsxs("li",{className:"font-body text-sm text-ov-text flex gap-2",children:[a.jsx("span",{className:"text-ov-green flex-shrink-0",children:"â"}),e]},e))})]}),a.jsxs("div",{className:"bg-white border border-ov-border rounded-[14px] p-7",children:[a.jsx("h4",{className:"font-body text-sm font-bold text-ov-text-soft mb-4",children:"NO es para ti siâ¦"}),a.jsx("ul",{className:"space-y-3",children:X8.map(e=>a.jsxs("li",{className:"font-body text-sm text-ov-text-mid flex gap-2",children:[a.jsx("span",{className:"text-ov-red flex-shrink-0",children:"â"}),e]},e))})]})]})]})}),e6=[{feature:"Predicción de fertilidad",cal:"â ï¸ Genérica",algo:"â ï¸ AlgorÃtmica genérica",hw:"â
Por sensores",ov:"â
IA que aprende tu patrón individual"},{feature:"Conversación clÃnica con IA",cal:"â No",algo:"â No",hw:"â No",ov:"â
Luna 24/7"},{feature:"Aprendizaje del patrón cÃclico individual",cal:"â No aprende",algo:"â ï¸ Modelo poblacional",hw:"â ï¸ Datos sin contexto",ov:"â
Cada ciclo mejora la lectura"},{feature:"Médico en el circuito",cal:"â No",algo:"â No",hw:"â No",ov:"â
Internista creador"},{feature:"Informe para tu consulta médica",cal:"â No",algo:"â No",hw:"â No",ov:"â
Automático"},{feature:"En español, para España y LATAM",cal:"â ï¸ Parcial",algo:"â Solo inglés",hw:"â ï¸ Parcial",ov:"â
100%"},{feature:"Precio de acceso",cal:"~$10/mes",algo:"~$11/mes",hw:"$545 hardware",ov:"$9.99/mes"}],t6=()=>a.jsx("section",{className:"bg-white py-16 md:py-24",children:a.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[a.jsx(be,{label:"Por qué ovulación.ai es diferente",title:"Lo que ninguna app ni dispositivo tiene. Y ovulación.ai sÃ.",body:"El mercado está lleno de calendarios glorificados y dispositivos que miden sin explicar. Esto es diferente."}),a.jsx("p",{className:"md:hidden font-body text-xs text-ov-text-soft text-center mb-2",children:"â desliza para ver toda la tabla â"}),a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"overflow-x-auto -mx-4 px-4",children:a.jsxs("table",{className:"w-full min-w-[640px] font-body text-sm",children:[a.jsx("thead",{children:a.jsxs("tr",{className:"bg-lila text-white",children:[a.jsx("th",{className:"text-left px-4 py-3 font-medium rounded-tl-xl",children:"CaracterÃstica"}),a.jsx("th",{className:"text-center px-3 py-3 font-medium",children:"Apps de calendario"}),a.jsx("th",{className:"text-center px-3 py-3 font-medium",children:"Apps con algoritmo"}),a.jsx("th",{className:"text-center px-3 py-3 font-medium",children:"Dispositivos hardware"}),a.jsx("th",{className:"text-center px-3 py-3 font-medium rounded-tr-xl",children:"ovulación.ai"})]})}),a.jsx("tbody",{children:e6.map((e,t)=>a.jsxs("tr",{className:t%2===0?"bg-ov-bg":"bg-white",children:[a.jsx("td",{className:"px-4 py-3 font-medium text-ov-text",children:e.feature}),a.jsx("td",{className:"px-3 py-3 text-center text-ov-text-mid",children:e.cal}),a.jsx("td",{className:"px-3 py-3 text-center text-ov-text-mid",children:e.algo}),a.jsx("td",{className:"px-3 py-3 text-center text-ov-text-mid",children:e.hw}),a.jsx("td",{className:"px-3 py-3 text-center font-bold text-ov
282-text bg-lila/[0.08]",children:e.ov})]},e.feature))})]})}),a.jsx("div",{className:"md:hidden pointer-events-none absolute top-0 right-0 h-full w-8 bg-gradient-to-l from-white to-transparent"})]}),a.jsx("div",{className:"bg-lila-pale border border-ov-border rounded-xl p-6 mt-6",children:a.jsxs("p",{className:"font-body text-sm text-ov-text",children:[a.jsx("strong",{children:"ovulación.ai es el único producto"})," que combina IA que aprende tu patrón individual + conversación clÃnica con Luna + informe estructurado para tu consulta + en español. Esa combinación no existe en ningún otro lugar â sirvas para concebir, para entender un sÃndrome diagnosticado o para nombrar lo que llevas años sintiendo."]})})]})}),n6=[{icon:"ð",title:"Solo tú y tu médico",desc:"Nadie más. Ni nosotros. Ni empresas. Ni aseguradoras."},{icon:"ð¦",title:"Cifrado bancario",desc:"La misma seguridad que protege las transacciones de tu banco."},{icon:"ðªðº",title:"Normativa RGPD",desc:"La regulación más estricta del mundo en protección de datos sanitarios."}],r6=()=>a.jsx("section",{className:"bg-white py-16 md:py-24",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[a.jsx(be,{label:"Tu privacidad",title:"Tu ciclo no es un producto de datos.",centered:!0}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:n6.map(e=>a.jsxs("div",{className:"bg-ov-bg border border-ov-border rounded-xl p-6 text-center",children:[a.jsx("span",{className:"text-2xl",children:e.icon}),a.jsx("p",{className:"font-body text-sm font-bold text-ov-text mt-3",children:e.title}),a.jsx("p",{className:"font-body text-xs text-ov-text-mid mt-1",children:e.desc})]},e.title))})]})}),s6=[{q:"Ya uso Flo, Clue o una app de calendario menstrual. ¿Qué cambia con ovulación.ai?",a:`Las apps de calendario predicen tu ciclo a partir de un modelo poblacional â promedios estadÃsticos de millones de mujeres. ovulación.ai aprende tu patrón individual: tu temperatura basal, tu moco cervical, tus sÃntomas anclados al dÃa del ciclo, tu fase lútea real. Desde el primer ciclo, Luna empieza a leer tu cuerpo en lugar de proyectar el promedio sobre ti. 283 284Y hay algo más: tu app de calendario no genera un informe clÃnico que puedas llevar a consulta. ovulación.ai sÃ. Cada mes, tienes 30 dÃas de patrón objetivo en un documento que tu médico puede leer en 2 minutos â en lugar de tu memoria, que el sistema clÃnico ha aprendido a desestimar.`},{q:"Tengo endometriosis. ¿Esto me sirve si no estoy buscando concebir?",a:'SÃ. Luna registra el patrón cÃclico completo: dolor mapeado al dÃa del ciclo, fase lútea, spotting premenstrual, dispareunia, dismenorrea progresiva. Ese mapa fenotÃpico es exactamente lo que la consulta ginecológica habitual no logra capturar y lo que cambia la conversación clÃnica de "es normal" a "miremos esto con más detalle". No diagnostica endometriosis â entrega los datos longitudinales que ayudan al médico a tomar decisiones más finas.'},{q:"Tengo sÃndrome premenstrual severo o sospecho PMDD. ¿Luna puede ayudarme?",a:"Sà â y aquà Luna es especialmente útil. El diagnóstico formal de PMDD requiere registro prospectivo de sÃntomas durante al menos dos ciclos consecutivos según los criterios clÃnicos internacionales. La mayorÃa de mujeres nunca lo recibe formalmente porque ningún profesional les pide ese registro estructurado. Luna lo genera de forma natural, dÃa a dÃa, anclado al ciclo. Llegas a tu médico con el instrumento que el sistema deberÃa haberte dado y nunca te dio."},{q:"Estoy en perimenopausia o creo estarlo. ¿Esto es para mÃ?",a:'SÃ. La perimenopausia se caracteriza por variabilidad creciente del ciclo, anovulación intermitente y aparición de sÃntomas vasomotores. Luna captura esos tres marcadores directamente. Con varios ciclos registrados llegas a tu consulta con un patrón objetivo que justifica analÃtica hormonal en el momento correcto del ciclo â no con la frase "creo que algo está cambiando".'},{q:"¿Tengo que medirme la temperatura todos los dÃas?",a:"No siempre. La temperatura basal es útil si estás buscando confirmar ovulación o entender tu fase lútea. Para muchos casos â endometriosis, PMDD, perimenopausia â lo esencial es anclar sÃntomas al dÃa del ciclo. Luna te dice qué necesita tu caso."},{q:"¿Esto reemplaza a mi médico?",a:"No. ovulación.ai no reemplaza nada â
284complementa. El sistema organiza datos de tu ciclo y te ayuda a entenderlos. Pero las decisiones clÃnicas â diagnósticos, tratamientos, derivaciones â siempre las toma tu médico. De hecho, uno de los objetivos del sistema es que llegues a cada consulta mejor preparada, con más datos y con las preguntas correctas. El tiempo de consulta es limitado. ovulación.ai hace que ese tiempo rinda el doble."},{q:"¿Necesito un termómetro especial para usarlo?",a:"Necesitas un termómetro basal â no el de fiebre. La diferencia es la precisión: un termómetro basal mide con una exactitud de ±0,01°C, mientras que el de fiebre tiene un margen de ±0,1°C. El cambio que indica ovulación es de apenas 0,2â0,5°C, asà que con un termómetro convencional ese cambio puede perderse completamente. Un termómetro basal cuesta entre 8 y 15⬠en cualquier farmacia. No necesitas gastar más."},{q:"¿Sirve si tengo SOP o endometriosis?",a:"Sà â y en estos casos puede ser especialmente útil. El SOP afecta al 8â13% de las mujeres en edad reproductiva y es la causa más frecuente de infertilidad anovulatoria. La endometriosis afecta al 10% y tarda una media de 8â10 años en diagnosticarse en España. En ambos casos, el registro de temperatura basal revela patrones que un análisis puntual no puede ver: si hay ovulación o no, cómo varÃa la fase lútea, qué sÃntomas coinciden con qué fase. Esa información tiene valor clÃnico real y puede acelerar el proceso diagnóstico."},{q:"¿Puedo usarlo si ya estoy en tratamiento de fertilidad?",a:"SÃ. ovulación.ai no interfiere con ningún tratamiento médico. Al contrario: si estás en seguimiento con un especialista, tener datos organizados de tu ciclo â temperatura, sÃntomas, patrón â puede enriquecer la información que tu médico tiene disponible. Consulta con tu especialista si tienes dudas sobre cómo integrar los datos."},{q:"¿Cuánto tiempo al dÃa necesito dedicarle?",a:"Aproximadamente 3 minutos. La conversación con Luna es breve: temperatura del dÃa, cualquier cambio que hayas notado, cómo te encuentras. No necesitas re
284cordar nada ni hacer cálculos. Luna hace las preguntas. Tú respondes. El sistema procesa."},{q:"¿Cuándo estará disponible ovulación.ai?",a:"Estamos en fase de acceso anticipado. Las primeras 50 mujeres registradas acceden antes del lanzamiento público y mantienen el precio de fundadoras â $9.99/mes â de forma permanente, aunque el precio suba. El registro en la lista de espera es gratuito y sin compromiso."},{q:"¿Es esto un método anticonceptivo?",a:"No. ovulación.ai es una herramienta de acompañamiento reproductivo orientada a la concepción, no a la anticoncepción. Si buscas un método para evitar el embarazo, este no es el producto adecuado. Para anticoncepción, consulta con tu médico sobre las opciones disponibles y reguladas para ese fin."}],i6=()=>{const[e,t]=w.useState(null);return a.jsx("section",{className:"bg-ov-bg-alt py-16 md:py-24",children:a.jsxs("div",{className:"max-w-3xl mx-auto px-4",children:[a.jsx(be,{label:"Preguntas frecuentes",title:"Dudas normales. Respuestas directas."}),a.jsx("div",{className:"space-y-3",children:s6.map((n,r)=>a.jsxs("div",{className:"bg-white border border-ov-border rounded-xl overflow-hidden",children:[a.jsxs("button",{onClick:()=>t(e===r?null:r),className:"w-full flex items-center justify-between px-6 py-4 text-left",children:[a.jsx("span",{className:"font-body text-sm font-bold text-navy pr-4",children:n.q}),a.jsx("span",{className:"text-lila text-xl flex-shrink-0 transition-transform duration-200",style:{transform:e===r?"rotate(45deg)":"none"},children:"+"})]}),e===r&&a.jsx("div",{className:"px-6 pb-5",children:a.jsx("p",{className:"font-body text-sm text-ov-text-mid leading-relaxed",children:n.a})})]},r))})]})})},o6=()=>{var e;(e=document.querySelector("#form-final"))==null||e.scrollIntoView({behavior:"smooth",block:"center"})},a6=["Seguir tomando temperaturas que no entiendes","Consultas cortas donde no puedes explicar todo","Meses más de incertidumbre entre cita y cita","Quizás un tratamiento que podrÃa haberse evitado con más información"],l6=["Luna te explica cada dato en tiempo real","Llegas a cada consulta con 30 dÃas de datos reales","Sabes en qué momento del ciclo estás cada dÃa","Acompañamiento diario. Nadie sola entre consultas."],c6=()=>a.jsx("section",{className:"bg-white py-16 md:py-24",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[a.jsx(be,{label:"La decisión",title:"Dos caminos. Tú eliges.",centered:!0}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"bg-ov-bg-alt border border-ov-border rounded-2xl p-8",children:[a.jsx("p",{className:"font-body text-xs uppercase tracking-wider text-ov-text-soft mb-2",children:"Opción A"}),a.jsx("h3",{className:"font-display text-xl font-bold text-ov-text-mid mb-5",children:"Seguir sola"}),a.jsx("ul",{className:"space-y-3",children:a6.map(e=>a.jsxs("li",{className:"font-body text-sm text-ov-text-mid flex gap-2",children:[a.jsx("span",{className:"text-ov-text-soft flex-shrink-0",children:"â"}),e]},e))})]}),a.jsxs("div",{className:"bg-lila-pale border-2 border-lila rounded-2xl p-8 relative",children:[a.jsx("span",{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-lila text-white font-body text-xs font-medium px-4 py-1 rounded-full",children:"Recomendado"}),a.jsx("p",{className:"font-body text-xs uppercase tracking-wider text-lila mb-2",children:"Opción B"}),a.jsx("h3",{className:"font-display text-xl font-bold text-navy mb-5",children:"Entender tu ciclo con datos"}),a.jsx("ul",{className:"space-y-3",children:l6.map(e=>a.jsxs("li",{className:"font-body text-sm text-ov-text flex gap-2",children:[a.jsx("span",{className:"text-ov-green flex-shrink-0",children:"â"}),e]},e))}),a.jsx("button",{onClick:o6,className:"w-full mt-6 bg-lila text-white font-body font-semibold py-4 rounded-lg shadow-[0_4px_20px_rgba(124,92,191,0.25)] hover:bg-[#6a4aab] hover:-translate-y-[1px] transition-all text-sm",children:"Quiero entender mi ciclo â"})]})]})]})});function d6(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
284return new(n||(n=Promise))(function(i,o){function l(u){try{d(r.next(u))}catch(h){o(h)}}function c(u){try{d(r.throw(u))}catch(h){o(h)}}function d(u){u.done?i(u.value):s(u.value).then(l,c)}d((r=r.apply(e,t||[])).next())})}const u6=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Ih extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class h6 extends Ih{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Qp extends Ih{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Xp extends Ih{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var su;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(su||(su={}));class f6{constructor(t,{headers:n={},customFetch:r,region:s=su.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=u6(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return d6(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:l,method:c,body:d,signal:u,timeout:h}=r;let p={},{region:f}=r;f||(f=this.region);const x=new URL(`${this.url}/${n}`);f&&f!=="any"&&(p["x-region"]=f,x.searchParams.set("forceFunctionRegion",f));let v;d&&(l&&!Object.prototype.hasOwnProperty.call(l,"Content-Type")||!l)?typeof Blob<"u"&&d instanceof Blob||d instanceof ArrayBuffer?(p["Content-Type"]="application/octet-stream",v=d):typeof d=="string"?(p["Content-Type"]="text/plain",v=d):typeof FormData<"u"&&d instanceof FormData?v=d:(p["Content-Type"]="application/json",v=JSON.stringify(d)):d&&typeof d!="string"&&!(typeof Blob<"u"&&d instanceof Blob)&&!(d instanceof ArrayBuffer)&&!(typeof FormData<"u"&&d instanceof FormData)?v=JSON.stringify(d):v=d;let b=u;h&&(o=new AbortController,i=setTimeout(()=>o.abort(),h),u?(b=o.signal,u.addEventListener("abort",()=>o.abort())):b=o.signal);const g=yield this.fetch(x.toString(),{method:c||"POST",headers:Object.assign(Object.assign(Object.assign({},p),this.headers),l),body:v,signal:b}).catch(S=>{throw new h6(S)}),m=g.headers.get("x-relay-error");if(m&&m==="true")throw new Qp(g);if(!g.ok)throw new Xp(g);let y=((s=g.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),$;return y==="application/json"?$=yield g.json():y==="application/octet-stream"||y==="application/pdf"?$=yield g.blob():y==="text/event-stream"?$=g:y==="multipart/form-data"?$=yield g.formData():$=yield g.text(),{data:$,error:null,response:g}}catch(l){return{data:null,error:l,response:l instanceof Xp||l instanceof Qp?l.context:void 0}}finally{i&&clearTimeout(i)}})}}const ey=3,Zp=e=>Math.min(1e3*2**e,3e4),p6=[520,503],ty=["GET","HEAD","OPTIONS"];var m6=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
284de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function em(e,t){return new Promise(n=>{if(t!=null&&t.aborted){n();return}const r=setTimeout(()=>{t==null||t.removeEventListener("abort",s),n()},e);function s(){clearTimeout(r),n()}t==null||t.addEventListener("abort",s)})}function g6(e,t,n,r){return!(!r||n>=ey||!ty.includes(e)||!p6.includes(t))}var v6=class{constructor(e){var t,n,r,s,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(r=e.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(s=e.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(i=e.retry)!==null&&i!==void 0?i:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const o=this.headers.get("Accept");o==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!o||o==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let i=(async()=>{let o=0;for(;;){const d=new Headers(n.headers);o>0&&d.set("X-Retry-Count",String(o));let u;try{u=await r(n.url.toString(),{method:n.method,headers:d,body:JSON.stringify(n.body),signal:n.signal})}catch(h){if((h==null?void 0:h.name)==="AbortError"||(h==null?void 0:h.code)==="ABORT_ERR"||!ty.includes(n.method))throw h;if(n.retryEnabled&&o<ey){const p=Zp(o);o++,await em(p,n.signal);continue}throw h}if(g6(n.method,u.status,o,n.retryEnabled)){var l,c;const h=(l=(c=u.headers)===null||c===void 0?void 0:c.get("Retry-After"))!==null&&l!==void 0?l:null,p=h!==null?Math.max(0,parseInt(h,10)||0)*1e3:Zp(o);await u.text(),o++,await em(p,n.signal);continue}return await n.processResponse(u)}})();return this.shouldThrowOnError||(i=i.catch(o=>{var l;let c="",d="",u="";const h=o==null?void 0:o.cause;if(h){var p,f,x,v;const m=(p=h==null?void 0:h.message)!==null&&p!==void 0?p:"",y=(f=h==null?void 0:h.code)!==null&&f!==void 0?f:"";c=`${(x=o==null?void 0:o.name)!==null&&x!==void 0?x:"FetchError"}: ${o==null?void 0:o.message}`,c+=` 285 286Caused by: ${(v=h==null?void 0:h.name)!==null&&v!==void 0?v:"Error"}: ${m}`,y&&(c+=` (${y})`),h!=null&&h.stack&&(c+=` 287${h.stack}`)}else{var b;c=(b=o==null?void 0:o.stack)!==null&&b!==void 0?b:""}const g=this.url.toString().length;return(o==null?void 0:o.name)==="AbortError"||(o==null?void 0:o.code)==="ABORT_ERR"?(u="",d="Request was aborted (timeout or manual cancellation)",g>this.urlLengthLimit&&(d+=`. Note: Your request URL is ${g} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((h==null?void 0:h.name)==="HeadersOverflowError"||(h==null?void 0:h.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",d="HTTP headers exceeded server limits (typically 16KB)",g>this.urlLengthLimit&&(d+=`. Your request URL is ${g} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(l=o==null?void 0:o.name)!==null&&l!==void 0?l:"FetchError"}: ${o==null?void 0:o.message}`,details:c,hint:d,code:u},data:null,count:null,status:0,statusText:""}}
287)),i.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,s=null,i=e.status,o=e.statusText;if(e.ok){var l,c;if(t.method!=="HEAD"){var d;const p=await e.text();p===""||(t.headers.get("Accept")==="text/csv"||t.headers.get("Accept")&&(!((d=t.headers.get("Accept"))===null||d===void 0)&&d.includes("application/vnd.pgrst.plan+text"))?r=p:r=JSON.parse(p))}const u=(l=t.headers.get("Prefer"))===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),h=(c=e.headers.get("content-range"))===null||c===void 0?void 0:c.split("/");u&&h&&h.length>1&&(s=parseInt(h[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,s=null,i=406,o="Not Acceptable"):r.length===1?r=r[0]:r=null)}else{const u=await e.text();try{n=JSON.parse(u),Array.isArray(n)&&e.status===404&&(r=[],n=null,i=200,o="OK")}catch{e.status===404&&u===""?(i=204,o="No Content"):n={message:u}}if(n&&t.shouldThrowOnError)throw new m6(n)}return{success:n===null,error:n,data:r,count:s,status:i,statusText:o}}returns(){return this}overrideTypes(){return this}},y6=class extends v6{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const l=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const tm=new RegExp("[,()]");var cs=class extends y6{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&tm.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&tm.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>
287n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},x6=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3,retry:i}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s,this.retry=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(d=>/\s/.test(d)&&!i?"":(d==='"'&&(i=!i),d)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",o),r&&c.append("Prefer",`count=${r}`),new cs({method:s,url:l,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(l.length>0){const c=[...new Set(l)].map(d=>`"${d}"`);i.searchParams.set("columns",c.join(","))}}return new cs({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const o="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&l.searchParams.set("on_conflict",t),r&&c.append("Prefer",`count=${r}`),s||c.append("Prefer","missing=default"),Array.isArray(e)){const d=e.reduce((u,h)=>u.concat(Object.keys(h)),[]);if(d.length>0){const u=[...new Set(d)].map(h=>`"${h}"`);l.searchParams.set("columns",u.join(","))}}return new cs({method:o,url:l,headers:c,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new cs({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new cs({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function fo(e){"@babel/helpers - typeof";return fo=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},fo(e)}function b6(e,t){if(fo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w6(e){var t=b6(e,"string");return fo(t)=="symbol"?t:t+""}function $6(e,t,n){return(t=w6(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function fa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nm(Object(n),!0).forEach(function(r){$6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var S6=class ny{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:o=8e3,retry:l}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const c=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(d,u)=>{const h=new AbortController,p=setTimeout(()=>h.abort(),i),f=u==null?void 0:u.signal;if(f){if(f.aborted)return clearTimeout(p),c(d,u);const x=()=>{clearTimeout(p),h.abort()};return f.addEventListener("abort",x,{once:!0}),c(d,fa(fa({},u),{},{signal:h.signal})).finally(()=>{clearTimeout(p),f.removeEventListener("abort",x)})}return c(d,fa(fa({},u),{},{signal:h.signal})).finally(()=>clearTimeout(p))}:this.fetch=c,this.retry=l}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new x6(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new ny(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let l;const c=new URL(`${this.url}/rpc/${t}`);let d;const u=f=>f!==null&&typeof f=="object"&&(!Array.isArray(f)||f.some(u)),h=r&&Object.values(n).some(u);h?(l="POST",d=n):r||s?(l=r?"HEAD":"GET",Object.entries(n).filter(([f,x])=>x!==void 0).map(([f,x])=>[f,Array.isArray(x)?`{${x.join(",")}}`:`${x}
287`]).forEach(([f,x])=>{c.searchParams.append(f,x)})):(l="POST",d=n);const p=new Headers(this.headers);return h?p.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&p.set("Prefer",`count=${i}`),new cs({method:l,url:c,headers:p,schema:this.schemaName,body:d,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class E6{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const s=r.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 288import ws from "ws" 289new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 290 291Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const _6="2.103.0",k6=`realtime-js/${_6}`,j6="1.0.0",ry="2.0.0",N6=ry,C6=1e4,P6=100,Fn={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},sy={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},iu={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class T6{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var s,i;const o=t.topic,l=(s=t.ref)!==null&&s!==void 0?s:"",c=(i=t.join_ref)!==null&&i!==void 0?i:"",d=t.payload.event,u=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},h=Object.keys(u).length===0?"":JSON.stringify(u);if(c.length>255)throw new Error(`joinRef length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`ref length ${l.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`userEvent length ${d.length} exceeds maximum of 255`);if(h.length>255)throw new Error(`metadata length ${h.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+c.length+l.length+o.length+d.length+h.length,f=new ArrayBuffer(this.HEADER_LENGTH+p);let x=new DataView(f),v=0;x.setUint8(v++,this.KINDS.userBroadcastPush),x.setUint8(v++,c.length),x.setUint8(v++,l.length),x.setUint8(v++,o.length),x.setUint8(v++,d.length),x.setUint8(v++,h.length),x.setUint8(v++,n),Array.from(c,g=>x.setUint8(v++,g.charCodeAt(0))),Array.from(l,g=>x.setUint8(v++,g.charCodeAt(0))),Array.from(o,g=>x.setUint8(v++,g.charCodeAt(0))),Array.from(d,g=>x.setUint8(v++,g.charCodeAt(0))),Array.from(h,g=>x.setUint8(v++,g.charCodeAt(0)));var b=new Uint8Array(f.byteLength+r.byteLength);return b.set(new Uint8Array(f),0),b.set(new Uint8Array(r),f.byteLength),b.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,o,l,c]=r;
291return n({join_ref:s,ref:i,topic:o,event:l,payload:c})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),l=n.getUint8(4);let c=this.HEADER_LENGTH+4;const d=r.decode(t.slice(c,c+s));c=c+s;const u=r.decode(t.slice(c,c+i));c=c+i;const h=r.decode(t.slice(c,c+o));c=c+o;const p=t.slice(c,t.byteLength),f=l===this.JSON_ENCODING?JSON.parse(r.decode(p)):p,x={type:this.BROADCAST_EVENT,event:u,payload:f};return o>0&&(x.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:d,event:this.BROADCAST_EVENT,payload:x}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}var le;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(le||(le={}));const rm=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=A6(o,e,t,s),i),{}):{}},A6=(e,t,n,r)=>{const s=t.find(l=>
vendor: 5,523 bytes, line 291
291l.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?iy(i,o):ou(o)},iy=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return I6(t,n)}switch(e){case le.bool:return R6(t);case le.float4:case le.float8:case le.int2:case le.int4:case le.int8:case le.numeric:case le.oid:return O6(t);case le.json:case le.jsonb:return L6(t);case le.timestamp:return D6(t);case le.abstime:case le.date:case le.daterange:case le.int4range:case le.int8range:case le.money:case le.reltime:case le.text:case le.time:case le.timestamptz:case le.timetz:case le.tsrange:case le.tstzrange:return ou(t);default:return ou(t)}},ou=e=>e,R6=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},O6=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},L6=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},I6=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(l=>iy(t,l))}return e},D6=e=>typeof e=="string"?e.replace(" ","T"):e,oy=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Ui=e=>typeof e=="function"?e:function(){return e},M6=typeof self<"u"?self:null,ds=typeof window<"u"?window:null,Vt=M6||ds||globalThis,F6="2.0.0",U6=1e4,B6=1e3,Yt={connecting:0,open:1,closing:2,closed:3},Qe={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ln={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},au={longpoll:"longpoll",websocket:"websocket"},z6={complete:4},lu="base64url.bearer.phx.",pa=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},ay=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},q6=class{constructor(e,t,n){this.state=Qe.closed,this.topic=e,this.params=Ui(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new pa(this,ln.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new ay(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Qe.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=Qe.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=Qe.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Qe.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new pa(this,ln.leave,Ui({}),this.timeout).send(),this.state=Qe.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ln.reply,(r,s)=>{this.trigger(this.replyEventName(s),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}
vendor: 5,263 bytes, line 291
291teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Qe.closed,this.bindings=[]}onClose(e){this.on(ln.close,e)}onError(e){return this.on(ln.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new pa(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Qe.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(ln.close,"leave")},n=new pa(this,ln.leave,Ui({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Qe.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let s=this.onMessage(e,t,n,r);if(t&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter(o=>o.event===e&&this.filterBindings(o,t,n));for(let o=0;o<i.length;o++)i[o].callback(s,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Qe.closed}isErrored(){return this.state===Qe.errored}isJoined(){return this.state===Qe.joined}isJoining(){return this.state===Qe.joining}isLeaving(){return this.state===Qe.leaving}},yl=class{static request(e,t,n,r,s,i,o){if(Vt.XDomainRequest){let l=new Vt.XDomainRequest;return this.xdomainRequest(l,e,t,r,s,i,o)}else if(Vt.XMLHttpRequest){let l=new Vt.XMLHttpRequest;return this.xhrRequest(l,e,t,n,r,s,i,o)}else{if(Vt.fetch&&Vt.AbortController)return this.fetchRequest(e,t,n,r,s,i,o);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,s,i,o){let l={method:e,headers:n,body:r},c=null;return s&&(c=new AbortController,setTimeout(()=>c.abort(),s),l.signal=c.signal),Vt.fetch(t,l).then(d=>d.text()).then(d=>this.parseJSON(d)).then(d=>o&&o(d)).catch(d=>{d.name==="AbortError"&&i?i():o&&o(null)}),c}static xdomainRequest(e,t,n,r,s,i,o){return e.timeout=s,e.open(t,n),e.onload=()=>{let l=this.parseJSON(e.responseText);o&&o(l)},i&&(e.ontimeout=i),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,s,i,o,l){e.open(t,n,!0),e.timeout=i;for(let[c,d]of Object.entries(r))e.setRequestHeader(c,d);return e.onerror=()=>l&&l(null),e.onreadystatechange=()=>{if(e.readyState===z6.complete&&l){let c=this.parseJSON(e.responseText);l(c)}},o&&(e.ontimeout=o),e.send(s),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let s=t?`${t}[${r}]`:r,i=e[r];typeof i=="object"?n.push(this.serialize(i,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},H6=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let s=0;s<r;s++)t+=String.fromCharCode(n[s]);return btoa(t)},ns=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(lu)&&(this.authToken=atob(t[1].slice(lu.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=Yt.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+au.websocket),"$1/"+au.longpoll)}endpointURL(){return yl.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Yt.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Yt.open||this.readyState===Yt.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:s}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:s.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Yt.open,this.onopen({}),this.poll();break;
291case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=H6(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(` 292`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let s of this.reqs)s.abort();this.readyState=Yt.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,s){let i,o=()=>{this.reqs.delete(i),r()};i=yl.request(e,this.endpointURL(),t,n,this.timeout,o,l=>{this.reqs.delete(i),this.isActive()&&s(l)}),this.reqs.add(i)}},W6=class ji{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,s=>{let{onJoin:i,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel.joinRef(),this.state=ji.syncState(this.state,s,i,o),this.pendingDiffs.forEach(c=>{this.state=ji.syncDiff(this.state,c,i,o)}),this.pendingDiffs=[],l()}),this.channel.on(r.diff,s=>{let{onJoin:i,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=ji.syncDiff(this.state,s,i,o),l())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return ji.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,s){let i=this.clone(t),o={},l={};return this.map(i,(c,d)=>{n[c]||(l[c]=d)}),this.map(n,(c,d)=>{let u=i[c];if(u){let h=d.metas.map(v=>v.phx_ref),p=u.metas.map(v=>v.phx_ref),f=d.metas.filter(v=>p.indexOf(v.phx_ref)<0),x=u.metas.filter(v=>h.indexOf(v.phx_ref)<0);f.length>0&&(o[c]=d,o[c].metas=f),x.length>0&&(l[c]=this.clone(u),l[c].metas=x)}else o[c]=d}),this.syncDiff(i,{joins:o,leaves:l},r,s)}static syncDiff(t,n,r,s){let{joins:i,leaves:o}=this.clone(n);return r||(r=function(){}),s||(s=function(){}),this.map(i,(l,c)=>{let d=t[l];if(t[l]=this.clone(c),d){let u=t[l].metas.map(p=>p.phx_ref),h=d.metas.filter(p=>u.indexOf(p.phx_ref)<0);t[l].metas.unshift(...h)}r(l,d,c)}),this.map(o,(l,c)=>{let d=t[l];if(!d)return;let u=c.metas.map(h=>h.phx_ref);d.metas=d.metas.filter(h=>u.indexOf(h.phx_ref)<0),s(l,d,c),d.metas.length===0&&delete t[l]}),t}static list(t,n){return n||(n=function(r,s){return s}),this.map(t,(r,s)=>n(r,s))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static clone(t){return JSON.parse(JSON.stringify(t))}},ma={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,s,i,o]=JSON.parse(e);return t({join_ref:n,ref:r,topic:s,event:i,payload:o})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:s,payload:i}=e,o=this.META_LENGTH+t.length+n.length+s.length+r.length,l=new ArrayBuffer(this.HEADER_LENGTH+o),c=new DataView(l),d=0;c.setUint8(d++,this.KINDS.push),c.setUint8(d++,t.length),c.setUint8(d++,n.length),c.setUint8(d++,s.length),c.setUint8(d++,r.length),Array.from(t,h=>c.setUint8(d++,h.charCodeAt(0))),Array.from(n,h=>c.setUint8(d++,h.charCodeAt(0))),Array.from(s,h=>c.setUint8(d++,h.charCodeAt(0))),Array.from(r,h=>c.setUint8(d++,h.charCodeAt(0)));var u=new Uint8Array(l.byteLength+i.byteLength);return u.set(new Uint8Array(l),0),u.set(new Uint8Array(i),l.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}}
vendor: 8,419 bytes, line 292
292,decodePush(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,l=n.decode(e.slice(o,o+r));o=o+r;let c=n.decode(e.slice(o,o+s));o=o+s;let d=n.decode(e.slice(o,o+i));o=o+i;let u=e.slice(o,e.byteLength);return{join_ref:l,ref:null,topic:c,event:d,payload:u}},decodeReply(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),o=t.getUint8(4),l=this.HEADER_LENGTH+this.META_LENGTH,c=n.decode(e.slice(l,l+r));l=l+r;let d=n.decode(e.slice(l,l+s));l=l+s;let u=n.decode(e.slice(l,l+i));l=l+i;let h=n.decode(e.slice(l,l+o));l=l+o;let p=e.slice(l,e.byteLength),f={status:h,response:p};return{join_ref:c,ref:d,topic:u,event:ln.reply,payload:f}},decodeBroadcast(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=this.HEADER_LENGTH+2,o=n.decode(e.slice(i,i+r));i=i+r;let l=n.decode(e.slice(i,i+s));i=i+s;let c=e.slice(i,e.byteLength);return{join_ref:null,ref:null,topic:o,event:l,payload:c}}},V6=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||U6,this.transport=t.transport||Vt.WebSocket||ns,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||Vt&&Vt.sessionStorage,this.establishedConnections=0,this.defaultEncoder=ma.encode.bind(ma),this.defaultDecoder=ma.decode.bind(ma),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==ns?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;ds&&ds.addEventListener&&(ds.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),n=this.connectClock)}),ds.addEventListener("pageshow",r=>{n===this.connectClock&&(n=null,this.connect())}),ds.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=r=>t.rejoinAfterMs?t.rejoinAfterMs(r):[1e3,2e3,5e3][r-1]||1e4,this.reconnectAfterMs=r=>t.reconnectAfterMs?t.reconnectAfterMs(r):[10,50,100,150,200,250,500,1e3,2e3][r-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(r,s,i)=>{console.log(`${r}: ${s}`,i)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Ui(t.params||{}),this.endPoint=`${e}/${au.websocket}`,this.vsn=t.vsn||F6,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new ay(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return ns}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=yl.appendParams(yl.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Ui(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==ns?this.connectWithFallback(ns,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(s=>{s.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case ns:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${lu}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,s,i,o=this.transportName(e),l=c=>{this.log("transport",`falling back to ${o}...`,c),this.off([s,i]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return l("memorized");this.fallbackTimer=setTimeout(l,t),i=this.onError(c=>{this.log("transport","error",c),r&&!n&&(clearTimeout(this.fallbackTimer),l(c))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let c=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${c}`,"true"),this.log("transport",`established ${c} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(l,t),this.ping(c=>{this.log("transport","connected to primary after",c),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),B6,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===Yt.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError()}
292triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(ln.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Yt.connecting:return"connecting";case Yt.open:return"open";case Yt.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new q6(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:s,join_ref:i}=e;this.log("push",`${t} ${n} (${i}, ${s})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:s,ref:i,join_ref:o}=t;if(i&&i===this.pendingHeartbeatRef){const l=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(s.status==="ok"?"ok":"error",l)}catch(c){this.log("error","error in heartbeat callback",c)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${s.status||""} ${n} ${r} ${i&&"("+i+")"||""}`.trim(),s);for(let l=0;l<this.channels.length;l++){const c=this.channels[l];c.isMember(n,r,s,o)&&c.trigger(r,s,i,o)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Bi{constructor(t,n){const r=K6(n);this.presence=new W6(t.getChannel(),r),this.presence.onJoin((s,i,o)=>{const l=Bi.onJoinPayload(s,i,o);t.getChannel().trigger("presence",l)}),this.presence.onLeave((s,i,o)=>{const l=Bi.onLeavePayload(s,i,o);t.getChannel().trigger("presence",l)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Bi.transformState(this.presence.state)}static transformState(t){return t=G6(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return n[r]=Ma(s),n},{})}static onJoinPayload(t,n,r){const s=sm(n),i=Ma(r);return{event:"join",key:t,currentPresences:s,newPresences:i}}static onLeavePayload(t,n,r){const s=sm(n),i=Ma(r);return{event:"leave",key:t,currentPresences:s,leftPresences:i}}}function Ma(e){return e.metas.map(t=>(t.presence_ref=t.phx_ref,delete t.phx_ref,delete t.phx_ref_prev,t))}function G6(e){return JSON.parse(JSON.stringify(e))}function K6(e){return(e==null?void 0:e.events)&&{events:e.events}}function sm(e){return e!=null&&e.metas?Ma(e):[]}var im;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(im||(im={}));class J6{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new Bi(this.channel.channelAdapter,n)}}class Y6{constructor(t,n,r){const s=Q6(r);this.channel=t.getSocket().channel(n,s),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let s;try{s=this.channel.push(t,n,r)}catch{throw`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`}if(this.channel.pushBuffer.length>P6){const i=this.channel.pushBuffer.shift();i.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload())}return s}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===Fn.joined}isJoined(){return this.state===Fn.joined}isJoining(){return this.state===Fn.joining}isClosed(){return this.state===Fn.closed}isLeaving(){return this.state===Fn.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function Q6(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}var om;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(om||(om={}));var _s;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(_s||(_s={}));var cn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(cn||(cn={}));class zi{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new Y6(this.socket.socketAdapter,t,this.params),this.presence=new J6(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=oy(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:o,presence:l,private:c}}=this.params,d=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(f=>f.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[_s.PRESENCE]&&this.bindings[_s.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,h={},p={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:u}),postgres_changes:d,private:c};this.socket.accessTokenValue&&(h.access_token=this.socket.accessTokenValue),this._onError(f=>{t==null||t(cn.CHANNEL_ERROR,f)}),this._onClose(()=>t==null?void 0:t(cn.CLOSED)),this.updateJoinPayload(Object.assign({config:p},h)),this._updateFilterMessage(),this.channelAdapter.subscribe(n).receive("ok",async({postgres_changes:f})=>{if(this.socket._isManualToken()||this.socket.setAuth(),f===void 0){t==null||t(cn.SUBSCRIBED);return}this._updatePostgresBindings(f,t)}).receive("error",f=>{this.state=Fn.errored,t==null||t(cn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(f).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(cn.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const s=this.bindings.postgres_changes,i=(r=s==null?void 0:s.length)!==null&&r!==void 0?r:0,o=[];for(let l=0;l<i;l++){const c=s[l],{filter:{event:d,schema:u,table:h,filter:p}}=c,f=t&&t[l];if(f&&f.event===d&&zi.isFilterValueEqual(f.schema,u)&&zi.isFilterValueEqual(f.table,h)&&zi.isFilterValueEqual(f.filter,p))o.push(Object.assign(Object.assign({},c),{id:f.id}));else{this.unsubscribe(),this.state=Fn.errored,n==null||n(cn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=o,this.state!=Fn.errored&&n&&n(cn.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=t===_s.PRESENCE||t===_s.POSTGRES_CHANGES;if(s&&i)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},l=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(l.status===202)return{success:!0};let c=l.statusText;
292try{const d=await l.json();c=d.error||d.message||c}catch{}return Promise.reject(new Error(c))}async send(t,n={}){var r,s;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:i,payload:o}=t,l={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(l.Authorization=`Bearer ${this.socket.accessTokenValue}`);const c={method:"POST",headers:l,body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const d=await this._fetchWithTimeout(this.broadcastEndpointURL,c,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=d.body)===null||s===void 0?void 0:s.cancel()),d.ok?"ok":"error"}catch(d){return d.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,l,c;const d=this.channelAdapter.push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),d.receive("ok",()=>i("ok")),d.receive("error",()=>i("error")),d.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_on(t,n,r){const s=t.toLocaleLowerCase(),i=this.channelAdapter.on(t,r),o={type:s,filter:n,callback:r,ref:i};return this.bindings[s]?this.bindings[s].push(o):this.bindings[s]=[o],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var s,i,o,l,c,d,u;const h=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(h,r))return!1;const p=(s=this.bindings[h])===null||s===void 0?void 0:s.find(f=>f.ref===t.ref);if(!p)return!0;if(["broadcast","presence","postgres_changes"].includes(h))if("id"in p){const f=p.id,x=(i=p.filter)===null||i===void 0?void 0:i.event;return f&&((o=n.ids)===null||o===void 0?void 0:o.includes(f))&&(x==="*"||(x==null?void 0:x.toLocaleLowerCase())===((l=n.data)===null||l===void 0?void 0:l.type.toLocaleLowerCase()))}else{const f=(d=(c=p==null?void 0:p.filter)===null||c===void 0?void 0:c.event)===null||d===void 0?void 0:d.toLocaleLowerCase();return f==="*"||f===((u=n==null?void 0:n.event)===null||u===void 0?void 0:u.toLocaleLowerCase())}else return p.type.toLocaleLowerCase()===h})}_notThisChannelEvent(t,n){const{close:r,error:s,leave:i,join:o}=sy;return n&&[r,s,i,o].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const s=n.data,{schema:i,table:o,commit_timestamp:l,type:c,errors:d}=s;return Object.assign(Object.assign({},{schema:i,table:o,commit_timestamp:l,eventType:c,new:{},old:{},errors:d}),this._getPayloadRecords(s))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const r of t.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=rm(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=rm(t.columns,t.old_record)),n}}class X6{constructor(t,n){this.socket=new V6(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,s=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),s),this.socket.disconnect(()=>{t(),i("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==iu.connecting}isDisconnecting(){return this.socket.connectionState()==iu.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Z6={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},e9=[1e3,2e3,5e3,1e4],t9=1e4,n9=` 293 addEventListener("message", (e) => { 294 if (e.data.event === "start") { 295 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 296 } 297 });`;class r9{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
297,this.ref=0,this.serializer=new T6,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._resolveFetch=i=>i?(...o)=>i(...o):(...o)=>fetch(...o),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const s=this._initializeOptions(n);this.socketAdapter=new X6(t,s),this.httpEndpoint=oy(t),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw n.includes("Node.js")?new Error(`${n} 298 299To use Realtime in Node.js, you need to provide a WebSocket implementation: 300 301Option 1: Use Node.js 22+ which has native WebSocket support 302Option 2: Install and provide the "ws" package: 303 304 npm install ws 305 306 import ws from "ws" 307 const client = new RealtimeClient(url, { 308 ...options, 309 transport: ws 310 })`):new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const s=await r.unsubscribe();return r.teardown(),s}),n=await Promise.all(t);return this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}connectionState(){return this.socketAdapter.connectionState()||iu.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new zi(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(s=>{const i={access_token:n,version:k6};n&&s.updateJoinPayload(i),s.joinedOnce&&s.channelAdapter.isJoined()&&s.channelAdapter.push(sy.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n=="sent"&&this._setAuthSafely(),t&&t(n,r)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([n9],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,s,i,o,l,c,d,u;this.worker=(n=t==null?void 0:t.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t==null?void 0:t.accessToken)!==null&&r!==void 0?r:null;const h={};
310h.timeout=(s=t==null?void 0:t.timeout)!==null&&s!==void 0?s:C6,h.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:Z6.HEARTBEAT_INTERVAL,h.transport=(o=t==null?void 0:t.transport)!==null&&o!==void 0?o:E6.getWebSocketConstructor(),h.params=t==null?void 0:t.params,h.logger=t==null?void 0:t.logger,h.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),h.reconnectAfterMs=(l=t==null?void 0:t.reconnectAfterMs)!==null&&l!==void 0?l:v=>e9[v-1]||t9;let p,f;const x=(c=t==null?void 0:t.vsn)!==null&&c!==void 0?c:N6;switch(x){case j6:p=(v,b)=>b(JSON.stringify(v)),f=(v,b)=>b(JSON.parse(v));break;case ry:p=this.serializer.encode.bind(this.serializer),f=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${h.vsn}`)}if(h.vsn=x,h.encode=(d=t==null?void 0:t.encode)!==null&&d!==void 0?d:p,h.decode=(u=t==null?void 0:t.decode)!==null&&u!==void 0?u:f,h.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,h.params=Object.assign(Object.assign({},h.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,h.autoSendHeartbeat=!this.worker}return h}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}var po=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function s9(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function i9(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function o9(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const l=s9(e.baseUrl,r,s),c=await i9(e.auth),d=await t(l,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...c,...o},body:i?JSON.stringify(i):void 0}),u=await d.text(),h=(d.headers.get("content-type")||"").includes("application/json"),p=h&&u?JSON.parse(u):u;if(!d.ok){const f=h?p:void 0,x=f==null?void 0:f.error;throw new po((x==null?void 0:x.message)??`Request failed with status ${d.status}`,{status:d.status,icebergType:x==null?void 0:x.type,icebergCode:x==null?void 0:x.code,details:f})}return{status:d.status,headers:d.headers,data:p}}}}function ga(e){return e.join("�")}var a9=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:ga(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${ga(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${ga(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${ga(e.namespace)}`}),!0}catch(t){if(t instanceof po&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof po&&n.status===409)return;throw n}}};function rs(e){return e.join("�")}var l9=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${rs(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${rs(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${rs(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${rs(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${rs(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${rs(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof po&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof po&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},c9=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=o9({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new a9(this.client,t),this.tableOps=new l9(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
310async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},Ql=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function Xl(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var cu=class extends Ql{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},ly=class extends Ql{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const d9=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),u9=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},du=e=>{if(Array.isArray(e))return e.map(n=>du(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=du(r)}),t},h9=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function mo(e){"@babel/helpers - typeof";return mo=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},mo(e)}function f9(e,t){if(mo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p9(e){var t=f9(e,"string");return mo(t)=="symbol"?t:t+""}function m9(e,t,n){return(t=p9(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function am(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).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?am(Object(n),!0).forEach(function(r){m9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):am(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const lm=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},g9=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&typeof e.json=="function"){const s=e;let i=parseInt(s.status,10);Number.isFinite(i)||(i=500),s.json().then(o=>{const l=(o==null?void 0:o.statusCode)||(o==null?void 0:o.code)||i+"";t(new cu(lm(o),i,l,r))}).catch(()=>{const o=i+"";t(new cu(s.statusText||`HTTP ${i} error`,i,o,r))})}else t(new ly(lm(e),e,r))},v9=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!r)return V(V({},s),n);if(u9(r)){var i;const o=(t==null?void 0:t.headers)||{};let l;for(const[c,d]of Object.entries(o))c.toLowerCase()==="content-type"&&(l=d);s.headers=y9(o,"Content-Type",(i=l)!==null&&i!==void 0?i:"application/json"),s.body=JSON.stringify(r)}else s.body=r;return t!=null&&t.duplex&&(s.duplex=t.duplex),V(V({},s),n)};function y9(e,t,n){const r=V({},e);for(const s of Object.keys(r))s.toLowerCase()===t.toLowerCase()&&delete r[s];return r[t]=n,r}async function $i(e,t,n,r,s,i,o){return new Promise((l,c)=>{e(n,v9(t,r,s,i)).then(d=>{if(!d.ok)throw d;if(r!=null&&r.noResolveJson)return d;if(o==="vectors"){const u=d.headers.get("content-type");if(d.headers.get("content-length")==="0"||d.status===204)return{};if(!u||!u.includes("application/json"))return{}}return d.json()}).then(d=>l(d)).catch(d=>
310g9(d,c,r,o))})}function cy(e="storage"){return{get:async(t,n,r,s)=>$i(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>$i(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>$i(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>$i(t,"HEAD",n,V(V({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>$i(t,"DELETE",n,s,i,r,e)}}const x9=cy("storage"),{get:go,post:Tt,put:uu,head:b9,remove:Dh}=x9,lt=cy("vectors");var li=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=Object.fromEntries(Object.entries(t).map(([s,i])=>[s.toLowerCase(),i])),this.fetch=d9(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=V(V({},this.headers),{},{[e.toLowerCase()]:t}),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Xl(n))return{data:null,error:n};throw n}}},w9=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Xl(t))return{data:null,error:t};throw t}}};let dy;dy=Symbol.toStringTag;var $9=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[dy]="BlobDownloadBuilder",this.promise=null}asStream(){return new w9(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Xl(t))return{data:null,error:t};throw t}}};const S9={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},cm={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var E9=class extends li{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let i;const o=V(V({},cm),r);let l=V(V({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const c=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),c&&i.append("metadata",s.encodeMetadata(c)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),c&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(c))):(i=n,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,c&&(l["x-metadata"]=s.toBase64(s.encodeMetadata(c))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r!=null&&r.headers&&(l=V(V({},l),r.headers));const d=s._removeEmptyFolders(t),u=s._getFinalPath(d),h=await(e=="PUT"?uu:Tt)(s.fetch,`${s.url}/object/${u}`,i,V({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{path:d,id:h.Id,fullPath:h.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),l=new URL(s.url+`/object/upload/sign/${o}`);return l.searchParams.set("token",t),s.handleOperation(async()=>{let c;const d=V(V({},cm),r),u=V(V({},s.headers),{"x-upsert":String(d.upsert)});return typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",d.cacheControl),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.append("cacheControl",d.cacheControl)):(c=n,u["cache-control"]=`max-age=${d.cacheControl}`,u["content-type"]=d.contentType),{path:i,fullPath:(await uu(s.fetch,l.toString(),c,{headers:u})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=V({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await Tt(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(n.url+i.url),l=o.searchParams.get("token");if(!l)throw new Ql("No token returned by API");return{signedUrl:o.toString(),path:e,token:l}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await Tt(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
310stinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Tt(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e);const i=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let o=await Tt(r.fetch,`${r.url}/object/sign/${s}`,V({expiresIn:t},i?{transform:n.transform}:{}),{headers:r.headers});const l=new URLSearchParams;n!=null&&n.download&&l.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&l.set("cacheNonce",String(n.cacheNonce));const c=l.toString(),d=i&&o.signedURL.includes("/object/sign/")?o.signedURL.replace("/object/sign/","/render/image/sign/"):o.signedURL;return{signedUrl:encodeURI(`${r.url}${d}${c?`&${c}`:""}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await Tt(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=new URLSearchParams;n!=null&&n.download&&i.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&i.set("cacheNonce",String(n.cacheNonce));const o=i.toString();return s.map(l=>V(V({},l),{},{signedUrl:l.signedURL?encodeURI(`${r.url}${l.signedURL}${o?`&${o}`:""}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)<"u"?"render/image/authenticated":"object",s=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(s,t.transform),(t==null?void 0:t.cacheNonce)!=null&&s.set("cacheNonce",String(t.cacheNonce));const i=s.toString(),o=this._getFinalPath(e),l=()=>go(this.fetch,`${this.url}/${r}/${o}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new $9(l,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>du(await go(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await b9(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(Xl(s)){var r;const i=s instanceof cu?s.status:s instanceof ly?(r=s.originalError)===null||r===void 0?void 0:r.status:void 0;if(i!==void 0&&[400,404].includes(i))return{data:!1,error:s}}throw s}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=new URLSearchParams;t!=null&&t.download&&r.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(r,t.transform),(t==null?void 0:t.cacheNonce)!=null&&r.set("cacheNonce",String(t.cacheNonce));const s=r.toString(),i=typeof(t==null?void 0:t.transform)<"u"?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}`)+(s?`?${s}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await Dh(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const s=V(V(V({},S9),t),{},{prefix:e||""});return await Tt(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=V({},e);return await Tt(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("quality",t.quality.toString()),e}};const _9="2.103.0",Fo={"X-Client-Info":`storage-js/${_9}`};var k9=class extends li{constructor(e,t={},n,r){const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),o=V(V({},Fo),t);super(i,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await go(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await go(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Tt(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await uu(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Tt(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Dh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},j9=class extends li{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=V(V({},Fo),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Tt(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await go(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Dh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!h9(e))throw new Ql("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new c9({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
310),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...l)=>{try{return{data:await o.apply(s,l),error:null}}catch(c){if(r)throw c;return{data:null,error:c}}}}})}},N9=class extends li{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=V(V({},Fo),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await lt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await lt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await lt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await lt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},C9=class extends li{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=V(V({},Fo),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await lt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await lt.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await lt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await lt.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await lt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},P9=class extends li{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=V(V({},Fo),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await lt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await lt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await lt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await lt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},T9=class extends P9{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new A9(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},A9=class extends N9{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new R9(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}
310,R9=class extends C9{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,V(V({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},O9=class extends k9{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new E9(this.url,this.headers,e,this.fetch)}get vectors(){return new T9(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new j9(this.url+"/iceberg",this.headers,this.fetch)}};function Zl(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 s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}const uy="2.103.0",us=30*1e3,hu=3,qc=hu*us,L9="http://localhost:9999",I9="supabase.auth.token",D9={"X-Client-Info":`gotrue-js/${uy}`},fu="X-Supabase-Api-Version",hy={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},M9=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,F9=10*60*1e3;
310class vo extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function B(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class U9 extends vo{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function B9(e){return B(e)&&e.name==="AuthApiError"}class Er extends vo{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class En extends vo{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class it extends En{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function va(e){return B(e)&&e.name==="AuthSessionMissingError"}class ss extends En{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class ya extends En{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class xa extends En{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function z9(e){return B(e)&&e.name==="AuthImplicitGrantRedirectError"}class dm extends En{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class q9 extends En{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class pu extends En{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Hc(e){return B(e)&&e.name==="AuthRetryableFetchError"}class um extends En{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class mu extends En{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const xl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),hm=` 311\r=`.split(""),H9=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<hm.length;t+=1)e[hm[t].charCodeAt(0)]=-2;for(let t=0;t<xl.length;t+=1)e[xl[t].charCodeAt(0)]=t;return e})();function fm(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(xl[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(xl[r]),t.queuedBits-=6}}function fy(e,t,n){const r=H9[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function pm(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{G9(o,r,n)};for(let o=0;o<e.length;o+=1)fy(e.charCodeAt(o),s,i);return t.join("")}function W9(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function V9(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}W9(r,t)}}function G9(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function Ls(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)fy(e.charCodeAt(s),n,r);return new Uint8Array(t)}function K9(e){const t=[];return V9(e,n=>t.push(n)),new Uint8Array(t)}function Cr(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>fm(s,n,r)),fm(null,n,r),t.join("")}function J9(e){return Math.round(Date.now()/1e3)+e}function Y9(){return Symbol("auth-callback")}const Oe=()=>typeof window<"u"&&typeof document<"u",vr={tested:!1,writable:!1},py=()=>
311{if(!Oe())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(vr.tested)return vr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),vr.tested=!0,vr.writable=!0}catch{vr.tested=!0,vr.writable=!1}return vr.writable};function Q9(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const my=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),X9=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",hs=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},yr=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Re=async(e,t)=>{await e.removeItem(t)};class ec{constructor(){this.promise=new ec.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}ec.promiseConstructor=Promise;function ba(e){const t=e.split(".");if(t.length!==3)throw new mu("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!M9.test(t[r]))throw new mu("JWT not in base64url format");return{header:JSON.parse(pm(t[0])),payload:JSON.parse(pm(t[1])),signature:Ls(t[2]),raw:{header:t[0],payload:t[1]}}}async function Z9(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function eS(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function tS(e){return("0"+e.toString(16)).substr(-2)}function nS(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,tS).join("")}async function rS(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function sS(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await rS(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function is(e,t,n=!1){const r=nS();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await hs(e,`${t}-code-verifier`,s);const i=await sS(r);return[i,r===i?"plain":"s256"]}const iS=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function oS(e){const t=e.headers.get(fu);if(!t||!t.match(iS))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function aS(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function lS(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const cS=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function os(e){if(!cS.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Wc(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function dS(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;
311if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function mm(e){return JSON.parse(JSON.stringify(e))}const Sr=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),uS=[502,503,504];async function gm(e){var t;if(!X9(e))throw new pu(Sr(e),0);if(uS.includes(e.status))throw new pu(Sr(e),e.status);let n;try{n=await e.json()}catch(i){throw new Er(Sr(i),i)}let r;const s=oS(e);if(s&&s.getTime()>=hy["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new um(Sr(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new it}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new um(Sr(n),e.status,n.weak_password.reasons);throw new U9(Sr(n),e.status||500,r)}const hS=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function H(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[fu]||(i[fu]=hy["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",c=await fS(e,t,n+l,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(c):{data:Object.assign({},c),error:null}}async function fS(e,t,n,r,s,i){const o=hS(t,r,s,i);let l;try{l=await e(n,Object.assign({},o))}catch(c){throw console.error(c),new pu(Sr(c),0)}if(l.ok||await gm(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(c){await gm(c)}}function Nt(e){var t;let n=null;gS(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=J9(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function vm(e){const t=Nt(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Un(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function pS(e){return{data:e,error:null}}function mS(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=Zl(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},c=Object.assign({},o);return{data:{properties:l,user:c},error:null}}function ym(e){return e}function gS(e){return e.access_token&&e.refresh_token&&e.expires_in}const Vc=["global","local","others"];class vS{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=my(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)}}async signOut(t,n=Vc[0]){if(Vc.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Vc.join(", ")}`);try{return await H(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(B(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await H(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Un})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Zl(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await H(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:mS,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(B(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await H(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Un})}catch(n){if(B(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,l,c;try{const d={nextPage:null,lastPage:0,total:0},u=await H(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:ym});if(u.error)throw u.error;const h=await u.json(),p=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(c=(l=u.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return f.length>0&&(f.forEach(x=>{const v=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(x.split(";")[1].split("=")[1]);d[`${b}Page`]=v}),d.total=parseInt(p)),{data:Object.assign(Object.assign({},h),d),error:null}}catch(d){if(B(d))return{data:{users:[]},error:d};throw d}}async getUserById(t){os(t);try{return await H(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Un})}catch(n){if(B(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){os(t);try{return await H(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Un})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){os(t);
311try{return await H(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Un})}catch(r){if(B(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){os(t.userId);try{const{data:n,error:r}=await H(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(B(n))return{data:null,error:n};throw n}}async _deleteFactor(t){os(t.userId),os(t.id);try{return{data:await H(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(B(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,l,c;try{const d={nextPage:null,lastPage:0,total:0},u=await H(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:ym});if(u.error)throw u.error;const h=await u.json(),p=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,f=(c=(l=u.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return f.length>0&&(f.forEach(x=>{const v=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(x.split(";")[1].split("=")[1]);d[`${b}Page`]=v}),d.total=parseInt(p)),{data:Object.assign(Object.assign({},h),d),error:null}}catch(d){if(B(d))return{data:{clients:[]},error:d};throw d}}async _createOAuthClient(t){try{return await H(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await H(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await H(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(B(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await H(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(B(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await H(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await H(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var s;return{data:{providers:(s=r==null?void 0:r.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(n){if(B(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await H(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await H(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(B(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await H(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(B(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await H(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(B(n))return{data:null,error:n};throw n}}}function xm(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Ht={debug:!!(globalThis&&py()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};
311class gy extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class bm extends gy{}async function yS(e,t,n){Ht.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let s;t>0&&(s=setTimeout(()=>{r.abort(),Ht.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async i=>{if(i){clearTimeout(s),Ht.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await n()}finally{Ht.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw Ht.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new bm(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Ht.debug)try{const o=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(o,null," "))}catch(o){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",o)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),clearTimeout(s),await n()}})}catch(i){if(t>0&&clearTimeout(s),(i==null?void 0:i.name)==="AbortError"&&t>0){if(r.signal.aborted)return Ht.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async o=>{if(o){Ht.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,o.name);try{return await n()}finally{Ht.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,o.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw Ht.debug&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new bm(`Lock "${e}" was released because another request stole it`)}throw i}}function xS(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function vy(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function bS(e){return parseInt(e,16)}function wS(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function $S(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:l,requestId:c,resources:d,scheme:u,uri:h,version:p}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(p!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${p}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 312`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const f=vy(e.address),x=u?`${u}://${r}`:r,v=e.statement?`${e.statement} 313`:"",b=`${x} wants you to sign in with your Ethereum account: 314${f} 315 316${v}`;let g=`URI: ${h} 317Version: ${p} 318Chain ID: ${n}${o?` 319Nonce: ${o}`:""} 320Issued At: ${i.toISOString()}`;if(s&&(g+=` 321Expiration Time: ${s.toISOString()}`),l&&(g+=` 322Not Before: ${l.toISOString()}
322`),c&&(g+=` 323Request ID: ${c}`),d){let m=` 324Resources:`;for(const y of d){if(!y||typeof y!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${y}`);m+=` 325- ${y}`}g+=m}return`${b} 326${g}`}class _e extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class bl extends _e{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function SS({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new _e({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new _e({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new _e({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new _e({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new _e({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new _e({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new _e({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new _e({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(yy(o)){if(i.rp.id!==o)return new _e({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new _e({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new _e({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new _e({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new _e({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function ES({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new _e({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new _e({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(yy(r)){if(n.rpId!==r)return new _e({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new _e({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new _e({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ER
326ROR",cause:e})}return new _e({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class _S{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const kS=new _S;function jS(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,s=Zl(e,["challenge","user","excludeCredentials"]),i=Ls(t).buffer,o=Object.assign(Object.assign({},n),{id:Ls(n.id).buffer}),l=Object.assign(Object.assign({},s),{challenge:i,user:o});if(r&&r.length>0){l.excludeCredentials=new Array(r.length);for(let c=0;c<r.length;c++){const d=r[c];l.excludeCredentials[c]=Object.assign(Object.assign({},d),{id:Ls(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return l}function NS(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=Zl(e,["challenge","allowCredentials"]),s=Ls(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const l=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},l),{id:Ls(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return i}function CS(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:Cr(new Uint8Array(e.response.attestationObject)),clientDataJSON:Cr(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function PS(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Cr(new Uint8Array(s.authenticatorData)),clientDataJSON:Cr(new Uint8Array(s.clientDataJSON)),signature:Cr(new
326Uint8Array(s.signature)),userHandle:s.userHandle?Cr(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function yy(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function wm(){var e,t;return!!(Oe()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function TS(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new bl("Browser returned unexpected credential type",t)}:{data:null,error:new bl("Empty credential response",t)}}catch(t){return{data:null,error:SS({error:t,options:e})}}}async function AS(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new bl("Browser returned unexpected credential type",t)}:{data:null,error:new bl("Empty credential response",t)}}catch(t){return{data:null,error:ES({error:t,options:e})}}}const RS={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},OS={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function wl(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(t(o)){const l=r[i];t(l)?r[i]=wl(l,o):r[i]=wl(o)}else r[i]=o}return r}function LS(e,t){return wl(RS,e,t||{})}function IS(e,t){return wl(OS,e,t||{})}class DS{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},i){var o;try{const{data:l,error:c}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!l)return{data:null,error:c};const d=s??kS.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:u}=l.webauthn.credential_options.publicKey;if(!u.name){const h=r;if(h)u.name=`${u.id}:${h}`;else{const f=(await this.client.getUser()).data.user,x=((o=f==null?void 0:f.user_metadata)===null||o===void 0?void 0:o.name)||(f==null?void 0:f.email)||(f==null?void 0:f.id)||"User";u.name=`${u.id}:${x}`}}u.displayName||(u.displayName=u.name)}switch(l.webauthn.type){case"create":{const u=LS(l.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:h,error:p}=await TS({publicKey:u,signal:d});return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:p}}case"request":{const u=IS(l.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:h,error:p}=await AS(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:u,signal:d}));return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:p}}}}catch(l){return B(l)?{data:null,error:l}:{data:null,error:new Er("Unexpected error in challenge",l)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new vo("rpId is required for WebAuthn authentication")};try{if(!wm())return{data:null,error:new Er("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:l};const{webauthn:c}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:c.type,rpId:n,rpOrigins:r,credential_response:c.credential_response}})}catch(o){return B(o)?{data:null,error:o}:{data:null,error:new Er("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new vo("rpId is required for WebAuthn registration")};try{if(!wm())return{data:null,error:new Er("Browser does not support WebAuthn",null)};const{data:o,error:l}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(u=>{var h;
326return(h=u.data)===null||h===void 0?void 0:h.all.find(p=>p.factor_type==="webauthn"&&p.friendly_name===t&&p.status!=="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:l};const{data:c,error:d}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return c?this._verify({factorId:o.id,challengeId:c.challengeId,webauthn:{rpId:n,rpOrigins:r,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:d}}catch(o){return B(o)?{data:null,error:o}:{data:null,error:new Er("Unexpected error in register",o)}}}}xS();const MS={url:L9,storageKey:I9,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:D9,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function $m(e,t,n){return await n()}const as={};class yo{get jwks(){var t,n;return(n=(t=as[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){as[this.storageKey]=Object.assign(Object.assign({},as[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=as[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){as[this.storageKey]=Object.assign(Object.assign({},as[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},MS),t);if(this.storageKey=i.storageKey,this.instanceID=(n=yo.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,yo.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&Oe()){const o=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new vS({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=my(i.fetch),this.lock=i.lock||$m,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&Oe()&&(!((r=globalThis==null?void 0:globalThis.navigator)===null||r===void 0)&&r.locks)?this.lock=yS:this.lock=$m,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new DS(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:py()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=xm(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=xm(this.memoryStorage)),Oe()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}i.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${uy}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(Oe()&&(n=Q9(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Oe()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),z9(i)){const c=(t=i.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:o,redirectType:l}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return B(n)?this._returnResult({error:n}):this._returnResult({error:new Er("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await H(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Nt}),{data:o,error:l}=i;if(l||!o)return this._returnResult({data:{user:null,session:null},error:l});const c=o.session,d=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(i){if(B(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:u,password:h,options:p}=t;let f=null,x=null;this.flowType==="pkce"&&([f,x]=await is(this.storage,this.storageKey)),i=await H(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:p==null?void 0:p.emailRedirectTo,body:{email:u,password:h,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:f,code_challenge_method:x},xform:Nt})}else if("phone"in t){const{phone:u,password:h,options:p}=t;i=await H(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:h,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},channel:(s=p==null?void 0:p.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:Nt})}else throw new ya("You must provide either an email or phone number and a password");const{data:o,error:l}=i;if(l||!o)return await Re(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:l});const c=o.session,d=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(i){if(await Re(this.storage,`${this.storageKey}-code-verifier`),B(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:l}=t;n=await H(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:vm})}else if("phone"in t){const{phone:i,password:o,options:l}=t;n=await H(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:vm})}else throw new ya("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new ss;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(B(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,o,l,c,d,u,h,p;let f,x;if("message"in t)f=t.message,x=t.signature;else{const{chain:v,wallet:b,statement:g,options:m}=t;let y;if(Oe())if(typeof b=="object")y=b;else{const A=window;if("ethereum"in A&&typeof A.ethereum=="object"&&"request"in A.ethereum&&typeof A.ethereum.request=="function")y=A.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof b!="object"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=b}const $=new URL((n=m==null?void 0:m.url)!==null&&n!==void 0?n:window.location.href),S=await y.request({method:"eth_requestAccounts"}).then(A=>A).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=vy(S[0]);let _=(r=m==null?void 0:m.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!_){const A=await y.request({method:"eth_chainId"});_=bS(A)}const P={domain:$.host,address:E,statement:g,uri:$.href,version:"1",chainId:_,nonce:(s=m==null?void 0:m.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=m==null?void 0:m.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(l=m==null?void 0:m.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=m==null?void 0:m.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(d=m==null?void 0:m.signInWithEthereum)===null||d===void 0?void 0:d.requestId,resources:(u=m==null?void 0:m.signInWithEthereum)===null||u===void 0?void 0:u.resources};f=$S(P),x=await y.request({method:"personal_sign",params:[wS(f),E]})}try{const{data:v,error:b}=await H(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:f,signature:x}
326,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:Nt});if(b)throw b;if(!v||!v.session||!v.user){const g=new ss;return this._returnResult({data:{user:null,session:null},error:g})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:b})}catch(v){if(B(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async signInWithSolana(t){var n,r,s,i,o,l,c,d,u,h,p,f;let x,v;if("message"in t)x=t.message,v=t.signature;else{const{chain:b,wallet:g,statement:m,options:y}=t;let $;if(Oe())if(typeof g=="object")$=g;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))$=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(y!=null&&y.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");$=g}const S=new URL((n=y==null?void 0:y.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in $&&$.signIn){const E=await $.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},y==null?void 0:y.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),m?{statement:m}:null));let _;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")_=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)_=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in _&&"signature"in _&&(typeof _.signedMessage=="string"||_.signedMessage instanceof Uint8Array)&&_.signature instanceof Uint8Array)x=typeof _.signedMessage=="string"?_.signedMessage:new TextDecoder().decode(_.signedMessage),v=_.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in $)||typeof $.signMessage!="function"||!("publicKey"in $)||typeof $!="object"||!$.publicKey||!("toBase58"in $.publicKey)||typeof $.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");x=[`${S.host} wants you to sign in with your Solana account:`,$.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=y==null?void 0:y.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=y==null?void 0:y.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((o=y==null?void 0:y.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((l=y==null?void 0:y.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((c=y==null?void 0:y.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((d=y==null?void 0:y.signInWithSolana)===null||d===void 0)&&d.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((h=(u=y==null?void 0:y.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||h===void 0)&&h.length?["Resources",...y.signInWithSolana.resources.map(_=>`- ${_}`)]:[]].join(` 327`);const E=await $.signMessage(new TextEncoder().encode(x),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=E}}try{const{data:b,error:g}=await H(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:x,signature:Cr(v)},!((p=t.options)===null||p===void 0)&&p.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:Nt});if(g)throw g;if(!b||!b.session||!b.user){const m=new ss;return this._returnResult({data:{user:null,session:null},error:m})}return b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),this._returnResult({data:Object.assign({},b),error:g})}catch(b){if(B(b))return this._returnResult({data:{user:null,session:null},error:b});throw b}}async _exchangeCodeForSession(t){const n=await yr(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new q9;
327const{data:i,error:o}=await H(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Nt});if(await Re(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const l=new ss;return this._returnResult({data:{user:null,session:null,redirectType:null},error:l})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await Re(this.storage,`${this.storageKey}-code-verifier`),B(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,l=await H(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Nt}),{data:c,error:d}=l;if(d)return this._returnResult({data:{user:null,session:null},error:d});if(!c||!c.session||!c.user){const u=new ss;return this._returnResult({data:{user:null,session:null},error:u})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:d})}catch(n){if(B(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:l,options:c}=t;let d=null,u=null;this.flowType==="pkce"&&([d,u]=await is(this.storage,this.storageKey));const{error:h}=await H(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=c==null?void 0:c.data)!==null&&n!==void 0?n:{},create_user:(r=c==null?void 0:c.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},code_challenge:d,code_challenge_method:u},redirectTo:c==null?void 0:c.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:h})}if("phone"in t){const{phone:l,options:c}=t,{data:d,error:u}=await H(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(s=c==null?void 0:c.data)!==null&&s!==void 0?s:{},create_user:(i=c==null?void 0:c.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken},channel:(o=c==null?void 0:c.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:d==null?void 0:d.message_id},error:u})}throw new ya("You must provide either an email or phone number.")}catch(l){if(await Re(this.storage,`${this.storageKey}-code-verifier`),B(l))return this._returnResult({data:{user:null,session:null},error:l});throw l}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:l}=await H(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Nt});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const c=o.session,d=o.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(s){if(B(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,o;try{let l=null,c=null;this.flowType==="pkce"&&([l,c]=await is(this.storage,this.storageKey));const d=await H(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:pS});return!((i=d.data)===null||i===void 0)&&i.url&&Oe()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(d.data.url),this._returnResult(d)}catch(l){if(await Re(this.storage,`${this.storageKey}-code-verifier`),B(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new it;const{error:s}=await H(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(B(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t,{error:o}=await H(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:l}=await H(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l})}throw new ya("You must provide either an email or phone number and a type")}catch(n){if(B(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await yr(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
327id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<qc:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await yr(this.userStorage,this.storageKey+"-user");o!=null&&o.user?t.user=o.user:t.user=Wc()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=dS(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await H(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Un}):await this._useSession(async n=>{var r,s,i;const{data:o,error:l}=n;if(l)throw l;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new it}:await H(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:Un})})}catch(n){if(B(n))return va(n)&&(await this._removeSession(),await Re(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new it;const o=s.session;let l=null,c=null;this.flowType==="pkce"&&t.email!=null&&([l,c]=await is(this.storage,this.storageKey));const{data:d,error:u}=await H(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:l,code_challenge_method:c}),jwt:o.access_token,xform:Un});if(u)throw u;return o.user=d.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await Re(this.storage,`${this.storageKey}-code-verifier`),B(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new it;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=ba(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});i={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(B(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:l}=n;if(l)throw l;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new it;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(B(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!Oe())throw new xa("No browser detected.");
327if(t.error||t.error_description||t.error_code)throw new xa(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new dm("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new xa("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new dm("No code detected.");const{data:m,error:y}=await this._exchangeCodeForSession(t.code);if(y)throw y;const $=new URL(window.location.href);return $.searchParams.delete("code"),window.history.replaceState(window.history.state,"",$.toString()),{data:{session:m.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:l,expires_at:c,token_type:d}=t;if(!i||!l||!o||!d)throw new xa("No session defined in URL");const u=Math.round(Date.now()/1e3),h=parseInt(l);let p=u+h;c&&(p=parseInt(c));const f=p-u;f*1e3<=us&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${f}s, should have been closer to ${h}s`);const x=p-h;u-x>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",x,p,u):u-x<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",x,p,u);const{data:v,error:b}=await this._getUser(i);if(b)throw b;const g={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:h,expires_at:p,refresh_token:o,token_type:d,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:t.type},error:null})}catch(r){if(B(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await yr(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i&&!va(i))return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:l}=await this.admin.signOut(o,t);if(l&&!(B9(l)&&(l.status===404||l.status===401||l.status===403)||va(l)))return this._returnResult({error:l})}return t!=="others"&&(await this._removeSession(),await Re(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=Y9(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),va(i)?console.warn(i):console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await is(this.storage,this.storageKey,!0));try{return await H(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await Re(this.storage,`${this.storageKey}-code-verifier`),B(i))return this._returnResult({data:null,error:i});throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,l,c,d,u;const{data:h,error:p}=i;if(p)throw p;const f=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=t.options)===null||l===void 0?void 0:l.scopes,queryParams:(c=t.options)===null||c===void 0?void 0:c.queryParams,skipBrowserRedirect:!0});return await H(this.fetch,"GET",f,{headers:this.headers,jwt:(u=(d=h.session)===null||d===void 0?void 0:d.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;return Oe()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),this._returnResult({data:{provider:t.provider,url:r==null?void 0:r.url},error:null})}catch(r){if(B(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;
327if(s)throw s;const{options:o,provider:l,token:c,access_token:d,nonce:u}=t,h=await H(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:l,id_token:c,access_token:d,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o==null?void 0:o.captchaToken}},xform:Nt}),{data:p,error:f}=h;return f?this._returnResult({data:{user:null,session:null},error:f}):!p||!p.session||!p.user?this._returnResult({data:{user:null,session:null},error:new ss}):(p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("USER_UPDATED",p.session)),this._returnResult({data:p,error:f}))}catch(s){if(await Re(this.storage,`${this.storageKey}-code-verifier`),B(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await H(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await eS(async s=>(s>
3270&&await Z9(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await H(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Nt})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Hc(i)&&Date.now()+o-r<us})}catch(r){if(this._debug(n,"error",r),B(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Oe()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await yr(this.storage,this.storageKey);if(s&&this.userStorage){let o=await yr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await hs(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o==null?void 0:o.user)!==null&&t!==void 0?t:Wc()}else if(s&&!s.user&&!s.user){const o=await yr(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await Re(this.storage,this.storageKey+"-user"),await hs(this.storage,this.storageKey,s)):s.user=Wc()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<qc;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${qc}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Hc(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(s.access_token);!l&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new it;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new ec;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new it;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const l={data:i.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(i){if(this._debug(s,"error",i),B(i)){const o={data:null,error:i};return Hc(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,n)}catch(c){i.push(c)}});if(await Promise.all(o),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Re(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await hs(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=mm(s);await hs(this.storage,this.storageKey,i)}else{const s=mm(n);await hs(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await Re(this.storage,this.storageKey),await Re(this.storage,this.storageKey+"-code-verifier"),await Re(this.storage,this.storageKey+"-user"),this.userStorage&&await Re(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;
327try{t&&Oe()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),us);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/us);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${us}ms, refresh threshold is ${hu} ticks`),s<=hu&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof gy)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Oe()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await is(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(l.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await H(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;
327if(o)return this._returnResult({data:null,error:o});const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:c,error:d}=await H(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return d?this._returnResult({data:null,error:d}):(t.factorType==="totp"&&c.type==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?CS(t.webauthn.credential_response):PS(t.webauthn.credential_response)})}:{code:t.code}),{data:l,error:c}=await H(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+l.expires_in},l)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",l),this._returnResult({data:l,error:c}))})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=await H(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:l}=o;if(l.type!=="webauthn")return{data:l,error:null};switch(l.webauthn.type){case"create":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:jS(l.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},l),{webauthn:Object.assign(Object.assign({},l.webauthn),{credential_options:Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:NS(l.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,s,i;if(t)try{const{payload:f}=ba(t);let x=null;f.aal&&(x=f.aal);let v=x;const{data:{user:b},error:g}=await this.getUser(t);if(g)return this._returnResult({data:null,error:g});((r=(n=b==null?void 0:b.factors)===null||n===void 0?void 0:n.filter($=>$.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(v="aal2");const y=f.amr||[];return{data:{currentLevel:x,nextLevel:v,currentAuthenticationMethods:y},error:null}}catch(f){if(B(f))return this._returnResult({data:null,error:f});throw f}const{data:{session:o},error:l}
327=await this.getSession();if(l)return this._returnResult({data:null,error:l});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:c}=ba(o.access_token);let d=null;c.aal&&(d=c.aal);let u=d;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(f=>f.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(u="aal2");const p=c.amr||[];return{data:{currentLevel:d,nextLevel:u,currentAuthenticationMethods:p},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await H(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new it})})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new it});const o=await H(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&Oe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(B(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new it});const o=await H(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return o.data&&o.data.redirect_url&&Oe()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(o.data.redirect_url),o})}catch(r){if(B(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await H(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new it})})}catch(t){if(B(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?(await H(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new it})})}catch(n){if(B(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(l=>l.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(l=>l.kid===t),r&&this.jwks_cached_at+F9>s)return r;const{data:i,error:o}=await H(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(l=>l.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:f,error:x}
327=await this.getSession();if(x||!f.session)return this._returnResult({data:null,error:x});r=f.session.access_token}const{header:s,payload:i,signature:o,raw:{header:l,payload:c}}=ba(r);n!=null&&n.allowExpired||aS(i.exp);const d=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!d){const{error:f}=await this.getUser(r);if(f)throw f;return{data:{claims:i,header:s,signature:o},error:null}}const u=lS(s.alg),h=await crypto.subtle.importKey("jwk",d,u,!0,["verify"]);if(!await crypto.subtle.verify(u,h,o,K9(`${l}.${c}`)))throw new mu("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(B(r))return this._returnResult({data:null,error:r});throw r}}}yo.nextInstanceID={};const FS=yo,US="2.103.0";let Ni="";typeof Deno<"u"?Ni="deno":typeof document<"u"?Ni="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Ni="react-native":Ni="node";const BS={"X-Client-Info":`supabase-js-${Ni}/${US}`},zS={headers:BS},qS={schema:"public"},HS={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},WS={};function xo(e){"@babel/helpers - typeof";return xo=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},xo(e)}function VS(e,t){if(xo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GS(e){var t=VS(e,"string");return xo(t)=="symbol"?t:t+""}function KS(e,t,n){return(t=GS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sm(Object(n),!0).forEach(function(r){KS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const JS=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),YS=()=>Headers,QS=(e,t,n)=>{const r=JS(n),s=YS();return async(i,o)=>{var l;const c=(l=await t())!==null&&l!==void 0?l:e;let d=new s(o==null?void 0:o.headers);return d.has("apikey")||d.set("apikey",e),d.has("Authorization")||d.set("Authorization",`Bearer ${c}`),r(i,$e($e({},o),{},{headers:d}))}};function XS(e){return e.endsWith("/")?e:e+"/"}function ZS(e,t){var n,r;const{db:s,auth:i,realtime:o,global:l}=e,{db:c,auth:d,realtime:u,global:h}=t,p={db:$e($e({},c),s),auth:$e($e({},d),i),realtime:$e($e({},u),o),storage:{},global:$e($e($e({},h),l),{},{headers:$e($e({},(n=h==null?void 0:h.headers)!==null&&n!==void 0?n:{}),(r=l==null?void 0:l.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?p.accessToken=e.accessToken:delete p.accessToken,p}function eE(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(XS(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var tE=class extends FS{constructor(e){super(e)}},nE=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=eE(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,l={db:qS,realtime:WS,auth:$e($e({},HS),{},{storageKey:o}),global:zS},c=ZS(n??{},l);if(this.storageKey=(r=c.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(u,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var d;this.auth=this._initSupabaseAuthClient((d=c.auth)!==null&&d!==void 0?d:{},this.headers,c.global.fetch)}this.fetch=QS(t,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient($e({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new S6(new URL("rest/v1",i).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch,timeout:c.db.timeout,urlLengthLimit:c.db.urlLengthLimit}),this.storage=new O9(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new f6(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
327channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:o,lock:l,debug:c,throwOnError:d},u,h){const p={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new tE({url:this.authUrl.href,headers:$e($e({},p),u),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:l,debug:c,throwOnError:d,fetch:h,hasCustomAuthorizationHeader:Object.keys(this.headers).some(f=>f.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new r9(this.realtimeUrl.href,$e($e({},e),{},{params:$e($e({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const rE=(e,t,n)=>new nE(e,t,n);function sE(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}sE()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const iE="https://xvpizcnbdspubgtiywpc.supabase.co",oE="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inh2cGl6Y25iZHNwdWJndGl5d3BjIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzUxMzA2NDQsImV4cCI6MjA5MDcwNjY0NH0.GdOkxmyputJzZIw7WS9DYJk7lAYztI-3kRTGzcEtBhg",Mh=rE(iE,oE,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),aE="https://link.fastpaydirect.com/payment-link/69ef99987dd3512d9207b468",lE="https://link.fastpaydirect.com/payment-link/69f9fd2f6e0a7e5150a6fd33",wa=()=>{setTimeout(()=>{var e;(e=document.getElementById("precio"))==null||e.scrollIntoView({behavior:"smooth",block:"start"})},30)},cE=()=>{const[e,t]=w.useState("cards"),[n,r]=w.useState("anual"),[s,i]=w.useState({name:"",email:"",confirmEmail:""}),[o,l]=w.useState({}),[c,d]=w.useState(!1),u=b=>{r(b),t("form"),wa()},h=()=>{const b={},g=s.name.trim(),m=s.email.trim().toLowerCase(),y=s.confirmEmail.trim().toLowerCase(),$=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;return g||(b.name="Tu nombre es necesario."),m?$.test(m)||(b.email="Ese email no parece válido."):b.email="Necesitamos tu email.",y?m!==y&&(b.confirmEmail="Los emails no coinciden."):b.confirmEmail="Confirma tu email.",l(b),Object.keys(b).length===0},p=async b=>{if(b.preventDefault(),!!h()){d(!0);try{await Mh.functions.invoke("ghl-contact-ovulacion",{body:{nombre:s.name.trim(),email:s.email.trim().toLowerCase(),plan_elegido:n,tag:"lead-caliente-ovulacion"}})}catch(g){console.error("[Precio] GHL invoke error",g)}t("payment"),d(!1),wa()}},f=n==="mensual"?aE:lE,x=n==="mensual"?"PLAN MENSUAL FUNDADORA":"PLAN ANUAL FUNDADORA",v=n==="mensual"?"$9.99 USD / mes":"$99 USD / año";return a.jsx("section",{id:"precio",className:"bg-white py-16 md:py-24",children:a.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[e==="cards"&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:"text-center mb-10",children:[a.jsx("p",{className:"text-lila text-xs md:text-sm font-semibold tracking-widest uppercase mb-3",children:"PROGRAMA FUNDADORA · ACCESO ANTICIPADO"}),a.jsx("h2",{className:"font-playfair text-3xl md:text-5xl text-navy mb-4",children:"Elige cómo quieres entrar."}),a.jsx("p",{className:"text-ov-text-mid max-w-2xl mx-auto",children:"Precio normal $19.99/mes. Sólo 100 plazas fundadoras al precio congelado de por vida."})]}),a.jsxs("div",{className:"bg-white border border-ov-border rounded-2xl p-6 md:p-8 mb-8",children:[a.jsx("p",{className:"text-center text-xs font-semibold tracking-widest uppercase text-ov-text-mid mb-5",children:"INCLUIDO EN AMBOS PLANES"}),a.jsx("div",{className:"grid sm:grid-cols-2 gap-3 max-w-3xl mx-auto",children:["Acceso completo a ovulación.ai","Conversación 24/7 con Luna","Avisos clÃnicos del Dr. Mujica","Cancela cuando quieras"].map(b=>a.jsxs("div",{className:"flex items-start gap-2",children:[a.jsx(Nr,{className:"w-5 h-5 text-ov
327-green flex-shrink-0 mt-0.5"}),a.jsx("span",{className:"text-ov-text",children:b})]},b))})]}),a.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[a.jsxs("div",{className:"bg-white border border-ov-border rounded-2xl p-6 md:p-8 flex flex-col",children:[a.jsx("p",{className:"text-xs font-semibold tracking-widest uppercase text-ov-text-mid mb-2",children:"PLAN MENSUAL FUNDADORA"}),a.jsxs("div",{className:"flex items-baseline gap-1 mb-1",children:[a.jsx("span",{className:"font-playfair text-4xl md:text-5xl text-navy",children:"$9.99"}),a.jsx("span",{className:"text-ov-text-mid",children:"USD/mes"})]}),a.jsx("p",{className:"text-sm text-ov-text-soft mb-6",children:"Facturado mensualmente. Cancela cuando quieras."}),a.jsxs("ul",{className:"space-y-2 mb-8 flex-1",children:[a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx(Nr,{className:"w-4 h-4 text-ov-green mt-1"}),a.jsx("span",{children:"Acceso completo"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx(Nr,{className:"w-4 h-4 text-ov-green mt-1"}),a.jsx("span",{children:"Precio fundadora congelado mientras no canceles"})]}),a.jsxs("li",{className:"flex items-start gap-2",children:[a.jsx(Nr,{className:"w-4 h-4 text-ov-green mt-1"}),a.jsx("span",{children:"Sin compromiso de permanencia"})]})]}),a.jsxs("button",{onClick:()=>u("mensual"),className:"w-full border-2 border-lila text-lila hover:bg-lila hover:text-white transition-colors font-semibold py-3 rounded-xl flex items-center justify-center gap-2",children:["Elegir mensual ",a.jsx(Ia,{className:"w-4 h-4"})]})]}),a.jsxs("div",{className:"bg-lila-pale border-2 border-lila rounded-2xl p-6 md:p-8 flex flex-col relative",children:[a.jsx("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2 bg-lila text-white text-xs font-bold px-3 py-1 rounded-full whitespace-nowrap",children:"â AHORRAS $140.88 AL AÃO"}),a.jsx("p",{className:"text-xs font-semibold tracking-widest uppercase text-lila mb-2 mt-2",children:"PLAN ANUAL FUNDADORA"}),a.jsxs("div",{className:"flex items-baseline gap-1 mb-1",children:[a.jsx("span",{className:"font-playfair text-4xl md:text-5xl text-navy",children:"$99"}),a.jsx("span",{className:"text-ov-text-mid",children:"USD/año"})]}),a.jsx("p",{className:"text-sm text-ov-text-soft mb-1",children:"Equivalente a $8.25/mes"}),a.jsx("p",{className:"text-sm text-ov-text-soft mb-5",children:a.jsx("span",{className:"line-through",children:"$239.88/año al precio normal"})}),a.jsxs("div",{className:"bg-white border border-ov-border rounded-xl p-4 mb-5",children:[a.jsx("p",{className:"text-xs font-bold tracking-widest uppercase text-lila mb-3",children:"+ 6 BONOS EXCLUSIVOS PARA FUNDADORAS"}),a.jsxs("ul",{className:"space-y-1.5 text-sm",children:[a.jsxs("li",{className:"flex justify-between gap-2",children:[a.jsx("span",{children:"GuÃa Maestra de Ovulación"}),a.jsx("span",{className:"text-ov-text-soft whitespace-nowrap",children:"$47"})]}),a.jsxs("li",{className:"flex justify-between gap-2",children:[a.jsx("span",{children:"Biblioteca ClÃnica del Dr. Mujica"}),a.jsx("span",{className:"text-ov-text-soft whitespace-nowrap",children:"$197"})]}),a.jsxs("li",{className:"flex justify-between gap-2",children:[a.jsx("span",{children:"Q&A trimestral en directo"}),a.jsx("span",{className:"text-ov-text-soft whitespace-nowrap",children:"$197"})]}),a.jsxs("li",{className:"flex justify-between gap-2",children:[a.jsx("span",{children:"Acceso prioritario a nuevas funciones"}),a.jsx("span",{className:"text-ov-text-soft whitespace-nowrap",children:"$97"})]}),a.jsxs("li",{className:"flex justify-between gap-2",children:[a.jsx("span",{children:"Plantillas clÃnicas para tu consulta"}),a.jsx("span",{className:"text-ov-text-soft whitespace-nowrap",children:"$97"})]}),a.jsxs("li",{className:"flex justify-between gap-2",children:[a.jsx("span",{children:"Precio fundadora congelado de por vida"}),a.jsx("span",{className:"text-ov-text-soft whitespace-nowrap",children:"$140/año"})]})]}),a.jsxs("div",{className:"border-t border-ov-border mt-3 pt-3 flex justify-between font-semibold",children:[a.jsx("span",{className:"text-xs uppercase tracking-widest text-ov-text-mid",children:"VALOR TOTAL DE LOS BONOS"}),a.jsx("span",{className:"text-navy",children:"$635"})]}
327),a.jsx("p",{className:"text-xs text-ov-text-soft mt-2",children:"+ precio fundadora congelado de por vida."})]}),a.jsxs("button",{onClick:()=>u("anual"),className:"w-full bg-lila hover:bg-lila/90 text-white font-semibold py-3 rounded-xl flex items-center justify-center gap-2 transition-colors",children:["Reservar mi plaza fundadora ",a.jsx(Ia,{className:"w-4 h-4"})]})]})]}),a.jsxs("div",{className:"text-center mt-10",children:[a.jsx("p",{className:"text-xs text-ov-text-soft max-w-xl mx-auto mb-4",children:"ovulación.ai es una herramienta de información clÃnica, no un método anticonceptivo ni un sustituto del juicio médico. Consulta siempre con tu profesional de salud."}),a.jsx("p",{className:"font-playfair italic text-navy text-lg",children:"Nadie sola entre consultas."})]})]}),e==="form"&&a.jsxs("div",{className:"max-w-xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-6",children:[a.jsx("p",{className:"text-lila text-xs font-semibold tracking-widest uppercase mb-3",children:"PASO 1 DE 2 · TUS DATOS"}),a.jsx("h2",{className:"font-playfair italic text-3xl md:text-4xl text-navy",children:"Antes del pago, dime quién eres."})]}),a.jsxs("div",{className:"flex items-center justify-center gap-2 mb-6",children:[a.jsx("div",{className:"h-2 w-16 rounded-full bg-lila"}),a.jsx("div",{className:"h-2 w-16 rounded-full bg-ov-border"})]}),a.jsxs("div",{className:"bg-lila-pale rounded-xl p-4 mb-6 flex items-center justify-between",children:[a.jsxs("div",{children:[a.jsx("p",{className:"text-xs font-semibold tracking-widest uppercase text-lila mb-1",children:"PLAN ELEGIDO"}),a.jsx("p",{className:"text-navy font-semibold",children:x}),a.jsx("p",{className:"text-ov-text-mid text-sm",children:v})]}),a.jsx("button",{type:"button",onClick:()=>{t("cards"),wa()},className:"text-lila text-sm font-semibold hover:underline",children:"Cambiar plan"})]}),a.jsxs("form",{onSubmit:p,className:"max-w-md mx-auto space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm font-semibold text-ov-text mb-1",children:"Tu nombre"}),a.jsx("input",{type:"text",value:s.name,onChange:b=>i({...s,name:b.target.value}),className:"w-full border border-ov-border rounded-lg px-4 py-3 focus:outline-none focus:border-lila",placeholder:"MarÃa"}),o.name&&a.jsx("p",{className:"text-red-600 text-xs mt-1",children:o.name})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm font-semibold text-ov-text mb-1",children:"Tu email"}),a.jsx("input",{type:"email",value:s.email,onChange:b=>i({...s,email:b.target.value}),className:"w-full border border-ov-border rounded-lg px-4 py-3 focus:outline-none focus:border-lila",placeholder:"[email protected]"}),o.email&&a.jsx("p",{className:"text-red-600 text-xs mt-1",children:o.email})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm font-semibold text-ov-text mb-1",children:"Confirma tu email"}),a.jsx("input",{type:"email",value:s.confirmEmail,onChange:b=>i({...s,confirmEmail:b.target.value}),onPaste:b=>b.preventDefault(),autoComplete:"off",className:"w-full border border-ov-border rounded-lg px-4 py-3 focus:outline-none focus:border-lila",placeholder:"[email protected]"}),o.confirmEmail&&a.jsx("p",{className:"text-red-600 text-xs mt-1",children:o.confirmEmail})]}),a.jsxs("div",{className:"bg-lila-soft rounded-lg p-3 flex items-start gap-2",children:[a.jsx(L$,{className:"w-4 h-4 text-lila flex-shrink-0 mt-0.5"}),a.jsx("p",{className:"text-sm text-ov-text-mid",children:"Tu email es tu llave de acceso a ovulación.ai. Te enviaremos un enlace para entrar y crear tu contraseña."})]}),a.jsx("button",{type:"submit",disabled:c,className:"w-full bg-lila hover:bg-lila/90 disabled:opacity-60 text-white font-semibold py-3 rounded-xl flex items-center justify-center gap-2 transition-colors",children:c?a.jsxs(a.Fragment,{children:[a.jsx(O$,{className:"w-4 h-4 animate-spin"})," Preparando..."]}):a.jsxs(a.Fragment,{children:["Continuar al pago ",a.jsx(Ia,{className:"w-4 h-4"})]})}),a.jsx("p",{className:"text-xs text-ov-text-soft text-center",children:"Al continuar aceptas los Términos y la PolÃtica de Privacidad."})]})]}),e==="payment"&&a.jsxs("div",{className:"max-w-3xl mx-auto",children:[a.jsxs("div",{className:"text-center mb-6",children:[a.jsx("p",{className:"text-lila text-xs font-semibold tracking-widest uppercase mb-3",children:"PASO 2 DE 2 · PAGO SEGURO"}),a.jsx("h2",{className:"font-playfair text-3xl md:text-4xl text-navy",children:"Activa tu acceso ahora."})]}),a.jsxs("div",{className:"flex items-center justify-center gap-2 mb-6",children:[a.jsx("div",{className:"h-2 w-16 rounded-full bg-ov-green"}),a.jsx("div",{className:"h-2 w-16 rounded-full bg-lila"})]}),a.jsxs("div",{className:"bg-lila-pale rounded-xl p-4 mb-6 max-w-md mx-auto",children:[a.jsxs("div",{className:"flex justify-between text-sm mb-1",children:[a.jsx("span",{className:"text-ov-text-mid",children:"Plan"}),a.jsx("span",{className:"font-semibold text-navy",children:x})]}),a.jsxs("div",{className:"flex justify-between text-sm mb-1",children:[a.jsx("span",{className:"text-ov-text-mid",children:"Email"}),a.jsx("span",{className:"font-mono text-navy text-xs break-all",children:s.email})]}),a.jsxs("div",{className:"flex justify-between border-t border-lila/30 pt-2 mt-2",children:[a.jsx("span",{className:"text-xs uppercase tracking-widest font-semibold text-ov
327-text-mid",children:"TOTAL HOY"}),a.jsx("span",{className:"font-semibold text-navy",children:v})]})]}),a.jsx("iframe",{title:"Pago seguro ovulación.ai",src:`${f}?prefilled_email=${encodeURIComponent(s.email)}`,className:"max-w-2xl mx-auto w-full min-h-[700px] border border-ov-border rounded-xl block",allow:"payment *"}),a.jsxs("div",{className:"text-center mt-6",children:[a.jsxs("button",{type:"button",onClick:()=>{t("form"),wa()},className:"text-ov-text-mid hover:text-lila text-sm inline-flex items-center gap-1",children:[a.jsx(y$,{className:"w-4 h-4"})," Volver al paso anterior"]}),a.jsx("p",{className:"text-xs text-ov-text-soft mt-3 max-w-md mx-auto",children:"Tras completar el pago serás redirigida automáticamente a la página de bienvenida."})]})]})]})})},xy=[{code:"ES",name:"España",flag:"ðªð¸",dialCode:"+34",minDigits:9},{code:"VE",name:"Venezuela",flag:"ð»ðª",dialCode:"+58",minDigits:10},{code:"MX",name:"México",flag:"ð²ð½",dialCode:"+52",minDigits:10},{code:"CO",name:"Colombia",flag:"ð¨ð´",dialCode:"+57",minDigits:10},{code:"AR",name:"Argentina",flag:"ð¦ð·",dialCode:"+54",minDigits:10},{code:"US",name:"Estados Unidos",flag:"ðºð¸",dialCode:"+1",minDigits:10},{code:"GB",name:"Reino Unido",flag:"ð¬ð§",dialCode:"+44",minDigits:10}],dE=[{code:"DE",name:"Alemania",flag:"ð©ðª",dialCode:"+49",minDigits:7},{code:"BO",name:"Bolivia",flag:"ð§ð´",dialCode:"+591",minDigits:8},{code:"BR",name:"Brasil",flag:"ð§ð·",dialCode:"+55",minDigits:10},{code:"CL",name:"Chile",flag:"ð¨ð±",dialCode:"+56",minDigits:9},{code:"CR",name:"Costa Rica",flag:"ð¨ð·",dialCode:"+506",minDigits:8},{code:"CU",name:"Cuba",flag:"ð¨ðº",dialCode:"+53",minDigits:8},{code:"EC",name:"Ecuador",flag:"ðªð¨",dialCode:"+593",minDigits:9},{code:"SV",name:"El Salvador",flag:"ð¸ð»",dialCode:"+503",minDigits:8},{code:"FR",name:"Francia",flag:"ð«ð·",dialCode:"+33",minDigits:9},{code:"GT",name:"Guatemala",flag:"ð¬ð¹",dialCode:"+502",minDigits:8},{code:"HN",name:"Honduras",flag:"ðð³",dialCode:"+504",minDigits:8},{code:"IT",name:"Italia",flag:"ð®ð¹",dialCode:"+39",minDigits:9},{code:"NI",name:"Nicaragua",flag:"ð³ð®",dialCode:"+505",minDigits:8},{code:"PA",name:"Panamá",flag:"ðµð¦",dialCode:"+507",minDigits:7},{code:"PY",name:"Paraguay",flag:"ðµð¾",dialCode:"+595",minDigits:9},{code:"PE",name:"Perú",flag:"ðµðª",dialCode:"+51",minDigits:9},{code:"PT",name:"Portugal",flag:"ðµð¹",dialCode:"+351",minDigits:9},{code:"DO",name:"Rep. Dominicana",flag:"ð©ð´",dialCode:"+1",minDigits:10},{code:"UY",name:"Uruguay",flag:"ðºð¾",dialCode:"+598",minDigits:8}],uE=({phone:e,setPhone:t,selectedCountry:n,setSelectedCountry:r,error:s,valid:i,onBlur:o,variant:l="light"})=>{const[c,d]=w.useState(!1),u=l==="inverted",h=s?"border-ov-red":i?"border-ov-green":u?"border-white/30":"border-ov-border",p=u?"bg-white/15":"",f=u?"bg-white/10 border-r border-white/30 text-white hover:bg-white/20":"bg-ov-bg border-r border-ov-border hover:bg-lila-pale",x=u?"text-white/80":"text-ov-text-mid",v=u?"text-white/70":"text-ov-text-soft",b=u?"text-white placeholder:text-white/60":"text-ov-text placeholder:text-ov-text-soft";return a.jsxs("div",{children:[a.jsxs("div",{className:`flex border rounded-lg overflow-hidden transition-colors ${h} ${p} focus-within:border-lila focus-within:shadow-[0_0_0_3px_rgba(124,92,191,0.1)]`,children:[a.jsxs("div",{className:"relative",children:[a.jsxs("button",{type:"button",onClick:()=>d(!c),className:`flex items-center gap-1 px-3 h-full font-body text-sm min-w-[110px] transition-colors ${f}`,children:[a.jsx("span",{children:n.flag}),a.jsx("span",{className:x,children:n.dialCode}),a.jsx("svg",{className:`w-3 h-3 ml-auto ${v}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),c&&a.jsxs("div",{className:"absolute top-full left-0 z-50 mt-1 w-64 max-h-60 overflow-y-auto bg-white border border-ov-border rounded-lg shadow-lg",children:[xy.map(g=>a.jsxs("button",{type:"button",onClick:()=>{r(g),d(!1)},className:"flex items-center gap-2 w-full px-3 py-2 text-sm font-body hover:bg-lila-pale text-left",children:[a.jsx("span",{children:g.flag}),a.jsx("span",{className:"text-ov-text",children:g.name}
327),a.jsx("span",{className:"ml-auto text-ov-text-soft",children:g.dialCode})]},g.code)),a.jsx("div",{className:"border-t border-ov-border my-1"}),dE.map(g=>a.jsxs("button",{type:"button",onClick:()=>{r(g),d(!1)},className:"flex items-center gap-2 w-full px-3 py-2 text-sm font-body hover:bg-lila-pale text-left",children:[a.jsx("span",{children:g.flag}),a.jsx("span",{className:"text-ov-text",children:g.name}),a.jsx("span",{className:"ml-auto text-ov-text-soft",children:g.dialCode})]},g.code))]})]}),a.jsx("input",{type:"tel",inputMode:"numeric",value:e,onChange:g=>t(g.target.value.replace(/\D/g,"")),onBlur:()=>{d(!1),o()},placeholder:"612 345 678",className:`flex-1 px-3 py-3 font-body text-sm outline-none bg-transparent ${b}`}),i&&e&&a.jsx("span",{className:"flex items-center pr-3 text-ov-green",children:"â"})]}),s&&a.jsx("p",{className:`text-xs mt-1 font-body ${u?"text-white":"text-ov-red"}`,children:s})]})},hE=async e=>{try{const{data:t,error:n}=await Mh.functions.invoke("ghl-contact-ovulacion",{body:{nombre:e.firstName,email:e.email,whatsapp:e.phone||""}});return n?(console.error("[GHL] Edge function error:",n),!1):(t==null?void 0:t.success)===!0}catch(t){return console.error("[GHL] Unexpected error:",t),!1}},fE=async e=>{try{const{data:t,error:n}=await Mh.functions.invoke("ghl-pro-contact",{body:e});return n?(console.error("[GHL-PRO] Edge function error:",n),!1):(t==null?void 0:t.success)===!0}catch(t){return console.error("[GHL-PRO] Unexpected error:",t),!1}},pE={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-4
3276-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"]
vendor: 20,373 bytes, line 327
327,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:
327694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"]
vendor: 18,925 bytes, line 327
327,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","
3277090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}
327(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|7[67]|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4}
327)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-579]|61)","5(?:[0-579]|61[06])","5(?:[0-579]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4}
327)","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function by(e,t){var n=Array.prototype.slice.call(t);return n.push(pE),e.apply(this,n)}function Em(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),s=0;s<3;s++){var i=Number(n[s]),o=Number(r[s]);if(i>o)return 1;if(o>i)return-1;if(!isNaN(i)&&isNaN(o))return 1;if(isNaN(i)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var mE={}.constructor;function Is(e){return e!=null&&e.constructor===mE}function ei(e){"@babel/helpers - typeof";return ei=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},ei(e)}function tc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gE(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,vE(r.key),r)}}function nc(e,t,n){return t&&gE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vE(e){var t=yE(e,"string");return ei(t)=="symbol"?t:t+""}function yE(e,t){if(ei(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ei(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xE="1.2.0",bE="1.7.35",_m=" ext. ",wE=/^\d+$/,He=function(){function e(t){tc(this,e),wy(t),this.metadata=t,$y.call(this,t)}return nc(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){if(n&&wE.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new km(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new km(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var s=this.nonGeographic()[n];if(s)return s}else{var i=this.countryCallingCodes()[n];if(i&&i.length===1&&i[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])}(),km=function(){function e(t,n){tc(this,e),this.globalMetadataObject=n,this.metadata=t,$y.call(this,n.metadata)}return nc(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(s){return new $E(s,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&jm(this.types(),n))return new EE(jm(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?_m:this.metadata[13]||_m}}])}(),$E=function(){function e(t,n){tc(this,e),this._format=t,this.metadata=n}return nc(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!SE.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),SE=/^\(?\$1\)?$/,EE=function(){function e(t,n){tc(this,e),this.type=t,this.metadata=n}return nc(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
vendor: 4,504 bytes, lines 327-328
327ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function jm(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function wy(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Is(e)||!Is(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Is(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+_E(e)+": "+e,"."))}var _E=function(t){return ei(t)};function Fh(e,t){if(t=new He(t),t.hasCountry(e))return t.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function kE(e,t){return t.countries.hasOwnProperty(e)}function $y(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?Em(t,xE)===-1?this.v2=!0:Em(t,bE)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function Uh(e,t,n){return jE(e,t,void 0,n)}function jE(e,t,n,r){t&&(r=new He(r.metadata),r.selectNumberingPlan(t));var s=r.type(n),i=s&&s.possibleLengths()||r.possibleLengths();if(!i)return"IS_POSSIBLE";var o=e.length,l=i[0];return l===o?"IS_POSSIBLE":l>o?"TOO_SHORT":i[i.length-1]<o?"TOO_LONG":i.indexOf(o,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function NE(e,t,n){if(t===void 0&&(t={}),n=new He(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return Sy(e.phone||e.nationalNumber,e.country,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Sy(e,t,n){switch(Uh(e,t,n)){case"IS_POSSIBLE":return!0;default:return!1}}function $n(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function CE(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=PE(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 328In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PE(e,t){if(e){if(typeof e=="string")return Nm(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)?Nm(e,t):void 0}}function Nm(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}var TE=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function Bh(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new He(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if($n(r,n.nationalNumberPattern())){if(Gc(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||Gc(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var s=CE(TE),i;!(i=s()).done;){var o=i.value;if(Gc(r,o,n))return o}}}}function Gc(e,t,n){var r=n.type(t);return!r||!r.pattern()||r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0?!1:$n(e,r.pattern())}function AE(e,t,n){if(t=t||{},n=new He(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return Bh(e,t,n.metadata)!==void 0;var r=t.v2?e.nationalNumber:e.phone;return $n(r,n.nationalNumberPattern())}function RE(e,t,n){var r=new He(n),s=r.getCountryCodesForCallingCode(e);return s?s.filter(function(i){return OE(t,i,n)}):[]}function OE(e,t,n){var r=new He(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var zh=2,LE=17,IE=3,zt="0-9ï¼-ï¼Ù -Ù©Û°-Û¹",DE="-â-ââã¼ï¼",ME="ï¼/",FE="ï¼.",UE="  Ââ
328â ã",BE="()ï¼ï¼ï¼»ï¼½\\[\\]",zE="~ââ¼ï½",$l="".concat(DE).concat(ME).concat(FE).concat(UE).concat(BE).concat(zE),qh="+ï¼",qE=new RegExp("(["+zt+"])");function HE(e,t,n,r){if(t){var s=new He(r);s.selectNumberingPlan(t,n);var i=new RegExp(s.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var o=e.match(qE);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]==="0"))return e}}}function WE(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var s,i,o=r.length-1,l=o>0&&r[o];if(t.nationalPrefixTransformRule()&&l)s=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(i=r[1]);else{var c=r[0];s=e.slice(c.length),l&&(i=r[1])}var d;if(l){var u=e.indexOf(r[1]),h=e.slice(0,u);h===t.numberingPlan.nationalPrefix()&&(d=t.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:s,nationalPrefix:d,carrierCode:i}}}return{nationalNumber:e}}function VE(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=GE(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 329In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GE(e,t){if(e){if(typeof e=="string")return Cm(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)?Cm(e,t):void 0}}function Cm(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 KE(e,t){var n=t.countries,r=t.metadata;r=new He(r);for(var s=VE(n),i;!(i=s()).done;){var o=i.value;if(r.selectNumberingPlan(o),r.leadingDigits()){if(e&&e.search(r.leadingDigits())===0)return o}else if(Bh({phone:e,country:o},void 0,r.metadata))return o}}function Ey(e,t){var n=t.nationalNumber,r=t.metadata,s=r.getCountryCodesForCallingCode(e);if(s)return s.length===1?s[0]:KE(n,{countries:s,metadata:r.metadata})}function gu(e,t,n){var r=WE(e,n),s=r.carrierCode,i=r.nationalNumber;if(i!==e){if(!JE(e,i,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=Ey(n.numberingPlan.callingCode(),{nationalNumber:i,metadata:n})),!YE(i,t,n)))return{nationalNumber:e}}return{nationalNumber:i,carrierCode:s}}function JE(e,t,n){return!($n(e,n.nationalNumberPattern())&&!$n(t,n.nationalNumberPattern()))}function YE(e,t,n){switch(Uh(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function QE(e,t,n,r,s){var i=n?Fh(n,s):r;if(e.indexOf(i)===0){s=new He(s),s.selectNumberingPlan(n,i);var o=e.slice(i.length),l=gu(o,t,s),c=l.nationalNumber,d=gu(e,t,s),u=d.nationalNumber;if(!$n(u,s.nationalNumberPattern())&&$n(c,s.nationalNumberPattern())||Uh(u,t,s)==="TOO_LONG")return{countryCallingCode:i,number:o}}return{number:e}}function _y(e,t,n,r,s){if(!e)return{};var i;if(e[0]!=="+"){var o=HE(e,n,r,s);if(o&&o!==e)i=!0,e="+"+o;else{if(n||r){var l=QE(e,t,n,r,s),c=l.countryCallingCode,d=l.number;if(c)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:c,number:d}}return{number:e}}}if(e[1]==="0")return{};s=new He(s);for(var u=2;u-1<=IE&&u<=e.length;){var h=e.slice(1,u);if(s.hasCallingCode(h))return s.selectNumberingPlan(h),{countryCallingCodeSource:i?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:h,number:e.slice(u)};u++}return{}}function XE(e){return e.replace(new RegExp("[".concat($l,"]+"),"g")," ").trim()}var ZE=/(\$\d)/;function e7(e,t,n){var r=n.useInternationalFormat,s=n.withNationalPrefix,i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():s&&t.nationalPrefixFormattingRule()?t.format().replace(ZE,t.nationalPrefixFormattingRule()):t.format());return r?XE(i):i}var t7=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
vendor: 4,879 bytes, line 329
329function n7(e,t,n){var r=new He(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(t7.test(r.IDDPrefix()))return r.IDDPrefix()}var r7=";ext=",ls=function(t){return"([".concat(zt,"]{1,").concat(t,"})")};function ky(e){var t="20",n="15",r="9",s="6",i="[  \\t,]*",o="[:\\.ï¼]?[  \\t,-]*",l="#?",c="(?:e?xt(?:ensi(?:oÌ?|ó))?n?|ï½
?ï½ï½ï½?|доб|anexo)",d="(?:[xï½#ï¼~ï½]|int|ï½ï½ï½)",u="[- ]+",h="[  \\t]*",p="(?:,{2}|;)",f=r7+ls(t),x=i+c+o+ls(t)+l,v=i+d+o+ls(r)+l,b=u+ls(s)+"#",g=h+p+o+ls(n)+l,m=h+"(?:,)+"+o+ls(r)+l;return f+"|"+x+"|"+v+"|"+b+"|"+g+"|"+m}var s7="["+zt+"]{"+zh+"}",i7="["+qh+"]{0,1}(?:["+$l+"]*["+zt+"]){3,}["+$l+zt+"]*",o7=new RegExp("^["+qh+"]{0,1}(?:["+$l+"]*["+zt+"]){1,2}$","i"),a7=i7+"(?:"+ky()+")?",l7=new RegExp("^"+s7+"$|^"+a7+"$","i");function c7(e){return e.length>=zh&&l7.test(e)}function d7(e){return o7.test(e)}function u7(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var Pm={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function h7(e,t,n,r){if(n?n=m7({},Pm,n):n=Pm,r=new He(r),e.country&&e.country!=="001"){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var s=r.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return i?(o=Sl(i,e.carrierCode,"NATIONAL",r,n),Kc(o,e.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return i?(o=Sl(i,null,"INTERNATIONAL",r,n),o="+".concat(s," ").concat(o),Kc(o,e.ext,r,n.formatExtension)):"+".concat(s);case"E.164":return"+".concat(s).concat(i);case"RFC3966":return u7({number:"+".concat(s).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var l=p7(i,e.carrierCode,s,n.fromCountry,r);return l?Kc(l,e.ext,r,n.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Sl(e,t,n,r,s){var i=f7(r.formats(),e);return i?e7(e,i,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&s&&s.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function f7(e,t){return g7(e,function(n){if(n.leadingDigitsPatterns().length>0){var r=n.leadingDigitsPatterns()[n.leadingDigitsPatterns().length-1];if(t.search(r)!==0)return!1}return $n(t,n.pattern())})}function Kc(e,t,n,r){return t?r(e,t,n):e}function p7(e,t,n,r,s){var i=Fh(r,s.metadata);if(i===n){var o=Sl(e,t,"NATIONAL",s);return n==="1"?n+" "+o:o}var l=n7(r,void 0,s.metadata);if(l)return"".concat(l," ").concat(n," ").concat(Sl(e,null,"INTERNATIONAL",s))}function m7(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(;e<n.length;){if(n[e])for(var s in n[e])n[0][s]=n[e][s];e++}return n[0]}function g7(e,t){for(var n=0;n<e.length;){if(t(e[n]))return e[n];n++}}function bo(e){"@babel/helpers - typeof";return bo=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},bo(e)}function Tm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Am(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tm(Object(n),!0).forEach(function(r){v7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v7(e,t,n){return(t=jy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x7(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,jy(r.key),r)}}function b7(e,t,n){return t&&x7(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jy(e){var t=w7(e,"string");return bo(t)=="symbol"?t:t+""}function w7(e,t){if(bo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $7=function(){function e(t,n,r){if(y7(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");
vendor: 5,589 bytes, lines 329-330
329if(t[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Is(n)&&Is(n.countries)){r=n;var s=t;if(!_7.test(s))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var i=_y(s,void 0,void 0,void 0,r),o=i.countryCallingCode,l=i.number;if(n=l,t=o,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if(typeof n!="string")throw new TypeError("`nationalNumber` argument must be a string");wy(r);var c=E7(t,r),d=c.country,u=c.countryCallingCode;this.country=d,this.countryCallingCode=u,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return b7(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:RE(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return NE(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return AE(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new He(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return Bh(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return h7(this,n,r?Am(Am({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}])}(),S7=function(t){return/^[A-Z]{2}$/.test(t)};function E7(e,t){var n,r,s=new He(t);return S7(e)?(n=e,s.selectNumberingPlan(n),r=s.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}var _7=/^\+\d+$/;function vu(e){"@babel/helpers - typeof";return vu=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},vu(e)}function k7(e,t,n){return Object.defineProperty(e,"prototype",{writable:!1}),e}function j7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N7(e,t,n){return t=$o(t),C7(e,Hh()?Reflect.construct(t,n||[],$o(e).constructor):t.apply(e,n))}function C7(e,t){if(t&&(vu(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P7(e)}function P7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T7(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&&wo(e,t)}function yu(e){var t=typeof Map=="function"?new Map:void 0;return yu=function(r){if(r===null||!R7(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,s)}function s(){return A7(r,arguments,$o(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),wo(s,r)},yu(e)}function A7(e,t,n){if(Hh())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var s=new(e.bind.apply(e,r));return n&&wo(s,n.prototype),s}function Hh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hh=function(){return!!e})()}function R7(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function wo(e,t){return wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},wo(e,t)}function $o(e){return $o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$o(e)}var un=function(e){function t(n){var r;return j7(this,t),r=N7(this,t,[n]),Object.setPrototypeOf(r,t.prototype),r.name=r.constructor.name,r}return T7(t,e),k7(t)}(yu(Error)),Rm=new RegExp("(?:"+ky()+")$","i");function O7(e){var t=e.search(Rm);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(Rm),s=1;s<r.length;){if(r[s])return{number:n,ext:r[s]};s++}}var L7={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","ï¼":"0","ï¼":"1","ï¼":"2","ï¼":"3","ï¼":"4","ï¼":"5","ï¼":"6","ï¼":"7","ï¼":"8","ï¼":"9","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9"};function I7(e){return L7[e]}function D7(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=M7(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 330In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M7(e,t){if(e){if(typeof e=="string")return Om(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)?Om(e,t):void 0}}
vendor: 5,104 bytes, line 330
330function Om(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 Lm(e){for(var t="",n=D7(e.split("")),r;!(r=n()).done;){var s=r.value;t+=F7(s,t)||""}return t}function F7(e,t,n){return e==="+"?t?void 0:"+":I7(e)}var Ny="+",U7="[\\-\\.\\(\\)]?",Im="(["+zt+"]|"+U7+")",B7="^\\"+Ny+Im+"*["+zt+"]"+Im+"*$",z7=new RegExp(B7,"g"),xu=zt,q7="["+xu+"]+((\\-)*["+xu+"])*",H7="a-zA-Z",W7="["+H7+"]+((\\-)*["+xu+"])*",V7="^("+q7+"\\.)*"+W7+"\\.?$",G7=new RegExp(V7,"g"),Dm="tel:",bu=";phone-context=",K7=";isub=";function J7(e){var t=e.indexOf(bu);if(t<0)return null;var n=t+bu.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function Y7(e){return e===null?!0:e.length===0?!1:z7.test(e)||G7.test(e)}function Q7(e,t){var n=t.extractFormattedPhoneNumber,r=J7(e);if(!Y7(r))throw new un("NOT_A_NUMBER");var s;if(r===null)s=n(e)||"";else{s="",r.charAt(0)===Ny&&(s+=r);var i=e.indexOf(Dm),o;i>=0?o=i+Dm.length:o=0;var l=e.indexOf(bu);s+=e.substring(o,l)}var c=s.indexOf(K7);if(c>0&&(s=s.substring(0,c)),s!=="")return s}var X7=250,Z7=new RegExp("["+qh+zt+"]"),e_=new RegExp("[^"+zt+"#]+$");function t_(e,t,n){if(t=t||{},n=new He(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new un("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=r_(e,t.v2,t.extract),s=r.number,i=r.ext,o=r.error;if(!s){if(t.v2)throw o==="TOO_SHORT"?new un("TOO_SHORT"):new un("NOT_A_NUMBER");return{}}var l=i_(s,t.defaultCountry,t.defaultCallingCode,n),c=l.country,d=l.nationalNumber,u=l.countryCallingCode,h=l.countryCallingCodeSource,p=l.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new un("INVALID_COUNTRY");return{}}if(!d||d.length<zh){if(t.v2)throw new un("TOO_SHORT");return{}}if(d.length>LE){if(t.v2)throw new un("TOO_LONG");return{}}if(t.v2){var f=new $7(u,d,n.metadata);return c&&(f.country=c),p&&(f.carrierCode=p),i&&(f.ext=i),f.__countryCallingCodeSource=h,f}var x=(t.extended?n.hasSelectedNumberingPlan():c)?$n(d,n.nationalNumberPattern()):!1;return t.extended?{country:c,countryCallingCode:u,carrierCode:p,valid:x,possible:x?!0:!!(t.extended===!0&&n.possibleLengths()&&Sy(d,c,n)),phone:d,ext:i}:x?s_(c,d,i):{}}function n_(e,t,n){if(e){if(e.length>X7){if(n)throw new un("TOO_LONG");return}if(t===!1)return e;var r=e.search(Z7);if(!(r<0))return e.slice(r).replace(e_,"")}}function r_(e,t,n){var r=Q7(e,{extractFormattedPhoneNumber:function(o){return n_(o,n,t)}});if(!r)return{};if(!c7(r))return d7(r)?{error:"TOO_SHORT"}:{};var s=O7(r);return s.ext?s:{number:r}}function s_(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function i_(e,t,n,r){var s=_y(Lm(e),void 0,t,n,r.metadata),i=s.countryCallingCodeSource,o=s.countryCallingCode,l=s.number,c;if(o)r.selectNumberingPlan(o);else if(l&&(t||n))r.selectNumberingPlan(t,n),t&&(c=t),o=n||Fh(t,r.metadata);else return{};if(!l)return{countryCallingCodeSource:i,countryCallingCode:o};var d=gu(Lm(l),c,r),u=d.nationalNumber,h=d.carrierCode,p=Ey(o,{nationalNumber:u,metadata:r});return p&&(c=p,p==="001"||r.selectNumberingPlan(c)),{country:c,countryCallingCode:o,countryCallingCodeSource:i,nationalNumber:u,carrierCode:h}}function So(e){"@babel/helpers - typeof";return So=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},So(e)}function Mm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Fm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mm(Object(n),!0).forEach(function(r){o_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function o_(e,t,n){return(t=a_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a_(e){var t=l_(e,"string");return So(t)=="symbol"?t:t+""}function l_(e,t){if(So(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(So(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c_(e,t,n){return t_(e,Fm(Fm({},t),{},{v2:!0}),n)}function Eo(e){"@babel/helpers - typeof";return Eo=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},Eo(e)}function Um(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).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]:{};
vendor: 4,218 bytes, lines 330-331
330t%2?Um(Object(n),!0).forEach(function(r){u_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u_(e,t,n){return(t=h_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h_(e){var t=f_(e,"string");return Eo(t)=="symbol"?t:t+""}function f_(e,t){if(Eo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Eo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p_(e,t){return y_(e)||v_(e,t)||g_(e,t)||m_()}function m_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 331In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function g_(e,t){if(e){if(typeof e=="string")return Bm(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)?Bm(e,t):void 0}}function Bm(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 v_(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,s,i,o,l=[],c=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw s}}return l}}function y_(e){if(Array.isArray(e))return e}function Cy(e){var t=Array.prototype.slice.call(e),n=p_(t,4),r=n[0],s=n[1],i=n[2],o=n[3],l,c,d;if(typeof r=="string")l=r;else throw new TypeError("A text for parsing must be a string.");if(!s||typeof s=="string")o?(c=i,d=o):(c=void 0,d=i),s&&(c=d_({defaultCountry:s},c));else if(Is(s))i?(c=s,d=i):d=s;else throw new Error("Invalid second argument: ".concat(s));return{text:l,options:c,metadata:d}}function _o(e){"@babel/helpers - typeof";return _o=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},_o(e)}function zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function qm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zm(Object(n),!0).forEach(function(r){x_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x_(e,t,n){return(t=b_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b_(e){var t=w_(e,"string");return _o(t)=="symbol"?t:t+""}function w_(e,t){if(_o(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_o(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Py(e,t,n){t&&t.defaultCountry&&!kE(t.defaultCountry,n)&&(t=qm(qm({},t),{},{defaultCountry:void 0}));try{return c_(e,t,n)}catch(r){if(!(r instanceof un))throw r}}function $_(){var e=Cy(arguments),t=e.text,n=e.options,r=e.metadata;return Py(t,n,r)}function ko(e){"@babel/helpers - typeof";return ko=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},ko(e)}function Hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Wm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
331t%2?Hm(Object(n),!0).forEach(function(r){S_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S_(e,t,n){return(t=E_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E_(e){var t=__(e,"string");return ko(t)=="symbol"?t:t+""}function __(e,t){if(ko(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ko(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k_(){var e=Cy(arguments),t=e.text,n=e.options,r=e.metadata;n=Wm(Wm({},n),{},{extract:!1});var s=Py(t,n,r);return s&&s.isValid()||!1}function j_(){return by($_,arguments)}function N_(){return by(k_,arguments)}const C_=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,P_=new Set(["mailinator.com","tempmail.com","temp-mail.org","temp-mail.io","yopmail.com","yopmail.fr","guerrillamail.com","guerrillamail.info","10minutemail.com","10minutemail.net","trashmail.com","trashmail.net","dispostable.com","getnada.com","sharklasers.com","maildrop.cc","throwaway.email","mailnesia.com","fakeinbox.com","mintemail.com","mohmal.com","tempr.email","spamgourmet.com","mailcatch.com","inboxbear.com","emailondeck.com","mailsac.com","tempinbox.com","tmpmail.org","tmpmail.net","fake-mail.net","spam4.me","discard.email","getairmail.com","mytemp.email","tempmailaddress.com","minuteinbox.com","mailbox.in.ua","burnermail.io","wegwerfmail.de"]),Vm={"gmial.com":"gmail.com","gmal.com":"gmail.com","gmai.com":"gmail.com","gmail.con":"gmail.com","gmail.co":"gmail.com","gmail.cm":"gmail.com","gmaill.com":"gmail.com","gnail.com":"gmail.com","gemail.com":"gmail.com","hotmial.com":"hotmail.com","hotmai.com":"hotmail.com","hotmail.con":"hotmail.com","hotmail.co":"hotmail.com","hotmail.cm":"hotmail.com","hotnail.com":"hotmail.com","hormail.com":"hotmail.com","yaho.com":"yahoo.com","yahooo.com":"yahoo.com","yahoo.con":"yahoo.com","yahoo.co":"yahoo.com","outloo.com":"outlook.com","outlook.con":"outlook.com","outlok.com":"outlook.com","iclod.com":"icloud.com","icloud.con":"icloud.com","iclou.com":"icloud.com"};function T_(e){const t=e.trim().toLowerCase();if(!t)return{ok:!1,error:"El correo es obligatorio."};if(!C_.test(t))return{ok:!1,error:"Este correo no parece válido. RevÃsalo."};const[n,r]=t.split("@");if(n.length>=3&&/^(.)\1+$/.test(n))return{ok:!1,error:"Este correo no parece real. Usa tu correo personal."};if(/^(test|prueba|asdf|qwerty|fake|noreply|no-reply)$/i.test(n))return{ok:!1,error:"Necesitamos un correo real para enviarte la guÃa."};if(!r.includes("."))return{ok:!1,error:"El dominio del correo no es válido."};if(P_.has(r))return{ok:!1,error:"Necesitamos un correo real, no uno temporal."};if(Vm[r]){const s=`${n}@${Vm[r]}`;return{ok:!1,error:`¿Quisiste decir ${s}?`,suggestion:s}}return{ok:!0}}function A_(e,t,n,r=!1){const s=e.replace(/\D/g,"");if(!s)return r?{ok:!1,error:"El teléfono es obligatorio."}:{ok:!0};if(/^(\d)\1+$/.test(s))return{ok:!1,error:"Este número no parece real."};if(s==="123456789"||s==="1234567890"||s==="0123456789"||s==="987654321")return{ok:!1,error:"Este número no parece real."};try{if(!N_(s,t))return j_(s,t)?{ok:!1,error:`Este número no es válido en ${n}. RevÃsalo.`}:{ok:!1,error:`Este número no es válido en ${n}. RevÃsalo.`}}catch{return{ok:!1,error:`Este número no es válido en ${n}. RevÃsalo.`}}return{ok:!0}}const R_=({variant:e="light",id:t})=>{const n=xh(),[r,s]=w.useState(""),[i,o]=w.useState(""),[l,c]=w.useState(""),[d,u]=w.useState(xy[0]),[h,p]=w.useState(!1),[f,x]=w.useState(""),[v,b]=w.useState(""),[g,m]=w.useState(!1),[y,$]=w.useState(""),[S,E]=w.useState(!1),[_,P]=w.useState(""),[A,O]=w.useState(!1),[W,F]=w.useState(!1),Y=w.useCallback(()=>(O(!0),r.trim()?(x(""),!0):(x("Cuéntanos cómo te llamas."),!1)),[r]),L=w.useCallback(()=>{F(!0);const z=T_(i);return z.ok===!1?(b(z.error),m(!1),!1):(b(""),m(!0),!0)},[i]),J=w.useCallback(()=>{const z=A_(l,d.code,d.name,!0);return z.ok===!1?($(z.error),E(!1),!1):($(""),E(!!l),!0)},[l,d]),K=async z=>{z.preventDefault();const q=Y(),C=L(),I=J();if(!q||!C||!I)return;p(!0),P("");const ee=l?`${d.dialCode}${l.replace(/\D/g,"")}`:"";await hE({firstName:r.trim(),email:i.trim().toLowerCase(),phone:ee})?n("/gracias-guia"):(P("Hubo un problema. Inténtalo de nuevo."),p(!1))},G=e==="inverted",k=G?"bg-white/15 border-white/30 text-white placeholder:text-white/60":"bg-white border-ov-border text-ov-text placeholder:text-ov-text-soft",N=(z,q,C)=>z&&C?"border-ov-red":q&&C?"border-ov-green":"",D=G?"text-white":"text-ov-red";return a.jsxs("form",{onSubmit:K,id:t,className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("input",{type:"text",value:r,onChange:z=>s(z.target.value),onBlur:Y,placeholder:"¿Cómo te llamas?",className:`w-full px-4 py-3 rounded-lg border font-body text-sm transition-all outline-none focus:border-lila focus:shadow-[0_0_0_3px_rgba(124,92,191,0.1)] ${k} ${N(f,!!r.trim(),A)}`}),f&&A&&a.jsx("p",{className:`text-xs mt-1 font-body ${D}`,children:f})]}),a.jsxs("div",{className:"relative",children:[a.jsx("input",{type:"email",value:i,onChange:z=>o(z.target.value),onBlur:L,placeholder:"Tu correo electrónico",className:`w-full px-4 py-3 rounded-lg border font-body text-sm transition-all outline-none focus:border-lila focus:shadow-[0_0_0_3px_rgba(124,92,191,0.1)] ${k} ${N(v,g,W)}`}),g&&W&&a.jsx("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-ov-green",children:"â"}),v&&W&&a.jsx("p",{className:`text-xs mt-1 font-body ${D}`,children:v})]}),a.jsx(uE,{phone:l,setPhone:c,selectedCountry:d,setSelectedCountry:u,error:y,valid:S,onBlur:J,variant:e}),a.jsx("button",{type:"submit",disabled:h,className:`w-full py-4 rounded-lg font-body font-semibold text-sm transition-all ${G?"bg-white text-lila hover:bg-lila-pale":"bg-lila text-white hover:bg-[#6a4aab] shadow-[0_4px_20px_rgba(124,92,191,0.25)]"} ${h?"opacity-80 pointer-events-none":"hover:-translate-y-[1px]"}`,children:h?a.jsxs("span",{className:"flex items-center justify-center gap-2",children:[a.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[a.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),a.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Enviando..."]}):"Quiero mi guÃa gratuita â"}),_&&a.jsx("p",{className:`text-xs text-center font-body ${D}`,children:_}),a.jsxs("p",{className:`text-xs text-center font-body ${G?"text-white/60":"text-ov-text-soft"}`,children:["ð ",G?"Privado. Gratuito. Sin spam.":"Tus datos son privados. Nunca los compartimos ni vendemos. Normativa europea RGPD."]})]})},O_=()=>a.jsx("section",{id:"form-final",className:"bg-lila py-16 md:py-24",children:a.jsxs("div",{className:"max-w-xl mx-auto px-4 text-center",children:[a.jsx("div",{className:"max-w-[640px] mx-auto pt-0 pb-10 md:pb-14",children:a.jsx("h2",{className:"font-display text-xl sm:text-2xl md:text-3xl font-semibold text-[#1C1024] leading-tight",children:"Cada ciclo que pasa sin registrar es un ciclo que Luna no puede aprender."})}),a.jsx("p",{className:"font-body text-base text-white/80 mb-4",children:"Y cada ciclo que aprende, el patrón se vuelve más claro."}),a.jsx("p",{className:"font-body text-base text-white/80 mb-10",children:"3 minutos al dÃa. La guÃa es gratuita. Acceso anticipado incluido. Creada por un médico que lleva 15 años escuchando lo que el sistema no escucha."}),a.jsx("div",{className:"max-w-[440px] mx-auto",children:a.jsx(R_,{variant:"inverted"})})]})}),Uo=()=>a.jsx("footer",{className:"bg-navy py-12",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[a.jsxs("p",{className:"font-body text-sm text-white/50 mb-3",children:[a.jsxs("span",{className:"font-display text-base",children:[a.jsx("span",{className:"text-white/70",children:"ovulación"}),a.jsx("span",{className:"text-lila-mid",children:".ai"})]})," ","â Powered by PraxisPulse · Instituto del Dolor"]}),a.jsxs("div",{className:"flex flex-wrap justify-center gap-x-5 gap-y-2 mb-6",children:[a.jsx("a",{href:"#",className:"font-body text-[13px] text-white/40 hover:text-white/70 transition-colors",children:"Privacidad"}),a.jsx("a",{href:"#",className:"font-body text-[13px] text-white/40 hover:text-white/70 transition-colors",children:"Términos"}),a.jsx(As,{to:"/para-profesionales",className:"font-body text-[13px] text-white/40 hover:text-white/70 transition-colors",children:"Para profesionales"}),a.jsx("a",{href:"#",className:"font-body text-[13px] text-white/40 hover:text-white/70 transition-colors",children:"Contacto"})]}),a.jsx("p",{className:"font-body text-xs text-white/40 mb-2",children:"© 2026 ovulación.ai · Herramienta de lectura clÃnica del ciclo menstrual."}),a.jsx("p",{className:"font-body text-xs text-white/40 mb-6",children:"No sustituye el criterio médico profesional. No es un método anticonceptivo."}),a.jsx("p",{className:"font-display italic text-sm text-lila-mid",children:"Nadie sola entre consultas."})]})}),L_=()=>null,I_=()=>{const{pathname:e}=fr(),[t,n]=w.useState(!1),[r,s]=w.useState(!1);if(w.useEffect(()=>{const l=()=>n(window.scrollY>600);return l(),window.addEventListener("scroll",l,{passive:!0}),()=>window.removeEventListener("scroll",l)},[]),w.useEffect(()=>{const l=document.getElementById("form-final");if(!l)return;
331const c=new IntersectionObserver(([d])=>s(d.isIntersecting),{threshold:.05});return c.observe(l),()=>c.disconnect()},[]),e==="/para-profesionales")return null;const i=t&&!r,o=()=>{var l;(l=document.getElementById("form-final"))==null||l.scrollIntoView({behavior:"smooth",block:"center"})};return a.jsx("div",{className:`md:hidden fixed bottom-0 left-0 right-0 z-50 bg-white border-t border-lila-pale p-4 shadow-[0_-4px_16px_rgba(0,0,0,0.08)] transition-transform duration-300 ${i?"translate-y-0":"translate-y-full"}`,"aria-hidden":!i,children:a.jsx("button",{onClick:o,className:"w-full bg-lila text-white py-3 rounded-xl font-body font-semibold",children:"Quiero entender mi ciclo â"})})},D_=()=>a.jsxs(a.Fragment,{children:[a.jsx(m8,{}),a.jsx(Mo,{}),a.jsx(_8,{}),a.jsx(j8,{}),a.jsx(R8,{}),a.jsx(L8,{}),a.jsx(C8,{}),a.jsx(T8,{}),a.jsx(B8,{}),a.jsx(H8,{}),a.jsx(q8,{}),a.jsx(V8,{}),a.jsx(J8,{}),a.jsx(Y8,{}),a.jsx(Z8,{}),a.jsx(t6,{}),a.jsx(r6,{}),a.jsx(i6,{}),a.jsx(c6,{}),a.jsx(cE,{}),a.jsx(O_,{}),a.jsx(Uo,{}),a.jsx(L_,{}),a.jsx(I_,{})]}),M_="https://chat.whatsapp.com/EJT7BWRooHH2MLq0KbBWOG",F_=()=>a.jsxs(a.Fragment,{children:[a.jsx(Mo,{}),a.jsxs("main",{className:"bg-lila-pale",children:[a.jsxs("div",{className:"max-w-[640px] mx-auto px-6 pt-16 pb-12 md:pt-20",children:[a.jsxs("div",{className:"text-center mb-16",children:[a.jsx("span",{className:"inline-block font-body text-xs font-semibold uppercase tracking-wider px-3 py-1.5 rounded-full mb-6 border",style:{background:"rgba(16,185,129,0.1)",borderColor:"rgba(16,185,129,0.3)",color:"#059669",letterSpacing:"1px"},children:"â Pago confirmado"}),a.jsx("h1",{className:"font-display text-3xl md:text-5xl font-semibold text-ov-text mb-5 leading-tight",children:"Listo. Estás dentro."}),a.jsx("p",{className:"font-body text-base md:text-lg text-ov-text-mid leading-relaxed max-w-[520px] mx-auto",children:"Tu acceso a ovulación.ai está activo. Esto es lo que sigue â en los próximos minutos y en los próximos 30 dÃas."})]}),a.jsxs("section",{className:"mb-16",children:[a.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-[1.5px] text-lila mb-2",children:"Empezar hoy"}),a.jsx("h2",{className:"font-display text-2xl md:text-3xl font-semibold text-ov-text mb-10 leading-tight",children:"Tres cosas, en este orden."}),a.jsxs("div",{className:"flex gap-5 pb-10 mb-10 border-b border-ov-border",children:[a.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-full bg-lila-soft text-lila font-display font-semibold flex items-center justify-center",children:"1"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-body text-lg font-semibold text-ov-text mb-3",children:"Tu acceso está en camino"}),a.jsxs("p",{className:"font-body text-[0.95rem] text-ov-text-mid leading-relaxed mb-4",children:["En los próximos 5 minutos te llega un correo desde"," ",a.jsx("span",{className:"bg-lila-soft px-1.5 py-0.5 rounded text-lila font-medium break-all",children:"[email protected]"})," ","con tu enlace de acceso (un magic link, no necesitas crear contraseña). Clic al botón del correo y entras directo a tu cuenta."]}),a.jsxs("div",{className:"bg-[#fff7ed] border border-[#fed7aa] text-[#9a3412] rounded-lg p-4 mb-6 font-body text-sm leading-relaxed",children:[a.jsx("strong",{className:"font-semibold",children:"Revisa la carpeta de spam si no aparece en bandeja."})," ","La primera vez es común que aterrice ahà â marca"," ",a.jsx("span",{className:"font-semibold break-all",children:"[email protected]"})," ","como remitente confiable y los siguientes correos te llegarán normales."]}),a.jsx("a",{href:"https://vita.praxispulse.io/ciclo/empezar",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 border border-lila text-lila hover:bg-lila-soft px-5 py-3 rounded-lg font-body font-semibold transition-colors",children:"Entrar a ovulación.ai â"}),a.jsx("p",{className:"text-xs text-ov-text-mid mt-2",children:"Para entrar manualmente si no recibes el correo en 5 minutos."})]})]}),a.jsxs("div",{className:"flex gap-5 pb-10 mb-10 border-b border-ov-border",children:[a.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-full bg-lila-soft text-lila font-display font-semibold flex items-center justify-center",children:"2"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-body text-lg font-semibold text-ov
331-text mb-3",children:"Lo que vas a anotar cada dÃa"}),a.jsx("p",{className:"font-body text-[0.95rem] text-ov-text-mid leading-relaxed mb-4",children:"Luna no acompaña un solo dato. Acompaña tres, y los lee en conjunto. Tu primera conversación con Luna define cuáles priorizar según lo que te trajo aquÃ."}),a.jsxs("ul",{className:"space-y-2 mb-4",children:[a.jsxs("li",{className:"flex gap-2 items-start font-body text-[0.95rem] text-ov-text",children:[a.jsx(Nr,{className:"w-4 h-4 text-lila flex-shrink-0 mt-1"}),a.jsx("span",{children:"Temperatura basal (necesitas un termómetro de 2 decimales â los hay en farmacias por 8-12â¬)"})]}),a.jsxs("li",{className:"flex gap-2 items-start font-body text-[0.95rem] text-ov-text",children:[a.jsx(Nr,{className:"w-4 h-4 text-lila flex-shrink-0 mt-1"}),a.jsx("span",{children:"CaracterÃsticas del moco cervical"})]}),a.jsxs("li",{className:"flex gap-2 items-start font-body text-[0.95rem] text-ov-text",children:[a.jsx(Nr,{className:"w-4 h-4 text-lila flex-shrink-0 mt-1"}),a.jsx("span",{children:"SÃntomas fÃsicos y emocionales del dÃa"})]})]}),a.jsx("p",{className:"font-body text-[0.95rem] text-ov-text-mid italic",children:"Menos de 3 minutos al dÃa. Lo demás lo trabaja Luna."})]})]}),a.jsxs("div",{className:"flex gap-5",children:[a.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-full bg-lila-soft text-lila font-display font-semibold flex items-center justify-center",children:"3"}),a.jsxs("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"font-body text-lg font-semibold text-ov-text mb-3",children:"Lo que viene en los próximos 30 dÃas"}),a.jsx("p",{className:"font-body text-[0.95rem] text-ov-text-mid leading-relaxed mb-6",children:"El ciclo no se entiende en una semana. Por eso ovulación.ai está construido para los próximos 30 dÃas, no para mañana."}),a.jsxs("ol",{className:"space-y-4 border-l-2 border-lila/20 pl-5",children:[a.jsxs("li",{children:[a.jsx("p",{className:"font-display italic text-sm text-lila mb-1",children:"DÃa 1 â HOY"}),a.jsx("p",{className:"font-semibold text-ov-text",children:"Acceso + primera conversación con Luna"})]}),a.jsxs("li",{children:[a.jsx("p",{className:"font-display italic text-sm text-lila mb-1",children:"DÃa 7"}),a.jsx("p",{className:"font-semibold text-ov-text mb-0.5",children:"Empieza a verse tu primer patrón"}),a.jsx("p",{className:"text-sm text-ov-text-mid",children:"Luna empieza a leer tendencias en tus datos."})]}),a.jsxs("li",{children:[a.jsx("p",{className:"font-display italic text-sm text-lila mb-1",children:"DÃa 14"}),a.jsx("p",{className:"font-semibold text-ov-text",children:"Acceso al canal de Avisos del Dr. Mujica"})]}),a.jsxs("li",{children:[a.jsx("p",{className:"font-display italic text-sm text-lila mb-1",children:"DÃa 30"}),a.jsx("p",{className:"font-semibold text-ov-text mb-0.5",children:"Tu primer informe mensual completo"}),a.jsx("p",{className:"text-sm text-ov-text-mid",children:"El que llevas a tu médico."})]})]})]})]})]}),a.jsxs("section",{className:"bg-lila-pale border border-lila/30 rounded-2xl p-8 md:p-10 mb-12",children:[a.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-wider text-lila mb-3",children:"PRECIO FUNDADORA · BLOQUEADO DE POR VIDA"}),a.jsx("h3",{className:"font-display text-2xl md:text-3xl font-semibold text-navy mb-4 leading-tight",children:"El precio que pagaste hoy es el que pagas siempre."}),a.jsx("p",{className:"font-body text-ov-text leading-relaxed mb-3",children:"Mientras mantengas tu suscripción activa, ovulación.ai conserva tu condición de fundadora â aunque el precio público suba a $19.99/mes o $239.88/año."}),a.jsx("p",{className:"font-body text-ov-text font-semibold leading-relaxed",children:"No es un descuento temporal. Es tu precio, tu tarifa, tu condición."})]}),a.jsxs("section",{className:"bg-white border border-ov-border rounded-2xl p-8 mb-12",children:[a.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-wider text-lila mb-3",children:"AVISOS · ACCESO INCLUIDO"}),a.jsx("h3",{className:"font-display text-2xl font-semibold text-navy mb-4 leading-tight",children:"Lo importante te llega por aquÃ."}
331),a.jsx("p",{className:"font-body text-ov-text-mid leading-relaxed mb-6",children:"Material clÃnico breve del Dr. Mujica, fechas de las Q&A trimestrales en vivo y novedades del producto. El canal donde aterriza lo que vale la pena saber â sin ruido, sin spam."}),a.jsxs("a",{href:"https://chat.whatsapp.com/EJT7BWRooHH2MLq0KbBWOG",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-lila hover:bg-[#6a4aab] text-white font-body font-semibold px-6 py-3 rounded-lg transition-colors mb-3",children:[a.jsx(I$,{className:"w-5 h-5"}),"Entrar al canal de Avisos â"]}),a.jsxs("p",{className:"text-xs text-ov-text-mid",children:[a.jsx("a",{href:M_,className:"hidden","aria-hidden":"true",tabIndex:-1,children:"ref"}),"Acceso permanente mientras mantengas tu suscripción."]})]}),a.jsxs("p",{className:"font-body text-sm text-ov-text-mid text-center mb-8 leading-relaxed",children:["Si tienes cualquier duda con tu acceso, escrÃbenos a"," ",a.jsx("span",{className:"font-semibold text-ov-text",children:"[email protected]"})," ","y respondemos en menos de 24h."]})]}),a.jsx("div",{className:"bg-lila-soft py-8 px-6 text-center",children:a.jsx("p",{className:"font-display italic text-2xl md:text-3xl text-lila tracking-wide",children:"Nadie sola entre consultas."})})]}),a.jsx(Uo,{})]}),U_=["Por qué el termómetro basal importa â y cuál necesitas realmente","La fase lútea explicada paso a paso â el secreto de tu ventana fértil","Ciclos irregulares: los rangos reales y cuándo consultar","PCOS y endometriosis: cómo afectan a tu temperatura y tu ciclo","Cómo llegar a tu próxima consulta con datos que tu médico pueda usar"],B_=()=>a.jsxs(a.Fragment,{children:[a.jsx(Mo,{}),a.jsx("section",{className:"bg-lila-pale py-16 md:py-20",children:a.jsxs("div",{className:"max-w-2xl mx-auto px-4 text-center",children:[a.jsx("span",{className:"inline-block bg-lila-soft text-lila font-body text-sm font-medium px-4 py-1.5 rounded-full mb-6",children:"Ya estás dentro ð"}),a.jsxs("h1",{className:"font-display text-3xl md:text-4xl font-bold text-ov-text mb-4",children:["Tu guÃa está lista.",a.jsx("br",{}),a.jsx("span",{className:"italic text-lila",children:"Nadie sola entre consultas."})]}),a.jsx("p",{className:"font-body text-base text-ov-text-mid",children:"Tu GuÃa ClÃnica del Ciclo Menstrual está lista para descargar. Descárgala ahora y da el primer paso para entender lo que tu cuerpo lleva meses diciéndote."})]})}),a.jsx("section",{className:"bg-white py-12",children:a.jsxs("div",{className:"max-w-3xl mx-auto px-4 grid grid-cols-1 md:grid-cols-2 gap-5",children:[a.jsxs("div",{className:"border-2 border-lila rounded-2xl p-7 text-center",children:[a.jsx("span",{className:"text-4xl",children:"ð"}),a.jsx("h3",{className:"font-display text-lg font-bold text-ov-text mt-3",children:"Descarga tu GuÃa del Ciclo"}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid mt-2",children:"Lo que la consulta no tuvo tiempo de explicarte: temperatura basal, fase lútea, SOP, endometriosis y cómo llevar tus datos a consulta. PDF listo para guardar."}),a.jsx("a",{href:"/guia-clinica-ciclo-menstrual.pdf",download:!0,target:"_blank",rel:"noopener noreferrer",className:"inline-block w-full bg-lila text-white font-body font-semibold py-3 rounded-lg mt-4 hover:bg-[#6a4aab] transition-colors text-sm",children:"Descargar GuÃa Gratis â"}),a.jsx("p",{className:"font-body text-xs text-ov-text-soft mt-2",children:"PDF · Descarga inmediata"})]}),a.jsxs("div",{className:"border border-ov-border rounded-2xl p-7 text-center",children:[a.jsx("span",{className:"text-4xl",children:"ð¬"}),a.jsx("h3",{className:"font-display text-lg font-bold text-ov-text mt-3",children:"Ãnete a la comunidad"}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid mt-2",children:"Grupo privado donde compartimos consejos sobre ciclo menstrual, fertilidad y cómo leer los datos de temperatura. Solo para mujeres registradas en ovulación.ai."}),a.jsx("a",{href:"https://chat.whatsapp.com/EJT7BWRooHH2MLq0KbBWOG",target:"_blank",rel:"noopener noreferrer",className:"inline-block w-full bg-[#25D366] text-white font-body font-semibold py-3 rounded-lg mt-4 hover:bg-[#1da851] transition-colors text-sm",children:"Unirme al grupo â"}
331),a.jsx("p",{className:"font-body text-xs text-ov-text-soft mt-2",children:"Grupo privado · Solo miembros registradas"})]})]})}),a.jsx("section",{className:"bg-ov-bg py-12",children:a.jsxs("div",{className:"max-w-[580px] mx-auto px-4",children:[a.jsx("h3",{className:"font-display text-xl font-bold text-ov-text mb-5",children:"Dentro de tu guÃa"}),a.jsx("ul",{className:"space-y-3",children:U_.map(e=>a.jsxs("li",{className:"font-body text-sm text-ov-text flex gap-2",children:[a.jsx("span",{className:"text-lila flex-shrink-0",children:"â"}),e]},e))})]})}),a.jsx("section",{className:"bg-white py-12",children:a.jsx("div",{className:"max-w-[580px] mx-auto px-4",children:a.jsxs("div",{className:"bg-lila text-white rounded-2xl p-8",children:[a.jsx("p",{className:"font-body text-base font-bold",children:"La guÃa es el primer paso. ovulación.ai es el sistema completo."}),a.jsx("p",{className:"font-body text-sm mt-3 opacity-90",children:"Eres una de las primeras 50 mujeres en la lista. Cuando lancemos, tendrás acceso antes que nadie â a $9.99/mes, precio garantizado para siempre."}),a.jsx("p",{className:"font-body text-xs mt-4 opacity-70",children:"Te avisaremos por email. Revisa tu bandeja de entrada (y el spam, por si acaso)."})]})})}),a.jsx("div",{className:"text-center py-8",children:a.jsx(As,{to:"/",className:"font-body text-sm text-lila hover:underline",children:"â Volver a la página principal"})}),a.jsx(Uo,{})]}),Ty=()=>a.jsx("div",{className:"bg-lila py-2 px-3 text-center",children:a.jsx("p",{className:"text-white text-xs sm:text-sm font-body",children:"Para profesionales â ovulación.ai"})}),z_=()=>{var e;(e=document.querySelector("#pro-form"))==null||e.scrollIntoView({behavior:"smooth",block:"start"})},q_=()=>a.jsx("section",{className:"bg-ov-bg pt-12 md:pt-20 pb-16 md:pb-24",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[a.jsx("span",{className:"inline-block font-body text-xs font-semibold uppercase tracking-wider mb-4 px-3 py-1 rounded-full bg-lila-pale text-lila",children:"Para internistas, ginecólogos, endocrinólogos, psiquiatras y atención primaria"}),a.jsx("h1",{className:"font-display font-bold text-ov-text leading-tight text-[28px] sm:text-[32px] md:text-[44px] lg:text-[56px] mb-6",children:"El ciclo menstrual genera datos clÃnicos cada mes. Cada mes la paciente los pierde. Cada consulta empieza sin ellos."}),a.jsx("p",{className:"font-body text-base md:text-[18px] lg:text-[20px] leading-relaxed text-ov-text-mid",children:"Dolor cÃclico, sÃntomas premenstruales severos, anovulación, dispareunia, variabilidad del ciclo, cambios vasomotores. SÃntomas que la paciente arrastra durante meses â y que llegan a consulta como relato retrospectivo: fragmentado, incompleto, condicionado por la memoria del dÃa."}),a.jsx("p",{className:"font-body text-base md:text-[18px] lg:text-[20px] leading-relaxed font-semibold text-navy mt-4",children:"ovulación.ai convierte ese relato en registro prospectivo longitudinal: temperatura basal, moco cervical, sÃntomas anclados al dÃa del ciclo y dinámica menstrual integrados en un informe clÃnico legible. No diagnostica. Ordena el fenotipo cÃclico para que la decisión clÃnica se apoye en datos longitudinales, no en el relato del último mes."}),a.jsxs("div",{className:"mt-8 md:mt-10",children:[a.jsx("button",{onClick:z_,className:"w-full sm:w-auto bg-lila text-white font-body font-semibold px-8 py-4 rounded-lg shadow-[0_4px_20px_rgba(124,92,191,0.25)] hover:bg-[#6a4aab] hover:-translate-y-[1px] transition-all text-sm md:text-base",children:"Acceder al white paper técnico â"}),a.jsx("p",{className:"font-body text-xs text-ov-text-soft mt-3",children:"PDF · 8 páginas · Fenotipado prospectivo del ciclo menstrual · Acceso gratuito para profesionales sanitarios"})]})]})}),H_=[{title:"Recall retrospectivo en consulta",desc:"La paciente reconstruye verbalmente lo que recuerda de los últimos ciclos. Sesgo de memoria masivo. Distorsión emocional dependiente del estado anÃmico del dÃa. Calidad clÃnica del dato: baja a muy baja.",note:"Estudios sobre recall menstrual muestran tasas de error del 30-50% en eventos a más de 4 semanas vista."},{title:"AnalÃticas hormonales en dÃa especÃfico",desc:"Una foto de un sistema dinámico. FSH en dÃa 3, progesterona en dÃa 21. Las hormonas reproductivas son ondas, no niveles estáticos. Un valor aislado pierde la dinámica del eje hipotálamo-hipófiso-ovárico que define el fenotipo real de la paciente.",note:"La variabilidad intra-ciclo de la progesterona puede superar 10-15 ng/ml. Un solo punto temporal rara vez captura el patrón."}
331,{title:"Apps de calendario y registro básico",desc:"Inicio y fin de regla. Quizá un emoji de estado anÃmico. Sin temperatura basal estructurada, sin moco cervical interpretado, sin sÃntomas anclados al dÃa del ciclo. Datos pobres que no soportan decisión clÃnica.",note:"Más del 80% de apps menstruales del mercado registran solo evento menstrual y predicción algorÃtmica genérica."}],W_=()=>a.jsx("section",{className:"bg-white py-16 md:py-24",children:a.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[a.jsx(be,{label:"El estado del arte",title:"Tres modalidades. Tres limitaciones.",body:"Asà trata hoy la medicina el ciclo menstrual. Y por qué falta una cuarta modalidad que ninguna especialidad cubre.",centered:!0}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mt-8",children:H_.map(e=>a.jsxs("div",{className:"bg-ov-bg border border-ov-border rounded-2xl p-6 md:p-7 flex flex-col",children:[a.jsx("h3",{className:"font-display text-lg md:text-xl font-bold text-ov-text mb-3",children:e.title}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid leading-relaxed mb-4",children:e.desc}),a.jsx("p",{className:"font-body text-xs text-lila italic mt-auto pt-3 border-t border-ov-border",children:e.note})]},e.title))}),a.jsx("p",{className:"font-display italic text-center text-ov-text-mid text-base md:text-lg mt-12 max-w-3xl mx-auto leading-relaxed",children:"Falta una cuarta modalidad: caracterización longitudinal multidimensional del ciclo con interpretación clÃnica conversacional. Eso no existe en ningún canal sanitario formal â y eso es lo que ovulación.ai construye."})]})}),V_=[{Icon:H$,title:"Temperatura basal corporal (TBC)",desc:"Biomarcador indirecto de progesterona postovulatoria. El shift bifásico de 0.2-0.5°C ocurre 24-48h después del pico de LH por efecto termogénico de la progesterona sobre el hipotálamo. Capturado en alta resolución (0.01°C) y anclado al dÃa del ciclo."},{Icon:T$,title:"Moco cervical",desc:"Biomarcador indirecto de estradiol periovulatorio. El cambio de espeso/escaso a clara de huevo/abundante refleja el pico estrogénico folicular tardÃo. Registro estructurado por consistencia, cantidad y elasticidad."},{Icon:b$,title:"SÃntomas anclados al dÃa del ciclo",desc:"Mapa fenomenológico longitudinal. Dolor pélvico, cefalea, fatiga, irritabilidad, cambios de ánimo, dispareunia, disquecia, disuria. Cada sÃntoma con intensidad cuantificada y temporalmente posicionado en el ciclo."}
331,{Icon:w$,title:"Longitud, regularidad y estabilidad del ciclo",desc:"Variabilidad intra-paciente del ciclo a lo largo de meses. Estabilidad de la fase lútea. Anovulación intermitente. Patrones que orientan diagnóstico de sÃndromes reproductivos, metabólicos y de transición hormonal."}],G_=()=>a.jsx("section",{className:"bg-ov-bg py-16 md:py-24",children:a.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[a.jsx(be,{label:"Datos crudos",title:"Cuatro variables. Capturadas diariamente. Interpretadas longitudinalmente.",body:"El producto no es la app. El producto es el fenotipo cÃclico de la paciente entregado al clÃnico en alta resolución.",centered:!0}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-8",children:V_.map(({Icon:e,title:t,desc:n})=>a.jsxs("div",{className:"bg-white border border-ov-border rounded-2xl p-6 md:p-7",children:[a.jsx("div",{className:"w-10 h-10 rounded-lg bg-lila-pale flex items-center justify-center mb-4",children:a.jsx(e,{className:"w-5 h-5 text-lila",strokeWidth:1.8})}),a.jsx("h3",{className:"font-display text-lg md:text-xl font-bold text-ov-text mb-3",children:t}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid leading-relaxed",children:n})]},t))}),a.jsx("p",{className:"font-display italic text-center text-ov-text-mid text-base md:text-lg mt-12 max-w-3xl mx-auto leading-relaxed",children:"Estas cuatro variables, vistas en tiempo longitudinal, son fenotipado prospectivo longitudinal del ciclo menstrual â el marco técnico que la investigación clÃnica usa para caracterización multidimensional prospectiva. Esa caracterización es lo que la consulta clÃnica habitual no genera."})]})}),Gm=[{title:"Endometriosis",patterns:["Insuficiencia lútea funcional (fase lútea <10 dÃas, caÃda temprana de TBC)","Spotting premenstrual consistente dÃas -3 a -5","Dolor pélvico cÃclico mapeado con escalada progresiva ciclo a ciclo","SÃntomas asociados anclados temporalmente: dispareunia, disquecia, disuria, dismenorrea con curva de intensidad"],value:'La paciente llega a consulta con un mapa objetivo de 6-8 ciclos: dolor pélvico dÃas -5 a +3, dispareunia desde dÃa -7, fase lútea de 9 dÃas, spotting marrón dÃas -3 a -1. Este patrón cambia la sospecha clÃnica de "esperar y ver" a indicar ecografÃa transvaginal con preparación intestinal y derivación a unidad de endometriosis. Reduce significativamente el retraso diagnóstico medio de 8-12 años documentado en literatura europea.'},{title:"Trastorno disfórico premenstrual (PMDD) y SPM severo",patterns:["Registro prospectivo diario de sÃntomas según criterios DSM-5 / DRSP","Patrón cÃclico caracterÃstico fase lútea-folicular","Severidad cuantificada y temporalmente confinada a fase lútea","Disociación clara entre fase folicular asintomática y fase lútea sintomática"],value:"Los criterios diagnósticos formales de PMDD según DSM-5 exigen registro prospectivo de sÃntomas durante al menos 2 ciclos consecutivos. La APA y la ACOG recomiendan instrumentos como el DRSP. Sin registro prospectivo no hay diagnóstico formal â solo provisional. ovulación.ai genera ese registro estructurado de manera natural. La paciente llega con el instrumento que ningún psiquiatra ni ginecólogo le pide."},{title:"SÃndrome de ovario poliquÃstico (SOP)",patterns:["Anovulación crónica documentada (TBC monofásica durante meses consecutivos)","Oligoovulación: ovulación intermitente entre ciclos","Disociación entre sangrado y ovulación: sangrado por deprivación sin ovulación previa","Patrón de moco cervical anormal: estrógeno persistentemente elevado sin pico claro"],value:"SOP es sÃndrome metabólico-endocrino, no problema reproductivo aislado. El registro longitudinal de TBC + moco + sÃntomas permite distinguir anovulación crónica de oligoovulación, identificar disociación entre sangrado y ovulación que la paciente tÃpicamente confunde, y orientar manejo de fenotipos clÃnicos de SOP â tarea que rara vez se completa en consultas endocrinológicas estándar."},{title:"Perimenopausia",patterns:["Acortamiento de fase folicular (ciclos más cortos al inicio de transición)","Anovulación intermitente (ciclos sin shift bifásico)","Variabilidad creciente del ciclo (rangos de 22 a 45 dÃas)","Aparición de sÃntomas vasomotores mapeados al ciclo"],value:"Los criterios STRAW+10 clasifican el envejecimiento reproductivo por variabilidad de ciclo, FSH y patrones menstruales. ovulación.ai captura dos de los tres marcadores directamente. Una paciente de 42 años con 6 ciclos registrados llega con el patrón objetivo que justifica analÃtica hormonal en momentos correctos del ciclo, reduciendo años de gaslighting clÃnico a una conversación con datos."},{title:"Dismenorrea severa y diagnóstico diferencial",patterns:["Diferenciación entre dismenorrea primaria (idiopática, ciclos ovulatorios) y secundaria (con patologÃa subyacente)","Severidad cuantificada longitudinalmente â criterio para escalada terapéutica","Patrón de dolor pre-/intra-/post-menstrual mapeado al dÃa del ciclo",'Documentación que valida el dolor frente al "es normal"'],value:"La diferenciación entre dismenorrea primaria y secundaria â esta última asociada a endometriosis, adenomiosis o miomatosis â requiere registro prospectivo de intensidad y patrón. ovulación.ai genera ese registro y lo entrega al clÃnico para escalada diagnóstica fundamentada, no por presunción."}],K_=()=>a.jsx("section",{className:"bg-white py-16 md:py-24",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[a.jsx(be,{label:"Aplicaciones clÃnicas",title:"Qué patrones emergen del registro prospectivo. Por condición.",body:"ovulación.ai no diagnostica. El fenotipado prospectivo longitudinal captura el patrón cÃclico caracterÃstico de cada condición y lo entrega al clÃnico para que él diagnostique con datos que la consulta habitual no produce.",centered:!0}),a.jsx("div",{className:"space-y-12 mt-8",children:Gm.map((e,t)=>a.jsxs("div",{className:`pb-12 ${t<Gm.length-1?"border-b border-ov-border":""}`,children:[a.jsx("h3",{className:"font-display text-xl md:text-2xl font-bold text-lila mb-5",children:e.title}),a.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-wider text-ov-text-soft mb-3",children:"Patrones detectables"}),a.jsx("ul",{className:"space-y-2 mb-6",children:e.patterns.map(n=>a.jsxs("li",{className:"flex gap-2.5 items-start",children:[a.jsx(_h,{className:"w-4 h-4 text-lila flex-shrink-0 mt-0.5",strokeWidth:2}),a.jsx("span",{className:"font-body text-sm text-ov-text-mid leading-relaxed",children:n})]},n))}),a.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-wider text-ov-text-soft mb-2",children:"Valor clÃnico para el clÃnico"}),a.jsx("p",{className:"font-body text-sm md:text-base text-ov-text leading-relaxed italic border-l-2 border-lila pl-4",children:e.value})]},e.title))})]})}),J_=["Herramienta de registro prospectivo estructurado del ciclo menstrual","Caracterización longitudinal multidimensional del fenotipo cÃclico","Instrumento de orientación clÃnica para el profesional sanitario","Soporte para conversación clÃnica entre paciente y médico"],Y_=["Dispositivo médico clase IIa según MDR europeo","Instrumento de diagnóstico clÃnico","Sustituto del criterio profesional médico","GarantÃa de resultados reproductivos o terapéuticos"],Q_=()=>a.jsx("section",{className:"bg-ov-bg py-16 md:py-24",children:a.jsxs("div",{className:"max-w-5xl mx-auto px-4",children:[a.jsx(be,{label:"Posicionamiento regulatorio",t
331itle:"Lo que ovulación.ai es. Y lo que no es.",centered:!0}),a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 mt-8",children:[a.jsxs("div",{className:"bg-white border border-ov-border rounded-2xl p-6 md:p-8",children:[a.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-wider text-lila mb-5",children:"Es"}),a.jsx("ul",{className:"space-y-3.5",children:J_.map(e=>a.jsxs("li",{className:"flex gap-3 items-start",children:[a.jsx(_h,{className:"w-5 h-5 text-lila flex-shrink-0 mt-0.5",strokeWidth:2}),a.jsx("span",{className:"font-body text-sm md:text-base text-ov-text leading-relaxed",children:e})]},e))})]}),a.jsxs("div",{className:"bg-white border border-ov-border rounded-2xl p-6 md:p-8",children:[a.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-wider text-ov-text-soft mb-5",children:"No es"}),a.jsx("ul",{className:"space-y-3.5",children:Y_.map(e=>a.jsxs("li",{className:"flex gap-3 items-start",children:[a.jsx(j$,{className:"w-5 h-5 text-ov-text-soft flex-shrink-0 mt-0.5",strokeWidth:2}),a.jsx("span",{className:"font-body text-sm md:text-base text-ov-text-mid leading-relaxed",children:e})]},e))})]})]}),a.jsx("div",{className:"mt-10 bg-lila-pale rounded-2xl p-6 md:p-8",children:a.jsx("p",{className:"font-display italic text-center text-ov-text text-base md:text-lg leading-relaxed",children:"ovulación.ai captura el fenotipo cÃclico de la mujer en alta resolución y lo entrega al médico para que él diagnostique mejor. El producto no diagnostica â fenotipa. Esa distinción es regulatoria, clÃnica y filosófica al mismo tiempo."})})]})}),X_=[{Icon:fv,title:"Recomendación clÃnica a paciente",desc:"Sospecha de PMDD, endometriosis, SOP o perimenopausia. La paciente registra prospectivamente 2-6 ciclos. Llega a la siguiente consulta con un informe estructurado del fenotipo cÃclico â no con su recall de memoria."},{Icon:hv,title:"Seguimiento estructurado post-diagnóstico",desc:"Paciente con diagnóstico ya establecido (SOP, endometriosis, perimenopausia) que requiere monitorización longitudinal. ovulación.ai sustituye el cuaderno de papel que la paciente nunca completa por un registro estructurado y consultable."},{Icon:E$,title:"Documentación previa a derivación",desc:"Atención primaria que evalúa derivar a ginecologÃa, endocrinologÃa o psiquiatrÃa. El informe de 30-60 dÃas reduce la consulta de derivación a una conversación con datos, no con sospechas."}],Z_=()=>a.jsx("section",{className:"bg-white py-16 md:py-24",children:a.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[a.jsx(be,{label:"Cómo encaja en la consulta",title:"Tres usos clÃnicos. Cero coste para tu práctica.",body:"ovulación.ai puede recomendarse a la paciente en consulta como herramienta complementaria. El registro estructurado entra en consulta como informe automatizado.",centered:!0}),a.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mt-8",children:X_.map(({Icon:e,title:t,desc:n})=>a.jsxs("div",{className:"bg-ov-bg border border-ov-border rounded-2xl p-6 md:p-7",children:[a.jsx("div",{className:"w-11 h-11 rounded-lg bg-lila-pale flex items-center justify-center mb-4",children:a.jsx(e,{className:"w-5 h-5 text-lila",strokeWidth:1.8})}),a.jsx("h3",{className:"font-display text-lg md:text-xl font-bold text-ov-text mb-3",children:t}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid leading-relaxed",children:n})]},t))}),a.jsx("p",{className:"font-display italic text-center text-ov-text-mid text-base md:text-lg mt-12 max-w-3xl mx-auto leading-relaxed",children:"El informe se genera automáticamente. La paciente lo descarga. La consulta se enfoca en lo que importa â decisiones clÃnicas con información real. Sin coste para tu práctica. Sin curva de aprendizaje."})]})}),ek=()=>a.jsx("section",{className:"bg-ov-bg py-16 md:py-24",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[a.jsx(be,{label:"Quién está detrás",title:"Diseño clÃnico, no diseño de producto.",centered:!0}),a.jsxs("div",{className:"bg-white border border-ov-border rounded-2xl p-6 md:p-10 mt-8",children:[a.jsxs("div",{className:"flex flex-col sm:flex-row items-center sm:items-start gap-5 mb-7",children:[a.jsx("div",{className:"w-20 h-20 rounded-full bg-lila flex items-center justify-center flex-shrink-0",children:a.jsx("span",{className:"font-display text-3xl font-bold text-white",children:"P"})}),a.jsxs("div",{className:"text-center sm:text-left",children:[a.jsx("h3",{className:"font-display text-xl md:text-2xl font-bold text-ov
331-text",children:"Dr. Pedro Mujica"}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid mt-1",children:"Médico internista · 15 años de experiencia clÃnica"}),a.jsx("p",{className:"font-body text-xs text-lila mt-2",children:"Medicina interna · Lectura longitudinal de patrones biológicos"})]})]}),a.jsxs("div",{className:"space-y-5 font-body text-sm md:text-base text-ov-text leading-relaxed",children:[a.jsx("p",{children:"La medicina interna es, por entrenamiento y por estructura, la disciplina del patrón longitudinal. El internista lee diabetes, hipertensión, insuficiencia cardÃaca como sistemas dinámicos en el tiempo â no como cortes transversales aislados."}),a.jsx("p",{children:"El ciclo menstrual es exactamente un patrón biológico cÃclico con marcadores fisiológicos accesibles y dinámica temporal definida. La práctica clÃnica habitual trabaja con consultas episódicas y decisiones basadas en información incompleta. ovulación.ai no compite con la especialidad: aporta la capa longitudinal que la consulta aislada rara vez puede generar."}
331),a.jsx("p",{children:"ovulación.ai está diseñado para devolver la lectura del ciclo a su lugar natural en la medicina interna â como sistema biológico longitudinal interpretable. El producto no compite con la consulta especializada. La precede, la complementa, la enriquece."})]})]})]})}),tk=["Marco teórico: fenotipado prospectivo longitudinal del ciclo en investigación clÃnica actual","Arquitectura técnica de captura: cuatro variables y su interpretación longitudinal","Patrones clÃnicos detectables por condición â desarrollo extendido","Posicionamiento regulatorio: distinción fenotipado vs diagnóstico","Casos de uso B2B con flujos de integración en consulta","Limitaciones del producto y direcciones de investigación futura","BibliografÃa clÃnica completa (ESHRE, ACOG, NICE, NEJM, JAMA)"],nk=["Medicina Interna","GinecologÃa","EndocrinologÃa","PsiquiatrÃa","Atención Primaria","Otra"],rk=["España","México","Colombia","Argentina","Chile","Otro"],sk=()=>{const[e,t]=w.useState(""),[n,r]=w.useState(""),[s,i]=w.useState(""),[o,l]=w.useState(""),[c,d]=w.useState(!1),[u,h]=w.useState(null),p=xh(),f=async x=>{if(x.preventDefault(),!e||!n||!s||!o)return;d(!0),h(null);const v=await fE({nombre:e,email:n,especialidad:s,pais:o});d(!1),v?p("/gracias-profesionales"):h("No hemos podido procesar tu registro. Inténtalo de nuevo en unos segundos o escrÃbenos a [email protected].")};return a.jsx("section",{id:"pro-form",className:"bg-white py-16 md:py-24",children:a.jsxs("div",{className:"max-w-4xl mx-auto px-4",children:[a.jsx(be,{label:"White paper técnico",title:"Fenotipado prospectivo del ciclo menstrual: arquitectura clÃnica, casos de uso y limitaciones.",body:"Documento técnico de 8 páginas dirigido a profesionales sanitarios. Acceso gratuito tras registro.",centered:!0}),a.jsx("div",{className:"bg-ov-bg border border-ov-border rounded-2xl overflow-hidden mt-8",children:a.jsxs("div",{className:"p-6 md:p-10",children:[a.jsx("h3",{className:"font-display text-lg md:text-xl font-bold text-ov-text mb-5",children:"Lo que contiene el white paper"}),a.jsx("ul",{className:"space-y-3 mb-8",children:tk.map(x=>a.jsxs("li",{className:"flex gap-2.5 items-start",children:[a.jsx(_h,{className:"w-4 h-4 text-lila flex-shrink-0 mt-0.5",strokeWidth:2}),a.jsx("span",{className:"font-body text-sm text-ov-text-mid leading-relaxed",children:x})]},x))}),a.jsxs("form",{onSubmit:f,className:"space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block font-body text-xs font-semibold text-ov-text mb-1.5",children:"Nombre completo *"}),a.jsx("input",{type:"text",required:!0,value:e,onChange:x=>t(x.target.value),className:"w-full px-4 py-3 bg-white border border-ov-border rounded-lg font-body text-sm text-ov-text focus:outline-none focus:border-lila transition-colors"})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block font-body text-xs font-semibold text-ov-text mb-1.5",children:"Email profesional *"}),a.jsx("input",{type:"email",required:!0,value:n,onChange:x=>r(x.target.value),className:"w-full px-4 py-3 bg-white border border-ov-border rounded-lg font-body text-sm text-ov-text focus:outline-none focus:border-lila transition-colors"})]}),a.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block font-body text-xs font-semibold text-ov-text mb-1.5",children:"Especialidad médica *"}),a.jsxs("select",{required:!0,value:s,onChange:x=>i(x.target.value),className:"w-full px-4 py-3 bg-white border border-ov-border rounded-lg font-body text-sm text-ov-text focus:outline-none focus:border-lila transition-colors",children:[a.jsx("option",{value:"",children:"Seleccionaâ¦"}),nk.map(x=>a.jsx("option",{value:x,children:x},x))]})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block font-body text-xs font-semibold text-ov-text mb-1.5",children:"PaÃs *"}),a.jsxs("select",{required:!0,value:o,onChange:x=>l(x.target.value),className:"w-full px-4 py-3 bg-white border border-ov-border rounded-lg font-body text-sm text-ov-text focus:outline-none focus:border-lila transition-colors",children:[a.jsx("option",{value:"",children:"Seleccionaâ¦"}),rk.map(x=>a.jsx("option",{value:x,children:x},x))]})]})]}
331),a.jsx("button",{type:"submit",disabled:c,className:"w-full sm:w-auto bg-lila text-white font-body font-semibold px-8 py-3.5 rounded-lg shadow-[0_4px_20px_rgba(124,92,191,0.25)] hover:bg-[#6a4aab] hover:-translate-y-[1px] transition-all text-sm disabled:opacity-60 disabled:cursor-not-allowed",children:c?"Enviandoâ¦":"Recibir el white paper â"}),u&&a.jsx("p",{className:"font-body text-xs text-red-600 pt-2",role:"alert",children:u}),a.jsx("p",{className:"font-body text-xs text-ov-text-soft pt-2",children:"Acceso reservado a profesionales sanitarios. Tus datos se almacenan según RGPD. Puedes darte de baja en cualquier momento."})]})]})})]})})},ik=()=>a.jsxs(a.Fragment,{children:[a.jsx(Ty,{}),a.jsx(Mo,{}),a.jsx(q_,{}),a.jsx(W_,{}),a.jsx(G_,{}),a.jsx(K_,{}),a.jsx(Q_,{}),a.jsx(Z_,{}),a.jsx(ek,{}),a.jsx(sk,{}),a.jsx(Uo,{})]}),ok="https://assets.cdn.filesafe.space/m8RCXaVMg9bVVR6cl5QC/media/69f1b19cd696846120139d67.pdf",ak="whitepaper-ovulacion-ai-profesionales.pdf",lk=["Estado del arte: 7 modalidades de detección comparadas","Arquitectura técnica con métricas operativas","5 condiciones clÃnicas con algoritmos de decisión","29 referencias peer-reviewed (1979-2025)"],ck=[{lead:"Lee el documento con calma.",rest:" Está estructurado para identificar rápidamente las secciones relevantes según tu especialidad. La página 3 (comparativa de modalidades) y las páginas 5-6 (aplicaciones por condición) son las más densas clÃnicamente."},{lead:"Si tienes preguntas clÃnicas especÃficas",rest:" sobre integración en consulta, propuestas de colaboración investigadora o casos clÃnicos, responde directamente al email de confirmación que recibirás. El Dr. Pedro Mujica responde personalmente las consultas profesionales en 48-72 horas."},{lead:"Cuando recibas a una paciente",rest:" con sospecha de PMDD, endometriosis, SOP, perimenopausia o dismenorrea severa, ovulacion.ai puede recomendarse como herramienta complementaria. La paciente se registra en ovulacion.ai, registra 2-6 ciclos prospectivamente, y vuelve a tu consulta con un informe estructurado del fenotipo cÃclico."}
331],Km=["La mayorÃa de profesionales sanitarios siguen trabajando con recall retrospectivo y analÃticas puntuales porque no existe alternativa práctica. Decidir incorporar fenotipado prospectivo longitudinal en tu práctica te coloca por delante de la curva clÃnica.","Este no es un newsletter de marketing. Es el canal directo del autor para profesionales que comparten esta forma de leer el ciclo menstrual como patrón longitudinal. Cuida ese email â es el único contacto.","La infraestructura ya existe. Ya hay pacientes registrando sÃntomas prospectivamente cada dÃa. El primer profesional que recomiende ovulación.ai a una paciente con sospecha de PMDD, endometriosis o perimenopausia recibirá el informe estructurado en su siguiente consulta. Entraste al principio."],dk=()=>a.jsxs(a.Fragment,{children:[a.jsx(Ty,{}),a.jsx(Mo,{}),a.jsx("main",{className:"bg-white",children:a.jsxs("div",{className:"max-w-3xl mx-auto px-6 py-20",children:[a.jsx(_$,{className:"w-16 h-16 text-lila mx-auto mb-6",strokeWidth:1.75}),a.jsx("h1",{className:"font-display text-4xl md:text-5xl font-bold text-navy text-center mb-4",children:"Registro confirmado"}),a.jsx("p",{className:"font-body text-lg text-ov-text-mid text-center max-w-2xl mx-auto mb-12 leading-relaxed",children:"Gracias por tu interés profesional en ovulación.ai. El white paper técnico está listo para descargar. También recibirás copia por email con tu confirmación de registro."}),a.jsxs("div",{className:"bg-lila-pale border border-lila/30 rounded-2xl p-8 md:p-10 mb-12",children:[a.jsx("p",{className:"font-body text-xs font-semibold uppercase tracking-wider text-lila mb-3",children:"White paper técnico · 8 páginas · PDF"}),a.jsx("h2",{className:"font-display text-2xl md:text-3xl font-bold text-navy mb-3",children:"Fenotipado prospectivo longitudinal del ciclo menstrual"}),a.jsx("p",{className:"font-body text-base text-ov-text-mid italic mb-6",children:"Arquitectura clÃnica, casos de uso, limitaciones y bibliografÃa técnica para profesionales sanitarios."}),a.jsx("ul",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 mb-8",children:lk.map(e=>a.jsxs("li",{className:"flex gap-2 items-start font-body text-sm text-ov-text-mid",children:[a.jsx(hv,{className:"w-4 h-4 text-lila flex-shrink-0 mt-0.5",strokeWidth:2}),a.jsx("span",{children:e})]},e))}),a.jsxs("a",{href:ok,download:ak,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 w-full md:w-auto bg-lila hover:bg-[#6a4aab] text-white font-body font-semibold px-8 py-4 rounded-lg shadow-[0_4px_20px_rgba(124,92,191,0.25)] transition-all",children:[a.jsx(C$,{className:"w-5 h-5",strokeWidth:2}),"Descargar white paper (PDF, 30KB)"]})]}),a.jsxs("div",{className:"border-t border-ov-border pt-10",children:[a.jsx("h3",{className:"font-display text-xl font-bold text-navy mb-6",children:"Próximos pasos"}),a.jsx("div",{className:"space-y-6",children:ck.map((e,t)=>a.jsxs("div",{className:"flex gap-4 items-start",children:[a.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-full bg-lila text-white flex items-center justify-center font-display font-semibold",children:t+1}),a.jsxs("p",{className:"font-body text-base text-ov-text-mid leading-relaxed flex-1",children:[a.jsx("strong",{className:"text-ov-text font-semibold",children:e.lead}),e.rest]})]},t))})]}),a.jsxs("div",{className:"border-t border-ov-border pt-10 mt-10",children:[a.jsx("h3",{className:"font-display text-xl font-bold text-navy mb-6",children:"Tomaste una buena decisión."}),a.jsx("div",{className:"space-y-5",children:Km.map((e,t)=>a.jsx("p",{className:`font-body text-base text-ov-text-mid leading-relaxed italic ${t<Km.length-1?"border-b border-ov-border/40 pb-5":""}`,children:e},t))})]}),a.jsxs("div",{className:"text-center mt-16 mb-12",children:[a.jsx("h2",{className:"font-display text-3xl md:text-4xl font-bold text-navy mb-4",children:"Nadie sola entre consultas."}),a.jsx("div",{className:"w-12 h-px bg-lila/40 mx-auto my-6"}),a.jsx("p",{className:"font-body text-base text-ov-text mb-1 font-medium",children:"Dr. Pedro Mujica"}),a.jsx("p",{className:"font-body text-sm text-ov-text-mid italic",children:"Médico internista · ovulación.ai"}),a.jsx("div",{className:"h-2"}),a.jsx("p",{className:"font-display italic text-sm text-ov-text-mid/80",children:"medicina que escucha el cuerpo a lo largo del tiempo"})]}),a.jsxs("div",{className:"text-center mt-12 pt-8 border-t border-ov-border/40",children:[a.jsx("p",{className:"font-body text-xs text-ov
331-text-mid/70 mb-2",children:"¿Conoces a otro profesional sanitario que se beneficie del documento?"}),a.jsxs(As,{to:"/para-profesionales",className:"text-sm text-lila hover:text-[#6a4aab] font-semibold inline-flex items-center gap-1",children:["Compartir página técnica ",a.jsx(Ia,{className:"w-4 h-4",strokeWidth:2})]})]})]})}),a.jsx(Uo,{})]}),uk=()=>{const e=fr();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),a.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:a.jsxs("div",{className:"text-center",children:[a.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),a.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),a.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})},hk=new Lb;typeof window<"u"&&"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");function fk(){const{pathname:e}=fr();return w.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}const pk=()=>a.jsx(Db,{client:hk,children:a.jsxs(f8,{children:[a.jsx(N4,{}),a.jsx(pw,{}),a.jsxs(R3,{children:[a.jsx(fk,{}),a.jsxs(k3,{children:[a.jsx(wr,{path:"/",element:a.jsx(D_,{})}),a.jsx(wr,{path:"/gracias",element:a.jsx(F_,{})}),a.jsx(wr,{path:"/gracias-guia",element:a.jsx(B_,{})}),a.jsx(wr,{path:"/para-profesionales",element:a.jsx(ik,{})}),a.jsx(wr,{path:"/gracias-profesionales",element:a.jsx(dk,{})}),a.jsx(wr,{path:"*",element:a.jsx(uk,{})})]})]})]})});y1(document.getElementById("root")).render(a.jsx(pk,{}));
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.