PageSourceSearch

https://maifud.cl/assets/index.ORQGlHvZ.js

js maifud.cl collected 2026-10-06 00:16:40 UTC 2,195,110 bytes, 3,537 lines download raw bytes

vendor: 5,351 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/pluxee.lazy.BFzhFxzp.js","assets/listParnerships.H2hq_xC8.js","assets/rut.ChFSB91A.js","assets/activaciones.lazy.BK20A_LM.js","assets/index.lazy.Bxk4kH4C.js","assets/trash-2.Dy_tH7eN.js","assets/sparkles.IyoLgdGB.js","assets/calendar-days.CL2oNq38.js","assets/index.lazy.CPI-cYKJ.js","assets/index.lazy.BumZco7p.js","assets/OrderProductsAlert.El56b1N3.js","assets/ProductTable.CtXdvo2V.js","assets/index.lazy.BdN9MOJM.js","assets/happy_avocado.CqMBbJca.js","assets/EditBoxAlert.yuwOtj-X.js","assets/index.lazy.U2JxYRbB.js","assets/index.lazy.vmc4kQbu.js","assets/index.lazy.ByBHC9qu.js","assets/index.lazy.DMr73ldz.js","assets/clipboard-list.hU_FJ87i.js","assets/edit.lazy.D2Azw_yc.js"])))=>i.map(i=>d[i]);
2var RZ=Object.defineProperty;var MI=t=>{throw TypeError(t)};var NZ=(t,e,n)=>e in t?RZ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Ue=(t,e,n)=>NZ(t,typeof e!="symbol"?e+"":e,n),ww=(t,e,n)=>e.has(t)||MI("Cannot "+n);var ee=(t,e,n)=>(ww(t,e,"read from private field"),n?n.call(t):e.get(t)),rt=(t,e,n)=>e.has(t)?MI("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Be=(t,e,n,r)=>(ww(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Dt=(t,e,n)=>(ww(t,e,"access private method"),n);var Ov=(t,e,n,r)=>({set _(s){Be(t,e,s,n)},get _(){return ee(t,e,r)}});try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1f48c41d-d360-4186-8300-810623eae5e9",t._sentryDebugIdIdentifier="sentry-dbid-1f48c41d-d360-4186-8300-810623eae5e9")}catch{}function MZ(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"[email protected]"}}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.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 xf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _w={exports:{}},N1={},Ew={exports:{}},Vt={};/**
3 * @license React
4 * react.production.min.js
5 *
6 * Copyright (c) Facebook, Inc. and its affiliates.
7 *
8 * This source code is licensed under the MIT license found in the
9 * LICENSE file in the root directory of this source tree.
10 */var kI;function kZ(){if(kI)return Vt;kI=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.iterator;function v(Q){return Q===null||typeof Q!="object"?null:(Q=m&&Q[m]||Q["@@iterator"],typeof Q=="function"?Q:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function b(Q,ie,ue){this.props=Q,this.context=ie,this.refs=C,this.updater=ue||w}b.prototype.isReactComponent={},b.prototype.setState=function(Q,ie){if(typeof Q!="object"&&typeof Q!="function"&&Q!=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,Q,ie,"setState")},b.prototype.forceUpdate=function(Q){this.updater.enqueueForceUpdate(this,Q,"forceUpdate")};function S(){}S.prototype=b.prototype;function P(Q,ie,ue){this.props=Q,this.context=ie,this.refs=C,this.updater=ue||w}var R=P.prototype=new S;R.constructor=P,E(R,b.prototype),R.isPureReactComponent=!0;var z=Array.isArray,O=Object.prototype.hasOwnProperty,F={current:null},D={key:!0,ref:!0,__self:!0,__source:!0};function I(Q,ie,ue){var ge,Ae={},Pe=null,he=null;if(ie!=null)for(ge in ie.ref!==void 0&&(he=ie.ref),ie.key!==void 0&&(Pe=""+ie.key),ie)O.call(ie,ge)&&!D.hasOwnProperty(ge)&&(Ae[ge]=ie[ge]);var xe=arguments.length-2;if(xe===1)Ae.children=ue;else if(1<xe){for(var Ne=Array(xe),ze=0;ze<xe;ze++)Ne[ze]=arguments[ze+2];Ae.children=Ne}if(Q&&Q.defaultProps)for(ge in xe=Q.defaultProps,xe)Ae[ge]===void 0&&(Ae[ge]=xe[ge]);return{$$typeof:t,type:Q,key:Pe,ref:he,props:Ae,_owner:F.current}}function T(Q,ie){return{$$typeof:t,type:Q.type,key:ie,ref:Q.ref,props:Q.props,_owner:Q._owner}}
vendor: 5,212 bytes, lines 10-18
10function k(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===t}function j(Q){var ie={"=":"=0",":":"=2"};return"$"+Q.replace(/[=:]/g,function(ue){return ie[ue]})}var L=/\/+/g;function V(Q,ie){return typeof Q=="object"&&Q!==null&&Q.key!=null?j(""+Q.key):ie.toString(36)}function Y(Q,ie,ue,ge,Ae){var Pe=typeof Q;(Pe==="undefined"||Pe==="boolean")&&(Q=null);var he=!1;if(Q===null)he=!0;else switch(Pe){case"string":case"number":he=!0;break;case"object":switch(Q.$$typeof){case t:case e:he=!0}}if(he)return he=Q,Ae=Ae(he),Q=ge===""?"."+V(he,0):ge,z(Ae)?(ue="",Q!=null&&(ue=Q.replace(L,"$&/")+"/"),Y(Ae,ie,ue,"",function(ze){return ze})):Ae!=null&&(k(Ae)&&(Ae=T(Ae,ue+(!Ae.key||he&&he.key===Ae.key?"":(""+Ae.key).replace(L,"$&/")+"/")+Q)),ie.push(Ae)),1;if(he=0,ge=ge===""?".":ge+":",z(Q))for(var xe=0;xe<Q.length;xe++){Pe=Q[xe];var Ne=ge+V(Pe,xe);he+=Y(Pe,ie,ue,Ne,Ae)}else if(Ne=v(Q),typeof Ne=="function")for(Q=Ne.call(Q),xe=0;!(Pe=Q.next()).done;)Pe=Pe.value,Ne=ge+V(Pe,xe++),he+=Y(Pe,ie,ue,Ne,Ae);else if(Pe==="object")throw ie=String(Q),Error("Objects are not valid as a React child (found: "+(ie==="[object Object]"?"object with keys {"+Object.keys(Q).join(", ")+"}":ie)+"). If you meant to render a collection of children, use an array instead.");return he}function G(Q,ie,ue){if(Q==null)return Q;var ge=[],Ae=0;return Y(Q,ge,"","",function(Pe){return ie.call(ue,Pe,Ae++)}),ge}function q(Q){if(Q._status===-1){var ie=Q._result;ie=ie(),ie.then(function(ue){(Q._status===0||Q._status===-1)&&(Q._status=1,Q._result=ue)},function(ue){(Q._status===0||Q._status===-1)&&(Q._status=2,Q._result=ue)}),Q._status===-1&&(Q._status=0,Q._result=ie)}if(Q._status===1)return Q._result.default;throw Q._result}var U={current:null},B={transition:null},ne={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:B,ReactCurrentOwner:F};function oe(){throw Error("act(...) is not supported in production builds of React.")}return Vt.Children={map:G,forEach:function(Q,ie,ue){G(Q,function(){ie.apply(this,arguments)},ue)},count:function(Q){var ie=0;return G(Q,function(){ie++}),ie},toArray:function(Q){return G(Q,function(ie){return ie})||[]},only:function(Q){if(!k(Q))throw Error("React.Children.only expected to receive a single React element child.");return Q}},Vt.Component=b,Vt.Fragment=n,Vt.Profiler=s,Vt.PureComponent=P,Vt.StrictMode=r,Vt.Suspense=c,Vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,Vt.act=oe,Vt.cloneElement=function(Q,ie,ue){if(Q==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Q+".");var ge=E({},Q.props),Ae=Q.key,Pe=Q.ref,he=Q._owner;if(ie!=null){if(ie.ref!==void 0&&(Pe=ie.ref,he=F.current),ie.key!==void 0&&(Ae=""+ie.key),Q.type&&Q.type.defaultProps)var xe=Q.type.defaultProps;for(Ne in ie)O.call(ie,Ne)&&!D.hasOwnProperty(Ne)&&(ge[Ne]=ie[Ne]===void 0&&xe!==void 0?xe[Ne]:ie[Ne])}var Ne=arguments.length-2;if(Ne===1)ge.children=ue;else if(1<Ne){xe=Array(Ne);for(var ze=0;ze<Ne;ze++)xe[ze]=arguments[ze+2];ge.children=xe}return{$$typeof:t,type:Q.type,key:Ae,ref:Pe,props:ge,_owner:he}},Vt.createContext=function(Q){return Q={$$typeof:o,_currentValue:Q,_currentValue2:Q,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},Q.Provider={$$typeof:i,_context:Q},Q.Consumer=Q},Vt.createElement=I,Vt.createFactory=function(Q){var ie=I.bind(null,Q);return ie.type=Q,ie},Vt.createRef=function(){return{current:null}},Vt.forwardRef=function(Q){return{$$typeof:a,render:Q}},Vt.isValidElement=k,Vt.lazy=function(Q){return{$$typeof:p,_payload:{_status:-1,_result:Q},_init:q}},Vt.memo=function(Q,ie){return{$$typeof:d,type:Q,compare:ie===void 0?null:ie}},Vt.startTransition=function(Q){var ie=B.transition;B.transition={};try{Q()}finally{B.transition=ie}},Vt.unstable_act=oe,Vt.useCallback=function(Q,ie){return U.current.useCallback(Q,ie)},Vt.useContext=function(Q){return U.current.useContext(Q)},Vt.useDebugValue=function(){},Vt.useDeferredValue=function(Q){return U.current.useDeferredValue(Q)},Vt.useEffect=function(Q,ie){return U.current.useEffect(Q,ie)},Vt.useId=function(){return U.current.useId()},Vt.useImperativeHandle=function(Q,ie,ue){return U.current.useImperativeHandle(Q,ie,ue)},Vt.useInsertionEffect=function(Q,ie){return U.current.useInsertionEffect(Q,ie)},Vt.useLayoutEffect=function(Q,ie){return U.current.useLayoutEffect(Q,ie)},Vt.useMemo=function(Q,ie){return U.current.useMemo(Q,ie)},Vt.useReducer=function(Q,ie,ue){return U.current.useReducer(Q,ie,ue)},Vt.useRef=function(Q){return U.current.useRef(Q)},Vt.useState=function(Q){return U.current.useState(Q)},Vt.useSyncExternalStore=function(Q,ie,ue){return U.current.useSyncExternalStore(Q,ie,ue)},Vt.useTransition=function(){return U.current.useTransition()},Vt.version="18.3.1",Vt}var DI;function hm(){return DI||(DI=1,Ew.exports=kZ()),Ew.exports}/**
11 * @license React
12 * react-jsx-runtime.production.min.js
13 *
14 * Copyright (c) Facebook, Inc. and its affiliates.
15 *
16 * This source code is licensed under the MIT license found in the
17 * LICENSE file in the root directory of this source tree.
18 */var OI;function DZ(){if(OI)return N1;OI=1;var t=hm(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=t.__SECRET_INT
vendor: 7,550 bytes, lines 18-22
18ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,d){var p,m={},v=null,w=null;d!==void 0&&(v=""+d),c.key!==void 0&&(v=""+c.key),c.ref!==void 0&&(w=c.ref);for(p in c)r.call(c,p)&&!i.hasOwnProperty(p)&&(m[p]=c[p]);if(a&&a.defaultProps)for(p in c=a.defaultProps,c)m[p]===void 0&&(m[p]=c[p]);return{$$typeof:e,type:a,key:v,ref:w,props:m,_owner:s.current}}return N1.Fragment=n,N1.jsx=o,N1.jsxs=o,N1}var $I;function OZ(){return $I||($I=1,_w.exports=DZ()),_w.exports}var u=OZ();const Nt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Vd="8.55.0",Qt=globalThis;function e5(t,e,n){const r=Qt,s=r.__SENTRY__=r.__SENTRY__||{},i=s[Vd]=s[Vd]||{};return i[t]||(i[t]=e())}const Nu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,$Z="Sentry Logger ",w8=["debug","info","warn","error","log","assert","trace"],xy={};function Mu(t){if(!("console"in Qt))return t();const e=Qt.console,n={},r=Object.keys(xy);r.forEach(s=>{const i=xy[s];n[s]=e[s],e[s]=i});try{return t()}finally{r.forEach(s=>{e[s]=n[s]})}}function FZ(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Nu?w8.forEach(n=>{e[n]=(...r)=>{t&&Mu(()=>{Qt.console[n](`${$Z}[${n}]:`,...r)})}}):w8.forEach(n=>{e[n]=()=>{}}),e}const Fe=e5("logger",FZ),b$=50,Xd="?",FI=/\(error: (.*)\)/,jI=/captureMessage|captureException/;function S$(...t){const e=t.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const i=[],o=n.split(`
19`);for(let a=r;a<o.length;a++){const c=o[a];if(c.length>1024)continue;const d=FI.test(c)?c.replace(FI,"$1"):c;if(!d.match(/\S*Error: /)){for(const p of e){const m=p(d);if(m){i.push(m);break}}if(i.length>=b$+s)break}}return LZ(i.slice(s))}}function jZ(t){return Array.isArray(t)?S$(...t):t}function LZ(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test($v(e).function||"")&&e.pop(),e.reverse(),jI.test($v(e).function||"")&&(e.pop(),jI.test($v(e).function||"")&&e.pop()),e.slice(0,b$).map(n=>({...n,filename:n.filename||$v(e).filename,function:n.function||Xd}))}function $v(t){return t[t.length-1]||{}}const bw="<anonymous>";function Pl(t){try{return!t||typeof t!="function"?bw:t.name||bw}catch{return bw}}function LI(t){const e=t.exception;if(e){const n=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const M3={},zI={};function ku(t,e){M3[t]=M3[t]||[],M3[t].push(e)}function Du(t,e){if(!zI[t]){zI[t]=!0;try{e()}catch(n){Nu&&Fe.error(`Error while instrumenting ${t}`,n)}}}function Vi(t,e){const n=t&&M3[t];if(n)for(const r of n)try{r(e)}catch(s){Nu&&Fe.error(`Error while triggering instrumentation handler.
20Type: ${t}
21Name: ${Pl(r)}
22Error:`,s)}}let Sw=null;function C$(t){const e="error";ku(e,t),Du(e,zZ)}function zZ(){Sw=Qt.onerror,Qt.onerror=function(t,e,n,r,s){return Vi("error",{column:r,error:s,line:n,msg:t,url:e}),Sw?Sw.apply(this,arguments):!1},Qt.onerror.__SENTRY_INSTRUMENTED__=!0}let Cw=null;function T$(t){const e="unhandledrejection";ku(e,t),Du(e,VZ)}function VZ(){Cw=Qt.onunhandledrejection,Qt.onunhandledrejection=function(t){return Vi("unhandledrejection",t),Cw?Cw.apply(this,arguments):!0},Qt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function wf(){return p9(Qt),Qt}function p9(t){const e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Vd,e[Vd]=e[Vd]||{}}const A$=Object.prototype.toString;function m9(t){switch(A$.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Rl(t,Error)}}function pm(t,e){return A$.call(t)===`[object ${e}]`}function I$(t){return pm(t,"ErrorEvent")}function VI(t){return pm(t,"DOMError")}function BZ(t){return pm(t,"DOMException")}function _l(t){return pm(t,"String")}function g9(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function v9(t){return t===null||g9(t)||typeof t!="object"&&typeof t!="function"}function Dp(t){return pm(t,"Object")}function t5(t){return typeof Event<"u"&&Rl(t,Event)}function HZ(t){return typeof Element<"u"&&Rl(t,Element)}function UZ(t){return pm(t,"RegExp")}function n5(t){return!!(t&&t.then&&typeof t.then=="function")}function WZ(t){return Dp(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function Rl(t,e){try{return t instanceof e}catch{return!1}}function P$(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}const rp=Qt,qZ=80;function Nl(t,e={}){if(!t)return"<unknown>";try{let n=t;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let d;const p=Array.isArray(e)?e:e.keyAttrs,m=!Array.isArray(e)&&e.maxStringLength||qZ;for(;n&&i++<r&&(d=GZ(n,p),!(d==="html"||i>1&&o+s.length*c+d.length>=m));)s.push(d),o+=d.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function GZ(t,e){const n=t,r=[];if(!n||!n.tagName)return"";if(rp.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=e&&e.length?e.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s&&s.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&_l(o)){const a=o.split(/\s+/);for(const c of a)r.push(`.${c}`)}}const i=["aria-label","type","name","title","alt"];for(const o of i){const a=n.getAttribute(o);a&&r.push(`[${o}="${a}"]`)}return r.join("")}function R$(){try{return rp.document.location.href}catch{return""}}function KZ(t){return rp.document&&rp.document.querySelector?rp.document.querySelector(t):null}function N$(t){if(!rp.HTMLElement)return null;let e=t;const n=5;for(let r=0;r<n;r++){if(!e)return null;if(e instanceof HTMLElement){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}e=e.parentNode}return null}function sp(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function BI(t,e){if(!Array.isArray(t))return"";const n=[];for(let r=0;r<t.length;r++){const s=t[r];try{P$(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(e)}function YZ(t,e,n=!1){return _l(t)?UZ(e)?e.test(t):_l(e)?n?t===e:t.includes(e):!1:!1}function tu(t,e=[],n=!1){return e.some(r=>YZ(t,r,n))}function Hs(t,e,n){if(!(e in t))return;const r=t[e],s=n(r);typeof s=="function"&&M$(s,r);try{t[e]=s}catch{Nu&&Fe.log(`Failed to replace method "${e}" in object`,t)}}function Ki(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch{Nu&&Fe.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function M$(t,e){try{const n=e.prototype||{};t.prototype=e.prototype=n,Ki(t,"__sentry_original__",e)}catch{}}function y9(t){return t.__sentry_original__}function k$(t){if(m9(t))return{message:t.message,name:t.name,stack:t.stack,...UI(t)};if(t5(t)){const e={type:t.type,target:HI(t.target),currentTarget:HI(t.currentTarget),...UI(t)};return typeof CustomEvent<"u"&&Rl(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function HI(t){try{return HZ(t)?Nl(t):Object.prototype.toString.call(t)}catch{return"<unknown>"}}function UI(t){if(typeof t=="object"&&t!==null){const e={};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}else return{}}function QZ(t,e=40){const n=Object.keys(k$(t));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=e)return sp(r,e);for(let s=n.length;s>0;s--){const i=n.slice(0,s).join(", ");
22if(!(i.length>e))return s===n.length?i:sp(i,e)}return""}function Cr(t){return _8(t,new Map)}function _8(t,e){if(XZ(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const s of Object.getOwnPropertyNames(t))typeof t[s]<"u"&&(r[s]=_8(t[s],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach(s=>{r.push(_8(s,e))}),r}return t}function XZ(t){if(!Dp(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const D$=1e3;function A2(){return Date.now()/D$}function ZZ(){const{performance:t}=Qt;if(!t||!t.now)return A2;const e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/D$}const Cs=ZZ(),Ts=(()=>{const{performance:t}=Qt;if(!t||!t.now)return;const e=3600*1e3,n=t.now(),r=Date.now(),s=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,i=s<e,o=t.timing&&t.timing.navigationStart,c=typeof o=="number"?Math.abs(o+n-r):e,d=c<e;return i||d?s<=c?t.timeOrigin:o:r})();function hi(){const t=Qt,e=t.crypto||t.msCrypto;let n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function O$(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function Dc(t){const{message:e,event_id:n}=t;if(e)return e;const r=O$(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function E8(t,e,n){const r=t.exception=t.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=e||""),i.type||(i.type="Error")}function Op(t,e){const n=O$(t);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...e},e&&"data"in e){const i={...s&&s.data,...e.data};n.mechanism.data=i}}function WI(t){if(JZ(t))return!0;try{Ki(t,"__sentry_captured__",!0)}catch{}return!1}function JZ(t){try{return t.__sentry_captured__}catch{}}var dl;(function(t){t[t.PENDING=0]="PENDING";const n=1;t[t.RESOLVED=n]="RESOLVED";const r=2;t[t.REJECTED=r]="REJECTED"})(dl||(dl={}));function Ml(t){return new ji(e=>{e(t)})}function wy(t){return new ji((e,n)=>{n(t)})}class ji{constructor(e){ji.prototype.__init.call(this),ji.prototype.__init2.call(this),ji.prototype.__init3.call(this),ji.prototype.__init4.call(this),this._state=dl.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new ji((r,s)=>{this._handlers.push([!1,i=>{if(!e)r(i);else try{r(e(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new ji((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,e&&e()},o=>{i=!0,s=o,e&&e()}).then(()=>{if(i){r(s);return}n(s)})})}__init(){this._resolve=e=>{this._setResult(dl.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(dl.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===dl.PENDING){if(n5(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===dl.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===dl.RESOLVED&&n[1](this._value),this._state===dl.REJECTED&&n[2](this._value),n[0]=!0)})}}}function eJ(t){const e=Cs(),n={sid:hi(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>nJ(n)};return t&&$p(n,t),n}function $p(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Cs(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:hi()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),t
vendor: 4,368 bytes, line 22
22ypeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function tJ(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),$p(t,n)}function nJ(t){return Cr({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}function uu(){return hi()}function du(){return hi().substring(16)}function r5(t,e,n=2){if(!e||typeof e!="object"||n<=0)return e;if(t&&e&&Object.keys(e).length===0)return t;const r={...t};for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=r5(r[s],e[s],n-1));return r}const b8="_sentrySpan";function I0(t,e){e?Ki(t,b8,e):delete t[b8]}function _y(t){return t[b8]}const rJ=100;class x9{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:uu(),spanId:du()}}clone(){const e=new x9;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,I0(e,_y(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&$p(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e,[r,s]=n instanceof Zd?[n.getScopeData(),n.getRequestSession()]:Dp(n)?[e,e.requestSession]:[],{tags:i,extra:o,user:a,contexts:c,level:d,fingerprint:p=[],propagationContext:m}=r||{};return this._tags={...this._tags,...i},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),d&&(this._level=d),p.length&&(this._fingerprint=p),m&&(this._propagationContext=m),s&&(this._requestSession=s),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,I0(this,void 0),this._attachments=[],this.setPropagationContext({traceId:uu()}),this._notifyScopeListeners(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:rJ;if(r<=0)return this;const s={timestamp:A2(),...e};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client&&this._client.re
22cordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_y(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=r5(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:du(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n&&n.event_id?n.event_id:hi();if(!this._client)return Fe.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:s,...n,event_id:r},this),r}captureMessage(e,n,r){const s=r&&r.event_id?r.event_id:hi();if(!this._client)return Fe.warn("No client configured on scope - will not capture message!"),s;const i=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:i,...r,event_id:s},this),s}captureEvent(e,n){const r=n&&n.event_id?n.event_id:hi();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(Fe.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}const Zd=x9;function sJ(){return e5("defaultCurrentScope",()=>new Zd)}function iJ(){return e5("defaultIsolationScope",()=>new Zd)}class oJ{constructor(e,n){let r;e?r=e:r=new Zd;let s;n?s=n:s=new Zd,this._stack=[{scope:r}],this._isolationScope=s}withScope(e){const n=this._pushScope();let r;try{r=e(n)}catch(s){throw this._popScope(),s}return n5(r)?r.then(s=>(this._popScope(),s),s=>{throw this._popScope(),s}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Fp(){const t=wf(),e=p9(t);return e.stack=e.stack||new oJ(sJ(),iJ())}function aJ(t){return Fp().withScope(t)}function lJ(t,e){const n=Fp();return n.withScope(()=>(n.getStackTop().scope=t,e(t)))}function qI(t){return Fp().withScope(()=>t(Fp().getIsolationScope()))}function cJ(){return{withIsolationScope:qI,withScope:aJ,withSetScope:lJ,withSetIsolationScope:(t,e)=>qI(e),getCurrentScope:()=>Fp().getScope(),getIsolationScope:()=>Fp().getIsolationScope()}}function mm(t){const e=p9(t);return e.acs?e.acs:cJ()}function In(){const t=wf();return mm(t).getCurrentScope()}function Bo(){const t=wf();return mm(t).getIsolationScope()}function uJ(){return e5("globalScope",()=>new Zd)}function w9(...t){const e=wf(),n=mm(e);if(t.length===2){const[r,s]=t;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(t[0])}function qt(){return In().getClient()}function dJ(t){const e=t.getPropagationContext(),{traceId:n,spanId:r,parentSpanId:s}=e;return Cr({trace_id:n,span_id:r,parent_span_id:s})}const fJ="_sentryMetrics";function S8(t){const e=t[fJ];if(!e)return;const n={};for(const[,[r,s]]of e)(n[r]||(n[r]=[])).push(Cr(s));return n}const fi="sentry.source",$$="sentry.sample_rate",kl="sentry.op",mr="sentry.origin",C8="sentry.idle_span_finish_reason",s5="sentry.measurement_unit",i5="sentry.measurement_value",GI="sentry.custom_span_name",hJ="sentry.profile_id",_9="sentry.exclusive_time",pJ=0,F$=1,Dr=2;function mJ(t){if(t<400&&t>=100)return{code:F$};if(t>=400&&t<500)switch(t){case 401:return{code:Dr,message:"unauthenticated"};case 403:return{code:Dr,message:"permission_denied"};case 404:return{code:Dr,message:"not_found"};case 409:return{code:Dr,message:"already_exists"};case 413:return{code:Dr,message:"failed_precondition"};case 429:return{code:Dr,message:"resource_exhausted"};case 499:return{code:Dr,message:"cancelled"};default:return{code:Dr,message:"invalid_argument"}}if(t>=500&&t<600)switch(t){case 501:return{code:Dr,message:"unimplemented"};case 503:return{code:Dr,message:"unavailable"};case 504:return{code:Dr,message:"deadline_exceeded"};default:return{code:Dr,message:"internal_error"}}return{code:Dr,message:"unknown_error"}}function j$(t,e){t.setAttribute("http.response.status_code",e);const n=mJ(e);n.message!=="unknown_error"&&t.setStatus(n)}const E9="sentry-",gJ=/^sentry-/,vJ=8192;function L$(t){const e=xJ(t);if(!e)return;const n=Object.entries(e).reduce((r,[s,i])=>{if(s.match(gJ)){const o=s.slice(E9.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function yJ(t){if(!t)return;const e=Object.entries(t).reduce((n,[r,s])=>(s&&(n[`${E9}${r}`]=s),n),{});return wJ(e)}function xJ(t){if(!(!t||!_l(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,n)=>{const r=KI(n);return Object.entries(r).forEach(([s,i])=>{e[s]=i}),e},{}):KI(t)}function KI(t){return t.split(",").map(e=>e.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((e,[n,r])=>(n&&r&&(e[n]=r),e),{})}function wJ(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${e},${i}`;return o.length>vJ?(Nu&&Fe.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):o},"")}const z$=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function _J(t){if(!t)return;const e=t.match(z$);
22if(!e)return;let n;return e[3]==="1"?n=!0:e[3]==="0"&&(n=!1),{traceId:e[1],parentSampled:n,parentSpanId:e[2]}}function EJ(t,e){const n=_J(t),r=L$(e);if(!n||!n.traceId)return{traceId:uu(),spanId:du()};const{traceId:s,parentSpanId:i,parentSampled:o}=n,a=du();return{traceId:s,parentSpanId:i,spanId:a,sampled:o,dsc:r||{}}}function V$(t=uu(),e=du(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${t}-${e}${r}`}const B$=0,H$=1;let YI=!1;function bJ(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:s,parent_span_id:i,status:o,origin:a}=sn(t);return Cr({parent_span_id:i,span_id:e,trace_id:n,data:r,op:s,status:o,origin:a})}function SJ(t){const{spanId:e,traceId:n,isRemote:r}=t.spanContext(),s=r?e:sn(t).parent_span_id,i=r?du():e;return Cr({parent_span_id:s,span_id:i,trace_id:n})}function CJ(t){const{traceId:e,spanId:n}=t.spanContext(),r=_f(t);return V$(e,n,r)}function Bd(t){return typeof t=="number"?QI(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?QI(t.getTime()):Cs()}function QI(t){return t>9999999999?t/1e3:t}function sn(t){if(AJ(t))return t.getSpanJSON();try{const{spanId:e,traceId:n}=t.spanContext();if(TJ(t)){const{attributes:r,startTime:s,name:i,endTime:o,parentSpanId:a,status:c}=t;return Cr({span_id:e,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:Bd(s),timestamp:Bd(o)||void 0,status:U$(c),op:r[kl],origin:r[mr],_metrics_summary:S8(t)})}return{span_id:e,trace_id:n}}catch{return{}}}function TJ(t){const e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function AJ(t){return typeof t.getSpanJSON=="function"}function _f(t){const{traceFlags:e}=t.spanContext();return e===H$}function U$(t){if(!(!t||t.code===pJ))return t.code===F$?"ok":t.message||"unknown_error"}const Hd="_sentryChildSpans",T8="_sentryRootSpan";function W$(t,e){const n=t[T8]||t;Ki(e,T8,n),t[Hd]?t[Hd].add(e):Ki(t,Hd,new Set([e]))}function IJ(t,e){t[Hd]&&t[Hd].delete(e)}function k3(t){const e=new Set;function n(r){if(!e.has(r)&&_f(r)){e.add(r);const s=r[Hd]?Array.from(r[Hd]):[];for(const i of s)n(i)}}return n(t),Array.from(e)}function Xr(t){return t[T8]||t}function Fr(){const t=wf(),e=mm(t);return e.getActiveSpan?e.getActiveSpan():_y(In())}function q$(){YI||(Mu(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),YI=!0)}let XI=!1;function PJ(){XI||(XI=!0,C$(A8),T$(A8))}function A8(){const t=Fr(),e=t&&Xr(t);if(e){const n="internal_error";Nt&&Fe.log(`[Tracing] Root span: ${n} -> Global error occurred`),e.setStatus({code:Dr,message:n})}}A8.tag="sentry_tracingErrorCallback";const G$="_sentryScope",K$="_sentryIsolationScope";function RJ(t,e,n){t&&(Ki(t,K$,n),Ki(t,G$,e))}function ZI(t){return{scope:t[G$],isolationScope:t[K$]}}function fu(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=qt(),n=t||e&&e.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class gm{constructor(e={}){this._traceId=e.traceId||uu(),this._spanId=e.spanId||du()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:B$}}end(e){}setAttribute(e,n){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,n,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,n){}}const b9="production",Y$="_frozenDsc";function JI(t,e){Ki(t,Y$,e)}function Q$(t,e){const n=e.getOptions(),{publicKey:r}=e.getDsn()||{},s=Cr({environment:n.environment||b9,release:n.release,public_key:r,trace_id:t});return e.emit("createDsc",s),s}function X$(t,e){const n=e.getPropagationContext();return n.dsc||Q$(n.traceId,t)}function Ef(t){const e=qt();if(!e)return{};const n=Xr(t),r=n[Y$];if(r)return r;const s=n.spanContext().traceState,i=s&&s.get("sentry.dsc"),o=i&&L$(i);if(o)return o;const a=Q$(t.spanContext().traceId,e),c=sn(n),d=c.data||{},p=d[$$];p!=null&&(a.sample_rate=`${p}`);const m=d[fi],v=c.description;return m!=="url"&&v&&(a.transaction=v),fu()&&(a.sampled=String(_f(n))),e.emit("createDsc",a,n),a}function NJ(t){if(!Nt)return;const{description:e="< unknown name >",op:n="< unknown op >",parent_span_id:r}=sn(t),{spanId:s}=t.spanContext(),i=_f(t),o=Xr(t),a=o===t,c=`[Tracing] Starting ${i?"sampled":"unsampled"} ${a?"root ":""}span`,d=[`op: ${n}`,`name: ${e}`,`ID: ${s}`];if(r&&d.push(`parent ID: ${r}`),!a){const{op:p,description:m}=sn(o);d.push(`root ID: ${o.spanContext().spanId}`),p&&d.push(`root op: ${p}`),m&&d.push(`root description: ${m}`)}Fe.log(`${c}
23  ${d.join(`
24  `)}`)}function MJ(t){if(!Nt)return;const{description:e="< unknown name >",op:n="< unknown op >"}=sn(t),{spanId:r}=t.spanContext(),i=Xr(t)===t,o=`[Tracing] Finishing "${n}" ${i?"root ":""}span "${e}" with ID ${r}`;Fe.log(o)}function Ey(t){if(typeof t=="boolean")return Number(t);const e=typeof t=="string"?parseFloat(t):t;if(typeof e!="number"||isNaN(e)||e<0||e>
241){Nt&&Fe.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`);return}return e}function kJ(t,e){if(!fu(t))return[!1];const n=Bo().getScopeData().sdkProcessingMetadata.normalizedRequest,r={...e,normalizedRequest:e.normalizedRequest||n};let s;typeof t.tracesSampler=="function"?s=t.tracesSampler(r):r.parentSampled!==void 0?s=r.parentSampled:typeof t.tracesSampleRate<"u"?s=t.tracesSampleRate:s=1;const i=Ey(s);return i===void 0?(Nt&&Fe.warn("[Tracing] Discarding transaction because of invalid sample rate."),[!1]):i?Math.random()<i?[!0,i]:(Nt&&Fe.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[!1,i]):(Nt&&Fe.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i])}const DJ=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function OJ(t){return t==="http"||t==="https"}function I2(t,e=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:c}=t;return`${a}://${c}${e&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function $J(t){const e=DJ.exec(t);if(!e){Mu(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[n,r,s="",i="",o="",a=""]=e.slice(1);let c="",d=a;const p=d.split("/");if(p.length>1&&(c=p.slice(0,-1).join("/"),d=p.pop()),d){const m=d.match(/^\d+/);m&&(d=m[0])}return Z$({host:i,pass:s,path:c,projectId:d,port:o,protocol:n,publicKey:r})}function Z$(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function FJ(t){if(!Nu)return!0;const{port:e,projectId:n,protocol:r}=t;return["protocol","publicKey","host","projectId"].find(o=>t[o]?!1:(Fe.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?OJ(r)?e&&isNaN(parseInt(e,10))?(Fe.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(Fe.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Fe.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function jJ(t){const e=typeof t=="string"?$J(t):Z$(t);if(!(!e||!FJ(e)))return e}function LJ(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function n(s){if(t)return e.has(s)?!0:(e.add(s),!1);for(let i=0;i<e.length;i++)if(e[i]===s)return!0;return e.push(s),!1}function r(s){if(t)e.delete(s);else for(let i=0;i<e.length;i++)if(e[i]===s){e.splice(i,1);break}}return[n,r]}function Eo(t,e=100,n=1/0){try{return I8("",t,e,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function J$(t,e=3,n=100*1024){const r=Eo(t,e);return HJ(r)>n?J$(t,e-1,n):r}function I8(t,e,n=1/0,r=1/0,s=LJ()){const[i,o]=s;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const a=zJ(t,e);if(!a.startsWith("[object "))return a;if(e.__sentry_skip_normalization__)return e;const c=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(e))return"[Circular ~]";const d=e;if(d&&typeof d.toJSON=="function")try{const w=d.toJSON();return I8("",w,c-1,r,s)}catch{}const p=Array.isArray(e)?[]:{};let m=0;const v=k$(e);for(const w in v){if(!Object.prototype.hasOwnProperty.call(v,w))continue;if(m>=r){p[w]="[MaxProperties ~]";break}const E=v[w];p[w]=I8(w,E,c-1,r,s),m++}return o(e),p}function zJ(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(P$(e))return"[VueViewModel]";if(WZ(e))return"[SyntheticEvent]";if(typeof e=="number"&&!Number.isFinite(e))return`[${e}]`;if(typeof e=="function")return`[Function: ${Pl(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const n=VJ(e);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function VJ(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function BJ(t){return~-encodeURI(t).split(/%..|./).length}function HJ(t){return BJ(JSON.stringify(t))}function bf(t,e=[]){return[t,e]}function UJ(t,e){const[n,r]=t;return[n,[...r,e]]}function eP(t,e){const n=t[1];for(const r of n){const s=r[0].type;if(e(r,s))return!0}return!1}function P8(t){return Qt.__SENTRY__&&Qt.__SENTRY__.encodePolyfill?Qt.__SENTRY__.encodePolyfill(t):new TextEncoder().encode(t)}function WJ(t){const[e,n]=t;let r=JSON.stringify(e);function s(i){typeof r=="string"?r=typeof i=="string"?r+i:[P8(r),i]:r.push(typeof i=="string"?P8(i):i)}for(const i of n){const[o,a]=i;
24if(s(`
25${JSON.stringify(o)}
26`),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Eo(a))}s(c)}}return typeof r=="string"?r:qJ(r)}function qJ(t){const e=t.reduce((s,i)=>s+i.length,0),n=new Uint8Array(e);let r=0;for(const s of t)n.set(s,r),r+=s.length;return n}function GJ(t){return[{type:"span"},t]}function KJ(t){const e=typeof t.data=="string"?P8(t.data):t.data;return[Cr({type:"attachment",length:e.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),e]}const YJ={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function tP(t){return YJ[t]}function S9(t){if(!t||!t.sdk)return;const{name:e,version:n}=t.sdk;return{name:e,version:n}}function eF(t,e,n,r){const s=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!n&&r&&{dsn:I2(r)},...s&&{trace:Cr({...s})}}}function QJ(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function XJ(t,e,n,r){const s=S9(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&e&&{dsn:I2(e)}},o="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return bf(i,[o])}function ZJ(t,e,n,r){const s=S9(n),i=t.type&&t.type!=="replay_event"?t.type:"event";QJ(t,n&&n.sdk);const o=eF(t,s,r,e);return delete t.sdkProcessingMetadata,bf(o,[[{type:i},t]])}function JJ(t,e){function n(p){return!!p.trace_id&&!!p.public_key}const r=Ef(t[0]),s=e&&e.getDsn(),i=e&&e.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!i&&s&&{dsn:I2(s)}},a=e&&e.getOptions().beforeSendSpan,c=a?p=>{const m=a(sn(p));return m||q$(),m}:p=>sn(p),d=[];for(const p of t){const m=c(p);m&&d.push(GJ(m))}return bf(o,d)}function eee(t,e,n,r=Fr()){const s=r&&Xr(r);s&&(Nt&&Fe.log(`[Measurement] Setting measurement on root span: ${t} = ${e} ${n}`),s.addEvent(t,{[i5]:e,[s5]:n}))}function nP(t){if(!t||t.length===0)return;const e={};return t.forEach(n=>{const r=n.attributes||{},s=r[s5],i=r[i5];typeof s=="string"&&typeof i=="number"&&(e[n.name]={value:i,unit:s})}),e}const rP=1e3;class C9{constructor(e={}){this._traceId=e.traceId||uu(),this._spanId=e.spanId||du(),this._startTime=e.startTimestamp||Cs(),this._attributes={},this.setAttributes({[mr]:"manual",[kl]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,n){}spanContext(){const{_spanId:e,_traceId:n,_sampled:r}=this;return{spanId:e,traceId:n,traceFlags:r?H$:B$}}setAttribute(e,n){return n===void 0?delete this._attributes[e]:this._attributes[e]=n,this}setAttributes(e){return Object.keys(e).forEach(n=>this.setAttribute(n,e[n])),this}updateStartTime(e){this._startTime=Bd(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(fi,"custom"),this}end(e){this._endTime||(this._endTime=Bd(e),MJ(this),this._onSpanEnded())}getSpanJSON(){return Cr({data:this._attributes,description:this._name,op:this._attributes[kl],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:U$(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[mr],_metrics_summary:S8(this),profile_id:this._attributes[hJ],exclusive_time:this._attributes[_9],measurements:nP(this._events),is_segment:this._isStandaloneSpan&&Xr(this)===this||void 0,segment_id:this._isStandaloneSpan?Xr(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,n,r){Nt&&Fe.log("[Tracing] Adding an event to span:",e);const s=sP(n)?n:r||Cs(),i=sP(n)?{}:n||{},o={name:e,time:Bd(s),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=qt();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===Xr(this)))return;if(this._isStandaloneSpan){this._sampled?nee(JJ([this],e)):(Nt&&Fe.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(ZI(this).scope||In()).captureEvent(r)}_convertSpanToTransaction(){if(!iP(sn(this)))return;this._name||(Nt&&Fe.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:n}=ZI(this),s=(e||In()).getClient()||qt();if(this._sampled!==!0){Nt&&Fe.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),s&&s.recordDroppedEvent("sample_rate","transaction");return}const o=k3(this).filter(m=>m!==this&&!tee(m)).map(m=>sn(m)).filter(iP),a=this._attributes[fi];delete this._attributes[GI],o.forEach(m=>{m.data&&delete m.data[GI]});const c={contexts:{trace:bJ(this)},spans:o.length>rP?o.sort((m,v)=>m.start_timestamp-v.start_timestamp).slice(0,rP):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:n,...Cr({dynamicSamplingContext:Ef(this)})},_metrics_summary:S8(this),...a&&{transaction_info:{source:a}}},d=nP(this._events);return d&&Object.keys(d).length&&(Nt&&Fe.log("[Measurements] Adding measurements to transaction event",JSON.stringify(d,void 0,2)),c.measurements=d),c}}function sP(t){return t&&typeof t=="number"||t instanceof Date||Array.isArray(t)}function iP(t){return!!t.start_timestamp&&!!t.timestamp&&!!t.span_id&&!!t.trace_id}function tee(t){return t instanceof C9&&t.isStandaloneSpan()}function nee(t){const e=qt();if(!e)return;const n=t[1];if(!n||n.length===0){e.recordDroppedEvent("before_send","span");return}e.sendEnvelope(t)}const tF="__SENTRY_SUPPRESS_TRACING__";function P2(t){const e=rF();if(e.startInactiveSpan)return e.startInactiveSpan(t);const n=see(t),{forceTransaction:r,parentSpan:s}=t;return(t.scope?o=>
26w9(t.scope,o):s!==void 0?o=>nF(s,o):o=>o())(()=>{const o=In(),a=oee(o);return t.onlyIfParent&&!a?new gm:ree({parentSpan:a,spanArguments:n,forceTransaction:r,scope:o})})}function nF(t,e){const n=rF();return n.withActiveSpan?n.withActiveSpan(t,e):w9(r=>(I0(r,t||void 0),e(r)))}function ree({parentSpan:t,spanArguments:e,forceTransaction:n,scope:r}){if(!fu())return new gm;const s=Bo();let i;if(t&&!n)i=iee(t,r,e),W$(t,i);else if(t){const o=Ef(t),{traceId:a,spanId:c}=t.spanContext(),d=_f(t);i=oP({traceId:a,parentSpanId:c,...e},r,d),JI(i,o)}else{const{traceId:o,dsc:a,parentSpanId:c,sampled:d}={...s.getPropagationContext(),...r.getPropagationContext()};i=oP({traceId:o,parentSpanId:c,...e},r,d),a&&JI(i,a)}return NJ(i),RJ(i,r,s),i}function see(t){const n={isStandalone:(t.experimental||{}).standalone,...t};if(t.startTime){const r={...n};return r.startTimestamp=Bd(t.startTime),delete r.startTime,r}return n}function rF(){const t=wf();return mm(t)}function oP(t,e,n){const r=qt(),s=r&&r.getOptions()||{},{name:i="",attributes:o}=t,[a,c]=e.getScopeData().sdkProcessingMetadata[tF]?[!1]:kJ(s,{name:i,parentSampled:n,attributes:o,transactionContext:{name:i,parentSampled:n}}),d=new C9({...t,attributes:{[fi]:"custom",...t.attributes},sampled:a});return c!==void 0&&d.setAttribute($$,c),r&&r.emit("spanStart",d),d}function iee(t,e,n){const{spanId:r,traceId:s}=t.spanContext(),i=e.getScopeData().sdkProcessingMetadata[tF]?!1:_f(t),o=i?new C9({...n,parentSpanId:r,traceId:s,sampled:i}):new gm({traceId:s});W$(t,o);const a=qt();return a&&(a.emit("spanStart",o),n.endTimestamp&&a.emit("spanEnd",o)),o}function oee(t){const e=_y(t);if(!e)return;const n=qt();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Xr(e):e}const D3={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},aee="heartbeatFailed",lee="idleTimeout",cee="finalTimeout",uee="externalFinish";function sF(t,e={}){const n=new Map;let r=!1,s,i=uee,o=!e.disableAutoFinish;const a=[],{idleTimeout:c=D3.idleTimeout,finalTimeout:d=D3.finalTimeout,childSpanTimeout:p=D3.childSpanTimeout,beforeSpanEnd:m}=e,v=qt();if(!v||!fu())return new gm;const w=In(),E=Fr(),C=dee(t);C.end=new Proxy(C.end,{apply(F,D,I){m&&m(C);const[T,...k]=I,j=T||Cs(),L=Bd(j),V=k3(C).filter(B=>B!==C);if(!V.length)return O(L),Reflect.apply(F,D,[L,...k]);const Y=V.map(B=>sn(B).timestamp).filter(B=>!!B),G=Y.length?Math.max(...Y):void 0,q=sn(C).start_timestamp,U=Math.min(q?q+d/1e3:1/0,Math.max(q||-1/0,Math.min(L,G||1/0)));return O(U),Reflect.apply(F,D,[U,...k])}});function b(){s&&(clearTimeout(s),s=void 0)}function S(F){b(),s=setTimeout(()=>{!r&&n.size===0&&o&&(i=lee,C.end(F))},c)}function P(F){s=setTimeout(()=>{!r&&o&&(i=aee,C.end(F))},p)}function R(F){b(),n.set(F,!0);const D=Cs();P(D+p/1e3)}function z(F){if(n.has(F)&&n.delete(F),n.size===0){const D=Cs();S(D+c/1e3)}}function O(F){r=!0,n.clear(),a.forEach(L=>L()),I0(w,E);const D=sn(C),{start_timestamp:I}=D;if(!I)return;(D.data||{})[C8]||C.setAttribute(C8,i),Fe.log(`[Tracing] Idle span "${D.op}" finished`);const k=k3(C).filter(L=>L!==C);let j=0;k.forEach(L=>{L.isRecording()&&(L.setStatus({code:Dr,message:"cancelled"}),L.end(F),Nt&&Fe.log("[Tracing] Cancelling span since span ended early",JSON.stringify(L,void 0,2)));const V=sn(L),{timestamp:Y=0,start_timestamp:G=0}=V,q=G<=F,U=(d+c)/1e3,B=Y-G<=U;if(Nt){const ne=JSON.stringify(L,void 0,2);q?B||Fe.log("[Tracing] Discarding span since it finished after idle span final timeout",ne):Fe.log("[Tracing] Discarding span since it happened after idle span was finished",ne)}(!B||!q)&&(IJ(C,L),j++)}),j>0&&C.setAttribute("sentry.idle_span_discarded_spans",j)}return a.push(v.on("spanStart",F=>{if(r||F===C||sn(F).timestamp)return;k3(C).includes(F)&&R(F.spanContext().spanId)})),a.push(v.on("spanEnd",F=>{r||z(F.spanContext().spanId)})),a.push(v.on("idleSpanEnableAutoFinish",F=>{F===C&&(o=!0,S(),n.size&&P())})),e.disableAutoFinish||S(),setTimeout(()=>{r||(C.setStatus({code:Dr,message:"deadline_exceeded"}),i=cee,C.end())},d),C}function dee(t){const e=P2(t);return I0(In(),e),Nt&&Fe.log("[Tracing] Started span is an idle span"),e}function R8(t,e,n,r=0){return new ji((s,i)=>{const o=t[r];if(e===null||typeof o!="function")s(e);else{const a=o({...e},n);
vendor: 4,470 bytes, line 26
26Nt&&o.id&&a===null&&Fe.log(`Event processor "${o.id}" dropped event`),n5(a)?a.then(c=>R8(t,c,n,r+1).then(s)).then(null,i):R8(t,a,n,r+1).then(s).then(null,i)}})}let Fv,aP,jv;function fee(t){const e=Qt._sentryDebugIds;if(!e)return{};const n=Object.keys(e);return jv&&n.length===aP||(aP=n.length,jv=n.reduce((r,s)=>{Fv||(Fv={});const i=Fv[s];if(i)r[i[0]]=i[1];else{const o=t(s);for(let a=o.length-1;a>=0;a--){const c=o[a],d=c&&c.filename,p=e[s];if(d&&p){r[d]=p,Fv[s]=[d,p];break}}}return r},{})),jv}function hee(t,e){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=e;pee(t,e),r&&vee(t,r),yee(t,n),mee(t,s),gee(t,i)}function lP(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:d,eventProcessors:p,attachments:m,propagationContext:v,transactionName:w,span:E}=e;Lv(t,"extra",n),Lv(t,"tags",r),Lv(t,"user",s),Lv(t,"contexts",i),t.sdkProcessingMetadata=r5(t.sdkProcessingMetadata,a,2),o&&(t.level=o),w&&(t.transactionName=w),E&&(t.span=E),c.length&&(t.breadcrumbs=[...t.breadcrumbs,...c]),d.length&&(t.fingerprint=[...t.fingerprint,...d]),p.length&&(t.eventProcessors=[...t.eventProcessors,...p]),m.length&&(t.attachments=[...t.attachments,...m]),t.propagationContext={...t.propagationContext,...v}}function Lv(t,e,n){t[e]=r5(t[e],n,1)}function pee(t,e){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=e,c=Cr(n);c&&Object.keys(c).length&&(t.extra={...c,...t.extra});const d=Cr(r);d&&Object.keys(d).length&&(t.tags={...d,...t.tags});const p=Cr(s);p&&Object.keys(p).length&&(t.user={...p,...t.user});const m=Cr(i);m&&Object.keys(m).length&&(t.contexts={...m,...t.contexts}),o&&(t.level=o),a&&t.type!=="transaction"&&(t.transaction=a)}function mee(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function gee(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function vee(t,e){t.contexts={trace:SJ(e),...t.contexts},t.sdkProcessingMetadata={dynamicSamplingContext:Ef(e),...t.sdkProcessingMetadata};const n=Xr(e),r=sn(n).description;r&&!t.transaction&&t.type==="transaction"&&(t.transaction=r)}function yee(t,e){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}function iF(t,e,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=t,c={...e,event_id:e.event_id||n.event_id||hi(),timestamp:e.timestamp||A2()},d=n.integrations||t.integrations.map(b=>b.name);xee(c,t),Eee(c,d),s&&s.emit("applyFrameMetadata",e),e.type===void 0&&wee(c,t.stackParser);const p=See(r,n.captureContext);n.mechanism&&Op(c,n.mechanism);const m=s?s.getEventProcessors():[],v=uJ().getScopeData();if(i){const b=i.getScopeData();lP(v,b)}if(p){const b=p.getScopeData();lP(v,b)}const w=[...n.attachments||[],...v.attachments];w.length&&(n.attachments=w),hee(c,v);const E=[...m,...v.eventProcessors];return R8(E,c,n).then(b=>(b&&_ee(b),typeof o=="number"&&o>0?bee(b,o,a):b))}function xee(t,e){const{environment:n,release:r,dist:s,maxValueLength:i=250}=e;t.environment=t.environment||n||b9,!t.release&&r&&(t.release=r),!t.dist&&s&&(t.dist=s),t.message&&(t.message=sp(t.message,i));const o=t.exception&&t.exception.values&&t.exception.values[0];o&&o.value&&(o.value=sp(o.value,i));const a=t.request;a&&a.url&&(a.url=sp(a.url,i))}function wee(t,e){const n=fee(e);try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{n&&s.filename&&(s.debug_id=n[s.filename])})})}catch{}}function _ee(t){const e={};try{t.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?e[s.abs_path]=s.debug_id:s.filename&&(e[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const n=t.debug_meta.images;Object.entries(e).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function Eee(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function bee(t,e,n){if(!t)return null;const r={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(s=>({...s,...s.data&&{data:Eo(s.data,e,n)}}))},...t.user&&{user:Eo(t.user,e,n)},...t.contexts&&{contexts:Eo(t.contexts,e,n)},...t.extra&&{extra:Eo(t.extra,e,n)}};return t.contexts&&t.contexts.trace&&r.contexts&&(r.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(r.contexts.trace.data=Eo(t.contexts.trace.data,e,
26n))),t.spans&&(r.spans=t.spans.map(s=>({...s,...s.data&&{data:Eo(s.data,e,n)}}))),t.contexts&&t.contexts.flags&&r.contexts&&(r.contexts.flags=Eo(t.contexts.flags,3,n)),r}function See(t,e){if(!e)return t;const n=t?t.clone():new Zd;return n.update(e),n}function hu(t,e){return In().captureException(t,void 0)}function oF(t,e){return In().captureEvent(t,e)}function aF(t,e){Bo().setContext(t,e)}function Cee(){const t=qt();return!!t&&t.getOptions().enabled!==!1&&!!t.getTransport()}function Tee(t){Bo().addEventProcessor(t)}function cP(t){const e=qt(),n=Bo(),r=In(),{release:s,environment:i=b9}=e&&e.getOptions()||{},{userAgent:o}=Qt.navigator||{},a=eJ({release:s,environment:i,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...t}),c=n.getSession();return c&&c.status==="ok"&&$p(c,{status:"exited"}),lF(),n.setSession(a),r.setSession(a),a}function lF(){const t=Bo(),e=In(),n=e.getSession()||t.getSession();n&&tJ(n),cF(),t.setSession(),e.setSession()}function cF(){const t=Bo(),e=In(),n=qt(),r=e.getSession()||t.getSession();r&&n&&n.captureSession(r)}function uP(t=!1){if(t){lF();return}cF()}const Aee="7";function Iee(t){const e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}function Pee(t){return`${Iee(t)}${t.projectId}/envelope/`}function Ree(t,e){const n={sentry_version:Aee};return t.publicKey&&(n.sentry_key=t.publicKey),e&&(n.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(n).toString()}function Nee(t,e,n){return e||`${Pee(t)}?${Ree(t,n)}`}const dP=[];function Mee(t){const e={};return t.forEach(n=>{const{name:r}=n,s=e[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(e[r]=n)}),Object.values(e)}function kee(t){const e=t.defaultIntegrations||[],n=t.integrations;e.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...e,...n];else if(typeof n=="function"){const o=n(e);r=Array.isArray(o)?o:[o]}else r=e;const s=Mee(r),i=s.findIndex(o=>o.name==="Debug");if(i>-1){const[o]=s.splice(i,1);s.push(o)}return s}function Dee(t,e){const n={};return e.forEach(r=>{r&&uF(t,r,n)}),n}function fP(t,e){for(const n of e)n&&n.afterAllSetup&&n.afterAllSetup(t)}function uF(t,e,n){if(n[e.name]){Nt&&Fe.log(`Integration skipped because it was already installed: ${e.name}`);return}if(n[e.name]=e,dP.indexOf(e.name)===-1&&typeof e.setupOnce=="function"&&(e.setupOnce(),dP.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);t.on("preprocessEvent",(s,i)=>r(s,i,t))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),s=Object.assign((i,o)=>r(i,o,t),{id:e.name});t.addEventProcessor(s)}Nt&&Fe.log(`Integration installed: ${e.name}`)}function Oee(t,e,n){const r=[{type:"client_report"},{timestamp:A2(),discarded_events:t}];return bf(e?{dsn:e}:{},[r])}class So extends Error{constructor(e,n="warn"){super(e),this.message=e,this.logLevel=n}}const hP="Not capturing exception because it's already been captured.";class $ee{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=jJ(e.dsn):Nt&&Fe.warn("No DSN provided, client will not send events."),this._dsn){const s=Nee(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:s})}const r=["enableTracing","tracesSampleRate","tracesSampler"].find(s=>s in e&&e[s]==null);r&&Mu(()=>{console.warn(`[Sentry] Deprecation warning: \`${r}\` is set to undefined, which leads to tracing being enabled. In v9, a value of \`undefined\` will result in tracing being disabled.`)})}captureException(e,n,r){const s=hi();if(WI(e))return Nt&&Fe.log(hP),s;const i={event_id:s,...n};return this._process(this.eventFromException(e,i).then(o=>this._captureEvent(o,i,r))),i.event_id}captureMessage(e,n,r,s){const i={event_id:hi(),...r},o=g9(e)?e:String(e),a=v9(e)?this.eventFromMessage(o,n,i):this.eventFromException(e,i);return this._process(a.then(c=>this._captureEvent(c,i,s))),i.event_id}captureEvent(e,n,r){const s=hi();if(n&&n.originalException&&WI(n.originalException))return Nt&&Fe.log(hP),s;const i={event_id:s,...n},a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,a||r)),i.event_id}captureSession(e){typeof e.release!="string"?Nt&&Fe.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),$p(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const n=this._transport;
26return n?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>n.flush(e).then(s=>r&&s))):Ml(!0)}close(e){return this.flush(e).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const n=this._integrations[e.name];uF(this,e,this._integrations),n||fP(this,[e])}sendEvent(e,n={}){this.emit("beforeSendEvent",e,n);let r=ZJ(e,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=UJ(r,KJ(i));const s=this.sendEnvelope(r);s&&s.then(i=>this.emit("afterSendEvent",e,i),null)}sendSession(e){const n=XJ(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,n,r){if(this._options.sendClientReports){const s=typeof r=="number"?r:1,i=`${e}:${n}`;Nt&&Fe.log(`Recording outcome: "${i}"${s>1?` (${s} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+s}}on(e,n){const r=this._hooks[e]=this._hooks[e]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(e,...n){const r=this._hooks[e];r&&r.forEach(s=>s(...n))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,n=>(Nt&&Fe.error("Error while sending envelope:",n),n)):(Nt&&Fe.error("Transport disabled"),Ml({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=Dee(this,e),fP(this,e)}_updateSessionFromEvent(e,n){let r=n.level==="fatal",s=!1;const i=n.exception&&n.exception.values;if(i){s=!0;for(const c of i){const d=c.mechanism;if(d&&d.handled===!1){r=!0;break}}}const o=e.status==="ok";(o&&e.errors===0||o&&r)&&($p(e,{...r&&{status:"crashed"},errors:e.errors||Number(s||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ji(n=>{let r=0;const s=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=s,e&&r>=e&&(clearInterval(i),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,n,r=In(),s=Bo()){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),this.emit("preprocessEvent",e,n),e.type||s.setLastEventId(e.event_id||n.event_id),iF(i,e,n,r,this,s).then(a=>{if(a===null)return a;a.contexts={trace:dJ(r),...a.contexts};const c=X$(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(e,n={},r){return this._processEvent(e,n,r).then(s=>s.event_id,s=>{Nt&&(s instanceof So&&s.logLevel==="log"?Fe.log(s.message):Fe.warn(s))})}_processEvent(e,n,r){const s=this.getOptions(),{sampleRate:i}=s,o=fF(e),a=dF(e),c=e.type||"error",d=`before send for type \`${c}\``,p=typeof i>"u"?void 0:Ey(i);if(a&&typeof p=="number"&&Math.random()>p)return this.recordDroppedEvent("sample_rate","error",e),wy(new So(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const m=c==="replay_event"?"replay":c,w=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,n,r,w).then(E=>{if(E===null)throw this.recordDroppedEvent("event_processor",m,e),new So("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return E;const b=jee(this,s,E,n);return Fee(b,d)}).then(E=>{if(E===null){if(this.recordDroppedEvent("before_send",m,e),o){const P=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",P)}throw new So(`${d} returned \`null\`, will not send event.`,"log")}const C=r&&r.getSession();if(!o&&C&&this._updateSessionFromEvent(C,E),o){const S=E.sdkProcessingMetadata&&E.sdkProcessingMetadata.spanCountBeforeProcessing||0,P=E.spans?E.spans.length:0,R=S-P;R>0&&this.recordDroppedEvent("before_send","span",R)}const b=E.transaction_info;if(o&&b&&E.transaction!==e.transaction){const S="custom";E.transaction_info={...b,source:S}}return this.sendEvent(E,n),E}).then(null,E=>{throw E instanceof So?E:(this.captureException(E,{data:{__sentry__:!0},originalException:E}),new So(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
27Reason: ${E}`))})}_process(e){this._numProcessing++,e.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([n,r])=>{const[s,i]=n.split(":");return{reason:s,category:i,quantity:r}})}_flushOutcomes(){Nt&&Fe.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){Nt&&Fe.log("No outcomes to send");return}if(!this._dsn){Nt&&Fe.log("No dsn provided, will not send outcomes");return}Nt&&Fe.log("Sending outcomes:",e);const n=Oee(e,this._options.tunnel&&I2(this._dsn));this.sendEnvelope(n)}}function Fee(t,e){const n=`${e} must return \`null\` or a valid event.`;if(n5(t))return t.then(r=>{if(!Dp(r)&&r!==null)throw new So(n);return r},r=>{throw new So(`${e} rejected with ${r}`)});if(!Dp(t)&&t!==null)throw new So(n);return t}function jee(t,e,n,r){const{beforeSend:s,beforeSendTransaction:i,beforeSendSpan:o}=e;if(dF(n)&&s)return s(n,r);if(fF(n)){if(n.spans&&o){const a=[];for(const c of n.spans){const d=o(c);d?a.push(d):(q$(),t.recordDroppedEvent("before_send","span"))}n.spans=a}if(i){if(n.spans){const a=n.spans.length;n.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(n,r)}}return n}function dF(t){return t.type===void 0}function fF(t){return t.type==="transaction"}function Lee(t,e){e.debug===!0&&(Nt?Fe.enable():Mu(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),In().update(e.initialScope);const r=new t(e);return zee(r),r.init(),r}function zee(t){In().setClient(t)}function Vee(t){const e=[];function n(){return t===void 0||e.length<t}function r(o){return e.splice(e.indexOf(o),1)[0]||Promise.resolve(void 0)}function s(o){if(!n())return wy(new So("Not adding Promise because buffer limit was reached."));const a=o();return e.indexOf(a)===-1&&e.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(o){return new ji((a,c)=>{let d=e.length;if(!d)return a(!0);const p=setTimeout(()=>{o&&o>0&&a(!1)},o);e.forEach(m=>{Ml(m).then(()=>{--d||(clearTimeout(p),a(!0))},c)})})}return{$:e,add:s,drain:i}}const Bee=60*1e3;function Hee(t,e=Date.now()){const n=parseInt(`${t}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${t}`);return isNaN(r)?Bee:r-e}function Uee(t,e){return t[e]||t.all||0}function hF(t,e,n=Date.now()){return Uee(t,e)>n}function pF(t,{statusCode:e,headers:n},r=Date.now()){const s={...t},i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(const a of i.trim().split(",")){const[c,d,,,p]=a.split(":",5),m=parseInt(c,10),v=(isNaN(m)?60:m)*1e3;if(!d)s.all=r+v;else for(const w of d.split(";"))w==="metric_bucket"?(!p||p.split(";").includes("custom"))&&(s[w]=r+v):s[w]=r+v}else o?s.all=r+Hee(o,r):e===429&&(s.all=r+60*1e3);return s}const Wee=64;function qee(t,e,n=Vee(t.bufferSize||Wee)){let r={};const s=o=>n.drain(o);function i(o){const a=[];if(eP(o,(m,v)=>{const w=tP(v);if(hF(r,w)){const E=pP(m,v);t.recordDroppedEvent("ratelimit_backoff",w,E)}else a.push(m)}),a.length===0)return Ml({});const c=bf(o[0],a),d=m=>{eP(c,(v,w)=>{const E=pP(v,w);t.recordDroppedEvent(m,tP(w),E)})},p=()=>e({body:WJ(c)}).then(m=>(m.statusCode!==void 0&&(m.statusCode<200||m.statusCode>=300)&&Nt&&Fe.warn(`Sentry responded with status code ${m.statusCode} to sent event.`),r=pF(r,m),m),m=>{throw d("network_error"),m});return n.add(p).then(m=>m,m=>{if(m instanceof So)return Nt&&Fe.error("Skipped sending event because buffer is full."),d("queue_overflow"),Ml({});throw m})}return{send:i,flush:s}}function pP(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}function Gee(t,e){const n=e&&e.getDsn(),r=e&&e.getOptions().tunnel;return Yee(t,n)||Kee(t,r)}function Kee(t,e){return e?mP(t)===mP(e):!1}function Yee(t,e){return e?t.includes(e.host):!1}function mP(t){return t[t.length-1]==="/"?t.slice(0,-1):t}function mF(t,e,n=[e],r="npm"){const s=t._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${e}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:Vd})),version:Vd}),t._metadata=s}function gF(t={}){const e=qt();if(!Cee()||!e)return{};const n=wf(),r=mm(n);if(r.getTraceData)return r.getTraceData(t);const s=In(),i=t.span||Fr(),o=i?CJ(i):Qee(s),a=i?Ef(i):X$(e,s),c=yJ(a);return z$.test(o)?{"sentry-trace":o,baggage:c}:(Fe.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function Qee(t){const{traceId:e,sampled:n,spanId:r}=t.getPropagationContext();return V$(e,r,n)}const Xee=100;function pu(t,e){const n=qt(),r=Bo();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:i=Xee}=n.getOptions();if(i<=0)return;const a={timestamp:A2(),...t}
27,c=s?Mu(()=>s(a,e)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,e),r.addBreadcrumb(c,i))}let gP;const Zee="FunctionToString",vP=new WeakMap,Jee=()=>({name:Zee,setupOnce(){gP=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=y9(this),n=vP.has(qt())&&e!==void 0?e:this;return gP.apply(n,t)}}catch{}},setup(t){vP.set(t,!0)}}),ete=Jee,tte=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",`can't redefine non-configurable property "solana"`,"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],nte="InboundFilters",rte=(t={})=>({name:nte,processEvent(e,n,r){const s=r.getOptions(),i=ite(t,s);return ote(e,i)?null:e}}),ste=rte;function ite(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:tte],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[]],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function ote(t,e){return e.ignoreInternal&&fte(t)?(Nt&&Fe.warn(`Event dropped due to being internal Sentry Error.
28Event: ${Dc(t)}`),!0):ate(t,e.ignoreErrors)?(Nt&&Fe.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
29Event: ${Dc(t)}`),!0):pte(t)?(Nt&&Fe.warn(`Event dropped due to not having an error message, error type or stacktrace.
30Event: ${Dc(t)}`),!0):lte(t,e.ignoreTransactions)?(Nt&&Fe.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
31Event: ${Dc(t)}`),!0):cte(t,e.denyUrls)?(Nt&&Fe.warn(`Event dropped due to being matched by \`denyUrls\` option.
32Event: ${Dc(t)}.
33Url: ${by(t)}`),!0):ute(t,e.allowUrls)?!1:(Nt&&Fe.warn(`Event dropped due to not being matched by \`allowUrls\` option.
34Event: ${Dc(t)}.
35Url: ${by(t)}`),!0)}function ate(t,e){return t.type||!e||!e.length?!1:dte(t).some(n=>tu(n,e))}function lte(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const n=t.transaction;return n?tu(n,e):!1}function cte(t,e){if(!e||!e.length)return!1;const n=by(t);return n?tu(n,e):!1}function ute(t,e){if(!e||!e.length)return!0;const n=by(t);return n?tu(n,e):!0}function dte(t){const e=[];t.message&&e.push(t.message);let n;try{n=t.exception.values[t.exception.values.length-1]}catch{}return n&&n.value&&(e.push(n.value),n.type&&e.push(`${n.type}: ${n.value}`)),e}function fte(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function hte(t=[]){for(let e=t.length-1;e>=0;e--){const n=t[e];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function by(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?hte(e):null}catch{return Nt&&Fe.error(`Cannot extract url for event ${Dc(t)}`),null}}function pte(t){return t.type||!t.exception||!t.exception.values||t.exception.values.length===0?!1:!t.message&&!t.exception.values.some(e=>e.stacktrace||e.type&&e.type!=="Error"||e.value)}function mte(t,e,n=250,r,s,i,o){if(!i.exception||!i.exception.values||!o||!Rl(o.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=gte(N8(t,e,s,o.originalException,r,i.exception.values,a,0),n))}function N8(t,e,n,r,s,i,o,a){if(i.length>=n+1)return i;let c=[...i];if(Rl(r[s],Error)){yP(o,a);const d=t(e,r[s]),p=c.length;xP(d,s,p,a),c=N8(t,e,n,r[s],s,[d,...c],d,p)}return Array.isArray(r.errors)&&r.errors.forEach((d,p)=>{if(Rl(d,Error)){yP(o,a);const m=t(e,d),v=c.length;xP(m,`errors[${p}]`,v,a),c=N8(t,e,n,d,s,[m,...c],m,v)}}),c}function yP(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,...t.type==="AggregateError"&&{is_exception_group:!0}
35,exception_id:e}}function xP(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}function gte(t,e){return t.map(n=>(n.value&&(n.value=sp(n.value,e)),n))}function Ud(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}function vte(t){const e="console";ku(e,t),Du(e,yte)}function yte(){"console"in Qt&&w8.forEach(function(t){t in Qt.console&&Hs(Qt.console,t,function(e){return xy[t]=e,function(...n){Vi("console",{args:n,level:t});const s=xy[t];s&&s.apply(Qt.console,n)}})})}function vF(t){return t==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(t)?t:"log"}const xte="Dedupe",wte=()=>{let t;return{name:xte,processEvent(e){if(e.type)return e;try{if(Ete(e,t))return Nt&&Fe.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},_te=wte;function Ete(t,e){return e?!!(bte(t,e)||Ste(t,e)):!1}function bte(t,e){const n=t.message,r=e.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!xF(t,e)||!yF(t,e))}function Ste(t,e){const n=wP(e),r=wP(t);return!(!n||!r||n.type!==r.type||n.value!==r.value||!xF(t,e)||!yF(t,e))}function yF(t,e){let n=LI(t),r=LI(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function xF(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function wP(t){return t.exception&&t.exception.values&&t.exception.values[0]}function Cte(t,e,n,r,s="auto.http.browser"){if(!t.fetchData)return;const i=fu()&&e(t.fetchData.url);if(t.endTimestamp&&i){const v=t.fetchData.__span;if(!v)return;const w=r[v];w&&(Ite(w,t),delete r[v]);return}const{method:o,url:a}=t.fetchData,c=Ate(a),d=c?Ud(c).host:void 0,p=!!Fr(),m=i&&p?P2({name:`${o} ${a}`,attributes:{url:a,type:"fetch","http.method":o,"http.url":c,"server.address":d,[mr]:s,[kl]:"http.client"}}):new gm;if(t.fetchData.__span=m.spanContext().spanId,r[m.spanContext().spanId]=m,n(t.fetchData.url)){const v=t.args[0],w=t.args[1]||{},E=Tte(v,w,fu()&&p?m:void 0);E&&(t.args[1]=w,w.headers=E)}return m}function Tte(t,e,n){const r=gF({span:n}),s=r["sentry-trace"],i=r.baggage;if(!s)return;const o=e.headers||(Pte(t)?t.headers:void 0);if(o)if(Rte(o)){const a=new Headers(o);if(a.set("sentry-trace",s),i){const c=a.get("baggage");if(c){const d=zv(c);a.set("baggage",d?`${d},${i}`:i)}else a.set("baggage",i)}return a}else if(Array.isArray(o)){const a=[...o.filter(c=>!(Array.isArray(c)&&c[0]==="sentry-trace")).map(c=>{if(Array.isArray(c)&&c[0]==="baggage"&&typeof c[1]=="string"){const[d,p,...m]=c;return[d,zv(p),...m]}else return c}),["sentry-trace",s]];return i&&a.push(["baggage",i]),a}else{const a="baggage"in o?o.baggage:void 0;let c=[];return Array.isArray(a)?c=a.map(d=>typeof d=="string"?zv(d):d).filter(d=>d===""):a&&c.push(zv(a)),i&&c.push(i),{...o,"sentry-trace":s,baggage:c.length>0?c.join(","):void 0}}else return{...r}}function Ate(t){try{return new URL(t).href}catch{return}}function Ite(t,e){if(e.response){j$(t,e.response.status);const n=e.response&&e.response.headers&&e.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&t.setAttribute("http.response_content_length",r)}}else e.error&&t.setStatus({code:Dr,message:"internal_error"});t.end()}function zv(t){return t.split(",").filter(e=>!e.split("=")[0].startsWith(E9)).join(",")}function Pte(t){return typeof Request<"u"&&Rl(t,Request)}function Rte(t){return typeof Headers<"u"&&Rl(t,Headers)}function wF(t){if(t!==void 0)return t>=400&&t<500?"warning":t>=500?"error":void 0}const M8=Qt;function _F(){if(!("fetch"in M8))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function k8(t){return t&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Nte(){if(typeof EdgeRuntime=="string")return!0;
35if(!_F())return!1;if(k8(M8.fetch))return!0;let t=!1;const e=M8.document;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=k8(n.contentWindow.fetch)),e.head.removeChild(n)}catch(n){Nu&&Fe.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return t}function EF(t,e){const n="fetch";ku(n,t),Du(n,()=>bF(void 0,e))}function Mte(t){const e="fetch-body-resolved";ku(e,t),Du(e,()=>bF(Dte))}function bF(t,e=!1){e&&!Nte()||Hs(Qt,"fetch",function(n){return function(...r){const s=new Error,{method:i,url:o}=Ote(r),a={args:r,fetchData:{method:i,url:o},startTimestamp:Cs()*1e3,virtualError:s};return t||Vi("fetch",{...a}),n.apply(Qt,r).then(async c=>(t?t(c):Vi("fetch",{...a,endTimestamp:Cs()*1e3,response:c}),c),c=>{throw Vi("fetch",{...a,endTimestamp:Cs()*1e3,error:c}),m9(c)&&c.stack===void 0&&(c.stack=s.stack,Ki(c,"framesToPop",1)),c})}})}async function kte(t,e){if(t&&t.body){const n=t.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let i=!0;for(;i;){let o;try{o=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(o),a&&(e(),i=!1)}catch{i=!1}finally{clearTimeout(o)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function Dte(t){let e;try{e=t.clone()}catch{return}kte(e,()=>{Vi("fetch-body-resolved",{endTimestamp:Cs()*1e3,response:t})})}function D8(t,e){return!!t&&typeof t=="object"&&!!t[e]}function _P(t){return typeof t=="string"?t:t?D8(t,"url")?t.url:t.toString?t.toString():"":""}function Ote(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[n,r]=t;return{url:_P(n),method:D8(r,"method")?String(r.method).toUpperCase():"GET"}}const e=t[0];return{url:_P(e),method:D8(e,"method")?String(e.method).toUpperCase():"GET"}}function $te(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Fte(){return"npm"}function jte(){return!$te()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function EP(){return typeof window<"u"&&(!jte()||Lte())}function Lte(){const t=Qt.process;return!!t&&t.type==="renderer"}const Vv=Qt;function zte(){const t=Vv.chrome,e=t&&t.app&&t.app.runtime,n="history"in Vv&&!!Vv.history.pushState&&!!Vv.history.replaceState;return!e&&n}function Vte(t,e){return t??e()}function O3(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...o)=>n.call(e,...o)),e=void 0)}return n}const Ct=Qt;let O8=0;function SF(){return O8>0}function Bte(){O8++,setTimeout(()=>{O8--})}function jp(t,e={}){function n(s){return typeof s=="function"}if(!n(t))return t;try{const s=t.__sentry_wrapped__;if(s)return typeof s=="function"?s:t;if(y9(t))return t}catch{return t}const r=function(...s){try{const i=s.map(o=>jp(o,e));return t.apply(this,i)}catch(i){throw Bte(),w9(o=>{o.addEventProcessor(a=>(e.mechanism&&(E8(a,void 0),Op(a,e.mechanism)),a.extra={...a.extra,arguments:s},a)),hu(i)}),i}};try{for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}catch{}M$(r,t),Ki(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return t.name}})}catch{}return r}const Ia=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function T9(t,e){const n=A9(t,e),r={type:Gte(e),value:Kte(e)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Hte(t,e,n,r){const s=qt(),i=s&&s.getOptions().normalizeDepth,o=Jte(e),a={__serialized__:J$(e,i)};if(o)return{exception:{values:[T9(t,o)]},extra:a};const c={exception:{values:[{type:t5(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:Xte(e,{isUnhandledRejection:r})}]},extra:a};if(n){const d=A9(t,n);d.length&&(c.exception.values[0].stacktrace={frames:d})}return c}function Tw(t,e){return{exception:{values:[T9(t,e)]}}}function A9(t,e){const n=e.stacktrace||e.stack||"",r=Wte(e),s=qte(e);try{return t(n,r,s)}catch{}return[]}const Ute=/Minified React error #\d+;/i;function Wte(t){return t&&Ute.test(t.message)?1:0}function qte(t){return typeof t.framesToPop=="number"?t.framesToPop:0}function CF(t){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?t instanceof WebAssembly.Exception:!1}function Gte(t){const e=t&&t.name;return!e&&CF(t)?t.message&&Array.isArray(t.message)&&t.message.length==2?t.message[0]:"WebAssembly.Exception":e}function Kte(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:CF(t)&&Array.isArray(t.message)&&t.message.length==2?t.message[1]:e:"No error message"}function Yte(t,e,n,r){const s=n&&n.syntheticException||void 0,i=I9(t,e,s,r);return Op(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Ml(i)}function Qte(t,e,n="info",r,s){const i=r&&r.syntheticException||void 0,o=$8(t,e,i,s);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Ml(o)}function I9(t,e,n,r,s){let i;if(I$(e)&&e.error)return Tw(t,e.error);if(VI(e)||BZ(e)){const o=e;if("stack"in e)i=Tw(t,e);else{const a=o.name||(VI(o)?"DOMError":"DOMException"),c=o.message?`${a}: ${o.message}`:a;i=$8(t,c,n,r),E8(i,c)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return m9(e)?Tw(t,e):Dp(e)||t5(e)?(i=Hte(t,e,n,s),Op(i,{synthetic:!0}),i):(i=$8(t,e,n,r),E8(i,`${e}`),Op(i,{synthetic:!0}),i)}function $8(t,e,n,r){const s={};if(r&&n){const i=A9(t,n);i.length&&(s.exception={values:[{value:e,stacktrace:{frames:i}}]}),Op(s,{synthetic:!0})}
35if(g9(e)){const{__sentry_template_string__:i,__sentry_template_values__:o}=e;return s.logentry={message:i,params:o},s}return s.message=e,s}function Xte(t,{isUnhandledRejection:e}){const n=QZ(t),r=e?"promise rejection":"exception";return I$(t)?`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``:t5(t)?`Event \`${Zte(t)}\` (type=${t.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Zte(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function Jte(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];if(n instanceof Error)return n}}function ene(t,{metadata:e,tunnel:n,dsn:r}){const s={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!n&&!!r&&{dsn:I2(r)}},i=tne(t);return bf(s,[i])}function tne(t){return[{type:"user_report"},t]}class nne extends $ee{constructor(e){const n={parentSpanIsAlwaysRootSpan:!0,...e},r=Ct.SENTRY_SDK_SOURCE||Fte();mF(n,"browser",["browser"],r),super(n),n.sendClientReports&&Ct.document&&Ct.document.addEventListener("visibilitychange",()=>{Ct.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,n){return Yte(this._options.stackParser,e,n,this._options.attachStacktrace)}eventFromMessage(e,n="info",r){return Qte(this._options.stackParser,e,n,r,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){Ia&&Fe.warn("SDK not enabled, will not capture user feedback.");return}const n=ene(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(n)}_prepareEvent(e,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,n,r)}}const P9=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,rne=(t,e)=>t>e[1]?"poor":t>e[0]?"needs-improvement":"good",vm=(t,e,n,r)=>{let s,i;return o=>{e.value>=0&&(o||r)&&(i=e.value-(s||0),(i||s===void 0)&&(s=e.value,e.delta=i,e.rating=rne(e.value,n),t(e)))}},ct=Qt,sne=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,R2=(t=!0)=>{const e=ct.performance&&ct.performance.getEntriesByType&&ct.performance.getEntriesByType("navigation")[0];if(!t||e&&e.responseStart>0&&e.responseStart<performance.now())return e},N2=()=>{const t=R2();return t&&t.activationStart||0},ym=(t,e)=>{const n=R2();let r="navigate";return n&&(ct.document&&ct.document.prerendering||N2()>0?r="prerender":ct.document&&ct.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:sne(),navigationType:r}},Sf=(t,e,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{e(s.getEntries())})});return r.observe(Object.assign({type:t,buffered:!0},n||{})),r}}catch{}},xm=t=>{const e=n=>{(n.type==="pagehide"||ct.document&&ct.document.visibilityState==="hidden")&&t(n)};ct.document&&(addEventListener("visibilitychange",e,!0),addEventListener("pagehide",e,!0))},o5=t=>{let e=!1;return()=>{e||(t(),e=!0)}};let o0=-1;const ine=()=>ct.document.visibilityState==="hidden"&&!ct.document.prerendering?0:1/0,Sy=t=>{ct.document.visibilityState==="hidden"&&o0>-1&&(o0=t.type==="visibilitychange"?t.timeStamp:0,ane())},one=()=>{addEventListener("visibilitychange",Sy,!0),addEventListener("prerenderingchange",Sy,!0)},ane=()=>{removeEventListener("visibilitychange",Sy,!0),removeEventListener("prerenderingchange",Sy,!0)},a5=()=>(ct.document&&o0<0&&(o0=ine(),one()),{get firstHiddenTime(){return o0}}),M2=t=>{ct.document&&ct.document.prerendering?addEventListener("prerenderingchange",()=>t(),!0):t()},lne=[1800,3e3],cne=(t,e={})=>{M2(()=>{const n=a5(),r=ym("FCP");let s;const o=Sf("paint",a=>{a.forEach(c=>{c.name==="first-contentful-paint"&&(o.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-N2(),0),r.entries.push(c),s(!0)))})});o&&(s=vm(t,r,lne,e.reportAllChanges))})},une=[.1,.25],dne=(t,e={})=>{cne(o5(()=>{const n=ym("CLS",0);let r,s=0,i=[];const o=c=>{c.forEach(d=>{if(!d.hadRecentInput){const p=i[0],m=i[i.length-1];s&&p&&m&&d.startTime-m.startTime<1e3&&d.startTime-p.startTime<5e3?(s+=d.value,i.push(d)):(s=d.value,i=[d])}}),s>n.value&&(n.value=s,n.entries=i,r())},a=Sf("layout-shift",o);a&&(r=vm(t,n,une,e.reportAllChanges),xm(()=>{o(a.takeRecords()),r(!0)}),setTimeout(r,0))}))}
35,fne=[100,300],hne=(t,e={})=>{M2(()=>{const n=a5(),r=ym("FID");let s;const i=c=>{c.startTime<n.firstHiddenTime&&(r.value=c.processingStart-c.startTime,r.entries.push(c),s(!0))},o=c=>{c.forEach(i)},a=Sf("first-input",o);s=vm(t,r,fne,e.reportAllChanges),a&&xm(o5(()=>{o(a.takeRecords()),a.disconnect()}))})};let TF=0,Aw=1/0,Bv=0;const pne=t=>{t.forEach(e=>{e.interactionId&&(Aw=Math.min(Aw,e.interactionId),Bv=Math.max(Bv,e.interactionId),TF=Bv?(Bv-Aw)/7+1:0)})};let F8;const mne=()=>F8?TF:performance.interactionCount||0,gne=()=>{"interactionCount"in performance||F8||(F8=Sf("event",pne,{type:"event",buffered:!0,durationThreshold:0}))},fl=[],Iw=new Map,vne=40;let yne=0;const xne=()=>mne()-yne,wne=()=>{const t=Math.min(fl.length-1,Math.floor(xne()/50));return fl[t]},Pw=10,_ne=[],Ene=t=>{if(_ne.forEach(r=>r(t)),!(t.interactionId||t.entryType==="first-input"))return;const e=fl[fl.length-1],n=Iw.get(t.interactionId);if(n||fl.length<Pw||e&&t.duration>e.latency){if(n)t.duration>n.latency?(n.entries=[t],n.latency=t.duration):t.duration===n.latency&&t.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(t);else{const r={id:t.interactionId,latency:t.duration,entries:[t]};Iw.set(r.id,r),fl.push(r)}fl.sort((r,s)=>s.latency-r.latency),fl.length>Pw&&fl.splice(Pw).forEach(r=>Iw.delete(r.id))}},AF=t=>{const e=ct.requestIdleCallback||ct.setTimeout;let n=-1;return t=o5(t),ct.document&&ct.document.visibilityState==="hidden"?t():(n=e(t),xm(t)),n},bne=[200,500],Sne=(t,e={})=>{"PerformanceEventTiming"in ct&&"interactionId"in PerformanceEventTiming.prototype&&M2(()=>{gne();const n=ym("INP");let r;const s=o=>{AF(()=>{o.forEach(Ene);const a=wne();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())})},i=Sf("event",s,{durationThreshold:e.durationThreshold!=null?e.durationThreshold:vne});r=vm(t,n,bne,e.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),xm(()=>{s(i.takeRecords()),r(!0)}))})},Cne=[2500,4e3],bP={},Tne=(t,e={})=>{M2(()=>{const n=a5(),r=ym("LCP");let s;const i=a=>{e.reportAllChanges||(a=a.slice(-1)),a.forEach(c=>{c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-N2(),0),r.entries=[c],s())})},o=Sf("largest-contentful-paint",i);if(o){s=vm(t,r,Cne,e.reportAllChanges);const a=o5(()=>{bP[r.id]||(i(o.takeRecords()),o.disconnect(),bP[r.id]=!0,s(!0))});["keydown","click"].forEach(c=>{ct.document&&addEventListener(c,()=>AF(a),{once:!0,capture:!0})}),xm(a)}})},Ane=[800,1800],j8=t=>{ct.document&&ct.document.prerendering?M2(()=>j8(t)):ct.document&&ct.document.readyState!=="complete"?addEventListener("load",()=>j8(t),!0):setTimeout(t,0)},Ine=(t,e={})=>{const n=ym("TTFB"),r=vm(t,n,Ane,e.reportAllChanges);j8(()=>{const s=R2();s&&(n.value=Math.max(s.responseStart-N2(),0),n.entries=[s],r(!0))})},a0={},Cy={};let IF,PF,RF,NF,MF;function R9(t,e=!1){return k2("cls",t,Rne,IF,e)}function kF(t,e=!1){return k2("lcp",t,Mne,RF,e)}function DF(t){return k2("fid",t,Nne,PF)}function Pne(t){return k2("ttfb",t,kne,NF)}function OF(t){return k2("inp",t,Dne,MF)}function Lp(t,e){return $F(t,e),Cy[t]||(One(t),Cy[t]=!0),FF(t,e)}function wm(t,e){const n=a0[t];if(!(!n||!n.length))for(const r of n)try{r(e)}catch(s){P9&&Fe.error(`Error while triggering instrumentation handler.
36Type: ${t}
37Name: ${Pl(r)}
38Error:`,s)}}function Rne(){return dne(t=>{wm("cls",{metric:t}),IF=t},{reportAllChanges:!0})}function Nne(){return hne(t=>{wm("fid",{metric:t}),PF=t})}function Mne(){return Tne(t=>{wm("lcp",{metric:t}),RF=t},{reportAllChanges:!0})}function kne(){return Ine(t=>{wm("ttfb",{metric:t}),NF=t})}function Dne(){return Sne(t=>{wm("inp",{metric:t}),MF=t})}function k2(t,e,n,r,s=!1){$F(t,e);let i;return Cy[t]||(i=n(),Cy[t]=!0),r&&e({metric:r}),FF(t,e,s?i:void 0)}function One(t){const e={};t==="event"&&(e.durationThreshold=0),Sf(t,n=>{wm(t,{entries:n})},e)}function $F(t,e){a0[t]=a0[t]||[],a0[t].push(e)}function FF(t,e,n){return()=>{n&&n();const r=a0[t];if(!r)return;const s=r.indexOf(e);s!==-1&&r.splice(s,1)}}function $ne(t){return"duration"in t}function Rw(t){return typeof t=="number"&&isFinite(t)}function Dl(t,e,n,{...r}){const s=sn(t).start_timestamp;return s&&s>e&&typeof t.updateStartTime=="function"&&t.updateStartTime(e),nF(t,()=>{const i=P2({startTime:e,...r});return i&&i.end(n),i})}function jF(t){const e=qt();if(!e)return;const{name:n,transaction:r,attributes:s,startTime:i}=t,{release:o,environment:a}=e.getOptions(),c=e.getIntegrationByName("Replay"),d=c&&c.getReplayId(),p=In(),m=p.getUser(),v=m!==void 0?m.email||m.id||m.ip_address:void 0;let w;try{w=p.getScopeData().contexts.profile.profile_id}catch{}const E={release:o,environment:a,user:v||void 0,profile_id:w||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":ct.navigator&&ct.navigator.userAgent,...s};return P2({name:n,attributes:E,startTime:i,experimental:{standalone:!0}})}function N9(){return ct&&ct.addEventListener&&ct.performance}function ar(t){return t/1e3}function LF(t){let e="unknown",n="unknown",r="";for(const s of t){if(s==="/"){[e,n]=t.split("/");break}if(!isNaN(Number(s))){e=r==="h"?"http":r,n=t.split(r)[1];break}r+=s}return r===t&&(e=r),{name:e,version:n}}function Fne(){let t=0,e,n;if(!Lne())return;let r=!1;function s(){r||(r=!0,n&&jne(t,e,n),i())}const i=R9(({metric:o})=>{const a=o.entries[o.entries.length-1];a&&(t=o.value,e=a)},!0);xm(()=>{s()}),setTimeout(()=>{const o=qt();if(!o)return;const a=o.on("startNavigationSpan",()=>{s(),a&&a()}),c=Fr(),d=c&&Xr(c),p=d&&sn(d);p&&p.op==="pageload"&&(n=d.spanContext().spanId)},0)}function jne(t,e,n){P9&&Fe.log(`Sending CLS span (${t})`);const r=ar((Ts||0)+(e&&e.startTime||0)),s=In().getScopeData().transactionName,i=e?Nl(e.sources[0]&&e.sources[0].node):"Layout shift",o=Cr({[mr]:"auto.http.browser.cls",[kl]:"ui.webvital.cls",[_9]:e&&e.duration||0,"sentry.pageload.span_id":n}),a=jF({name:i,transaction:s,attributes:o,startTime:r});a&&(a.addEvent("cls",{[s5]:"",[i5]:t}),a.end(r))}function Lne(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const zne=2147483647;let SP=0,Wr={},js,l0;function Vne({recordClsStandaloneSpans:t}){const e=N9();if(e&&Ts){e.mark&&ct.performance.mark("sentry-tracing-init");const n=Gne(),r=qne(),s=Kne(),i=t?Fne():Wne();return()=>{n(),r(),s(),i&&i()}}return()=>{}}function Bne(){Lp("longtask",({entries:t})=>{const e=Fr();if(!e)return;const{op:n,start_timestamp:r}=sn(e);for(const s of t){const i=ar(Ts+s.startTime),o=ar(s.duration);n==="navigation"&&r&&i<r||Dl(e,i,i+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[mr]:"auto.ui.browser.metrics"}})}})}function Hne(){new PerformanceObserver(e=>{const n=Fr();if(n)for(const r of e.getEntries()){if(!r.scripts[0])continue;const s=ar(Ts+r.startTime),{start_timestamp:i,op:o}=sn(n);if(o==="navigation"&&i&&s<i)continue;const a=ar(r.duration),c={[mr]:"auto.ui.browser.metrics"},d=r.scripts[0],{invoker:p,invokerType:m,sourceURL:v,sourceFunctionName:w,sourceCharPosition:E}=d;c["browser.script.invoker"]=p,c["browser.script.invoker_type"]=m,v&&(c["code.filepath"]=v),w&&(c["code.function"]=w),E!==-1&&(c["browser.script.source_char_position"]=E),Dl(n,s,s+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function Une(){Lp("event",({entries:t})=>{const e=Fr();if(e){for(const n of t)if(n.name==="click"){const r=ar(Ts+n.startTime),s=ar(n.duration),i={name:Nl(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[mr]:"auto.ui.browser.metrics"}},o=N$(n.target);o&&(i.attributes["ui.component_name"]=o),Dl(e,r,r+s,i)}}})}function Wne(){return R9(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Wr.cls={value:t.value,unit:""},l0=e)},!0)}function qne(){return kF(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(Wr.lcp={value:t.value,unit:"millisecond"},js=e)},!0)}function Gne(){return DF(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const n=ar(Ts),r=ar(e.startTime);Wr.fid={value:t.value,unit:"millisecond"},Wr["mark.fid"]={value:n+r,unit:"second"}})}function Kne(){return Pne(({metric:t})=>
38{t.entries[t.entries.length-1]&&(Wr.ttfb={value:t.value,unit:"millisecond"})})}function Yne(t,e){const n=N9();if(!n||!n.getEntries||!Ts)return;const r=ar(Ts),s=n.getEntries(),{op:i,start_timestamp:o}=sn(t);if(s.slice(SP).forEach(a=>{const c=ar(a.startTime),d=ar(Math.max(0,a.duration));if(!(i==="navigation"&&o&&r+c<o))switch(a.entryType){case"navigation":{Xne(t,a,r);break}case"mark":case"paint":case"measure":{Qne(t,a,c,d,r);const p=a5(),m=a.startTime<p.firstHiddenTime;a.name==="first-paint"&&m&&(Wr.fp={value:a.startTime,unit:"millisecond"}),a.name==="first-contentful-paint"&&m&&(Wr.fcp={value:a.startTime,unit:"millisecond"});break}case"resource":{ere(t,a,a.name,c,d,r);break}}}),SP=Math.max(s.length-1,0),tre(t),i==="pageload"){rre(Wr);const a=Wr["mark.fid"];a&&Wr.fid&&(Dl(t,a.value,a.value+ar(Wr.fid.value),{name:"first input delay",op:"ui.action",attributes:{[mr]:"auto.ui.browser.metrics"}}),delete Wr["mark.fid"]),(!("fcp"in Wr)||!e.recordClsOnPageloadSpan)&&delete Wr.cls,Object.entries(Wr).forEach(([c,d])=>{eee(c,d.value,d.unit)}),t.setAttribute("performance.timeOrigin",r),t.setAttribute("performance.activationStart",N2()),nre(t)}js=void 0,l0=void 0,Wr={}}function Qne(t,e,n,r,s){const i=R2(!1),o=ar(i?i.requestStart:0),a=s+Math.max(n,o),c=s+n,d=c+r,p={[mr]:"auto.resource.browser.metrics"};return a!==c&&(p["sentry.browser.measure_happened_before_request"]=!0,p["sentry.browser.measure_start_time"]=a),Dl(t,a,d,{name:e.name,op:e.entryType,attributes:p}),a}function Xne(t,e,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Hv(t,e,r,n)}),Hv(t,e,"secureConnection",n,"TLS/SSL"),Hv(t,e,"fetch",n,"cache"),Hv(t,e,"domainLookup",n,"DNS"),Jne(t,e,n)}function Hv(t,e,n,r,s=n){const i=Zne(n),o=e[i],a=e[`${n}Start`];!a||!o||Dl(t,r+ar(a),r+ar(o),{op:`browser.${s}`,name:e.name,attributes:{[mr]:"auto.ui.browser.metrics"}})}function Zne(t){return t==="secureConnection"?"connectEnd":t==="fetch"?"domainLookupStart":`${t}End`}function Jne(t,e,n){const r=n+ar(e.requestStart),s=n+ar(e.responseEnd),i=n+ar(e.responseStart);e.responseEnd&&(Dl(t,r,s,{op:"browser.request",name:e.name,attributes:{[mr]:"auto.ui.browser.metrics"}}),Dl(t,i,s,{op:"browser.response",name:e.name,attributes:{[mr]:"auto.ui.browser.metrics"}}))}function ere(t,e,n,r,s,i){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const o=Ud(n),a={[mr]:"auto.resource.browser.metrics"};Nw(a,e,"transferSize","http.response_transfer_size"),Nw(a,e,"encodedBodySize","http.response_content_length"),Nw(a,e,"decodedBodySize","http.decoded_response_content_length");const c=e.deliveryType;c!=null&&(a["http.response_delivery_type"]=c);const d=e.renderBlockingStatus;d&&(a["resource.render_blocking_status"]=d),o.protocol&&(a["url.scheme"]=o.protocol.split(":").pop()),o.host&&(a["server.address"]=o.host),a["url.same_origin"]=n.includes(ct.location.origin);const{name:p,version:m}=LF(e.nextHopProtocol);a["network.protocol.name"]=p,a["network.protocol.version"]=m;const v=i+r,w=v+s;Dl(t,v,w,{name:n.replace(ct.location.origin,""),op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",attributes:a})}function tre(t){const e=ct.navigator;if(!e)return;const n=e.connection;n&&(n.effectiveType&&t.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&t.setAttribute("connectionType",n.type),Rw(n.rtt)&&(Wr["connection.rtt"]={value:n.rtt,unit:"millisecond"})),Rw(e.deviceMemory)&&t.setAttribute("deviceMemory",`${e.deviceMemory} GB`),Rw(e.hardwareConcurrency)&&t.setAttribute("hardwareConcurrency",String(e.hardwareConcurrency))}function nre(t){js&&(js.element&&t.setAttribute("lcp.element",Nl(js.element)),js.id&&t.setAttribute("lcp.id",js.id),js.url&&t.setAttribute("lcp.url",js.url.trim().slice(0,200)),js.loadTime!=null&&t.setAttribute("lcp.loadTime",js.loadTime),js.renderTime!=null&&t.setAttribute("lcp.renderTime",js.renderTime),t.setAttribute("lcp.size",js.size)),l0&&l0.sources&&l0.sources.forEach((e,n)=>t.setAttribute(`cls.source.${n+1}`,Nl(e.node)))}function Nw(t,e,n,r){const s=e[n];s!=null&&s<zne&&(t[r]=s)}function rre(t){const e=R2(!1);if(!e)return;const{responseStart:n,requestStart:r}=e;r<=n&&(t["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const sre=1e3;let CP,L8,z8;function zF(t){const e="dom";ku(e,t),Du(e,ire)}function ire(){if(!ct.document)return;const t=Vi.bind(null,"dom"),e=TP(t,!0);ct.document.addEventListener("click",e,!1),ct.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(n=>{const s=ct[n],i=s&&s.prototype;!i||!i.hasOwnProperty||!i.hasOwnProperty("addEventListener")||(Hs(i,"addEventListener",function(o){return function(a,c,d){if(a==="click"||a=="keypress")try{const p=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},m=p[a]=p[a]||{refCount:0};if(!m.handler){const v=TP(t);m.handler=v,o.call(this,a,v,d)}m.refCount++}catch{}return o.call(this,a,c,d)}}),Hs(i,"removeEventListener",function(o){return function(a,c,d){if(a==="click"||a=="keypress")try{const p=this.__sentry_instrumentation_handlers__||{},m=p[a];m&&(m.refCount--,m.refCount<=0&&(o.call(this,a,m.handler,d),m.handler=void 0,delete p[a]),Object.keys(p).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,a,c,d)}}))})}function ore(t){if(t.type!==L8)return!1;try{if(!t.target||t.target._sentryId!==z8)return!1}catch{}return!0}function are(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function TP(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;const r=lre(n);if(are(n.type,r))return;Ki(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ki(r,"_sentryId",hi());
38const s=n.type==="keypress"?"input":n.type;ore(n)||(t({event:n,name:s,global:e}),L8=n.type,z8=r?r._sentryId:void 0),clearTimeout(CP),CP=ct.setTimeout(()=>{z8=void 0,L8=void 0},sre)}}function lre(t){try{return t.target}catch{return null}}let Uv;function l5(t){const e="history";ku(e,t),Du(e,cre)}function cre(){if(!zte())return;const t=ct.onpopstate;ct.onpopstate=function(...n){const r=ct.location.href,s=Uv;if(Uv=r,Vi("history",{from:s,to:r}),t)try{return t.apply(this,n)}catch{}};function e(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const i=Uv,o=String(s);Uv=o,Vi("history",{from:i,to:o})}return n.apply(this,r)}}Hs(ct.history,"pushState",e),Hs(ct.history,"replaceState",e)}const $3={};function VF(t){const e=$3[t];if(e)return e;let n=ct[t];if(k8(n))return $3[t]=n.bind(ct);const r=ct.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const i=s.contentWindow;i&&i[t]&&(n=i[t]),r.head.removeChild(s)}catch(s){P9&&Fe.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,s)}return n&&($3[t]=n.bind(ct))}function AP(t){$3[t]=void 0}function zp(...t){return VF("setTimeout")(...t)}const bd="__sentry_xhr_v3__";function BF(t){const e="xhr";ku(e,t),Du(e,ure)}function ure(){if(!ct.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;t.open=new Proxy(t.open,{apply(e,n,r){const s=new Error,i=Cs()*1e3,o=_l(r[0])?r[0].toUpperCase():void 0,a=dre(r[1]);if(!o||!a)return e.apply(n,r);n[bd]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const d=n[bd];if(d&&n.readyState===4){try{d.status_code=n.status}catch{}const p={endTimestamp:Cs()*1e3,startTimestamp:i,xhr:n,virtualError:s};Vi("xhr",p)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(d,p,m){return c(),d.apply(p,m)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(d,p,m){const[v,w]=m,E=p[bd];return E&&_l(v)&&_l(w)&&(E.request_headers[v.toLowerCase()]=w),d.apply(p,m)}}),e.apply(n,r)}}),t.send=new Proxy(t.send,{apply(e,n,r){const s=n[bd];if(!s)return e.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const i={startTimestamp:Cs()*1e3,xhr:n};return Vi("xhr",i),e.apply(n,r)}})}function dre(t){if(_l(t))return t;try{return t.toString()}catch{}}const Mw=[],F3=new Map;function fre(){if(N9()&&Ts){const e=hre();return()=>{e()}}return()=>{}}const IP={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function hre(){return OF(({metric:t})=>{if(t.value==null)return;const e=t.entries.find(E=>E.duration===t.value&&IP[E.name]);if(!e)return;const{interactionId:n}=e,r=IP[e.name],s=ar(Ts+e.startTime),i=ar(t.value),o=Fr(),a=o?Xr(o):void 0,d=(n!=null?F3.get(n):void 0)||a,p=d?sn(d).description:In().getScopeData().transactionName,m=Nl(e.target),v=Cr({[mr]:"auto.http.browser.inp",[kl]:`ui.interaction.${r}`,[_9]:e.duration}),w=jF({name:m,transaction:p,attributes:v,startTime:s});w&&(w.addEvent("inp",{[s5]:"millisecond",[i5]:t.value}),w.end(s+i))})}function pre(t){const e=({entries:n})=>{const r=Fr(),s=r&&Xr(r);n.forEach(i=>{if(!$ne(i)||!s)return;const o=i.interactionId;if(o!=null&&!F3.has(o)){if(Mw.length>10){const a=Mw.shift();F3.delete(a)}Mw.push(o),F3.set(o,s)}})};Lp("event",e),Lp("first-input",e)}function mre(t,e=VF("fetch")){let n=0,r=0;function s(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:n<=6e4&&r<15,...t.fetchOptions};if(!e)return AP("fetch"),wy("No fetch implementation available");try{return e(t.url,a).then(c=>(n-=o,r--,{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}))}catch(c){return AP("fetch"),n-=o,r--,wy(c)}}return qee(t,s)}const gre=30,vre=50;function V8(t,e,n,r){const s={filename:t,function:e==="<anonymous>"?Xd:e,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const yre=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,xre=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,wre=/\((\S*)(?::(\d+))(?::(\d+))\)/,_re=t=>{const e=yre.exec(t);if(e){const[,r,s,i]=e;return V8(r,Xd,+s,+i)}const n=xre.exec(t);if(n){if(n[2]&&n[2].indexOf("eval")===0){const o=wre.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}const[s,i]=HF(n[1]||Xd,n[2]);return V8(i,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},Ere=[gre,_re],bre=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Sre=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Cre=t=>{const e=bre.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const i=Sre.exec(e[3]);i&&(e[1]=e[1]||"eval",e[3]=i[1],e[4]=i[2],e[5]="")}let r=e[3],s=e[1]||Xd;return[s,r]=HF(s,r),V8(r,s,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Tre=[vre,Cre],Are=[Ere,Tre],Ire=S$(...Are),HF=(t,e)=>{const n=t.indexOf("safari-extension")!==-1,r=t.indexOf("safari-web-extension")!==-1;return n||r?[t.indexOf("@")!==-1?t.split("@")[0]:Xd,n?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Wv=1024,Pre="Breadcrumbs",Rre=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Pre,setup(n){e.console&&vte(Dre(n)),e.dom&&zF(kre(n,e.dom)),e.xhr&&BF(Ore(n)),e.fetch&&EF($re(n)),e.history&&l5(Fre(n)),e.sentry&&n.on("beforeSendEvent",Mre(n))}}},Nre=Rre;function Mre(t){return function(n){qt()===t&&pu({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Dc(n)},{event:n})}}function kre(t,e){return function(r){if(qt()!==t)return;let s,i,o=typeof e=="object"?e.serializeAttribute:void 0,a=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;a&&a>Wv&&(Ia&&Fe.warn(`\`dom.maxStringLength\` cannot exceed ${Wv}, but a value of ${a} was configured. Sentry will use ${Wv}
38 instead.`),a=Wv),typeof o=="string"&&(o=[o]);try{const d=r.event,p=jre(d)?d.target:d;s=Nl(p,{keyAttrs:o,maxStringLength:a}),i=N$(p)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};i&&(c.data={"ui.component_name":i}),pu(c,{event:r.event,name:r.name,global:r.global})}}function Dre(t){return function(n){if(qt()!==t)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:vF(n.level),message:BI(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${BI(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;pu(r,{input:n.args,level:n.level})}}function Ore(t){return function(n){if(qt()!==t)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[bd];if(!r||!s||!i)return;const{method:o,url:a,status_code:c,body:d}=i,p={method:o,url:a,status_code:c},m={xhr:n.xhr,input:d,startTimestamp:r,endTimestamp:s},v=wF(c);pu({category:"xhr",data:p,type:"http",level:v},m)}}function $re(t){return function(n){if(qt()!==t)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};pu({category:"fetch",data:i,level:"error",type:"http"},o)}else{const i=n.response,o={...n.fetchData,status_code:i&&i.status},a={input:n.args,response:i,startTimestamp:r,endTimestamp:s},c=wF(o.status_code);pu({category:"fetch",data:o,type:"http",level:c},a)}}}function Fre(t){return function(n){if(qt()!==t)return;let r=n.from,s=n.to;const i=Ud(Ct.location.href);let o=r?Ud(r):void 0;const a=Ud(s);(!o||!o.path)&&(o=i),i.protocol===a.protocol&&i.host===a.host&&(s=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),pu({category:"navigation",data:{from:r,to:s}})}}function jre(t){return!!t&&!!t.target}const Lre=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],zre="BrowserApiErrors",Vre=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:zre,setupOnce(){e.setTimeout&&Hs(Ct,"setTimeout",PP),e.setInterval&&Hs(Ct,"setInterval",PP),e.requestAnimationFrame&&Hs(Ct,"requestAnimationFrame",Hre),e.XMLHttpRequest&&"XMLHttpRequest"in Ct&&Hs(XMLHttpRequest.prototype,"send",Ure);const n=e.eventTarget;n&&(Array.isArray(n)?n:Lre).forEach(Wre)}}},Bre=Vre;function PP(t){return function(...e){const n=e[0];return e[0]=jp(n,{mechanism:{data:{function:Pl(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Hre(t){return function(e){return t.apply(this,[jp(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Pl(t)},handled:!1,type:"instrument"}})])}}function Ure(t){return function(...e){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&Hs(n,s,function(i){const o={mechanism:{data:{function:s,handler:Pl(i)},handled:!1,type:"instrument"}},a=y9(i);return a&&(o.mechanism.data.handler=Pl(a)),jp(i,o)})}),t.apply(this,e)}}function Wre(t){const n=Ct[t],r=n&&n.prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Hs(r,"addEventListener",function(s){return function(i,o,a){try{qre(o)&&(o.handleEvent=jp(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Pl(o),target:t},handled:!1,type:"instrument"}}))}catch{}return s.apply(this,[i,jp(o,{mechanism:{data:{function:"addEventListener",handler:Pl(o),target:t},handled:!1,type:"instrument"}}),a])}}),Hs(r,"removeEventListener",function(s){return function(i,o,a){try{const c=o.__sentry_wrapped__;c&&s.call(this,i,c,a)}catch{}return s.call(this,i,o,a)}}))}function qre(t){return typeof t.handleEvent=="function"}const Gre=()=>({name:"BrowserSession",setupOnce(){if(typeof Ct.document>"u"){Ia&&Fe.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}cP({ignoreDuration:!0}),uP(),l5(({from:t,to:e})=>{t!==void 0&&t!==e&&(cP({ignoreDuration:!0}),uP())})}}),Kre="GlobalHandlers",Yre=(t={})=>{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:Kre,setupOnce(){Error.stackTraceLimit=50},setup(n){e.onerror&&(Xre(n),RP("onerror")),e.onunhandledrejection&&(Zre(n),RP("onunhandledrejection"))}}},Qre=Yre;function Xre(t){C$(e=>{const{stackParser:n,attachStacktrace:r}=UF();if(qt()!==t||SF())return;const{msg:s,url:i,line:o,column:a,error:c}=e,d=tse(I9(n,c||s,void 0,r,!1),i,o,a);d.level="error",oF(d,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})}function Zre(t){T$(e=>{const{stackParser:n,attachStacktrace:r}=UF();if(qt()!==t||SF())return;const s=Jre(e),i=v9(s)?ese(s):I9(n,s,void 0,r,!0);i.level="error",oF(i,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Jre(t){if(v9(t))return t;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return t}function ese(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function tse(t,e,n,r){const s=t.exception=t.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[],d=r,p=n,m=_l(e)&&e.length>0?e:R$();
38return c.length===0&&c.push({colno:d,filename:m,function:Xd,in_app:!0,lineno:p}),t}function RP(t){Ia&&Fe.log(`Global Handler attached: ${t}`)}function UF(){const t=qt();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const nse=()=>({name:"HttpContext",preprocessEvent(t){if(!Ct.navigator&&!Ct.location&&!Ct.document)return;const e=t.request&&t.request.url||Ct.location&&Ct.location.href,{referrer:n}=Ct.document||{},{userAgent:r}=Ct.navigator||{},s={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...t.request,...e&&{url:e},headers:s};t.request=i}}),rse="cause",sse=5,ise="LinkedErrors",ose=(t={})=>{const e=t.limit||sse,n=t.key||rse;return{name:ise,preprocessEvent(r,s,i){const o=i.getOptions();mte(T9,o.stackParser,o.maxValueLength,n,e,r,s)}}},ase=ose;function lse(t){const e=[ste(),ete(),Bre(),Nre(),Qre(),ase(),_te(),nse()];return t.autoSessionTracking!==!1&&e.push(Gre()),e}function cse(t={}){const e={defaultIntegrations:lse(t),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Ct.SENTRY_RELEASE&&Ct.SENTRY_RELEASE.id?Ct.SENTRY_RELEASE.id:void 0,autoSessionTracking:!0,sendClientReports:!0};return t.defaultIntegrations==null&&delete t.defaultIntegrations,{...e,...t}}function use(){const t=typeof Ct.window<"u"&&Ct;if(!t)return!1;const e=t.chrome?"chrome":"browser",n=t[e],r=n&&n.runtime&&n.runtime.id,s=Ct.location&&Ct.location.href||"",i=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"],o=!!r&&Ct===Ct.top&&i.some(c=>s.startsWith(`${c}//`)),a=typeof t.nw<"u";return!!r&&!o&&!a}function dse(t={}){const e=cse(t);if(!e.skipBrowserExtensionCheck&&use()){Mu(()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")});return}Ia&&(_F()||Fe.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill."));const n={...e,stackParser:jZ(e.stackParser||Ire),integrations:kee(e),transport:e.transport||mre};return Lee(nne,n)}const Tn=Qt,M9="sentryReplaySession",fse="replay_event",k9="Unable to send Replay",hse=3e5,pse=9e5,mse=5e3,gse=5500,vse=6e4,yse=5e3,xse=3,NP=15e4,qv=5e3,wse=3e3,_se=300,D9=2e7,Ese=4999,bse=15e3,MP=36e5;function B8(t,e){return t??e()}function P0(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...o)=>n.call(e,...o)),e=void 0)}return n}var Er;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(Er||(Er={}));function Sse(t){return t.nodeType===t.ELEMENT_NODE}function c0(t){const e=P0([t,"optionalAccess",n=>n.host]);return P0([e,"optionalAccess",n=>n.shadowRoot])===t}function u0(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function Cse(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function Tse(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const n=["@import",`url(${JSON.stringify(t.href)})`];return t.layerName===""?n.push("layer"):t.layerName&&n.push(`layer(${t.layerName})`),t.supportsText&&n.push(`supports(${t.supportsText})`),t.media.length&&n.push(t.media.mediaText),n.join(" ")+";"}function Ty(t){try{const e=t.rules||t.cssRules;return e?Cse(Array.from(e,WF).join("")):null}catch{return null}}function Ase(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style,s=r[n],i=r.getPropertyPriority(s);e+=`${s}:${r.getPropertyValue(s)}${i?" !important":""};`}return`${t.selectorText} { ${e} }`}function WF(t){let e;if(Pse(t))try{e=Ty(t.styleSheet)||Tse(t)}catch{}else if(Rse(t)){let n=t.cssText;const r=t.selectorText.includes(":"),s=typeof t.style.all=="string"&&t.style.all;if(s&&(n=Ase(t)),r&&(n=Ise(n)),r||s)return n}return e||t.cssText}function Ise(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function Pse(t){return"styleSheet"in t}function Rse(t){return"selectorText"in t}class qF{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const n=P0([this,"access",r=>r.getMeta,"call",r=>r(e),"optionalAccess",r=>r.id]);return B8(n,()=>-1)}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const n=this.getId(e);
38this.idNodeMap.delete(n),e.childNodes&&e.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,n){const r=n.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,n)}replace(e,n){const r=this.getNode(e);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(e,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Nse(){return new qF}function c5({maskInputOptions:t,tagName:e,type:n}){return e==="OPTION"&&(e="SELECT"),!!(t[e.toLowerCase()]||n&&t[n]||n==="password"||e==="INPUT"&&!n&&t.text)}function R0({isMasked:t,element:e,value:n,maskInputFn:r}){let s=n||"";return t?(r&&(s=r(s,e)),"*".repeat(s.length)):s}function Vp(t){return t.toLowerCase()}function H8(t){return t.toUpperCase()}const kP="__rrweb_original__";function Mse(t){const e=t.getContext("2d");if(!e)return!0;const n=50;for(let r=0;r<t.width;r+=n)for(let s=0;s<t.height;s+=n){const i=e.getImageData,o=kP in i?i[kP]:i;if(new Uint32Array(o.call(e,r,s,Math.min(n,t.width-r),Math.min(n,t.height-s)).data.buffer).some(c=>c!==0))return!1}return!0}function O9(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?Vp(e):null}function Ay(t,e,n){return e==="INPUT"&&(n==="radio"||n==="checkbox")?t.getAttribute("value")||"":t.value}function GF(t,e){let n;try{n=new URL(t,B8(e,()=>window.location.href))}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(r);return B8(P0([s,"optionalAccess",i=>i[1]]),()=>null)}const DP={};function KF(t){const e=DP[t];if(e)return e;const n=window.document;let r=window[t];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[t]&&(r=i[t]),n.head.removeChild(s)}catch{}return DP[t]=r.bind(window)}function U8(...t){return KF("setTimeout")(...t)}function YF(...t){return KF("clearTimeout")(...t)}function QF(t){try{return t.contentDocument}catch{}}let kse=1;const Dse=new RegExp("[^a-z0-9-_:]"),N0=-2;function $9(){return kse++}function Ose(t){if(t instanceof HTMLFormElement)return"form";const e=Vp(t.tagName);return Dse.test(e)?"div":e}function $se(t){let e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}let Ah,OP;const Fse=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,jse=/^(?:[a-z+]+:)?\/\//i,Lse=/^www\..*/i,zse=/^(data:)([^,]*),(.*)/i;function Iy(t,e){return(t||"").replace(Fse,(n,r,s,i,o,a)=>{const c=s||o||a,d=r||i||"";if(!c)return n;if(jse.test(c)||Lse.test(c))return`url(${d}${c}${d})`;if(zse.test(c))return`url(${d}${c}${d})`;if(c[0]==="/")return`url(${d}${$se(e)+c}${d})`;const p=e.split("/"),m=c.split("/");p.pop();for(const v of m)v!=="."&&(v===".."?p.pop():p.push(v));return`url(${d}${p.join("/")}${d})`})}const Vse=/^[^ \t\n\r\u000c]+/,Bse=/^[, \t\n\r\u000c]+/;function Hse(t,e){if(e.trim()==="")return e;let n=0;function r(i){let o;const a=i.exec(e.substring(n));return a?(o=a[0],n+=o.length,o):""}const s=[];for(;r(Bse),!(n>=e.length);){let i=r(Vse);if(i.slice(-1)===",")i=Uh(t,i.substring(0,i.length-1)),s.push(i);else{let o="";i=Uh(t,i);let a=!1;for(;;){const c=e.charAt(n);if(c===""){s.push((i+o).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((i+o).trim());break}else c==="("&&(a=!0);o+=c,n+=1}}}return s.join(", ")}const $P=new WeakMap;function Uh(t,e){return!e||e.trim()===""?e:u5(t,e)}function Use(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function u5(t,e){let n=$P.get(t);if(n||(n=t.createElement("a"),$P.set(t,n)),!e)e="";else if(e.startsWith("blob:")||e.startsWith("data:"))return e;return n.setAttribute("href",e),n.href}function XF(t,e,n,r,s,i){return r&&(n==="src"||n==="href"&&!(e==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(e==="table"||e==="td"||e==="th")?Uh(t,r):n==="srcset"?Hse(t,r):n==="style"?Iy(r,u5(t)):e==="object"&&n==="data"?Uh(t,r):typeof i=="function"?i(n,r,s):r)}function ZF(t,e,n){return(t==="video"||t==="audio")&&e==="autoplay"}function Wse(t,e,n,r){try{if(r&&t.matches(r))return!1;if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(let s=t.classList.length;s--;){const i=t.classList[s];if(e.test(i))return!0}if(n)return t.matches(n)}catch{}return!1}function qse(t,e){for(let n=t.classList.length;n--;){const r=t.classList[n];if(e.test(r))return!0}return!1}
38function Sd(t,e,n=1/0,r=0){return!t||t.nodeType!==t.ELEMENT_NODE||r>n?-1:e(t)?r:Sd(t.parentNode,e,n,r+1)}function Wh(t,e){return n=>{const r=n;if(r===null)return!1;try{if(t){if(typeof t=="string"){if(r.matches(`.${t}`))return!0}else if(qse(r,t))return!0}return!!(e&&r.matches(e))}catch{return!1}}}function Bp(t,e,n,r,s,i){try{const o=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(o===null)return!1;if(o.tagName==="INPUT"){const d=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(d))return!0}let a=-1,c=-1;if(i){if(c=Sd(o,Wh(r,s)),c<0)return!0;a=Sd(o,Wh(e,n),c>=0?c:1/0)}else{if(a=Sd(o,Wh(e,n)),a<0)return!1;c=Sd(o,Wh(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!i}catch{}return!!i}function Gse(t,e,n){const r=t.contentWindow;if(!r)return;let s=!1,i;try{i=r.document.readyState}catch{return}if(i!=="complete"){const a=U8(()=>{s||(e(),s=!0)},n);t.addEventListener("load",()=>{YF(a),s=!0,e()});return}const o="about:blank";if(r.location.href!==o||t.src===o||t.src==="")return U8(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function Kse(t,e,n){let r=!1,s;try{s=t.sheet}catch{return}if(s)return;const i=U8(()=>{r||(e(),r=!0)},n);t.addEventListener("load",()=>{YF(i),r=!0,e()})}function Yse(t,e){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskAttributeFn:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:v,inlineStylesheet:w,maskInputOptions:E={},maskTextFn:C,maskInputFn:b,dataURLOptions:S={},inlineImages:P,recordCanvas:R,keepIframeSrcFn:z,newlyAddedElement:O=!1}=e,F=Qse(n,r);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Er.Document,childNodes:[],compatMode:t.compatMode}:{type:Er.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Er.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:F};case t.ELEMENT_NODE:return Zse(t,{doc:n,blockClass:s,blockSelector:i,unblockSelector:o,inlineStylesheet:w,maskAttributeFn:c,maskInputOptions:E,maskInputFn:b,dataURLOptions:S,inlineImages:P,recordCanvas:R,keepIframeSrcFn:z,newlyAddedElement:O,rootId:F,maskTextClass:d,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:v});case t.TEXT_NODE:return Xse(t,{doc:n,maskAllText:a,maskTextClass:d,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:v,maskTextFn:C,maskInputOptions:E,maskInputFn:b,rootId:F});case t.CDATA_SECTION_NODE:return{type:Er.CDATA,textContent:"",rootId:F};case t.COMMENT_NODE:return{type:Er.Comment,textContent:t.textContent||"",rootId:F};default:return!1}}function Qse(t,e){if(!e.hasNode(t))return;const n=e.getId(t);return n===1?void 0:n}function Xse(t,e){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:a,maskInputOptions:c,maskInputFn:d,rootId:p}=e,m=t.parentNode&&t.parentNode.tagName;let v=t.textContent;const w=m==="STYLE"?!0:void 0,E=m==="SCRIPT"?!0:void 0,C=m==="TEXTAREA"?!0:void 0;if(w&&v){try{t.nextSibling||t.previousSibling||P0([t,"access",S=>S.parentNode,"access",S=>S.sheet,"optionalAccess",S=>S.cssRules])&&(v=Ty(t.parentNode.sheet))}catch(S){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${S}`,t)}v=Iy(v,u5(e.doc))}E&&(v="SCRIPT_PLACEHOLDER");const b=Bp(t,r,i,s,o,n);if(!w&&!E&&!C&&v&&b&&(v=a?a(v,t.parentElement):v.replace(/[\S]/g,"*")),C&&v&&(c.textarea||b)&&(v=d?d(v,t.parentNode):v.replace(/[\S]/g,"*")),m==="OPTION"&&v){const S=c5({type:null,tagName:m,maskInputOptions:c});v=R0({isMasked:Bp(t,r,i,s,o,S),element:t,value:v,maskInputFn:d})}return{type:Er.Text,textContent:v||"",isStyle:w,rootId:p}}function Zse(t,e){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:d,dataURLOptions:p={},inlineImages:m,recordCanvas:v,keepIframeSrcFn:w,newlyAddedElement:E=!1,rootId:C,maskTextClass:b,unmaskTextClass:S,maskTextSelector:P,unmaskTextSelector:R}=e,z=Wse(t,r,s,i),O=Ose(t);let F={};const D=t.attributes.length;for(let T=0;T<D;T++){const k=t.attributes[T];k.name&&!ZF(O,k.name,k.value)&&(F[k.name]=XF(n,O,Vp(k.name),k.value,t,c))}if(O==="link"&&o){const T=Array.from(n.styleSheets).find(j=>j.href===t.href);let k=null;
38T&&(k=Ty(T)),k&&(F.rel=null,F.href=null,F.crossorigin=null,F._cssText=Iy(k,T.href))}if(O==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const T=Ty(t.sheet);T&&(F._cssText=Iy(T,u5(n)))}if(O==="input"||O==="textarea"||O==="select"||O==="option"){const T=t,k=O9(T),j=Ay(T,H8(O),k),L=T.checked;if(k!=="submit"&&k!=="button"&&j){const V=Bp(T,b,P,S,R,c5({type:k,tagName:H8(O),maskInputOptions:a}));F.value=R0({isMasked:V,element:T,value:j,maskInputFn:d})}L&&(F.checked=L)}if(O==="option"&&(t.selected&&!a.select?F.selected=!0:delete F.selected),O==="canvas"&&v){if(t.__context==="2d")Mse(t)||(F.rr_dataURL=t.toDataURL(p.type,p.quality));else if(!("__context"in t)){const T=t.toDataURL(p.type,p.quality),k=n.createElement("canvas");k.width=t.width,k.height=t.height;const j=k.toDataURL(p.type,p.quality);T!==j&&(F.rr_dataURL=T)}}if(O==="img"&&m){Ah||(Ah=n.createElement("canvas"),OP=Ah.getContext("2d"));const T=t,k=T.currentSrc||T.getAttribute("src")||"<unknown-src>",j=T.crossOrigin,L=()=>{T.removeEventListener("load",L);try{Ah.width=T.naturalWidth,Ah.height=T.naturalHeight,OP.drawImage(T,0,0),F.rr_dataURL=Ah.toDataURL(p.type,p.quality)}catch(V){if(T.crossOrigin!=="anonymous"){T.crossOrigin="anonymous",T.complete&&T.naturalWidth!==0?L():T.addEventListener("load",L);return}else console.warn(`Cannot inline img src=${k}! Error: ${V}`)}T.crossOrigin==="anonymous"&&(j?F.crossOrigin=j:T.removeAttribute("crossorigin"))};T.complete&&T.naturalWidth!==0?L():T.addEventListener("load",L)}if((O==="audio"||O==="video")&&(F.rr_mediaState=t.paused?"paused":"played",F.rr_mediaCurrentTime=t.currentTime),E||(t.scrollLeft&&(F.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(F.rr_scrollTop=t.scrollTop)),z){const{width:T,height:k}=t.getBoundingClientRect();F={class:F.class,rr_width:`${T}px`,rr_height:`${k}px`}}O==="iframe"&&!w(F.src)&&(!z&&!QF(t)&&(F.rr_src=F.src),delete F.src);let I;try{customElements.get(O)&&(I=!0)}catch{}return{type:Er.Element,tagName:O,attributes:F,childNodes:[],isSVG:Use(t)||void 0,needBlock:z,rootId:C,isCustom:I}}function Cn(t){return t==null?"":t.toLowerCase()}function Jse(t,e){if(e.comment&&t.type===Er.Comment)return!0;if(t.type===Er.Element){if(e.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&GF(t.attributes.href)==="js"))return!0;if(e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(Cn(t.attributes.name).match(/^msapplication-tile(image|color)$/)||Cn(t.attributes.name)==="application-name"||Cn(t.attributes.rel)==="icon"||Cn(t.attributes.rel)==="apple-touch-icon"||Cn(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&Cn(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Cn(t.attributes.property).match(/^(og|twitter|fb):/)||Cn(t.attributes.name).match(/^(og|twitter):/)||Cn(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(Cn(t.attributes.name)==="robots"||Cn(t.attributes.name)==="googlebot"||Cn(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(Cn(t.attributes.name)==="author"||Cn(t.attributes.name)==="generator"||Cn(t.attributes.name)==="framework"||Cn(t.attributes.name)==="publisher"||Cn(t.attributes.name)==="progid"||Cn(t.attributes.property).match(/^article:/)||Cn(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(Cn(t.attributes.name)==="google-site-verification"||Cn(t.attributes.name)==="yandex-verification"||Cn(t.attributes.name)==="csrf-token"||Cn(t.attributes.name)==="p:domain_verify"||Cn(t.attributes.name)==="verify-v1"||Cn(t.attributes.name)==="verification"||Cn(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function qh(t,e){const{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,skipChild:v=!1,inlineStylesheet:w=!0,maskInputOptions:E={},maskAttributeFn:C,maskTextFn:b,maskInputFn:S,slimDOMOptions:P,dataURLOptions:R={},inlineImages:z=!1,recordCanvas:O=!1,onSerialize:F,onIframeLoad:D,iframeLoadTimeout:I=5e3,onStylesheetLoad:T,stylesheetLoadTimeout:k=5e3,keepIframeSrcFn:j=()=>!1,newlyAddedElement:L=!1}=e;let{preserveWhiteSpace:V=!0}=e;
38const Y=Yse(t,{doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:w,maskInputOptions:E,maskAttributeFn:C,maskTextFn:b,maskInputFn:S,dataURLOptions:R,inlineImages:z,recordCanvas:O,keepIframeSrcFn:j,newlyAddedElement:L});if(!Y)return console.warn(t,"not serialized"),null;let G;r.hasNode(t)?G=r.getId(t):Jse(Y,P)||!V&&Y.type===Er.Text&&!Y.isStyle&&!Y.textContent.replace(/^\s+|\s+$/gm,"").length?G=N0:G=$9();const q=Object.assign(Y,{id:G});if(r.add(t,q),G===N0)return null;F&&F(t);let U=!v;if(q.type===Er.Element){U=U&&!q.needBlock,delete q.needBlock;const B=t.shadowRoot;B&&u0(B)&&(q.isShadowHost=!0)}if((q.type===Er.Document||q.type===Er.Element)&&U){P.headWhitespace&&q.type===Er.Element&&q.tagName==="head"&&(V=!1);const B={doc:n,mirror:r,blockClass:s,blockSelector:i,maskAllText:a,unblockSelector:o,maskTextClass:c,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,skipChild:v,inlineStylesheet:w,maskInputOptions:E,maskAttributeFn:C,maskTextFn:b,maskInputFn:S,slimDOMOptions:P,dataURLOptions:R,inlineImages:z,recordCanvas:O,preserveWhiteSpace:V,onSerialize:F,onIframeLoad:D,iframeLoadTimeout:I,onStylesheetLoad:T,stylesheetLoadTimeout:k,keepIframeSrcFn:j};for(const ne of Array.from(t.childNodes)){const oe=qh(ne,B);oe&&q.childNodes.push(oe)}if(Sse(t)&&t.shadowRoot)for(const ne of Array.from(t.shadowRoot.childNodes)){const oe=qh(ne,B);oe&&(u0(t.shadowRoot)&&(oe.isShadow=!0),q.childNodes.push(oe))}}return t.parentNode&&c0(t.parentNode)&&u0(t.parentNode)&&(q.isShadow=!0),q.type===Er.Element&&q.tagName==="iframe"&&Gse(t,()=>{const B=QF(t);if(B&&D){const ne=qh(B,{doc:B,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,skipChild:!1,inlineStylesheet:w,maskInputOptions:E,maskAttributeFn:C,maskTextFn:b,maskInputFn:S,slimDOMOptions:P,dataURLOptions:R,inlineImages:z,recordCanvas:O,preserveWhiteSpace:V,onSerialize:F,onIframeLoad:D,iframeLoadTimeout:I,onStylesheetLoad:T,stylesheetLoadTimeout:k,keepIframeSrcFn:j});ne&&D(t,ne)}},I),q.type===Er.Element&&q.tagName==="link"&&typeof q.attributes.rel=="string"&&(q.attributes.rel==="stylesheet"||q.attributes.rel==="preload"&&typeof q.attributes.href=="string"&&GF(q.attributes.href)==="css")&&Kse(t,()=>{if(T){const B=qh(t,{doc:n,mirror:r,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:a,maskTextClass:c,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,skipChild:!1,inlineStylesheet:w,maskInputOptions:E,maskAttributeFn:C,maskTextFn:b,maskInputFn:S,slimDOMOptions:P,dataURLOptions:R,inlineImages:z,recordCanvas:O,preserveWhiteSpace:V,onSerialize:F,onIframeLoad:D,iframeLoadTimeout:I,onStylesheetLoad:T,stylesheetLoadTimeout:k,keepIframeSrcFn:j});B&&T(t,B)}},k),q}function eie(t,e){const{mirror:n=new qF,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:d=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,inlineImages:v=!1,recordCanvas:w=!1,maskAllInputs:E=!1,maskAttributeFn:C,maskTextFn:b,maskInputFn:S,slimDOM:P=!1,dataURLOptions:R,preserveWhiteSpace:z,onSerialize:O,onIframeLoad:F,iframeLoadTimeout:D,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:k=()=>!1}=e||{};return qh(t,{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,maskAllText:o,maskTextClass:a,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:m,maskInputOptions:E===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:E===!1?{}:E,maskAttributeFn:C,maskTextFn:b,maskInputFn:S,slimDOMOptions:P===!0||P==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:P==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:P===!1?{}:P,dataURLOptions:R,inlineImages:v,recordCanvas:w,preserveWhiteSpace:z,onSerialize:O,onIframeLoad:F,iframeLoadTimeout:D,onStylesheetLoad:I,stylesheetLoadTimeout:T,keepIframeSrcFn:k,newlyAddedElement:!1})}function Oc(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...o)=>n.call(e,...o)),e=void 0)}return n}function Es(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const Fh=`Please stop import mirror directly. Instead of that,\r
39now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
40or you can use record.mirror to access the mirror instance during recording.`;let FP={map:{},getId(){return console.error(Fh),-1},getNode(){return console.error(Fh),null},removeNodeFromMap(){console.error(Fh)},has(){return console.error(Fh),!1},reset(){console.error(Fh)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(FP=new Proxy(FP,{get(t,e,n){return e==="map"&&console.error(Fh),Reflect.get(t,e,n)}}));function M0(t,e,n={}){let r=null,s=0;return function(...i){const o=Date.now();!s&&n.leading===!1&&(s=o);const a=e-(o-s),c=this;a<=0||a>e?(r&&(aie(r),r=null),s=o,t.apply(c,i)):!r&&n.trailing!==!1&&(r=d5(()=>{s=n.leading===!1?0:Date.now(),r=null,t.apply(c,i)},a))}}function JF(t,e,n,r,s=window){const i=s.Object.getOwnPropertyDescriptor(t,e);return s.Object.defineProperty(t,e,r?n:{set(o){d5(()=>{n.set.call(this,o)},0),i&&i.set&&i.set.call(this,o)}}),()=>JF(t,e,i||{},!0)}function F9(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=s,()=>{t[e]=r}}catch{return()=>{}}}let Py=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Py=()=>new Date().getTime());function ej(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:Oc([e,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Oc([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Oc([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:Oc([e,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Oc([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Oc([e,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function tj(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function nj(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function rj(t){return t?t.nodeType===t.ELEMENT_NODE?t:t.parentElement:null}function li(t,e,n,r,s){if(!t)return!1;const i=rj(t);if(!i)return!1;const o=Wh(e,n);if(!s){const d=r&&i.matches(r);return o(i)&&!d}const a=Sd(i,o);let c=-1;return a<0?!1:(r&&(c=Sd(i,Wh(null,r))),a>-1&&c<0?!0:a<c)}function tie(t,e){return e.getId(t)!==-1}function kw(t,e){return e.getId(t)===N0}function sj(t,e){if(c0(t))return!1;const n=e.getId(t);return e.has(n)?t.parentNode&&t.parentNode.nodeType===t.DOCUMENT_NODE?!1:t.parentNode?sj(t.parentNode,e):!0:!0}function W8(t){return!!t.changedTouches}function nie(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let n=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function ij(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function oj(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function q8(t){return!!Oc([t,"optionalAccess",e=>e.shadowRoot])}class rie{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return Vte(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,n){if(this.has(e))return this.getId(e);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function aj(t){let e=null;return Oc([t,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function sie(t){let e=t,n;for(;n=aj(e);)e=n;return e}function iie(t){const e=t.ownerDocument;if(!e)return!1;const n=sie(t);return e.contains(n)}function lj(t){const e=t.ownerDocument;return e?e.contains(t)||iie(t):!1}const jP={};function j9(t){const e=jP[t];if(e)return e;const n=window.document;let r=window[t];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const i=s.contentWindow;i&&i[t]&&(r=i[t]),n.head.removeChild(s)}catch{}return jP[t]=r.bind(window)}function oie(...t){return j9("requestAnimationFrame")(...t)}function d5(...t){return j9("setTimeout")(...t)}function aie(...t){return j9("clearTimeout")(...t)}var jt=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(jt||{}),bt=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.In
40put=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(bt||{}),vs=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(vs||{}),ll=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(ll||{}),LP;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(LP||(LP={}));var zP;(function(t){t[t.PLACEHOLDER=0]="PLACEHOLDER",t[t.ELEMENT_NODE=1]="ELEMENT_NODE",t[t.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",t[t.TEXT_NODE=3]="TEXT_NODE",t[t.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",t[t.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",t[t.ENTITY_NODE=6]="ENTITY_NODE",t[t.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",t[t.COMMENT_NODE=8]="COMMENT_NODE",t[t.DOCUMENT_NODE=9]="DOCUMENT_NODE",t[t.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",t[t.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"})(zP||(zP={}));function L9(t){try{return t.contentDocument}catch{}}function lie(t){try{return t.contentWindow}catch{}}function cie(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...o)=>n.call(e,...o)),e=void 0)}return n}function VP(t){return"__ln"in t}class uie{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<e;r++)n=cie([n,"optionalAccess",s=>s.next])||null;return n}addNode(e){const n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&VP(e.previousSibling)){const r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(e.nextSibling&&VP(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;n.previous=r,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(e){const n=e.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const BP=(t,e)=>`${t}@${e}`;class die{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],n=new Set,r=new uie,s=c=>{let d=c,p=N0;for(;p===N0;)d=d&&d.nextSibling,p=d&&this.mirror.getId(d);return p},i=c=>{if(!c.parentNode||!lj(c))return;const d=c0(c.parentNode)?this.mirror.getId(aj(c)):this.mirror.getId(c.parentNode),p=s(c);if(d===-1||p===-1)return r.addNode(c);const m=qh(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inl
40ineImages,onSerialize:v=>{ij(v,this.mirror)&&!li(v,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(v),oj(v,this.mirror)&&this.stylesheetManager.trackLinkElement(v),q8(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(v,w)=>{li(v,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(v,w),v.contentWindow&&this.canvasManager.addWindow(v.contentWindow),this.shadowDomManager.observeAttachShadow(v))},onStylesheetLoad:(v,w)=>{this.stylesheetManager.attachLinkElement(v,w)}});m&&(e.push({parentId:d,nextId:p,node:m}),n.add(m.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)HP(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(const c of this.addedSet)!UP(this.droppedSet,c)&&!HP(this.removes,c,this.mirror)||UP(this.movedSet,c)?i(c):this.droppedSet.add(c);let o=null;for(;r.length;){let c=null;if(o){const d=this.mirror.getId(o.value.parentNode),p=s(o.value);d!==-1&&p!==-1&&(c=o)}if(!c){let d=r.tail;for(;d;){const p=d;if(d=d.previous,p){const m=this.mirror.getId(p.value.parentNode);if(s(p.value)===-1)continue;if(m!==-1){c=p;break}else{const w=p.value;if(w.parentNode&&w.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const E=w.parentNode.host;if(this.mirror.getId(E)!==-1){c=p;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}o=c.previous,r.removeNode(c.value),i(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:d}=c;if(typeof d.style=="string"){const p=JSON.stringify(c.styleDiff),m=JSON.stringify(c._unchangedStyles);p.length<d.style.length&&(p+m).split("var(").length===d.style.split("var(").length&&(d.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:d}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:e};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=e=>{if(!kw(e.target,this.mirror))switch(e.type){case"characterData":{const n=e.target.textContent;!li(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:Bp(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,rj(e.target)):n.replace(/[\S]/g,"*"):n,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,s=e.target.getAttribute(r);if(r==="value"){const o=O9(n),a=n.tagName;s=Ay(n,a,o);const c=c5({maskInputOptions:this.maskInputOptions,tagName:a,type:o}),d=Bp(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=R0({isMasked:d,element:n,value:s,maskInputFn:this.maskInputFn})}if(li(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===e.oldValue)return;let i=this.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!L9(n))r="rr_src";else return;if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}}
40,this.attributes.push(i),this.attributeMap.set(e.target,i)),r==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!ZF(n.tagName,r)&&(i.attributes[r]=XF(this.doc,Vp(n.tagName),Vp(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const o=this.unattachedDoc.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),d=n.style.getPropertyPriority(a);c!==o.style.getPropertyValue(a)||d!==o.style.getPropertyPriority(a)?d===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,d]:i._unchangedStyles[a]=[c,d]}for(const a of Array.from(o.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}break}case"childList":{if(li(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(n=>this.genAdds(n,e.target)),e.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=c0(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);li(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||kw(n,this.mirror)||!tie(n,this.mirror)||(this.addedSet.has(n)?(G8(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&r===-1||sj(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[BP(r,s)]?G8(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:c0(e.target)&&u0(e.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(e,n)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(kw(e,this.mirror))return;this.movedSet.add(e);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[BP(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);li(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(r=>this.genAdds(r)),q8(e)&&e.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=e[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function G8(t,e){t.delete(e),e.childNodes.forEach(n=>G8(t,n))}function HP(t,e,n){return t.length===0?!1:fie(t,e,n)}function fie(t,e,n){let r=e.parentNode;for(;r;){const s=n.getId(r);if(t.some(i=>i.id===s))return!0;r=r.parentNode}return!1}function UP(t,e){return t.size===0?!1:cj(t,e)}function cj(t,e){const{parentNode:n}=e;return n?t.has(n)?!0:cj(t,n):!1}let d0;function hie(t){d0=t}function pie(){d0=void 0}const en=t=>d0?(...n)=>{try{return t(...n)}catch(r){if(d0&&d0(r)===!0)return()=>{};throw r}}:t;function Co(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...o)=>n.call(e,...o)),e=void 0)}return n}const Gh=[];function D2(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function uj(t,e){const n=new die;Gh.push(n),n.init(t);let r=window.MutationObserver||window.__rrMutationObserver;const s=Co([window,"optionalAccess",o=>o.Zone,"optionalAccess",o=>o.__symbol__,"optionalCall",o=>o("MutationObserver")]);s&&window[s]&&(r=window[s]);const i=new r(en(o=>{t.onMutation&&t.onMutation(o)===!1||n.processMutations.bind(n)(o)}));return i.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function mie({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(e.mousemove===!1)return()=>{};const s=typeof e.mousemove=="number"?e.mousemove:50,i=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let o=[],a;const c=M0(en(m=>{const v=Date.now()-a;t(o.map(w=>(w.timeOffset-=v,w)),m),o=[],a=null}),i),d=en(M0(en(m=>{const v=D2(m),{clientX:w,clientY:E}=W8(m)?m.changedTouches[0]:m;a||(a=Py()),o.push({x:w,y:E,id:r.getId(v),timeOffset:Py()-a}),c(typeof DragEvent<"u"&&m instanceof DragEvent?bt.Drag:m instanceof MouseEvent?bt.MouseMove:bt.TouchMove)}),s,{trailing:!1})),p=[Es("mousemove",d,n),Es("touchmove",d,n),Es("drag",d,n)];return en(()=>{p.forEach(m=>m())})}function gie({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};const a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[];let d=null;const p=m=>v=>{const w=D2(v);
vendor: 4,452 bytes, line 40
40if(li(w,r,s,i,!0))return;let E=null,C=m;if("pointerType"in v){switch(v.pointerType){case"mouse":E=ll.Mouse;break;case"touch":E=ll.Touch;break;case"pen":E=ll.Pen;break}E===ll.Touch?vs[m]===vs.MouseDown?C="TouchStart":vs[m]===vs.MouseUp&&(C="TouchEnd"):ll.Pen}else W8(v)&&(E=ll.Touch);E!==null?(d=E,(C.startsWith("Touch")&&E===ll.Touch||C.startsWith("Mouse")&&E===ll.Mouse)&&(E=null)):vs[m]===vs.Click&&(E=d,d=null);const b=W8(v)?v.changedTouches[0]:v;if(!b)return;const S=n.getId(w),{clientX:P,clientY:R}=b;en(t)({type:vs[C],id:S,x:P,y:R,...E!==null&&{pointerType:E}})};return Object.keys(vs).filter(m=>Number.isNaN(Number(m))&&!m.endsWith("_Departed")&&a[m]!==!1).forEach(m=>{let v=Vp(m);const w=p(m);if(window.PointerEvent)switch(vs[m]){case vs.MouseDown:case vs.MouseUp:v=v.replace("mouse","pointer");break;case vs.TouchStart:case vs.TouchEnd:return}c.push(Es(v,w,e))}),en(()=>{c.forEach(m=>m())})}function dj({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,sampling:o}){const a=en(M0(en(c=>{const d=D2(c);if(!d||li(d,r,s,i,!0))return;const p=n.getId(d);if(d===e&&e.defaultView){const m=ej(e.defaultView);t({id:p,x:m.left,y:m.top})}else t({id:p,x:d.scrollLeft,y:d.scrollTop})}),o.scroll||100));return Es("scroll",a,e)}function vie({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const s=en(M0(en(()=>{const i=tj(),o=nj();(n!==i||r!==o)&&(t({width:Number(o),height:Number(i)}),n=i,r=o)}),200));return Es("resize",s,e)}const yie=["INPUT","TEXTAREA","SELECT"],WP=new WeakMap;function xie({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,ignoreClass:o,ignoreSelector:a,maskInputOptions:c,maskInputFn:d,sampling:p,userTriggeredOnInput:m,maskTextClass:v,unmaskTextClass:w,maskTextSelector:E,unmaskTextSelector:C}){function b(D){let I=D2(D);const T=D.isTrusted,k=I&&H8(I.tagName);if(k==="OPTION"&&(I=I.parentElement),!I||!k||yie.indexOf(k)<0||li(I,r,s,i,!0))return;const j=I;if(j.classList.contains(o)||a&&j.matches(a))return;const L=O9(I);let V=Ay(j,k,L),Y=!1;const G=c5({maskInputOptions:c,tagName:k,type:L}),q=Bp(I,v,E,w,C,G);(L==="radio"||L==="checkbox")&&(Y=I.checked),V=R0({isMasked:q,element:I,value:V,maskInputFn:d}),S(I,m?{text:V,isChecked:Y,userTriggered:T}:{text:V,isChecked:Y});const U=I.name;L==="radio"&&U&&Y&&e.querySelectorAll(`input[type="radio"][name="${U}"]`).forEach(B=>{if(B!==I){const ne=R0({isMasked:q,element:B,value:Ay(B,k,L),maskInputFn:d});S(B,m?{text:ne,isChecked:!Y,userTriggered:!1}:{text:ne,isChecked:!Y})}})}function S(D,I){const T=WP.get(D);if(!T||T.text!==I.text||T.isChecked!==I.isChecked){WP.set(D,I);const k=n.getId(D);en(t)({...I,id:k})}}const R=(p.input==="last"?["change"]:["input","change"]).map(D=>Es(D,en(b),e)),z=e.defaultView;if(!z)return()=>{R.forEach(D=>D())};const O=z.Object.getOwnPropertyDescriptor(z.HTMLInputElement.prototype,"value"),F=[[z.HTMLInputElement.prototype,"value"],[z.HTMLInputElement.prototype,"checked"],[z.HTMLSelectElement.prototype,"value"],[z.HTMLTextAreaElement.prototype,"value"],[z.HTMLSelectElement.prototype,"selectedIndex"],[z.HTMLOptionElement.prototype,"selected"]];return O&&O.set&&R.push(...F.map(D=>JF(D[0],D[1],{set(){en(b)({target:this,isTrusted:!1})}},!1,z))),en(()=>{R.forEach(D=>D())})}function Ry(t){const e=[];function n(r,s){if(Gv("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Gv("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Gv("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Gv("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const o=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(o)}else if(r.parentStyleSheet){const o=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(o)}return s}return n(t,e)}function $c(t,e,n){let r,s;return t?(t.ownerNode?r=e.getId(t.ownerNode):s=n.getId(t),{styleId:s,id:r}):{}}function wie({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:en((p,m,v)=>{const[w,E]=v,{id:C,styleId:b}=$c(m,e,n.styleMirror);return(C&&C!==-1||b&&b!==-1)&&t({id:C,styleId:b,adds:[{rule:w,index:E}]}),p.apply(m,v)})});const i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:en((p,m,v)=>{const[w]=v,{id:E,styleId:C}=$c(m,e,n.styleMirror);return(E&&E!==-1||C&&C!==-1)&&t({id:E,styleId:C,removes:[{index:w}]}),p.apply(m,v)})});let o;
40r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:en((p,m,v)=>{const[w]=v,{id:E,styleId:C}=$c(m,e,n.styleMirror);return(E&&E!==-1||C&&C!==-1)&&t({id:E,styleId:C,replace:w}),p.apply(m,v)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:en((p,m,v)=>{const[w]=v,{id:E,styleId:C}=$c(m,e,n.styleMirror);return(E&&E!==-1||C&&C!==-1)&&t({id:E,styleId:C,replaceSync:w}),p.apply(m,v)})}));const c={};Kv("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Kv("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Kv("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Kv("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const d={};return Object.entries(c).forEach(([p,m])=>{d[p]={insertRule:m.prototype.insertRule,deleteRule:m.prototype.deleteRule},m.prototype.insertRule=new Proxy(d[p].insertRule,{apply:en((v,w,E)=>{const[C,b]=E,{id:S,styleId:P}=$c(w.parentStyleSheet,e,n.styleMirror);return(S&&S!==-1||P&&P!==-1)&&t({id:S,styleId:P,adds:[{rule:C,index:[...Ry(w),b||0]}]}),v.apply(w,E)})}),m.prototype.deleteRule=new Proxy(d[p].deleteRule,{apply:en((v,w,E)=>{const[C]=E,{id:b,styleId:S}=$c(w.parentStyleSheet,e,n.styleMirror);return(b&&b!==-1||S&&S!==-1)&&t({id:b,styleId:S,removes:[{index:[...Ry(w),C]}]}),v.apply(w,E)})})}),en(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=i,o&&(r.CSSStyleSheet.prototype.replace=o),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([p,m])=>{m.prototype.insertRule=d[p].insertRule,m.prototype.deleteRule=d[p].deleteRule})})}function fj({mirror:t,stylesheetManager:e},n){let r=null;n.nodeName==="#document"?r=t.getId(n):r=t.getId(n.host);const s=n.nodeName==="#document"?Co([n,"access",o=>o.defaultView,"optionalAccess",o=>o.Document]):Co([n,"access",o=>o.ownerDocument,"optionalAccess",o=>o.defaultView,"optionalAccess",o=>o.ShadowRoot]),i=Co([s,"optionalAccess",o=>o.prototype])?Object.getOwnPropertyDescriptor(Co([s,"optionalAccess",o=>o.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return Co([i,"access",o=>o.get,"optionalAccess",o=>o.call,"call",o=>o(this)])},set(o){const a=Co([i,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,o)]);if(r!==null&&r!==-1)try{e.adoptStyleSheets(o,r)}catch{}return a}}),en(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function _ie({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const i=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:en((a,c,d)=>{const[p,m,v]=d;if(n.has(p))return i.apply(c,[p,m,v]);const{id:w,styleId:E}=$c(Co([c,"access",C=>C.parentRule,"optionalAccess",C=>C.parentStyleSheet]),e,r.styleMirror);return(w&&w!==-1||E&&E!==-1)&&t({id:w,styleId:E,set:{property:p,value:m,priority:v},index:Ry(c.parentRule)}),a.apply(c,d)})});const o=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:en((a,c,d)=>{const[p]=d;if(n.has(p))return o.apply(c,[p]);const{id:m,styleId:v}=$c(Co([c,"access",w=>w.parentRule,"optionalAccess",w=>w.parentStyleSheet]),e,r.styleMirror);return(m&&m!==-1||v&&v!==-1)&&t({id:m,styleId:v,remove:{property:p},index:Ry(c.parentRule)}),a.apply(c,d)})}),en(()=>{s.CSSStyleDeclaration.prototype.setProperty=i,s.CSSStyleDeclaration.prototype.removeProperty=o})}function Eie({mediaInteractionCb:t,blockClass:e,blockSelector:n,unblockSelector:r,mirror:s,sampling:i,doc:o}){const a=en(d=>M0(en(p=>{const m=D2(p);if(!m||li(m,e,n,r,!0))return;const{currentTime:v,volume:w,muted:E,playbackRate:C}=m;t({type:d,id:s.getId(m),currentTime:v,volume:w,muted:E,playbackRate:C})}),i.media||500)),c=[Es("play",a(0),o),Es("pause",a(1),o),Es("seeked",a(2),o),Es("volumechange",a(3),o),Es("ratechange",a(4),o)];return en(()=>
40{c.forEach(d=>d())})}function bie({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,i=n.FontFace;n.FontFace=function(c,d,p){const m=new i(c,d,p);return s.set(m,{family:c,buffer:typeof d!="string",descriptors:p,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),m};const o=F9(e.fonts,"add",function(a){return function(c){return d5(en(()=>{const d=s.get(c);d&&(t(d),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(o),en(()=>{r.forEach(a=>a())})}function Sie(t){const{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:i,selectionCb:o}=t;let a=!0;const c=en(()=>{const d=e.getSelection();if(!d||a&&Co([d,"optionalAccess",v=>v.isCollapsed]))return;a=d.isCollapsed||!1;const p=[],m=d.rangeCount||0;for(let v=0;v<m;v++){const w=d.getRangeAt(v),{startContainer:E,startOffset:C,endContainer:b,endOffset:S}=w;li(E,r,s,i,!0)||li(b,r,s,i,!0)||p.push({start:n.getId(E),startOffset:C,end:n.getId(b),endOffset:S})}o({ranges:p})});return c(),Es("selectionchange",c)}function Cie({doc:t,customElementCb:e}){const n=t.defaultView;return!n||!n.customElements?()=>{}:F9(n.customElements,"define",function(s){return function(i,o,a){try{e({define:{name:i}})}catch{}return s.apply(this,[i,o,a])}})}function Tie(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};let r;t.recordDOM&&(r=uj(t,t.doc));const s=mie(t),i=gie(t),o=dj(t),a=vie(t,{win:n}),c=xie(t),d=Eie(t);let p=()=>{},m=()=>{},v=()=>{},w=()=>{};t.recordDOM&&(p=wie(t,{win:n}),m=fj(t,t.doc),v=_ie(t,{win:n}),t.collectFonts&&(w=bie(t)));const E=Sie(t),C=Cie(t),b=[];for(const S of t.plugins)b.push(S.observer(S.callback,n,S.options));return en(()=>{Gh.forEach(S=>S.reset()),Co([r,"optionalAccess",S=>S.disconnect,"call",S=>S()]),s(),i(),o(),a(),c(),d(),p(),m(),v(),w(),E(),C(),b.forEach(S=>S())})}function Gv(t){return typeof window[t]<"u"}function Kv(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class K8{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,n,r,s){const i=r||this.getIdToRemoteIdMap(e),o=s||this.getRemoteIdToIdMap(e);let a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),o.set(a,n)),a}getIds(e,n){const r=this.getIdToRemoteIdMap(e),s=this.getRemoteIdToIdMap(e);return n.map(i=>this.getId(e,i,r,s))}getRemoteId(e,n,r){const s=r||this.getRemoteIdToIdMap(e);if(typeof n!="number")return n;const i=s.get(n);return i||-1}getRemoteIds(e,n){const r=this.getRemoteIdToIdMap(e);return n.map(s=>this.getRemoteId(e,s,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n}getRemoteIdToIdMap(e){let n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n}}function qP(t){let e,n=t[0],r=1;for(;r<t.length;){const s=t[r],i=t[r+1];if(r+=2,(s==="optionalAccess"||s==="optionalCall")&&n==null)return;s==="access"||s==="optionalAccess"?(e=n,n=i(n)):(s==="call"||s==="optionalCall")&&(n=i((...o)=>n.call(e,...o)),e=void 0)}return n}class Aie{constructor(){this.crossOriginIframeMirror=new K8($9),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Iie{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new K8($9),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new K8(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,n){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}
vendor: 4,286 bytes, line 40
40),qP([this,"access",s=>s.loadListener,"optionalCall",s=>s(e)]);const r=L9(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){const n=e;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!e.source)return;const s=this.crossOriginIframeMap.get(e.source);if(!s)return;const i=this.transformCrossOriginEvent(s,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(e,n){switch(n.type){case jt.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:jt.IncrementalSnapshot,data:{source:bt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case jt.Meta:case jt.Load:case jt.DomContentLoaded:return!1;case jt.Plugin:return n;case jt.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case jt.IncrementalSnapshot:switch(n.data.source){case bt.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,e);const s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,e,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,e,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,e,["id"])}),n;case bt.Drag:case bt.TouchMove:case bt.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,e,["id"])}),n;case bt.ViewportResize:return!1;case bt.MediaInteraction:case bt.MouseInteraction:case bt.Scroll:case bt.CanvasMutation:case bt.Input:return this.replaceIds(n.data,e,["id"]),n;case bt.StyleSheetRule:case bt.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case bt.Font:return n;case bt.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,e,["start","end"])}),n;case bt.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),qP([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(s=>{this.replaceStyleIds(s,e,["styleId"])})]),n}}return!1}replace(e,n,r,s){for(const i of s)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=e.getIds(r,n[i]):n[i]=e.getId(r,n[i]));return n}replaceIds(e,n,r){return this.replace(this.crossOriginIframeMirror,e,n,r)}replaceStyleIds(e,n,r){return this.replace(this.crossOriginIframeStyleMirror,e,n,r)}replaceIdOnNode(e,n){this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(e,n){e.type!==Er.Document&&!e.rootId&&(e.rootId=n),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class Pie{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Rie{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,n){if(!u0(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const r=uj({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(dj({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),d5(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(fj({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const n=L9(e),r=lie(e);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(e,n){const r=this;this.restoreHandlers.push(F9(e.prototype,"attachShadow",function(s){return function(i){const o=s.call(this,i);return this.shadowRoot&&lj(this)&&r.addShadowRoot(this.shadowRoot,n),o}}))}
40reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class GP{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Nie{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new rie,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,n){if(e.length===0)return;const r={id:n,styleIds:[]},s=[];for(const i of e){let o;this.styleMirror.has(i)?o=this.styleMirror.getId(i):(o=this.styleMirror.add(i),s.push({styleId:o,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:WF(a),index:c}))})),r.styleIds.push(o)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Mie{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,n){const r=this.nodeMap.get(e);return r&&Array.from(r).some(s=>s!==n)}add(e,n){this.active||(this.active=!0,oie(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))}destroy(){}}let Gn,Ny;try{if(Array.from([1],t=>t*2)[0]!==2){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=O3([t,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const mo=Nse();function El(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:i=null,unblockSelector:o=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:d=!1,maskTextClass:p="rr-mask",unmaskTextClass:m=null,maskTextSelector:v=null,unmaskTextSelector:w=null,inlineStylesheet:E=!0,maskAllInputs:C,maskInputOptions:b,slimDOMOptions:S,maskAttributeFn:P,maskInputFn:R,maskTextFn:z,maxCanvasSize:O=null,packFn:F,sampling:D={},dataURLOptions:I={},mousemoveWait:T,recordDOM:k=!0,recordCanvas:j=!1,recordCrossOriginIframes:L=!1,recordAfter:V=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:Y=!1,collectFonts:G=!1,inlineImages:q=!1,plugins:U,keepIframeSrcFn:B=()=>!1,ignoreCSSAttributes:ne=new Set([]),errorHandler:oe,onMutation:Q,getCanvasManager:ie}=t;hie(oe);const ue=L?window.parent===window:!0;let ge=!1;if(!ue)try{window.parent.document&&(ge=!1)}catch{ge=!0}if(ue&&!e)throw new Error("emit function is required");if(!ue&&!ge)return()=>{};T!==void 0&&D.mousemove===void 0&&(D.mousemove=T),mo.reset();const Ae=C===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:b!==void 0?b:{},Pe=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all"}:S||{};nie();let he,xe=0;const Ne=xt=>{for(const nt of U||[])nt.eventProcessor&&(xt=nt.eventProcessor(xt));return F&&!ge&&(xt=F(xt)),xt};Gn=(xt,nt)=>{const K=xt;
40if(K.timestamp=Py(),O3([Gh,"access",se=>se[0],"optionalAccess",se=>se.isFrozen,"call",se=>se()])&&K.type!==jt.FullSnapshot&&!(K.type===jt.IncrementalSnapshot&&K.data.source===bt.Mutation)&&Gh.forEach(se=>se.unfreeze()),ue)O3([e,"optionalCall",se=>se(Ne(K),nt)]);else if(ge){const se={type:"rrweb",event:Ne(K),origin:window.location.origin,isCheckout:nt};window.parent.postMessage(se,"*")}if(K.type===jt.FullSnapshot)he=K,xe=0;else if(K.type===jt.IncrementalSnapshot){if(K.data.source===bt.Mutation&&K.data.isAttachIframe)return;xe++;const se=r&&xe>=r,ce=n&&he&&K.timestamp-he.timestamp>n;(se||ce)&&Lr(!0)}};const ze=xt=>{Gn({type:jt.IncrementalSnapshot,data:{source:bt.Mutation,...xt}})},Ze=xt=>Gn({type:jt.IncrementalSnapshot,data:{source:bt.Scroll,...xt}}),ut=xt=>Gn({type:jt.IncrementalSnapshot,data:{source:bt.CanvasMutation,...xt}}),Pt=xt=>Gn({type:jt.IncrementalSnapshot,data:{source:bt.AdoptedStyleSheet,...xt}}),Rt=new Nie({mutationCb:ze,adoptedStyleSheetCb:Pt}),Tt=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new Aie:new Iie({mirror:mo,mutationCb:ze,stylesheetManager:Rt,recordCrossOriginIframes:L,wrappedEmit:Gn});for(const xt of U||[])xt.getMirror&&xt.getMirror({nodeMirror:mo,crossOriginIframeMirror:Tt.crossOriginIframeMirror,crossOriginIframeStyleMirror:Tt.crossOriginIframeStyleMirror});const on=new Mie,Xt=Die(ie,{mirror:mo,win:window,mutationCb:xt=>Gn({type:jt.IncrementalSnapshot,data:{source:bt.CanvasMutation,...xt}}),recordCanvas:j,blockClass:s,blockSelector:i,unblockSelector:o,maxCanvasSize:O,sampling:D.canvas,dataURLOptions:I,errorHandler:oe}),Pr=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Pie:new Rie({mutationCb:ze,scrollCb:Ze,bypassOptions:{onMutation:Q,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:d,maskTextClass:p,unmaskTextClass:m,maskTextSelector:v,unmaskTextSelector:w,inlineStylesheet:E,maskInputOptions:Ae,dataURLOptions:I,maskAttributeFn:P,maskTextFn:z,maskInputFn:R,recordCanvas:j,inlineImages:q,sampling:D,slimDOMOptions:Pe,iframeManager:Tt,stylesheetManager:Rt,canvasManager:Xt,keepIframeSrcFn:B,processedNodeManager:on},mirror:mo}),Lr=(xt=!1)=>{if(!k)return;Gn({type:jt.Meta,data:{href:window.location.href,width:nj(),height:tj()}},xt),Rt.reset(),Pr.init(),Gh.forEach(K=>K.lock());const nt=eie(document,{mirror:mo,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:d,maskTextClass:p,unmaskTextClass:m,maskTextSelector:v,unmaskTextSelector:w,inlineStylesheet:E,maskAllInputs:Ae,maskAttributeFn:P,maskInputFn:R,maskTextFn:z,slimDOM:Pe,dataURLOptions:I,recordCanvas:j,inlineImages:q,onSerialize:K=>{ij(K,mo)&&Tt.addIframe(K),oj(K,mo)&&Rt.trackLinkElement(K),q8(K)&&Pr.addShadowRoot(K.shadowRoot,document)},onIframeLoad:(K,se)=>{Tt.attachIframe(K,se),K.contentWindow&&Xt.addWindow(K.contentWindow),Pr.observeAttachShadow(K)},onStylesheetLoad:(K,se)=>{Rt.attachLinkElement(K,se)},keepIframeSrcFn:B});if(!nt)return console.warn("Failed to snapshot the document");Gn({type:jt.FullSnapshot,data:{node:nt,initialOffset:ej(window)}}),Gh.forEach(K=>K.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Rt.adoptStyleSheets(document.adoptedStyleSheets,mo.getId(document))};Ny=Lr;try{const xt=[],nt=se=>en(Tie)({onMutation:Q,mutationCb:ze,mousemoveCb:(ce,Me)=>Gn({type:jt.IncrementalSnapshot,data:{source:Me,positions:ce}}),mouseInteractionCb:ce=>Gn({type:jt.IncrementalSnapshot,data:{source:bt.MouseInteraction,...ce}}),scrollCb:Ze,viewportResizeCb:ce=>Gn({type:jt.IncrementalSnapshot,data:{source:bt.ViewportResize,...ce}}),inputCb:ce=>Gn({type:jt.IncrementalSnapshot,data:{source:bt.Input,...ce}}),mediaInteractionCb:ce=>Gn({type:jt.IncrementalSnapshot,data:{source:bt.MediaInteraction,...ce}}),styleSheetRuleCb:ce=>Gn({type:jt.IncrementalSnapshot,data:{source:bt.StyleSheetRule,...ce}}),styleDeclarationCb:ce=>Gn({type:jt.IncrementalSnapshot,data:{source:bt.StyleDeclaration,...ce}}),canvasMutationCb:ut,fontCb:ce=>Gn({type:jt.IncrementalSnapshot,data:{source:bt.Font,...ce}}),selectionCb:ce=>{Gn({type:jt.IncrementalSnapshot,data:{source:bt.Selection,...ce}})},customElementCb:ce=>{Gn({type:jt.IncrementalSnapshot,data:{source:bt.CustomElement,...ce}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:d,maskTextClass:p,unmaskTextClass:m,maskTextSelector:v,unmaskTextSelector:w,maskInputOptions:Ae,inlineStylesheet:E,sampling:D,recordDOM:k,recordCanvas:j,inlineImages:q,userTriggeredOnInput:Y,collectFonts:G,doc:se,maskAttributeFn:P,maskInputFn:R,maskTextFn:z,keepIframeSrcFn:B,blockSelector:i,unblockSelector:o,slimDOMOptions:Pe,dataURLOptions:I,mirror:mo,iframeManager:Tt,stylesheetManager:Rt,shadowDomManager:Pr,processedNodeManager:on,canvasManager:Xt,ignoreCSSAttributes:ne,plugins:O3([U,"optionalAccess",ce=>ce.filter,"call",ce=>ce(Me=>Me.observer),"optionalAccess",ce=>ce.map,"call",ce=>ce(Me=>({observer:Me.observer,options:Me.options,callback:be=>Gn({type:jt.Plugin,data:{plugin:Me.name,payload:be}})}))])||[]},{});Tt.addLoadListener(se=>{try{xt.push(nt(se.contentDocument))}catch(ce){console.warn(ce)}});const K=()=>{Lr(),xt.push(nt(document))};return document.readyState==="interactive"||document.readyState==="complete"?K():(xt.push(Es("DOMContentLoaded",()=>{Gn({type:jt.DomContentLoaded,data:{}}),V==="DOMContentLoaded"&&K()})),xt.push(Es("load",()=>{Gn({type:jt.Load,data:{}}),V==="load"&&K()}
40,window))),()=>{xt.forEach(se=>se()),on.destroy(),Ny=void 0,pie()}}catch(xt){console.warn(xt)}}function kie(t){if(!Ny)throw new Error("please take full snapshot after start recording");Ny(t)}El.mirror=mo;El.takeFullSnapshot=kie;function Die(t,e){try{return t?t(e):new GP}catch{return console.warn("Unable to initialize CanvasManager"),new GP}}const Oie=3,$ie=5;function z9(t){return t>9999999999?t:t*1e3}function Dw(t){return t>9999999999?t/1e3:t}function O2(t,e){e.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:jt.Custom,timestamp:(e.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Eo(e,10,1e3)}}),e.category==="console")))}const Fie="button,a";function hj(t){return t.closest(Fie)||t}function pj(t){const e=mj(t);return!e||!(e instanceof Element)?e:hj(e)}function mj(t){return jie(t)?t.target:t}function jie(t){return typeof t=="object"&&!!t&&"target"in t}let Fc;function Lie(t){return Fc||(Fc=[],zie()),Fc.push(t),()=>{const e=Fc?Fc.indexOf(t):-1;e>-1&&Fc.splice(e,1)}}function zie(){Hs(Tn,"open",function(t){return function(...e){if(Fc)try{Fc.forEach(n=>n())}catch{}return t.apply(Tn,e)}})}const Vie=new Set([bt.Mutation,bt.StyleSheetRule,bt.StyleDeclaration,bt.AdoptedStyleSheet,bt.CanvasMutation,bt.Selection,bt.MediaInteraction]);function Bie(t,e,n){t.handleClick(e,n)}class Hie{constructor(e,n,r=O2){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const e=Lie(()=>{this._lastMutation=KP()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,n){if(Wie(n,this._ignoreSelector)||!qie(e))return;const r={timestamp:Dw(e.timestamp),clickBreadcrumb:e,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=Dw(e)}registerScroll(e=Date.now()){this._lastScroll=Dw(e)}registerClick(e){const n=hj(e);this._handleMultiClick(n)}_handleMultiClick(e){this._getClicks(e).forEach(n=>{n.clickCount++})}_getClicks(e){return this._clicks.filter(n=>n.node===e)}_checkClicks(){const e=[],n=KP();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&e.push(r)});for(const r of e){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const n=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,s=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!r&&!s,{clickCount:o,clickBreadcrumb:a}=e;if(i){const c=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,d=c<this._timeout*1e3?"mutation":"timeout",p={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:Tn.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:d,clickCount:o||1}};this._addBreadcrumbEvent(n,p);return}if(o>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:Tn.location.href,route:n.getCurrentRoute(),clickCount:o,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=zp(()=>this._checkClicks(),1e3)}}const Uie=["A","BUTTON","INPUT"];function Wie(t,e){return!!(!Uie.includes(t.tagName)||t.tagName==="INPUT"&&!["submit","button"].includes(t.getAttribute("type")||"")||t.tagName==="A"&&(t.hasAttribute("download")||t.hasAttribute("target")&&t.getAttribute("target")!=="_self")||e&&t.matches(e))}function qie(t){return!!(t.data&&typeof t.data.nodeId=="number"&&t.timestamp)}function KP(){return Date.now()/1e3}function Gie(t,e){try{if(!Kie(e))return;const{source:n}=e.data;if(Vie.has(n)&&t.registerMutation(e.timestamp),n===bt.Scroll&&t.registerScroll(e.timestamp),Yie(e)){const{type:r,id:s}=e.data,i=El.mirror.getNode(s);i instanceof HTMLElement&&r===vs.Click&&t.registerClick(i)}}catch{}}function Kie(t){return t.type===Oie}function Yie(t){return t.data.source===bt.MouseInteraction}function va(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var My;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(My||(My={}));
40const Qie=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Xie(t){const e={};!t["data-sentry-component"]&&t["data-sentry-element"]&&(t["data-sentry-component"]=t["data-sentry-element"]);for(const n in t)if(Qie.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),e[r]=t[n]}return e}const Zie=t=>e=>{if(!t.isEnabled())return;const n=Jie(e);if(!n)return;const r=e.name==="click",s=r?e.event:void 0;r&&t.clickDetector&&s&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&Bie(t.clickDetector,n,pj(e.event)),O2(t,n)};function gj(t,e){const n=El.mirror.getId(t),r=n&&El.mirror.getNode(n),s=r&&El.mirror.getMeta(r),i=s&&toe(s)?s:null;return{message:e,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(o=>o.type===My.Text&&o.textContent).filter(Boolean).map(o=>o.trim()).join(""),attributes:Xie(i.attributes)}}:{}}}function Jie(t){const{target:e,message:n}=eoe(t);return va({category:`ui.${t.name}`,...gj(e,n)})}function eoe(t){const e=t.name==="click";let n,r=null;try{r=e?pj(t.event):mj(t.event),n=Nl(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function toe(t){return t.type===My.Element}function noe(t,e){if(!t.isEnabled())return;t.updateUserActivity();const n=roe(e);n&&O2(t,n)}function roe(t){const{metaKey:e,shiftKey:n,ctrlKey:r,altKey:s,key:i,target:o}=t;if(!o||soe(o)||!i)return null;const a=e||r||s,c=i.length===1;if(!a&&c)return null;const d=Nl(o,{maxStringLength:200})||"<unknown>",p=gj(o,d);return va({category:"ui.keyDown",message:d,data:{...p.data,metaKey:e,shiftKey:n,ctrlKey:r,altKey:s,key:i}})}function soe(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable}const ioe={resource:uoe,paint:loe,navigation:coe};function Yv(t,e){return({metric:n})=>void e.replayPerformanceEntries.push(t(n))}
40function ooe(t){return t.map(aoe).filter(Boolean)}function aoe(t){const e=ioe[t.entryType];return e?e(t):null}function Hp(t){return((Ts||Tn.performance.timeOrigin)+t)/1e3}function loe(t){const{duration:e,entryType:n,name:r,startTime:s}=t,i=Hp(s);return{type:n,name:r,start:i,end:i+e,data:void 0}}function coe(t){const{entryType:e,name:n,decodedBodySize:r,duration:s,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:d,loadEventStart:p,loadEventEnd:m,redirectCount:v,startTime:w,transferSize:E,type:C}=t;return s===0?null:{type:`${e}.${C}`,start:Hp(w),end:Hp(i),name:n,data:{size:E,decodedBodySize:r,encodedBodySize:o,duration:s,domInteractive:d,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:p,loadEventEnd:m,domComplete:i,redirectCount:v}}}function uoe(t){const{entryType:e,initiatorType:n,name:r,responseEnd:s,startTime:i,decodedBodySize:o,encodedBodySize:a,responseStatus:c,transferSize:d}=t;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${e}.${n}`,start:Hp(i),end:Hp(s),name:r,data:{size:d,statusCode:c,decodedBodySize:o,encodedBodySize:a}}}function doe(t){const e=t.entries[t.entries.length-1],n=e&&e.element?[e.element]:void 0;return f5(t,"largest-contentful-paint",n)}function foe(t){return t.sources!==void 0}function hoe(t){const e=[],n=[];for(const r of t.entries)if(foe(r)){const s=[];for(const i of r.sources)if(i.node){n.push(i.node);const o=El.mirror.getId(i.node);o&&s.push(o)}e.push({value:r.value,nodeIds:s.length?s:void 0})}return f5(t,"cumulative-layout-shift",n,e)}function poe(t){const e=t.entries[t.entries.length-1],n=e&&e.target?[e.target]:void 0;return f5(t,"first-input-delay",n)}function moe(t){const e=t.entries[t.entries.length-1],n=e&&e.target?[e.target]:void 0;return f5(t,"interaction-to-next-paint",n)}function f5(t,e,n,r){const s=t.value,i=t.rating,o=Hp(s);return{type:"web-vital",name:e,start:o,end:o,data:{value:s,size:s,rating:i,nodeIds:n?n.map(a=>El.mirror.getId(a)):void 0,attributions:r}}}function goe(t){function e(s){t.performanceEntries.includes(s)||t.performanceEntries.push(s)}function n({entries:s}){s.forEach(e)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(Lp(s,n))}),r.push(kF(Yv(doe,t)),R9(Yv(hoe,t)),DF(Yv(poe,t)),OF(Yv(moe,t))),()=>{r.forEach(s=>s())}}const dt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,voe='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))}
vendor: 4,591 bytes, line 40
40,M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},U=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=x(f,15),M=b.t,E=b.l,A=x(h,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(a[t]^a[t+1]<<A^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
40++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=U(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;o<e;++o){if(a+5>i.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function yoe(){const t=new Blob([voe]);return URL.createObjectURL(t)}const YP=["info","warn","error","log"],j3="[Replay] ";function Ow(t,e="info"){pu({category:"console",data:{logger:"replay"},level:e,message:`${j3}${t}`},{level:e})}function xoe(){let t=!1,e=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{t=r.captureExceptions,e=r.traceInternals}};return dt?(YP.forEach(r=>{n[r]=(...s)=>{Fe[r](j3,...s),e&&Ow(s.join(""),vF(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),Fe.error(j3,r),t?hu(r):e&&Ow(r,"error")},n.infoTick=(...r)=>{Fe.info(j3,...r),e&&setTimeout(()=>Ow(r[0]),0)}):YP.forEach(r=>{n[r]=()=>{}}),n}const _t=xoe();
40class V9 extends Error{constructor(){super(`Event buffer exceeded maximum size of ${D9}.`)}}class vj{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const n=JSON.stringify(e).length;if(this._totalSize+=n,this._totalSize>D9)throw new V9;this.events.push(e)}finish(){return new Promise(e=>{const n=this.events;this.clear(),e(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map(n=>n.timestamp).sort()[0];return e?z9(e):null}}class woe{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((e,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){dt&&_t.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,n){const r=this._getAndIncrementId();return new Promise((s,i)=>{const o=({data:a})=>{const c=a;if(c.method===e&&c.id===r){if(this._worker.removeEventListener("message",o),!c.success){dt&&_t.error("Error in compression worker: ",c.response),i(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:e,arg:n})})}_getAndIncrementId(){return this._id++}}class _oe{constructor(e){this._worker=new woe(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const n=z9(e.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(e);return this._totalSize+=r.length,this._totalSize>D9?Promise.reject(new V9):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{dt&&_t.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Eoe{constructor(e){this._fallback=new vj,this._compression=new _oe(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){dt&&_t.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const i of e)s.push(this._compression.addEvent(i));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(i){dt&&_t.exception(i,"Failed to add events when switching buffers.")}}}function boe({useCompression:t,workerUrl:e}){if(t&&window.Worker){const n=Soe(e);if(n)return n}return dt&&_t.info("Using simple buffer"),new vj}function Soe(t){try{const e=t||Coe();if(!e)return;dt&&_t.info(`Using compression worker${t?` from ${t}`:""}`);const n=new Worker(e);return new Eoe(n)}catch(e){dt&&_t.exception(e,"Failed to create compression worker")}}function Coe(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?yoe():""}function B9(){try{return"sessionStorage"in Tn&&!!Tn.sessionStorage}catch{return!1}}function Toe(t){Aoe(),t.session=void 0}function Aoe(){if(B9())try{Tn.sessionStorage.removeItem(M9)}catch{}}function yj(t){return t===void 0?!1:Math.random()<t}function xj(t){const e=Date.now(),n=t.id||hi(),r=t.started||e,s=t.lastActivity||e,i=t.segmentId||0,o=t.sampled,a=t.previousSessionId;return{id:n,started:r,lastActivity:s,segmentId:i,sampled:o,previousSessionId:a}}function H9(t){if(B9())try{Tn.sessionStorage.setItem(M9,JSON.stringify(t))}catch{}}function Ioe(t,e){return yj(t)?"session":e?"buffer":!1}function QP({sessionSampleRate:t,allowBuffering:e,stickySession:n=!1},{previousSessionId:r}={}){const s=Ioe(t,e),i=xj({sampled:s,previousSessionId:r});return n&&H9(i),i}function Poe(){if(!B9())return null;try{const t=Tn.sessionStorage.getItem(M9);if(!t)return null;const e=JSON.parse(t);return dt&&_t.infoTick("Loading existing session"),xj(e)}catch{return null}}function Y8(t,e,n=+new Date){return t===null||e===void 0||e<0?!0:e===0?!1:t+e<=n}function wj(t,{maxReplayDuration:e,sessionIdleExpire:n,targetTime:r=Date.now()}){return Y8(t.started,e,r)||Y8(t.lastActivity,n,r)}function _j(t,{sessionIdleExpire:e,maxReplayDuration:n}){return!(!wj(t,{sessionIdleExpire:e,maxReplayDuration:n})||t.sampled==="buffer"&&t.segmentId===0)}function $w({sessionIdleExpire:t,maxReplayDuration:e,previousSessionId:n},r){const s=r.stickySession&&Poe();return s?_j(s,{sessionIdleExpire:t,maxReplayDuration:e})?(dt&&_t.infoTick("Session in sessionStorage is expired, creating new one..."),QP(r,{previousSessionId:s.id})):s:(dt&&_t.infoTick("Creating new session"),QP(r,{previousSessionId:n}))}function Roe(t){return t.type===jt.Custom}function U9(t,e,n){return bj(t,e)?(Ej(t,e,n),!0):!1}function Noe(t,e,n){return bj(t,e)?Ej(t,e,n):Promise.resolve(null)}async function Ej(t,e,n){const{eventBuffer:r}=t;if(!r||r.waitForCheckout&&!n)return null;const s=t.recordingMode==="buffer";
40try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=t.getOptions(),o=Moe(e,i.beforeAddRecordingEvent);return o?await r.addEvent(o):void 0}catch(i){const o=i&&i instanceof V9,a=o?"addEventSizeExceeded":"addEvent";if(o&&s)return r.clear(),r.waitForCheckout=!0,null;t.handleException(i),await t.stop({reason:a});const c=qt();c&&c.recordDroppedEvent("internal_sdk_error","replay")}}function bj(t,e){if(!t.eventBuffer||t.isPaused()||!t.isEnabled())return!1;const n=z9(e.timestamp);return n+t.timeouts.sessionIdlePause<Date.now()?!1:n>t.getContext().initialTimestamp+t.getOptions().maxReplayDuration?(dt&&_t.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function Moe(t,e){try{if(typeof e=="function"&&Roe(t))return e(t)}catch(n){return dt&&_t.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return t}function W9(t){return!t.type}function Q8(t){return t.type==="transaction"}function koe(t){return t.type==="replay_event"}function XP(t){return t.type==="feedback"}function Doe(t){return(e,n)=>{if(!t.isEnabled()||!W9(e)&&!Q8(e))return;const r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Q8(e)){Ooe(t,e);return}$oe(t,e)}}}function Ooe(t,e){const n=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(e.contexts.trace.trace_id)}function $oe(t,e){const n=t.getContext();if(e.event_id&&n.errorIds.size<100&&n.errorIds.add(e.event_id),t.recordingMode!=="buffer"||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:r}=t.getOptions();typeof r=="function"&&!r(e)||zp(async()=>{try{await t.sendBufferedReplayOrFlush()}catch(s){t.handleException(s)}})}function Foe(t){return e=>{!t.isEnabled()||!W9(e)||joe(t,e)}}function joe(t,e){const n=e.exception&&e.exception.values&&e.exception.values[0]&&e.exception.values[0].value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=va({category:"replay.hydrate-error",data:{url:R$()}});O2(t,r)}}function Loe(t){const e=qt();e&&e.on("beforeAddBreadcrumb",n=>zoe(t,n))}function zoe(t,e){if(!t.isEnabled()||!Sj(e))return;const n=Voe(e);n&&O2(t,n)}function Voe(t){return!Sj(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:t.category==="console"?Boe(t):va(t)}function Boe(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||e.length===0)return va(t);let n=!1;const r=e.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>qv?(n=!0,`${s.slice(0,qv)}…`):s;if(typeof s=="object")try{const i=Eo(s,7);return JSON.stringify(i).length>qv?(n=!0,`${JSON.stringify(i,null,2).slice(0,qv)}…`):i}catch{}return s});return va({...t,data:{...t.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Sj(t){return!!t.category}function Hoe(t,e){return t.type||!t.exception||!t.exception.values||!t.exception.values.length?!1:!!(e.originalException&&e.originalException.__rrweb__)}function Cj(){const t=In().getPropagationContext().dsc;t&&delete t.replay_id;const e=Fr();if(e){const n=Ef(e);delete n.replay_id}}function Uoe(t,e){t.triggerUserActivity(),t.addUpdate(()=>e.timestamp?(t.throttledAddEvent({type:jt.Custom,timestamp:e.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:e.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1):!0)}function Woe(t,e){return t.recordingMode!=="buffer"||e.message===k9||!e.exception||e.type?!1:yj(t.getOptions().errorSampleRate)}function qoe(t){return Object.assign((e,n)=>!t.isEnabled()||t.isPaused()?e:koe(e)?(delete e.breadcrumbs,e):!W9(e)&&!Q8(e)&&!XP(e)?e:t.checkAndHandleExpiredSession()?XP(e)?(t.flush(),e.contexts.feedback.replay_id=t.getSessionId(),Uoe(t,e),e):Hoe(e,n)&&!t.getOptions()._experiments.captureExceptions?(dt&&_t.log("Ignoring error from rrweb internals",e),null):((Woe(t,e)||t.recordingMode==="session")&&(e.tags={...e.tags,replayId:t.getSessionId()}),e):(Cj(),e),{id:"Replay"})}function h5(t,e){return e.map(({type:n,start:r,end:s,name:i,data:o})=>{const a=t.throttledAddEvent({type:jt.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:s,data:o}}});
40return typeof a=="string"?Promise.resolve(null):a})}function Goe(t){const{from:e,to:n}=t,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:e}}}function Koe(t){return e=>{if(!t.isEnabled())return;const n=Goe(e);n!==null&&(t.getContext().urls.push(n.name),t.triggerUserActivity(),t.addUpdate(()=>(h5(t,[n]),!1)))}}function Yoe(t,e){return dt&&t.getOptions()._experiments.traceInternals?!1:Gee(e,qt())}function Tj(t,e){t.isEnabled()&&e!==null&&(Yoe(t,e.name)||t.addUpdate(()=>(h5(t,[e]),!0)))}function p5(t){if(!t)return;const e=new TextEncoder;try{if(typeof t=="string")return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const n=Rj(t);return e.encode(n).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function Aj(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function Ij(t){try{if(typeof t=="string")return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[Rj(t)];if(!t)return[void 0]}catch(e){return dt&&_t.exception(e,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return dt&&_t.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function ky(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const n={...t._meta},r=n.warnings||[];return n.warnings=[...r,e],t._meta=n,t}function Pj(t,e){if(!e)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:i,statusCode:o,request:a,response:c}=e;return{type:t,start:n/1e3,end:r/1e3,name:s,data:Cr({method:i,statusCode:o,request:a,response:c})}}function k0(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function nu(t,e,n){if(!e&&Object.keys(t).length===0)return;if(!e)return{headers:t};if(!n)return{headers:t,size:e};const r={headers:t,size:e},{body:s,warnings:i}=Qoe(n);return r.body=s,i&&i.length>0&&(r._meta={warnings:i}),r}function X8(t,e){return Object.entries(t).reduce((n,[r,s])=>{const i=r.toLowerCase();return e.includes(i)&&t[r]&&(n[i]=s),n},{})}function Rj(t){return new URLSearchParams(t).toString()}function Qoe(t){if(!t||typeof t!="string")return{body:t};const e=t.length>NP,n=Xoe(t);if(e){const r=t.slice(0,NP);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(t)}}catch{}return{body:t}}function Xoe(t){const e=t[0],n=t[t.length-1];return e==="["&&n==="]"||e==="{"&&n==="}"}function Dy(t,e){const n=Zoe(t);return tu(n,e)}function Zoe(t,e=Tn.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(Tn.location.origin))return t;const n=new URL(t,e);if(n.origin!==new URL(e).origin)return t;const r=n.href;return!t.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function Joe(t,e,n){try{const r=await tae(t,e,n),s=Pj("resource.fetch",r);Tj(n.replay,s)}catch(r){dt&&_t.exception(r,"Failed to capture fetch breadcrumb")}}function eae(t,e){const{input:n,response:r}=e,s=n?Nj(n):void 0,i=p5(s),o=r?Aj(r.headers.get("content-length")):void 0;i!==void 0&&(t.data.request_body_size=i),o!==void 0&&(t.data.response_body_size=o)}async function tae(t,e,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r}=e,{url:o,method:a,status_code:c=0,request_body_size:d,response_body_size:p}=t.data,m=Dy(o,n.networkDetailAllowUrls)&&!Dy(o,n.networkDetailDenyUrls),v=m?nae(n,e.input,d):k0(d),w=await rae(m,n,e.response,p);return{startTimestamp:s,endTimestamp:i,url:o,method:a,statusCode:c,request:v,response:w}}function nae({networkCaptureBodies:t,networkRequestHeaders:e},n,r){const s=n?oae(n,e):{};if(!t)return nu(s,r,void 0);const i=Nj(n),[o,a]=Ij(i),c=nu(s,r,o);return a?ky(c,a):c}async function rae(t,{networkCaptureBodies:e,networkResponseHeaders:n},r,s){if(!t&&s!==void 0)return k0(s);const i=r?Mj(r.headers,n):{};if(!r||!e&&s!==void 0)return nu(i,s,void 0);const[o,a]=await iae(r),c=sae(o,{networkCaptureBodies:e,responseBodySize:s,captureDetails:t,headers:i});return a?ky(c,a):c}function sae(t,{networkCaptureBodies:e,responseBodySize:n,captureDetails:r,headers:s}){try{const i=t&&t.length&&n===void 0?p5(t):n;return r?e?nu(s,i,t):nu(s,i,void 0):k0(i)}catch(i){return dt&&_t.exception(i,"Failed to serialize response body"),nu(s,n,void 0)}}
40async function iae(t){const e=aae(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await lae(e)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(dt&&_t.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(dt&&_t.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Nj(t=[]){if(!(t.length!==2||typeof t[1]!="object"))return t[1].body}function Mj(t,e){const n={};return e.forEach(r=>{t.get(r)&&(n[r]=t.get(r))}),n}function oae(t,e){return t.length===1&&typeof t[0]!="string"?ZP(t[0],e):t.length===2?ZP(t[1],e):{}}function ZP(t,e){if(!t)return{};const n=t.headers;return n?n instanceof Headers?Mj(n,e):Array.isArray(n)?{}:X8(n,e):{}}function aae(t){try{return t.clone()}catch(e){dt&&_t.exception(e,"Failed to clone response body")}}function lae(t){return new Promise((e,n)=>{const r=zp(()=>n(new Error("Timeout while trying to read response body")),500);cae(t).then(s=>e(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function cae(t){return await t.text()}async function uae(t,e,n){try{const r=fae(t,e,n),s=Pj("resource.xhr",r);Tj(n.replay,s)}catch(r){dt&&_t.exception(r,"Failed to capture xhr breadcrumb")}}function dae(t,e){const{xhr:n,input:r}=e;if(!n)return;const s=p5(r),i=n.getResponseHeader("content-length")?Aj(n.getResponseHeader("content-length")):gae(n.response,n.responseType);s!==void 0&&(t.data.request_body_size=s),i!==void 0&&(t.data.response_body_size=i)}function fae(t,e,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:i=r,input:o,xhr:a}=e,{url:c,method:d,status_code:p=0,request_body_size:m,response_body_size:v}=t.data;if(!c)return null;if(!a||!Dy(c,n.networkDetailAllowUrls)||Dy(c,n.networkDetailDenyUrls)){const F=k0(m),D=k0(v);return{startTimestamp:s,endTimestamp:i,url:c,method:d,statusCode:p,request:F,response:D}}const w=a[bd],E=w?X8(w.request_headers,n.networkRequestHeaders):{},C=X8(hae(a),n.networkResponseHeaders),[b,S]=n.networkCaptureBodies?Ij(o):[void 0],[P,R]=n.networkCaptureBodies?pae(a):[void 0],z=nu(E,m,b),O=nu(C,v,P);return{startTimestamp:s,endTimestamp:i,url:c,method:d,statusCode:p,request:S?ky(z,S):z,response:R?ky(O,R):O}}function hae(t){const e=t.getAllResponseHeaders();return e?e.split(`\r
41`).reduce((n,r)=>{const[s,i]=r.split(": ");return i&&(n[s.toLowerCase()]=i),n},{}):{}}function pae(t){const e=[];try{return[t.responseText]}catch(n){e.push(n)}try{return mae(t.response,t.responseType)}catch(n){e.push(n)}return dt&&_t.warn("Failed to get xhr response body",...e),[void 0]}function mae(t,e){try{if(typeof t=="string")return[t];if(t instanceof Document)return[t.body.outerHTML];if(e==="json"&&t&&typeof t=="object")return[JSON.stringify(t)];if(!t)return[void 0]}catch(n){return dt&&_t.exception(n,"Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return dt&&_t.info("Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function gae(t,e){try{const n=e==="json"&&t&&typeof t=="object"?JSON.stringify(t):t;return p5(n)}catch{return}}function vae(t){const e=qt();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o}=t.getOptions(),a={replay:t,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:i,networkResponseHeaders:o};e&&e.on("beforeAddBreadcrumb",(c,d)=>yae(a,c,d))}catch{}}function yae(t,e,n){if(e.data)try{xae(e)&&_ae(n)&&(dae(e,n),uae(e,n,t)),wae(e)&&Eae(n)&&(eae(e,n),Joe(e,n,t))}catch(r){dt&&_t.exception(r,"Error when enriching network breadcrumb")}}function xae(t){return t.category==="xhr"}function wae(t){return t.category==="fetch"}function _ae(t){return t&&t.xhr}function Eae(t){return t&&t.response}function bae(t){const e=qt();zF(Zie(t)),l5(Koe(t)),Loe(t),vae(t);const n=qoe(t);Tee(n),e&&(e.on("beforeSendEvent",Foe(t)),e.on("afterSendEvent",Doe(t)),e.on("createDsc",r=>{const s=t.getSessionId();s&&t.isEnabled()&&t.recordingMode==="session"&&t.checkAndHandleExpiredSession()&&(r.replay_id=s)}),e.on("spanStart",r=>{t.lastActiveSpan=r}),e.on("spanEnd",r=>{t.lastActiveSpan=r}),e.on("beforeSendFeedback",(r,s)=>{const i=t.getSessionId();s&&s.includeReplay&&t.isEnabled()&&i&&r.contexts&&r.contexts.feedback&&(r.contexts.feedback.replay_id=i)}))}async function Sae(t){try{return Promise.all(h5(t,[Cae(Tn.performance.memory)]))}catch{return[]}}function Cae(t){const{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}=t,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Tae(t,e,n){let r,s,i;const o=n&&n.maxWait?Math.max(n.maxWait,e):0;function a(){return c(),r=t(),r}function c(){s!==void 0&&clearTimeout(s),i!==void 0&&clearTimeout(i),s=i=void 0}function d(){return s!==void 0||i!==void 0?a():r}function p(){return s&&clearTimeout(s),s=zp(a,e),o&&i===void 0&&(i=zp(a,o)),r}return p.cancel=c,p.flush=d,p}const pd=Qt.navigator;function Aae(){return/iPhone|iPad|iPod/i.test(pd&&pd.userAgent||"")||/Macintosh/i.test(pd&&pd.userAgent||"")&&pd&&pd.maxTouchPoints&&pd.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function Iae(t){let e=!1;return(n,r)=>{if(!t.checkAndHandleExpiredSession()){dt&&_t.warn("Received replay event after session expired.");return}const s=r||!e;e=!0,t.clickDetector&&Gie(t.clickDetector,n),t.addUpdate(()=>{if(t.recordingMode==="buffer"&&s&&t.setInitialState(),!U9(t,n,s))return!0;
41if(!s)return!1;const i=t.session;if(Rae(t,s),t.recordingMode==="buffer"&&i&&t.eventBuffer){const o=t.eventBuffer.getEarliestTimestamp();o&&(dt&&_t.info(`Updating session start time to earliest event in buffer to ${new Date(o)}`),i.started=o,t.getOptions().stickySession&&H9(i))}return i&&i.previousSessionId||t.recordingMode==="session"&&t.flush(),!0})}}function Pae(t){const e=t.getOptions();return{type:jt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:t.eventBuffer?t.eventBuffer.type==="worker":!1,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function Rae(t,e){!e||!t.session||t.session.segmentId!==0||U9(t,Pae(t),!1)}function Nae(t,e,n,r){return bf(eF(t,S9(t),r,n),[[{type:"replay_event"},t],[{type:"replay_recording",length:typeof e=="string"?new TextEncoder().encode(e).length:e.length},e]])}function Mae({recordingData:t,headers:e}){let n;const r=`${JSON.stringify(e)}
42`;if(typeof t=="string")n=`${r}${t}`;else{const i=new TextEncoder().encode(r);n=new Uint8Array(i.length+t.length),n.set(i),n.set(t,i.length)}return n}async function kae({client:t,scope:e,replayId:n,event:r}){const s=typeof t._integrations=="object"&&t._integrations!==null&&!Array.isArray(t._integrations)?Object.keys(t._integrations):void 0,i={event_id:n,integrations:s};t.emit("preprocessEvent",r,i);const o=await iF(t.getOptions(),r,i,e,t,Bo());if(!o)return null;o.platform=o.platform||"javascript";const a=t.getSdkMetadata(),{name:c,version:d}=a&&a.sdk||{};return o.sdk={...o.sdk,name:c||"sentry.javascript.unknown",version:d||"0.0.0"},o}async function Dae({recordingData:t,replayId:e,segmentId:n,eventContext:r,timestamp:s,session:i}){const o=Mae({recordingData:t,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:d,initialTimestamp:p}=r,m=qt(),v=In(),w=m&&m.getTransport(),E=m&&m.getDsn();if(!m||!w||!E||!i.sampled)return Ml({});const C={type:fse,replay_start_timestamp:p/1e3,timestamp:s/1e3,error_ids:c,trace_ids:d,urls:a,replay_id:e,segment_id:n,replay_type:i.sampled},b=await kae({scope:v,client:m,replayId:e,event:C});if(!b)return m.recordDroppedEvent("event_processor","replay",C),dt&&_t.info("An event processor returned `null`, will not send event."),Ml({});delete b.sdkProcessingMetadata;const S=Nae(b,o,E,m.getOptions().tunnel);let P;try{P=await w.send(S)}catch(z){const O=new Error(k9);try{O.cause=z}catch{}throw O}if(typeof P.statusCode=="number"&&(P.statusCode<200||P.statusCode>=300))throw new kj(P.statusCode);const R=pF({},P);if(hF(R,"replay"))throw new q9(R);return P}class kj extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class q9 extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Dj(t,e={count:0,interval:yse}){const{recordingData:n,onError:r}=t;if(n.length)try{return await Dae(t),!0}catch(s){if(s instanceof kj||s instanceof q9)throw s;if(aF("Replays",{_retryCount:e.count}),r&&r(s),e.count>=xse){const i=new Error(`${k9} - max retries exceeded`);try{i.cause=s}catch{}throw i}return e.interval*=++e.count,new Promise((i,o)=>{zp(async()=>{try{await Dj(t,e),i(!0)}catch(a){o(a)}},e.interval)})}}const Oj="__THROTTLED",Oae="__SKIPPED";function $ae(t,e,n){const r=new Map,s=a=>{const c=a-n;r.forEach((d,p)=>{p<c&&r.delete(p)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0);let o=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),i()>=e){const p=o;return o=!0,p?Oae:Oj}o=!1;const d=r.get(c)||0;return r.set(c,d+1),t(...a)}}class jc{constructor({options:e,recordingOptions:n}){jc.prototype.__init.call(this),jc.prototype.__init2.call(this),jc.prototype.__init3.call(this),jc.prototype.__init4.call(this),jc.prototype.__init5.call(this),jc.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:hse,sessionIdleExpire:pse},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=e,this._debouncedFlush=Tae(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=$ae((o,a)=>Noe(this,o,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),i=r?{threshold:Math.min(wse,r),timeout:r,scrollTimeout:_se,ignoreSelector:s?s.join(","):""}:void 0;if(i&&(this.clickDetector=new Hie(this,i)),dt){const o=e._experiments;_t.setConfig({captureExceptions:!!o.captureExceptions,traceInternals:!!o.traceInternals})}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){dt&&_t.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(e),!this.session){dt&&_t.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",dt&&_t.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}
42start(){if(this._isEnabled&&this.recordingMode==="session"){dt&&_t.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){dt&&_t.info("Buffering is in progress, call `flush()` to save the replay");return}dt&&_t.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=$w({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled){dt&&_t.info("Buffering is in progress, call `flush()` to save the replay");return}dt&&_t.infoTick("Starting replay in buffer mode");const e=$w({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=El({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:vse}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Iae(this),...Aae(),onMutation:this._onMutationHandler,...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{dt&&_t.info(`Stopping Replay${n?` triggered by ${n}`:""}`),Cj(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Toe(this)}catch(r){this.handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),dt&&_t.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),dt&&_t.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();dt&&_t.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!e||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const n=e();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Y8(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const e=`${Tn.location.pathname}${Tn.location.hash}${Tn.location.search}`,n=`${Tn.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(e,n){const r=this._throttledAddEvent(e,n);if(r===Oj){const s=va({category:"replay.throttled"});this.addUpdate(()=>!U9(this,{type:$ie,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const e=this.lastActiveSpan||Fr(),n=e&&Xr(e),s=(n&&sn(n).data||{})[fi];if(!(!n||!s||!["route","custom"].includes(s)))return sn(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=boe({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const n=this._options.errorSampleRate>0,r=$w({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const e=this.session;return _j(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{Tn.document.addEventListener("visibilitychange",this._handleVisibilityChange),Tn.addEventListener("blur",this._handleWindowBlur),Tn.addEventListener("focus",this._handleWindowFocus),Tn.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(bae(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=goe(this)}_removeListeners(){try{Tn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Tn.removeEventListener("blur",this._handleWindowBlur),Tn.removeEventListener("focus",this._handleWindowFocus),Tn.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{Tn.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
42dTasks()}}__init2(){this._handleWindowBlur=()=>{const e=va({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=va({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{noe(this,e)}}_doChangeToBackgroundTasks(e){!this.session||wj(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){dt&&_t.info("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:jt.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=ooe(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;e=e.filter(r=>r.start>=n)}return Promise.all(h5(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:n}=this;if(!e||!n||this._requiresManualStart||e.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){dt&&_t.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await Sae(this),!!this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const i=await this.eventBuffer.finish();await Dj({replayId:e,recordingData:i,segmentId:s,eventContext:r,session:this.session,timestamp:n,onError:o=>this.handleException(o)})}catch(n){this.handleException(n),this.stop({reason:"sendReplay"});const r=qt();if(r){const s=n instanceof q9?"ratelimit_backoff":"send_error";r.recordDroppedEvent(s,"replay")}}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){dt&&_t.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const i=s<this._options.minReplayDuration,o=s>this._options.maxReplayDuration+5e3;if(i||o){dt&&_t.info(`Session duration (${Math.floor(s/1e3)}s) is too ${i?"short":"long"}, not sending replay.`),i&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&dt&&_t.info("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(d){this.handleException(d)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&H9(this.session)}__init6(){this._onMutationHandler=e=>{const n=e.length,r=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,i=r&&n>r;if(n>s||i){const o=va({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(o)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function M1(t,e){return[...t,...e].join(",")}function Fae({mask:t,unmask:e,block:n,unblock:r,ignore:s}
42){const i=["base","iframe[srcdoc]:not([src])"],o=M1(t,[".sentry-mask","[data-sentry-mask]"]),a=M1(e,[]);return{maskTextSelector:o,unmaskTextSelector:a,blockSelector:M1(n,[".sentry-block","[data-sentry-block]",...i]),unblockSelector:M1(r,[]),ignoreSelector:M1(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function jae({el:t,key:e,maskAttributes:n,maskAllText:r,privacyOptions:s,value:i}){return!r||s.unmaskTextSelector&&t.matches(s.unmaskTextSelector)?i:n.includes(e)||e==="value"&&t.tagName==="INPUT"&&["submit","button"].includes(t.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}const JP='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Lae=["content-length","content-type","accept"];let eR=!1;const zae=t=>new m5(t);class m5{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=mse,flushMaxDelay:n=gse,minReplayDuration:r=Ese,maxReplayDuration:s=MP,stickySession:i=!0,useCompression:o=!0,workerUrl:a,_experiments:c={},maskAllText:d=!0,maskAllInputs:p=!0,blockAllMedia:m=!0,mutationBreadcrumbLimit:v=750,mutationLimit:w=1e4,slowClickTimeout:E=7e3,slowClickIgnoreSelectors:C=[],networkDetailAllowUrls:b=[],networkDetailDenyUrls:S=[],networkCaptureBodies:P=!0,networkRequestHeaders:R=[],networkResponseHeaders:z=[],mask:O=[],maskAttributes:F=["title","placeholder"],unmask:D=[],block:I=[],unblock:T=[],ignore:k=[],maskFn:j,beforeAddRecordingEvent:L,beforeErrorSampling:V,onError:Y}={}){this.name=m5.id;const G=Fae({mask:O,unmask:D,block:I,unblock:T,ignore:k});if(this._recordingOptions={maskAllInputs:p,maskAllText:d,maskInputOptions:{password:!0},maskTextFn:j,maskInputFn:j,maskAttributeFn:(q,U,B)=>jae({maskAttributes:F,maskAllText:d,privacyOptions:G,key:q,value:U,el:B}),...G,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:q=>{try{q.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:n,minReplayDuration:Math.min(r,bse),maxReplayDuration:Math.min(s,MP),stickySession:i,useCompression:o,workerUrl:a,blockAllMedia:m,maskAllInputs:p,maskAllText:d,mutationBreadcrumbLimit:v,mutationLimit:w,slowClickTimeout:E,slowClickIgnoreSelectors:C,networkDetailAllowUrls:b,networkDetailDenyUrls:S,networkCaptureBodies:P,networkRequestHeaders:tR(R),networkResponseHeaders:tR(z),beforeAddRecordingEvent:L,beforeErrorSampling:V,onError:Y,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${JP}`:JP),this._isInitialized&&EP())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return eR}set _isInitialized(e){eR=e}afterAllSetup(e){!EP()||this._replay||(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}getRecordingMode(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const n=Vae(this._initialOptions,e);this._replay=new jc({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const n=e.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}m5.__initStatic();function Vae(t,e){const n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Cr(t)},s=Ey(n.replaysSessionSampleRate),i=Ey(n.replaysOnErrorSampleRate);return s==null&&i==null&&Mu(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),i!=null&&(r.errorSampleRate=i),r}function tR(t){return[...Lae,...t.map(e=>e.toLowerCase())]}const nR=new WeakMap,Fw=new Map,L3={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Bae(t,e){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:a}={traceFetch:L3.traceFetch,traceXHR:L3.traceXHR,trackFetchStreamPerformance:L3.trackFetchStreamPerformance,...e},c=typeof i=="function"?i:m=>!0,d=m=>Wae(m,a),p={};n&&(t.addEventProcessor(m=>(m.type==="transaction"&&m.spans&&m.spans.forEach(v=>{if(v.op==="http.client"){const w=Fw.get(v.span_id);w&&(v.timestamp=w/1e3,Fw.delete(v.span_id))}}),m)),s&&Mte(m=>{if(m.response){const v=nR.get(m.response);v&&m.endTimestamp&&Fw.set(v,m.endTimestamp)}}),EF(m=>{const v=Cte(m,c,d,p);if(m.response&&m.fetchData.__span&&nR.set(m.response,m.fetchData.__span),v){const w=$j(m.fetchData.url),E=w?Ud(w).host:void 0;v.setAttributes({"http.url":w,"server.address":E})}o&&v&&rR(v)})),r&&BF(m=>{const v=qae(m,c,d,p);o&&v&&rR(v)})}function Hae(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function rR(t){const{url:e}=sn(t).data||{};if(!e||typeof e!="string")return;const n=Lp("resource",({entries:r})=>{r.forEach(s=>
42{Hae(s)&&s.name.endsWith(e)&&(Uae(s).forEach(o=>t.setAttribute(...o)),setTimeout(n))})})}function ia(t=0){return((Ts||performance.timeOrigin)+t)/1e3}function Uae(t){const{name:e,version:n}=LF(t.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",e]),Ts?[...r,["http.request.redirect_start",ia(t.redirectStart)],["http.request.fetch_start",ia(t.fetchStart)],["http.request.domain_lookup_start",ia(t.domainLookupStart)],["http.request.domain_lookup_end",ia(t.domainLookupEnd)],["http.request.connect_start",ia(t.connectStart)],["http.request.secure_connection_start",ia(t.secureConnectionStart)],["http.request.connection_end",ia(t.connectEnd)],["http.request.request_start",ia(t.requestStart)],["http.request.response_start",ia(t.responseStart)],["http.request.response_end",ia(t.responseEnd)]]:r}function Wae(t,e){const n=Ct.location&&Ct.location.href;if(n){let r,s;try{r=new URL(t,n),s=new URL(n).origin}catch{return!1}const i=r.origin===s;return e?tu(r.toString(),e)||i&&tu(r.pathname,e):i}else{const r=!!t.match(/^\/(?!\/)/);return e?tu(t,e):r}}function qae(t,e,n,r){const s=t.xhr,i=s&&s[bd];if(!s||s.__sentry_own_request__||!i)return;const o=fu()&&e(i.url);if(t.endTimestamp&&o){const m=s.__sentry_xhr_span_id__;if(!m)return;const v=r[m];v&&i.status_code!==void 0&&(j$(v,i.status_code),v.end(),delete r[m]);return}const a=$j(i.url),c=a?Ud(a).host:void 0,d=!!Fr(),p=o&&d?P2({name:`${i.method} ${i.url}`,attributes:{type:"xhr","http.method":i.method,"http.url":a,url:i.url,"server.address":c,[mr]:"auto.http.browser",[kl]:"http.client"}}):new gm;return s.__sentry_xhr_span_id__=p.spanContext().spanId,r[s.__sentry_xhr_span_id__]=p,n(i.url)&&Gae(s,fu()&&d?p:void 0),p}function Gae(t,e){const{"sentry-trace":n,baggage:r}=gF({span:e});n&&Kae(t,n,r)}function Kae(t,e,n){try{t.setRequestHeader("sentry-trace",e),n&&t.setRequestHeader("baggage",n)}catch{}}function $j(t){try{return new URL(t,Ct.location.origin).href}catch{return}}function Yae(){Ct&&Ct.document?Ct.document.addEventListener("visibilitychange",()=>{const t=Fr();if(!t)return;const e=Xr(t);if(Ct.document.hidden&&e){const n="cancelled",{op:r,status:s}=sn(e);Ia&&Fe.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||e.setStatus({code:Dr,message:n}),e.setAttribute("sentry.cancellation_reason","document.hidden"),e.end()}}):Ia&&Fe.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Qae="BrowserTracing",Xae={...D3,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,_experiments:{},...L3},Fj=(t={})=>{PJ();const{enableInp:e,enableLongTask:n,enableLongAnimationFrame:r,_experiments:{enableInteractions:s,enableStandaloneClsSpans:i},beforeStartSpan:o,idleTimeout:a,finalTimeout:c,childSpanTimeout:d,markBackgroundSpan:p,traceFetch:m,traceXHR:v,trackFetchStreamPerformance:w,shouldCreateSpanForRequest:E,enableHTTPTimings:C,instrumentPageLoad:b,instrumentNavigation:S}={...Xae,...t},P=Vne({recordClsStandaloneSpans:i||!1});e&&fre(),r&&Qt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?Hne():n&&Bne(),s&&Une();const R={name:void 0,source:void 0};function z(O,F){const D=F.op==="pageload",I=o?o(F):F,T=I.attributes||{};F.name!==I.name&&(T[fi]="custom",I.attributes=T),R.name=I.name,R.source=T[fi];const k=sF(I,{idleTimeout:a,finalTimeout:c,childSpanTimeout:d,disableAutoFinish:D,beforeSpanEnd:L=>{P(),Yne(L,{recordClsOnPageloadSpan:!i})}});function j(){["interactive","complete"].includes(Ct.document.readyState)&&O.emit("idleSpanEnableAutoFinish",k)}return D&&Ct.document&&(Ct.document.addEventListener("readystatechange",()=>{j()}),j()),k}return{name:Qae,afterAllSetup(O){let F,D=Ct.location&&Ct.location.href;function I(){F&&!sn(F).timestamp&&(Ia&&Fe.log(`[Tracing] Finishing current active span with op: ${sn(F).op}`),F.end())}O.on("startNavigationSpan",T=>{qt()===O&&(I(),F=z(O,{op:"navigation",...T}))}),O.on("startPageLoadSpan",(T,k={})=>{if(qt()!==O)return;I();const j=k.sentryTrace||sR("sentry-trace"),L=k.baggage||sR("baggage"),V=EJ(j,L);In().setPropagationContext(V),F=z(O,{op:"pageload",...T})}),O.on("spanEnd",T=>{const k=sn(T).op;if(T!==Xr(T)||k!=="navigation"&&k!=="pageload")return;const j=In(),L=j.getPropagationContext();j.setPropagationContext({...L,sampled:L.sampled!==void 0?L.sampled:_f(T),dsc:L.dsc||Ef(T)})}),Ct.location&&(b&&jj(O,{name:Ct.location.pathname,startTime:Ts?Ts/1e3:void 0,attributes:{[fi]:"url",[mr]:"auto.pageload.browser"}}),S&&l5(({to:T,from:k})=>{if(k===void 0&&D&&D.indexOf(T)!==-1){D=void 0;return}k!==T&&(D=void 0,Lj(O,{name:Ct.location.pathname,attributes:{[fi]:"url",[mr]:"auto.navigation.browser"}}))})),p&&Yae(),s&&Zae(a,c,d,R),e&&pre(),Bae(O,{traceFetch:m,traceXHR:v,trackFetchStreamPerformance:w,tracePropagationTargets:O.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:E,enableHTTPTimings:C})}}};function jj(t,e,n){t.emit("startPageLoadSpan",e,n),In().setTransactionName(e.name);const r=Fr();return(r&&sn(r).op)==="pageload"?r:void 0}function Lj(t,e){Bo().setPropagationContext({traceId:uu()}),In().setPropagationContext({traceId:uu()}),t.emit("startNavigationSpan",e),In().setTransactionName(e.name);const n=Fr();return(n&&sn(n).op)==="navigation"?n:void 0}function sR(t){const e=KZ(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function Zae(t,e,n,r){let s;const i=()=>{const o="ui.action.click",a=Fr(),c=a&&Xr(a);if(c){const d=sn(c).op;
42if(["navigation","pageload"].includes(d)){Ia&&Fe.warn(`[Tracing] Did not create ${o} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(C8,"interactionInterrupted"),s.end(),s=void 0),!r.name){Ia&&Fe.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`);return}s=sF({name:r.name,op:o,attributes:{[fi]:r.source||"url"}},{idleTimeout:t,finalTimeout:e,childSpanTimeout:n})};Ct.document&&addEventListener("click",i,{once:!1,capture:!0})}var _=hm();const h=xf(_),zj=MZ({__proto__:null,default:h},[_]);function Jae(t){const e={...t};return mF(e,"react"),aF("react",{version:_.version}),dse(e)}function ele(t,e={}){const n=t,r=Fj({...e,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:s=!0,instrumentNavigation:i=!0}=e;return{...r,afterAllSetup(o){r.afterAllSetup(o);const a=Ct.location;if(s&&a){const c=n.matchRoutes(a.pathname,n.options.parseSearch(a.search),{preload:!1,throwOnError:!1}),d=c[c.length-1];jj(o,{name:d?d.routeId:a.pathname,attributes:{[kl]:"pageload",[mr]:"auto.pageload.react.tanstack_router",[fi]:d?"route":"url",...iR(d)}})}i&&n.subscribe("onBeforeNavigate",c=>{const d=c.fromLocation&&c.fromLocation.state;if(c.toLocation.state===d)return;const p=n.matchRoutes(c.toLocation.pathname,c.toLocation.search,{preload:!1,throwOnError:!1}),m=p[p.length-1],v=Ct.location,w=Lj(o,{name:m?m.routeId:v.pathname,attributes:{[kl]:"navigation",[mr]:"auto.navigation.react.tanstack_router",[fi]:m?"route":"url"}}),E=n.subscribe("onResolved",C=>
vendor: 4,780 bytes, line 42
42{if(E(),w){const b=n.matchRoutes(C.toLocation.pathname,C.toLocation.search,{preload:!1,throwOnError:!1}),S=b[b.length-1];S&&(w.updateName(S.routeId),w.setAttribute(fi,"route"),w.setAttributes(iR(S)))}})})}}}function iR(t){if(!t)return{};const e={};return Object.entries(t.params).forEach(([n,r])=>{e[`url.path.params.${n}`]=r}),e}var _m=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Jd=typeof window>"u"||"Deno"in globalThis;function $i(){}function tle(t,e){return typeof t=="function"?t(e):t}function Z8(t){return typeof t=="number"&&t>=0&&t!==1/0}function Vj(t,e){return Math.max(t+(e||0)-Date.now(),0)}function ip(t,e){return typeof t=="function"?t(e):t}function To(t,e){return typeof t=="function"?t(e):t}function oR(t,e){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=t;if(o){if(r){if(e.queryHash!==G9(o,e.options))return!1}else if(!D0(e.queryKey,o))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&e.isStale()!==a||s&&s!==e.state.fetchStatus||i&&!i(e))}function aR(t,e){const{exact:n,status:r,predicate:s,mutationKey:i}=t;if(i){if(!e.options.mutationKey)return!1;if(n){if(ef(e.options.mutationKey)!==ef(i))return!1}else if(!D0(e.options.mutationKey,i))return!1}return!(r&&e.state.status!==r||s&&!s(e))}function G9(t,e){return(e?.queryKeyHashFn||ef)(t)}function ef(t){return JSON.stringify(t,(e,n)=>J8(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function D0(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>D0(t[n],e[n])):!1}function Bj(t,e){if(t===e)return t;const n=lR(t)&&lR(e);if(n||J8(t)&&J8(e)){const r=n?t:Object.keys(t),s=r.length,i=n?e:Object.keys(e),o=i.length,a=n?[]:{};let c=0;for(let d=0;d<o;d++){const p=n?d:i[d];(!n&&r.includes(p)||n)&&t[p]===void 0&&e[p]===void 0?(a[p]=void 0,c++):(a[p]=Bj(t[p],e[p]),a[p]===t[p]&&t[p]!==void 0&&c++)}return s===o&&c===s?t:a}return e}function Oy(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function lR(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function J8(t){if(!cR(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!cR(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function cR(t){return Object.prototype.toString.call(t)==="[object Object]"}function nle(t){return new Promise(e=>{setTimeout(e,t)})}function e_(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?Bj(t,e):e}function rle(t,e,n=0){const r=[...t,e];return n&&r.length>n?r.slice(1):r}function sle(t,e,n=0){const r=[e,...t];return n&&r.length>n?r.slice(0,-1):r}var K9=Symbol();function Hj(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===K9?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}var kd,Uc,_p,h$,ile=(h$=class extends _m{constructor(){super();rt(this,kd);rt(this,Uc);rt(this,_p);Be(this,_p,e=>{if(!Jd&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){ee(this,Uc)||this.setEventListener(ee(this,_p))}onUnsubscribe(){var e;this.hasListeners()||((e=ee(this,Uc))==null||e.call(this),Be(this,Uc,void 0))}setEventListener(e){var n;Be(this,_p,e),(n=ee(this,Uc))==null||n.call(this),Be(this,Uc,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){ee(this,kd)!==e&&(Be(this,kd,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof ee(this,kd)=="boolean"?ee(this,kd):globalThis.document?.visibilityState!=="hidden"}},kd=new WeakMap,Uc=new WeakMap,_p=new WeakMap,h$),Y9=new ile,Ep,Wc,bp,p$,ole=(p$=class extends _m{constructor(){super();rt(this,Ep,!0);rt(this,Wc);rt(this,bp);Be(this,bp,e=>{if(!Jd&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){ee(this,Wc)||this.setEventListener(ee(this,bp))}onUnsubscribe(){var e;this.hasListeners()||((e=ee(this,Wc))==null||e.call(this),Be(this,Wc,void 0))}setEventListener(e){var n;Be(this,bp,e),(n=ee(this,Wc))==null||n.call(this),Be(this,Wc,e(this.setOnline.bind(this)))}setOnline(e){ee(this,Ep)!==e&&(Be(this,Ep,e),this.listeners.forEac
vendor: 1,071 bytes, line 42
42h(r=>{r(e)}))}isOnline(){return ee(this,Ep)}},Ep=new WeakMap,Wc=new WeakMap,bp=new WeakMap,p$),$y=new ole;function t_(){let t,e;const n=new Promise((s,i)=>{t=s,e=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}),t(s)},n.reject=s=>{r({status:"rejected",reason:s}),e(s)},n}function ale(t){return Math.min(1e3*2**t,3e4)}function Uj(t){return(t??"online")==="online"?$y.isOnline():!0}var Wj=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function jw(t){return t instanceof Wj}function qj(t){let e=!1,n=0,r=!1,s;const i=t_(),o=C=>{r||(v(new Wj(C)),t.abort?.())},a=()=>{e=!0},c=()=>{e=!1},d=()=>Y9.isFocused()&&(t.networkMode==="always"||$y.isOnline())&&t.canRun(),p=()=>Uj(t.networkMode)&&t.canRun(),m=C=>{r||(r=!0,t.onSuccess?.(C),s?.(),i.resolve(C))},v=C=>{r||(r=!0,t.onError?.(C),s?.(),i.reject(C))},w=()=>new Promise(C=>{s=b=>{(r||d())&&C(b)},t.onPause?.()}).then(()=>{s=void 0,r||t.onContinue?.()}),E=()=>
vendor: 8,300 bytes, line 42
42{if(r)return;let C;const b=n===0?t.initialPromise:void 0;try{C=b??t.fn()}catch(S){C=Promise.reject(S)}Promise.resolve(C).then(m).catch(S=>{if(r)return;const P=t.retry??(Jd?0:3),R=t.retryDelay??ale,z=typeof R=="function"?R(n,S):R,O=P===!0||typeof P=="number"&&n<P||typeof P=="function"&&P(n,S);if(e||!O){v(S);return}n++,t.onFail?.(n,S),nle(z).then(()=>d()?void 0:w()).then(()=>{e?v(S):E()})})};return{promise:i,cancel:o,continue:()=>(s?.(),i),cancelRetry:a,continueRetry:c,canStart:p,start:()=>(p()?E():w().then(E),i)}}var lle=t=>setTimeout(t,0);function cle(){let t=[],e=0,n=a=>{a()},r=a=>{a()},s=lle;const i=a=>{e?t.push(a):s(()=>{n(a)})},o=()=>{const a=t;t=[],a.length&&s(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;e++;try{c=a()}finally{e--,e||o()}return c},batchCalls:a=>(...c)=>{i(()=>{a(...c)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var br=cle(),Dd,m$,Gj=(m$=class{constructor(){rt(this,Dd)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Z8(this.gcTime)&&Be(this,Dd,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Jd?1/0:5*60*1e3))}clearGcTimeout(){ee(this,Dd)&&(clearTimeout(ee(this,Dd)),Be(this,Dd,void 0))}},Dd=new WeakMap,m$),Sp,Cp,Oi,Od,is,b2,$d,wo,cl,g$,ule=(g$=class extends Gj{constructor(n){super();rt(this,wo);rt(this,Sp);rt(this,Cp);rt(this,Oi);rt(this,Od);rt(this,is);rt(this,b2);rt(this,$d);Be(this,$d,!1),Be(this,b2,n.defaultOptions),this.setOptions(n.options),this.observers=[],Be(this,Od,n.client),Be(this,Oi,ee(this,Od).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,Be(this,Sp,dle(this.options)),this.state=n.state??ee(this,Sp),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return ee(this,is)?.promise}setOptions(n){this.options={...ee(this,b2),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&ee(this,Oi).remove(this)}setData(n,r){const s=e_(this.state.data,n,this.options);return Dt(this,wo,cl).call(this,{data:s,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),s}setState(n,r){Dt(this,wo,cl).call(this,{type:"setState",state:n,setStateOptions:r})}cancel(n){const r=ee(this,is)?.promise;return ee(this,is)?.cancel(n),r?r.then($i).catch($i):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(ee(this,Sp))}isActive(){return this.observers.some(n=>To(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===K9||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!Vj(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),ee(this,is)?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),ee(this,is)?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),ee(this,Oi).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(r=>r!==n),this.observers.length||(ee(this,is)&&(ee(this,$d)?ee(this,is).cancel({revert:!0}):ee(this,is).cancelRetry()),this.scheduleGc()),ee(this,Oi).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Dt(this,wo,cl).call(this,{type:"invalidate"})}fetch(n,r){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(ee(this,is))return ee(this,is).continueRetry(),ee(this,is).promise}if(n&&this.setOptions(n),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Be(this,$d,!0),s.signal)})},o=()=>{const d=Hj(this.options,r),p={client:ee(this,Od),queryKey:this.queryKey,meta:this.meta};return i(p),Be(this,$d,!1),this.options.persister?this.options.persister(d,p,this):d(p)},a={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:ee(this,Od),state:this.state,fetchFn:o};i(a),this.options.behavior?.onFetch(a,this),Be(this,Cp,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==a.fetchOptions?.meta)&&Dt(this,wo,cl).call(this,{type:"fetch",meta:a.fetchOptions?.meta});const c=d=>{jw(d)&&d.silent||Dt(this,wo,cl).call(this,{type:"error",error:d}),jw(d)||(ee(this,Oi).config.onError?.(d,this),ee(this,Oi).config.onSettled?.(this.state.data,d,this)),this.scheduleGc()};return Be(this,is,qj({initialPromise:r?.initialPromise,fn:a.fetchFn,abort:s.abort.bind(s),onSuccess:d=>{if(d===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(p){c(p);return}ee(this,Oi).config.onSuccess?.(d,this),ee(this,Oi).config.onSettled?.(d,this.state.error,this),this.scheduleGc()},onError:c,onFail:(d,p)=>{Dt(this,wo,cl).call(this,{type:"failed",failureCount:d,error:p})},onPause:()=>{Dt(this,wo,cl).call(this,{type:"pause"})},onContinue:()=>{Dt(this,wo,cl).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),ee(this,is).start()}},Sp=new WeakMap,Cp=new WeakMap,Oi=new WeakMap,Od=new WeakMap,is=new WeakMap,b2=new WeakMap,$d=new WeakMap,wo=new WeakSet,cl=function(n){const r=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Kj(s.data,this.options),fetchMeta:n.meta??null};case"success":return{...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=n.error;return jw(i)&&i.revert&&ee(this,Cp)?{...ee(this,Cp),fetchStatus:"idle"}:{...s,error:i,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=r(this.state),br.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),ee(this,Oi).notify({query:this,type:"updated",action:n})})},g$);function Kj(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Uj(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function dle(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,r=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,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 ca,v$,fle=(v$=class extends _m{constructor(e={}){super();rt(this,ca);this.config=e,Be(this,ca,new Map)}build(e,n,r){const s=n.queryKey,i=n.queryHash??G9(s,n);let o=this.get(i);return o||(o=new ule({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(o)),o}add(e){ee(this,ca).has(e.queryHash)||(ee(this,ca).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=ee(this,ca).get(e.queryHash);n&&(e.destroy(),n===e&&ee(this,ca).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){br.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return ee(this,ca).get(e)}getAll(){return[...ee(this,ca).values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>oR(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>oR(e,r)):n}notify(e){br.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){br.batch(()=>
42{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){br.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ca=new WeakMap,v$),ua,ys,Fd,da,Nc,y$,hle=(y$=class extends Gj{constructor(n){super();rt(this,da);rt(this,ua);rt(this,ys);rt(this,Fd);this.mutationId=n.mutationId,Be(this,ys,n.mutationCache),Be(this,ua,[]),this.state=n.state||Yj(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){ee(this,ua).includes(n)||(ee(this,ua).push(n),this.clearGcTimeout(),ee(this,ys).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){Be(this,ua,ee(this,ua).filter(r=>r!==n)),this.scheduleGc(),ee(this,ys).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){ee(this,ua).length||(this.state.status==="pending"?this.scheduleGc():ee(this,ys).remove(this))}continue(){return ee(this,Fd)?.continue()??this.execute(this.state.variables)}async execute(n){const r=()=>{Dt(this,da,Nc).call(this,{type:"continue"})};Be(this,Fd,qj({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(o,a)=>{Dt(this,da,Nc).call(this,{type:"failed",failureCount:o,error:a})},onPause:()=>{Dt(this,da,Nc).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>ee(this,ys).canRun(this)}));const s=this.state.status==="pending",i=!ee(this,Fd).canStart();try{if(s)r();else{Dt(this,da,Nc).call(this,{type:"pending",variables:n,isPaused:i}),await ee(this,ys).config.onMutate?.(n,this);const a=await this.options.onMutate?.(n);a!==this.state.context&&Dt(this,da,Nc).call(this,{type:"pending",context:a,variables:n,isPaused:i})}const o=await ee(this,Fd).start();return await ee(this,ys).config.onSuccess?.(o,n,this.state.context,this),await this.options.onSuccess?.(o,n,this.state.context),await ee(this,ys).config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,n,this.state.context),Dt(this,da,Nc).call(this,{type:"success",data:o}),o}catch(o){try{throw await ee(this,ys).config.onError?.(o,n,this.state.context,this),await this.options.onError?.(o,n,this.state.context),await ee(this,ys).config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,n,this.state.context),o}finally{Dt(this,da,Nc).call(this,{type:"error",error:o})}}finally{ee(this,ys).runNext(this)}}},ua=new WeakMap,ys=new WeakMap,Fd=new WeakMap,da=new WeakSet,Nc=function(n){const r=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=r(this.state),br.batch(()=>{ee(this,ua).forEach(s=>{s.onMutationUpdate(n)}),ee(this,ys).notify({mutation:this,type:"updated",action:n})})},y$);function Yj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ml,_o,S2,x$,ple=(x$=class extends _m{constructor(e={}){super();rt(this,ml);rt(this,_o);rt(this,S2);this.config=e,Be(this,ml,new Set),Be(this,_o,new Map),Be(this,S2,0)}build(e,n,r){const s=new hle({mutationCache:this,mutationId:++Ov(this,S2)._,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){ee(this,ml).add(e);const n=Qv(e);if(typeof n=="string"){const r=ee(this,_o).get(n);r?r.push(e):ee(this,_o).set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(ee(this,ml).delete(e)){const n=Qv(e);if(typeof n=="string"){const r=ee(this,_o).get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&ee(this,_o).delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Qv(e);if(typeof n=="string"){const s=ee(this,_o).get(n)?.find(i=>i.state.status==="pending");return!s||s===e}else return!0}runNext(e){const n=Qv(e);return typeof n=="string"?ee(this,_o).get(n)?.find(s=>
42s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){br.batch(()=>{ee(this,ml).forEach(e=>{this.notify({type:"removed",mutation:e})}),ee(this,ml).clear(),ee(this,_o).clear()})}getAll(){return Array.from(ee(this,ml))}find(e){const n={exact:!0,...e};return this.getAll().find(r=>aR(n,r))}findAll(e={}){return this.getAll().filter(n=>aR(e,n))}notify(e){br.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return br.batch(()=>Promise.all(e.map(n=>n.continue().catch($i))))}},ml=new WeakMap,_o=new WeakMap,S2=new WeakMap,x$);function Qv(t){return t.options.scope?.id}function uR(t){return{onFetch:(e,n)=>{const r=e.options,s=e.fetchOptions?.meta?.fetchMore?.direction,i=e.state.data?.pages||[],o=e.state.data?.pageParams||[];let a={pages:[],pageParams:[]},c=0;const d=async()=>{let p=!1;const m=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(e.signal.aborted?p=!0:e.signal.addEventListener("abort",()=>{p=!0}),e.signal)})},v=Hj(e.options,e.fetchOptions),w=async(E,C,b)=>{if(p)return Promise.reject();if(C==null&&E.pages.length)return Promise.resolve(E);const S={client:e.client,queryKey:e.queryKey,pageParam:C,direction:b?"backward":"forward",meta:e.options.meta};m(S);const P=await v(S),{maxPages:R}=e.options,z=b?sle:rle;return{pages:z(E.pages,P,R),pageParams:z(E.pageParams,C,R)}};if(s&&i.length){const E=s==="backward",C=E?mle:dR,b={pages:i,pageParams:o},S=C(r,b);a=await w(b,S,E)}else{const E=t??i.length;do{const C=c===0?o[0]??r.initialPageParam:dR(r,a);if(c>0&&C==null)break;a=await w(a,C),c++}while(c<E)}return a};e.options.persister?e.fetchFn=()=>e.options.persister?.(d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=d}}}function dR(t,{pages:e,pageParams:n}){const r=e.length-1;return e.length>0?t.getNextPageParam(e[r],e,n[r],n):void 0}function mle(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}var Kn,qc,Gc,Tp,Ap,Kc,Ip,Pp,w$,gle=(w$=class{constructor(t={}){rt(this,Kn);rt(this,qc);rt(this,Gc);rt(this,Tp);rt(this,Ap);rt(this,Kc);rt(this,Ip);rt(this,Pp);Be(this,Kn,t.queryCache||new fle),Be(this,qc,t.mutationCache||new ple),Be(this,Gc,t.defaultOptions||{}),Be(this,Tp,new Map),Be(this,Ap,new Map),Be(this,Kc,0)}mount(){Ov(this,Kc)._++,ee(this,Kc)===1&&(Be(this,Ip,Y9.subscribe(async t=>{t&&(await this.resumePausedMutations(),ee(this,Kn).onFocus())})),Be(this,Pp,$y.subscribe(async t=>{t&&(await this.resumePausedMutations(),ee(this,Kn).onOnline())})))}unmount(){var t,e;Ov(this,Kc)._--,ee(this,Kc)===0&&((t=ee(this,Ip))==null||t.call(this),Be(this,Ip,void 0),(e=ee(this,Pp))==null||e.call(this),Be(this,Pp,void 0))}isFetching(t){return ee(this,Kn).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return ee(this,qc).findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return ee(this,Kn).get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=ee(this,Kn).build(this,e),r=n.state.data;return r===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(ip(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(r))}getQueriesData(t){return ee(this,Kn).findAll(t).map(({queryKey:e,state:n})=>{const r=n.data;return[e,r]})}setQueryData(t,e,n){const r=this.defaultQueryOptions({queryKey:t}),i=ee(this,Kn).get(r.queryHash)?.state.data,o=tle(e,i);if(o!==void 0)return ee(this,Kn).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return br.batch(()=>ee(this,Kn).findAll(t).map(({queryKey:r})=>[r,this.setQueryData(r,e,n)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return ee(this,Kn).get(e.queryHash)?.state}removeQueries(t){const e=ee(this,Kn);br.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=ee(this,Kn);return br.batch(()=>(n.findAll(t).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},r=br.batch(()=>ee(this,Kn).findAll(t).map(s=>s.cancel(n)));return Promise.all(r).then($i).catch($i)}invalidateQueries(t,e={}){return br.batch(()=>(ee(this,Kn).findAll(t).forEach(n=>
vendor: 9,492 bytes, line 42
42{n.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},r=br.batch(()=>ee(this,Kn).findAll(t).filter(s=>!s.isDisabled()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch($i)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then($i)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=ee(this,Kn).build(this,e);return n.isStaleByTime(ip(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then($i).catch($i)}fetchInfiniteQuery(t){return t.behavior=uR(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then($i).catch($i)}ensureInfiniteQueryData(t){return t.behavior=uR(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return $y.isOnline()?ee(this,qc).resumePausedMutations():Promise.resolve()}getQueryCache(){return ee(this,Kn)}getMutationCache(){return ee(this,qc)}getDefaultOptions(){return ee(this,Gc)}setDefaultOptions(t){Be(this,Gc,t)}setQueryDefaults(t,e){ee(this,Tp).set(ef(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...ee(this,Tp).values()],n={};return e.forEach(r=>{D0(t,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(t,e){ee(this,Ap).set(ef(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...ee(this,Ap).values()],n={};return e.forEach(r=>{D0(t,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...ee(this,Gc).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=G9(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===K9&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...ee(this,Gc).mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){ee(this,Kn).clear(),ee(this,qc).clear()}},Kn=new WeakMap,qc=new WeakMap,Gc=new WeakMap,Tp=new WeakMap,Ap=new WeakMap,Kc=new WeakMap,Ip=new WeakMap,Pp=new WeakMap,w$),Ls,Yt,C2,xs,jd,Rp,Yc,Qc,T2,Np,Mp,Ld,zd,Xc,kp,dn,W1,n_,r_,s_,i_,o_,a_,l_,Qj,_$,vle=(_$=class extends _m{constructor(e,n){super();rt(this,dn);rt(this,Ls);rt(this,Yt);rt(this,C2);rt(this,xs);rt(this,jd);rt(this,Rp);rt(this,Yc);rt(this,Qc);rt(this,T2);rt(this,Np);rt(this,Mp);rt(this,Ld);rt(this,zd);rt(this,Xc);rt(this,kp,new Set);this.options=n,Be(this,Ls,e),Be(this,Qc,null),Be(this,Yc,t_()),this.options.experimental_prefetchInRender||ee(this,Yc).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(ee(this,Yt).addObserver(this),fR(ee(this,Yt),this.options)?Dt(this,dn,W1).call(this):this.updateResult(),Dt(this,dn,i_).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return c_(ee(this,Yt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return c_(ee(this,Yt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Dt(this,dn,o_).call(this),Dt(this,dn,a_).call(this),ee(this,Yt).removeObserver(this)}setOptions(e){const n=this.options,r=ee(this,Yt);if(this.options=ee(this,Ls).defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof To(this.options.enabled,ee(this,Yt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Dt(this,dn,l_).call(this),ee(this,Yt).setOptions(this.options),n._defaulted&&!Oy(this.options,n)&&ee(this,Ls).getQueryCache().notify({type:"observerOptionsUpdated",query:ee(this,Yt),observer:this});const s=this.hasListeners();s&&hR(ee(this,Yt),r,this.options,n)&&Dt(this,dn,W1).call(this),this.updateResult(),s&&(ee(this,Yt)!==r||To(this.options.enabled,ee(this,Yt))!==To(n.enabled,ee(this,Yt))||ip(this.options.staleTime,ee(this,Yt))!==ip(n.staleTime,ee(this,Yt)))&&Dt(this,dn,n_).call(this);const i=Dt(this,dn,r_).call(this);s&&(ee(this,Yt)!==r||To(this.options.enabled,ee(this,Yt))!==To(n.enabled,ee(this,Yt))||i!==ee(this,Xc))&&Dt(this,dn,s_).call(this,i)}getOptimisticResult(e){const n=ee(this,Ls).getQueryCache().build(ee(this,Ls),e),r=this.createResult(n,e);return xle(this,r)&&(Be(this,xs,r),Be(this,Rp,this.options),Be(this,jd,ee(this,Yt).state)),r}getCurrentResult(){return ee(this,xs)}trackResult(e,n){return new Proxy(e,{get:(r,s)=>(this.trackProp(s),n?.(s),Reflect.get(r,s))})}trackProp(e){ee(this,kp).add(e)}getCurrentQuery(){return ee(this,Yt)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=ee(this,Ls).defaultQueryOptions(e),r=ee(this,Ls).getQueryCache().build(ee(this,Ls),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return Dt(this,dn,W1).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),ee(this,xs)))}createResult(e,n){const r=ee(this,Yt),s=this.options,i=ee(this,xs),o=ee(this,jd),a=ee(this,Rp),d=e!==r?e.state:ee(this,C2),{state:p}=e;let m={...p},v=!1,w;if(n._optimisticResults){const T=this.hasListeners(),k=!T&&fR(e,n),j=T&&hR(e,r,n,s);(k||j)&&(m={...m,...Kj(p.data,e.options)}),n._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:E,errorUpdatedAt:C,status:b}=m;w=m.data;let S=!1;if(n.placeholderData!==void 0&&w===void 0&&b==="pending"){let T;i?.isPlaceholderData&&n.placeholderData===a?.placeholderData?(T=i.data,S=!0):T=typeof n.placeholderData=="function"?n.placeholderData(ee(this,Mp)?.state.data,ee(this,Mp)):n.placeholderData,T!==void 0&&(b="success",w=e_(i?.data,T,n),v=!0)}if(n.select&&w!==void 0&&!S)if(i&&w===o?.data&&n.select===ee(this,T2))w=ee(this,Np);else try{Be(this,T2,n.select),w=n.select(w),w=e_(i?.data,w,n),Be(this,Np,w),Be(this,Qc,null)}catch(T){Be(this,Qc,T)}ee(this,Qc)&&(E=ee(this,Qc),w=ee(this,Np),C=Date.now(),b="error");const P=m.fetchStatus==="fetching",R=b==="pending",z=b==="error",O=R&&P,F=w!==void 0,I={status:b,fetchStatus:m.fetchStatus,isPending:R,isSuccess:b==="success",isError:z,isInitialLoading:O,isLoading:O,data:w,dataUpdatedAt:m.dataUpdatedAt,error:E,errorUpdatedAt:C,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:P,isRefetching:P&&!R,isLoadingError:z&&!F,isPaused:m.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:z&&F,isStale:Q9(e,n),refetch:this.refetch,promise:ee(this,Yc)};if(this.options.experimental_prefetchInRender){const T=L=>{I.status==="error"?L.reject(I.error):I.data!==void 0&&L.resolve(I.data)},k=()=>{const L=Be(this,Yc,I.promise=t_());T(L)},j=ee(this,Yc);switch(j.status){case"pending":e.queryHash===r.queryHash&&T(j);break;case"fulfilled":(I.status==="error"||I.data!==j.value)&&k();break;case"rejected":(I.status!=="error"||I.error!==j.reason)&&k();break}}return I}updateResult(){const e=ee(this,xs),n=this.createResult(ee(this,Yt),this.options);if(Be(this,jd,ee(this,Yt).state),Be(this,Rp,this.options),ee(this,jd).data!==void 0&&Be(this,Mp,ee(this,Yt)),Oy(n,e))return;Be(this,xs,n);const r=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!ee(this,kp).size)return!0;const o=new Set(i??ee(this,kp));return this.options.throwOnError&&o.add("error"),Object.keys(ee(this,xs)).some(a=>{const c=a;return ee(this,xs)[c]!==e[c]&&o.has(c)})};Dt(this,dn,Qj).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Dt(this,dn,i_).call(this)}},Ls=new WeakMap,Yt=new WeakMap,C2=new WeakMap,xs=new WeakMap,jd=new WeakMap,Rp=new WeakMap,Yc=new WeakMap,Qc=new WeakMap,T2=new WeakMap,Np=new WeakMap,Mp=new WeakMap,Ld=new WeakMap,zd=new WeakMap,Xc=new WeakMap,kp=new WeakMap,dn=new WeakSet,W1=function(e){Dt(this,dn,l_).call(this);let n=ee(this,Yt).fetch(this.options,e);return e?.throwOnError||(n=n.catch($i)),n},n_=function(){Dt(this,dn,o_).call(this);const e=ip(this.options.staleTime,ee(this,Yt));if(Jd||ee(this,xs).isStale||!Z8(e))return;const r=Vj(ee(this,xs).dataUpdatedAt,e)+1;Be(this,Ld,setTimeout(()=>{ee(this,xs).isStale||this.updateResult()},r))},r_=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(ee(this,Yt)):this.options.refetchInterval)??!1},s_=function(e){Dt(this,dn,a_).call(this),Be(this,Xc,e),!(Jd||To(this.options.enabled,ee(this,Yt))===!1||!Z8(ee(this,Xc))||ee(this,Xc)===0)&&Be(this,zd,setInterval(()=>{(this.options.refetchIntervalInBackground||Y9.isFocused())&&Dt(this,dn,W1).call(this)},ee(this,Xc)))},i_=function(){Dt(this,dn,n_).call(this),Dt(this,dn,s_).call(this,Dt(this,dn,r_).call(this))},o_=function(){ee(this,Ld)&&(clearTimeout(ee(this,Ld)),Be(this,Ld,void 0))},a_=function(){ee(this,zd)&&(clearInterval(ee(this,zd)),Be(this,zd,void 0))},l_=function(){const e=ee(this,Ls).getQueryCache().build(ee(this,Ls),this.options);if(e===ee(this,Yt))return;const n=ee(this,Yt);Be(this,Yt,e),Be(this,C2,e.state),this.hasListeners()&&(n?.removeObserver(this),e.addObserver(this))},Qj=function(e){br.batch(()=>
42{e.listeners&&this.listeners.forEach(n=>{n(ee(this,xs))}),ee(this,Ls).getQueryCache().notify({query:ee(this,Yt),type:"observerResultsUpdated"})})},_$);function yle(t,e){return To(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function fR(t,e){return yle(t,e)||t.state.data!==void 0&&c_(t,e,e.refetchOnMount)}function c_(t,e,n){if(To(e.enabled,t)!==!1){const r=typeof n=="function"?n(t):n;return r==="always"||r!==!1&&Q9(t,e)}return!1}function hR(t,e,n,r){return(t!==e||To(r.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Q9(t,n)}function Q9(t,e){return To(e.enabled,t)!==!1&&t.isStaleByTime(ip(e.staleTime,t))}function xle(t,e){return!Oy(t.getCurrentResult(),e)}var Zc,Jc,zs,gl,Il,z3,u_,E$,wle=(E$=class extends _m{constructor(n,r){super();rt(this,Il);rt(this,Zc);rt(this,Jc);rt(this,zs);rt(this,gl);Be(this,Zc,n),this.setOptions(r),this.bindMethods(),Dt(this,Il,z3).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const r=this.options;this.options=ee(this,Zc).defaultMutationOptions(n),Oy(this.options,r)||ee(this,Zc).getMutationCache().notify({type:"observerOptionsUpdated",mutation:ee(this,zs),observer:this}),r?.mutationKey&&this.options.mutationKey&&ef(r.mutationKey)!==ef(this.options.mutationKey)?this.reset():ee(this,zs)?.state.status==="pending"&&ee(this,zs).setOptions(this.options)}onUnsubscribe(){this.hasListeners()||ee(this,zs)?.removeObserver(this)}onMutationUpdate(n){Dt(this,Il,z3).call(this),Dt(this,Il,u_).call(this,n)}getCurrentResult(){return ee(this,Jc)}reset(){ee(this,zs)?.removeObserver(this),Be(this,zs,void 0),Dt(this,Il,z3).call(this),Dt(this,Il,u_).call(this)}mutate(n,r){return Be(this,gl,r),ee(this,zs)?.removeObserver(this),Be(this,zs,ee(this,Zc).getMutationCache().build(ee(this,Zc),this.options)),ee(this,zs).addObserver(this),ee(this,zs).execute(n)}},Zc=new WeakMap,Jc=new WeakMap,zs=new WeakMap,gl=new WeakMap,Il=new WeakSet,z3=function(){const n=ee(this,zs)?.state??Yj();Be(this,Jc,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},u_=function(n){br.batch(()=>{if(ee(this,gl)&&this.hasListeners()){const r=ee(this,Jc).variables,s=ee(this,Jc).context;n?.type==="success"?(ee(this,gl).onSuccess?.(n.data,r,s),ee(this,gl).onSettled?.(n.data,null,r,s)):n?.type==="error"&&(ee(this,gl).onError?.(n.error,r,s),ee(this,gl).onSettled?.(void 0,n.error,r,s))}this.listeners.forEach(r=>{r(ee(this,Jc))})})},E$),Xj=_.createContext(void 0),Zs=t=>{const e=_.useContext(Xj);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},_le=({client:t,children:e})=>(_.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),u.jsx(Xj.Provider,{value:t,children:e})),Zj=_.createContext(!1),Ele=()=>_.useContext(Zj);Zj.Provider;function ble(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Sle=_.createContext(ble()),Cle=()=>_.useContext(Sle);function Jj(t,e){return typeof t=="function"?t(...e):!!t}function d_(){}var Tle=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},Ale=t=>{_.useEffect(()=>{t.clearReset()},[t])},Ile=({result:t,errorResetBoundary:e,throwOnError:n,query:r,suspense:s})=>t.isError&&!e.isReset()&&!t.isFetching&&r&&(s&&t.data===void 0||Jj(n,[t.error,r])),Ple=t=>{const e=t.staleTime;t.suspense&&(t.staleTime=typeof e=="function"?(...n)=>Math.max(e(...n),1e3):Math.max(e??1e3,1e3),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3)))},Rle=(t,e)=>t.isLoading&&t.isFetching&&!e,Nle=(t,e)=>t?.suspense&&e.isPending,pR=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function Mle(t,e,n){const r=Zs(),s=Ele(),i=Cle(),o=r.defaultQueryOptions(t);r.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=s?"isRestoring":"optimistic",Ple(o),Tle(o,i),Ale(i);const a=!r.getQueryCache().get(o.queryHash),[c]=_.useState(()=>new e(r,o)),d=c.getOptimisticResult(o),p=!s&&t.subscribed!==!1;if(_.useSyncExternalStore(_.useCallback(m=>{const v=p?c.subscribe(br.batchCalls(m)):d_;return c.updateResult(),v},[c,p]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),_.useEffect(()=>{c.setOptions(o)},[o,c]),Nle(o,d))throw pR(o,c,i);if(Ile({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw d.error;return r.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!Jd&&Rle(d,s)&&(a?pR(o,c,i):r.getQueryCache().get(o.queryHash)?.promise)?.catch(d_).finally(()=>{c.updateResult()}),o.notifyOnChangeProps?d:c.trackResult(d)}function vn(t,e){return Mle(t,vle)}function dr(t,e){const n=Zs(),[r]=_.useState(()=>new wle(n,t));_.useEffect(()=>{r.setOptions(t)},[r,t]);const s=_.useSyncExternalStore(_.useCallback(o=>r.subscribe(br.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=_.useCallback((o,a)=>{r.mutate(o,a).catch(d_)},[r]);if(s.error&&Jj(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:i,mutateAsync:s.mutate}}var kle="Invariant failed";function yl(t,e){if(!t)throw new Error(kle)}const op=new WeakMap,V3=new WeakMap,Fy={current:[]};let Lw=!1,f0=0;const q1=new Set,Xv=new Map;function eL(t){const e=Array.from(t).sort((n,r)=>n instanceof ap&&n.options.deps.includes(r)?1:r instanceof ap&&r.options.deps.includes(n)?-1:0);for(const n of e){if(Fy.current.includes(n))continue;Fy.current.push(n),n.recompute();const r=V3.get(n);if(r)for(const s of r){const i=op.get(s);i&&eL(i)}}}
42function Dle(t){t.listeners.forEach(e=>e({prevVal:t.prevState,currentVal:t.state}))}function Ole(t){t.listeners.forEach(e=>e({prevVal:t.prevState,currentVal:t.state}))}function tL(t){if(f0>0&&!Xv.has(t)&&Xv.set(t,t.prevState),q1.add(t),!(f0>0)&&!Lw)try{for(Lw=!0;q1.size>0;){const e=Array.from(q1);q1.clear();for(const n of e){const r=Xv.get(n)??n.prevState;n.prevState=r,Dle(n)}for(const n of e){const r=op.get(n);r&&(Fy.current.push(n),eL(r))}for(const n of e){const r=op.get(n);if(r)for(const s of r)Ole(s)}}}finally{Lw=!1,Fy.current=[],Xv.clear()}}function zw(t){f0++;try{t()}finally{if(f0--,f0===0){const e=Array.from(q1)[0];e&&tL(e)}}}class f_{constructor(e,n){this.listeners=new Set,this.subscribe=r=>{var s,i;this.listeners.add(r);const o=(i=(s=this.options)==null?void 0:s.onSubscribe)==null?void 0:i.call(s,r,this);return()=>{this.listeners.delete(r),o?.()}},this.setState=r=>{var s,i,o;this.prevState=this.state,this.state=(s=this.options)!=null&&s.updateFn?this.options.updateFn(this.prevState)(r):r(this.prevState),(o=(i=this.options)==null?void 0:i.onUpdate)==null||o.call(i),tL(this)},this.prevState=e,this.state=e,this.options=n}}class ap{constructor(e){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const n=[],r=[];for(const s of this.options.deps)n.push(s.prevState),r.push(s.state);return this.lastSeenDepValues=r,{prevDepVals:n,currDepVals:r,prevVal:this.prevState??void 0}},this.recompute=()=>{var n,r;this.prevState=this.state;const{prevDepVals:s,currDepVals:i,prevVal:o}=this.getDepVals();this.state=this.options.fn({prevDepVals:s,currDepVals:i,prevVal:o}),(r=(n=this.options).onUpdate)==null||r.call(n)},this.checkIfRecalculationNeededDeeply=()=>{for(const i of this.options.deps)i instanceof ap&&i.checkIfRecalculationNeededDeeply();let n=!1;const r=this.lastSeenDepValues,{currDepVals:s}=this.getDepVals();for(let i=0;i<s.length;i++)if(s[i]!==r[i]){n=!0;break}n&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const n of this._subscriptions)n()}),this.subscribe=n=>{var r,s;this.listeners.add(n);const i=(s=(r=this.options).onSubscribe)==null?void 0:s.call(r,n,this);return()=>{this.listeners.delete(n),i?.()}},this.options=e,this.state=e.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(e=this.options.deps){for(const n of e)if(n instanceof ap)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof f_){let r=op.get(n);r||(r=new Set,op.set(n,r)),r.add(this);let s=V3.get(this);s||(s=new Set,V3.set(this,s)),s.add(n)}}unregisterFromGraph(e=this.options.deps){for(const n of e)if(n instanceof ap)this.unregisterFromGraph(n.options.deps);else if(n instanceof f_){const r=op.get(n);r&&r.delete(this);const s=V3.get(this);s&&s.delete(n)}}}const ru="__TSR_index",mR="popstate",gR="beforeunload";function nL(t){let e=t.getLocation();const n=new Set,r=o=>{e=t.getLocation(),n.forEach(a=>a({location:e,action:o}))},s=o=>{t.notifyOnIndexChange??!0?r(o):e=t.getLocation()},i=async({task:o,navigateOpts:a,...c})=>{var d,p;if(a?.ignoreBlocker??!1){o();return}const v=((d=t.getBlockers)==null?void 0:d.call(t))??[],w=c.type==="PUSH"||c.type==="REPLACE";if(typeof document<"u"&&v.length&&w)for(const E of v){const C=O0(c.path,c.state);if(await E.blockerFn({currentLocation:e,nextLocation:C,action:c.type})){(p=t.onBlocked)==null||p.call(t);return}}o()};return{get location(){return e},get length(){return t.getLength()},subscribers:n,subscribe:o=>(n.add(o),()=>{n.delete(o)}),push:(o,a,c)=>{const d=e.state[ru];a=h_(d+1,a),i({task:()=>{t.pushState(o,a),r({type:"PUSH"})},navigateOpts:c,type:"PUSH",path:o,state:a})},replace:(o,a,c)=>{const d=e.state[ru];a=h_(d,a),i({task:()=>{t.replaceState(o,a),r({type:"REPLACE"})},navigateOpts:c,type:"REPLACE",path:o,state:a})},go:(o,a)=>{i({task:()=>{t.go(o),s({type:"GO",index:o})},navigateOpts:a,type:"GO"})},back:o=>{i({task:()=>{t.back(o?.ignoreBlocker??!1),s({type:"BACK"})},navigateOpts:o,type:"BACK"})},forward:o=>{i({task:()=>{t.forward(o?.ignoreBlocker??!1),s({type:"FORWARD"})},navigateOpts:o,type:"FORWARD"})},canGoBack:()=>e.state[ru]!==0,createHref:o=>t.createHref(o),block:o=>{var a;if(!t.setBlockers)return()=>{};const c=((a=t.getBlockers)==null?void 0:a.call(t))??[];return t.setBlockers([...c,o]),()=>{var d,p;const m=((d=t.getBlockers)==null?void 0:d.call(t))??[];(p=t.setBlockers)==null||p.call(t,m.filter(v=>v!==o))}},flush:()=>{var o;return(o=t.flush)==null?void 0:o.call(t)},destroy:()=>{var o;return(o=t.destroy)==null?void 0:o.call(t)},notify:r}}function h_(t,e){return e||(e={}),{...e,key:X9(),[ru]:t}}function $le(t){var e;const n=typeof document<"u"?window:void 0,r=n.history.pushState,s=n.history.replaceState;let i=[];const o=()=>i,a=T=>i=T,c=T=>T,d=()=>O0(`${n.location.pathname}${n.location.search}${n.location.hash}`,n.history.state);(e=n.history.state)!=null&&e.key||n.history.replaceState({[ru]:0,key:X9()},"");let p=d(),m,v=!1,w=!1,E=!1,C=!1;const b=()=>p;let S,P;const R=()=>{S&&(I._ignoreSubscribers=!0,(S.isPush?n.history.pushState:n.history.replaceState)(S.state,"",S.href),I._ignoreSubscribers=!1,S=void 0,P=void 0,m=void 0)},z=(T,k,j)=>{const L=c(k);P||(m=p),p=O0(k,j),S={href:L,state:j,isPush:S?.isPush||T==="push"},P||(P=Promise.resolve().then(()=>R()))},O=T=>{p=d(),I.notify({type:T})},F=async()=>
42{if(w){w=!1;return}const T=d(),k=T.state[ru]-p.state[ru],j=k===1,L=k===-1,V=!j&&!L||v;v=!1;const Y=V?"GO":L?"BACK":"FORWARD",G=V?{type:"GO",index:k}:{type:L?"BACK":"FORWARD"};if(E)E=!1;else{const q=o();if(typeof document<"u"&&q.length){for(const U of q)if(await U.blockerFn({currentLocation:p,nextLocation:T,action:Y})){w=!0,n.history.go(1),I.notify(G);return}}}p=d(),I.notify(G)},D=T=>{if(C){C=!1;return}let k=!1;const j=o();if(typeof document<"u"&&j.length)for(const L of j){const V=L.enableBeforeUnload??!0;if(V===!0){k=!0;break}if(typeof V=="function"&&V()===!0){k=!0;break}}if(k)return T.preventDefault(),T.returnValue=""},I=nL({getLocation:b,getLength:()=>n.history.length,pushState:(T,k)=>z("push",T,k),replaceState:(T,k)=>z("replace",T,k),back:T=>(T&&(E=!0),C=!0,n.history.back()),forward:T=>{T&&(E=!0),C=!0,n.history.forward()},go:T=>{v=!0,n.history.go(T)},createHref:T=>c(T),flush:R,destroy:()=>{n.history.pushState=r,n.history.replaceState=s,n.removeEventListener(gR,D,{capture:!0}),n.removeEventListener(mR,F)},onBlocked:()=>{m&&p!==m&&(p=m)},getBlockers:o,setBlockers:a,notifyOnIndexChange:!1});return n.addEventListener(gR,D,{capture:!0}),n.addEventListener(mR,F),n.history.pushState=function(...T){const k=r.apply(n.history,T);return I._ignoreSubscribers||O("PUSH"),k},n.history.replaceState=function(...T){const k=s.apply(n.history,T);return I._ignoreSubscribers||O("REPLACE"),k},I}function Fle(t={initialEntries:["/"]}){const e=t.initialEntries;let n=t.initialIndex?Math.min(Math.max(t.initialIndex,0),e.length-1):e.length-1;const r=e.map((i,o)=>h_(o,void 0));return nL({getLocation:()=>O0(e[n],r[n]),getLength:()=>e.length,pushState:(i,o)=>{n<e.length-1&&(e.splice(n+1),r.splice(n+1)),r.push(o),e.push(i),n=Math.max(e.length-1,0)},replaceState:(i,o)=>{r[n]=o,e[n]=i},back:()=>{n=Math.max(n-1,0)},forward:()=>{n=Math.min(n+1,e.length-1)},go:i=>{n=Math.min(Math.max(n+i,0),e.length-1)},createHref:i=>i})}function O0(t,e){const n=t.indexOf("#"),r=t.indexOf("?");return{href:t,pathname:t.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:t.length),hash:n>-1?t.substring(n):"",search:r>-1?t.slice(r,n===-1?void 0:n):"",state:e||{[ru]:0,key:X9()}}}function X9(){return(Math.random()+1).toString(36).substring(7)}function Kh(t){return t[t.length-1]}function jle(t){return typeof t=="function"}function Cd(t,e){return jle(t)?t(e):t}function p_(t,e){return e.reduce((n,r)=>(n[r]=t[r],n),{})}function ki(t,e){if(t===e)return t;const n=e,r=yR(t)&&yR(n);if(r||jy(t)&&jy(n)){const s=r?t:Object.keys(t),i=s.length,o=r?n:Object.keys(n),a=o.length,c=r?[]:{};let d=0;for(let p=0;p<a;p++){const m=r?p:o[p];(!r&&s.includes(m)||r)&&t[m]===void 0&&n[m]===void 0?(c[m]=void 0,d++):(c[m]=ki(t[m],n[m]),c[m]===t[m]&&t[m]!==void 0&&d++)}return i===a&&d===i?t:c}return n}function jy(t){if(!vR(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const n=e.prototype;return!(!vR(n)||!n.hasOwnProperty("isPrototypeOf"))}function vR(t){return Object.prototype.toString.call(t)==="[object Object]"}function yR(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function xR(t,e){let n=Object.keys(t);return e&&(n=n.filter(r=>t[r]!==void 0)),n}function lp(t,e,n){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(jy(t)&&jy(e)){const r=n?.ignoreUndefined??!0,s=xR(t,r),i=xR(e,r);return!n?.partial&&s.length!==i.length?!1:i.every(o=>lp(t[o],e[o],n))}return Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:!t.some((r,s)=>!lp(r,e[s],n)):!1}function jh(t){let e,n;const r=new Promise((s,i)=>{e=s,n=i});return r.status="pending",r.resolve=s=>{r.status="resolved",r.value=s,e(s),t?.(s)},r.reject=s=>{r.status="rejected",n(s)},r}function Lle(t){return/%[0-9A-Fa-f]{2}/.test(t)}function bl(t){return g5(t.filter(e=>e!==void 0).join("/"))}function g5(t){return t.replace(/\/{2,}/g,"/")}function Z9(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function Td(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function zle(t){return Td(Z9(t))}function Ly(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function Vle(t,e,n){return Ly(t,n)===Ly(e,n)}function Ble({basepath:t,base:e,to:n,trailingSlash:r="never",caseSensitive:s}){var i,o;e=zy(t,e,s),n=zy(t,n,s);let a=Up(e);const c=Up(n);a.length>
421&&((i=Kh(a))==null?void 0:i.value)==="/"&&a.pop(),c.forEach((p,m)=>{p.value==="/"?m?m===c.length-1&&a.push(p):a=[p]:p.value===".."?a.pop():p.value==="."||a.push(p)}),a.length>1&&(((o=Kh(a))==null?void 0:o.value)==="/"?r==="never"&&a.pop():r==="always"&&a.push({type:"pathname",value:"/"}));const d=bl([t,...a.map(p=>p.value)]);return g5(d)}function Up(t){if(!t)return[];t=g5(t);const e=[];if(t.slice(0,1)==="/"&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),!t)return e;const n=t.split("/").filter(Boolean);return e.push(...n.map(r=>r==="$"||r==="*"?{type:"wildcard",value:r}:r.charAt(0)==="$"?{type:"param",value:r}:{type:"pathname",value:r.includes("%25")?r.split("%25").map(s=>decodeURI(s)).join("%25"):decodeURI(r)})),t.slice(-1)==="/"&&(t=t.substring(1),e.push({type:"pathname",value:"/"})),e}function Zv({path:t,params:e,leaveWildcards:n,leaveParams:r,decodeCharMap:s}){const i=Up(t);function o(p){const m=e[p],v=typeof m=="string";return["*","_splat"].includes(p)?v?encodeURI(m):m:v?Hle(m,s):m}let a=!1;const c={},d=bl(i.map(p=>{if(p.type==="wildcard"){c._splat=e._splat;const m=o("_splat");return n?`${p.value}${m??""}`:m}if(p.type==="param"){const m=p.value.substring(1);if(!a&&!(m in e)&&(a=!0),c[m]=e[m],r){const v=o(p.value);return`${p.value}${v??""}`}return o(m)??"undefined"}return p.value}));return{usedParams:c,interpolatedPath:d,isMissingParams:a}}function Hle(t,e){let n=encodeURIComponent(t);if(e)for(const[r,s]of e)n=n.replaceAll(r,s);return n}function Jv(t,e,n){const r=Ule(t,e,n);if(!(n.to&&!r))return r??{}}function zy(t,e,n=!1){const r=n?t:t.toLowerCase(),s=n?e:e.toLowerCase();switch(!0){case r==="/":return e;case s===r:return"";case e.length<t.length:return e;case s[r.length]!=="/":return e;case s.startsWith(r):return e.slice(t.length);default:return e}}function Ule(t,e,n){if(t!=="/"&&!e.startsWith(t))return;e=zy(t,e,n.caseSensitive);const r=zy(t,`${n.to??"$"}`,n.caseSensitive),s=Up(e),i=Up(r);e.startsWith("/")||s.unshift({type:"pathname",value:"/"}),r.startsWith("/")||i.unshift({type:"pathname",value:"/"});const o={};return(()=>{for(let c=0;c<Math.max(s.length,i.length);c++){const d=s[c],p=i[c],m=c>=s.length-1,v=c>=i.length-1;if(p){if(p.type==="wildcard"){const w=decodeURI(bl(s.slice(c).map(E=>E.value)));return o["*"]=w,o._splat=w,!0}if(p.type==="pathname"){if(p.value==="/"&&!d?.value)return!0;if(d){if(n.caseSensitive){if(p.value!==d.value)return!1}else if(p.value.toLowerCase()!==d.value.toLowerCase())return!1}}if(!d)return!1;if(p.type==="param"){if(d.value==="/")return!1;d.value.charAt(0)!=="$"&&(o[p.value.substring(1)]=decodeURIComponent(d.value))}}if(!m&&v)return o["**"]=bl(s.slice(c+1).map(w=>w.value)),!!n.fuzzy&&p?.value!=="/"}return!0})()?o:void 0}function Fi(t){return!!t?.isNotFound}const Vy="tsr-scroll-restoration-v1_3";let rL=!1;try{rL=typeof window<"u"&&typeof window.sessionStorage=="object"}catch{}const Wle=(t,e)=>{let n;return(...r)=>{n||(n=setTimeout(()=>{t(...r),n=null},e))}},Yh=rL?{state:JSON.parse(window.sessionStorage.getItem(Vy)||"null")||{},set:e=>(Yh.state=Cd(e,Yh.state)||Yh.state,window.sessionStorage.setItem(Vy,JSON.stringify(Yh.state)))}:void 0,m_=t=>t.state.key||t.href;function qle(t){const e=[];let n;for(;n=t.parentNode;)e.unshift(`${t.tagName}:nth-child(${[].indexOf.call(n.children,t)+1})`),t=n;return`${e.join(" > ")}`.toLowerCase()}let By=!1;function sL(t,e,n,r,s){var i;let o;try{o=JSON.parse(sessionStorage.getItem(t)||"{}")}catch(d){console.error(d);return}const a=e||((i=window.history.state)==null?void 0:i.key),c=o[a];By=!0,(()=>{if(r&&c){for(const p in c){const m=c[p];if(p==="window")window.scrollTo({top:m.scrollY,left:m.scrollX,behavior:n});else if(p){const v=document.querySelector(p);v&&(v.scrollLeft=m.scrollX,v.scrollTop=m.scrollY)}}return}const d=window.location.hash.split("#")[1];if(d){const p=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(p){const m=document.getElementById(d);m&&m.scrollIntoView(p)}return}["window",...s?.filter(p=>p!=="window")??[]].forEach(p=>{const m=p==="window"?window:document.querySelector(p);m&&m.scrollTo({top:0,left:0,behavior:n})})})(),By=!1}function Gle(t,e){if((t.options.scrollRestoration??!1)&&(t.isScrollRestoring=!0),typeof document>"u"||t.isScrollRestorationSetup)return;t.isScrollRestorationSetup=!0,By=!1;const r=t.options.getScrollRestorationKey||m_;window.history.scrollRestoration="manual";const s=i=>{if(By||!t.isScrollRestoring)return;let o="";if(i.target===document||i.target===window)o="window";else{const c=i.target.getAttribute("data-scroll-restoration-id");c?o=`[data-scroll-restoration-id="${c}"]`:o=qle(i.target)}const a=r(t.state.location);Yh.set(c=>{const d=c[a]=c[a]||{},p=d[o]=d[o]||{};if(o==="window")p.scrollX=window.scrollX||0,p.scrollY=window.scrollY||0;
42else if(o){const m=document.querySelector(o);m&&(p.scrollX=m.scrollLeft||0,p.scrollY=m.scrollTop||0)}return c})};typeof document<"u"&&document.addEventListener("scroll",Wle(s,100),!0),t.subscribe("onRendered",i=>{const o=r(i.toLocation);if(!t.resetNextScroll){t.resetNextScroll=!0;return}sL(Vy,o,t.options.scrollRestorationBehavior||void 0,t.isScrollRestoring||void 0,t.options.scrollToTopSelectors||void 0),t.isScrollRestoring&&Yh.set(a=>(a[o]=a[o]||{},a))})}function Kle(t){if(typeof document<"u"&&document.querySelector){const e=t.state.location.state.__hashScrollIntoViewOptions??!0;if(e&&t.state.location.hash!==""){const n=document.getElementById(t.state.location.hash);n&&n.scrollIntoView(e)}}}function Yle(t,e){const n=Object.entries(t).flatMap(([s,i])=>Array.isArray(i)?i.map(o=>[s,String(o)]):[[s,String(i)]]);return""+new URLSearchParams(n).toString()}function Vw(t){if(!t)return"";const e=Lle(t)?decodeURIComponent(t):decodeURIComponent(encodeURIComponent(t));return e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e}function Qle(t,e){const n=t;return[...new URLSearchParams(n).entries()].reduce((i,[o,a])=>{const c=i[o];return c==null?i[o]=Vw(a):i[o]=Array.isArray(c)?[...c,Vw(a)]:[c,Vw(a)],i},{})}const Xle=Jle(JSON.parse),Zle=ece(JSON.stringify,JSON.parse);function Jle(t){return e=>{e.substring(0,1)==="?"&&(e=e.substring(1));const n=Qle(e);for(const r in n){const s=n[r];if(typeof s=="string")try{n[r]=t(s)}catch{}}return n}}function ece(t,e){function n(r){if(typeof r=="object"&&r!==null)try{return t(r)}catch{}else if(typeof r=="string"&&typeof e=="function")try{return e(r),t(r)}catch{}return r}return r=>{r={...r},Object.keys(r).forEach(i=>{const o=r[i];typeof o>"u"||o===void 0?delete r[i]:r[i]=n(o)});const s=Yle(r).toString();return s?`?${s}`:""}}const bo="__root__";function $2(t){if(t.isRedirect=!0,t.statusCode=t.statusCode||t.code||307,t.headers=t.headers||{},!t.reloadDocument){t.reloadDocument=!1;try{new URL(`${t.href}`),t.reloadDocument=!0}catch{}}if(t.throw)throw t;return t}function yd(t){return!!t?.isRedirect}function Bw(t){return!!t?.isRedirect&&t.href}function Wd(t){const e=t.resolvedLocation,n=t.location,r=e?.pathname!==n.pathname,s=e?.href!==n.href,i=e?.hash!==n.hash;return{fromLocation:e,toLocation:n,pathChanged:r,hrefChanged:s,hashChanged:i}}class tce{constructor(e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>
42n(),this.update=n=>{var r;n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const s=this.options;this.options={...this.options,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(i=>[encodeURIComponent(i),i])):void 0,(!this.basepath||n.basepath&&n.basepath!==s.basepath)&&(n.basepath===void 0||n.basepath===""||n.basepath==="/"?this.basepath="/":this.basepath=`/${zle(n.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?Fle({initialEntries:[this.basepath||"/"]}):$le()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new f_(rce(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(i=>!["redirected"].includes(i.status))}}}),Gle(this)),typeof window<"u"&&"CSS"in window&&typeof((r=window.CSS)==null?void 0:r.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.buildRouteTree=()=>{this.routesById={},this.routesByPath={};const n=this.options.notFoundRoute;n&&(n.init({originalIndex:99999999999,defaultSsr:this.options.defaultSsr}),this.routesById[n.id]=n);const r=o=>{o.forEach((a,c)=>{a.init({originalIndex:c,defaultSsr:this.options.defaultSsr});const d=this.routesById[a.id];if(yl(!d,`Duplicate routes found with id: ${String(a.id)}`),this.routesById[a.id]=a,!a.isRoot&&a.path){const m=Td(a.fullPath);(!this.routesByPath[m]||a.fullPath.endsWith("/"))&&(this.routesByPath[m]=a)}const p=a.children;p?.length&&r(p)})};r([this.routeTree]);const s=[];Object.values(this.routesById).forEach((o,a)=>{var c;if(o.isRoot||!o.path)return;const d=Z9(o.fullPath),p=Up(d);for(;p.length>1&&((c=p[0])==null?void 0:c.value)==="/";)p.shift();const m=p.map(v=>v.value==="/"?.75:v.type==="param"?.5:v.type==="wildcard"?.25:1);s.push({child:o,trimmed:d,parsed:p,index:a,scores:m})}),this.flatRoutes=s.sort((o,a)=>{const c=Math.min(o.scores.length,a.scores.length);for(let d=0;d<c;d++)if(o.scores[d]!==a.scores[d])return a.scores[d]-o.scores[d];if(o.scores.length!==a.scores.length)return a.scores.length-o.scores.length;for(let d=0;d<c;d++)if(o.parsed[d].value!==a.parsed[d].value)return o.parsed[d].value>a.parsed[d].value?1:-1;return o.index-a.index}).map((o,a)=>(o.child.rank=a,o.child))},this.subscribe=(n,r)=>{const s={eventType:n,fn:r};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const s=({pathname:c,search:d,hash:p,state:m})=>{const v=this.options.parseSearch(d),w=this.options.stringifySearch(v);return{pathname:c,searchStr:w,search:ki(n?.search,v),hash:p.split("#").reverse()[0]??"",href:`${c}${w}${p}`,state:ki(n?.state,m)}},i=s(r??this.history.location),{__tempLocation:o,__tempKey:a}=i.state;if(o&&(!a||a===this.tempLocationKey)){const c=s(o);return c.state.key=i.state.key,delete c.state.__tempLocation,{...c,maskedLocation:i}}return i},this.resolvePathWithBase=(n,r)=>Ble({basepath:this.basepath,base:n,to:g5(r),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.matchRoutes=(n,r,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:r},s):this.matchRoutesInternal(n,r),this.getMatchedRoutes=(n,r)=>{let s={};const i=Td(n.pathname),o=p=>Jv(this.basepath,i,{to:p.fullPath,caseSensitive:p.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});let a=r?.to!==void 0?this.routesByPath[r.to]:void 0;a?s=o(a):a=this.flatRoutes.find(p=>{const m=o(p);return m?(s=m,!0):!1});let c=a||this.routesById[bo];const d=[c];for(;c.parentRoute;)c=c.parentRoute,d.unshift(c);
42return{matchedRoutes:d,routeParams:s,foundRoute:a}},this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r.pendingTimeout))},this.cancelMatches=()=>{var n;(n=this.state.pendingMatches)==null||n.forEach(r=>{this.cancelMatch(r.id)})},this.buildLocation=n=>{const r=(i={},o)=>{var a,c,d,p,m,v,w;const E=i._fromLocation?this.matchRoutes(i._fromLocation,{_buildLocation:!0}):this.state.matches,C=i.from!=null?E.find(L=>Jv(this.basepath,Td(L.pathname),{to:i.from,caseSensitive:!1,fuzzy:!1})):void 0,b=C?.pathname||this.latestLocation.pathname;yl(i.from==null||C!=null,"Could not find match for from: "+i.from);const S=(a=this.state.pendingMatches)!=null&&a.length?(c=Kh(this.state.pendingMatches))==null?void 0:c.search:((d=Kh(E))==null?void 0:d.search)||this.latestLocation.search,P=o?.matchedRoutes.filter(L=>E.find(V=>V.routeId===L.id));let R;if(i.to){const L=C?.fullPath||((p=Kh(E))==null?void 0:p.fullPath)||this.latestLocation.pathname;R=this.resolvePathWithBase(L,`${i.to}`)}else{const L=this.routesById[(m=P?.find(V=>{const Y=Zv({path:V.fullPath,params:o?.routeParams??{},decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;return bl([this.basepath,Y])===b}))==null?void 0:m.id];R=this.resolvePathWithBase(b,L?.to??b)}const z={...(v=Kh(E))==null?void 0:v.params};let O=(i.params??!0)===!0?z:{...z,...Cd(i.params,z)};Object.keys(O).length>0&&o?.matchedRoutes.map(L=>{var V;return((V=L.options.params)==null?void 0:V.stringify)??L.options.stringifyParams}).filter(Boolean).forEach(L=>{O={...O,...L(O)}}),R=Zv({path:R,params:O??{},leaveWildcards:!1,leaveParams:n.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath;let F=S;if(n._includeValidateSearch&&((w=this.options.search)!=null&&w.strict)){let L={};o?.matchedRoutes.forEach(V=>{try{V.options.validateSearch&&(L={...L,...Hw(V.options.validateSearch,{...L,...F})??{}})}catch{}}),F=L}F=(L=>{const V=o?.matchedRoutes.reduce((q,U)=>{var B;const ne=[];if("search"in U.options)(B=U.options.search)!=null&&B.middlewares&&ne.push(...U.options.search.middlewares);else if(U.options.preSearchFilters||U.options.postSearchFilters){const oe=({search:Q,next:ie})=>{let ue=Q;"preSearchFilters"in U.options&&U.options.preSearchFilters&&(ue=U.options.preSearchFilters.reduce((Ae,Pe)=>Pe(Ae),Q));const ge=ie(ue);return"postSearchFilters"in U.options&&U.options.postSearchFilters?U.options.postSearchFilters.reduce((Ae,Pe)=>Pe(Ae),ge):ge};ne.push(oe)}if(n._includeValidateSearch&&U.options.validateSearch){const oe=({search:Q,next:ie})=>{const ue=ie(Q);try{return{...ue,...Hw(U.options.validateSearch,ue)??{}}}catch{return ue}};ne.push(oe)}return q.concat(ne)},[])??[],Y=({search:q})=>i.search?i.search===!0?q:Cd(i.search,q):{};V.push(Y);const G=(q,U)=>{if(q>=V.length)return U;const B=V[q];return B({search:U,next:oe=>G(q+1,oe)})};return G(0,L)})(F),F=ki(S,F);const I=this.options.stringifySearch(F),T=i.hash===!0?this.latestLocation.hash:i.hash?Cd(i.hash,this.latestLocation.hash):void 0,k=T?`#${T}`:"";let j=i.state===!0?this.latestLocation.state:i.state?Cd(i.state,this.latestLocation.state):{};return j=ki(this.latestLocation.state,j),{pathname:R,search:F,searchStr:I,state:j,hash:T??"",href:`${R}${I}${k}`,unmaskOnReload:i.unmaskOnReload}},s=(i={},o)=>{var a;const c=r(i);let d=o?r(o):void 0;if(!d){let v={};const w=(a=this.options.routeMasks)==null?void 0:a.find(E=>{const C=Jv(this.basepath,c.pathname,{to:E.from,caseSensitive:!1,fuzzy:!1});return C?(v=C,!0):!1});if(w){const{from:E,...C}=w;o={...p_(n,["from"]),...C,params:v},d=r(o)}}const p=this.getMatchedRoutes(c,i),m=r(i,p);if(d){const v=this.getMatchedRoutes(d,o),w=r(o,v);m.maskedLocation=w}return m};return n.mask?s(n,{...p_(n,["from"]),...n.mask}):s(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:r,...s})=>{const i=()=>{const c=["key","__TSR_index","__hashScrollIntoViewOptions"];c.forEach(p=>{s.state[p]=this.latestLocation.state[p]});const d=lp(s.state,this.latestLocation.state);return c.forEach(p=>{delete s.state[p]}),d},o=this.latestLocation.href===s.href,a=this.commitLocationPromise;if(this.commitLocationPromise=jh(()=>{a?.resolve()}),o&&i())this.load();else{let{maskedLocation:c,hashScrollIntoView:d,...p}=s;c&&(p={...c,state:{...c.state,__tempKey:void 0,__tempLocation:{...p,search:p.searchStr,state:{...p.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(p.unmaskOnReload??this.options.unmaskOnReload??!1)&&(p.state.__tempKey=this.tempLocationKey)),p.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[s.replace?"replace":"push"](p.href,p.state,{ignoreBlocker:r})}return this.resetNextScroll=s.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:s,viewTransition:i,ignoreBlocker:o,href:a,...c}={})=>
42{if(a){const p=this.history.location.state.__TSR_index,m=O0(a,{__TSR_index:n?p:p+1});c.to=m.pathname,c.search=this.options.parseSearch(m.search),c.hash=m.hash.slice(1)}const d=this.buildLocation({...c,_includeValidateSearch:!0});return this.commitLocation({...d,viewTransition:i,replace:n,resetScroll:r,hashScrollIntoView:s,ignoreBlocker:o})},this.navigate=({to:n,reloadDocument:r,href:s,...i})=>{if(r){if(!s){const o=this.buildLocation({to:n,...i});s=this.history.createHref(o.href)}i.replace?window.location.replace(s):window.location.href=s;return}return this.buildAndCommitLocation({...i,href:s,to:n})},this.load=async n=>{this.latestLocation=this.parseLocation(this.latestLocation);let r,s,i;for(i=new Promise(o=>{this.startTransition(async()=>{var a;try{const c=this.latestLocation,d=this.state.resolvedLocation;this.cancelMatches();let p;zw(()=>{p=this.matchRoutes(c),this.__store.setState(m=>({...m,status:"pending",isLoading:!0,location:c,pendingMatches:p,cachedMatches:m.cachedMatches.filter(v=>!p.find(w=>w.id===v.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",...Wd({resolvedLocation:d,location:c})}),this.emit({type:"onBeforeLoad",...Wd({resolvedLocation:d,location:c})}),await this.loadMatches({sync:n?.sync,matches:p,location:c,onReady:async()=>{this.startViewTransition(async()=>{let m,v,w;zw(()=>{this.__store.setState(E=>{const C=E.matches,b=E.pendingMatches||E.matches;return m=C.filter(S=>!b.find(P=>P.id===S.id)),v=b.filter(S=>!C.find(P=>P.id===S.id)),w=C.filter(S=>b.find(P=>P.id===S.id)),{...E,isLoading:!1,loadedAt:Date.now(),matches:b,pendingMatches:void 0,cachedMatches:[...E.cachedMatches,...m.filter(S=>S.status!=="error")]}}),this.clearExpiredCache()}),[[m,"onLeave"],[v,"onEnter"],[w,"onStay"]].forEach(([E,C])=>{E.forEach(b=>{var S,P;(P=(S=this.looseRoutesById[b.routeId].options)[C])==null||P.call(S,b)})})})}})}catch(c){Bw(c)?(r=c,this.isServer||this.navigate({...r,replace:!0,ignoreBlocker:!0})):Fi(c)&&(s=c),this.__store.setState(d=>({...d,statusCode:r?r.statusCode:s?404:d.matches.some(p=>p.status==="error")?500:200,redirect:r}))}this.latestLoadPromise===i&&((a=this.commitLocationPromise)==null||a.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()&&this.__store.setState(o=>({...o,statusCode:404}))},this.startViewTransition=n=>
42{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let s;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const i=this.latestLocation,o=this.state.resolvedLocation,a=typeof r.types=="function"?r.types(Wd({resolvedLocation:o,location:i})):r.types;s={update:n,types:a}}else s=n;document.startViewTransition(s)}else n()},this.updateMatch=(n,r)=>{var s;let i;const o=(s=this.state.pendingMatches)==null?void 0:s.find(p=>p.id===n),a=this.state.matches.find(p=>p.id===n),c=this.state.cachedMatches.find(p=>p.id===n),d=o?"pendingMatches":a?"matches":c?"cachedMatches":"";return d&&this.__store.setState(p=>{var m;return{...p,[d]:(m=p[d])==null?void 0:m.map(v=>v.id===n?i=r(v):v)}}),i},this.getMatch=n=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(r=>r.id===n),this.loadMatches=async({location:n,matches:r,preload:s,onReady:i,updateMatch:o=this.updateMatch,sync:a})=>{let c,d=!1;const p=async()=>{d||(d=!0,await i?.())},m=w=>!!(s&&!this.state.matches.find(E=>E.id===w)),v=(w,E)=>{var C,b,S,P;if(Bw(E)&&!E.reloadDocument)throw E;if(yd(E)||Fi(E)){if(o(w.id,R=>({...R,status:yd(E)?"redirected":Fi(E)?"notFound":"error",isFetching:!1,error:E,beforeLoadPromise:void 0,loaderPromise:void 0})),E.routeId||(E.routeId=w.routeId),(C=w.beforeLoadPromise)==null||C.resolve(),(b=w.loaderPromise)==null||b.resolve(),(S=w.loadPromise)==null||S.resolve(),yd(E))throw d=!0,E=this.resolveRedirect({...E,_fromLocation:n}),E;if(Fi(E))throw this._handleNotFound(r,E,{updateMatch:o}),(P=this.serverSsr)==null||P.onMatchSettled({router:this,match:this.getMatch(w.id)}),E}};try{await new Promise((w,E)=>{(async()=>{var C,b,S,P;try{const R=(F,D,I)=>{var T,k;const{id:j,routeId:L}=r[F],V=this.looseRoutesById[L];if(D instanceof Promise)throw D;D.routerCode=I,c=c??F,v(this.getMatch(j),D);try{(k=(T=V.options).onError)==null||k.call(T,D)}catch(Y){D=Y,v(this.getMatch(j),D)}o(j,Y=>{var G,q;return(G=Y.beforeLoadPromise)==null||G.resolve(),(q=Y.loadPromise)==null||q.resolve(),{...Y,error:D,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[F,{id:D,routeId:I}]of r.entries()){const T=this.getMatch(D),k=(C=r[F-1])==null?void 0:C.id,j=this.looseRoutesById[I],L=j.options.pendingMs??this.options.defaultPendingMs,V=!!(i&&!this.isServer&&!m(D)&&(j.options.loader||j.options.beforeLoad||wR(j))&&typeof L=="number"&&L!==1/0&&(j.options.pendingComponent??((b=this.options)==null?void 0:b.defaultPendingComponent)));let Y=!0;if((T.beforeLoadPromise||T.loaderPromise)&&(V&&setTimeout(()=>{try{p()}catch{}},L),await T.beforeLoadPromise,Y=this.getMatch(D).status!=="success"),Y){try{o(D,he=>{const xe=he.loadPromise;return{...he,loadPromise:jh(()=>{xe?.resolve()}),beforeLoadPromise:jh()}});const G=new AbortController;let q;V&&(q=setTimeout(()=>{try{p()}catch{}},L));const{paramsError:U,searchError:B}=this.getMatch(D);U&&R(F,U,"PARSE_PARAMS"),B&&R(F,B,"VALIDATE_SEARCH");const ne=()=>k?this.getMatch(k).context:this.options.context??{};o(D,he=>({...he,isFetching:"beforeLoad",fetchCount:he.fetchCount+1,abortController:G,pendingTimeout:q,context:{...ne(),...he.__routeContext}}));const{search:oe,params:Q,context:ie,cause:ue}=this.getMatch(D),ge=m(D),Ae={search:oe,abortController:G,params:Q,preload:ge,context:ie,location:n,navigate:he=>this.navigate({...he,_fromLocation:n}),buildLocation:this.buildLocation,cause:ge?"preload":ue,matches:r},Pe=await((P=(S=j.options).beforeLoad)==null?void 0:P.call(S,Ae))??{};(yd(Pe)||Fi(Pe))&&R(F,Pe,"BEFORE_LOAD"),o(D,he=>({...he,__beforeLoadContext:Pe,context:{...ne(),...he.__routeContext,...Pe},abortController:G}))}catch(G){R(F,G,"BEFORE_LOAD")}o(D,G=>{var q;return(q=G.beforeLoadPromise)==null||q.resolve(),{...G,beforeLoadPromise:void 0,isFetching:!1}})}}const z=r.slice(0,c),O=[];z.forEach(({id:F,routeId:D},I)=>{O.push((async()=>{const{loaderPromise:T}=this.getMatch(F);let k=!1,j=!1;if(T){await T;const L=this.getMatch(F);L.error&&v(L,L.error)}else{const L=O[I-1],V=this.looseRoutesById[D],Y=()=>{const{params:ue,loaderDeps:ge,abortController:Ae,context:Pe,cause:he}=this.getMatch(F),xe=m(F);return{params:ue,deps:ge,preload:!!xe,parentMatchPromise:L,abortController:Ae,context:Pe,location:n,navigate:Ne=>this.navigate({...Ne,_fromLocation:n}),cause:xe?"preload":he,route:V}},G=Date.now()-this.getMatch(F).updatedAt,q=m(F),U=q?V.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:V.options.staleTime??this.options.defaultStaleTime??0,B=V.options.shouldReload,ne=typeof B=="function"?B(Y()):B;o(F,ue=>({...ue,loaderPromise:jh(),preload:!!q&&!this.state.matches.find(ge=>ge.id===F)}));const oe=async()=>{var ue,ge,Ae,Pe,he,xe,Ne,ze,Ze,ut,Pt;try{const Rt=async()=>{const Tt=this.getMatch(F);Tt.minPendingPromise&&await Tt.minPendingPromise};try{this.loadRouteChunk(V),o(F,se=>({...se,isFetching:"loader"}));const Tt=await((ge=(ue=V.options).loader)==null?void 0:ge.call(ue,Y()));v(this.getMatch(F),Tt),await V._lazyPromise,await Rt();const on={matches:r,match:this.getMatch(F),params:this.getMatch(F).params,loaderData:Tt},Xt=(Pe=(Ae=V.options).head)==null?void 0:Pe.call(Ae,on),Pr=Xt?.meta,Lr=Xt?.links,xt=Xt?.scripts,nt=(xe=(he=V.options).scripts)==null?void 0:xe.call(he,on),K=(ze=(Ne=V.options).headers)==null?void 0:ze.call(Ne,{loaderData:Tt});await V._componentsPromise,o(F,se=>({...se,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:Tt,meta:Pr,links:Lr,headScripts:xt,headers:K,scripts:nt}))}catch(Tt){let on=Tt;await Rt(),v(this.getMatch(F),Tt);try{(ut=(Ze=V.options).onError)==null||ut.call(Ze,Tt)}catch(Xt){on=Xt,v(this.getMatch(F),Xt)}o(F,Xt=>({...Xt,error:on,status:"error",isFetching:!1}))}(Pt=this.serverSsr)==null||Pt.onMatchSettled({router:this,match:this.getMatch(F)})}catch(Rt){o(F,Tt=>({...Tt,loaderPromise:void 0})),v(this.getMatch(F),Rt)}},{status:Q,invalid:ie}=this.getMatch(F);k=Q==="success"&&(ie||(ne??G>U)),q&&V.options.preload===!1||(k&&!a?(j=!0,(async()=>{try{await oe();const{loaderPromise:ue,loadPromise:ge}=this.getMatch(F);ue?.resolve(),ge?.resolve(),o(F,Ae=>({...Ae,loaderPromise:void 0}))}catch(ue){Bw(ue)&&await this.navigate(ue)}
42})()):(Q!=="success"||k&&a)&&await oe())}if(!j){const{loaderPromise:L,loadPromise:V}=this.getMatch(F);L?.resolve(),V?.resolve()}return o(F,L=>({...L,isFetching:j?L.isFetching:!1,loaderPromise:j?L.loaderPromise:void 0,invalid:!1})),this.getMatch(F)})())}),await Promise.all(O),w()}catch(R){E(R)}})()}),await p()}catch(w){if(yd(w)||Fi(w))throw Fi(w)&&!s&&await p(),w}return r},this.invalidate=n=>{const r=s=>{var i;return((i=n?.filter)==null?void 0:i.call(n,s))??!0?{...s,invalid:!0,...s.status==="error"?{status:"pending",error:void 0}:{}}:s};return this.__store.setState(s=>{var i;return{...s,matches:s.matches.map(r),cachedMatches:s.cachedMatches.map(r),pendingMatches:(i=s.pendingMatches)==null?void 0:i.map(r)}}),this.load({sync:n?.sync})},this.resolveRedirect=n=>{const r=n;return r.href||(r.href=this.buildLocation(r).href),r},this.clearCache=n=>{const r=n?.filter;r!==void 0?this.__store.setState(s=>({...s,cachedMatches:s.cachedMatches.filter(i=>!r(i))})):this.__store.setState(s=>({...s,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=r=>{const s=this.looseRoutesById[r.routeId];if(!s.options.loader)return!0;const i=(r.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return!(r.status!=="error"&&Date.now()-r.updatedAt<i)};this.clearCache({filter:n})},this.loadRouteChunk=n=>(n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(r=>{const{id:s,...i}=r.options;Object.assign(n.options,i)}):n._lazyPromise=Promise.resolve()),n._componentsPromise===void 0&&(n._componentsPromise=n._lazyPromise.then(()=>Promise.all(iL.map(async r=>{const s=n.options[r];s?.preload&&await s.preload()})))),n._componentsPromise),this.preloadRoute=async n=>{const r=this.buildLocation(n);let s=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const i=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(a=>a.id)),o=new Set([...i,...this.state.cachedMatches.map(a=>a.id)]);zw(()=>{s.forEach(a=>{o.has(a.id)||this.__store.setState(c=>({...c,cachedMatches:[...c.cachedMatches,a]}))})});try{return s=await this.loadMatches({matches:s,location:r,preload:!0,updateMatch:(a,c)=>{i.has(a)?s=s.map(d=>d.id===a?c(d):d):this.updateMatch(a,c)}}),s}catch(a){if(yd(a))return a.reloadDocument?void 0:await this.preloadRoute({...a,_fromLocation:r});Fi(a)||console.error(a);return}},this.matchRoute=(n,r)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},i=this.buildLocation(s);if(r?.pending&&this.state.status!=="pending")return!1;const a=(r?.pending===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,c=Jv(this.basepath,a.pathname,{...r,to:i.pathname});return!c||n.params&&!lp(c,n.params,{partial:!0})?!1:c&&(r?.includeSearch??!0)?lp(a.search,i.search,{partial:!0})?c:!1:c},this._handleNotFound=(n,r,{updateMatch:s=this.updateMatch}={})=>{var i;const o=this.routesById[r.routeId??""]??this.routeTree,a={};for(const d of n)a[d.routeId]=d;!o.options.notFoundComponent&&((i=this.options)!=null&&i.defaultNotFoundComponent)&&(o.options.notFoundComponent=this.options.defaultNotFoundComponent),yl(o.options.notFoundComponent);const c=a[o.id];yl(c,"Could not find match for route: "+o.id),s(c.id,d=>({...d,status:"notFound",error:r,isFetching:!1})),r.routerCode==="BEFORE_LOAD"&&o.parentRoute&&(r.routeId=o.parentRoute.id,this._handleNotFound(n,r,{updateMatch:s}))},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??Zle,parseSearch:e.parseSearch??Xle}),typeof document<"u"&&(window.__TSR_ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(e,n){const{foundRoute:r,matchedRoutes:s,routeParams:i}=this.getMatchedRoutes(e,n?.dest);let o=!1;(r?r.path!=="/"&&i["**"]:Td(e.pathname))&&(this.options.notFoundRoute?s.push(this.options.notFoundRoute):o=!0);const a=(()=>
42{if(o){if(this.options.notFoundMode!=="root")for(let m=s.length-1;m>=0;m--){const v=s[m];if(v.children)return v.id}return bo}})(),c=s.map(m=>{var v;let w;const E=((v=m.options.params)==null?void 0:v.parse)??m.options.parseParams;if(E)try{const C=E(i);Object.assign(i,C)}catch(C){if(w=new nce(C.message,{cause:C}),n?.throwOnError)throw w;return w}}),d=[],p=m=>m?.id?m.context??this.options.context??{}:this.options.context??{};return s.forEach((m,v)=>{var w,E;const C=d[v-1],[b,S,P]=(()=>{const V=C?.search??e.search,Y=C?._strictSearch??{};try{const G=Hw(m.options.validateSearch,{...V})??{};return[{...V,...G},{...Y,...G},void 0]}catch(G){let q=G;if(G instanceof Hy||(q=new Hy(G.message,{cause:G})),n?.throwOnError)throw q;return[V,{},q]}})(),R=((E=(w=m.options).loaderDeps)==null?void 0:E.call(w,{search:b}))??"",z=R?JSON.stringify(R):"",{usedParams:O,interpolatedPath:F}=Zv({path:m.fullPath,params:i,decodeCharMap:this.pathParamsDecodeCharMap}),D=Zv({path:m.id,params:i,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath+z,I=this.getMatch(D),T=this.state.matches.find(V=>V.routeId===m.id),k=T?"stay":"enter";let j;if(I)j={...I,cause:k,params:T?ki(T.params,i):i,_strictParams:O,search:ki(T?T.search:I.search,b),_strictSearch:S};else{const V=m.options.loader||m.options.beforeLoad||m.lazyFn||wR(m)?"pending":"success";j={id:D,index:v,routeId:m.id,params:T?ki(T.params,i):i,_strictParams:O,pathname:bl([this.basepath,F]),updatedAt:Date.now(),search:T?ki(T.search,b):b,_strictSearch:S,searchError:void 0,status:V,isFetching:!1,error:void 0,paramsError:c[v],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:k,loaderDeps:T?ki(T.loaderDeps,R):R,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},loadPromise:jh(),fullPath:m.fullPath}}n?.preload||(j.globalNotFound=a===m.id),j.searchError=P;const L=p(C);j.context={...L,...j.__routeContext,...j.__beforeLoadContext},d.push(j)}),d.forEach((m,v)=>{var w,E,C,b,S,P,R,z;const O=this.looseRoutesById[m.routeId];if(!this.getMatch(m.id)&&n?._buildLocation!==!0){const D=d[v-1],I=p(D),T={deps:m.loaderDeps,params:m.params,context:I,location:e,navigate:k=>this.navigate({...k,_fromLocation:e}),buildLocation:this.buildLocation,cause:m.cause,abortController:m.abortController,preload:!!m.preload,matches:d};m.__routeContext=((E=(w=O.options).context)==null?void 0:E.call(w,T))??{},m.context={...I,...m.__routeContext,...m.__beforeLoadContext}}if(m.status==="success"){m.headers=(b=(C=O.options).headers)==null?void 0:b.call(C,{loaderData:m.loaderData});const D={matches:d,match:m,params:m.params,loaderData:m.loaderData},I=(P=(S=O.options).head)==null?void 0:P.call(S,D);m.links=I?.links,m.headScripts=I?.scripts,m.meta=I?.meta,m.scripts=(z=(R=O.options).scripts)==null?void 0:z.call(R,D)}}),d}}class Hy extends Error{}class nce extends Error{}function rce(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Hw(t,e){if(t==null)return{};if("~standard"in t){const n=t["~standard"].validate(e);if(n instanceof Promise)throw new Hy("Async validation not supported");if(n.issues)throw new Hy(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in t?t.parse(e):typeof t=="function"?t(e):{}}const iL=["component","errorComponent","pendingComponent","notFoundComponent"];function wR(t){var e;for(const n of iL)if((e=t.options[n])!=null&&e.preload)return!0;return!1}const sce="Error preloading route! ☝️";class oL{constructor(e){if(this.init=n=>{var r,s;this.originalIndex=n.originalIndex;const i=this.options,o=!i?.path&&!i?.id;if(this.parentRoute=(s=(r=this.options).getParentRoute)==null?void 0:s.call(r),o)this._path=bo;else if(!this.parentRoute)throw new Error("Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.");let a=o?bo:i?.path;a&&a!=="/"&&(a=Z9(a));const c=i?.id||a;let d=o?bo:bl([this.parentRoute.id===bo?"":this.parentRoute.id,c]);
42a===bo&&(a="/"),d!==bo&&(d=bl(["/",d]));const p=d===bo?"/":bl([this.parentRoute.fullPath,a]);this._path=a,this._id=d,this._fullPath=p,this._to=p,this._ssr=i?.ssr??n.defaultSsr??!0},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}get ssr(){return this._ssr}}class ice extends oL{constructor(e){super(e)}}function J9(t){const e=t.errorComponent??v5;return u.jsx(oce,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:n,reset:r})=>n?_.createElement(e,{error:n,reset:r}):t.children})}class oce extends _.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,n){this.props.onCatch&&this.props.onCatch(e,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function v5({error:t}){const[e,n]=_.useState(!1);return u.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[u.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[u.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),u.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:e?"Hide Error":"Show Error"})]}),u.jsx("div",{style:{height:".25rem"}}),e?u.jsx("div",{children:u.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?u.jsx("code",{children:t.message}):null})}):null]})}var Uw={exports:{}},Ww={},qw={exports:{}},Gw={};/**
43 * @license React
44 * use-sync-external-store-shim.production.js
45 *
46 * Copyright (c) Meta Platforms, Inc. and affiliates.
47 *
48 * This source code is licensed under the MIT license found in the
49 * LICENSE file in the root directory of this source tree.
50 */var _R;function ace(){if(_R)return Gw;_R=1;var t=hm();function e(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,s=t.useEffect,i=t.useLayoutEffect,o=t.useDebugValue;function a(m,v){var w=v(),E=r({inst:{value:w,getSnapshot:v}}),C=E[0].inst,b=E[1];return i(function(){C.value=w,C.getSnapshot=v,c(C)&&b({inst:C})},[m,w,v]),s(function(){return c(C)&&b({inst:C}),m(function(){c(C)&&b({inst:C})})},[m]),o(w),w}function c(m){var v=m.getSnapshot;m=m.value;try{var w=v();return!n(m,w)}catch{return!0}}function d(m,v){return v()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:a;return Gw.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:p,Gw}var ER;
50function lce(){return ER||(ER=1,qw.exports=ace()),qw.exports}/**
51 * @license React
52 * use-sync-external-store-shim/with-selector.production.js
53 *
54 * Copyright (c) Meta Platforms, Inc. and affiliates.
55 *
56 * This source code is licensed under the MIT license found in the
57 * LICENSE file in the root directory of this source tree.
58 */var bR;function cce(){if(bR)return Ww;bR=1;var t=hm(),e=lce();function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:n,s=e.useSyncExternalStore,i=t.useRef,o=t.useEffect,a=t.useMemo,c=t.useDebugValue;return Ww.useSyncExternalStoreWithSelector=function(d,p,m,v,w){var E=i(null);if(E.current===null){var C={hasValue:!1,value:null};E.current=C}else C=E.current;E=a(function(){function S(F){if(!P){if(P=!0,R=F,F=v(F),w!==void 0&&C.hasValue){var D=C.value;if(w(D,F))return z=D}return z=F}if(D=z,r(R,F))return D;var I=v(F);return w!==void 0&&w(D,I)?(R=F,D):(R=F,z=I)}var P=!1,R,z,O=m===void 0?null:m;return[function(){return S(p())},O===null?void 0:function(){return S(O())}]},[p,m,v,w]);var b=s(d,E[0],E[1]);return o(function(){C.hasValue=!0,C.value=b},[b]),c(b),b},Ww}var SR;function uce(){return SR||(SR=1,Uw.exports=cce()),Uw.exports}var dce=uce();function fce(t,e=n=>n){return dce.useSyncExternalStoreWithSelector(t.subscribe,()=>t.state,()=>t.state,e,hce)}function hce(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[r,s]of t)if(!e.has(r)||!Object.is(s,e.get(r)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(e,n[r])||!Object.is(t[n[r]],e[n[r]]))return!1;return!0}const Kw=_.createContext(null);function aL(){return typeof document>"u"?Kw:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Kw,Kw)}function vi(t){const e=_.useContext(aL());return t?.warn,e}function $r(t){const e=vi({warn:t?.router===void 0}),n=t?.router||e,r=_.useRef(void 0);return fce(n.__store,s=>{if(t?.select){if(t.structuralSharing??n.options.defaultStructuralSharing){const i=ki(r.current,t.select(s));return r.current=i,i}return t.select(s)}return s})}const y5=_.createContext(void 0),pce=_.createContext(void 0);function Pa(t){const e=_.useContext(t.from?pce:y5);return $r({select:r=>{const s=r.matches.find(i=>t.from?t.from===i.routeId:i.id===e);if(yl(!((t.shouldThrow??!0)&&!s),`Could not find ${t.from?`an active match from "${t.from}"`:"a nearest match!"}`),s!==void 0)return t.select?t.select(s):s},structuralSharing:t.structuralSharing})}function eb(t){return Pa({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.loaderData):e.loaderData})}function tb(t){const{select:e,...n}=t;return Pa({...n,select:r=>e?e(r.loaderDeps):r.loaderDeps})}function x5(t){return Pa({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.params):e.params})}function Cf(t){return Pa({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.search):e.search})}function Jr(t){const{navigate:e}=vi();return _.useCallback(n=>e({from:t?.from,...n}),[t?.from,e])}function Kl(t){const e=vi(),n=_.useRef(null);return _.useEffect(()=>{n.current!==t&&(e.navigate({...t}),n.current=t)},[e,t]),null}let mce=class extends oL{constructor(e){super(e),this.useMatch=n=>Pa({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Pa({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Cf({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>x5({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>tb({...n,from:this.id}),this.useLoaderData=n=>eb({...n,from:this.id}),this.useNavigate=()=>Jr({from:this.fullPath}),this.$$typeof=Symbol.for("react.memo")}};function gce(t){return new mce(t)}function vce(){return t=>xce(t)}class yce extends ice{constructor(e){super(e),this.useMatch=n=>Pa({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Pa({...n,from:this.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Cf({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>x5({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>tb({...n,from:this.id}),this.useLoaderData=n=>eb({...n,from:this.id}),this.useNavigate=()=>Jr({from:this.fullPath}),this.$$typeof=Symbol.for("react.memo")}}function xce(t){return new yce(t)}function Et(t){return new wce(t,{silent:!0}).createRoute}class wce{constructor(e,n){this.path=e,this.createRoute=r=>{this.silent;const s=gce(r);return s.isRoot=!1,s},this.silent=n?.silent}}class _ce{constructor(e){this.useMatch=n=>Pa({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Pa({from:this.options.id,select:r=>n?.select?n.select(r.context):r.context}),this.useSearch=n=>Cf({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>x5({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>tb({...n,from:this.options.id}),this.useLoaderData=n=>eb({...n,from:this.options.id}),this.useNavigate=()=>{const n=vi();return Jr({from:n.routesById[this.options.id].fullPath})},this.options=e,this.$$typeof=Symbol.for("react.memo")}}function oQe(t){return e=>new _ce({id:t,...e})}function Ece(t){const e=$r({select:n=>`not-found-${n.location.pathname}-${n.status}`});return u.jsx(J9,{getResetKey:()=>e,onCatch:(n,r)=>{var s;if(Fi(n))(s=t.onCatch)==null||s.call(t,n,r);else throw n},errorComponent:({error:n})=>{var r;if(Fi(n))return(r=t.fallback)==null?void 0:r.call(t,n);throw n},children:t.children})}function bce(){return u.jsx("p",{children:"Not Found"})}function B3(t){return u.jsx(u.Fragment,{children:t.children})}function lL(t,e,n){return e.options.notFoundComponent?u.jsx(e.options.notFoundComponent,{data:n}):t.options.defaultNotFoundComponent?u.jsx(t.options.defaultNotFoundComponent,{data:n}):u.jsx(bce,{})}
58var Yw,CR;function Sce(){if(CR)return Yw;CR=1;const t={},e=t.hasOwnProperty,n=(I,T)=>{for(const k in I)e.call(I,k)&&T(k,I[k])},r=(I,T)=>(T&&n(T,(k,j)=>{I[k]=j}),I),s=(I,T)=>{const k=I.length;let j=-1;for(;++j<k;)T(I[j])},i=I=>"\\u"+("0000"+I).slice(-4),o=(I,T)=>{let k=I.toString(16);return T?k:k.toUpperCase()},a=t.toString,c=Array.isArray,d=I=>typeof Buffer=="function"&&Buffer.isBuffer(I),p=I=>a.call(I)=="[object Object]",m=I=>typeof I=="string"||a.call(I)=="[object String]",v=I=>typeof I=="number"||a.call(I)=="[object Number]",w=I=>typeof I=="bigint",E=I=>typeof I=="function",C=I=>a.call(I)=="[object Map]",b=I=>a.call(I)=="[object Set]",S={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t"},P=/[\\\b\f\n\r\t]/,R=/[0-9]/,z=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,O=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,F=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,D=(I,T)=>{const k=()=>{U=q,++T.indentLevel,q=T.indent.repeat(T.indentLevel)},j={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"	",indentLevel:0,__inline1__:!1,__inline2__:!1},L=T&&T.json;L&&(j.quotes="double",j.wrap=!0),T=r(j,T),T.quotes!="single"&&T.quotes!="double"&&T.quotes!="backtick"&&(T.quotes="single");const V=T.quotes=="double"?'"':T.quotes=="backtick"?"`":"'",Y=T.compact,G=T.lowercaseHex;let q=T.indent.repeat(T.indentLevel),U="";const B=T.__inline1__,ne=T.__inline2__,oe=Y?"":`
59`;let Q,ie=!0;const ue=T.numbers=="binary",ge=T.numbers=="octal",Ae=T.numbers=="decimal",Pe=T.numbers=="hexadecimal";if(L&&I&&E(I.toJSON)&&(I=I.toJSON()),!m(I)){if(C(I))return I.size==0?"new Map()":(Y||(T.__inline1__=!0,T.__inline2__=!1),"new Map("+D(Array.from(I),T)+")");if(b(I))return I.size==0?"new Set()":"new Set("+D(Array.from(I),T)+")";if(d(I))return I.length==0?"Buffer.from([])":"Buffer.from("+D(Array.from(I),T)+")";if(c(I))return Q=[],T.wrap=!0,B&&(T.__inline1__=!1,T.__inline2__=!0),ne||k(),s(I,xe=>{ie=!1,ne&&(T.__inline2__=!1),Q.push((Y||ne?"":q)+D(xe,T))}),ie?"[]":ne?"["+Q.join(", ")+"]":"["+oe+Q.join(","+oe)+oe+(Y?"":U)+"]";if(v(I)||w(I)){if(L)return JSON.stringify(Number(I));let xe;if(Ae)xe=String(I);else if(Pe){let Ne=I.toString(16);G||(Ne=Ne.toUpperCase()),xe="0x"+Ne}else ue?xe="0b"+I.toString(2):ge&&(xe="0o"+I.toString(8));return w(I)?xe+"n":xe}else return w(I)?L?JSON.stringify(Number(I)):I+"n":p(I)?(Q=[],T.wrap=!0,k(),n(I,(xe,Ne)=>{ie=!1,Q.push((Y?"":q)+D(xe,T)+":"+(Y?"":" ")+D(Ne,T))}),ie?"{}":"{"+oe+Q.join(","+oe)+oe+(Y?"":U)+"}"):L?JSON.stringify(I)||"null":String(I)}const he=T.escapeEverything?O:F;return Q=I.replace(he,(xe,Ne,ze,Ze,ut,Pt)=>{if(Ne){if(T.minimal)return Ne;const Tt=Ne.charCodeAt(0),on=Ne.charCodeAt(1);if(T.es6){const Xt=(Tt-55296)*1024+on-56320+65536;return"\\u{"+o(Xt,G)+"}"}return i(o(Tt,G))+i(o(on,G))}if(ze)return i(o(ze.charCodeAt(0),G));if(xe=="\0"&&!L&&!R.test(Pt.charAt(ut+1)))return"\\0";if(Ze)return Ze==V||T.escapeEverything?"\\"+Ze:Ze;if(P.test(xe))return S[xe];if(T.minimal&&!z.test(xe))return xe;const Rt=o(xe.charCodeAt(0),G);return L||Rt.length>2?i(Rt):"\\x"+("00"+Rt).slice(-2)}),V=="`"&&(Q=Q.replace(/\$\{/g,"\\${")),T.isScriptContext&&(Q=Q.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,L?"\\u003C!--":"\\x3C!--")),T.wrap&&(Q=V+Q+V),Q};return D.version="3.0.2",Yw=D,Yw}Sce();function Cce({children:t,log:e}){return typeof document<"u"?null:u.jsx("script",{className:"tsr-once",dangerouslySetInnerHTML:{__html:[t,"",'if (typeof __TSR_SSR__ !== "undefined") __TSR_SSR__.cleanScripts()'].filter(
59Boolean).join(`
60`)}})}function Tce(){const t=vi(),n=(t.options.getScrollRestorationKey||m_)(t.latestLocation),r=n!==m_(t.latestLocation)?n:null;return!t.isScrollRestoring||!t.isServer?null:u.jsx(Cce,{children:`(${sL.toString()})(${JSON.stringify(Vy)},${JSON.stringify(r)}, undefined, true)`,log:!1})}const cL=_.memo(function({matchId:e}){var n,r;const s=vi(),i=$r({select:S=>{var P;return(P=S.matches.find(R=>R.id===e))==null?void 0:P.routeId}});yl(i);const o=s.routesById[i],a=o.options.pendingComponent??s.options.defaultPendingComponent,c=a?u.jsx(a,{}):null,d=o.options.errorComponent??s.options.defaultErrorComponent,p=o.options.onCatch??s.options.defaultOnCatch,m=o.isRoot?o.options.notFoundComponent??((n=s.options.notFoundRoute)==null?void 0:n.options.component):o.options.notFoundComponent,v=(!o.isRoot||o.options.wrapInSuspense)&&(o.options.wrapInSuspense??a??((r=o.options.errorComponent)==null?void 0:r.preload))?_.Suspense:B3,w=d?J9:B3,E=m?Ece:B3,C=$r({select:S=>S.loadedAt}),b=$r({select:S=>{var P;const R=S.matches.findIndex(z=>z.id===e);return(P=S.matches[R-1])==null?void 0:P.routeId}});return u.jsxs(u.Fragment,{children:[u.jsx(y5.Provider,{value:e,children:u.jsx(v,{fallback:c,children:u.jsx(w,{getResetKey:()=>C,errorComponent:d||v5,onCatch:(S,P)=>{if(Fi(S))throw S;p?.(S,P)},children:u.jsx(E,{fallback:S=>
60{if(!m||S.routeId&&S.routeId!==i||!S.routeId&&!o.isRoot)throw S;return _.createElement(m,S)},children:u.jsx(Ice,{matchId:e})})})})}),b===bo&&s.options.scrollRestoration?u.jsxs(u.Fragment,{children:[u.jsx(Ace,{}),u.jsx(Tce,{})]}):null]})});function Ace(){const t=vi(),e=_.useRef(void 0);return u.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(e.current===void 0||e.current.href!==t.latestLocation.href)&&(t.emit({type:"onRendered",...Wd(t.state)}),e.current=t.latestLocation)}},t.latestLocation.state.key)}const Ice=_.memo(function({matchId:e}){var n,r,s;const i=vi(),{match:o,key:a,routeId:c}=$r({select:v=>{const w=v.matches.findIndex(R=>R.id===e),E=v.matches[w],C=E.routeId,b=i.routesById[C].options.remountDeps??i.options.defaultRemountDeps,S=b?.({routeId:C,loaderDeps:E.loaderDeps,params:E._strictParams,search:E._strictSearch});return{key:S?JSON.stringify(S):void 0,routeId:C,match:p_(E,["id","status","error"])}},structuralSharing:!0}),d=i.routesById[c],p=_.useMemo(()=>{const v=d.options.component??i.options.defaultComponent;return v?u.jsx(v,{},a):u.jsx(w5,{})},[a,d.options.component,i.options.defaultComponent]),m=(d.options.errorComponent??i.options.defaultErrorComponent)||v5;if(o.status==="notFound")return yl(Fi(o.error)),lL(i,d,o.error);if(o.status==="redirected")throw yl(yd(o.error)),(n=i.getMatch(o.id))==null?void 0:n.loadPromise;if(o.status==="error"){if(i.isServer)return u.jsx(m,{error:o.error,reset:void 0,info:{componentStack:""}});throw o.error}if(o.status==="pending"){const v=d.options.pendingMinMs??i.options.defaultPendingMinMs;if(v&&!((r=i.getMatch(o.id))!=null&&r.minPendingPromise)&&!i.isServer){const w=jh();Promise.resolve().then(()=>{i.updateMatch(o.id,E=>({...E,minPendingPromise:w}))}),setTimeout(()=>{w.resolve(),i.updateMatch(o.id,E=>({...E,minPendingPromise:void 0}))},v)}throw(s=i.getMatch(o.id))==null?void 0:s.loadPromise}return p}),w5=_.memo(function(){const e=vi(),n=_.useContext(y5),r=$r({select:d=>{var p;return(p=d.matches.find(m=>m.id===n))==null?void 0:p.routeId}}),s=e.routesById[r],i=$r({select:d=>{const m=d.matches.find(v=>v.id===n);return yl(m),m.globalNotFound}}),o=$r({select:d=>{var p;const m=d.matches,v=m.findIndex(w=>w.id===n);return(p=m[v+1])==null?void 0:p.id}});if(i)return lL(e,s,void 0);if(!o)return null;const a=u.jsx(cL,{matchId:o}),c=e.options.defaultPendingComponent?u.jsx(e.options.defaultPendingComponent,{}):null;return n===bo?u.jsx(_.Suspense,{fallback:c,children:a}):a});var Qw={exports:{}},Fs={},Xw={exports:{}},Zw={};/**
61 * @license React
62 * scheduler.production.min.js
63 *
64 * Copyright (c) Facebook, Inc. and its affiliates.
65 *
66 * This source code is licensed under the MIT license found in the
67 * LICENSE file in the root directory of this source tree.
68 */var TR;function Pce(){return TR||(TR=1,function(t){function e(B,ne){var oe=B.length;B.push(ne);e:for(;0<oe;){var Q=oe-1>>>1,ie=B[Q];if(0<s(ie,ne))B[Q]=ne,B[oe]=ie,oe=Q;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var ne=B[0],oe=B.pop();if(oe!==ne){B[0]=oe;e:for(var Q=0,ie=B.length,ue=ie>>>1;Q<ue;){var ge=2*(Q+1)-1,Ae=B[ge],Pe=ge+1,he=B[Pe];if(0>s(Ae,oe))Pe<ie&&0>s(he,Ae)?(B[Q]=he,B[Pe]=oe,Q=Pe):(B[Q]=Ae,B[ge]=oe,Q=ge);else if(Pe<ie&&0>s(he,oe))B[Q]=he,B[Pe]=oe,Q=Pe;else break e}}return ne}function s(B,ne){var oe=B.sortIndex-ne.sortIndex;return oe!==0?oe:B.id-ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var c=[],d=[],p=1,m=null,v=3,w=!1,E=!1,C=!1,b=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(B){for(var ne=n(d);ne!==null;){if(ne.callback===null)r(d);else if(ne.startTime<=B)r(d),ne.sortIndex=ne.expirationTime,e(c,ne);else break;ne=n(d)}}function z(B){if(C=!1,R(B),!E)if(n(c)!==null)E=!0,q(O);else{var ne=n(d);ne!==null&&U(z,ne.startTime-B)}}function O(B,ne){E=!1,C&&(C=!1,S(I),I=-1),w=!0;var oe=v;try{for(R(ne),m=n(c);m!==null&&(!(m.expirationTime>ne)||B&&!j());){var Q=m.callback;if(typeof Q=="function"){m.callback=null,v=m.priorityLevel;var ie=Q(m.expirationTime<=ne);ne=t.unstable_now(),typeof ie=="function"?m.callback=ie:m===n(c)&&r(c),R(ne)}else r(c);m=n(c)}if(m!==null)var ue=!0;else{var ge=n(d);ge!==null&&U(z,ge.startTime-ne),ue=!1}return ue}finally{m=null,v=oe,w=!1}}var F=!1,D=null,I=-1,T=5,k=-1;function j(){return!(t.unstable_now()-k<T)}function L(){if(D!==null){var B=t.unstable_now();k=B;var ne=!0;try{ne=D(!0,B)}finally{ne?V():(F=!1,D=null)}}else F=!1}var V;if(typeof P=="function")V=function(){P(L)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,G=Y.port2;Y.port1.onmessage=L,V=function(){G.postMessage(null)}}else V=function(){b(L,0)};function q(B){D=B,F||(F=!0,V())}function U(B,ne){I=b(function(){B(t.unstable_now())},ne)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.
vendor: 4,245 bytes, lines 68-76
68callback=null},t.unstable_continueExecution=function(){E||w||(E=!0,q(O))},t.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<B?Math.floor(1e3/B):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(B){switch(v){case 1:case 2:case 3:var ne=3;break;default:ne=v}var oe=v;v=ne;try{return B()}finally{v=oe}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(B,ne){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var oe=v;v=B;try{return ne()}finally{v=oe}},t.unstable_scheduleCallback=function(B,ne,oe){var Q=t.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?Q+oe:Q):oe=Q,B){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=oe+ie,B={id:p++,callback:ne,priorityLevel:B,startTime:oe,expirationTime:ie,sortIndex:-1},oe>Q?(B.sortIndex=oe,e(d,B),n(c)===null&&B===n(d)&&(C?(S(I),I=-1):C=!0,U(z,oe-Q))):(B.sortIndex=ie,e(c,B),E||w||(E=!0,q(O))),B},t.unstable_shouldYield=j,t.unstable_wrapCallback=function(B){var ne=v;return function(){var oe=v;v=ne;try{return B.apply(this,arguments)}finally{v=oe}}}}(Zw)),Zw}var AR;function Rce(){return AR||(AR=1,Xw.exports=Pce()),Xw.exports}/**
69 * @license React
70 * react-dom.production.min.js
71 *
72 * Copyright (c) Facebook, Inc. and its affiliates.
73 *
74 * This source code is licensed under the MIT license found in the
75 * LICENSE file in the root directory of this source tree.
76 */var IR;function Nce(){if(IR)return Fs;IR=1;var t=hm(),e=Rce();function n(l){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+l,g=1;g<arguments.length;g++)f+="&args[]="+encodeURIComponent(arguments[g]);return"Minified React error #"+l+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,s={};function i(l,f){o(l,f),o(l+"Capture",f)}function o(l,f){for(s[l]=f,l=0;l<f.length;l++)r.add(f[l])}var a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},m={};function v(l){return c.call(m,l)?!0:c.call(p,l)?!1:d.test(l)?m[l]=!0:(p[l]=!0,!1)}function w(l,f,g,x){if(g!==null&&g.type===0)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":return x?!1:g!==null?!g.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function E(l,f,g,x){if(f===null||typeof f>"u"||w(l,f,g,x))return!0;if(x)return!1;if(g!==null)switch(g.type){case 3:return!f;case 4:return f===!1;case 5:return isNaN(f);case 6:return isNaN(f)||1>f}return!1}function C(l,f,g,x,A,M,H){this.acceptsBooleans=f===2||f===3||f===4,this.attributeName=x,this.attributeNamespace=A,this.mustUseProperty=g,this.propertyName=l,this.type=f,this.sanitizeURL=M,this.removeEmptyString=H}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){b[l]=new C(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var f=l[0];b[f]=new C(f,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){b[l]=new C(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){b[l]=new C(l,2,!1,l,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInl
76ine readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(l){b[l]=new C(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){b[l]=new C(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){b[l]=new C(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){b[l]=new C(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){b[l]=new C(l,5,!1,l.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function P(l){return l[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(l){var f=l.replace(S,P);b[f]=new C(f,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var f=l.replace(S,P);b[f]=new C(f,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var f=l.replace(S,P);b[f]=new C(f,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){b[l]=new C(l,1,!1,l.toLowerCase(),null,!1,!1)}),b.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){b[l]=new C(l,1,!1,l.toLowerCase(),null,!0,!0)});function R(l,f,g,x){var A=b.hasOwnProperty(f)?b[f]:null;(A!==null?A.type!==0:x||!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(E(f,g,A,x)&&(g=null),x||A===null?v(f)&&(g===null?l.removeAttribute(f):l.setAttribute(f,""+g)):A.mustUseProperty?l[A.propertyName]=g===null?A.type===3?!1:"":g:(f=A.attributeName,x=A.attributeNamespace,g===null?l.removeAttribute(f):(A=A.type,g=A===3||A===4&&g===!0?"":""+g,x?l.setAttributeNS(x,f,g):l.setAttribute(f,g))))}var z=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=Symbol.for("react.element"),F=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),j=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),B=Symbol.iterator;function ne(l){return l===null||typeof l!="object"?null:(l=B&&l[B]||l["@@iterator"],typeof l=="function"?l:null)}var oe=Object.assign,Q;function ie(l){if(Q===void 0)try{throw Error()}catch(g){var f=g.stack.trim().match(/\n( *(at )?)/);Q=f&&f[1]||""}return`
77`+Q+l}var ue=!1;function ge(l,f){if(!l||ue)return"";ue=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(f)if(f=function(){throw Error()},Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(fe){var x=fe}Reflect.construct(l,[],f)}else{try{f.call()}catch(fe){x=fe}l.call(f.prototype)}else{try{throw Error()}catch(fe){x=fe}l()}}catch(fe){if(fe&&x&&typeof fe.stack=="string"){for(var A=fe.stack.split(`
78`),M=x.stack.split(`
79`),H=A.length-1,J=M.length-1;1<=H&&0<=J&&A[H]!==M[J];)J--;for(;1<=H&&0<=J;H--,J--)if(A[H]!==M[J]){if(H!==1||J!==1)do if(H--,J--,0>J||A[H]!==M[J]){var te=`
80`+A[H].replace(" at new "," at ");return l.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",l.displayName)),te}while(1<=H&&0<=J);break}}}finally{ue=!1,Error.prepareStackTrace=g}return(l=l?l.displayName||l.name:"")?ie(l):""}function Ae(l){switch(l.tag){case 5:return ie(l.type);case 16:return ie("Lazy");case 13:return ie("Suspense");case 19:return ie("SuspenseList");case 0:case 2:case 15:return l=ge(l.type,!1),l;case 11:return l=ge(l.type.render,!1),l;case 1:return l=ge(l.type,!0),l;default:return""}}function Pe(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case D:return"Fragment";case F:return"Portal";case T:return"Profiler";case I:return"StrictMode";case V:return"Suspense";case Y:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case j:return(l.displayName||"Context")+".Consumer";case k:return(l._context.displayName||"Context")+".Provider";case L:var f=l.render;return l=l.displayName,l||(l=f.displayName||f.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case G:return f=l.displayName||null,f!==null?f:Pe(l.type)||"Memo";case q:f=l._payload,l=l._init;try{return Pe(l(f))}catch{}}return null}function he(l){var f=l.type;switch(l.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=f.render,l=l.displayName||l.name||"",f.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pe(f);case 8:return f===I?"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 f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function xe(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Ne(l){var f=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function ze(l){var f=Ne(l)?"checked":"value",g=Object.getOwnPropertyDescriptor(l.constructor.prototype,f),x=""+l[f];if(!l.hasOwnProperty(f)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var A=g.get,M=g.set;return Object.defineProperty(l,f,{configurable:!0,get:function(){return A.call(this)},set:function(H){x=""+H,M.call(this,H)}}),Object.defineProperty(l,f,{enumerable:g.enumerable}),{getValue:function(){return x},setValue:function(H){x=""+H},stopTracking:function(){l._valueTracker=null,delete l[f]}}}}function Ze(l){l._valueTracker||(l._valueTracker=ze(l))}function ut(l){if(!l)return!1;var f=l._valueTracker;if(!f)return!0;var g=f.getValue(),x="";return l&&(x=Ne(l)?l.checked?"true":"false":l.value),l=x,l!==g?(f.setValue(l),!0):!1}function Pt(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function Rt(l,f){var g=f.checked;return oe({},f,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:g??l._wrapperState.initialChecked})}function Tt(l,f){var g=f.defaultValue==null?"":f.defaultValue,x=f.checked!=null?f.checked:f.defaultChecked;g=xe(f.value!=null?f.value:g),l._wrapperState={initialChecked:x,initialValue:g,controlled:f.type==="checkbox"||f.type==="radio"?f.checked!=null:f.value!=null}}function on(l,f){f=f.checked,f!=null&&R(l,"checked",f,!1)}function Xt(l,f){on(l,f);var g=xe(f.value),x=f.type;if(g!=null)x==="number"?(g===0&&l.value===""||l.value!=g)&&(l.value=""+g):l.value!==""+g&&(l.value=""+g);else if(x==="submit"||x==="reset"){l.removeAttribute("value");return}f.hasOwnProperty("value")?Lr(l,f.type,g):f.hasOwnProperty("defaultValue")&&Lr(l,f.type,xe(f.defaultValue)),f.checked==null&&f.defaultChecked!=null&&(l.defaultChecked=!!f.defaultChecked)}function Pr(l,f,g){if(f.hasOwnProperty("value")||f.hasOwnProperty("defaultValue")){var x=f.type;if(!(x!=="submit"&&x!=="reset"||f.value!==void 0&&f.value!==null))return;f=""+l._wrapperState.initialValue,g||f===l.value||(l.value=f),l.defaultValue=f}g=l.name,g!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,g!==""&&(l.name=g)}function Lr(l,f,g){(f!=="number"||Pt(l.ownerDocument)!==l)&&(g==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+g&&(l.defaultValue=""+g))}var xt=Array.isArray;function nt(l,f,g,x){if(l=l.options,f){f={};for(var A=0;A<g.length;A++)f["$"+g[A]]=!0;for(g=0;g<l.length;g++)A=f.hasOwnProperty("$"+l[g].value),l[g].selected!==A&&(l[g].selected=A),A&&x&&(l[g].defaultSelected=!0)}else{for(g=""+xe(g),f=null,A=0;A<l.length;A++){if(l[A].value===g){l[A].selected=!0,x&&(l[A].defaultSelected=!0);return}f!==null||l[A].disabled||(f=l[A])}f!==null&&(f.selected=!0)}}function K(l,f){if(f.dangerouslySetInnerHTML!=null)throw Error(n(91));return oe({},f,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function se(l,f){var g=f.value;if(g==null){if(g=f.children,f=f.defaultValue,g!=null){if(f!=null)throw Error(n(92));if(xt(g)){if(1<g.length)throw Error(n(93));g=g[0]}f=g}f==null&&(f=""),g=f}l._wrapperState={initialValue:xe(g)}}function ce(l,f){var g=xe(f.value),x=xe(f.defaultValue);g!=null&&(g=""+g,g!==l.value&&(l.value=g),f.defaultValue==null&&l.defaultValue!==g&&(l.defaultValue=g)),x!=null&&(l.defaultValue=""+x)}function Me(l){var f=l.textContent;f===l._wrapperState.initialValue&&f!==""&&f!==null&&(l.value=f)}function be(l){switch(l){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 we(l,f){return l==null||l==="http://www.w3.org/1999/xhtml"?be(f):l==="http://www.w3.org/2000/svg"&&f==="foreignObject"?"http://www.w3.org/1999/xhtml":l}var je,zt=function(l){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(f,g,x,A){MSApp.execUnsafeLocalFunction(function(){return l(f,g,x,A)})}:l}(function(l,f){if(l.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in l)l.innerHTML=f;else{for(je=je||document.createElement("div"),je.innerHTML="<svg>"+f.valueOf().toString()+"</svg>",f=je.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;
vendor: 29,186 bytes, line 80
80f.firstChild;)l.appendChild(f.firstChild)}});function hn(l,f){if(f){var g=l.firstChild;if(g&&g===l.lastChild&&g.nodeType===3){g.nodeValue=f;return}}l.textContent=f}var kn={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},za=["Webkit","ms","Moz","O"];Object.keys(kn).forEach(function(l){za.forEach(function(f){f=f+l.charAt(0).toUpperCase()+l.substring(1),kn[f]=kn[l]})});function Va(l,f,g){return f==null||typeof f=="boolean"||f===""?"":g||typeof f!="number"||f===0||kn.hasOwnProperty(l)&&kn[l]?(""+f).trim():f+"px"}function Ba(l,f){l=l.style;for(var g in f)if(f.hasOwnProperty(g)){var x=g.indexOf("--")===0,A=Va(g,f[g],x);g==="float"&&(g="cssFloat"),x?l.setProperty(g,A):l[g]=A}}var Bu=oe({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 nc(l,f){if(f){if(Bu[l]&&(f.children!=null||f.dangerouslySetInnerHTML!=null))throw Error(n(137,l));if(f.dangerouslySetInnerHTML!=null){if(f.children!=null)throw Error(n(60));if(typeof f.dangerouslySetInnerHTML!="object"||!("__html"in f.dangerouslySetInnerHTML))throw Error(n(61))}if(f.style!=null&&typeof f.style!="object")throw Error(n(62))}}function Hu(l,f){if(l.indexOf("-")===-1)return typeof f.is=="string";switch(l){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 Go=null;function zf(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Vf=null,Ei=null,Ko=null;function Bf(l){if(l=g1(l)){if(typeof Vf!="function")throw Error(n(280));var f=l.stateNode;f&&(f=Qg(f),Vf(l.stateNode,l.type,f))}}function Yo(l){Ei?Ko?Ko.push(l):Ko=[l]:Ei=l}function Gm(){if(Ei){var l=Ei,f=Ko;if(Ko=Ei=null,Bf(l),f)for(l=0;l<f.length;l++)Bf(f[l])}}function Uu(l,f){return l(f)}function Km(){}var Ha=!1;function Ym(l,f,g){if(Ha)return l(f,g);Ha=!0;try{return Uu(l,f,g)}finally{Ha=!1,(Ei!==null||Ko!==null)&&(Km(),Gm())}}function tr(l,f){var g=l.stateNode;if(g===null)return null;var x=Qg(g);if(x===null)return null;g=x[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(l=l.type,x=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!x;break e;default:l=!1}if(l)return null;if(g&&typeof g!="function")throw Error(n(231,f,typeof g));return g}var Hf=!1;if(a)try{var Ji={};Object.defineProperty(Ji,"passive",{get:function(){Hf=!0}}),window.addEventListener("test",Ji,Ji),window.removeEventListener("test",Ji,Ji)}catch{Hf=!1}function Wu(l,f,g,x,A,M,H,J,te){var fe=Array.prototype.slice.call(arguments,3);try{f.apply(g,fe)}catch(Ee){this.onError(Ee)}}var qu=!1,Uf=null,eo=!1,Qm=null,K6={onError:function(l){qu=!0,Uf=l}};function Wf(l,f,g,x,A,M,H,J,te){qu=!1,Uf=null,Wu.apply(K6,arguments)}function _g(l,f,g,x,A,M,H,J,te){if(Wf.apply(this,arguments),qu){if(qu){var fe=Uf;qu=!1,Uf=null}else throw Error(n(198));eo||(eo=!0,Qm=fe)}}function to(l){var f=l,g=l;if(l.alternate)for(;f.return;)f=f.return;else{l=f;do f=l,(f.flags&4098)!==0&&(g=f.return),l=f.return;while(l)}return f.tag===3?g:null}function Gu(l){if(l.tag===13){var f=l.memoizedState;if(f===null&&(l=l.alternate,l!==null&&(f=l.memoizedState)),f!==null)return f.dehydrated}return null}function no(l){if(to(l)!==l)throw Error(n(188))}function Eg(l){var f=l.alternate;if(!f){if(f=to(l),f===null)throw Error(n(188));return f!==l?null:l}for(var g=l,x=f;;){var A=g.return;if(A===null)break;var M=A.alternate;if(M===null){if(x=A.return,x!==null){g=x;continue}break}if(A.child===M.child){for(M=A.child;M;){if(M===g)return no(A),l;if(M===x)return no(A),f;M=M.sibling}throw Error(n(188))}if(g.return!==x.return)g=A,x=M;else{for(var H=!1,J=A.child;J;){if(J===g){H=!0,g=A,x=M;break}if(J===x){H=!0,x=A,g=M;break}J=J.sibling}if(!H){for(J=M.child;J;){if(J===g){H=!0,g=M,x=A;break}if(J===x){H=!0,x=M,g=A;break}J=J.sibling}if(!H)throw Error(n(189))}}if(g.alternate!==x)throw Error(n(190))}if(g.tag!==3)throw Error(n(188));return g.stateNode.current===g?l:f}function Xm(l){return l=Eg(l),l!==null?qf(l):null}function qf(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var f=qf(l);if(f!==null)return f;l=l.sibling}return null}var Gf=e.unstable_scheduleCallback,Zm=e.unstable_cancelCallback,bg=e.unstable_shouldYield,Y6=e.unstable_requestPaint,bn=e.unstable_now,Sg=e.unstable_getCurrentPriorityLevel,Ku=e.unstable_ImmediatePriority,rc=e.unstable_UserBlockingPriority,bi=e.unstable_NormalPriority,Jm=e.unstable_LowPriority,Cg=e.unstable_IdlePriority,Yu=null,ei=null;function Tg(l){if(ei&&typeof ei.onCommitFiberRoot=="function")try{ei.onCommitFiberRoot(Yu,l,void 0,(l.current.flags&128)===128)}catch{}}var hs=Math.clz32?Math.clz32:Ig,e1=Math.log,Ag=Math.LN2;function Ig(l){return l>>>=0,l===0?32:31-(e1(l)/Ag|0)|0}var Kf=64,Yf=4194304;function sc(l){switch(l&-l){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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function Qu(l,f){var g=l.pendingLanes;if(g===0)return 0;var x=0,A=l.suspendedLanes,M=l.pingedLanes,H=g&268435455;if(H!==0){var J=H&~A;J!==0?x=sc(J):(M&=H,M!==0&&(x=sc(M)))}else H=g&~A,H!==0?x=sc(H):M!==0&&(x=sc(M));if(x===0)return 0;if(f!==0&&f!==x&&(f&A)===0&&(A=x&-x,M=f&-f,A>=M||A===16&&(M&4194240)!==0))return f;if((x&4)!==0&&(x|=g&16),f=l.entangledLanes,f!==0)for(l=l.entanglements,f&=x;0<f;)g=31-hs(f),A=1<<g,x|=l[g],f&=~A;return x}function Q6(l,f){switch(l){case 1:case 2:case 4:return f+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 f+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 Ua(l,f){for(var g=l.suspendedLanes,x=l.pingedLanes,A=l.expirationTimes,M=l.pendingLanes;0<M;){var H=31-hs(M),J=1<<H,te=A[H];te===-1?((J&g)===0||(J&x)!==0)&&(A[H]=Q6(J,f)):te<=f&&(l.expiredLanes|=J),M&=~J}}function ti(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function Xu(){var l=Kf;return Kf<<=1,(Kf&4194240)===0&&(Kf=64),l}function ic(l){for(var f=[],g=0;31>g;g++)f.push(l);return f}function oc(l,f,g){l.pendingLanes|=f,f!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,f=31-hs(f),l[f]=g}function _n(l,f){var g=l.pendingLanes&~f;l.pendingLanes=f,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=f,l.mutableReadLanes&=f,l.entangledLanes&=f,f=l.entanglements;var x=l.eventTimes;for(l=l.expirationTimes;0<g;){var A=31-hs(g),M=1<<A;f[A]=0,x[A]=-1,l[A]=-1,g&=~M}}function ac(l,f){var g=l.entangledLanes|=f;for(l=l.entanglements;g;){var x=31-hs(g),A=1<<x;A&f|l[x]&f&&(l[x]|=f),g&=~A}}var Kt=0;function lc(l){return l&=-l,1<l?4<l?(l&268435455)!==0?16:536870912:4:1}var Pg,Qf,Rg,Ng,Mg,t1=!1,Qo=[],zr=null,ro=null,so=null,cc=new Map,Si=new Map,Xo=[],X6="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 kg(l,f){switch(l){case"focusin":case"focusout":zr=null;break;case"dragenter":case"dragleave":ro=null;break;case"mouseover":case"mouseout":so=null;break;case"pointerover":case"pointerout":cc.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":Si.delete(f.pointerId)}}function Rs(l,f,g,x,A,M){return l===null||l.nativeEvent!==M?(l={blockedOn:f,domEventName:g,eventSystemFlags:x,nativeEvent:M,targetContainers:[A]},f!==null&&(f=g1(f),f!==null&&Qf(f)),l):(l.eventSystemFlags|=x,f=l.targetContainers,A!==null&&f.indexOf(A)===-1&&f.push(A),l)}function Z6(l,f,g,x,A){switch(f){case"focusin":return zr=Rs(zr,l,f,g,x,A),!0;case"dragenter":return ro=Rs(ro,l,f,g,x,A),!0;case"mouseover":return so=Rs(so,l,f,g,x,A),!0;case"pointerover":var M=A.pointerId;return cc.set(M,Rs(cc.get(M)||null,l,f,g,x,A)),!0;case"gotpointercapture":return M=A.pointerId,Si.set(M,Rs(Si.get(M)||null,l,f,g,x,A)),!0}return!1}function Dg(l){var f=nd(l.target);if(f!==null){var g=to(f);if(g!==null){if(f=g.tag,f===13){if(f=Gu(g),f!==null){l.blockedOn=f,Mg(l.priority,function(){Rg(g)});return}}else if(f===3&&g.stateNode.current.memoizedState.isDehydrated){l.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Wa(l){if(l.blockedOn!==null)return!1;for(var f=l.targetContainers;0<f.length;){var g=Xf(l.domEventName,l.eventSystemFlags,f[0],l.nativeEvent);if(g===null){g=l.nativeEvent;var x=new g.constructor(g.type,g);Go=x,g.target.dispatchEvent(x),Go=null}else return f=g1(g),f!==null&&Qf(f),l.blockedOn=g,!1;f.shift()}return!0}function Zu(l,f,g){Wa(l)&&g.delete(f)}function Og(){t1=!1,zr!==null&&Wa(zr)&&(zr=null),ro!==null&&Wa(ro)&&(ro=null),so!==null&&Wa(so)&&(so=null),cc.forEach(Zu),Si.forEach(Zu)}function io(l,f){l.blockedOn===f&&(l.blockedOn=null,t1||(t1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Og)))}function oo(l){function f(A){return io(A,l)}if(0<Qo.length){io(Qo[0],l);for(var g=1;g<Qo.length;g++){var x=Qo[g];x.blockedOn===l&&(x.blockedOn=null)}}for(zr!==null&&io(zr,l),ro!==null&&io(ro,l),so!==null&&io(so,l),cc.forEach(f),Si.forEach(f),g=0;g<Xo.length;g++)x=Xo[g],x.blockedOn===l&&(x.blockedOn=null);for(;0<Xo.length&&(g=Xo[0],g.blockedOn===null);)Dg(g),g.blockedOn===null&&Xo.shift()}var qa=z.ReactCurrentBatchConfig,uc=!0;function Dn(l,f,g,x){var A=Kt,M=qa.transition;qa.transition=null;try{Kt=1,n1(l,f,g,x)}finally{Kt=A,qa.transition=M}}function J6(l,f,g,x){var A=Kt,M=qa.transition;qa.transition=null;try{Kt=4,n1(l,f,g,x)}finally{Kt=A,qa.transition=M}}function n1(l,f,g,x){if(uc){var A=Xf(l,f,g,x);if(A===null)ux(l,f,x,Ju,g),kg(l,x);else if(Z6(A,l,f,g,x))x.stopPropagation();else if(kg(l,x),f&4&&-1<X6.indexOf(l)){for(;A!==null;){var M=g1(A);if(M!==null&&Pg(M),M=Xf(l,f,g,x),M===null&&ux(l,f,x,Ju,g),M===A)break;A=M}A!==null&&x.stopPropagation()}else ux(l,f,x,null,g)}}var Ju=null;function Xf(l,f,g,x){if(Ju=null,l=zf(x),l=nd(l),l!==null)if(f=to(l),f===null)l=null;else if(g=f.tag,g===13){if(l=Gu(f),l!==null)return l;l=null}else if(g===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;l=null}else f!==l&&(l=null);return Ju=l,null}function r1(l){switch(l){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(Sg()){case Ku:return 1;case rc:return 4;case bi:case Jm:return 16;case Cg:return 536870912;default:return 16}default:return 16}}var ni=null,Zf=null,Ns=null;function s1(){if(Ns)return Ns;var l,f=Zf,g=f.length,x,A="value"in ni?ni.value:ni.textContent,M=A.length;for(l=0;l<g&&f[l]===A[l];l++);var H=g-l;for(x=1;x<=H&&f[g-x]===A[M-x];x++);return Ns=A.slice(l,1<x?1-x:void 0)}function Jf(l){var f=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&f===13&&(l=13)):l=f,l===10&&(l=13),32<=l||l===13?l:0}function Zo(){return!0}function i1(){return!1}function Vr(l){function f(g,x,A,M,H){this._reactName=g,this._targetInst=A,this.type=x,this.nativeEvent=M,this.target=H,this.currentTarget=null;for(var J in l)l.hasOwnProperty(J)&&(g=l[J],this[J]=g?g(M):M[J]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?Zo:i1,this.isPropagationStopped=i1,this}return oe(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=Zo)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=Zo)},persist:function(){},isPersistent:Zo}),f}var ao={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eh=Vr(ao),Jo=oe({},ao,{view:0,detail:0}),ex=Vr(Jo),th,Ga,dc,ed=oe({},Jo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ea,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==dc&&(dc&&l.type==="mousemove"?(th=l.screenX-dc.screenX,Ga=l.screenY-dc.screenY):Ga=th=0,dc=l),th)},movementY:function(l){return"movementY"in l?l.movementY:Ga}}),nh=Vr(ed),o1=oe({},ed,{dataTransfer:0}),$g=Vr(o1),rh=oe({},Jo,{relatedTarget:0}),sh=Vr(rh),Fg=oe({},ao,{animationName:0,elapsedTime:0,pseudoElement:0}),Ka=Vr(Fg),jg=oe({},ao,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Lg=Vr(jg),zg=oe({},ao,{data:0}),a1=Vr(zg),ih={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ps={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"},Vg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bg(l){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(l):(l=Vg[l])?!!f[l]:!1}function ea(){return Bg}var y=oe({},Jo,{key:function(l){if(l.key){var f=ih[l.key]||l.key;if(f!=="Unidentified")return f}return l.type==="keypress"?(l=Jf(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?ps[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ea,charCode:function(l){return l.type==="keypress"?Jf(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Jf(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),N=Vr(y),$=oe({},ed,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),W=Vr($),ae=oe({},Jo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ea}),pe=Vr(ae),De=oe({},ao,{propertyName:0,elapsedTime:0,pseudoElement:0}),pn=Vr(De),vr=oe({},ed,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),Zt=Vr(vr),Rr=[9,13,27,32],fr=a&&"CompositionEvent"in window,Ci=null;a&&"documentMode"in document&&(Ci=document.documentMode);var ri=a&&"TextEvent"in window&&!Ci,td=a&&(!fr||Ci&&8<Ci&&11>=Ci),oh=" ",TT=!1;function AT(l,f){switch(l){case"keyup":return Rr.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function IT(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var ah=!1;function AX(l,f){switch(l){case"compositionend":return IT(f);case"keypress":return f.which!==32?null:(TT=!0,oh);case"textInput":return l=f.data,l===oh&&TT?null:l;default:return null}}function IX(l,f){if(ah)return l==="compositionend"||!fr&&AT(l,f)?(l=s1(),Ns=Zf=ni=null,ah=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return td&&f.locale!=="ko"?null:f.data;default:return null}}var PX={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 PT(l){var f=l&&l.nodeName&&l.nodeName.toLowerCase();return f==="input"?!!PX[l.type]:f==="textarea"}function RT(l,f,g,x){Yo(x),f=Gg(f,"onChange"),0<f.length&&(g=new eh("onChange","change",null,g,x),l.push({event:g,listeners:f}))}var l1=null,c1=null;function RX(l){KT(l,0)}function Hg(l){var f=fh(l);if(ut(f))return l}function NX(l,f){if(l==="change")return f}var NT=!1;if(a){var tx;if(a){var nx="oninput"in document;if(!nx){var MT=document.createElement("div");MT.setAttribute("oninput","return;"),nx=typeof MT.oninput=="function"}tx=nx}else tx=!1;NT=tx&&(!document.documentMode||9<document.documentMode)}function kT(){l1&&(l1.detachEvent("onpropertychange",DT),c1=l1=null)}function DT(l){if(l.propertyName==="value"&&Hg(c1)){var f=[];RT(f,c1,l,zf(l)),Ym(RX,f)}}function MX(l,f,g){l==="focusin"?(kT(),l1=f,c1=g,l1.attachEvent("onpropertychange",DT)):l==="focusout"&&kT()}function kX(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Hg(c1)}function DX(l,f){if(l==="click")return Hg(f)}function OX(l,f){if(l==="input"||l==="change")return Hg(f)}function $X(l,f){return l===f&&(l!==0||1/l===1/f)||l!==l&&f!==f}var lo=typeof Object.is=="function"?Object.is:$X;function u1(l,f){if(lo(l,f))return!0;if(typeof l!="object"||l===null||typeof f!="object"||f===null)return!1;var g=Object.keys(l),x=Object.keys(f);if(g.length!==x.length)return!1;for(x=0;x<g.length;x++){var A=g[x];if(!c.call(f,A)||!lo(l[A],f[A]))return!1}return!0}function OT(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function $T(l,f){var g=OT(l);l=0;for(var x;g;){if(g.nodeType===3){if(x=l+g.textContent.length,l<=f&&x>=f)return{node:g,offset:f-l};l=x}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=OT(g)}}function FT(l,f){return l&&f?l===f?!0:l&&l.nodeType===3?!1:f&&f.nodeType===3?FT(l,f.parentNode):"contains"in l?l.contains(f):l.compareDocumentPosition?!!(l.compareDocumentPosition(f)&16):!1:!1}function jT(){for(var l=window,f=Pt();f instanceof l.HTMLIFrameElement;){try{var g=typeof f.contentWindow.location.href=="string"}catch{g=!1}if(g)l=f.contentWindow;else break;f=Pt(l.document)}return f}function rx(l){var f=l&&l.nodeName&&l.nodeName.toLowerCase();return f&&(f==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||f==="textarea"||l.contentEditable==="true")}function FX(l){var f=jT(),g=l.focusedElem,x=l.selectionRange;if(f!==g&&g&&g.ownerDocument&&FT(g.ownerDocument.documentElement,g)){if(x!==null&&rx(g)){if(f=x.start,l=x.end,l===void 0&&(l=f),"selectionStart"in g)g.selectionStart=f,g.selectionEnd=Math.min(l,g.value.length);else if(l=(f=g.ownerDocument||document)&&f.defaultView||window,l.getSelection){l=l.getSelection();var A=g.textContent.length,M=Math.min(x.start,A);x=x.end===void 0?M:Math.min(x.end,A),!l.extend&&M>x&&(A=x,x=M,M=A),A=$T(g,M);var H=$T(g,x);A&&H&&(l.rangeCount!==1||l.anchorNode!==A.node||l.anchorOffset!==A.offset||l.focusNode!==H.node||l.focusOffset!==H.offset)&&(f=f.createRange(),f.setStart(A.node,A.offset),l.removeAllRanges(),M>x?(l.addRange(f),l.extend(H.node,H.offset)):(f.setEnd(H.node,H.offset),l.addRange(f)))}}for(f=[],l=g;l=l.parentNode;)l.nodeType===1&&f.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<f.length;g++)l=f[g],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var jX=a&&"documentMode"in document&&11>=document.documentMode,lh=null,sx=null,d1=null,ix=!1;function LT(l,f,g){var x=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;ix||lh==null||lh!==Pt(x)||(x=lh,"selectionStart"in x&&rx(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),d1&&u1(d1,x)||(d1=x,x=Gg(sx,"onSelect"),0<x.length&&(f=new eh("onSelect","select",null,f,g),l.push({event:f,listeners:x}),f.target=lh)))}function Ug(l,f){var g={};return g[l.toLowerCase()]=f.toLowerCase(),g["Webkit"+l]="webkit"+f,g["Moz"+l]="moz"+f,g}var ch={animationend:Ug("Animation","AnimationEnd"),animationiteration:Ug("Animation","AnimationIteration"),animationstart:Ug("Animation","AnimationStart"),transitionend:Ug("Transition","TransitionEnd")},ox={},zT={};a&&(zT=document.createElement("div").style,"AnimationEvent"in window||(delete ch.animationend.animation,delete ch.animationiteration.animation,delete ch.animationstart.animation),"TransitionEvent"in window||delete ch.transitionend.transition);function Wg(l){if(ox[l])return ox[l];if(!ch[l])return l;var f=ch[l],g;for(g in f)if(f.hasOwnProperty(g)&&g in zT)return ox[l]=f[g];return l}var VT=Wg("animationend"),BT=Wg("animationiteration"),HT=Wg("animationstart"),UT=Wg("transitionend"),WT=new Map,qT="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 fc(l,f){WT.set(l,f),i(f,[l])}for(var ax=0;ax<qT.length;ax++){var lx=qT[ax],LX=lx.toLowerCase(),zX=lx[0].toUpperCase()+lx.slice(1);fc(LX,"on"+zX)}fc(VT,"onAnimationEnd"),fc(BT,"onAnimationIteration"),fc(HT,"onAnimationStart"),fc("dblclick","onDoubleClick"),fc("focusin","onFocus"),fc("focusout","onBlur"),fc(UT,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var f1="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(" "),VX=new Set("cancel close invalid load scroll toggle".split(" ").concat(f1));function GT(l,f,g){var x=l.type||"unknown-event";l.currentTarget=g,_g(x,f,void 0,l),l.currentTarget=null}function KT(l,f){f=(f&4)!==0;for(var g=0;g<l.length;g++){var x=l[g],A=x.event;x=x.listeners;e:{var M=void 0;if(f)for(var H=x.length-1;0<=H;H--){var J=x[H],te=J.instance,fe=J.currentTarget;if(J=J.listener,te!==M&&A.isPropagationStopped())break e;GT(A,J,fe),M=te}else for(H=0;H<x.length;H++){if(J=x[H],te=J.instance,fe=J.currentTarget,J=J.listener,te!==M&&A.isPropagationStopped())break e;GT(A,J,fe),M=te}}}if(eo)throw l=Qm,eo=!1,Qm=null,l}function Nn(l,f){var g=f[gx];g===void 0&&(g=f[gx]=new Set);var x=l+"__bubble";g.has(x)||(YT(f,l,2,!1),g.add(x))}function cx(l,f,g){var x=0;f&&(x|=4),YT(g,l,x,f)}var qg="_reactListening"+Math.random().toString(36).slice(2);function h1(l){if(!l[qg]){l[qg]=!0,r.forEach(function(g){g!=="selectionchange"&&(VX.has(g)||cx(g,!1,l),cx(g,!0,l))});var f=l.nodeType===9?l:l.ownerDocument;f===null||f[qg]||(f[qg]=!0,cx("selectionchange",!1,f))}}function YT(l,f,g,x){switch(r1(f)){case 1:var A=Dn;break;case 4:A=J6;break;default:A=n1}g=A.bind(null,f,g,l),A=void 0,!Hf||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(A=!0),x?A!==void 0?l.addEventListener(f,g,{capture:!0,passive:A}):l.addEventListener(f,g,!0):A!==void 0?l.addEventListener(f,g,{passive:A}):l.addEventListener(f,g,!1)}function ux(l,f,g,x,A){var M=x;if((f&1)===0&&(f&2)===0&&x!==null)e:for(;;){if(x===null)return;var H=x.tag;if(H===3||H===4){var J=x.stateNode.containerInfo;if(J===A||J.nodeType===8&&J.parentNode===A)break;if(H===4)for(H=x.return;H!==null;){var te=H.tag;if((te===3||te===4)&&(te=H.stateNode.containerInfo,te===A||te.nodeType===8&&te.parentNode===A))return;H=H.return}for(;J!==null;){if(H=nd(J),H===null)return;if(te=H.tag,te===5||te===6){x=M=H;continue e}J=J.parentNode}}x=x.return}Ym(function(){var fe=M,Ee=zf(g),Ce=[];e:{var _e=WT.get(l);if(_e!==void 0){var Ve=eh,Ke=l;switch(l){case"keypress":if(Jf(g)===0)break e;case"keydown":case"keyup":Ve=N;break;case"focusin":Ke="focus",Ve=sh;break;case"focusout":Ke="blur",Ve=sh;break;case"beforeblur":case"afterblur":Ve=sh;break;case"click":if(g.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ve=nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ve=$g;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ve=pe;break;case VT:case BT:case HT:Ve=Ka;break;case UT:Ve=pn;break;case"scroll":Ve=ex;break;case"wheel":Ve=Zt;break;case"copy":case"cut":case"paste":Ve=Lg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ve=W}var Xe=(f&4)!==0,nr=!Xe&&l==="scroll",le=Xe?_e!==null?_e+"Capture":null:_e;Xe=[];for(var re=fe,de;re!==null;){de=re;var Re=de.stateNode;if(de.tag===5&&Re!==null&&(de=Re,le!==null&&(Re=tr(re,le),Re!=null&&Xe.push(p1(re,Re,de)))),nr)break;re=re.return}0<Xe.length&&(_e=new Ve(_e,Ke,null,g,Ee),Ce.push({event:_e,listeners:Xe}))}}if((f&7)===0){e:{if(_e=l==="mouseover"||l==="pointerover",Ve=l==="mouseout"||l==="pointerout",_e&&g!==Go&&(Ke=g.relatedTarget||g.fromElement)&&(nd(Ke)||Ke[Ya]))break e;if((Ve||_e)&&(_e=Ee.window===Ee?Ee:(_e=Ee.ownerDocument)?_e.defaultView||_e.parentWindow:window,Ve?(Ke=g.relatedTarget||g.toElement,Ve=fe,Ke=Ke?nd(Ke):null,Ke!==null&&(nr=to(Ke),Ke!==nr||Ke.tag!==5&&Ke.tag!==6)&&(Ke=null)):(Ve=null,Ke=fe),Ve!==Ke)){if(Xe=nh,Re="onMouseLeave",le="onMouseEnter",re="mouse",(l==="pointerout"||l==="pointerover")&&(Xe=W,Re="onPointerLeave",le="onPointerEnter",re="pointer"),nr=Ve==null?_e:fh(Ve),de=Ke==null?_e:fh(Ke),_e=new Xe(Re,re+"leave",Ve,g,Ee),_e.target=nr,_e.relatedTarget=de,Re=null,nd(Ee)===fe&&(Xe=new Xe(le,re+"enter",Ke,g,Ee),Xe.target=de,Xe.relatedTarget=nr,Re=Xe),nr=Re,Ve&&Ke)t:{for(Xe=Ve,le=Ke,re=0,de=Xe;de;de=uh(de))re++;for(de=0,Re=le;Re;Re=uh(Re))de++;for(;0<re-de;)Xe=uh(Xe),re--;for(;0<de-re;)le=uh(le),de--;for(;re--;){if(Xe===le||le!==null&&Xe===le.alternate)break t;Xe=uh(Xe),le=uh(le)}Xe=null}else Xe=null;Ve!==null&&QT(Ce,_e,Ve,Xe,!1),Ke!==null&&nr!==null&&QT(Ce,nr,Ke,Xe,!0)}}
vendor: 11,302 bytes, lines 80-81
80e:{if(_e=fe?fh(fe):window,Ve=_e.nodeName&&_e.nodeName.toLowerCase(),Ve==="select"||Ve==="input"&&_e.type==="file")var Je=NX;else if(PT(_e))if(NT)Je=OX;else{Je=kX;var it=MX}else(Ve=_e.nodeName)&&Ve.toLowerCase()==="input"&&(_e.type==="checkbox"||_e.type==="radio")&&(Je=DX);if(Je&&(Je=Je(l,fe))){RT(Ce,Je,g,Ee);break e}it&&it(l,_e,fe),l==="focusout"&&(it=_e._wrapperState)&&it.controlled&&_e.type==="number"&&Lr(_e,"number",_e.value)}switch(it=fe?fh(fe):window,l){case"focusin":(PT(it)||it.contentEditable==="true")&&(lh=it,sx=fe,d1=null);break;case"focusout":d1=sx=lh=null;break;case"mousedown":ix=!0;break;case"contextmenu":case"mouseup":case"dragend":ix=!1,LT(Ce,g,Ee);break;case"selectionchange":if(jX)break;case"keydown":case"keyup":LT(Ce,g,Ee)}var ot;if(fr)e:{switch(l){case"compositionstart":var wt="onCompositionStart";break e;case"compositionend":wt="onCompositionEnd";break e;case"compositionupdate":wt="onCompositionUpdate";break e}wt=void 0}else ah?AT(l,g)&&(wt="onCompositionEnd"):l==="keydown"&&g.keyCode===229&&(wt="onCompositionStart");wt&&(td&&g.locale!=="ko"&&(ah||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&ah&&(ot=s1()):(ni=Ee,Zf="value"in ni?ni.value:ni.textContent,ah=!0)),it=Gg(fe,wt),0<it.length&&(wt=new a1(wt,l,null,g,Ee),Ce.push({event:wt,listeners:it}),ot?wt.data=ot:(ot=IT(g),ot!==null&&(wt.data=ot)))),(ot=ri?AX(l,g):IX(l,g))&&(fe=Gg(fe,"onBeforeInput"),0<fe.length&&(Ee=new a1("onBeforeInput","beforeinput",null,g,Ee),Ce.push({event:Ee,listeners:fe}),Ee.data=ot))}KT(Ce,f)})}function p1(l,f,g){return{instance:l,listener:f,currentTarget:g}}function Gg(l,f){for(var g=f+"Capture",x=[];l!==null;){var A=l,M=A.stateNode;A.tag===5&&M!==null&&(A=M,M=tr(l,g),M!=null&&x.unshift(p1(l,M,A)),M=tr(l,f),M!=null&&x.push(p1(l,M,A))),l=l.return}return x}function uh(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function QT(l,f,g,x,A){for(var M=f._reactName,H=[];g!==null&&g!==x;){var J=g,te=J.alternate,fe=J.stateNode;if(te!==null&&te===x)break;J.tag===5&&fe!==null&&(J=fe,A?(te=tr(g,M),te!=null&&H.unshift(p1(g,te,J))):A||(te=tr(g,M),te!=null&&H.push(p1(g,te,J)))),g=g.return}H.length!==0&&l.push({event:f,listeners:H})}var BX=/\r\n?/g,HX=/\u0000|\uFFFD/g;function XT(l){return(typeof l=="string"?l:""+l).replace(BX,`
81`).replace(HX,"")}function Kg(l,f,g){if(f=XT(f),XT(l)!==f&&g)throw Error(n(425))}function Yg(){}var dx=null,fx=null;function hx(l,f){return l==="textarea"||l==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var px=typeof setTimeout=="function"?setTimeout:void 0,UX=typeof clearTimeout=="function"?clearTimeout:void 0,ZT=typeof Promise=="function"?Promise:void 0,WX=typeof queueMicrotask=="function"?queueMicrotask:typeof ZT<"u"?function(l){return ZT.resolve(null).then(l).catch(qX)}:px;function qX(l){setTimeout(function(){throw l})}function mx(l,f){var g=f,x=0;do{var A=g.nextSibling;if(l.removeChild(g),A&&A.nodeType===8)if(g=A.data,g==="/$"){if(x===0){l.removeChild(A),oo(f);return}x--}else g!=="$"&&g!=="$?"&&g!=="$!"||x++;g=A}while(g);oo(f)}function hc(l){for(;l!=null;l=l.nextSibling){var f=l.nodeType;if(f===1||f===3)break;if(f===8){if(f=l.data,f==="$"||f==="$!"||f==="$?")break;if(f==="/$")return null}}return l}function JT(l){l=l.previousSibling;for(var f=0;l;){if(l.nodeType===8){var g=l.data;if(g==="$"||g==="$!"||g==="$?"){if(f===0)return l;f--}else g==="/$"&&f++}l=l.previousSibling}return null}var dh=Math.random().toString(36).slice(2),ta="__reactFiber$"+dh,m1="__reactProps$"+dh,Ya="__reactContainer$"+dh,gx="__reactEvents$"+dh,GX="__reactListeners$"+dh,KX="__reactHandles$"+dh;function nd(l){var f=l[ta];if(f)return f;for(var g=l.parentNode;g;){if(f=g[Ya]||g[ta]){if(g=f.alternate,f.child!==null||g!==null&&g.child!==null)for(l=JT(l);l!==null;){if(g=l[ta])return g;l=JT(l)}return f}l=g,g=l.parentNode}return null}function g1(l){return l=l[ta]||l[Ya],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function fh(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(n(33))}function Qg(l){return l[m1]||null}var vx=[],hh=-1;function pc(l){return{current:l}}function Mn(l){0>hh||(l.current=vx[hh],vx[hh]=null,hh--)}function Sn(l,f){hh++,vx[hh]=l.current,l.current=f}var mc={},es=pc(mc),Ms=pc(!1),rd=mc;function ph(l,f){var g=l.type.contextTypes;if(!g)return mc;var x=l.stateNode;if(x&&x.__reactInternalMemoizedUnmaskedChildContext===f)return x.__reactInternalMemoizedMaskedChildContext;var A={},M;for(M in g)A[M]=f[M];return x&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=f,l.__reactInternalMemoizedMaskedChildContext=A),A}function ks(l){return l=l.childContextTypes,l!=null}function Xg(){Mn(Ms),Mn(es)}function eA(l,f,g){if(es.current!==mc)throw Error(n(168));Sn(es,f),Sn(Ms,g)}function tA(l,f,g){var x=l.stateNode;if(f=f.childContextTypes,typeof x.getChildContext!="function")return g;x=x.getChildContext();for(var A in x)if(!(A in f))throw Error(n(108,he(l)||"Unknown",A));return oe({},g,x)}function Zg(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||mc,rd=es.current,Sn(es,l),Sn(Ms,Ms.current),!0}function nA(l,f,g){var x=l.stateNode;if(!x)throw Error(n(169));g?(l=tA(l,f,rd),x.__reactInternalMemoizedMergedChildContext=l,Mn(Ms),Mn(es),Sn(es,l)):Mn(Ms),Sn(Ms,g)}var Qa=null,Jg=!1,yx=!1;function rA(l){Qa===null?Qa=[l]:Qa.push(l)}function YX(l){Jg=!0,rA(l)}function gc(){if(!yx&&Qa!==null){yx=!0;var l=0,f=Kt;try{var g=Qa;for(Kt=1;l<g.length;l++){var x=g[l];do x=x(!0);while(x!==null)}Qa=null,Jg=!1}catch(A){throw Qa!==null&&(Qa=Qa.slice(l+1)),Gf(Ku,gc),A}finally{Kt=f,yx=!1}}return null}var mh=[],gh=0,ev=null,tv=0,Ti=[],Ai=0,sd=null,Xa=1,Za="";function id(l,f){mh[gh++]=tv,mh[gh++]=ev,ev=l,tv=f}function sA(l,f,g){Ti[Ai++]=Xa,Ti[Ai++]=Za,Ti[Ai++]=sd,sd=l;var x=Xa;l=Za;var A=32-hs(x)-1;x&=~(1<<A),g+=1;var M=32-hs(f)+A;if(30<M){var H=A-A%5;M=(x&(1<<H)-1).toString(32),x>>=H,A-=H,Xa=1<<32-hs(f)+A|g<<A|x,Za=M+l}else Xa=1<<M|g<<A|x,Za=l}function xx(l){l.return!==null&&(id(l,1),sA(l,1,0))}function wx(l){for(;l===ev;)ev=mh[--gh],mh[gh]=null,tv=mh[--gh],mh[gh]=null;for(;l===sd;)sd=Ti[--Ai],Ti[Ai]=null,Za=Ti[--Ai],Ti[Ai]=null,Xa=Ti[--Ai],Ti[Ai]=null}var si=null,ii=null,On=!1,co=null;function iA(l,f){var g=Ni(5,null,null,0);g.elementType="DELETED",g.stateNode=f,g.return=l,f=l.deletions,f===null?(l.deletions=[g],l.flags|=16):f.push(g)}function oA(l,f){switch(l.tag){case 5:var g=l.type;return f=f.nodeType!==1||g.toLowerCase()!==f.nodeName.toLowerCase()?null:f,f!==null?(l.stateNode=f,si=l,ii=hc(f.firstChild),!0):!1;case 6:return f=l.pendingProps===""||f.nodeType!==3?null:f,f!==null?(l.stateNode=f,si=l,ii=null,!0):!1;case 13:return f=f.nodeType!==8?null:f,f!==null?(g=sd!==null?{id:Xa,overflow:Za}:null,l.memoizedState={dehydrated:f,treeContext:g,retryLane:1073741824},g=Ni(18,null,null,0),g.stateNode=f,g.return=l,l.child=g,si=l,ii=null,!0):!1;default:return!1}}function _x(l){return(l.mode&1)!==0&&(l.flags&128)===0}function Ex(l){if(On){var f=ii;if(f){var g=f;if(!oA(l,f)){if(_x(l))throw Error(n(418));f=hc(g.nextSibling);var x=si;f&&oA(l,f)?iA(x,g):(l.flags=l.flags&-4097|2,On=!1,si=l)}}else{if(_x(l))throw Error(n(418));l.flags=l.flags&-4097|2,On=!1,si=l}}}function aA(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;si=l}function nv(l){if(l!==si)return!1;if(!On)return aA(l),On=!0,!1;var f;if((f=l.tag!==3)&&!(f=l.tag!==5)&&(f=l.type,f=f!=="head"&&f!=="body"&&!hx(l.type,l.memoizedProps)),f&&(f=ii)){if(_x(l))throw lA(),Error(n(418));for(;f;)iA(l,f),f=hc(f.nextSibling)}if(aA(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));e:{for(l=l.nextSibling,f=0;l;){if(l.nodeType===8){var g=l.data;if(g==="/$"){if(f===0){ii=hc(l.nextSibling);break e}f--}else g!=="$"&&g!=="$!"&&g!=="$?"||f++}l=l.nextSibling}ii=null}}else ii=si?hc(l.stateNode.nextSibling):null;return!0}function lA(){for(var l=ii;l;)l=hc(l.nextSibling)}function vh(){ii=si=null,On=!1}function bx(l){co===null?co=[l]:co.push(l)}var QX=z.ReactCurrentBatchConfig;function v1(l,f,g){if(l=g.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(g._owner){if(g=g._owner,g){if(g.tag!==1)throw Error(n(309));var x=g.stateNode}if(!x)throw Error(n(147,l));var A=x,M=""+l;return f!==null&&f.ref!==null&&typeof f.ref=="function"&&f.ref._stringRef===M?f.ref:(f=function(H){var J=A.refs;H===null?delete J[M]:J[M]=H},f._stringRef=M,f)}if(typeof l!="string")throw Error(n(284));if(!g._owner)throw Error(n(290,l))}return l}function rv(l,f){throw l=Object.prototype.toString.call(f),Error(n(31,l==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":l))}function cA(l){var f=l._init;return f(l._payload)}function uA(l){function f(le,re){if(l){var de=le.deletions;de===null?(le.deletions=[re],le.flags|=16):de.push(re)}}function g(le,re){if(!l)return null;for(;re!==null;)f(le,re),re=re.sibling;return null}function x(le,re){for(le=new Map;re!==null;)re.key!==null?le.set(re.key,re):le.set(re.index,re),re=re.sibling;return le}function A(le,re){return le=Sc(le,re),le.index=0,le.sibling=null,le}function M(le,re,de){return le.index=de,l?(de=le.alternate,de!==null?(de=de.index,de<re?(le.flags|=2,re):de):(le.flags|=2,re)):(le.flags|=1048576,re)}function H(le){return l&&le.alternate===null&&(le.flags|=2),le}function J(le,re,de,Re){return re===null||re.tag!==6?(re=pw(de,le.mode,Re),re.return=le,re):(re=A(re,de),re.return=le,re)}function te(le,re,de,Re){var Je=de.type;return Je===D?Ee(le,re,de.props.children,Re,de.key):re!==null&&(re.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===q&&cA(Je)===re.type)?(Re=A(re,de.props),Re.ref=v1(le,re,de),Re.return=le,Re):(Re=Av(de.type,de.key,de.props,null,le.mode,Re),Re.ref=v1(le,re,de),Re.return=le,Re)}function fe(le,re,de,Re){return re===null||re.tag!==4||re.stateNode.containerInfo!==de.containerInfo||re.stateNode.implementation!==de.implementation?(re=mw(de,le.mode,Re),re.return=le,re):(re=A(re,de.children||[]),re.return=le,re)}function Ee(le,re,de,Re,Je){return re===null||re.tag!==7?(re=hd(de,le.mode,Re,Je),re.return=le,re):(re=A(re,de),re.return=le,re)}function Ce(le,re,de){if(typeof re=="string"&&re!==""||typeof re=="number")return re=pw(""+re,le.mode,de),re.return=le,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case O:return de=Av(re.type,re.key,re.props,null,le.mode,de),de.ref=v1(le,null,re),de.return=le,de;case F:return re=mw(re,le.mode,de),re.return=le,re;case q:var Re=re._init;return Ce(le,Re(re._payload),de)}if(xt(re)||ne(re))return re=hd(re,le.mode,de,null),re.return=le,re;rv(le,re)}return null}function _e(le,re,de,Re){var Je=re!==null?re.key:null;if(typeof de=="string"&&de!==""||typeof de=="number")return Je!==null?null:J(le,re,""+de,Re);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case O:return de.key===Je?te(le,re,de,Re):null;case F:return de.key===Je?fe(le,re,de,Re):null;case q:return Je=de._init,_e(le,re,Je(de._payload),Re)}if(xt(de)||ne(de))return Je!==null?null:Ee(le,re,de,Re,null);rv(le,de)}return null}function Ve(le,re,de,Re,Je){if(typeof Re=="string"&&Re!==""||typeof Re=="number")return le=le.get(de)||null,J(re,le,""+Re,Je);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case O:return le=le.get(Re.key===null?de:Re.key)||null,te(re,le,Re,Je);
vendor: 9,804 bytes, line 81
81case F:return le=le.get(Re.key===null?de:Re.key)||null,fe(re,le,Re,Je);case q:var it=Re._init;return Ve(le,re,de,it(Re._payload),Je)}if(xt(Re)||ne(Re))return le=le.get(de)||null,Ee(re,le,Re,Je,null);rv(re,Re)}return null}function Ke(le,re,de,Re){for(var Je=null,it=null,ot=re,wt=re=0,kr=null;ot!==null&&wt<de.length;wt++){ot.index>wt?(kr=ot,ot=null):kr=ot.sibling;var rn=_e(le,ot,de[wt],Re);if(rn===null){ot===null&&(ot=kr);break}l&&ot&&rn.alternate===null&&f(le,ot),re=M(rn,re,wt),it===null?Je=rn:it.sibling=rn,it=rn,ot=kr}if(wt===de.length)return g(le,ot),On&&id(le,wt),Je;if(ot===null){for(;wt<de.length;wt++)ot=Ce(le,de[wt],Re),ot!==null&&(re=M(ot,re,wt),it===null?Je=ot:it.sibling=ot,it=ot);return On&&id(le,wt),Je}for(ot=x(le,ot);wt<de.length;wt++)kr=Ve(ot,le,wt,de[wt],Re),kr!==null&&(l&&kr.alternate!==null&&ot.delete(kr.key===null?wt:kr.key),re=M(kr,re,wt),it===null?Je=kr:it.sibling=kr,it=kr);return l&&ot.forEach(function(Cc){return f(le,Cc)}),On&&id(le,wt),Je}function Xe(le,re,de,Re){var Je=ne(de);if(typeof Je!="function")throw Error(n(150));if(de=Je.call(de),de==null)throw Error(n(151));for(var it=Je=null,ot=re,wt=re=0,kr=null,rn=de.next();ot!==null&&!rn.done;wt++,rn=de.next()){ot.index>wt?(kr=ot,ot=null):kr=ot.sibling;var Cc=_e(le,ot,rn.value,Re);if(Cc===null){ot===null&&(ot=kr);break}l&&ot&&Cc.alternate===null&&f(le,ot),re=M(Cc,re,wt),it===null?Je=Cc:it.sibling=Cc,it=Cc,ot=kr}if(rn.done)return g(le,ot),On&&id(le,wt),Je;if(ot===null){for(;!rn.done;wt++,rn=de.next())rn=Ce(le,rn.value,Re),rn!==null&&(re=M(rn,re,wt),it===null?Je=rn:it.sibling=rn,it=rn);return On&&id(le,wt),Je}for(ot=x(le,ot);!rn.done;wt++,rn=de.next())rn=Ve(ot,le,wt,rn.value,Re),rn!==null&&(l&&rn.alternate!==null&&ot.delete(rn.key===null?wt:rn.key),re=M(rn,re,wt),it===null?Je=rn:it.sibling=rn,it=rn);return l&&ot.forEach(function(PZ){return f(le,PZ)}),On&&id(le,wt),Je}function nr(le,re,de,Re){if(typeof de=="object"&&de!==null&&de.type===D&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case O:e:{for(var Je=de.key,it=re;it!==null;){if(it.key===Je){if(Je=de.type,Je===D){if(it.tag===7){g(le,it.sibling),re=A(it,de.props.children),re.return=le,le=re;break e}}else if(it.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===q&&cA(Je)===it.type){g(le,it.sibling),re=A(it,de.props),re.ref=v1(le,it,de),re.return=le,le=re;break e}g(le,it);break}else f(le,it);it=it.sibling}de.type===D?(re=hd(de.props.children,le.mode,Re,de.key),re.return=le,le=re):(Re=Av(de.type,de.key,de.props,null,le.mode,Re),Re.ref=v1(le,re,de),Re.return=le,le=Re)}return H(le);case F:e:{for(it=de.key;re!==null;){if(re.key===it)if(re.tag===4&&re.stateNode.containerInfo===de.containerInfo&&re.stateNode.implementation===de.implementation){g(le,re.sibling),re=A(re,de.children||[]),re.return=le,le=re;break e}else{g(le,re);break}else f(le,re);re=re.sibling}re=mw(de,le.mode,Re),re.return=le,le=re}return H(le);case q:return it=de._init,nr(le,re,it(de._payload),Re)}if(xt(de))return Ke(le,re,de,Re);if(ne(de))return Xe(le,re,de,Re);rv(le,de)}return typeof de=="string"&&de!==""||typeof de=="number"?(de=""+de,re!==null&&re.tag===6?(g(le,re.sibling),re=A(re,de),re.return=le,le=re):(g(le,re),re=pw(de,le.mode,Re),re.return=le,le=re),H(le)):g(le,re)}return nr}var yh=uA(!0),dA=uA(!1),sv=pc(null),iv=null,xh=null,Sx=null;function Cx(){Sx=xh=iv=null}function Tx(l){var f=sv.current;Mn(sv),l._currentValue=f}function Ax(l,f,g){for(;l!==null;){var x=l.alternate;if((l.childLanes&f)!==f?(l.childLanes|=f,x!==null&&(x.childLanes|=f)):x!==null&&(x.childLanes&f)!==f&&(x.childLanes|=f),l===g)break;l=l.return}}function wh(l,f){iv=l,Sx=xh=null,l=l.dependencies,l!==null&&l.firstContext!==null&&((l.lanes&f)!==0&&(Ds=!0),l.firstContext=null)}function Ii(l){var f=l._currentValue;if(Sx!==l)if(l={context:l,memoizedValue:f,next:null},xh===null){if(iv===null)throw Error(n(308));xh=l,iv.dependencies={lanes:0,firstContext:l}}else xh=xh.next=l;return f}var od=null;function Ix(l){od===null?od=[l]:od.push(l)}function fA(l,f,g,x){var A=f.interleaved;return A===null?(g.next=g,Ix(f)):(g.next=A.next,A.next=g),f.interleaved=g,Ja(l,x)}function Ja(l,f){l.lanes|=f;var g=l.alternate;for(g!==null&&(g.lanes|=f),g=l,l=l.return;l!==null;)l.childLanes|=f,g=l.alternate,g!==null&&(g.childLanes|=f),g=l,l=l.return;return g.tag===3?g.stateNode:null}var vc=!1;function Px(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hA(l,f){l=l.updateQueue,f.updateQueue===l&&(f.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function el(l,f){return{eventTime:l,lane:f,tag:0,payload:null,callback:null,next:null}}function yc(l,f,g){var x=l.updateQueue;if(x===null)return null;if(x=x.shared,(nn&2)!==0){var A=x.pending;return A===null?f.next=f:(f.next=A.next,A.next=f),x.pending=f,Ja(l,g)}return A=x.interleaved,A===null?(f.next=f,Ix(x)):(f.next=A.next,A.next=f),x.interleaved=f,Ja(l,g)}function ov(l,f,g){if(f=f.updateQueue,f!==null&&(f=f.shared,(g&4194240)!==0)){var x=f.lanes;x&=l.pendingLanes,g|=x,f.lanes=g,ac(l,g)}}function pA(l,f){var g=l.updateQueue,x=l.alternate;if(x!==null&&(x=x.updateQueue,g===x)){var A=null,M=null;if(g=g.firstBaseUpdate,g!==null){do{var H={eventTime:g.eventTime,lane:g.lane,tag:g.tag,payload:g.payload,callback:g.callback,next:null};M===null?A=M=H:M=M.next=H,g=g.next}while(g!==null);M===null?A=M=f:M=M.next=f}else A=M=f;g={baseState:x.baseState,firstBaseUpdate:A,lastBaseUpdate:M,shared:x.shared,effects:x.effects},l.updateQueue=g;return}l=g.lastBaseUpdate,l===null?g.firstBaseUpdate=f:l.next=f,g.lastBaseUpdate=f}function av(l,f,g,x){var A=l.updateQueue;vc=!1;var M=A.firstBaseUpdate,H=A.lastBaseUpdate,J=A.shared.pending;if(J!==null){A.shared.pending=null;var te=J,fe=te.next;te.next=null,H===null?M=fe:H.next=fe,H=te;var Ee=l.alternate;Ee!==null&&(Ee=Ee.updateQueue,J=Ee.lastBaseUpdate,J!==H&&(J===null?Ee.firstBaseUpdate=fe:J.next=fe,Ee.lastBaseUpdate=te))}if(M!==null){var Ce=A.baseState;H=0,Ee=fe=te=null,J=M;do{var _e=J.lane,Ve=J.eventTime;if((x&_e)===_e){Ee!==null&&(Ee=Ee.next={eventTime:Ve,lane:0,tag:J.tag,payload:J.payload,callback:J.callback,next:null});e:{var Ke=l,Xe=J;switch(_e=f,Ve=g,Xe.tag){case 1:if(Ke=Xe.payload,typeof Ke=="function"){Ce=Ke.call(Ve,Ce,_e);break e}Ce=Ke;break e;case 3:Ke.flags=Ke.flags&-65537|128;case 0:if(Ke=Xe.payload,_e=typeof Ke=="function"?Ke.call(Ve,Ce,_e):Ke,_e==null)break e;Ce=oe({},Ce,_e);break e;case 2:vc=!0}}J.callback!==null&&J.lane!==0&&(l.flags|=64,_e=A.effects,_e===null?A.effects=[J]:_e.push(J))}else Ve={eventTime:Ve,lane:_e,tag:J.tag,payload:J.payload,callback:J.callback,next:null},Ee===null?(fe=Ee=Ve,te=Ce):Ee=Ee.next=Ve,H|=_e;if(J=J.next,J===null){if(J=A.shared.pending,J===null)break;_e=J,J=_e.next,_e.next=null,A.lastBaseUpdate=_e,A.shared.pending=null}}while(!0);if(Ee===null&&(te=Ce),A.baseState=te,A.firstBaseUpdate=fe,A.lastBaseUpdate=Ee,f=A.shared.interleaved,f!==null){A=f;do H|=A.lane,A=A.next;while(A!==f)}else M===null&&(A.shared.lanes=0);cd|=H,l.lanes=H,l.memoizedState=Ce}}function mA(l,f,g){if(l=f.effects,f.effects=null,l!==null)for(f=0;f<l.length;f++){var x=l[f],A=x.callback;if(A!==null){if(x.callback=null,x=g,typeof A!="function")throw Error(n(191,A));A.call(x)}}}var y1={},na=pc(y1),x1=pc(y1),w1=pc(y1);function ad(l){if(l===y1)throw Error(n(174));return l}function Rx(l,f){switch(Sn(w1,f),Sn(x1,l),Sn(na,y1),l=f.nodeType,l){case 9:case 11:f=(f=f.documentElement)?f.namespaceURI:we(null,"");break;default:l=l===8?f.parentNode:f,f=l.namespaceURI||null,l=l.tagName,f=we(f,l)}Mn(na),Sn(na,f)}function _h(){Mn(na),Mn(x1),Mn(w1)}function gA(l){ad(w1.current);var f=ad(na.current),g=we(f,l.type);f!==g&&(Sn(x1,l),Sn(na,g))}function Nx(l){x1.current===l&&(Mn(na),Mn(x1))}var jn=pc(0);function lv(l){for(var f=l;f!==null;){if(f.tag===13){var g=f.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||g.data==="$?"||g.data==="$!"))return f}else if(f.tag===19&&f.memoizedProps.revealOrder!==void 0){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var Mx=[];function kx(){for(var l=0;l<Mx.length;l++)Mx[l]._workInProgressVersionPrimary=null;Mx.length=0}var cv=z.ReactCurrentDispatcher,Dx=z.ReactCurrentBatchConfig,ld=0,Ln=null,yr=null,Nr=null,uv=!1,_1=!1,E1=0,XX=0;function ts(){throw Error(n(321))}function Ox(l,f){if(f===null)return!1;for(var g=0;g<f.length&&g<l.length;g++)if(!lo(l[g],f[g]))return!1;return!0}function $x(l,f,g,x,A,M){if(ld=M,Ln=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,cv.current=l===null||l.memoizedState===null?tZ:nZ,l=g(x,A),_1){M=0;do{if(_1=!1,E1=0,25<=M)throw Error(n(301));M+=1,Nr=yr=null,f.updateQueue=null,cv.current=rZ,l=g(x,A)}while(_1)}if(cv.current=hv,f=yr!==null&&yr.next!==null,ld=0,Nr=yr=Ln=null,uv=!1,f)throw Error(n(300));return l}function Fx(){var l=E1!==0;return E1=0,l}function ra(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nr===null?Ln.memoizedState=Nr=l:Nr=Nr.next=l,Nr}function Pi(){if(yr===null){var l=Ln.alternate;l=l!==null?l.memoizedState:null}else l=yr.next;var f=Nr===null?Ln.memoizedState:Nr.next;if(f!==null)Nr=f,yr=l;else{if(l===null)throw Error(n(310));yr=l,l={memoizedState:yr.memoizedState,baseState:yr.baseState,baseQueue:yr.baseQueue,queue:yr.queue,next:null},Nr===null?Ln.memoizedState=Nr=l:Nr=Nr.next=l}return Nr}function b1(l,f){return typeof f=="function"?f(l):f}function jx(l){var f=Pi(),g=f.queue;if(g===null)throw Error(n(311));g.lastRenderedReducer=l;var x=yr,A=x.baseQueue,M=g.pending;if(M!==null){if(A!==null){var H=A.next;
vendor: 6,696 bytes, line 81
81A.next=M.next,M.next=H}x.baseQueue=A=M,g.pending=null}if(A!==null){M=A.next,x=x.baseState;var J=H=null,te=null,fe=M;do{var Ee=fe.lane;if((ld&Ee)===Ee)te!==null&&(te=te.next={lane:0,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),x=fe.hasEagerState?fe.eagerState:l(x,fe.action);else{var Ce={lane:Ee,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null};te===null?(J=te=Ce,H=x):te=te.next=Ce,Ln.lanes|=Ee,cd|=Ee}fe=fe.next}while(fe!==null&&fe!==M);te===null?H=x:te.next=J,lo(x,f.memoizedState)||(Ds=!0),f.memoizedState=x,f.baseState=H,f.baseQueue=te,g.lastRenderedState=x}if(l=g.interleaved,l!==null){A=l;do M=A.lane,Ln.lanes|=M,cd|=M,A=A.next;while(A!==l)}else A===null&&(g.lanes=0);return[f.memoizedState,g.dispatch]}function Lx(l){var f=Pi(),g=f.queue;if(g===null)throw Error(n(311));g.lastRenderedReducer=l;var x=g.dispatch,A=g.pending,M=f.memoizedState;if(A!==null){g.pending=null;var H=A=A.next;do M=l(M,H.action),H=H.next;while(H!==A);lo(M,f.memoizedState)||(Ds=!0),f.memoizedState=M,f.baseQueue===null&&(f.baseState=M),g.lastRenderedState=M}return[M,x]}function vA(){}function yA(l,f){var g=Ln,x=Pi(),A=f(),M=!lo(x.memoizedState,A);if(M&&(x.memoizedState=A,Ds=!0),x=x.queue,zx(_A.bind(null,g,x,l),[l]),x.getSnapshot!==f||M||Nr!==null&&Nr.memoizedState.tag&1){if(g.flags|=2048,S1(9,wA.bind(null,g,x,A,f),void 0,null),Mr===null)throw Error(n(349));(ld&30)!==0||xA(g,f,A)}return A}function xA(l,f,g){l.flags|=16384,l={getSnapshot:f,value:g},f=Ln.updateQueue,f===null?(f={lastEffect:null,stores:null},Ln.updateQueue=f,f.stores=[l]):(g=f.stores,g===null?f.stores=[l]:g.push(l))}function wA(l,f,g,x){f.value=g,f.getSnapshot=x,EA(f)&&bA(l)}function _A(l,f,g){return g(function(){EA(f)&&bA(l)})}function EA(l){var f=l.getSnapshot;l=l.value;try{var g=f();return!lo(l,g)}catch{return!0}}function bA(l){var f=Ja(l,1);f!==null&&po(f,l,1,-1)}function SA(l){var f=ra();return typeof l=="function"&&(l=l()),f.memoizedState=f.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:b1,lastRenderedState:l},f.queue=l,l=l.dispatch=eZ.bind(null,Ln,l),[f.memoizedState,l]}function S1(l,f,g,x){return l={tag:l,create:f,destroy:g,deps:x,next:null},f=Ln.updateQueue,f===null?(f={lastEffect:null,stores:null},Ln.updateQueue=f,f.lastEffect=l.next=l):(g=f.lastEffect,g===null?f.lastEffect=l.next=l:(x=g.next,g.next=l,l.next=x,f.lastEffect=l)),l}function CA(){return Pi().memoizedState}function dv(l,f,g,x){var A=ra();Ln.flags|=l,A.memoizedState=S1(1|f,g,void 0,x===void 0?null:x)}function fv(l,f,g,x){var A=Pi();x=x===void 0?null:x;var M=void 0;if(yr!==null){var H=yr.memoizedState;if(M=H.destroy,x!==null&&Ox(x,H.deps)){A.memoizedState=S1(f,g,M,x);return}}Ln.flags|=l,A.memoizedState=S1(1|f,g,M,x)}function TA(l,f){return dv(8390656,8,l,f)}function zx(l,f){return fv(2048,8,l,f)}function AA(l,f){return fv(4,2,l,f)}function IA(l,f){return fv(4,4,l,f)}function PA(l,f){if(typeof f=="function")return l=l(),f(l),function(){f(null)};if(f!=null)return l=l(),f.current=l,function(){f.current=null}}function RA(l,f,g){return g=g!=null?g.concat([l]):null,fv(4,4,PA.bind(null,f,l),g)}function Vx(){}function NA(l,f){var g=Pi();f=f===void 0?null:f;var x=g.memoizedState;return x!==null&&f!==null&&Ox(f,x[1])?x[0]:(g.memoizedState=[l,f],l)}function MA(l,f){var g=Pi();f=f===void 0?null:f;var x=g.memoizedState;return x!==null&&f!==null&&Ox(f,x[1])?x[0]:(l=l(),g.memoizedState=[l,f],l)}function kA(l,f,g){return(ld&21)===0?(l.baseState&&(l.baseState=!1,Ds=!0),l.memoizedState=g):(lo(g,f)||(g=Xu(),Ln.lanes|=g,cd|=g,l.baseState=!0),f)}function ZX(l,f){var g=Kt;Kt=g!==0&&4>g?g:4,l(!0);var x=Dx.transition;Dx.transition={};try{l(!1),f()}finally{Kt=g,Dx.transition=x}}function DA(){return Pi().memoizedState}function JX(l,f,g){var x=Ec(l);if(g={lane:x,action:g,hasEagerState:!1,eagerState:null,next:null},OA(l))$A(f,g);else if(g=fA(l,f,g,x),g!==null){var A=gs();po(g,l,x,A),FA(g,f,x)}}function eZ(l,f,g){var x=Ec(l),A={lane:x,action:g,hasEagerState:!1,eagerState:null,next:null};if(OA(l))$A(f,A);else{var M=l.alternate;if(l.lanes===0&&(M===null||M.lanes===0)&&(M=f.lastRenderedReducer,M!==null))try{var H=f.lastRenderedState,J=M(H,g);if(A.hasEagerState=!0,A.eagerState=J,lo(J,H)){var te=f.interleaved;te===null?(A.next=A,Ix(f)):(A.next=te.next,te.next=A),f.interleaved=A;return}}catch{}finally{}g=fA(l,f,A,x),g!==null&&(A=gs(),po(g,l,x,A),FA(g,f,x))}}function OA(l){var f=l.alternate;return l===Ln||f!==null&&f===Ln}function $A(l,f){_1=uv=!0;var g=l.pending;g===null?f.next=f:(f.next=g.next,g.next=f),l.pending=f}function FA(l,f,g){if((g&4194240)!==0){var x=f.lanes;x&=l.pendingLanes,g|=x,f.lanes=g,ac(l,g)}}var hv={readContext:Ii,useCallback:ts,useContext:ts,useEffect:ts,useImperativeHandle:ts,useInsertionEffect:ts,useLayoutEffect:ts,useMemo:ts,useReducer:ts,useRef:ts,useState:ts,useDebugValue:ts,useDeferredValue:ts,useTransition:ts,useMutableSource:ts,useSyncExternalStore:ts,useId:ts,unstable_isNewReconciler:!1},tZ={readContext:Ii,useCallback:function(l,f){return ra().memoizedState=[l,f===void 0?null:f],l},useContext:Ii,useEffect:TA,useImperativeHandle:function(l,f,g){return g=g!=null?g.concat([l]):null,dv(4194308,4,PA.bind(null,f,l),g)},useLayoutEffect:function(l,f){return dv(4194308,4,l,f)},useInsertionEffect:function(l,f){return dv(4,2,l,f)},useMemo:function(l,f){var g=ra();return f=f===void 0?null:f,l=l(),g.memoizedState=[l,f],l},useReducer:function(l,f,g){var x=ra();return f=g!==void 0?g(f):f,x.memoizedState=x.baseState=f,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:f},x.queue=l,l=l.dispatch=JX.bind(null,Ln,l),[x.memoizedState,l]},useRef:function(l){var f=ra();return l={current:l},f.memoizedState=l},useState:SA,useDebugValue:Vx,useDeferredValue:function(l){return ra().memoizedState=l},useTransition:function(){var l=SA(!1),f=l[0];return l=ZX.bind(null,l[1]),ra().memoizedState=l,[f,l]},useMutableSource:function(){},useSyncExternalStore:function(l,f,g){var x=Ln,A=ra();if(On){if(g===void 0)throw Error(n(407));g=g()}else{if(g=f(),Mr===null)throw Error(n(349));(ld&30)!==0||xA(x,f,g)}A.memoizedState=g;var M={value:g,getSnapshot:f};return A.queue=M,TA(_A.bind(null,x,M,l),[l]),x.flags|=2048,S1(9,wA.bind(null,x,M,g,f),void 0,null),g},useId:function(){var l=ra(),f=Mr.identifierPrefix;if(On){var g=Za,x=Xa;g=(x&~(1<<32-hs(x)-1)).toString(32)+g,f=":"+f+"R"+g,g=E1++,0<g&&(f+="H"+g.toString(32)),f+=":"}else g=XX++,f=":"+f+"r"+g.toString(32)+":";return l.memoizedState=f},unstable_isNewReconciler:!1},nZ={readContext:Ii,useCallback:NA,useContext:Ii,useEffect:zx,useImperativeHandle:RA,useInsertionEffect:AA,useLayoutEffect:IA,useMemo:MA,useReducer:jx,useRef
vendor: 6,430 bytes, lines 81-83
81:CA,useState:function(){return jx(b1)},useDebugValue:Vx,useDeferredValue:function(l){var f=Pi();return kA(f,yr.memoizedState,l)},useTransition:function(){var l=jx(b1)[0],f=Pi().memoizedState;return[l,f]},useMutableSource:vA,useSyncExternalStore:yA,useId:DA,unstable_isNewReconciler:!1},rZ={readContext:Ii,useCallback:NA,useContext:Ii,useEffect:zx,useImperativeHandle:RA,useInsertionEffect:AA,useLayoutEffect:IA,useMemo:MA,useReducer:Lx,useRef:CA,useState:function(){return Lx(b1)},useDebugValue:Vx,useDeferredValue:function(l){var f=Pi();return yr===null?f.memoizedState=l:kA(f,yr.memoizedState,l)},useTransition:function(){var l=Lx(b1)[0],f=Pi().memoizedState;return[l,f]},useMutableSource:vA,useSyncExternalStore:yA,useId:DA,unstable_isNewReconciler:!1};function uo(l,f){if(l&&l.defaultProps){f=oe({},f),l=l.defaultProps;for(var g in l)f[g]===void 0&&(f[g]=l[g]);return f}return f}function Bx(l,f,g,x){f=l.memoizedState,g=g(x,f),g=g==null?f:oe({},f,g),l.memoizedState=g,l.lanes===0&&(l.updateQueue.baseState=g)}var pv={isMounted:function(l){return(l=l._reactInternals)?to(l)===l:!1},enqueueSetState:function(l,f,g){l=l._reactInternals;var x=gs(),A=Ec(l),M=el(x,A);M.payload=f,g!=null&&(M.callback=g),f=yc(l,M,A),f!==null&&(po(f,l,A,x),ov(f,l,A))},enqueueReplaceState:function(l,f,g){l=l._reactInternals;var x=gs(),A=Ec(l),M=el(x,A);M.tag=1,M.payload=f,g!=null&&(M.callback=g),f=yc(l,M,A),f!==null&&(po(f,l,A,x),ov(f,l,A))},enqueueForceUpdate:function(l,f){l=l._reactInternals;var g=gs(),x=Ec(l),A=el(g,x);A.tag=2,f!=null&&(A.callback=f),f=yc(l,A,x),f!==null&&(po(f,l,x,g),ov(f,l,x))}};function jA(l,f,g,x,A,M,H){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(x,M,H):f.prototype&&f.prototype.isPureReactComponent?!u1(g,x)||!u1(A,M):!0}function LA(l,f,g){var x=!1,A=mc,M=f.contextType;return typeof M=="object"&&M!==null?M=Ii(M):(A=ks(f)?rd:es.current,x=f.contextTypes,M=(x=x!=null)?ph(l,A):mc),f=new f(g,M),l.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=pv,l.stateNode=f,f._reactInternals=l,x&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=A,l.__reactInternalMemoizedMaskedChildContext=M),f}function zA(l,f,g,x){l=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(g,x),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(g,x),f.state!==l&&pv.enqueueReplaceState(f,f.state,null)}function Hx(l,f,g,x){var A=l.stateNode;A.props=g,A.state=l.memoizedState,A.refs={},Px(l);var M=f.contextType;typeof M=="object"&&M!==null?A.context=Ii(M):(M=ks(f)?rd:es.current,A.context=ph(l,M)),A.state=l.memoizedState,M=f.getDerivedStateFromProps,typeof M=="function"&&(Bx(l,f,M,g),A.state=l.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(f=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),f!==A.state&&pv.enqueueReplaceState(A,A.state,null),av(l,g,A,x),A.state=l.memoizedState),typeof A.componentDidMount=="function"&&(l.flags|=4194308)}function Eh(l,f){try{var g="",x=f;do g+=Ae(x),x=x.return;while(x);var A=g}catch(M){A=`
82Error generating stack: `+M.message+`
83`+M.stack}return{value:l,source:f,stack:A,digest:null}}function Ux(l,f,g){return{value:l,source:null,stack:g??null,digest:f??null}}function Wx(l,f){try{console.error(f.value)}catch(g){setTimeout(function(){throw g})}}var sZ=typeof WeakMap=="function"?WeakMap:Map;function VA(l,f,g){g=el(-1,g),g.tag=3,g.payload={element:null};var x=f.value;return g.callback=function(){_v||(_v=!0,ow=x),Wx(l,f)},g}function BA(l,f,g){g=el(-1,g),g.tag=3;var x=l.type.getDerivedStateFromError;if(typeof x=="function"){var A=f.value;g.payload=function(){return x(A)},g.callback=function(){Wx(l,f)}}var M=l.stateNode;return M!==null&&typeof M.componentDidCatch=="function"&&(g.callback=function(){Wx(l,f),typeof x!="function"&&(wc===null?wc=new Set([this]):wc.add(this));var H=f.stack;this.componentDidCatch(f.value,{componentStack:H!==null?H:""})}),g}function HA(l,f,g){var x=l.pingCache;if(x===null){x=l.pingCache=new sZ;var A=new Set;x.set(f,A)}else A=x.get(f),A===void 0&&(A=new Set,x.set(f,A));A.has(g)||(A.add(g),l=yZ.bind(null,l,f,g),f.then(l,l))}function UA(l){do{var f;if((f=l.tag===13)&&(f=l.memoizedState,f=f!==null?f.dehydrated!==null:!0),f)return l;l=l.return}while(l!==null);return null}function WA(l,f,g,x,A){return(l.mode&1)===0?(l===f?l.flags|=65536:(l.flags|=128,g.flags|=131072,g.flags&=-52805,g.tag===1&&(g.alternate===null?g.tag=17:(f=el(-1,1),f.tag=2,yc(g,f,1))),g.lanes|=1),l):(l.flags|=65536,l.lanes=A,l)}var iZ=z.ReactCurrentOwner,Ds=!1;function ms(l,f,g,x){f.child=l===null?dA(f,null,g,x):yh(f,l.child,g,x)}function qA(l,f,g,x,A){g=g.render;var M=f.ref;return wh(f,A),x=$x(l,f,g,x,M,A),g=Fx(),l!==null&&!Ds?(f.updateQueue=l.updateQueue,f.flags&=-2053,l.lanes&=~A,tl(l,f,A)):(On&&g&&xx(f),f.flags|=1,ms(l,f,x,A),f.child)}function GA(l,f,g,x,A){if(l===null){var M=g.type;return typeof M=="function"&&!hw(M)&&M.defaultProps===void 0&&g.compare===null&&g.defaultProps===void 0?(f.tag=15,f.type=M,KA(l,f,M,x,A)):(l=Av(g.type,null,x,f,f.mode,A),l.ref=f.ref,l.return=f,f.child=l)}if(M=l.child,(l.lanes&A)===0){var H=M.memoizedProps;if(g=g.compare,g=g!==null?g:u1,g(H,x)&&l.ref===f.ref)return tl(l,f,A)}return f.flags|=1,l=Sc(M,x),l.ref=f.ref,l.return=f,f.child=l}function KA(l,f,g,x,A){if(l!==null){var M=l.memoizedProps;if(u1(M,x)&&l.ref===f.ref)if(Ds=!1,f.pendingProps=x=M,(l.lanes&A)!==0)(l.flags&131072)!==0&&(Ds=!0);else return f.lanes=l.lanes,tl(l,f,A)}return qx(l,f,g,x,A)}function YA(l,f,g){var x=f.pendingProps,A=x.children,M=l!==null?l.memoizedState:null;if(x.mode==="hidden")if((f.mode&1)===0)f.memoizedState={baseLanes:0,cachePool:null,transitions:null},Sn(Sh,oi),oi|=g;else{if((g&1073741824)===0)return l=M!==null?M.baseLanes|g:g,f.lanes=f.childLanes=1073741824,f.memoizedState={baseLanes:l,cachePool:null,transitions:null},f.updateQueue=null,Sn(Sh,oi),oi|=l,null;f.memoizedState={baseLanes:0,cachePool:null,transitions:null},x=M!==null?M.baseLanes:g,Sn(Sh,oi),oi|=x}else M!==null?(x=M.baseLanes|g,f.memoizedState=null):x=g,Sn(Sh,oi),oi|=x;return ms(l,f,A,g),f.child}function QA(l,f){var g=f.ref;(l===null&&g!==null||l!==null&&l.ref!==g)&&(f.flags|=512,f.flags|=2097152)}
vendor: 4,803 bytes, line 83
83function qx(l,f,g,x,A){var M=ks(g)?rd:es.current;return M=ph(f,M),wh(f,A),g=$x(l,f,g,x,M,A),x=Fx(),l!==null&&!Ds?(f.updateQueue=l.updateQueue,f.flags&=-2053,l.lanes&=~A,tl(l,f,A)):(On&&x&&xx(f),f.flags|=1,ms(l,f,g,A),f.child)}function XA(l,f,g,x,A){if(ks(g)){var M=!0;Zg(f)}else M=!1;if(wh(f,A),f.stateNode===null)gv(l,f),LA(f,g,x),Hx(f,g,x,A),x=!0;else if(l===null){var H=f.stateNode,J=f.memoizedProps;H.props=J;var te=H.context,fe=g.contextType;typeof fe=="object"&&fe!==null?fe=Ii(fe):(fe=ks(g)?rd:es.current,fe=ph(f,fe));var Ee=g.getDerivedStateFromProps,Ce=typeof Ee=="function"||typeof H.getSnapshotBeforeUpdate=="function";Ce||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(J!==x||te!==fe)&&zA(f,H,x,fe),vc=!1;var _e=f.memoizedState;H.state=_e,av(f,x,H,A),te=f.memoizedState,J!==x||_e!==te||Ms.current||vc?(typeof Ee=="function"&&(Bx(f,g,Ee,x),te=f.memoizedState),(J=vc||jA(f,g,J,x,_e,te,fe))?(Ce||typeof H.UNSAFE_componentWillMount!="function"&&typeof H.componentWillMount!="function"||(typeof H.componentWillMount=="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount=="function"&&H.UNSAFE_componentWillMount()),typeof H.componentDidMount=="function"&&(f.flags|=4194308)):(typeof H.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=x,f.memoizedState=te),H.props=x,H.state=te,H.context=fe,x=J):(typeof H.componentDidMount=="function"&&(f.flags|=4194308),x=!1)}else{H=f.stateNode,hA(l,f),J=f.memoizedProps,fe=f.type===f.elementType?J:uo(f.type,J),H.props=fe,Ce=f.pendingProps,_e=H.context,te=g.contextType,typeof te=="object"&&te!==null?te=Ii(te):(te=ks(g)?rd:es.current,te=ph(f,te));var Ve=g.getDerivedStateFromProps;(Ee=typeof Ve=="function"||typeof H.getSnapshotBeforeUpdate=="function")||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(J!==Ce||_e!==te)&&zA(f,H,x,te),vc=!1,_e=f.memoizedState,H.state=_e,av(f,x,H,A);var Ke=f.memoizedState;J!==Ce||_e!==Ke||Ms.current||vc?(typeof Ve=="function"&&(Bx(f,g,Ve,x),Ke=f.memoizedState),(fe=vc||jA(f,g,fe,x,_e,Ke,te)||!1)?(Ee||typeof H.UNSAFE_componentWillUpdate!="function"&&typeof H.componentWillUpdate!="function"||(typeof H.componentWillUpdate=="function"&&H.componentWillUpdate(x,Ke,te),typeof H.UNSAFE_componentWillUpdate=="function"&&H.UNSAFE_componentWillUpdate(x,Ke,te)),typeof H.componentDidUpdate=="function"&&(f.flags|=4),typeof H.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof H.componentDidUpdate!="function"||J===l.memoizedProps&&_e===l.memoizedState||(f.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||J===l.memoizedProps&&_e===l.memoizedState||(f.flags|=1024),f.memoizedProps=x,f.memoizedState=Ke),H.props=x,H.state=Ke,H.context=te,x=fe):(typeof H.componentDidUpdate!="function"||J===l.memoizedProps&&_e===l.memoizedState||(f.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||J===l.memoizedProps&&_e===l.memoizedState||(f.flags|=1024),x=!1)}return Gx(l,f,g,x,M,A)}function Gx(l,f,g,x,A,M){QA(l,f);var H=(f.flags&128)!==0;if(!x&&!H)return A&&nA(f,g,!1),tl(l,f,M);x=f.stateNode,iZ.current=f;var J=H&&typeof g.getDerivedStateFromError!="function"?null:x.render();return f.flags|=1,l!==null&&H?(f.child=yh(f,l.child,null,M),f.child=yh(f,null,J,M)):ms(l,f,J,M),f.memoizedState=x.state,A&&nA(f,g,!0),f.child}function ZA(l){var f=l.stateNode;f.pendingContext?eA(l,f.pendingContext,f.pendingContext!==f.context):f.context&&eA(l,f.context,!1),Rx(l,f.containerInfo)}function JA(l,f,g,x,A){return vh(),bx(A),f.flags|=256,ms(l,f,g,x),f.child}var Kx={dehydrated:null,treeContext:null,retryLane:0};function Yx(l){return{baseLanes:l,cachePool:null,transitions:null}}function eI(l,f,g){var x=f.pendingProps,A=jn.current,M=!1,H=(f.flags&128)!==0,J;if((J=H)||(J=l!==null&&l.memoizedState===null?!1:(A&2)!==0),J?(M=!0,f.flags&=-129):(l===null||l.memoizedState!==null)&&(A|=1),Sn(jn,A&1),l===null)return Ex(f),l=f.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?((f.mode&1)===0?f.lanes=1:l.data==="$!"?f.lanes=8:f.lanes=1073741824,null):(H=x.children,l=x.fallback,M?(x=f.mode,M=f.child,H={mode:"hidden",children:H},(x&1)===0&&M!==null?(M.childLanes=0,M.pendingProps=H):M=Iv(H,x,0,null),l=hd(l,x,g,null),M.return=f,l.return=f,M.sibling=l,f.child=M,f.child.memoizedState=Yx(g),f.memoizedState=Kx,l):Qx(f,H));if(A=l.memoizedState,A!==null&&(J=A.dehydrated,J!==null))return oZ(l,f,H,x,J,A,g);if(M){M=x.fallback,H=f.mode,A=l.child,J=A.sibling;var te={mode:"hidden",children:x.children};return(H&1)===0&&f.child!==A?(x=f.child,x.childLanes=0,x.pendingProps=te,f.deletions=null):(x=Sc(A,te),x.subtreeFlags=A.subtreeFlags&14680064),J!==null?M=Sc(J,M):(M=hd(M,H,g,null),M.flags|=2),M.return=f,x.return=f,x.sibling=M,f.child=x,x=M,M=f.child,H=l.child.memoizedState,H=H===null?Yx(g):{base
vendor: 5,747 bytes, line 83
83Lanes:H.baseLanes|g,cachePool:null,transitions:H.transitions},M.memoizedState=H,M.childLanes=l.childLanes&~g,f.memoizedState=Kx,x}return M=l.child,l=M.sibling,x=Sc(M,{mode:"visible",children:x.children}),(f.mode&1)===0&&(x.lanes=g),x.return=f,x.sibling=null,l!==null&&(g=f.deletions,g===null?(f.deletions=[l],f.flags|=16):g.push(l)),f.child=x,f.memoizedState=null,x}function Qx(l,f){return f=Iv({mode:"visible",children:f},l.mode,0,null),f.return=l,l.child=f}function mv(l,f,g,x){return x!==null&&bx(x),yh(f,l.child,null,g),l=Qx(f,f.pendingProps.children),l.flags|=2,f.memoizedState=null,l}function oZ(l,f,g,x,A,M,H){if(g)return f.flags&256?(f.flags&=-257,x=Ux(Error(n(422))),mv(l,f,H,x)):f.memoizedState!==null?(f.child=l.child,f.flags|=128,null):(M=x.fallback,A=f.mode,x=Iv({mode:"visible",children:x.children},A,0,null),M=hd(M,A,H,null),M.flags|=2,x.return=f,M.return=f,x.sibling=M,f.child=x,(f.mode&1)!==0&&yh(f,l.child,null,H),f.child.memoizedState=Yx(H),f.memoizedState=Kx,M);if((f.mode&1)===0)return mv(l,f,H,null);if(A.data==="$!"){if(x=A.nextSibling&&A.nextSibling.dataset,x)var J=x.dgst;return x=J,M=Error(n(419)),x=Ux(M,x,void 0),mv(l,f,H,x)}if(J=(H&l.childLanes)!==0,Ds||J){if(x=Mr,x!==null){switch(H&-H){case 4:A=2;break;case 16:A=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:A=32;break;case 536870912:A=268435456;break;default:A=0}A=(A&(x.suspendedLanes|H))!==0?0:A,A!==0&&A!==M.retryLane&&(M.retryLane=A,Ja(l,A),po(x,l,A,-1))}return fw(),x=Ux(Error(n(421))),mv(l,f,H,x)}return A.data==="$?"?(f.flags|=128,f.child=l.child,f=xZ.bind(null,l),A._reactRetry=f,null):(l=M.treeContext,ii=hc(A.nextSibling),si=f,On=!0,co=null,l!==null&&(Ti[Ai++]=Xa,Ti[Ai++]=Za,Ti[Ai++]=sd,Xa=l.id,Za=l.overflow,sd=f),f=Qx(f,x.children),f.flags|=4096,f)}function tI(l,f,g){l.lanes|=f;var x=l.alternate;x!==null&&(x.lanes|=f),Ax(l.return,f,g)}function Xx(l,f,g,x,A){var M=l.memoizedState;M===null?l.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:x,tail:g,tailMode:A}:(M.isBackwards=f,M.rendering=null,M.renderingStartTime=0,M.last=x,M.tail=g,M.tailMode=A)}function nI(l,f,g){var x=f.pendingProps,A=x.revealOrder,M=x.tail;if(ms(l,f,x.children,g),x=jn.current,(x&2)!==0)x=x&1|2,f.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=f.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&tI(l,g,f);else if(l.tag===19)tI(l,g,f);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===f)break e;for(;l.sibling===null;){if(l.return===null||l.return===f)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}x&=1}if(Sn(jn,x),(f.mode&1)===0)f.memoizedState=null;else switch(A){case"forwards":for(g=f.child,A=null;g!==null;)l=g.alternate,l!==null&&lv(l)===null&&(A=g),g=g.sibling;g=A,g===null?(A=f.child,f.child=null):(A=g.sibling,g.sibling=null),Xx(f,!1,A,g,M);break;case"backwards":for(g=null,A=f.child,f.child=null;A!==null;){if(l=A.alternate,l!==null&&lv(l)===null){f.child=A;break}l=A.sibling,A.sibling=g,g=A,A=l}Xx(f,!0,g,null,M);break;case"together":Xx(f,!1,null,null,void 0);break;default:f.memoizedState=null}return f.child}function gv(l,f){(f.mode&1)===0&&l!==null&&(l.alternate=null,f.alternate=null,f.flags|=2)}function tl(l,f,g){if(l!==null&&(f.dependencies=l.dependencies),cd|=f.lanes,(g&f.childLanes)===0)return null;if(l!==null&&f.child!==l.child)throw Error(n(153));if(f.child!==null){for(l=f.child,g=Sc(l,l.pendingProps),f.child=g,g.return=f;l.sibling!==null;)l=l.sibling,g=g.sibling=Sc(l,l.pendingProps),g.return=f;g.sibling=null}return f.child}function aZ(l,f,g){switch(f.tag){case 3:ZA(f),vh();break;case 5:gA(f);break;case 1:ks(f.type)&&Zg(f);break;case 4:Rx(f,f.stateNode.containerInfo);break;case 10:var x=f.type._context,A=f.memoizedProps.value;Sn(sv,x._currentValue),x._currentValue=A;break;case 13:if(x=f.memoizedState,x!==null)return x.dehydrated!==null?(Sn(jn,jn.current&1),f.flags|=128,null):(g&f.child.childLanes)!==0?eI(l,f,g):(Sn(jn,jn.current&1),l=tl(l,f,g),l!==null?l.sibling:null);Sn(jn,jn.current&1);break;case 19:if(x=(g&f.childLanes)!==0,(l.flags&128)!==0){if(x)return nI(l,f,g);f.flags|=128}if(A=f.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Sn(jn,jn.current),x)break;return null;case 22:case 23:return f.lanes=0,YA(l,f,g)}return tl(l,f,g)}var rI,Zx,sI,iI;rI=function(l,f){for(var g=f.child;g!==null;){if(g.tag===5||g.tag===6)l.appendChild(g.stateNode);else if(g.tag!==4&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===f)break;for(;g.sibling===null;){if(g.return===null||g.return===f)return;g=g.return}g.sibling.return=g.return,g=g.sibling}},Zx=function(){},sI=function(l,f,g,x){var A=l.memoizedProps;if(A!==x){l=f.stateNode,ad(na.current);var M=null;switch(g){case"input":A=Rt(l,A),x=Rt(l,x),M=[];break;case"select":A=oe({},A,{value:void 0}),x=oe({},x,{value:void 0}),M=[];break;case"textarea":A=K(l,A),x=K(l,x),M=[];break;default:typeof A.onClick!="function"&&typeof x.onClick=="function"&&(l.onclick=Yg)}nc(g,x);var H;g=null;for(fe in A)if(!x.hasOwnProperty(fe)&&A.hasOwnProperty(fe)&&A[fe]!=null)if(fe==="style"){var J=A[fe];for(H in J)J.hasOwnProperty(H)&&(g||(g={}),g[H]="")}else fe!=="dangerouslySetInnerHTML"&&fe!=="children"&&fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&fe!=="autoFocus"&&(s.hasOwnProperty(fe)?M||(M=[]):(M=M||[]).push(fe,null));for(fe in x){var te=x[fe];if(J=A?.[fe],x.hasOwnProperty(fe)&&te!==J&&(te!=null||J!=null))if(fe==="style")if(J){for(H in J)!J.hasOwnProperty(H)||te&&te.hasOwnProperty(H)||(g||(g={}),g[H]="");for(H in te)te.hasOwnProperty(H)&&J[H]!==te[H]&&(g||(g={}),g[H]=te[H])}
vendor: 28,588 bytes, line 83
83else g||(M||(M=[]),M.push(fe,g)),g=te;else fe==="dangerouslySetInnerHTML"?(te=te?te.__html:void 0,J=J?J.__html:void 0,te!=null&&J!==te&&(M=M||[]).push(fe,te)):fe==="children"?typeof te!="string"&&typeof te!="number"||(M=M||[]).push(fe,""+te):fe!=="suppressContentEditableWarning"&&fe!=="suppressHydrationWarning"&&(s.hasOwnProperty(fe)?(te!=null&&fe==="onScroll"&&Nn("scroll",l),M||J===te||(M=[])):(M=M||[]).push(fe,te))}g&&(M=M||[]).push("style",g);var fe=M;(f.updateQueue=fe)&&(f.flags|=4)}},iI=function(l,f,g,x){g!==x&&(f.flags|=4)};function C1(l,f){if(!On)switch(l.tailMode){case"hidden":f=l.tail;for(var g=null;f!==null;)f.alternate!==null&&(g=f),f=f.sibling;g===null?l.tail=null:g.sibling=null;break;case"collapsed":g=l.tail;for(var x=null;g!==null;)g.alternate!==null&&(x=g),g=g.sibling;x===null?f||l.tail===null?l.tail=null:l.tail.sibling=null:x.sibling=null}}function ns(l){var f=l.alternate!==null&&l.alternate.child===l.child,g=0,x=0;if(f)for(var A=l.child;A!==null;)g|=A.lanes|A.childLanes,x|=A.subtreeFlags&14680064,x|=A.flags&14680064,A.return=l,A=A.sibling;else for(A=l.child;A!==null;)g|=A.lanes|A.childLanes,x|=A.subtreeFlags,x|=A.flags,A.return=l,A=A.sibling;return l.subtreeFlags|=x,l.childLanes=g,f}function lZ(l,f,g){var x=f.pendingProps;switch(wx(f),f.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ns(f),null;case 1:return ks(f.type)&&Xg(),ns(f),null;case 3:return x=f.stateNode,_h(),Mn(Ms),Mn(es),kx(),x.pendingContext&&(x.context=x.pendingContext,x.pendingContext=null),(l===null||l.child===null)&&(nv(f)?f.flags|=4:l===null||l.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,co!==null&&(cw(co),co=null))),Zx(l,f),ns(f),null;case 5:Nx(f);var A=ad(w1.current);if(g=f.type,l!==null&&f.stateNode!=null)sI(l,f,g,x,A),l.ref!==f.ref&&(f.flags|=512,f.flags|=2097152);else{if(!x){if(f.stateNode===null)throw Error(n(166));return ns(f),null}if(l=ad(na.current),nv(f)){x=f.stateNode,g=f.type;var M=f.memoizedProps;switch(x[ta]=f,x[m1]=M,l=(f.mode&1)!==0,g){case"dialog":Nn("cancel",x),Nn("close",x);break;case"iframe":case"object":case"embed":Nn("load",x);break;case"video":case"audio":for(A=0;A<f1.length;A++)Nn(f1[A],x);break;case"source":Nn("error",x);break;case"img":case"image":case"link":Nn("error",x),Nn("load",x);break;case"details":Nn("toggle",x);break;case"input":Tt(x,M),Nn("invalid",x);break;case"select":x._wrapperState={wasMultiple:!!M.multiple},Nn("invalid",x);break;case"textarea":se(x,M),Nn("invalid",x)}nc(g,M),A=null;for(var H in M)if(M.hasOwnProperty(H)){var J=M[H];H==="children"?typeof J=="string"?x.textContent!==J&&(M.suppressHydrationWarning!==!0&&Kg(x.textContent,J,l),A=["children",J]):typeof J=="number"&&x.textContent!==""+J&&(M.suppressHydrationWarning!==!0&&Kg(x.textContent,J,l),A=["children",""+J]):s.hasOwnProperty(H)&&J!=null&&H==="onScroll"&&Nn("scroll",x)}switch(g){case"input":Ze(x),Pr(x,M,!0);break;case"textarea":Ze(x),Me(x);break;case"select":case"option":break;default:typeof M.onClick=="function"&&(x.onclick=Yg)}x=A,f.updateQueue=x,x!==null&&(f.flags|=4)}else{H=A.nodeType===9?A:A.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=be(g)),l==="http://www.w3.org/1999/xhtml"?g==="script"?(l=H.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof x.is=="string"?l=H.createElement(g,{is:x.is}):(l=H.createElement(g),g==="select"&&(H=l,x.multiple?H.multiple=!0:x.size&&(H.size=x.size))):l=H.createElementNS(l,g),l[ta]=f,l[m1]=x,rI(l,f,!1,!1),f.stateNode=l;e:{switch(H=Hu(g,x),g){case"dialog":Nn("cancel",l),Nn("close",l),A=x;break;case"iframe":case"object":case"embed":Nn("load",l),A=x;break;case"video":case"audio":for(A=0;A<f1.length;A++)Nn(f1[A],l);A=x;break;case"source":Nn("error",l),A=x;break;case"img":case"image":case"link":Nn("error",l),Nn("load",l),A=x;break;case"details":Nn("toggle",l),A=x;break;case"input":Tt(l,x),A=Rt(l,x),Nn("invalid",l);break;case"option":A=x;break;case"select":l._wrapperState={wasMultiple:!!x.multiple},A=oe({},x,{value:void 0}),Nn("invalid",l);break;case"textarea":se(l,x),A=K(l,x),Nn("invalid",l);break;default:A=x}nc(g,A),J=A;for(M in J)if(J.hasOwnProperty(M)){var te=J[M];M==="style"?Ba(l,te):M==="dangerouslySetInnerHTML"?(te=te?te.__html:void 0,te!=null&&zt(l,te)):M==="children"?typeof te=="string"?(g!=="textarea"||te!=="")&&hn(l,te):typeof te=="number"&&hn(l,""+te):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(s.hasOwnProperty(M)?te!=null&&M==="onScroll"&&Nn("scroll",l):te!=null&&R(l,M,te,H))}switch(g){case"input":Ze(l),Pr(l,x,!1);break;case"textarea":Ze(l),Me(l);break;case"option":x.value!=null&&l.setAttribute("value",""+xe(x.value));break;case"select":l.multiple=!!x.multiple,M=x.value,M!=null?nt(l,!!x.multiple,M,!1):x.defaultValue!=null&&nt(l,!!x.multiple,x.defaultValue,!0);break;default:typeof A.onClick=="function"&&(l.onclick=Yg)}switch(g){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break e;case"img":x=!0;break e;default:x=!1}}x&&(f.flags|=4)}f.ref!==null&&(f.flags|=512,f.flags|=2097152)}return ns(f),null;case 6:if(l&&f.stateNode!=null)iI(l,f,l.memoizedProps,x);else{if(typeof x!="string"&&f.stateNode===null)throw Error(n(166));if(g=ad(w1.current),ad(na.current),nv(f)){if(x=f.stateNode,g=f.memoizedProps,x[ta]=f,(M=x.nodeValue!==g)&&(l=si,l!==null))switch(l.tag){case 3:Kg(x.nodeValue,g,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&Kg(x.nodeValue,g,(l.mode&1)!==0)}M&&(f.flags|=4)}else x=(g.nodeType===9?g:g.ownerDocument).createTextNode(x),x[ta]=f,f.stateNode=x}return ns(f),null;case 13:if(Mn(jn),x=f.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(On&&ii!==null&&(f.mode&1)!==0&&(f.flags&128)===0)lA(),vh(),f.flags|=98560,M=!1;else if(M=nv(f),x!==null&&x.dehydrated!==null){if(l===null){if(!M)throw Error(n(318));if(M=f.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(n(317));M[ta]=f}else vh(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;ns(f),M=!1}else co!==null&&(cw(co),co=null),M=!0;if(!M)return f.flags&65536?f:null}return(f.flags&128)!==0?(f.lanes=g,f):(x=x!==null,x!==(l!==null&&l.memoizedState!==null)&&x&&(f.child.flags|=8192,(f.mode&1)!==0&&(l===null||(jn.current&1)!==0?xr===0&&(xr=3):fw())),f.updateQueue!==null&&(f.flags|=4),ns(f),null);case 4:return _h(),Zx(l,f),l===null&&h1(f.stateNode.containerInfo),ns(f),null;case 10:return Tx(f.type._context),ns(f),null;case 17:return ks(f.type)&&Xg(),ns(f),null;case 19:if(Mn(jn),M=f.memoizedState,M===null)return ns(f),null;if(x=(f.flags&128)!==0,H=M.rendering,H===null)if(x)C1(M,!1);else{if(xr!==0||l!==null&&(l.flags&128)!==0)for(l=f.child;l!==null;){if(H=lv(l),H!==null){for(f.flags|=128,C1(M,!1),x=H.updateQueue,x!==null&&(f.updateQueue=x,f.flags|=4),f.subtreeFlags=0,x=g,g=f.child;g!==null;)M=g,l=x,M.flags&=14680066,H=M.alternate,H===null?(M.childLanes=0,M.lanes=l,M.child=null,M.subtreeFlags=0,M.memoizedProps=null,M.memoizedState=null,M.updateQueue=null,M.dependencies=null,M.stateNode=null):(M.childLanes=H.childLanes,M.lanes=H.lanes,M.child=H.child,M.subtreeFlags=0,M.deletions=null,M.memoizedProps=H.memoizedProps,M.memoizedState=H.memoizedState,M.updateQueue=H.updateQueue,M.type=H.type,l=H.dependencies,M.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),g=g.sibling;return Sn(jn,jn.current&1|2),f.child}l=l.sibling}M.tail!==null&&bn()>Ch&&(f.flags|=128,x=!0,C1(M,!1),f.lanes=4194304)}else{if(!x)if(l=lv(H),l!==null){if(f.flags|=128,x=!0,g=l.updateQueue,g!==null&&(f.updateQueue=g,f.flags|=4),C1(M,!0),M.tail===null&&M.tailMode==="hidden"&&!H.alternate&&!On)return ns(f),null}else 2*bn()-M.renderingStartTime>Ch&&g!==1073741824&&(f.flags|=128,x=!0,C1(M,!1),f.lanes=4194304);M.isBackwards?(H.sibling=f.child,f.child=H):(g=M.last,g!==null?g.sibling=H:f.child=H,M.last=H)}return M.tail!==null?(f=M.tail,M.rendering=f,M.tail=f.sibling,M.renderingStartTime=bn(),f.sibling=null,g=jn.current,Sn(jn,x?g&1|2:g&1),f):(ns(f),null);case 22:case 23:return dw(),x=f.memoizedState!==null,l!==null&&l.memoizedState!==null!==x&&(f.flags|=8192),x&&(f.mode&1)!==0?(oi&1073741824)!==0&&(ns(f),f.subtreeFlags&6&&(f.flags|=8192)):ns(f),null;case 24:return null;case 25:return null}throw Error(n(156,f.tag))}function cZ(l,f){switch(wx(f),f.tag){case 1:return ks(f.type)&&Xg(),l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 3:return _h(),Mn(Ms),Mn(es),kx(),l=f.flags,(l&65536)!==0&&(l&128)===0?(f.flags=l&-65537|128,f):null;case 5:return Nx(f),null;case 13:if(Mn(jn),l=f.memoizedState,l!==null&&l.dehydrated!==null){if(f.alternate===null)throw Error(n(340));vh()}return l=f.flags,l&65536?(f.flags=l&-65537|128,f):null;case 19:return Mn(jn),null;case 4:return _h(),null;case 10:return Tx(f.type._context),null;case 22:case 23:return dw(),null;case 24:return null;default:return null}}var vv=!1,rs=!1,uZ=typeof WeakSet=="function"?WeakSet:Set,qe=null;function bh(l,f){var g=l.ref;if(g!==null)if(typeof g=="function")try{g(null)}catch(x){qn(l,f,x)}else g.current=null}function Jx(l,f,g){try{g()}catch(x){qn(l,f,x)}}var oI=!1;function dZ(l,f){if(dx=uc,l=jT(),rx(l)){if("selectionStart"in l)var g={start:l.selectionStart,end:l.selectionEnd};else e:{g=(g=l.ownerDocument)&&g.defaultView||window;var x=g.getSelection&&g.getSelection();if(x&&x.rangeCount!==0){g=x.anchorNode;var A=x.anchorOffset,M=x.focusNode;x=x.focusOffset;try{g.nodeType,M.nodeType}catch{g=null;break e}var H=0,J=-1,te=-1,fe=0,Ee=0,Ce=l,_e=null;t:for(;;){for(var Ve;Ce!==g||A!==0&&Ce.nodeType!==3||(J=H+A),Ce!==M||x!==0&&Ce.nodeType!==3||(te=H+x),Ce.nodeType===3&&(H+=Ce.nodeValue.length),(Ve=Ce.firstChild)!==null;)_e=Ce,Ce=Ve;for(;;){if(Ce===l)break t;if(_e===g&&++fe===A&&(J=H),_e===M&&++Ee===x&&(te=H),(Ve=Ce.nextSibling)!==null)break;Ce=_e,_e=Ce.parentNode}Ce=Ve}g=J===-1||te===-1?null:{start:J,end:te}}else g=null}g=g||{start:0,end:0}}else g=null;for(fx={focusedElem:l,selectionRange:g},uc=!1,qe=f;qe!==null;)if(f=qe,l=f.child,(f.subtreeFlags&1028)!==0&&l!==null)l.return=f,qe=l;else for(;qe!==null;){f=qe;try{var Ke=f.alternate;if((f.flags&1024)!==0)switch(f.tag){case 0:case 11:case 15:break;case 1:if(Ke!==null){var Xe=Ke.memoizedProps,nr=Ke.memoizedState,le=f.stateNode,re=le.getSnapshotBeforeUpdate(f.elementType===f.type?Xe:uo(f.type,Xe),nr);le.__reactInternalSnapshotBeforeUpdate=re}break;case 3:var de=f.stateNode.containerInfo;de.nodeType===1?de.textContent="":de.nodeType===9&&de.documentElement&&de.removeChild(de.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(Re){qn(f,f.return,Re)}if(l=f.sibling,l!==null){l.return=f.return,qe=l;break}qe=f.return}return Ke=oI,oI=!1,Ke}function T1(l,f,g){var x=f.updateQueue;if(x=x!==null?x.lastEffect:null,x!==null){var A=x=x.next;do{if((A.tag&l)===l){var M=A.destroy;A.destroy=void 0,M!==void 0&&Jx(f,g,M)}A=A.next}while(A!==x)}}function yv(l,f){if(f=f.updateQueue,f=f!==null?f.lastEffect:null,f!==null){var g=f=f.next;do{if((g.tag&l)===l){var x=g.create;g.destroy=x()}g=g.next}while(g!==f)}}function ew(l){var f=l.ref;if(f!==null){var g=l.stateNode;switch(l.tag){case 5:l=g;break;default:l=g}typeof f=="function"?f(l):f.current=l}}function aI(l){var f=l.alternate;f!==null&&(l.alternate=null,aI(f)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(f=l.stateNode,f!==null&&(delete f[ta],delete f[m1],delete f[gx],delete f[GX],delete f[KX])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function lI(l){return l.tag===5||l.tag===3||l.tag===4}function cI(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||lI(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function tw(l,f,g){var x=l.tag;if(x===5||x===6)l=l.stateNode,f?g.nodeType===8?g.parentNode.insertBefore(l,f):g.insertBefore(l,f):(g.nodeType===8?(f=g.parentNode,f.insertBefore(l,g)):(f=g,f.appendChild(l)),g=g._reactRootContainer,g!=null||f.onclick!==null||(f.onclick=Yg));else if(x!==4&&(l=l.child,l!==null))for(tw(l,f,g),l=l.sibling;l!==null;)tw(l,f,g),l=l.sibling}function nw(l,f,g){var x=l.tag;if(x===5||x===6)l=l.stateNode,f?g.insertBefore(l,f):g.appendChild(l);else if(x!==4&&(l=l.child,l!==null))for(nw(l,f,g),l=l.sibling;l!==null;)nw(l,f,g),l=l.sibling}var Br=null,fo=!1;function xc(l,f,g){for(g=g.child;g!==null;)uI(l,f,g),g=g.sibling}function uI(l,f,g){if(ei&&typeof ei.onCommitFiberUnmount=="function")try{ei.onCommitFiberUnmount(Yu,g)}catch{}switch(g.tag){case 5:rs||bh(g,f);case 6:var x=Br,A=fo;Br=null,xc(l,f,g),Br=x,fo=A,Br!==null&&(fo?(l=Br,g=g.stateNode,l.nodeType===8?l.parentNode.removeChild(g):l.removeChild(g)):Br.removeChild(g.stateNode));break;case 18:Br!==null&&(fo?(l=Br,g=g.stateNode,l.nodeType===8?mx(l.parentNode,g):l.nodeType===1&&mx(l,g),oo(l)):mx(Br,g.stateNode));break;case 4:x=Br,A=fo,Br=g.stateNode.containerInfo,fo=!0,xc(l,f,g),Br=x,fo=A;break;case 0:case 11:case 14:case 15:if(!rs&&(x=g.updateQueue,x!==null&&(x=x.lastEffect,x!==null))){A=x=x.next;do{var M=A,H=M.destroy;M=M.tag,H!==void 0&&((M&2)!==0||(M&4)!==0)&&Jx(g,f,H),A=A.next}while(A!==x)}xc(l,f,g);break;case 1:if(!rs&&(bh(g,f),x=g.stateNode,typeof x.componentWillUnmount=="function"))try{x.props=g.memoizedProps,x.state=g.memoizedState,x.componentWillUnmount()}catch(J){qn(g,f,J)}xc(l,f,g);break;case 21:xc(l,f,g);break;case 22:g.mode&1?(rs=(x=rs)||g.memoizedState!==null,xc(l,f,g),rs=x):xc(l,f,g);break;default:xc(l,f,g)}}function dI(l){var f=l.updateQueue;if(f!==null){l.updateQueue=null;var g=l.stateNode;g===null&&(g=l.stateNode=new uZ),f.forEach(function(x){var A=wZ.bind(null,l,x);g.has(x)||(g.add(x),x.then(A,A))})}}function ho(l,f){var g=f.deletions;if(g!==null)for(var x=0;x<g.length;x++){var A=g[x];try{var M=l,H=f,J=H;e:for(;J!==null;){switch(J.tag){case 5:Br=J.stateNode,fo=!1;break e;case 3:Br=J.stateNode.containerInfo,fo=!0;break e;case 4:Br=J.stateNode.containerInfo,fo=!0;break e}J=J.return}if(Br===null)throw Error(n(160));uI(M,H,A),Br=null,fo=!1;var te=A.alternate;te!==null&&(te.return=null),A.return=null}catch(fe){qn(A,f,fe)}}if(f.subtreeFlags&12854)for(f=f.child;f!==null;)fI(f,l),f=f.sibling}function fI(l,f){var g=l.alternate,x=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(ho(f,l),sa(l),x&4){try{T1(3,l,l.return),yv(3,l)}catch(Xe){qn(l,l.return,Xe)}try{T1(5,l,l.return)}catch(Xe){qn(l,l.return,Xe)}}break;case 1:ho(f,l),sa(l),x&512&&g!==null&&bh(g,g.return);break;case 5:if(ho(f,l),sa(l),x&512&&g!==null&&bh(g,g.return),l.flags&32){var A=l.stateNode;try{hn(A,"")}catch(Xe){qn(l,l.return,Xe)}}if(x&4&&(A=l.stateNode,A!=null)){var M=l.memoizedProps,H=g!==null?g.memoizedProps:M,J=l.type,te=l.updateQueue;if(l.updateQueue=null,te!==null)try{J==="input"&&M.type==="radio"&&M.name!=null&&on(A,M),Hu(J,H);var fe=Hu(J,M);for(H=0;H<te.length;H+=2){var Ee=te[H],Ce=te[H+1];Ee==="style"?Ba(A,Ce):Ee==="dangerouslySetInnerHTML"?zt(A,Ce):Ee==="children"?hn(A,Ce):R(A,Ee,Ce,fe)}switch(J){case"input":Xt(A,M);break;case"textarea":ce(A,M);break;case"select":var _e=A._wrapperState.wasMultiple;A._wrapperState.wasMultiple=!!M.multiple;var Ve=M.value;Ve!=null?nt(A,!!M.multiple,Ve,!1):_e!==!!M.multiple&&(M.defaultValue!=null?nt(A,!!M.multiple,M.defaultValue,!0):nt(A,!!M.multiple,M.multiple?[]:"",!1))}A[m1]=M}catch(Xe){qn(l,l.return,Xe)}}break;case 6:if(ho(f,l),sa(l),x&4){if(l.stateNode===null)throw Error(n(162));A=l.stateNode,M=l.memoizedProps;try{A.nodeValue=M}catch(Xe){qn(l,l.return,Xe)}}break;case 3:if(ho(f,l),sa(l),x&4&&g!==null&&g.memoizedState.isDehydrated)try{oo(f.containerInfo)}catch(Xe){qn(l,l.return,Xe)}break;case 4:ho(f,l),sa(l);break;case 13:ho(f,l),sa(l),A=l.child,A.flags&8192&&(M=A.memoizedState!==null,A.stateNode.isHidden=M,!M||A.alternate!==null&&A.alternate.memoizedState!==null||(iw=bn())),x&4&&dI(l);break;case 22:if(Ee=g!==null&&g.memoizedState!==null,l.mode&1?(rs=(fe=rs)||Ee,ho(f,l),rs=fe):ho(f,l),sa(l),x&8192){if(fe=l.memoizedState!==null,(l.stateNode.isHidden=fe)&&!Ee&&(l.mode&1)!==0)for(qe=l,Ee=l.child;Ee!==null;){for(Ce=qe=Ee;qe!==null;){switch(_e=qe,Ve=_e.child,_e.tag){case 0:case 11:case 14:case 15:T1(4,_e,_e.return);break;case 1:bh(_e,_e.return);var Ke=_e.stateNode;if(typeof Ke.componentWillUnmount=="function"){x=_e,g=_e.return;try{f=x,Ke.props=f.memoizedProps,Ke.state=f.memoizedState,Ke.componentWillUnmount()}catch(Xe){qn(x,g,Xe)}}break;case 5:bh(_e,_e.return);break;case 22:if(_e.memoizedState!==null){mI(Ce);continue}}Ve!==null?(Ve.return=_e,qe=Ve):mI(Ce)}Ee=Ee.sibling}e:for(Ee=null,Ce=l;;){if(Ce.tag===5){if(Ee===null){Ee=Ce;try{A=Ce.stateNode,fe?(M=A.style,typeof M.setProperty=="function"?M.setProperty("display","none","important"):M.display="none"):(J=Ce.stateNode,te=Ce.memoizedProps.style,H=te!=null&&te.hasOwnProperty("display")?te.display:null,J.style.display=Va("display",H))}catch(Xe){qn(l,l.return,Xe)}}}else if(Ce.tag===6){if(Ee===null)try{Ce.stateNode.nodeValue=fe?"":Ce.memoizedProps}catch(Xe){qn(l,l.return,Xe)}}else if((Ce.tag!==22&&Ce.tag!==23||Ce.memoizedState===null||Ce===l)&&Ce.child!==null){Ce.child.return=Ce,Ce=Ce.child;continue}if(Ce===l)break e;for(;Ce.sibling===null;){if(Ce.return===null||Ce.return===l)break e;Ee===Ce&&(Ee=null),Ce=Ce.return}Ee===Ce&&(Ee=null),Ce.sibling.return=Ce.return,Ce=Ce.sibling}}break;case 19:ho(f,l),sa(l),x&4&&dI(l);break;case 21:break;default:ho(f,l),sa(l)}}function sa(l){var f=l.flags;if(f&2){try{e:{for(var g=l.return;g!==null;){if(lI(g)){var x=g;break e}g=g.return}throw Error(n(160))}switch(x.tag){case 5:var A=x.stateNode;x.flags&32&&(hn(A,""),x.flags&=-33);var M=cI(l);nw(l,M,A);break;case 3:case 4:var H=x.stateNode.containerInfo,J=cI(l);tw(l,J,H);break;default:throw Error(n(161))}}catch(te){qn(l,l.return,te)}l.flags&=-3}f&4096&&(l.flags&=-4097)}function fZ(l,f,g){qe=l,hI(l)}function hI(l,f,g){for(var x=(l.mode&1)!==0;qe!==null;){var A=qe,M=A.child;if(A.tag===22&&x){var H=A.memoizedState!==null||vv;if(!H){var J=A.alternate,te=J!==null&&J.memoizedState!==null||rs;J=vv;var fe=rs;if(vv=H,(rs=te)&&!fe)for(qe=A;qe!==null;)H=qe,te=H.child,H.tag===22&&H.memoizedState!==null?gI(A):te!==null?(te.return=H,qe=te):gI(A);for(;M!==null;)qe=M,hI(M),M=M.sibling;qe=A,vv=J,rs=fe}pI(l)}else(A.subtreeFlags&8772)!==0&&M!==null?(M.return=A,qe=M):pI(l)}}function pI(l){for(;qe!==null;){var f=qe;if((f.flags&8772)!==0){var g=f.alternate;try{if((f.flags&8772)!==0)switch(f.tag){case 0:case 11:case 15:rs||yv(5,f);break;case 1:var x=f.stateNode;if(f.flags&4&&!rs)if(g===null)x.componentDidMount();else{var A=f.elementType===f.type?g.memoizedProps:uo(f.type,g.memoizedProps);x.componentDidUpdate(A,g.memoizedState,x.__reactInternalSnapshotBeforeUpdate)}var M=f.updateQueue;M!==null&&mA(f,M,x);break;case 3:var H=f.updateQueue;if(H!==null){if(g=null,f.child!==null)switch(f.child.tag){case 5:g=f.child.stateNode;break;case 1:g=f.child.stateNode}mA(f,H,g)}break;case 5:var J=f.stateNode;if(g===null&&f.flags&4){g=J;var te=f.memoizedProps;switch(f.type){case"button":case"input":case"select":case"textarea":te.autoFocus&&g.focus();break;case"img":te.src&&(g.src=te.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(f.memoizedState===null){var fe=f.alternate;if(fe!==null){var Ee=fe.memoizedState;if(Ee!==null){var Ce=Ee.dehydrated;Ce!==null&&oo(Ce)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}rs||f.flags&512&&ew(f)}catch(_e){qn(f,f.return,_e)}}if(f===l){qe=null;break}if(g=f.sibling,g!==null){g.return=f.return,qe=g;break}qe=f.return}}function mI(l){for(;qe!==null;){var f=qe;if(f===l){qe=null;break}var g=f.sibling;if(g!==null){g.return=f.return,qe=g;break}qe=f.return}}function gI(l){for(;qe!==null;){var f=qe;try{switch(f.tag){case 0:case 11:case 15:var g=f.return;try{yv(4,f)}catch(te){qn(f,g,te)}break;case 1:var x=f.stateNode;if(typeof x.componentDidMount=="function"){var A=f.return;try{x.componentDidMount()}catch(te){qn(f,A,te)}}var M=f.return;try{ew(f)}catch(te){qn(f,M,te)}break;case 5:var H=f.return;try{ew(f)}catch(te){qn(f,H,te)}}}catch(te){qn(f,f.return,te)}if(f===l){qe=null;break}var J=f.sibling;if(J!==null){J.return=f.return,qe=J;break}qe=f.return}}var hZ=Math.ceil,xv=z.ReactCurrentDispatcher,rw=z.ReactCurrentOwner,Ri=z.ReactCurrentBatchConfig,nn=0,Mr=null,hr=null,Hr=0,oi=0,Sh=pc(0),xr=0,A1=null,cd=0,wv=0,sw=0,I1=null,Os=null,iw=0,Ch=1/0,nl=null,_v=!1,ow=null,wc=null,Ev=!1,_c=null,bv=0,P1=0,aw=null,Sv=-1,Cv=0;function gs(){return(nn&6)!==0?bn():Sv!==-1?Sv:Sv=bn()}function Ec(l){return(l.mode&1)===0?1:(nn&2)!==0&&Hr!==0?Hr&-Hr:QX.transition!==null?(Cv===0&&(Cv=Xu()),Cv):(l=Kt,l!==0||(l=window.event,l=l===void 0?16:r1(l.type)),l)}function po(l,f,g,x){if(50<P1)throw P1=0,aw=null,Error(n(185));oc(l,g,x),((nn&2)===0||l!==Mr)&&(l===Mr&&((nn&2)===0&&(wv|=g),xr===4&&bc(l,Hr)),$s(l,x),g===1&&nn===0&&(f.mode&1)===0&&(Ch=bn()+500,Jg&&gc()))}function $s(l,f){var g=l.callbackNode;Ua(l,f);var x=Qu(l,l===Mr?Hr:0);if(x===0)g!==null&&Zm(g),l.callbackNode=null,l.callbackPriority=0;else if(f=x&-x,l.callbackPriority!==f){if(g!=null&&Zm(g),f===1)l.tag===0?YX(yI.bind(null,l)):rA(yI.bind(null,l)),WX(function(){(nn&6)===0&&gc()}),g=null;else{switch(lc(x)){case 1:g=Ku;break;case 4:g=rc;break;case 16:g=bi;break;case 536870912:g=Cg;break;default:g=bi}g=TI(g,vI.bind(null,l))}l.callbackPriority=f,l.callbackNode=g}}function vI(l,f){if(Sv=-1,Cv=0,(nn&6)!==0)throw Error(n(327));var g=l.callbackNode;if(Th()&&l.callbackNode!==g)return null;var x=Qu(l,l===Mr?Hr:0);if(x===0)return null;if((x&30)!==0||(x&l.expiredLanes)!==0||f)f=Tv(l,x);else{f=x;var A=nn;nn|=2;var M=wI();(Mr!==l||Hr!==f)&&(nl=null,Ch=bn()+500,dd(l,f));do try{gZ();break}catch(J){xI(l,J)}while(!0);Cx(),xv.current=M,nn=A,hr!==null?f=0:(Mr=null,Hr=0,f=xr)}if(f!==0){if(f===2&&(A=ti(l),A!==0&&(x=A,f=lw(l,A))),f===1)throw g=A1,dd(l,0),bc(l,x),$s(l,bn()),g;if(f===6)bc(l,x);else{if(A=l.current.alternate,(x&30)===0&&!pZ(A)&&(f=Tv(l,x),f===2&&(M=ti(l),M!==0&&(x=M,f=lw(l,M))),f===1))throw g=A1,dd(l,0),bc(l,x),$s(l,bn()),g;switch(l.finishedWork=A,l.finishedLanes=x,f){case 0:case 1:throw Error(n(345));case 2:fd(l,Os,nl);break;case 3:if(bc(l,x),(x&130023424)===x&&(f=iw+500-bn(),10<f)){if(Qu(l,0)!==0)break;if(A=l.suspendedLanes,(A&x)!==x){gs(),l.pingedLanes|=l.suspendedLanes&A;break}l.timeoutHandle=px(fd.bind(null,l,Os,nl),f);break}fd(l,Os,nl);break;case 4:if(bc(l,x),(x&4194240)===x)break;for(f=l.eventTimes,A=-1;0<x;){var H=31-hs(x);M=1<<H,H=f[H],H>A&&(A=H),x&=~M}if(x=A,x=bn()-x,x=(120>x?120:480>x?480:1080>x?1080:1920>x?1920:3e3>x?3e3:4320>x?4320:1960*hZ(x/1960))-x,10<x){l.timeoutHandle=px(fd.bind(null,l,Os,nl),x);break}fd(l,Os,nl);break;case 5:fd(l,Os,nl);break;default:throw Error(n(329))}}}return $s(l,bn()),l.callbackNode===g?vI.bind(null,l):null}function lw(l,f){var g=I1;return l.current.memoizedState.isDehydrated&&(dd(l,f).flags|=256),l=Tv(l,f),l!==2&&(f=Os,Os=g,f!==null&&cw(f)),l}function cw(l){Os===null?Os=l:Os.push.apply(Os,l)}function pZ(l){for(var f=l;;){if(f.flags&16384){var g=f.updateQueue;if(g!==null&&(g=g.stores,g!==null))for(var x=0;x<g.length;x++){var A=g[x],M=A.getSnapshot;A=A.value;try{if(!lo(M(),A))return!1}catch{return!1}}}if(g=f.child,f.subtreeFlags&16384&&g!==null)g.return=f,f=g;else{if(f===l)break;for(;f.sibling===null;){if(f.return===null||f.return===l)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function bc(l,f){for(f&=~sw,f&=~wv,l.suspendedLanes|=f,l.pingedLanes&=~f,l=l.expirationTimes;0<f;){var g=31-hs(f),x=1<<g;l[g]=-1,f&=~x}}function yI(l){if((nn&6)!==0)throw Error(n(327));Th();var f=Qu(l,0);if((f&1)===0)return $s(l,bn()),null;var g=Tv(l,f);if(l.tag!==0&&g===2){var x=ti(l);x!==0&&(f=x,g=lw(l,x))}if(g===1)throw g=A1,dd(l,0),bc(l,f),$s(l,bn()),g;if(g===6)throw Error(n(345));return l.finishedWork=l.current.alternate,l.finishedLanes=f,fd(l,Os,nl),$s(l,bn()),null}function uw(l,f){var g=nn;nn|=1;try{return l(f)}finally{nn=g,nn===0&&(Ch=bn()+500,Jg&&gc())}}function ud(l){_c!==null&&_c.tag===0&&(nn&6)===0&&Th();var f=nn;nn|=1;var g=Ri.transition,x=Kt;try{if(Ri.transition=null,Kt=1,l)return l()}finally{Kt=x,Ri.transition=g,nn=f,(nn&6)===0&&gc()}}function dw(){oi=Sh.current,Mn(Sh)}function dd(l,f){l.finishedWork=null,l.finishedLanes=0;var g=l.timeoutHandle;if(g!==-1&&(l.timeoutHandle=-1,UX(g)),hr!==null)for(g=hr.return;g!==null;){var x=g;switch(wx(x),x.tag){case 1:x=x.type.childContextTypes,x!=null&&Xg();break;case 3:_h(),Mn(Ms),Mn(es),kx();break;case 5:Nx(x);break;case 4:_h();break;case 13:Mn(jn);break;case 19:Mn(jn);break;case 10:Tx(x.type._context);break;case 22:case 23:dw()}g=g.return}if(Mr=l,hr=l=Sc(l.current,null),Hr=oi=f,xr=0,A1=null,sw=wv=cd=0,Os=I1=null,od!==null){for(f=0;f<od.length;f++)if(g=od[f],x=g.interleaved,x!==null){g.interleaved=null;var A=x.next,M=g.pending;if(M!==null){var H=M.next;M.next=A,x.next=H}g.pending=x}od=null}return l}function xI(l,f){do{var g=hr;try{if(Cx(),cv.current=hv,uv){for(var x=Ln.memoizedState;x!==null;){var A=x.queue;A!==null&&(A.pending=null),x=x.next}uv=!1}if(ld=0,Nr=yr=Ln=null,_1=!1,E1=0,rw.current=null,g===null||g.return===null){xr=1,A1=f,hr=null;break}e:{var M=l,H=g.return,J=g,te=f;if(f=Hr,J.flags|=32768,te!==null&&typeof te=="object"&&typeof te.then=="function"){var fe=te,Ee=J,Ce=Ee.tag;if((Ee.mode&1)===0&&(Ce===0||Ce===11||Ce===15)){var _e=Ee.alternate;_e?(Ee.updateQueue=_e.updateQueue,Ee.memoizedState=_e.memoizedState,Ee.lanes=_e.lanes):(Ee.updateQueue=null,Ee.memoizedState=null)}var Ve=UA(H);if(Ve!==null){Ve.flags&=-257,WA(Ve,H,J,M,f),Ve.mode&1&&HA(M,fe,f),f=Ve,te=fe;var Ke=f.updateQueue;if(Ke===null){var Xe=new Set;Xe.add(te),f.updateQueue=Xe}else Ke.add(te);break e}else{if((f&1)===0){HA(M,fe,f),fw();break e}te=Error(n(426))}}else if(On&&J.mode&1){var nr=UA(H);if(nr!==null){(nr.flags&65536)===0&&(nr.flags|=256),WA(nr,H,J,M,f),bx(Eh(te,J));break e}}M=te=Eh(te,J),xr!==4&&(xr=2),I1===null?I1=[M]:I1.push(M),M=H;do{switch(M.tag){case 3:M.flags|=65536,f&=-f,M.lanes|=f;var le=VA(M,te,f);pA(M,le);break e;case 1:J=te;var re=M.type,de=M.stateNode;if((M.flags&128)===0&&(typeof re.getDerivedStateFromError=="function"||de!==null&&typeof de.componentDidCatch=="function"&&(wc===null||!wc.has(de)))){M.flags|=65536,f&=-f,M.lanes|=f;var Re=BA(M,J,f);pA(M,Re);break e}}M=M.return}while(M!==null)}EI(g)}catch(Je){f=Je,hr===g&&g!==null&&(hr=g=g.return);continue}break}while(!0)}function wI(){var l=xv.current;return xv.current=hv,l===null?hv:l}function fw(){(xr===0||xr===3||xr===2)&&(xr=4),Mr===null||(cd&268435455)===0&&(wv&268435455)===0||bc(Mr,Hr)}function Tv(l,f){var g=nn;nn|=2;var x=wI();(Mr!==l||Hr!==f)&&(nl=null,dd(l,f));do try{mZ();break}catch(A){xI(l,A)}while(!0);if(Cx(),nn=g,xv.current=x,hr!==null)throw Error(n(261));return Mr=null,Hr=0,xr}function mZ(){for(;hr!==null;)_I(hr)}function gZ(){for(;hr!==null&&!bg();)_I(hr)}function _I(l){var f=CI(l.alternate,l,oi);l.memoizedProps=l.pendingProps,f===null?EI(l):hr=f,rw.current=null}function EI(l){var f=l;do{var g=f.alternate;if(l=f.return,(f.flags&32768)===0){if(g=lZ(g,f,oi),g!==null){hr=g;return}}else{if(g=cZ(g,f),g!==null){g.flags&=32767,hr=g;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{xr=6,hr=null;return}}if(f=f.sibling,f!==null){hr=f;return}hr=f=l}while(f!==null);xr===0&&(xr=5)}function fd(l,f,g){var x=Kt,A=Ri.transition;try{Ri.transition=null,Kt=1,vZ(l,f,g,x)}finally{Ri.transition=A,Kt=x}return null}function vZ(l,f,g,x){do Th();while(_c!==null);if((nn&6)!==0)throw Error(n(327));g=l.finishedWork;var A=l.finishedLanes;if(g===null)return null;if(l.finishedWork=null,l.finishedLanes=0,g===l.current)throw Error(n(177));l.callbackNode=null,l.callbackPriority=0;var M=g.lanes|g.childLanes;if(_n(l,M),l===Mr&&(hr=Mr=null,Hr=0),(g.subtreeFlags&2064)===0&&(g.flags&2064)===0||Ev||(Ev=!0,TI(bi,function(){return Th(),null})),M=(g.flags&15990)!==0,(g.subtreeFlags&15990)!==0||M){M=Ri.transition,Ri.transition=null;var H=Kt;Kt=1;var J=nn;nn|=4,rw.current=null,dZ(l,g),fI(g,l),FX(fx),uc=!!dx,fx=dx=null,l.current=g,fZ(g),Y6(),nn=J,Kt=H,Ri.transition=M}else l.current=g;if(Ev&&(Ev=!1,_c=l,bv=A),M=l.pendingLanes,M===0&&(wc=null),Tg(g.stateNode),$s(l,bn()),f!==null)for(x=l.onRecoverableError,g=0;g<f.length;g++)A=f[g],x(A.value,{componentStack:A.stack,digest:A.digest});if(_v)throw _v=!1,l=ow,ow=null,l;return(bv&1)!==0&&l.tag!==0&&Th(),M=l.pendingLanes,(M&1)!==0?l===aw?P1++:(P1=0,aw=l):P1=0,gc(),null}function Th(){if(_c!==null){var l=lc(bv),f=Ri.transition,g=Kt;try{if(Ri.transition=null,Kt=16>l?16:l,_c===null)var x=!1;else{if(l=_c,_c=null,bv=0,(nn&6)!==0)throw Error(n(331));var A=nn;for(nn|=4,qe=l.current;qe!==null;){var M=qe,H=M.child;
vendor: 4,928 bytes, line 83
83if((qe.flags&16)!==0){var J=M.deletions;if(J!==null){for(var te=0;te<J.length;te++){var fe=J[te];for(qe=fe;qe!==null;){var Ee=qe;switch(Ee.tag){case 0:case 11:case 15:T1(8,Ee,M)}var Ce=Ee.child;if(Ce!==null)Ce.return=Ee,qe=Ce;else for(;qe!==null;){Ee=qe;var _e=Ee.sibling,Ve=Ee.return;if(aI(Ee),Ee===fe){qe=null;break}if(_e!==null){_e.return=Ve,qe=_e;break}qe=Ve}}}var Ke=M.alternate;if(Ke!==null){var Xe=Ke.child;if(Xe!==null){Ke.child=null;do{var nr=Xe.sibling;Xe.sibling=null,Xe=nr}while(Xe!==null)}}qe=M}}if((M.subtreeFlags&2064)!==0&&H!==null)H.return=M,qe=H;else e:for(;qe!==null;){if(M=qe,(M.flags&2048)!==0)switch(M.tag){case 0:case 11:case 15:T1(9,M,M.return)}var le=M.sibling;if(le!==null){le.return=M.return,qe=le;break e}qe=M.return}}var re=l.current;for(qe=re;qe!==null;){H=qe;var de=H.child;if((H.subtreeFlags&2064)!==0&&de!==null)de.return=H,qe=de;else e:for(H=re;qe!==null;){if(J=qe,(J.flags&2048)!==0)try{switch(J.tag){case 0:case 11:case 15:yv(9,J)}}catch(Je){qn(J,J.return,Je)}if(J===H){qe=null;break e}var Re=J.sibling;if(Re!==null){Re.return=J.return,qe=Re;break e}qe=J.return}}if(nn=A,gc(),ei&&typeof ei.onPostCommitFiberRoot=="function")try{ei.onPostCommitFiberRoot(Yu,l)}catch{}x=!0}return x}finally{Kt=g,Ri.transition=f}}return!1}function bI(l,f,g){f=Eh(g,f),f=VA(l,f,1),l=yc(l,f,1),f=gs(),l!==null&&(oc(l,1,f),$s(l,f))}function qn(l,f,g){if(l.tag===3)bI(l,l,g);else for(;f!==null;){if(f.tag===3){bI(f,l,g);break}else if(f.tag===1){var x=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(wc===null||!wc.has(x))){l=Eh(g,l),l=BA(f,l,1),f=yc(f,l,1),l=gs(),f!==null&&(oc(f,1,l),$s(f,l));break}}f=f.return}}function yZ(l,f,g){var x=l.pingCache;x!==null&&x.delete(f),f=gs(),l.pingedLanes|=l.suspendedLanes&g,Mr===l&&(Hr&g)===g&&(xr===4||xr===3&&(Hr&130023424)===Hr&&500>bn()-iw?dd(l,0):sw|=g),$s(l,f)}function SI(l,f){f===0&&((l.mode&1)===0?f=1:(f=Yf,Yf<<=1,(Yf&130023424)===0&&(Yf=4194304)));var g=gs();l=Ja(l,f),l!==null&&(oc(l,f,g),$s(l,g))}function xZ(l){var f=l.memoizedState,g=0;f!==null&&(g=f.retryLane),SI(l,g)}function wZ(l,f){var g=0;switch(l.tag){case 13:var x=l.stateNode,A=l.memoizedState;A!==null&&(g=A.retryLane);break;case 19:x=l.stateNode;break;default:throw Error(n(314))}x!==null&&x.delete(f),SI(l,g)}var CI;CI=function(l,f,g){if(l!==null)if(l.memoizedProps!==f.pendingProps||Ms.current)Ds=!0;else{if((l.lanes&g)===0&&(f.flags&128)===0)return Ds=!1,aZ(l,f,g);Ds=(l.flags&131072)!==0}else Ds=!1,On&&(f.flags&1048576)!==0&&sA(f,tv,f.index);switch(f.lanes=0,f.tag){case 2:var x=f.type;gv(l,f),l=f.pendingProps;var A=ph(f,es.current);wh(f,g),A=$x(null,f,x,l,A,g);var M=Fx();return f.flags|=1,typeof A=="object"&&A!==null&&typeof A.render=="function"&&A.$$typeof===void 0?(f.tag=1,f.memoizedState=null,f.updateQueue=null,ks(x)?(M=!0,Zg(f)):M=!1,f.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,Px(f),A.updater=pv,f.stateNode=A,A._reactInternals=f,Hx(f,x,l,g),f=Gx(null,f,x,!0,M,g)):(f.tag=0,On&&M&&xx(f),ms(null,f,A,g),f=f.child),f;case 16:x=f.elementType;e:{switch(gv(l,f),l=f.pendingProps,A=x._init,x=A(x._payload),f.type=x,A=f.tag=EZ(x),l=uo(x,l),A){case 0:f=qx(null,f,x,l,g);break e;case 1:f=XA(null,f,x,l,g);break e;case 11:f=qA(null,f,x,l,g);break e;case 14:f=GA(null,f,x,uo(x.type,l),g);break e}throw Error(n(306,x,""))}return f;case 0:return x=f.type,A=f.pendingProps,A=f.elementType===x?A:uo(x,A),qx(l,f,x,A,g);case 1:return x=f.type,A=f.pendingProps,A=f.elementType===x?A:uo(x,A),XA(l,f,x,A,g);case 3:e:{if(ZA(f),l===null)throw Error(n(387));x=f.pendingProps,M=f.memoizedState,A=M.element,hA(l,f),av(f,x,null,g);var H=f.memoizedState;if(x=H.element,M.isDehydrated)if(M={element:x,isDehydrated:!1,cache:H.cache,pendingSuspenseBoundaries:H.pendingSuspenseBoundaries,transitions:H.transitions},f.updateQueue.baseState=M,f.memoizedState=M,f.flags&256){A=Eh(Error(n(423)),f),f=JA(l,f,x,g,A);break e}else if(x!==A){A=Eh(Error(n(424)),f),f=JA(l,f,x,g,A);break e}else for(ii=hc(f.stateNode.containerInfo.firstChild),si=f,On=!0,co=null,g=dA(f,null,x,g),f.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(vh(),x===A){f=tl(l,f,g);break e}ms(l,f,x,g)}f=f.child}return f;case 5:return gA(f),l===null&&Ex(f),x=f.type,A=f.pendingProps,M=l!==null?l.memoizedProps:null,H=A.children,hx(x,A)?H=null:M!==null&&hx(x,M)&&(f.flags|=32),QA(l,f),ms(l,f,H,g),f.child;case 6:return l===null&&Ex(f),null;case 13:return eI(l,f,g);case 4:return Rx(f,f.stateNode.containerInfo),x=f.pendingProps,l===null?f.child=yh(f,null,x,g):ms(l,f,x,g),f.child;case 11:return x=f.type,A=f.pendingProps,A=f.elementType===x?A:uo(x,A),qA(l,f,x,A,g);case 7:return ms(l,f,f.pendingProps,g),f.child;case 8:return ms(l,f,f.pendingProps.children,g),f.child;case 12:return ms(l,f,f.pendingProps.children,g),f.child;case 10:e:{if(x=f.type._context,A=f.pendingProps,M=f.memoizedProps,H=A.value,Sn(sv,x._currentValue),x._currentValue=H,M!==null)if(lo(M.value,H)){if
vendor: 8,220 bytes, line 83
83(M.children===A.children&&!Ms.current){f=tl(l,f,g);break e}}else for(M=f.child,M!==null&&(M.return=f);M!==null;){var J=M.dependencies;if(J!==null){H=M.child;for(var te=J.firstContext;te!==null;){if(te.context===x){if(M.tag===1){te=el(-1,g&-g),te.tag=2;var fe=M.updateQueue;if(fe!==null){fe=fe.shared;var Ee=fe.pending;Ee===null?te.next=te:(te.next=Ee.next,Ee.next=te),fe.pending=te}}M.lanes|=g,te=M.alternate,te!==null&&(te.lanes|=g),Ax(M.return,g,f),J.lanes|=g;break}te=te.next}}else if(M.tag===10)H=M.type===f.type?null:M.child;else if(M.tag===18){if(H=M.return,H===null)throw Error(n(341));H.lanes|=g,J=H.alternate,J!==null&&(J.lanes|=g),Ax(H,g,f),H=M.sibling}else H=M.child;if(H!==null)H.return=M;else for(H=M;H!==null;){if(H===f){H=null;break}if(M=H.sibling,M!==null){M.return=H.return,H=M;break}H=H.return}M=H}ms(l,f,A.children,g),f=f.child}return f;case 9:return A=f.type,x=f.pendingProps.children,wh(f,g),A=Ii(A),x=x(A),f.flags|=1,ms(l,f,x,g),f.child;case 14:return x=f.type,A=uo(x,f.pendingProps),A=uo(x.type,A),GA(l,f,x,A,g);case 15:return KA(l,f,f.type,f.pendingProps,g);case 17:return x=f.type,A=f.pendingProps,A=f.elementType===x?A:uo(x,A),gv(l,f),f.tag=1,ks(x)?(l=!0,Zg(f)):l=!1,wh(f,g),LA(f,x,A),Hx(f,x,A,g),Gx(null,f,x,!0,l,g);case 19:return nI(l,f,g);case 22:return YA(l,f,g)}throw Error(n(156,f.tag))};function TI(l,f){return Gf(l,f)}function _Z(l,f,g,x){this.tag=l,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ni(l,f,g,x){return new _Z(l,f,g,x)}function hw(l){return l=l.prototype,!(!l||!l.isReactComponent)}function EZ(l){if(typeof l=="function")return hw(l)?1:0;if(l!=null){if(l=l.$$typeof,l===L)return 11;if(l===G)return 14}return 2}function Sc(l,f){var g=l.alternate;return g===null?(g=Ni(l.tag,f,l.key,l.mode),g.elementType=l.elementType,g.type=l.type,g.stateNode=l.stateNode,g.alternate=l,l.alternate=g):(g.pendingProps=f,g.type=l.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=l.flags&14680064,g.childLanes=l.childLanes,g.lanes=l.lanes,g.child=l.child,g.memoizedProps=l.memoizedProps,g.memoizedState=l.memoizedState,g.updateQueue=l.updateQueue,f=l.dependencies,g.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},g.sibling=l.sibling,g.index=l.index,g.ref=l.ref,g}function Av(l,f,g,x,A,M){var H=2;if(x=l,typeof l=="function")hw(l)&&(H=1);else if(typeof l=="string")H=5;else e:switch(l){case D:return hd(g.children,A,M,f);case I:H=8,A|=8;break;case T:return l=Ni(12,g,f,A|2),l.elementType=T,l.lanes=M,l;case V:return l=Ni(13,g,f,A),l.elementType=V,l.lanes=M,l;case Y:return l=Ni(19,g,f,A),l.elementType=Y,l.lanes=M,l;case U:return Iv(g,A,M,f);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case k:H=10;break e;case j:H=9;break e;case L:H=11;break e;case G:H=14;break e;case q:H=16,x=null;break e}throw Error(n(130,l==null?l:typeof l,""))}return f=Ni(H,g,f,A),f.elementType=l,f.type=x,f.lanes=M,f}function hd(l,f,g,x){return l=Ni(7,l,x,f),l.lanes=g,l}function Iv(l,f,g,x){return l=Ni(22,l,x,f),l.elementType=U,l.lanes=g,l.stateNode={isHidden:!1},l}function pw(l,f,g){return l=Ni(6,l,null,f),l.lanes=g,l}function mw(l,f,g){return f=Ni(4,l.children!==null?l.children:[],l.key,f),f.lanes=g,f.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},f}function bZ(l,f,g,x,A){this.tag=f,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ic(0),this.expirationTimes=ic(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ic(0),this.identifierPrefix=x,this.onRecoverableError=A,this.mutableSourceEagerHydrationData=null}function gw(l,f,g,x,A,M,H,J,te){return l=new bZ(l,f,g,J,te),f===1?(f=1,M===!0&&(f|=8)):f=0,M=Ni(3,null,null,f),l.current=M,M.stateNode=l,M.memoizedState={element:x,isDehydrated:g,cache:null,transitions:null,pendingSuspenseBoundaries:null},Px(M),l}function SZ(l,f,g){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:x==null?null:""+x,children:l,containerInfo:f,implementation:g}}function AI(l){if(!l)return mc;l=l._reactInternals;e:{if(to(l)!==l||l.tag!==1)throw Error(n(170));var f=l;do{switch(f.tag){case 3:f=f.stateNode.context;break e;case 1:if(ks(f.type)){f=f.stateNode.__reactInternalMemoizedMergedChildContext;break e}}f=f.return}while(f!==null);throw Error(n(171))}if(l.tag===1){var g=l.type;if(ks(g))return tA(l,g,f)}return f}function II(l,f,g,x,A,M,H,J,te){return l=gw(g,x,!0,l,A,M,H,J,te),l.context=AI(null),g=l.current,x=gs(),A=Ec(g),M=el(x,A),M.callback=f??null,yc(g,M,A),l.current.lanes=A,oc(l,A,x),$s(l,x),l}function Pv(l,f,g,x){var A=f.current,M=gs(),H=Ec(A);return g=AI(g),f.context===null?f.context=g:f.pendingContext=g,f=el(M,H),f.payload={element:l},x=x===void 0?null:x,x!==null&&(f.callback=x),l=yc(A,f,H),l!==null&&(po(l,A,H,M),ov(l,A,H)),H}function Rv(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return l.child.stateNode;default:return l.child.stateNode}}function PI(l,f){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var g=l.retryLane;l.retryLane=g!==0&&g<f?g:f}}function vw(l,f){PI(l,f),(l=l.alternate)&&PI(l,f)}function CZ(){return null}var RI=typeof reportError=="function"?reportError:function(l){console.error(l)};function yw(l){this._internalRoot=l}Nv.prototype.render=yw.prototype.render=function(l){var f=this._internalRoot;if(f===null)throw Error(n(409));Pv(l,f,null,null)},Nv.prototype.unmount=yw.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var f=l.containerInfo;ud(function(){Pv(null,l,null,null)}),f[Ya]=null}};function Nv(l){this._internalRoot=l}Nv.prototype.unstable_scheduleHydration=function(l){if(l){var f=Ng();l={blockedOn:null,target:l,priority:f};for(var g=0;g<Xo.length&&f!==0&&f<Xo[g].priority;g++);Xo.splice(g,0,l),g===0&&Dg(l)}};function xw(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function Mv(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function NI(){}function TZ(l,f,g,x,A){if(A){if(typeof x=="function"){var M=x;x=function(){var fe=Rv(H);M.call(fe)}}var H=II(f,x,l,0,null,!1,!1,"",NI);return l._reactRootContainer=H,l[Ya]=H.current,h1(l.nodeType===8?l.parentNode:l),ud(),H}for(;A=l.lastChild;)l.removeChild(A);if(typeof x=="function"){var J=x;x=function(){var fe=Rv(te);J.call(fe)}}var te=gw(l,0,!1,null,null,!1,!1,"",NI);return l._reactRootContainer=te,l[Ya]=te.current,h1(l.nodeType===8?l.parentNode:l),ud(function(){Pv(f,te,g,x)}),te}function kv(l,f,g,x,A){var M=g._reactRootContainer;if(M){var H=M;if(typeof A=="function"){var J=A;A=function(){var te=Rv(H);J.call(te)}}Pv(f,H,l,A)}else H=TZ(g,f,l,A,x);return Rv(H)}Pg=function(l){switch(l.tag){case 3:var f=l.stateNode;if(f.current.memoizedState.isDehydrated){var g=sc(f.pendingLanes);g!==0&&(ac(f,g|1),$s(f,bn()),(nn&6)===0&&(Ch=bn()+500,gc()))}break;case 13:ud(function(){var x=Ja(l,1);if(x!==null){var A=gs();po(x,l,1,A)}}),vw(l,1)}},Qf=function(l){if(l.tag===13){var f=Ja(l,134217728);if(f!==null){var g=gs();po(f,l,134217728,g)}vw(l,134217728)}},Rg=function(l){if(l.tag===13){var f=Ec(l),g=Ja(l,f);if(g!==null){var x=gs();po(g,l,f,x)}vw(l,f)}},Ng=function(){return Kt},Mg=function(l,f){var g=Kt;try{return Kt=l,f()}finally{Kt=g}},Vf=function(l,f,g){switch(f){case"input":if(Xt(l,g),f=g.name,g.type==="radio"&&f!=null){for(g=l;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll("input[name="+JSON.stringify(""+f)+'][type="radio"]'),f=0;f<g.length;f++){var x=g[f];if(x!==l&&x.form===l.form){var A=Qg(x);if(!A)throw Error(n(90));ut(x),Xt(x,A)}}}break;case"textarea":ce(l,g);break;case"select":f=g.value,f!=null&&nt(l,!!g.multiple,f,!1)}},Uu=uw,Km=ud;var AZ={usingClientEntryPoint:!1,Events:[g1,fh,Qg,Yo,Gm,uw]}
83,R1={findFiberByHostInstance:nd,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},IZ={bundleType:R1.bundleType,version:R1.version,rendererPackageName:R1.rendererPackageName,rendererConfig:R1.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:z.ReactCurrentDispatcher,findHostInstanceByFiber:function(l){return l=Xm(l),l===null?null:l.stateNode},findFiberByHostInstance:R1.findFiberByHostInstance||CZ,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 Dv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dv.isDisabled&&Dv.supportsFiber)try{Yu=Dv.inject(IZ),ei=Dv}catch{}}return Fs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=AZ,Fs.createPortal=function(l,f){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!xw(f))throw Error(n(200));return SZ(l,f,null,g)},Fs.createRoot=function(l,f){if(!xw(l))throw Error(n(299));var g=!1,x="",A=RI;return f!=null&&(f.unstable_strictMode===!0&&(g=!0),f.identifierPrefix!==void 0&&(x=f.identifierPrefix),f.onRecoverableError!==void 0&&(A=f.onRecoverableError)),f=gw(l,1,!1,null,null,g,!1,x,A),l[Ya]=f.current,h1(l.nodeType===8?l.parentNode:l),new yw(f)},Fs.findDOMNode=function(l){if(l==null)return null;if(l.nodeType===1)return l;var f=l._reactInternals;if(f===void 0)throw typeof l.render=="function"?Error(n(188)):(l=Object.keys(l).join(","),Error(n(268,l)));return l=Xm(f),l=l===null?null:l.stateNode,l},Fs.flushSync=function(l){return ud(l)},Fs.hydrate=function(l,f,g){if(!Mv(f))throw Error(n(200));return kv(null,l,f,!0,g)},Fs.hydrateRoot=function(l,f,g){if(!xw(l))throw Error(n(405));var x=g!=null&&g.hydratedSources||null,A=!1,M="",H=RI;if(g!=null&&(g.unstable_strictMode===!0&&(A=!0),g.identifierPrefix!==void 0&&(M=g.identifierPrefix),g.onRecoverableError!==void 0&&(H=g.onRecoverableError)),f=II(f,null,l,1,g??null,A,!1,M,H),l[Ya]=f.current,h1(l),x)for(l=0;l<x.length;l++)g=x[l],A=g._getVersion,A=A(g._source),f.mutableSourceEagerHydrationData==null?f.mutableSourceEagerHydrationData=[g,A]:f.mutableSourceEagerHydrationData.push(g,A);return new Nv(f)},Fs.render=function(l,f,g){if(!Mv(f))throw Error(n(200));return kv(null,l,f,!1,g)},Fs.unmountComponentAtNode=function(l){if(!Mv(l))throw Error(n(40));return l._reactRootContainer?(ud(function(){kv(null,null,l,!1,function(){l._reactRootContainer=null,l[Ya]=null})}),!0):!1},Fs.unstable_batchedUpdates=uw,Fs.unstable_renderSubtreeIntoContainer=function(l,f,g,x){if(!Mv(g))throw Error(n(200));if(l==null||l._reactInternals===void 0)throw Error(n(38));return kv(l,f,g,!1,x)},Fs.version="18.3.1-next-f1338f8080-20240426",Fs}var PR;function uL(){if(PR)return Qw.exports;PR=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Qw.exports=Nce(),Qw.exports}var Tf=uL();const dL=xf(Tf),G1=typeof window<"u"?_.useLayoutEffect:_.useEffect;function Jw(t){const e=_.useRef({value:t,prev:null}),n=e.current.value;return t!==n&&(e.current={value:t,prev:n}),e.current.prev}function Mce(t,e,n={},r={}){const s=_.useRef(typeof IntersectionObserver=="function"),i=_.useRef(null);return _.useEffect(()=>{if(!(!t.current||!s.current||r.disabled))return i.current=new IntersectionObserver(([o])=>{e(o)},n),i.current.observe(t.current),()=>{var o;(o=i.current)==null||o.disconnect()}},[e,n,r.disabled,t]),i.current}function kce(t){const e=_.useRef(null);return _.useImperativeHandle(t,()=>e.current,[]),e}function Dce(){const t=vi(),e=_.useRef({router:t,mounted:!1}),n=$r({select:({isLoading:m})=>m}),[r,s]=_.useState(!1),i=$r({select:m=>m.matches.some(v=>v.status==="pending"),structuralSharing:!0}),o=Jw(n),a=n||r||i,c=Jw(a),d=n||i,p=Jw(d);return t.isServer||(t.startTransition=m=>{s(!0),_.startTransition(()=>{m(),s(!1)})}),_.useEffect(()=>{const m=t.history.subscribe(t.load),v=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Td(t.latestLocation.href)!==Td(v.href)&&t.commitLocation({...v,replace:!0}),()=>{m()}},[t,t.history]),G1(()=>
83{if(typeof window<"u"&&t.clientSsr||e.current.router===t&&e.current.mounted)return;e.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(v){console.error(v)}})()},[t]),G1(()=>{o&&!n&&t.emit({type:"onLoad",...Wd(t.state)})},[o,t,n]),G1(()=>{p&&!d&&t.emit({type:"onBeforeRouteMount",...Wd(t.state)})},[d,p,t]),G1(()=>{c&&!a&&(t.emit({type:"onResolved",...Wd(t.state)}),t.__store.setState(m=>({...m,status:"idle",resolvedLocation:m.location})),Kle(t))},[a,c,t]),null}function Oce(){const t=vi(),e=t.options.defaultPendingComponent?u.jsx(t.options.defaultPendingComponent,{}):null,n=t.isServer||typeof document<"u"&&t.clientSsr?B3:_.Suspense,r=u.jsxs(n,{fallback:e,children:[u.jsx(Dce,{}),u.jsx($ce,{})]});return t.options.InnerWrap?u.jsx(t.options.InnerWrap,{children:r}):r}function $ce(){const t=$r({select:n=>{var r;return(r=n.matches[0])==null?void 0:r.id}}),e=$r({select:n=>n.loadedAt});return u.jsx(y5.Provider,{value:t,children:u.jsx(J9,{getResetKey:()=>e,errorComponent:v5,onCatch:n=>{n.message||n.toString()},children:t?u.jsx(cL,{matchId:t}):null})})}function Fce(t){return $r({select:e=>{const n=e.matches;return t?.select?t.select(n):n},structuralSharing:t?.structuralSharing})}function jce(t,e){const n=vi(),[r,s]=_.useState(!1),i=_.useRef(!1),o=kce(e),{activeProps:a=()=>({className:"active"}),inactiveProps:c=()=>({}),activeOptions:d,to:p,preload:m,preloadDelay:v,hashScrollIntoView:w,replace:E,startTransition:C,resetScroll:b,viewTransition:S,children:P,target:R,disabled:z,style:O,className:F,onClick:D,onFocus:I,onMouseEnter:T,onMouseLeave:k,onTouchStart:j,ignoreBlocker:L,...V}=t,{params:Y,search:G,hash:q,state:U,mask:B,reloadDocument:ne,...oe}=V,Q=_.useMemo(()=>{try{return new URL(`${p}`),"external"}catch{}return"internal"},[p]),ie=$r({select:nt=>nt.location.search,structuralSharing:!0}),ue=Fce({select:nt=>{var K;return t.from??((K=nt[nt.length-1])==null?void 0:K.fullPath)}}),ge=_.useMemo(()=>({...t,from:ue}),[t,ue]),Ae=_.useMemo(()=>n.buildLocation(ge),[n,ge,ie]),Pe=_.useMemo(()=>ge.reloadDocument?!1:m??n.options.defaultPreload,[n.options.defaultPreload,m,ge.reloadDocument]),he=v??n.options.defaultPreloadDelay??0,xe=$r({select:nt=>{if(d?.exact){if(!Vle(nt.location.pathname,Ae.pathname,n.basepath))return!1}else{const K=Ly(nt.location.pathname,n.basepath).split("/");if(!Ly(Ae.pathname,n.basepath).split("/").every((Me,be)=>Me===K[be]))return!1}return(d?.includeSearch??!0)&&!lp(nt.location.search,Ae.search,{partial:!d?.exact,ignoreUndefined:!d?.explicitUndefined})?!1:d?.includeHash?nt.location.hash===Ae.hash:!0}}),Ne=_.useCallback(()=>{n.preloadRoute(ge).catch(nt=>{console.warn(nt),console.warn(sce)})},[ge,n]),ze=_.useCallback(nt=>{nt?.isIntersecting&&Ne()},[Ne]);if(Mce(o,ze,{rootMargin:"100px"},{disabled:!!z||Pe!=="viewport"}),G1(()=>{i.current||!z&&Pe==="render"&&(Ne(),i.current=!0)},[z,Ne,Pe]),Q==="external")return{...oe,ref:o,type:Q,href:p,...P&&{children:P},...R&&{target:R},...z&&{disabled:z},...O&&{style:O},...F&&{className:F},...D&&{onClick:D},...I&&{onFocus:I},...T&&{onMouseEnter:T},...k&&{onMouseLeave:k},...j&&{onTouchStart:j}};const Ze=nt=>{if(!z&&!Lce(nt)&&!nt.defaultPrevented&&(!R||R==="_self")&&nt.button===0){nt.preventDefault(),Tf.flushSync(()=>{s(!0)});const K=n.subscribe("onResolved",()=>{K(),s(!1)});return n.navigate({...ge,replace:E,resetScroll:b,hashScrollIntoView:w,startTransition:C,viewTransition:S,ignoreBlocker:L})}},ut=nt=>{z||Pe&&Ne()},Pt=ut,Rt=nt=>{if(z)return;const K=nt.target||{};if(Pe){if(K.preloadTimeout)return;K.preloadTimeout=setTimeout(()=>{K.preloadTimeout=null,Ne()},he)}},Tt=nt=>{if(z)return;const K=nt.target||{};K.preloadTimeout&&(clearTimeout(K.preloadTimeout),K.preloadTimeout=null)},on=nt=>K=>{var se;(se=K.persist)==null||se.call(K),nt.filter(Boolean).forEach(ce=>{K.defaultPrevented||ce(K)})},Xt=xe?Cd(a,{})??{}:{},Pr=xe?{}:Cd(c,{}),Lr=[F,Xt.className,Pr.className].filter(Boolean).join(" "),xt={...O,...Xt.style,...Pr.style};return{...oe,...Xt,...Pr,href:z?void 0:Ae.maskedLocation?n.history.createHref(Ae.maskedLocation.href):n.history.createHref(Ae.href),ref:o,onClick:on([D,Ze]),onFocus:on([I,ut]),onMouseEnter:on([T,Rt]),onMouseLeave:on([k,Tt]),onTouchStart:on([j,Pt]),disabled:!!z,target:R,...Object.keys(xt).length&&{style:xt},...Lr&&{className:Lr},...z&&{role:"link","aria-disabled":!0},...xe&&{"data-status":"active","aria-current":"page"},...r&&{"data-transitioning":"transitioning"}}}const or=_.forwardRef((t,e)=>{const{_asChild:n,...r}=t,{type:s,ref:i,...o}=jce(r,e),a=typeof r.children=="function"?r.children({isActive:o["data-status"]==="active"}):r.children;return typeof n>"u"&&delete o.disabled,_.createElement(n||"a",{...o,ref:i}
83,a)});function Lce(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const zce=t=>new Vce(t);class Vce extends tce{constructor(e){super(e)}}function Bce({router:t,children:e,...n}){t.update({...t.options,...n,context:{...t.options.context,...n.context}});const r=aL(),s=u.jsx(r.Provider,{value:t,children:e});return t.options.Wrap?u.jsx(t.options.Wrap,{children:s}):s}function Hce({router:t,...e}){return u.jsx(Bce,{router:t,...e,children:u.jsx(Oce,{})})}var e3={},RR;function Uce(){if(RR)return e3;RR=1;var t=uL();return e3.createRoot=t.createRoot,e3.hydrateRoot=t.hydrateRoot,e3}var Wce=Uce();const qce=xf(Wce);var e7={},t7={},n7={},NR;function Gce(){return NR||(NR=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=function(){for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];if(typeof window<"u"){var a;typeof window.gtag>"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(a=window).gtag.apply(a,i)}},n=e;t.default=n}(n7)),n7}var r7={},MR;function Kce(){return MR||(MR=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var e=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(a){return a.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(c,d,p){return d>0&&d+c.length!==p.length&&c.search(e)>-1&&p.charAt(d-2)!==":"&&(p.charAt(d+c.length)!=="-"||p.charAt(d-1)==="-")&&p.charAt(d-1).search(/[^\s-]/)<0?c.toLowerCase():c.substr(1).search(/[A-Z]|\../)>-1?c:c.charAt(0).toUpperCase()+c.substr(1)})}function r(a){return typeof a=="string"&&a.indexOf("@")!==-1}var s="REDACTED (Potential Email Address)";function i(a){return r(a)?(console.warn("This arg looks like an email address, redacting."),s):a}function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,p=a||"";return c&&(p=n(a)),d&&(p=i(p)),p}}(r7)),r7}var kR;function Yce(){return kR||(kR=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var e=o(Gce()),n=o(Kce()),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],s=["title","location"],i=["page","hitType"];function o(Y){return Y&&Y.__esModule?Y:{default:Y}}function a(Y,G){if(Y==null)return{};var q=c(Y,G),U,B;if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(Y);for(B=0;B<ne.length;B++)U=ne[B],!(G.indexOf(U)>=0)&&Object.prototype.propertyIsEnumerable.call(Y,U)&&(q[U]=Y[U])}return q}function c(Y,G){if(Y==null)return{};var q={},U=Object.keys(Y),B,ne;for(ne=0;ne<U.length;ne++)B=U[ne],!(G.indexOf(B)>=0)&&(q[B]=Y[B]);return q}function d(Y){"@babel/helpers - typeof";return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},d(Y)}function p(Y){return w(Y)||v(Y)||P(Y)||m()}function m(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
84In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(Y){if(typeof Symbol<"u"&&Y[Symbol.iterator]!=null||Y["@@iterator"]!=null)return Array.from(Y)}function w(Y){if(Array.isArray(Y))return R(Y)}function E(Y,G){var q=Object.keys(Y);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(Y);G&&(U=U.filter(function(B){return Object.getOwnPropertyDescriptor(Y,B).enumerable})),q.push.apply(q,U)}return q}function C(Y){for(var G=1;G<arguments.length;G++){var q=arguments[G]!=null?arguments[G]:{};G%2?E(Object(q),!0).forEach(function(U){T(Y,U,q[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Y,Object.getOwnPropertyDescriptors(q)):E(Object(q)).forEach(function(U){Object.defineProperty(Y,U,Object.getOwnPropertyDescriptor(q,U))})}return Y}function b(Y,G){return O(Y)||z(Y,G)||P(Y,G)||S()}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P(Y,G){if(Y){if(typeof Y=="string")return R(Y,G);var q=Object.prototype.toString.call(Y).slice(8,-1);if(q==="Object"&&Y.constructor&&(q=Y.constructor.name),q==="Map"||q==="Set")return Array.from(Y);
85if(q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q))return R(Y,G)}}function R(Y,G){(G==null||G>Y.length)&&(G=Y.length);for(var q=0,U=new Array(G);q<G;q++)U[q]=Y[q];return U}function z(Y,G){var q=Y==null?null:typeof Symbol<"u"&&Y[Symbol.iterator]||Y["@@iterator"];if(q!=null){var U,B,ne,oe,Q=[],ie=!0,ue=!1;try{if(ne=(q=q.call(Y)).next,G!==0)for(;!(ie=(U=ne.call(q)).done)&&(Q.push(U.value),Q.length!==G);ie=!0);}catch(ge){ue=!0,B=ge}finally{try{if(!ie&&q.return!=null&&(oe=q.return(),Object(oe)!==oe))return}finally{if(ue)throw B}}return Q}}function O(Y){if(Array.isArray(Y))return Y}function F(Y,G){if(!(Y instanceof G))throw new TypeError("Cannot call a class as a function")}function D(Y,G){for(var q=0;q<G.length;q++){var U=G[q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(Y,k(U.key),U)}}function I(Y,G,q){return G&&D(Y.prototype,G),Object.defineProperty(Y,"prototype",{writable:!1}),Y}function T(Y,G,q){return G=k(G),G in Y?Object.defineProperty(Y,G,{value:q,enumerable:!0,configurable:!0,writable:!0}):Y[G]=q,Y}function k(Y){var G=j(Y,"string");return d(G)==="symbol"?G:String(G)}function j(Y,G){if(d(Y)!=="object"||Y===null)return Y;var q=Y[Symbol.toPrimitive];if(q!==void 0){var U=q.call(Y,G);if(d(U)!=="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(G==="string"?String:Number)(Y)}var L=function(){function Y(){var G=this;F(this,Y),T(this,"reset",function(){G.isInitialized=!1,G._testMode=!1,G._currentMeasurementId,G._hasLoadedGA=!1,G._isQueuing=!1,G._queueGtag=[]}),T(this,"_gtag",function(){for(var q=arguments.length,U=new Array(q),B=0;B<q;B++)U[B]=arguments[B];G._testMode||G._isQueuing?G._queueGtag.push(U):e.default.apply(void 0,U)}),T(this,"_loadGA",function(q,U){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!G._hasLoadedGA){var ne=document.createElement("script");ne.async=!0,ne.src="".concat(B,"?id=").concat(q),U&&ne.setAttribute("nonce",U),document.body.appendChild(ne),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},G._hasLoadedGA=!0}}),T(this,"_toGtagOptions",function(q){if(q){var U={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},B=Object.entries(q).reduce(function(ne,oe){var Q=b(oe,2),ie=Q[0],ue=Q[1];return U[ie]?ne[U[ie]]=ue:ne[ie]=ue,ne},{});return B}}),T(this,"initialize",function(q){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!q)throw new Error("Require GA_MEASUREMENT_ID");var B=typeof q=="string"?[{trackingId:q}]:q;G._currentMeasurementId=B[0].trackingId;var ne=U.gaOptions,oe=U.gtagOptions,Q=U.nonce,ie=U.testMode,ue=ie===void 0?!1:ie,ge=U.gtagUrl;if(G._testMode=ue,ue||G._loadGA(G._currentMeasurementId,Q,ge),G.isInitialized||(G._gtag("js",new Date),B.forEach(function(he){var xe=C(C(C({},G._toGtagOptions(C(C({},ne),he.gaOptions))),oe),he.gtagOptions);Object.keys(xe).length?G._gtag("config",he.trackingId,xe):G._gtag("config",he.trackingId)})),G.isInitialized=!0,!ue){var Ae=p(G._queueGtag);for(G._queueGtag=[],G._isQueuing=!1;Ae.length;){var Pe=Ae.shift();G._gtag.apply(G,p(Pe)),Pe[0]==="get"&&(G._isQueuing=!0)}}}),T(this,"set",function(q){if(!q){console.warn("`fieldsObject` is required in .set()");return}if(d(q)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(q).length===0&&console.warn("empty `fieldsObject` given to .set()"),G._gaCommand("set",q)}),T(this,"_gaCommandSendEvent",function(q,U,B,ne,oe){G._gtag("event",U,C(C({event_category:q,event_label:B,value:ne},oe&&{non_interaction:oe.nonInteraction}),G._toGtagOptions(oe)))}
85),T(this,"_gaCommandSendEventParameters",function(){for(var q=arguments.length,U=new Array(q),B=0;B<q;B++)U[B]=arguments[B];if(typeof U[0]=="string")G._gaCommandSendEvent.apply(G,p(U.slice(1)));else{var ne=U[0],oe=ne.eventCategory,Q=ne.eventAction,ie=ne.eventLabel,ue=ne.eventValue;ne.hitType;var ge=a(ne,r);G._gaCommandSendEvent(oe,Q,ie,ue,ge)}}),T(this,"_gaCommandSendTiming",function(q,U,B,ne){G._gtag("event","timing_complete",{name:U,value:B,event_category:q,event_label:ne})}),T(this,"_gaCommandSendPageview",function(q,U){if(U&&Object.keys(U).length){var B=G._toGtagOptions(U),ne=B.title,oe=B.location,Q=a(B,s);G._gtag("event","page_view",C(C(C(C({},q&&{page_path:q}),ne&&{page_title:ne}),oe&&{page_location:oe}),Q))}else q?G._gtag("event","page_view",{page_path:q}):G._gtag("event","page_view")}),T(this,"_gaCommandSendPageviewParameters",function(){for(var q=arguments.length,U=new Array(q),B=0;B<q;B++)U[B]=arguments[B];if(typeof U[0]=="string")G._gaCommandSendPageview.apply(G,p(U.slice(1)));else{var ne=U[0],oe=ne.page;ne.hitType;var Q=a(ne,i);G._gaCommandSendPageview(oe,Q)}}),T(this,"_gaCommandSend",function(){for(var q=arguments.length,U=new Array(q),B=0;B<q;B++)U[B]=arguments[B];var ne=typeof U[0]=="string"?U[0]:U[0].hitType;switch(ne){case"event":G._gaCommandSendEventParameters.apply(G,U);break;case"pageview":G._gaCommandSendPageviewParameters.apply(G,U);break;case"timing":G._gaCommandSendTiming.apply(G,p(U.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(ne));break;default:console.warn("Send command doesn't exist: ".concat(ne))}}),T(this,"_gaCommandSet",function(){for(var q=arguments.length,U=new Array(q),B=0;B<q;B++)U[B]=arguments[B];typeof U[0]=="string"&&(U[0]=T({},U[0],U[1])),G._gtag("set",G._toGtagOptions(U[0]))}),T(this,"_gaCommand",function(q){for(var U=arguments.length,B=new Array(U>1?U-1:0),ne=1;ne<U;ne++)B[ne-1]=arguments[ne];switch(q){case"send":G._gaCommandSend.apply(G,B);break;case"set":G._gaCommandSet.apply(G,B);break;default:console.warn("Command doesn't exist: ".concat(q))}}),T(this,"ga",function(){for(var q=arguments.length,U=new Array(q),B=0;B<q;B++)U[B]=arguments[B];if(typeof U[0]=="string")G._gaCommand.apply(G,U);else{var ne=U[0];G._gtag("get",G._currentMeasurementId,"client_id",function(oe){G._isQueuing=!1;var Q=G._queueGtag;for(ne({get:function(ge){return ge==="clientId"?oe:ge==="trackingId"?G._currentMeasurementId:ge==="apiVersion"?"1":void 0}});Q.length;){var ie=Q.shift();G._gtag.apply(G,p(ie))}}),G._isQueuing=!0}return G.ga}),T(this,"event",function(q,U){if(typeof q=="string")G._gtag("event",q,G._toGtagOptions(U));else{var B=q.action,ne=q.category,oe=q.label,Q=q.value,ie=q.nonInteraction,ue=q.transport;if(!ne||!B){console.warn("args.category AND args.action are required in event()");return}var ge={hitType:"event",eventCategory:(0,n.default)(ne),eventAction:(0,n.default)(B)};oe&&(ge.eventLabel=(0,n.default)(oe)),typeof Q<"u"&&(typeof Q!="number"?console.warn("Expected `args.value` arg to be a Number."):ge.eventValue=Q),typeof ie<"u"&&(typeof ie!="boolean"?console.warn("`args.nonInteraction` must be a boolean."):ge.nonInteraction=ie),typeof ue<"u"&&(typeof ue!="string"?console.warn("`args.transport` must be a string."):(["beacon","xhr","image"].indexOf(ue)===-1&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),ge.transport=ue)),G._gaCommand("send",ge)}}),T(this,"send",function(q){G._gaCommand("send",q)}),this.reset()}return I(Y,[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}]),Y}();t.GA4=L;var V=new L;t.default=V}(t7)),t7}var DR;function Qce(){return DR||(DR=1,function(t){function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ReactGAImplementation=void 0;var n=s(Yce());function r(a){if(typeof WeakMap!="function")return null;var c=new WeakMap,d=new WeakMap;return(r=function(m){return m?d:c})(a)}function s(a,c){if(a&&a.__esModule)return a;
85if(a===null||e(a)!=="object"&&typeof a!="function")return{default:a};var d=r(c);if(d&&d.has(a))return d.get(a);var p={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in a)if(v!=="default"&&Object.prototype.hasOwnProperty.call(a,v)){var w=m?Object.getOwnPropertyDescriptor(a,v):null;w&&(w.get||w.set)?Object.defineProperty(p,v,w):p[v]=a[v]}return p.default=a,d&&d.set(a,p),p}var i=n.GA4;t.ReactGAImplementation=i;var o=n.default;t.default=o}(e7)),e7}var Xce=Qce();const Uy=xf(Xce),Zce="modulepreload",Jce=function(t){return"/"+t},OR={},Fn=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){let o=function(d){return Promise.all(d.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=a?.nonce||a?.getAttribute("nonce");s=o(n.map(d=>{if(d=Jce(d),d in OR)return;OR[d]=!0;const p=d.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${m}`))return;const v=document.createElement("link");if(v.rel=p?"stylesheet":Zce,p||(v.as="script"),v.crossOrigin="",v.href=d,c&&v.setAttribute("nonce",c),document.head.appendChild(v),p)return new Promise((w,E)=>{v.addEventListener("load",w),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return e().catch(i)})};function Qi(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}var eue=["color"],tue=_.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=Qi(t,eue);return _.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:e}),_.createElement("path",{d:"M4.5 1C4.77614 1 5 1.22386 5 1.5V2H10V1.5C10 1.22386 10.2239 1 10.5 1C10.7761 1 11 1.22386 11 1.5V2H12.5C13.3284 2 14 2.67157 14 3.5V12.5C14 13.3284 13.3284 14 12.5 14H2.5C1.67157 14 1 13.3284 1 12.5V3.5C1 2.67157 1.67157 2 2.5 2H4V1.5C4 1.22386 4.22386 1 4.5 1ZM10 3V3.5C10 3.77614 10.2239 4 10.5 4C10.7761 4 11 3.77614 11 3.5V3H12.5C12.7761 3 13 3.22386 13 3.5V5H2V3.5C2 3.22386 2.22386 3 2.5 3H4V3.5C4 3.77614 4.22386 4 4.5 4C4.77614 4 5 3.77614 5 3.5V3H10ZM2 6V12.5C2 12.7761 2.22386 13 2.5 13H12.5C12.7761 13 13 12.7761 13 12.5V6H2ZM7 7.5C7 7.22386 7.22386 7 7.5 7C7.77614 7 8 7.22386 8 7.5C8 7.77614 7.77614 8 7.5 8C7.22386 8 7 7.77614 7 7.5ZM9.5 7C9.22386 7 9 7.22386 9 7.5C9 7.77614 9.22386 8 9.5 8C9.77614 8 10 7.77614 10 7.5C10 7.22386 9.77614 7 9.5 7ZM11 7.5C11 7.22386 11.2239 7 11.5 7C11.7761 7 12 7.22386 12 7.5C12 7.77614 11.7761 8 11.5 8C11.2239 8 11 7.77614 11 7.5ZM11.5 9C11.2239 9 11 9.22386 11 9.5C11 9.77614 11.2239 10 11.5 10C11.7761 10 12 9.77614 12 9.5C12 9.22386 11.7761 9 11.5 9ZM9 9.5C9 9.22386 9.22386 9 9.5 9C9.77614 9 10 9.22386 10 9.5C10 9.77614 9.77614 10 9.5 10C9.22386 10 9 9.77614 9 9.5ZM7.5 9C7.22386 9 7 9.22386 7 9.5C7 9.77614 7.22386 10 7.5 10C7.77614 10 8 9.77614 8 9.5C8 9.22386 7.77614 9 7.5 9ZM5 9.5C5 9.22386 5.22386 9 5.5 9C5.77614 9 6 9.22386 6 9.5C6 9.77614 5.77614 10 5.5 10C5.22386 10 5 9.77614 5 9.5ZM3.5 9C3.22386 9 3 9.22386 3 9.5C3 9.77614 3.22386 10 3.5 10C3.77614 10 4 9.77614 4 9.5C4 9.22386 3.77614 9 3.5 9ZM3 11.5C3 11.2239 3.22386 11 3.5 11C3.77614 11 4 11.2239 4 11.5C4 11.7761 3.77614 12 3.5 12C3.22386 12 3 11.7761 3 11.5ZM5.5 11C5.22386 11 5 11.2239 5 11.5C5 11.7761 5.22386 12 5.5 12C5.77614 12 6 11.7761 6 11.5C6 11.2239 5.77614 11 5.5 11ZM7 11.5C7 11.2239 7.22386 11 7.5 11C7.77614 11 8 11.2239 8 11.5C8 11.7761 7.77614 12 7.5 12C7.22386 12 7 11.7761 7 11.5ZM9.5 11C9.22386 11 9 11.2239 9 11.5C9 11.7761 9.22386 12 9.5 12C9.77614 12 10 11.7761 10 11.5C10 11.2239 9.77614 11 9.5 11Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),nue=["color"],rue=_.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=Qi(t,nue);return _.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:e}),_.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),sue=["color"],_5=_.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=Qi(t,sue);return _.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:e}),_.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.564
8564L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),iue=["color"],oue=_.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=Qi(t,iue);return _.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:e}),_.createElement("path",{d:"M8.84182 3.13514C9.04327 3.32401 9.05348 3.64042 8.86462 3.84188L5.43521 7.49991L8.86462 11.1579C9.05348 11.3594 9.04327 11.6758 8.84182 11.8647C8.64036 12.0535 8.32394 12.0433 8.13508 11.8419L4.38508 7.84188C4.20477 7.64955 4.20477 7.35027 4.38508 7.15794L8.13508 3.15794C8.32394 2.95648 8.64036 2.94628 8.84182 3.13514Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),aue=["color"],lue=_.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=Qi(t,aue);return _.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:e}),_.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),cue=["color"],uue=_.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=Qi(t,cue);return _.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:e}),_.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),due=["color"],fL=_.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=Qi(t,due);return _.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:e}),_.createElement("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),fue=["color"],hue=_.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=Qi(t,fue);return _.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:e}),_.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))}),pue=["color"],aQe=_.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=Qi(t,pue);return _.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:e}),_.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM4.50003 7C4.22389 7 4.00003 7.22386 4.00003 7.5C4.00003 7.77614 4.22389 8 4.50003 8H10.5C10.7762 8 11 7.77614 11 7.5C11 7.22386 10.7762 7 10.5 7H4.50003Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),mue=["color"],lQe=_.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=Qi(t,mue);return _.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:e}),_.createElement("path",{d:"M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM7.50003 4C7.77617 4 8.00003 4.22386 8.00003 4.5V7H10.5C10.7762 7 11 7.22386 11 7.5C11 7.77614 10.7762 8 10.5 8H8.00003V10.5C8.00003 10.7761 7.77617 11 7.50003 11C7.22389 11 7.00003 10.7761 7.00003 10.5V8H4.50003C4.22389 8 4.00003 7.77614 4.00003 7.5C4.00003 7.22386 4.22389 7 4.50003 7
85H7.00003V4.5C7.00003 4.22386 7.22389 4 7.50003 4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),gue=["color"],cQe=_.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=Qi(t,gue);return _.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:e}),_.createElement("path",{d:"M4.85355 2.14645C5.04882 2.34171 5.04882 2.65829 4.85355 2.85355L3.70711 4H9C11.4853 4 13.5 6.01472 13.5 8.5C13.5 10.9853 11.4853 13 9 13H5C4.72386 13 4.5 12.7761 4.5 12.5C4.5 12.2239 4.72386 12 5 12H9C10.933 12 12.5 10.433 12.5 8.5C12.5 6.567 10.933 5 9 5H3.70711L4.85355 6.14645C5.04882 6.34171 5.04882 6.65829 4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355L2.14645 4.85355C1.95118 4.65829 1.95118 4.34171 2.14645 4.14645L4.14645 2.14645C4.34171 1.95118 4.65829 1.95118 4.85355 2.14645Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),vue=["color"],uQe=_.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,s=Qi(t,vue);return _.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s,{ref:e}),_.createElement("path",{d:"M5.5 1C5.22386 1 5 1.22386 5 1.5C5 1.77614 5.22386 2 5.5 2H9.5C9.77614 2 10 1.77614 10 1.5C10 1.22386 9.77614 1 9.5 1H5.5ZM3 3.5C3 3.22386 3.22386 3 3.5 3H5H10H11.5C11.7761 3 12 3.22386 12 3.5C12 3.77614 11.7761 4 11.5 4H11V12C11 12.5523 10.5523 13 10 13H5C4.44772 13 4 12.5523 4 12V4L3.5 4C3.22386 4 3 3.77614 3 3.5ZM5 4H10V12H5V4Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});function ke(t,e,{checkForDefaultPrevented:n=!0}={}){return function(s){if(t?.(s),n===!1||!s.defaultPrevented)return e?.(s)}}function $R(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function nb(...t){return e=>{let n=!1;const r=t.map(s=>{const i=$R(s,e);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():$R(t[s],null)}}}}function yt(...t){return _.useCallback(nb(...t),t)}function yue(t,e){const n=_.createContext(e),r=i=>{const{children:o,...a}=i,c=_.useMemo(()=>a,Object.values(a));return u.jsx(n.Provider,{value:c,children:o})};r.displayName=t+"Provider";function s(i){const o=_.useContext(n);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[r,s]}function jr(t,e=[]){let n=[];function r(i,o){const a=_.createContext(o),c=n.length;n=[...n,o];const d=m=>{const{scope:v,children:w,...E}=m,C=v?.[t]?.[c]||a,b=_.useMemo(()=>E,Object.values(E));return u.jsx(C.Provider,{value:b,children:w})};d.displayName=i+"Provider";function p(m,v){const w=v?.[t]?.[c]||a,E=_.useContext(w);if(E)return E;if(o!==void 0)return o;throw new Error(`\`${m}\` must be used within \`${i}\``)}return[d,p]}const s=()=>{const i=n.map(o=>_.createContext(o));return function(a){const c=a?.[t]||i;return _.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return s.scopeName=t,[r,xue(s,...e)]}function xue(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=r.reduce((a,{useScope:c,scopeName:d})=>{const m=c(i)[`__scope${d}`];return{...a,...m}},{});return _.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function tf(t){const e=wue(t),n=_.forwardRef((r,s)=>{const{children:i,...o}=r,a=_.Children.toArray(i),c=a.find(_ue);if(c){const d=c.props.children,p=a.map(m=>m===c?_.Children.count(d)>1?_.Children.only(null):_.isValidElement(d)?d.props.children:null:m);return u.jsx(e,{...o,ref:s,children:_.isValidElement(d)?_.cloneElement(d,void 0,p):null})}return u.jsx(e,{...o,ref:s,children:i})});return n.displayName=`${t}.Slot`,n}var hL=tf("Slot");function wue(t){const e=_.forwardRef((n,r)=>{const{children:s,...i}=n;if(_.isValidElement(s)){const o=bue(s),a=Eue(i,s.props);return s.type!==_.Fragment&&(a.ref=r?nb(r,o):o),_.cloneElement(s,a)}return _.Children.count(s)>1?_.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var pL=Symbol("radix.slottable");function mL(t){const e=({children:n})=>u.jsx(u.Fragment,{children:n});return e.displayName=`${t}.Slottable`,e.__radixId=pL,e}function _ue(t){return _.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===pL}function Eue(t,e){const n={...e};for(const r in e){const s=t[r],i=e[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...a)=>{i(...a),s(...a)}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}
vendor: 6,671 bytes, line 85
85:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...t,...n}}function bue(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function Em(t){const e=t+"CollectionProvider",[n,r]=jr(e),[s,i]=n(e,{collectionRef:{current:null},itemMap:new Map}),o=C=>{const{scope:b,children:S}=C,P=h.useRef(null),R=h.useRef(new Map).current;return u.jsx(s,{scope:b,itemMap:R,collectionRef:P,children:S})};o.displayName=e;const a=t+"CollectionSlot",c=tf(a),d=h.forwardRef((C,b)=>{const{scope:S,children:P}=C,R=i(a,S),z=yt(b,R.collectionRef);return u.jsx(c,{ref:z,children:P})});d.displayName=a;const p=t+"CollectionItemSlot",m="data-radix-collection-item",v=tf(p),w=h.forwardRef((C,b)=>{const{scope:S,children:P,...R}=C,z=h.useRef(null),O=yt(b,z),F=i(p,S);return h.useEffect(()=>(F.itemMap.set(z,{ref:z,...R}),()=>void F.itemMap.delete(z))),u.jsx(v,{[m]:"",ref:O,children:P})});w.displayName=p;function E(C){const b=i(t+"CollectionConsumer",C);return h.useCallback(()=>{const P=b.collectionRef.current;if(!P)return[];const R=Array.from(P.querySelectorAll(`[${m}]`));return Array.from(b.itemMap.values()).sort((F,D)=>R.indexOf(F.ref.current)-R.indexOf(D.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:o,Slot:d,ItemSlot:w},E,r]}var Sue=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=Sue.reduce((t,e)=>{const n=tf(`Primitive.${e}`),r=_.forwardRef((s,i)=>{const{asChild:o,...a}=s,c=o?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function Wy(t,e){t&&Tf.flushSync(()=>t.dispatchEvent(e))}function An(t){const e=_.useRef(t);return _.useEffect(()=>{e.current=t}),_.useMemo(()=>(...n)=>e.current?.(...n),[])}function Cue(t,e=globalThis?.document){const n=An(t);_.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var Tue="DismissableLayer",g_="dismissableLayer.update",Aue="dismissableLayer.pointerDownOutside",Iue="dismissableLayer.focusOutside",FR,gL=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Af=_.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=t,d=_.useContext(gL),[p,m]=_.useState(null),v=p?.ownerDocument??globalThis?.document,[,w]=_.useState({}),E=yt(e,D=>m(D)),C=Array.from(d.layers),[b]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),S=C.indexOf(b),P=p?C.indexOf(p):-1,R=d.layersWithOutsidePointerEventsDisabled.size>0,z=P>=S,O=Rue(D=>{const I=D.target,T=[...d.branches].some(k=>k.contains(I));!z||T||(s?.(D),o?.(D),D.defaultPrevented||a?.())},v),F=Nue(D=>{const I=D.target;[...d.branches].some(k=>k.contains(I))||(i?.(D),o?.(D),D.defaultPrevented||a?.())},v);return Cue(D=>{P===d.layers.size-1&&(r?.(D),!D.defaultPrevented&&a&&(D.preventDefault(),a()))},v),_.useEffect(()=>{if(p)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(FR=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),jR(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=FR)}},[p,v,n,d]),_.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),jR())},[p,d]),_.useEffect(()=>{const D=()=>w({});return document.addEventListener(g_,D),()=>document.removeEventListener(g_,D)},[]),u.jsx(Le.div,{...c,ref:E,style:{pointerEvents:R?z?"auto":"none":void 0,...t.style},onFocusCapture:ke(t.onFocusCapture,F.onFocusCapture),onBlurCapture:ke(t.onBlurCapture,F.onBlurCapture),onPointerDownCapture:ke(t.onPointerDownCapture,O.onPointerDownCapture)})});Af.displayName=Tue;var Pue="DismissableLayerBranch",vL=_.forwardRef((t,e)=>{const n=_.useContext(gL),r=_.useRef(null),s=yt(e,r);return _.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),u.jsx(Le.div,{...t,ref:s})});vL.displayName=Pue;function Rue(t,e=globalThis?.document){const n=An(t),r=_.useRef(!1),s=_.useRef(()=>{});return _.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){yL(Aue,n,d,{discrete:!0})};const d={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=c,e.addEventListener("click",s.current,{once:!0})):c()}else e.removeEventListener("click",s.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function Nue(t,e=globalThis?.document){const n=An(t),r=_.useRef(!1);return _.useEffect(()=>{const s=i=>{i.target&&!r.current&&yL(Iue,n,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function jR(){const t=new CustomEvent(g_);document.dispatchEvent(t)}function yL(t,e,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?Wy(s,i):s.dispatchEvent(i)}var Mue=Af,kue=vL,Zn=globalThis?.document?_.useLayoutEffect:()=>{},Due="Portal",bm=_.forwardRef((t,e)=>{const{container:n,...r}=t,[s,i]=_.useState(!1);Zn(()=>i(!0),[]);const o=n||s&&globalThis?.document?.body;return o?dL.createPortal(u.jsx(Le.div,{...r,ref:e}),o):null});bm.displayName=Due;function Oue(t,e){return _.useReducer((n,r)=>e[n][r]??n,t)}var gr=t=>{const{present:e,children:n}=t,r=$ue(e),s=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),i=yt(r.ref,Fue(s));return typeof n=="function"||r.isPresent?_.cloneElement(s,{ref:i}):null};gr.displayName="Presence";function $ue(t){const[e,n]=_.useState(),r=_.useRef(null),s=_.useRef(t),i=_.useRef("none"),o=t?"mounted":"unmounted",[a,c]=Oue(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const d=t3(r.current);i.current=a==="mounted"?d:"none"},[a]),Zn(()=>{const d=r.current,p=s.current;if(p!==t){const v=i.current,w=t3(d);t?c("MOUNT"):w==="none"||d?.display==="none"?c("UNMOUNT"):c(p&&v!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,c]),Zn(()=>
vendor: 12,167 bytes, line 85
85{if(e){let d;const p=e.ownerDocument.defaultView??window,m=w=>{const C=t3(r.current).includes(w.animationName);if(w.target===e&&C&&(c("ANIMATION_END"),!s.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",d=p.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},v=w=>{w.target===e&&(i.current=t3(r.current))};return e.addEventListener("animationstart",v),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{p.clearTimeout(d),e.removeEventListener("animationstart",v),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:_.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function t3(t){return t?.animationName||"none"}function Fue(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var jue=zj[" useInsertionEffect ".trim().toString()]||Zn;function As({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[s,i,o]=Lue({defaultProp:e,onChange:n}),a=t!==void 0,c=a?t:s;{const p=_.useRef(t!==void 0);_.useEffect(()=>{const m=p.current;m!==a&&console.warn(`${r} is changing from ${m?"controlled":"uncontrolled"} to ${a?"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.`),p.current=a},[a,r])}const d=_.useCallback(p=>{if(a){const m=zue(p)?p(t):p;m!==t&&o.current?.(m)}else i(p)},[a,t,i,o]);return[c,d]}function Lue({defaultProp:t,onChange:e}){const[n,r]=_.useState(t),s=_.useRef(n),i=_.useRef(e);return jue(()=>{i.current=e},[e]),_.useEffect(()=>{s.current!==n&&(i.current?.(n),s.current=n)},[n,s]),[n,r,i]}function zue(t){return typeof t=="function"}var xL=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"}),Vue="VisuallyHidden",E5=_.forwardRef((t,e)=>u.jsx(Le.span,{...t,ref:e,style:{...xL,...t.style}}));E5.displayName=Vue;var wL=E5,rb="ToastProvider",[sb,Bue,Hue]=Em("Toast"),[_L,dQe]=jr("Toast",[Hue]),[Uue,b5]=_L(rb),EL=t=>{const{__scopeToast:e,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:o}=t,[a,c]=_.useState(null),[d,p]=_.useState(0),m=_.useRef(!1),v=_.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${rb}\`. Expected non-empty \`string\`.`),u.jsx(sb.Provider,{scope:e,children:u.jsx(Uue,{scope:e,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:d,viewport:a,onViewportChange:c,onToastAdd:_.useCallback(()=>p(w=>w+1),[]),onToastRemove:_.useCallback(()=>p(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:v,children:o})})};EL.displayName=rb;var bL="ToastViewport",Wue=["F8"],v_="toast.viewportPause",y_="toast.viewportResume",SL=_.forwardRef((t,e)=>{const{__scopeToast:n,hotkey:r=Wue,label:s="Notifications ({hotkey})",...i}=t,o=b5(bL,n),a=Bue(n),c=_.useRef(null),d=_.useRef(null),p=_.useRef(null),m=_.useRef(null),v=yt(e,m,o.onViewportChange),w=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=o.toastCount>0;_.useEffect(()=>{const b=S=>{r.length!==0&&r.every(R=>S[R]||S.code===R)&&m.current?.focus()};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),_.useEffect(()=>{const b=c.current,S=m.current;if(E&&b&&S){const P=()=>{if(!o.isClosePausedRef.current){const F=new CustomEvent(v_);S.dispatchEvent(F),o.isClosePausedRef.current=!0}},R=()=>{if(o.isClosePausedRef.current){const F=new CustomEvent(y_);S.dispatchEvent(F),o.isClosePausedRef.current=!1}},z=F=>{!b.contains(F.relatedTarget)&&R()},O=()=>{b.contains(document.activeElement)||R()};return b.addEventListener("focusin",P),b.addEventListener("focusout",z),b.addEventListener("pointermove",P),b.addEventListener("pointerleave",O),window.addEventListener("blur",P),window.addEventListener("focus",R),()=>{b.removeEventListener("focusin",P),b.removeEventListener("focusout",z),b.removeEventListener("pointermove",P),b.removeEventListener("pointerleave",O),window.removeEventListener("blur",P),window.removeEventListener("focus",R)}}},[E,o.isClosePausedRef]);const C=_.useCallback(({tabbingDirection:b})=>{const P=a().map(R=>{const z=R.ref.current,O=[z,...sde(z)];return b==="forwards"?O:O.reverse()});return(b==="forwards"?P.reverse():P).flat()},[a]);return _.useEffect(()=>{const b=m.current;if(b){const S=P=>{const R=P.altKey||P.ctrlKey||P.metaKey;if(P.key==="Tab"&&!R){const O=document.activeElement,F=P.shiftKey;if(P.target===b&&F){d.current?.focus();return}const T=C({tabbingDirection:F?"backwards":"forwards"}),k=T.findIndex(j=>j===O);s7(T.slice(k+1))?P.preventDefault():F?d.current?.focus():p.current?.focus()}};return b.addEventListener("keydown",S),()=>b.removeEventListener("keydown",S)}},[a,C]),u.jsxs(kue,{ref:c,role:"region","aria-label":s.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&u.jsx(x_,{ref:d,onFocusFromOutsideViewport:()=>{const b=C({tabbingDirection:"forwards"});s7(b)}}),u.jsx(sb.Slot,{scope:n,children:u.jsx(Le.ol,{tabIndex:-1,...i,ref:v})}),E&&u.jsx(x_,{ref:p,onFocusFromOutsideViewport:()=>{const b=C({tabbingDirection:"backwards"});s7(b)}})]})});SL.displayName=bL;var CL="ToastFocusProxy",x_=_.forwardRef((t,e)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=t,i=b5(CL,n);return u.jsx(E5,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{const a=o.relatedTarget;!i.viewport?.contains(a)&&r()}})});x_.displayName=CL;var F2="Toast",que="toast.swipeStart",Gue="toast.swipeMove",Kue="toast.swipeCancel",Yue="toast.swipeEnd",TL=_.forwardRef((t,e)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...o}=t,[a,c]=As({prop:r,defaultProp:s??!0,onChange:i,caller:F2});return u.jsx(gr,{present:n||a,children:u.jsx(Zue,{open:a,...o,ref:e,onClose:()=>c(!1),onPause:An(t.onPause),onResume:An(t.onResume),onSwipeStart:ke(t.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ke(t.onSwipeMove,d=>{const{x:p,y:m}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${m}px`)}),onSwipeCancel:ke(t.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:ke(t.onSwipeEnd,d=>{const{x:p,y:m}=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",`${p}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${m}px`),c(!1)})})})});TL.displayName=F2;var[Que,Xue]=_L(F2,{onClose(){}}),Zue=_.forwardRef((t,e)=>{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:c,onResume:d,onSwipeStart:p,onSwipeMove:m,onSwipeCancel:v,onSwipeEnd:w,...E}=t,C=b5(F2,n),[b,S]=_.useState(null),P=yt(e,Y=>S(Y)),R=_.useRef(null),z=_.useRef(null),O=s||C.duration,F=_.useRef(0),D=_.useRef(O),I=_.useRef(0),{onToastAdd:T,onToastRemove:k}=C,j=An(()=>{b?.contains(document.activeElement)&&C.viewport?.focus(),o()}),L=_.useCallback(Y=>{!Y||Y===1/0||(window.clearTimeout(I.current),F.current=new Date().getTime(),I.current=window.setTimeout(j,Y))},[j]);_.useEffect(()=>{const Y=C.viewport;if(Y){const G=()=>{L(D.current),d?.()},q=()=>{const U=new Date().getTime()-F.current;D.current=D.current-U,window.clearTimeout(I.current),c?.()};return Y.addEventListener(v_,q),Y.addEventListener(y_,G),()=>{Y.removeEventListener(v_,q),Y.removeEventListener(y_,G)}}},[C.viewport,O,c,d,L]),_.useEffect(()=>{i&&!C.isClosePausedRef.current&&L(O)},[i,O,C.isClosePausedRef,L]),_.useEffect(()=>(T(),()=>k()),[T,k]);const V=_.useMemo(()=>b?kL(b):null,[b]);return C.viewport?u.jsxs(u.Fragment,{children:[V&&u.jsx(Jue,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:V}),u.jsx(Que,{scope:n,onClose:j,children:Tf.createPortal(u.jsx(sb.ItemSlot,{scope:n,children:u.jsx(Mue,{asChild:!0,onEscapeKeyDown:ke(a,()=>{C.isFocusedToastEscapeKeyDownRef.current||j(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:u.jsx(Le.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":C.swipeDirection,...E,ref:P,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:ke(t.onKeyDown,Y=>{Y.key==="Escape"&&(a?.(Y.nativeEvent),Y.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,j()))}),onPointerDown:ke(t.onPointerDown,Y=>{Y.button===0&&(R.current={x:Y.clientX,y:Y.clientY})}),onPointerMove:ke(t.onPointerMove,Y=>{if(!R.current)return;const G=Y.clientX-R.current.x,q=Y.clientY-R.current.y,U=!!z.current,B=["left","right"].includes(C.swipeDirection),ne=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,oe=B?ne(0,G):0,Q=B?0:ne(0,q),ie=Y.pointerType==="touch"?10:2,ue={x:oe,y:Q},ge={originalEvent:Y,delta:ue};U?(z.current=ue,n3(Gue,m,ge,{discrete:!1})):LR(ue,C.swipeDirection,ie)?(z.current=ue,n3(que,p,ge,{discrete:!1}),Y.target.setPointerCapture(Y.pointerId)):(Math.abs(G)>ie||Math.abs(q)>ie)&&(R.current=null)}),onPointerUp:ke(t.onPointerUp,Y=>{const G=z.current,q=Y.target;if(q.hasPointerCapture(Y.pointerId)&&q.releasePointerCapture(Y.pointerId),z.current=null,R.current=null,G){const U=Y.currentTarget,B={originalEvent:Y,delta:G};LR(G,C.swipeDirection,C.swipeThreshold)?n3(Yue,w,B,{discrete:!0}):n3(Kue,v,B,{discrete:!0}),U.addEventListener("click",ne=>ne.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),Jue=t=>{const{__scopeToast:e,children:n,...r}=t,s=b5(F2,e),[i,o]=_.useState(!1),[a,c]=_.useState(!1);return nde(()=>o(!0)),_.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),a?null:u.jsx(bm,{asChild:!0,children:u.jsx(E5,{...r,children:i&&u.jsxs(u.Fragment,{children:[s.label," ",n]})})})},ede="ToastTitle",AL=_.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return u.jsx(Le.div,{...r,ref:e})});AL.displayName=ede;var tde="ToastDescription",IL=_.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t;return u.jsx(Le.div,{...r,ref:e})});IL.displayName=tde;var PL="ToastAction",RL=_.forwardRef((t,e)=>{const{altText:n,...r}=t;return n.trim()?u.jsx(ML,{altText:n,asChild:!0,children:u.jsx(ib,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${PL}\`. Expected non-empty \`string\`.`),null)});RL.displayName=PL;var NL="ToastClose",ib=_.forwardRef((t,e)=>{const{__scopeToast:n,...r}=t,s=Xue(NL,n);return u.jsx(ML,{asChild:!0,children:u.jsx(Le.button,{type:"button",...r,ref:e,onClick:ke(t.onClick,s.onClose)})})});ib.displayName=NL;var ML=_.forwardRef((t,e)=>{const{__scopeToast:n,altText:r,...s}=t;return u.jsx(Le.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:e})});function kL(t){const e=[];return Array.from(t.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&e.push(r.textContent),rde(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&&e.push(o)}else e.push(...kL(r))}}),e}function n3(t,e,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:n});e&&s.addEventListener(t,e,{once:!0}),r?Wy(s,i):s.dispatchEvent(i)}var LR=(t,e,n=0)=>{const r=Math.abs(t.x),s=Math.abs(t.y),i=r>s;return e==="left"||e==="right"?i&&r>n:!i&&s>n};
vendor: 9,232 bytes, line 85
85function nde(t=()=>{}){const e=An(t);Zn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[e])}function rde(t){return t.nodeType===t.ELEMENT_NODE}function sde(t){const e=[],n=document.createTreeWalker(t,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();)e.push(n.currentNode);return e}function s7(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}var ide=EL,DL=SL,OL=TL,$L=AL,FL=IL,jL=RL,LL=ib;function zL(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=zL(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function VL(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=zL(t))&&(r&&(r+=" "),r+=e);return r}const zR=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,VR=VL,If=(t,e)=>n=>{var r;if(e?.variants==null)return VR(t,n?.class,n?.className);const{variants:s,defaultVariants:i}=e,o=Object.keys(s).map(d=>{const p=n?.[d],m=i?.[d];if(p===null)return null;const v=zR(p)||zR(m);return s[d][v]}),a=n&&Object.entries(n).reduce((d,p)=>{let[m,v]=p;return v===void 0||(d[m]=v),d},{}),c=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((d,p)=>{let{class:m,className:v,...w}=p;return Object.entries(w).every(E=>{let[C,b]=E;return Array.isArray(b)?b.includes({...i,...a}[C]):{...i,...a}[C]===b})?[...d,m,v]:d},[]);return VR(t,o,c,n?.class,n?.className)},ob="-",ode=t=>{const e=lde(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:o=>{const a=o.split(ob);return a[0]===""&&a.length!==1&&a.shift(),BL(a,e)||ade(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}}},BL=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?BL(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const i=t.join(ob);return e.validators.find(({validator:o})=>o(i))?.classGroupId},BR=/^\[(.+)\]$/,ade=t=>{if(BR.test(t)){const e=BR.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},lde=t=>{const{theme:e,classGroups:n}=t,r={nextPart:new Map,validators:[]};for(const s in n)w_(n[s],r,s,e);return r},w_=(t,e,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?e:HR(e,s);i.classGroupId=n;return}if(typeof s=="function"){if(cde(s)){w_(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{w_(o,HR(e,i),n,r)})})},HR=(t,e)=>{let n=t;return e.split(ob).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},cde=t=>t.isThemeGetter,ude=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const s=(i,o)=>{n.set(i,o),e++,e>t&&(e=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)}}},__="!",E_=":",dde=E_.length,fde=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=s=>{const i=[];let o=0,a=0,c=0,d;for(let E=0;E<s.length;E++){let C=s[E];if(o===0&&a===0){if(C===E_){i.push(s.slice(c,E)),c=E+dde;continue}if(C==="/"){d=E;continue}}C==="["?o++:C==="]"?o--:C==="("?a++:C===")"&&a--}const p=i.length===0?s:s.substring(c),m=hde(p),v=m!==p,w=d&&d>c?d-c:void 0;return{modifiers:i,hasImportantModifier:v,baseClassName:m,maybePostfixModifierPosition:w}};if(e){const s=e+E_,i=r;r=o=>o.startsWith(s)?i(o.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:o,maybePostfixModifierPosition:void 0}}if(n){const s=r;r=i=>n({className:i,parseClassName:s})}return r},hde=t=>t.endsWith(__)?t.substring(0,t.length-1):t.startsWith(__)?t.substring(1):t,pde=t=>{const e=Object.fromEntries(t.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const s=[];let i=[];return r.forEach(o=>{o[0]==="["||e[o]?(s.push(...i.sort(),o),i=[]):i.push(o)}),s.push(...i.sort()),s}},mde=t=>({cache:ude(t.cacheSize),parseClassName:fde(t),sortModifiers:pde(t),...ode(t)}),gde=/\s+/,vde=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i}=e,o=[],a=t.trim().split(gde);let c="";for(let d=a.length-1;d>=0;d-=1){const p=a[d],{isExternal:m,modifiers:v,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:C}=n(p);if(m){c=p+(c.length>0?" "+c:c);continue}let b=!!C,S=r(b?E.substring(0,C):E);if(!S){if(!b){c=p+(c.length>0?" "+c:c);continue}if(S=r(E),!S){c=p+(c.length>0?" "+c:c);continue}b=!1}const P=i(v).join(":"),R=w?P+__:P,z=R+S;if(o.includes(z))continue;o.push(z);const O=s(S,b);for(let F=0;F<O.length;++F){const D=O[F];o.push(R+D)}c=p+(c.length>0?" "+c:c)}return c};function yde(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=HL(e))&&(r&&(r+=" "),r+=n);return r}const HL=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=HL(t[r]))&&(n&&(n+=" "),n+=e);return n};function xde(t,...e){let n,r,s,i=o;function o(c){const d=e.reduce((p,m)=>m(p),t());return n=mde(d),r=n.cache.get,s=n.cache.set,i=a,a(c)}function a(c){const d=r(c);if(d)return d;const p=vde(c,n);return s(c,p),p}return function(){return i(yde.apply(null,arguments))}}const wr=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},UL=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,WL=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wde=/^\d+\/\d+$/,_de=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ede=/\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$/,bde=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Sde=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cde=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ih=t=>wde.test(t),Ft=t=>!!t&&!Number.isNaN(Number(t)),Tc=t=>!!t&&Number.isInteger(Number(t)),i7=t=>t.endsWith("%")&&Ft(t.slice(0,-1)),rl=t=>_de.test(t),Tde=()=>!0,Ade=t=>Ede.test(t)&&!bde.test(t),qL=()=>!1,Ide=t=>Sde.test(t),Pde=t=>Cde.test(t),Rde=t=>!Ye(t)&&!Qe(t),Nde=t=>Sm(t,YL,qL),Ye=t=>UL.test(t),md=t=>Sm(t,QL,Ade),o7=t=>Sm(t,$de,Ft),UR=t=>Sm(t,GL,qL),Mde=t=>Sm(t,KL,Pde),r3=t=>Sm(t,XL,Ide),Qe=t=>WL.test(t),k1=t=>Cm(t,QL),kde=t=>Cm(t,Fde),WR=t=>Cm(t,GL),Dde=t=>Cm(t,YL),Ode=t=>Cm(t,KL),s3=t=>Cm(t,XL,!0),Sm=(t,e,n)=>{const r=UL.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Cm=(t,e,n=!1)=>{const r=WL.exec(t);return r?r[1]?e(r[1]):n:!1},GL=t=>t==="position"||t==="percentage",KL=t=>t==="image"||t==="url",YL=t=>t==="length"||t==="size"||t==="bg-size",QL=t=>t==="length",$de=t=>t==="number",Fde=t=>t==="family-name",XL=t=>t==="shadow",jde=()=>{const t=wr("color"),e=wr("font"),n=wr("text"),r=wr("font-weight"),s=wr("tracking"),i=wr("leading"),o=wr("breakpoint"),a=wr("container"),c=wr("spacing"),d=wr("radius"),p=wr("shadow"),m=wr("inset-shadow"),v=wr("text-shadow"),w=wr("drop-shadow"),E=wr("blur"),C=wr("perspective"),b=wr("aspect"),S=wr("ease"),P=wr("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...z(),Qe,Ye],F=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],I=()=>[Qe,Ye,c],T=()=>[Ih,"full","auto",...I()],k=()=>[Tc,"none","subgrid",Qe,Ye],j=()=>["auto",{span:["full",Tc,Qe,Ye]},Tc,Qe,Ye],L=()=>[Tc,"auto",Qe,Ye],V=()=>["auto","min","max","fr",Qe,Ye],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],G=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...I()],U=()=>[Ih,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],B=()=>[t,Qe,Ye],ne=()=>[...z(),WR,UR,{position:[Qe,Ye]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",Dde,Nde,{size:[Qe,Ye]}],ie=()=>[i7,k1,md],ue=()=>["","none","full",d,Qe,Ye],ge=()=>["",Ft,k1,md],Ae=()=>["solid","dashed","dotted","double"],Pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[Ft,i7,WR,UR],xe=()=>["","none",E,Qe,Ye],Ne=()=>["none",Ft,Qe,Ye],ze=()=>["none",Ft,Qe,Ye],Ze=()=>[Ft,Qe,Ye],ut=()=>[Ih,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[rl],breakpoint:[rl],color:[Tde],container:[rl],"drop-shadow":[rl],ease:["in","out","in-out"],font:[Rde],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[rl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[rl],shadow:[rl],spacing:["px",Ft],text:[rl],"text-shadow":[rl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ih,Ye,Qe,b]}
vendor: 5,609 bytes, line 85
85],container:["container"],columns:[{columns:[Ft,Ye,Qe,a]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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"],sr:["sr-only","not-sr-only"],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:O()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[Tc,"auto",Qe,Ye]}],basis:[{basis:[Ih,"full","auto",a,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ft,Ih,"auto","initial","none",Ye]}],grow:[{grow:["",Ft,Qe,Ye]}],shrink:[{shrink:["",Ft,Qe,Ye]}],order:[{order:[Tc,"first","last","none",Qe,Ye]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:j()}],"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":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...G(),"normal"]}],"justify-self":[{"justify-self":["auto",...G()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...G(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...G(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...G(),"baseline"]}],"place-self":[{"place-self":["auto",...G()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:U()}],w:[{w:[a,"screen",...U()]}],"min-w":[{"min-w":[a,"screen","none",...U()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...U()]}],h:[{h:["screen",...U()]}],"min-h":[{"min-h":["screen","none",...U()]}],"max-h":[{"max-h":["screen",...U()]}],"font-size":[{text:["base",n,k1,md]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Qe,o7]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",i7,Ye]}],"font-family":[{font:[kde,Ye,e]}],"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:[s,Qe,Ye]}],"line-clamp":[{"line-clamp":[Ft,"none",Qe,o7]}],leading:[{leading:[i,...I()]}],"list-image":[{"list-image":["none",Qe,Ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Qe,Ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ft,"from-font","auto",Qe,md]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[Ft,"auto",Qe,Ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Qe,Ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Qe,Ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Tc,Qe,Ye],radial:["",Qe,Ye],conic:[Tc,Qe,Ye]},Ode,Mde]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:ie()}
85],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:ue()}],"rounded-s":[{"rounded-s":ue()}],"rounded-e":[{"rounded-e":ue()}],"rounded-t":[{"rounded-t":ue()}],"rounded-r":[{"rounded-r":ue()}],"rounded-b":[{"rounded-b":ue()}],"rounded-l":[{"rounded-l":ue()}],"rounded-ss":[{"rounded-ss":ue()}],"rounded-se":[{"rounded-se":ue()}],"rounded-ee":[{"rounded-ee":ue()}],"rounded-es":[{"rounded-es":ue()}],"rounded-tl":[{"rounded-tl":ue()}],"rounded-tr":[{"rounded-tr":ue()}],"rounded-br":[{"rounded-br":ue()}],"rounded-bl":[{"rounded-bl":ue()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}
vendor: 5,757 bytes, line 85
85],"divide-color":[{divide:B()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ft,Qe,Ye]}],"outline-w":[{outline:["",Ft,k1,md]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",p,s3,r3]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",m,s3,r3]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[Ft,md]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",v,s3,r3]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[Ft,Qe,Ye]}],"mix-blend":[{"mix-blend":[...Pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ft]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[Qe,Ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":z()}],"mask-image-conic-pos":[{"mask-conic":[Ft]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Qe,Ye]}],filter:[{filter:["","none",Qe,Ye]}],blur:[{blur:xe()}],brightness:[{brightness:[Ft,Qe,Ye]}],contrast:[{contrast:[Ft,Qe,Ye]}],"drop-shadow":[{"drop-shadow":["","none",w,s3,r3]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",Ft,Qe,Ye]}],"hue-rotate":[{"hue-rotate":[Ft,Qe,Ye]}],invert:[{invert:["",Ft,Qe,Ye]}],saturate:[{saturate:[Ft,Qe,Ye]}],sepia:[{sepia:["",Ft,Qe,Ye]}],"backdrop-filter":[{"backdrop-filter":["","none",Qe,Ye]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[Ft,Qe,Ye]}],"backdrop-contrast":[{"backdrop-contrast":[Ft,Qe,Ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ft,Qe,Ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ft,Qe,Ye]}],"backdrop-invert":[{"backdrop-invert":["",Ft,Qe,Ye]}],"backdrop-opacity":[{"backdrop-opacity":[Ft,Qe,Ye]}],"backdrop-saturate":[{"backdrop-saturate":[Ft,Qe,Ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Ft,Qe,Ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Qe,Ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ft,"initial",Qe,Ye]}],ease:[{ease:["linear","initial",S,Qe,Ye]}],delay:[{delay:[Ft,Qe,Ye]}],animate:[{animate:["none",P,Qe,Ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,Qe,Ye]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:Ne()}],"rotate-x":[{"rotate-x":Ne()}],"rotate-y":[{"rotate-y":Ne()}],"rotate-z":[{"rotate-z":Ne()}],scale:[{scale:ze()}],"scale-x":[{"scale-x":ze()}],"scale-y":[{"scale-y":ze()}],"scale-z":[{"scale-z":ze()}],"scale-3d":["scale-3d"],skew:[{skew:Ze()}],"skew-x":[{"skew-x":Ze()}],"skew-y":[{"skew-y":Ze()}],transform:[{transform:[Qe,Ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ut()}],"translate-x":[{"translate-x":ut()}],"translate-y":[{"translate-y":ut()}],"translate-z":[{"translate-z":ut()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}
vendor: 6,406 bytes, line 85
85],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Qe,Ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Qe,Ye]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[Ft,k1,md,o7]}],stroke:[{stroke:["none",...B()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Lde=xde(jde);function ve(...t){return Lde(VL(t))}const zde=ide,ZL=_.forwardRef(({className:t,...e},n)=>u.jsx(DL,{ref:n,className:ve("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]",t),...e}));ZL.displayName=DL.displayName;const Vde=If("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 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"}}),JL=_.forwardRef(({className:t,variant:e,...n},r)=>u.jsx(OL,{ref:r,className:ve(Vde({variant:e}),t),...n}));JL.displayName=OL.displayName;const Bde=_.forwardRef(({className:t,...e},n)=>u.jsx(jL,{ref:n,className:ve("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...e}));Bde.displayName=jL.displayName;const ez=_.forwardRef(({className:t,...e},n)=>u.jsx(LL,{ref:n,className:ve("absolute right-1 top-1 rounded-md p-1 text-foreground
85/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...e,children:u.jsx(fL,{className:"h-4 w-4"})}));ez.displayName=LL.displayName;const tz=_.forwardRef(({className:t,...e},n)=>u.jsx($L,{ref:n,className:ve("text-sm font-semibold [&+div]:text-xs",t),...e}));tz.displayName=$L.displayName;const nz=_.forwardRef(({className:t,...e},n)=>u.jsx(FL,{ref:n,className:ve("text-sm opacity-90",t),...e}));nz.displayName=FL.displayName;const Hde=1,Ude=1e6;let a7=0;function Wde(){return a7=(a7+1)%Number.MAX_SAFE_INTEGER,a7.toString()}const l7=new Map,qR=t=>{if(l7.has(t))return;const e=setTimeout(()=>{l7.delete(t),h0({type:"REMOVE_TOAST",toastId:t})},Ude);l7.set(t,e)},qde=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,Hde)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===e.toast.id?{...n,...e.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=e;return n?qR(n):t.toasts.forEach(r=>{qR(r.id)}),{...t,toasts:t.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==e.toastId)}}},H3=[];let U3={toasts:[]};function h0(t){U3=qde(U3,t),H3.forEach(e=>{e(U3)})}function Gde({...t}){const e=Wde(),n=s=>h0({type:"UPDATE_TOAST",toast:{...s,id:e}}),r=()=>h0({type:"DISMISS_TOAST",toastId:e});return h0({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:s=>{s||r()}}}),{id:e,dismiss:r,update:n}}function Kde(){const[t,e]=_.useState(U3);return _.useEffect(()=>(H3.push(e),()=>{const n=H3.indexOf(e);n>-1&&H3.splice(n,1)}),[t]),{...t,toast:Gde,dismiss:n=>h0({type:"DISMISS_TOAST",toastId:n})}}function Yde(){const{toasts:t}=Kde();return u.jsxs(zde,{children:[t.map(({id:e,title:n,description:r,action:s,...i})=>u.jsxs(JL,{...i,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(tz,{children:n}),r&&u.jsx(nz,{children:r})]}),s,u.jsx(ez,{})]},e)),u.jsx(ZL,{})]})}const Wp=If("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Qde=()=>u.jsxs("svg",{"aria-hidden":"true",className:"animate-spin h-4 w-4 mr-2 text-current",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("circle",{className:"opacity-25",cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"2"}),u.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M15 8a7 7 0 01-7 7V13a5 5 0 005-5h2z"})]}),tt=_.forwardRef(({className:t,variant:e,size:n,asChild:r=!1,isLoading:s=!1,disabled:i,children:o,...a},c)=>{const d=r?hL:"button";return u.jsxs(d,{className:ve(Wp({variant:e,size:n,className:t})),ref:c,disabled:s||i,...a,children:[s&&u.jsx(Qde,{}),o]})});tt.displayName="Button";/**
86 * @license lucide-react v0.507.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const Xde=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Zde=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),GR=t=>{const e=Zde(t);return e.charAt(0).toUpperCase()+e.slice(1)},rz=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim(),Jde=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
91 * @license lucide-react v0.507.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */var efe={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"};/**
96 * @license lucide-react v0.507.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const tfe=_.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:o,...a},c)=>_.createElement("svg",{ref:c,...efe,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:rz("lucide",s),...!i&&!Jde(a)&&{"aria-hidden":"true"},...a},[...o.map(([d,p])=>_.createElement(d,p)),...Array.isArray(i)?i:[i]]));/**
101 * @license lucide-react v0.507.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const Pn=(t,e)=>{const n=_.forwardRef(({className:r,...s},i)=>_.createElement(tfe,{ref:i,iconNode:e,className:rz(`lucide-${Xde(GR(t))}`,`lucide-${t}`,r),...s}));return n.displayName=GR(t),n};/**
106 * @license lucide-react v0.507.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const nfe=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],rfe=Pn("arrow-left",nfe);/**
111 * @license lucide-react v0.507.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const sfe=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ife=Pn("arrow-right",sfe);/**
116 * @license lucide-react v0.507.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const ofe=[["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"}]],afe=Pn("calendar",ofe);/**
121 * @license lucide-react v0.507.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const lfe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],cfe=Pn("circle-alert",lfe);/**
126 * @license lucide-react v0.507.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const ufe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 12H8",key:"1fr5h0"}
130],["path",{d:"m12 8-4 4 4 4",key:"15vm53"}]],dfe=Pn("circle-arrow-left",ufe);/**
131 * @license lucide-react v0.507.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const ffe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],hfe=Pn("circle-check",ffe);/**
136 * @license lucide-react v0.507.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const pfe=[["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"}]],mfe=Pn("circle-x",pfe);/**
141 * @license lucide-react v0.507.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const gfe=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],vfe=Pn("credit-card",gfe);/**
146 * @license lucide-react v0.507.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const yfe=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],xfe=Pn("ellipsis",yfe);/**
151 * @license lucide-react v0.507.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const wfe=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],_fe=Pn("external-link",wfe);/**
156 * @license lucide-react v0.507.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const Efe=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],bfe=Pn("facebook",Efe);/**
161 * @license lucide-react v0.507.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const Sfe=[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]],Cfe=Pn("gift",Sfe);/**
166 * @license lucide-react v0.507.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const Tfe=[["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"}]],Afe=Pn("house",Tfe);/**
171 * @license lucide-react v0.507.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const Ife=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],Pfe=Pn("instagram",Ife);/**
176 * @license lucide-react v0.507.0 - ISC
177 *
178 * This source code is licensed under the ISC license.
179 * See the LICENSE file in the root directory of this source tree.
180 */const Rfe=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],Nfe=Pn("linkedin",Rfe);/**
181 * @license lucide-react v0.507.0 - ISC
182 *
183 * This source code is licensed under the ISC license.
184 * See the LICENSE file in the root directory of this source tree.
185 */const Mfe=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],kfe=Pn("log-out",Mfe);/**
186 * @license lucide-react v0.507.0 - ISC
187 *
188 * This source code is licensed under the ISC license.
189 * See the LICENSE file in the root directory of this source tree.
190 */const Dfe=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Ofe=Pn("map-pin",Dfe);/**
191 * @license lucide-react v0.507.0 - ISC
192 *
193 * This source code is licensed under the ISC license.
194 * See the LICENSE file in the root directory of this source tree.
195 */const $fe=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],sz=Pn("menu",$fe);/**
196 * @license lucide-react v0.507.0 - ISC
197 *
198 * This source code is licensed under the ISC license.
199 * See the LICENSE file in the root directory of this source tree.
200 */const Ffe=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M13 8H7",key:"14i4kc"}],["path",{d:"M17 12H7",key:"16if0g"}]],iz=Pn("message-square-text",Ffe);
vendor: 12,438 bytes, lines 200-250
200/**
201 * @license lucide-react v0.507.0 - ISC
202 *
203 * This source code is licensed under the ISC license.
204 * See the LICENSE file in the root directory of this source tree.
205 */const jfe=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],c7=Pn("package",jfe);/**
206 * @license lucide-react v0.507.0 - ISC
207 *
208 * This source code is licensed under the ISC license.
209 * See the LICENSE file in the root directory of this source tree.
210 */const Lfe=[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M13 16H8",key:"wsln4y"}]],zfe=Pn("receipt-text",Lfe);/**
211 * @license lucide-react v0.507.0 - ISC
212 *
213 * This source code is licensed under the ISC license.
214 * See the LICENSE file in the root directory of this source tree.
215 */const Vfe=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Bfe=Pn("search",Vfe);/**
216 * @license lucide-react v0.507.0 - ISC
217 *
218 * This source code is licensed under the ISC license.
219 * See the LICENSE file in the root directory of this source tree.
220 */const Hfe=[["path",{d:"m15 11-1 9",key:"5wnq3a"}],["path",{d:"m19 11-4-7",key:"cnml18"}],["path",{d:"M2 11h20",key:"3eubbj"}],["path",{d:"m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h9.8a2 2 0 0 0 2-1.6l1.7-7.4",key:"yiazzp"}],["path",{d:"M4.5 15.5h15",key:"13mye1"}],["path",{d:"m5 11 4-7",key:"116ra9"}],["path",{d:"m9 11 1 9",key:"1ojof7"}]],Ufe=Pn("shopping-basket",Hfe);/**
221 * @license lucide-react v0.507.0 - ISC
222 *
223 * This source code is licensed under the ISC license.
224 * See the LICENSE file in the root directory of this source tree.
225 */const Wfe=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],i3=Pn("square-pen",Wfe);/**
226 * @license lucide-react v0.507.0 - ISC
227 *
228 * This source code is licensed under the ISC license.
229 * See the LICENSE file in the root directory of this source tree.
230 */const qfe=[["path",{d:"M2 9a3 3 0 1 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 1 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"1l48ns"}],["path",{d:"M9 9h.01",key:"1q5me6"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M15 15h.01",key:"lqbp3k"}]],Gfe=Pn("ticket-percent",qfe);/**
231 * @license lucide-react v0.507.0 - ISC
232 *
233 * This source code is licensed under the ISC license.
234 * See the LICENSE file in the root directory of this source tree.
235 */const Kfe=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Yfe=Pn("user-round",Kfe);var Qfe=zj[" useId ".trim().toString()]||(()=>{}),Xfe=0;function qs(t){const[e,n]=_.useState(Qfe());return Zn(()=>{n(r=>r??String(Xfe++))},[t]),e?`radix-${e}`:""}var u7="focusScope.autoFocusOnMount",d7="focusScope.autoFocusOnUnmount",KR={bubbles:!1,cancelable:!0},Zfe="FocusScope",S5=_.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=t,[a,c]=_.useState(null),d=An(s),p=An(i),m=_.useRef(null),v=yt(e,C=>c(C)),w=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let C=function(R){if(w.paused||!a)return;const z=R.target;a.contains(z)?m.current=z:Mc(m.current,{select:!0})},b=function(R){if(w.paused||!a)return;const z=R.relatedTarget;z!==null&&(a.contains(z)||Mc(m.current,{select:!0}))},S=function(R){if(document.activeElement===document.body)for(const O of R)O.removedNodes.length>0&&Mc(a)};document.addEventListener("focusin",C),document.addEventListener("focusout",b);const P=new MutationObserver(S);return a&&P.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",b),P.disconnect()}}},[r,a,w.paused]),_.useEffect(()=>{if(a){QR.add(w);const C=document.activeElement;if(!a.contains(C)){const S=new CustomEvent(u7,KR);a.addEventListener(u7,d),a.dispatchEvent(S),S.defaultPrevented||(Jfe(she(oz(a)),{select:!0}),document.activeElement===C&&Mc(a))}return()=>{a.removeEventListener(u7,d),setTimeout(()=>{const S=new CustomEvent(d7,KR);a.addEventListener(d7,p),a.dispatchEvent(S),S.defaultPrevented||Mc(C??document.body,{select:!0}),a.removeEventListener(d7,p),QR.remove(w)},0)}}},[a,d,p,w]);const E=_.useCallback(C=>{if(!n&&!r||w.paused)return;const b=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,S=document.activeElement;if(b&&S){const P=C.currentTarget,[R,z]=ehe(P);R&&z?!C.shiftKey&&S===z?(C.preventDefault(),n&&Mc(R,{select:!0})):C.shiftKey&&S===R&&(C.preventDefault(),n&&Mc(z,{select:!0})):S===P&&C.preventDefault()}},[n,r,w.paused]);return u.jsx(Le.div,{tabIndex:-1,...o,ref:v,onKeyDown:E})});S5.displayName=Zfe;function Jfe(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(Mc(r,{select:e}),document.activeElement!==n)return}function ehe(t){const e=oz(t),n=YR(e,t),r=YR(e.reverse(),t);return[n,r]}function oz(t){const e=[],n=document.createTreeWalker(t,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();)e.push(n.currentNode);return e}function YR(t,e){for(const n of t)if(!the(n,{upTo:e}))return n}function the(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function nhe(t){return t instanceof HTMLInputElement&&"select"in t}function Mc(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&nhe(t)&&e&&t.select()}}var QR=rhe();function rhe(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=XR(t,e),t.unshift(e)},remove(e){t=XR(t,e),t[0]?.resume()}}}function XR(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function she(t){return t.filter(e=>e.tagName!=="A")}var f7=0;function ab(){_.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??ZR()),document.body.insertAdjacentElement("beforeend",t[1]??ZR()),f7++,()=>{f7===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),f7--}},[])}function ZR(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var fa=function(){return fa=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},fa.apply(this,arguments)};function j2(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function ihe(t,e,n){if(n||arguments.length===2)for(var r=0,s=e.length,i;r<s;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}var W3="right-scroll-bar-position",q3="width-before-scroll-bar",ohe="with-scroll-bars-hidden",ahe="--removed-body-scroll-bar-size";function h7(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function lhe(t,e){var n=_.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=e,n.facade}var che=typeof window<"u"?_.useLayoutEffect:_.useEffect,JR=new WeakMap;function uhe(t,e){var n=lhe(null,function(r){return t.forEach(function(s){return h7(s,r)})});return che(function(){var r=JR.get(n);if(r){var s=new Set(r),i=new Set(t),o=n.current;s.forEach(function(a){i.has(a)||h7(a,null)}),i.forEach(function(a){s.has(a)||h7(a,o)})}JR.set(n,t)},[t]),n}function dhe(t){return t}function fhe(t,e){e===void 0&&(e=dhe);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(i){var o=e(i,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var c=function(){var p=o;o=[],p.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(p){o.push(p),d()},filter:function(p){return o=o.filter(p),n}}}};return s}function hhe(t){t===void 0&&(t={});var e=fhe(null);return e.options=fa({async:!0,ssr:!1},t),e}var az=function(t){var e=t.sideCar,n=j2(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return _.createElement(r,fa({},n))};az.isSideCarExport=!0;function phe(t,e){return t.useMedium(e),az}var lz=hhe(),p7=function(){},C5=_.forwardRef(function(t,e){var n=_.useRef(null),r=_.useState({onScrollCapture:p7,onWheelCapture:p7,onTouchMoveCapture:p7}),s=r[0],i=r[1],o=t.forwardProps,a=t.children,c=t.className,d=t.removeScrollBar,p=t.enabled,m=t.shards,v=t.sideCar,w=t.noIsolation,E=t.inert,C=t.allowPinchZoom,b=t.as,S=b===void 0?"div":b,P=t.gapMode,R=j2(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),z=v,O=uhe([n,e]),F=fa(fa({},R),s);return _.createElement(_.Fragment,null,p&&_.createElement(z,{sideCar:lz,removeScrollBar:d,shards:m,noIsolation:w,inert:E,setCallbacks:i,allowPinchZoom:!!C,lockRef:n,gapMode:P}),o?_.cloneElement(_.Children.only(a),fa(fa({},F),{ref:O})):_.createElement(S,fa({},F,{className:c,ref:O}),a))});C5.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};C5.classNames={fullWidth:q3,zeroRight:W3};var mhe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ghe(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=mhe();return e&&t.setAttribute("nonce",e),t}function vhe(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function yhe(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var xhe=function(){var t=0,e=null;return{add:function(n){t==0&&(e=ghe())&&(vhe(e,n),yhe(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},whe=function(){var t=xhe();return function(e,n){_.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},cz=function(){var t=whe(),e=function(n){var r=n.styles,s=n.dynamic;return t(r,s),null};return e},_he={left:0,top:0,right:0,gap:0},m7=function(t){return parseInt(t||"",10)||0},Ehe=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],s=e[t==="padding"?"paddingRight":"marginRight"];return[m7(n),m7(r),m7(s)]},bhe=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return _he;var e=Ehe(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},She=cz(),cp="data-scroll-locked",Che=function(t,e,n,r){var s=t.left,i=t.top,o=t.right,a=t.gap;return n===void 0&&(n="margin"),`
236  .`.concat(ohe,` {
237   overflow: hidden `).concat(r,`;
238   padding-right: `).concat(a,"px ").concat(r,`;
239  }
240  body[`).concat(cp,`] {
241    overflow: hidden `).concat(r,`;
242    overscroll-behavior: contain;
243    `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
244    padding-left: `.concat(s,`px;
245    padding-top: `).concat(i,`px;
246    padding-right: `).concat(o,`px;
247    margin-left:0;
248    margin-top:0;
249    margin-right: `).concat(a,"px ").concat(r,`;
250    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
250")].filter(Boolean).join(""),`
251  }
252  
253  .`).concat(W3,` {
254    right: `).concat(a,"px ").concat(r,`;
255  }
256  
257  .`).concat(q3,` {
258    margin-right: `).concat(a,"px ").concat(r,`;
259  }
260  
261  .`).concat(W3," .").concat(W3,` {
262    right: 0 `).concat(r,`;
263  }
264  
265  .`).concat(q3," .").concat(q3,` {
266    margin-right: 0 `).concat(r,`;
267  }
268  
269  body[`).concat(cp,`] {
270    `).concat(ahe,": ").concat(a,`px;
271  }
272`)},eN=function(){var t=parseInt(document.body.getAttribute(cp)||"0",10);return isFinite(t)?t:0},The=function(){_.useEffect(function(){return document.body.setAttribute(cp,(eN()+1).toString()),function(){var t=eN()-1;t<=0?document.body.removeAttribute(cp):document.body.setAttribute(cp,t.toString())}},[])},Ahe=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,s=r===void 0?"margin":r;The();var i=_.useMemo(function(){return bhe(s)},[s]);return _.createElement(She,{styles:Che(i,!e,s,n?"":"!important")})},b_=!1;if(typeof window<"u")try{var o3=Object.defineProperty({},"passive",{get:function(){return b_=!0,!0}});window.addEventListener("test",o3,o3),window.removeEventListener("test",o3,o3)}catch{b_=!1}var Ph=b_?{passive:!1}:!1,Ihe=function(t){return t.tagName==="TEXTAREA"},uz=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ihe(t)&&n[e]==="visible")},Phe=function(t){return uz(t,"overflowY")},Rhe=function(t){return uz(t,"overflowX")},tN=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=dz(t,r);
vendor: 6,867 bytes, lines 272-275
272if(s){var i=fz(t,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Nhe=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},Mhe=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},dz=function(t,e){return t==="v"?Phe(e):Rhe(e)},fz=function(t,e){return t==="v"?Nhe(e):Mhe(e)},khe=function(t,e){return t==="h"&&e==="rtl"?-1:1},Dhe=function(t,e,n,r,s){var i=khe(t,window.getComputedStyle(e).direction),o=i*r,a=n.target,c=e.contains(a),d=!1,p=o>0,m=0,v=0;do{var w=fz(t,a),E=w[0],C=w[1],b=w[2],S=C-b-i*E;(E||S)&&dz(t,a)&&(m+=S,v+=E),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(e.contains(a)||e===a));return(p&&Math.abs(m)<1||!p&&Math.abs(v)<1)&&(d=!0),d},a3=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},nN=function(t){return[t.deltaX,t.deltaY]},rN=function(t){return t&&"current"in t?t.current:t},Ohe=function(t,e){return t[0]===e[0]&&t[1]===e[1]},$he=function(t){return`
273  .block-interactivity-`.concat(t,` {pointer-events: none;}
274  .allow-interactivity-`).concat(t,` {pointer-events: all;}
275`)},Fhe=0,Rh=[];function jhe(t){var e=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),s=_.useState(Fhe++)[0],i=_.useState(cz)[0],o=_.useRef(t);_.useEffect(function(){o.current=t},[t]),_.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var C=ihe([t.lockRef.current],(t.shards||[]).map(rN),!0).filter(Boolean);return C.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),C.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var a=_.useCallback(function(C,b){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!o.current.allowPinchZoom;var S=a3(C),P=n.current,R="deltaX"in C?C.deltaX:P[0]-S[0],z="deltaY"in C?C.deltaY:P[1]-S[1],O,F=C.target,D=Math.abs(R)>Math.abs(z)?"h":"v";if("touches"in C&&D==="h"&&F.type==="range")return!1;var I=tN(D,F);if(!I)return!0;if(I?O=D:(O=D==="v"?"h":"v",I=tN(D,F)),!I)return!1;if(!r.current&&"changedTouches"in C&&(R||z)&&(r.current=O),!O)return!0;var T=r.current||O;return Dhe(T,b,C,T==="h"?R:z)},[]),c=_.useCallback(function(C){var b=C;if(!(!Rh.length||Rh[Rh.length-1]!==i)){var S="deltaY"in b?nN(b):a3(b),P=e.current.filter(function(O){return O.name===b.type&&(O.target===b.target||b.target===O.shadowParent)&&Ohe(O.delta,S)})[0];if(P&&P.should){b.cancelable&&b.preventDefault();return}if(!P){var R=(o.current.shards||[]).map(rN).filter(Boolean).filter(function(O){return O.contains(b.target)}),z=R.length>0?a(b,R[0]):!o.current.noIsolation;z&&b.cancelable&&b.preventDefault()}}},[]),d=_.useCallback(function(C,b,S,P){var R={name:C,delta:b,target:S,should:P,shadowParent:Lhe(S)};e.current.push(R),setTimeout(function(){e.current=e.current.filter(function(z){return z!==R})},1)},[]),p=_.useCallback(function(C){n.current=a3(C),r.current=void 0},[]),m=_.useCallback(function(C){d(C.type,nN(C),C.target,a(C,t.lockRef.current))},[]),v=_.useCallback(function(C){d(C.type,a3(C),C.target,a(C,t.lockRef.current))},[]);_.useEffect(function(){return Rh.push(i),t.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:v}),document.addEventListener("wheel",c,Ph),document.addEventListener("touchmove",c,Ph),document.addEventListener("touchstart",p,Ph),function(){Rh=Rh.filter(function(C){return C!==i}),document.removeEventListener("wheel",c,Ph),document.removeEventListener("touchmove",c,Ph),document.removeEventListener("touchstart",p,Ph)}},[]);var w=t.removeScrollBar,E=t.inert;return _.createElement(_.Fragment,null,E?_.createElement(i,{styles:$he(s)}):null,w?_.createElement(Ahe,{gapMode:t.gapMode}):null)}function Lhe(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const zhe=phe(lz,jhe);var T5=_.forwardRef(function(t,e){return _.createElement(C5,fa({},t,{ref:e,sideCar:zhe}))});T5.classNames=C5.classNames;var Vhe=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Nh=new WeakMap,l3=new WeakMap,c3={},g7=0,hz=function(t){return t&&(t.host||hz(t.parentNode))},Bhe=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=hz(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},Hhe=function(t,e,n,r){var s=Bhe(e,Array.isArray(t)?t:[t]);c3[n]||(c3[n]=new WeakMap);var i=c3[n],o=[],a=new Set,c=new Set(s),d=function(m){!m||a.has(m)||(a.add(m),d(m.parentNode))};s.forEach(d);var p=function(m){!m||c.has(m)||Array.prototype.forEach.call(m.children,function(v){if(a.has(v))p(v);else try{var w=v.getAttribute(r),E=w!==null&&w!=="false",C=(Nh.get(v)||0)+1,b=(i.get(v)||0)+1;Nh.set(v,C),i.set(v,b),o.push(v),C===1&&E&&l3.set(v,!0),b===1&&v.setAttribute(n,"true"),E||v.setAttribute(r,"true")}catch(S){console.error("aria-hidden: cannot operate on ",v,S)}})};return p(e),a.clear(),g7++,function(){o.forEach(function(m){var v=Nh.get(m)-1,w=i.get(m)-1;Nh.set(m,v),i.set(m,w),v||(l3.has(m)||m.removeAttribute(r),l3.delete(m)),w||m.removeAttribute(n)}),g7--,g7||(Nh=new WeakMap,Nh=new WeakMap,l3=new WeakMap,c3={})}},lb=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),s=Vhe(t);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),Hhe(r,s,n,"aria-hidden")):function(){return null}},A5="Dialog",[pz,mz]=jr(A5),[Uhe,Ho]=pz(A5),gz=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!0}=t,a=_.useRef(null),c=_.useRef(null),[d,p]=As({prop:r,defaultProp:s??!1,onChange:i,caller:A5});return u.jsx(Uhe,{scope:e,triggerRef:a,contentRef:c,contentId:qs(),titleId:qs(),descriptionId:qs(),open:d,onOpenChange:p,onOpenToggle:_.useCallback(()=>p(m=>!m),[p]),modal:o,children:n})};gz.displayName=A5;var vz="DialogTrigger",yz=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=Ho(vz,n),i=yt(e,s.triggerRef);return u.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":db(s.open),...r,ref:i,onClick:ke(t.onClick,s.onOpenToggle)})});yz.displayName=vz;var cb="DialogPortal",[Whe,xz]=pz(cb,{forceMount:void 0}),wz=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:s}=t,i=Ho(cb,e);return u.jsx(Whe,{scope:e,forceMount:n,children:_.Children.map(r,o=>u.jsx(gr,{present:n||i.open,children:u.jsx(bm,{asChild:!0,container:s,children:o})}))})};wz.displayName=cb;var qy="DialogOverlay",_z=_.forwardRef((t,e)=>{const n=xz(qy,t.__scopeDialog),{forceMount:r=n.forceMount,...s}=t,i=Ho(qy,t.__scopeDialog);return i.modal?u.jsx(gr,{present:r||i.open,children:u.jsx(Ghe,{...s,ref:e})}):null});
vendor: 5,683 bytes, lines 275-280
275_z.displayName=qy;var qhe=tf("DialogOverlay.RemoveScroll"),Ghe=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=Ho(qy,n);return u.jsx(T5,{as:qhe,allowPinchZoom:!0,shards:[s.contentRef],children:u.jsx(Le.div,{"data-state":db(s.open),...r,ref:e,style:{pointerEvents:"auto",...r.style}})})}),nf="DialogContent",Ez=_.forwardRef((t,e)=>{const n=xz(nf,t.__scopeDialog),{forceMount:r=n.forceMount,...s}=t,i=Ho(nf,t.__scopeDialog);return u.jsx(gr,{present:r||i.open,children:i.modal?u.jsx(Khe,{...s,ref:e}):u.jsx(Yhe,{...s,ref:e})})});Ez.displayName=nf;var Khe=_.forwardRef((t,e)=>{const n=Ho(nf,t.__scopeDialog),r=_.useRef(null),s=yt(e,n.contentRef,r);return _.useEffect(()=>{const i=r.current;if(i)return lb(i)},[]),u.jsx(bz,{...t,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(t.onCloseAutoFocus,i=>{i.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ke(t.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:ke(t.onFocusOutside,i=>i.preventDefault())})}),Yhe=_.forwardRef((t,e)=>{const n=Ho(nf,t.__scopeDialog),r=_.useRef(!1),s=_.useRef(!1);return u.jsx(bz,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;n.triggerRef.current?.contains(o)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),bz=_.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=t,a=Ho(nf,n),c=_.useRef(null),d=yt(e,c);return ab(),u.jsxs(u.Fragment,{children:[u.jsx(S5,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:u.jsx(Af,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":db(a.open),...o,ref:d,onDismiss:()=>a.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(Xhe,{titleId:a.titleId}),u.jsx(Jhe,{contentRef:c,descriptionId:a.descriptionId})]})]})}),ub="DialogTitle",Sz=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=Ho(ub,n);return u.jsx(Le.h2,{id:s.titleId,...r,ref:e})});Sz.displayName=ub;var Cz="DialogDescription",Tz=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=Ho(Cz,n);return u.jsx(Le.p,{id:s.descriptionId,...r,ref:e})});Tz.displayName=Cz;var Az="DialogClose",Iz=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=Ho(Az,n);return u.jsx(Le.button,{type:"button",...r,ref:e,onClick:ke(t.onClick,()=>s.onOpenChange(!1))})});Iz.displayName=Az;function db(t){return t?"open":"closed"}var Pz="DialogTitleWarning",[Qhe,Rz]=yue(Pz,{contentName:nf,titleName:ub,docsSlug:"dialog"}),Xhe=({titleId:t})=>{const e=Rz(Pz),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
276
277If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
278
279For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return _.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},Zhe="DialogDescriptionWarning",Jhe=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Rz(Zhe).contentName}}.`;return _.useEffect(()=>{const s=t.current?.getAttribute("aria-describedby");e&&s&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},fb=gz,Nz=yz,hb=wz,L2=_z,z2=Ez,V2=Sz,B2=Tz,I5=Iz,Mz="AlertDialog",[epe,fQe]=jr(Mz,[mz]),Yl=mz(),kz=t=>{const{__scopeAlertDialog:e,...n}=t,r=Yl(e);return u.jsx(fb,{...r,...n,modal:!0})};kz.displayName=Mz;var tpe="AlertDialogTrigger",Dz=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=Yl(n);return u.jsx(Nz,{...s,...r,ref:e})});Dz.displayName=tpe;var npe="AlertDialogPortal",Oz=t=>{const{__scopeAlertDialog:e,...n}=t,r=Yl(e);return u.jsx(hb,{...r,...n})};Oz.displayName=npe;var rpe="AlertDialogOverlay",$z=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=Yl(n);return u.jsx(L2,{...s,...r,ref:e})});$z.displayName=rpe;var up="AlertDialogContent",[spe,ipe]=epe(up),ope=mL("AlertDialogContent"),Fz=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,children:r,...s}=t,i=Yl(n),o=_.useRef(null),a=yt(e,o),c=_.useRef(null);return u.jsx(Qhe,{contentName:up,titleName:jz,docsSlug:"alert-dialog",children:u.jsx(spe,{scope:n,cancelRef:c,children:u.jsxs(z2,{role:"alertdialog",...i,...s,ref:a,onOpenAutoFocus:ke(s.onOpenAutoFocus,d=>{d.preventDefault(),c.current?.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[u.jsx(ope,{children:r}),u.jsx(lpe,{contentRef:o})]})})})});Fz.displayName=up;var jz="AlertDialogTitle",Lz=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=Yl(n);return u.jsx(V2,{...s,...r,ref:e})});Lz.displayName=jz;var zz="AlertDialogDescription",Vz=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=Yl(n);return u.jsx(B2,{...s,...r,ref:e})});Vz.displayName=zz;var ape="AlertDialogAction",Bz=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=Yl(n);return u.jsx(I5,{...s,...r,ref:e})});Bz.displayName=ape;var Hz="AlertDialogCancel",Uz=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,{cancelRef:s}=ipe(Hz,n),i=Yl(n),o=yt(e,s);return u.jsx(I5,{...i,...r,ref:o})});Uz.displayName=Hz;var lpe=({contentRef:t})=>{const e=`\`${up}\` requires a description for the component to be accessible for screen reader users.
280
281You can add a description to the \`${up}\` by passing a \`${zz}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
282
283Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${up}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
284
285For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return _.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(e)},[e,t]),null},cpe=kz,upe=Dz,dpe=Oz,Wz=$z,qz=Fz,Gz=Bz,Kz=Uz,Yz=Lz,Qz=Vz;const Xz=cpe,hQe=upe,fpe=dpe,Zz=_.forwardRef(({className:t,...e},n)=>u.jsx(Wz,{className:ve("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:n}));Zz.displayName=Wz.displayName;const pb=_.forwardRef(({className:t,...e},n)=>u.jsxs(fpe,{children:[u.jsx(Zz,{}),u.jsx(qz,{ref:n,className:ve("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...e})]}));pb.displayName=qz.displayName;const mb=({className:t,...e})=>u.jsx("div",{className:ve("flex flex-col space-y-2 text-center sm:text-left",t),...e});mb.displayName="AlertDialogHeader";const Gy=({className:t,...e})=>u.jsx("div",{className:ve("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});Gy.displayName="AlertDialogFooter";const Jz=_.forwardRef(({className:t,...e},n)=>u.jsx(Yz,{ref:n,className:ve("text-lg font-semibold",t),...e}));Jz.displayName=Yz.displayName;const gb=_.forwardRef(({className:t,...e},n)=>u.jsx(Qz,{ref:n,className:ve("text-sm text-muted-foreground",t),...e}));gb.displayName=Qz.displayName;const G3=_.forwardRef(({className:t,...e},n)=>u.jsx(Gz,{ref:n,className:ve(Wp(),t),...e}));G3.displayName=Gz.displayName;const vb=_.forwardRef(({className:t,...e},n)=>u.jsx(Kz,{ref:n,className:ve(Wp({variant:"outline"}),"mt-2 sm:mt-0",t),...e}));vb.displayName=Kz.displayName;const hpe=({open:t,title:e,children:n,onClose:r,onConfirm:s,isLoading:i,errorMessage:o,successMessage:a,isDestructive:c})=>u.jsx(Xz,{open:t,children:u.jsxs(pb,{children:[u.jsxs(mb,{children:[u.jsx(Jz,{children:e}),u.jsx(gb,{children:n})]}),o,a,a?u.jsx(Gy,{children:u.jsx(G3,{onClick:r,children:"Cerrar"})}):u.jsxs(Gy,{children:[u.jsx(vb,{disabled:i,onClick:r,children:"Cancelar"}),c?u.jsx(G3,{disabled:i,onClick:s,className:"bg-red-500 hover:bg-red-500",children:i?"Eliminando":"Eliminar"}):u.jsx(G3,{disabled:i,onClick:s,children:i?"Guardando":"Confirmar"})]})]})});var ppe="Label",eV=_.forwardRef((t,e)=>u.jsx(Le.label,{...t,ref:e,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(t.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));eV.displayName=ppe;var tV=eV;const mpe=If("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Qn=_.forwardRef(({className:t,...e},n)=>u.jsx(tV,{ref:n,className:ve(mpe(),t),...e}));Qn.displayName=tV.displayName;const Pf=_.forwardRef(({className:t,...e},n)=>u.jsx("textarea",{className:ve("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:n,...e}));Pf.displayName="Textarea";const rf=({to:t,variant:e="default",className:n,children:r,...s})=>u.jsx(Bs,{to:t,className:ve(Wp({variant:e}),"w-full",n),...s,children:r}),Bs=t=>{const{className:e,...n}=t,s=new URLSearchParams(window.location.search).get("uid");if(s){let i={uid:s};return typeof n.search=="object"&&(i={...i,...n.search}),u.jsx(or,{...n,search:i,className:e})}return u.jsx(or,{...n,className:e})},gpe="2.1.6",vpe="/assets/corfo_logo.8Y7wxXJm.png",qp="/assets/maifud_logo.Brdst0_D.svg";var ype="Separator",sN="horizontal",xpe=["horizontal","vertical"],nV=_.forwardRef((t,e)=>{const{decorative:n,orientation:r=sN,...s}=t,i=wpe(r)?r:sN,a=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return u.jsx(Le.div,{"data-orientation":i,...a,...s,ref:e})});nV.displayName=ype;function wpe(t){return xpe.includes(t)}var rV=nV;const Bi=_.forwardRef(({className:t,orientation:e="horizontal",decorative:n=!0,...r},s)=>u.jsx(rV,{ref:s,decorative:n,orientation:e,className:ve("shrink-0 bg-border",e==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...r}));Bi.displayName=rV.displayName;const yb=({variant:t="small"})=>{const e=()=>u.jsxs("div",{className:"flex flex-col items-center md:items-start space-y-6",children:[u.jsxs("div",{className:"flex justify-between w-full items-center md:flex-col md:justify-center md:items-start",children:[u.jsx("div",{children:u.jsxs("div",{className:"flex flex-row space-x-1 items-baseline",children:[u.jsx("img",{src:qp,alt:"Logo de Maifud",className:ve("opacity-80",t==="big"&&"max-w-44",t==="small"&&"max-w-24")}),u.jsxs("small",{className:"text-[9px] text-muted-foreground font-sans",children:["v",gpe]})]})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs text-muted-foreground",children:"Con el apoyo de"}),u.jsx("div",{className:"flex items-center -translate-x-2",children:u.jsx("a",{href:"https://corfo.cl/sites/cpp/homecorfo",target:"_blank",rel:"noopener noreferrer",children:u.jsx("img",{className:"w-28",src:vpe,alt:"Logo de Corfo"})})})]})]}),u.jsx("div",{className:"flex justify-start w-full",children:u.jsxs("ul",{className:"space-y-1",children:[u.jsx("li",{children:u.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})}),u.jsxs("li",{className:"font-sans flex items-center gap-1",children:[u.jsx(iz,{color:"#25D366"}),u.jsx("a",{href:"https://wa.me/56971295665",target:"_blank",rel:"noopener noreferrer",children:"+56971295665"})]})]})})]}),n=()=>u.jsxs("div",{children:[u.jsx("h4",{className:"text-base mb-4 font-medium",children:"Suscripción"}),u.jsxs("ul",{className:"text-sm space-y-2",children:[u.jsx("li",{children:u.jsx(Bs,{to:"/",hash:"boxes-section",children:"Nuestras cajas"})}),u.jsx("li",{children:u.jsx(Bs,{to:"/",hash:"how-it-works-section",children:"¿Como funciona?"})}),u.jsx("li",{children:u.jsx(Bs,{to:"/",hash:"impact-section",children:"Impacto ambiental"})}),u.jsx("li",{children:u.jsx(Bs,{to:"/",hash:"maifud-lovers-section",children:"MaifudLovers"})}),u.jsx("li",{children:u.jsx(Bs,{to:"/",hash:"faq-section",children:"Preguntas frecuentes"})})]})]}),r=()=>u.jsxs("div",{children:[u.jsx("h4",{className:"text-base mb-4 font-medium",children:"Más sobre Maifud"}),u.jsxs("ul",{className:"text-sm space-y-2",children:[u.jsx("li",{children:u.jsx("a",{href:"https://tienda.maifud.cl/el-problema",children:"El problema"})}),u.jsx("li",{children:u.jsx("a",{href:"https://tienda.maifud.cl/nosotros",children:"Nosotros"})}),u.jsx("li",{children:u.jsx("a",{href:"https://tienda.maifud.cl/despac
285ho",children:"Despachos"})}),u.jsx("li",{children:u.jsx("a",{href:"https://tienda.maifud.cl/blog",children:"Blog"})}),u.jsxs("li",{children:[u.jsx("a",{href:"https://tienda.maifud.cl/productos",children:"Tienda granel"})," ","🍊"]})]})]});return u.jsxs("footer",{className:"max-w-5xl mx-auto pb-4 py-2 pt-0 text-sm text-black",children:[u.jsx(Bi,{className:"bg-orange-500/30 mb-6"}),u.jsxs("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 md:gap-10 mb-6 px-4",children:[u.jsx("div",{children:e()}),u.jsxs("div",{className:"flex justify-between md:justify-end gap-10",children:[u.jsx("div",{children:n()}),u.jsx("div",{children:r()})]})]}),u.jsx(Bi,{className:"bg-orange-500/30 mb-6"}),u.jsxs("div",{className:"flex justify-between items-center px-4 pb-4",children:[u.jsxs("ul",{className:"flex flex-col md:flex-row md:space-x-2",children:[u.jsxs("li",{className:"md:border-r-2 md:border-r-orange-500/30 md:pr-2",children:["© ",new Date().getFullYear()," Maifud"]}),u.jsx("li",{className:"md:border-r-2 md:border-r-orange-500/30 md:pr-2",children:u.jsx("a",{href:"/privacy-policy",children:"Política de privacidad"})}),u.jsx("li",{children:u.jsx("a",{href:"/terms-and-conditions",children:"Términos y condiciones"})})]}),u.jsxs("div",{className:"flex flex-row space-x-2",children:[u.jsx("a",{"aria-label":"Instagram",href:"https://www.instagram.com/maifud.cl",target:"_blank",rel:"noopener noreferrer",children:u.jsx(Pfe,{className:"text-muted-foreground"})}),u.jsx("a",{"aria-label":"Facebook",href:"https://www.facebook.com/maifud",target:"_blank",rel:"noopener noreferrer",children:u.jsx(bfe,{className:"text-muted-foreground"})}),u.jsx("a",{"aria-label":"LinkedIn",href:"https://www.linkedin.com/company/maifud/",target:"_blank",rel:"noopener noreferrer",children:u.jsx(Nfe,{className:"text-muted-foreground"})})]})]})]})},xb=6048e5,_pe=864e5,wb=6e4,_b=36e5,Epe=1e3,pQe=525600,mQe=43200,gQe=1440,iN=Symbol.for("constructDateFrom");function xn(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&iN in t?t[iN](e):t instanceof Date?new t.constructor(e):new Date(e)}function Bt(t,e){return xn(e||t,t)}function Gr(t,e,n){const r=Bt(t,n?.in);return isNaN(e)?xn(n?.in||t,NaN):(e&&r.setDate(r.getDate()+e),r)}function Fo(t,e,n){const r=Bt(t,n?.in);if(isNaN(e))return xn(n?.in||t,NaN);if(!e)return r;const s=r.getDate(),i=xn(n?.in||t,r.getTime());i.setMonth(r.getMonth()+e+1,0);const o=i.getDate();return s>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),s),r)}let bpe={};function Rf(){return bpe}function Qs(t,e){const n=Rf(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Bt(t,e?.in),i=s.getDay(),o=(i<r?7:0)+i-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Ol(t,e){return Qs(t,{...e,weekStartsOn:1})}
vendor: 1,692 bytes, line 285
285function sV(t,e){const n=Bt(t,e?.in),r=n.getFullYear(),s=xn(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const i=Ol(s),o=xn(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const a=Ol(o);return n.getTime()>=i.getTime()?r+1:n.getTime()>=a.getTime()?r:r-1}function Gp(t){const e=Bt(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function Tm(t,...e){const n=xn.bind(null,t||e.find(r=>typeof r=="object"));return e.map(n)}function Kp(t,e){const n=Bt(t,e?.in);return n.setHours(0,0,0,0),n}function ya(t,e,n){const[r,s]=Tm(n?.in,t,e),i=Kp(r),o=Kp(s),a=+i-Gp(i),c=+o-Gp(o);return Math.round((a-c)/_pe)}function Spe(t,e){const n=sV(t,e),r=xn(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ol(r)}function Ky(t,e,n){return Gr(t,e*7,n)}function Cpe(t,e,n){return Fo(t,e*12,n)}function Tpe(t,e){let n,r=e?.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=xn.bind(null,s));const i=Bt(s,r);(!n||n<i||isNaN(+i))&&(n=i)}),xn(r,n||NaN)}function Ape(t,e){let n,r=e?.in;return t.forEach(s=>{!r&&typeof s=="object"&&(r=xn.bind(null,s));const i=Bt(s,r);(!n||n>i||isNaN(+i))&&(n=i)}),xn(r,n||NaN)}function Us(t,e,n){const[r,s]=Tm(n?.in,t,e);return+Kp(r)==+Kp(s)}function Eb(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Ipe(t){return!(!Eb(t)&&typeof t!="number"||isNaN(+Bt(t)))}function $0(t,e,n){const[r,s]=Tm(n?.in,t,e),i=r.getFullYear()-s.getFullYear(),o=r.getMonth()-s.getMonth();return i*12+o}function Ppe(t,e,n){const[r,s]=Tm(n?.in,t,e),i=Qs(r,n),o=Qs(s,n),a=+i-Gp(i),c=+o-Gp(o);return Math.round((a-c)/xb)}
vendor: 4,661 bytes, line 285
285function bb(t,e){const n=Bt(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Gs(t,e){const n=Bt(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function iV(t,e){const n=Bt(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Sb(t,e){const n=Rf(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Bt(t,e?.in),i=s.getDay(),o=(i<r?-7:0)+6-(i-r);return s.setDate(s.getDate()+o),s.setHours(23,59,59,999),s}function oV(t,e){return Sb(t,{...e,weekStartsOn:1})}const Rpe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Npe=(t,e,n)=>{let r;const s=Rpe[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function dp(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const Mpe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},kpe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Dpe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ope={date:dp({formats:Mpe,defaultWidth:"full"}),time:dp({formats:kpe,defaultWidth:"full"}),dateTime:dp({formats:Dpe,defaultWidth:"full"})},$pe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Fpe=(t,e,n,r)=>$pe[t];function ha(t){return(e,n)=>{const r=n?.context?String(n.context):"standalone";let s;if(r==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):o;s=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;s=t.values[a]||t.values[o]}const i=t.argumentCallback?t.argumentCallback(e):e;return s[i]}}const jpe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Lpe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zpe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Vpe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Bpe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Hpe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Upe=(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Wpe={ordinalNumber:Upe,era:ha({values:jpe,defaultWidth:"wide"}),quarter:ha({values:Lpe,defaultWidth:"wide",argumentCallback:t=>t-1}
vendor: 9,450 bytes, line 285
285),month:ha({values:zpe,defaultWidth:"wide"}),day:ha({values:Vpe,defaultWidth:"wide"}),dayPeriod:ha({values:Bpe,defaultWidth:"wide",formattingValues:Hpe,defaultFormattingWidth:"wide"})};function pa(t){return(e,n={})=>{const r=n.width,s=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(s);if(!i)return null;const o=i[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(a)?Gpe(a,m=>m.test(o)):qpe(a,m=>m.test(o));let d;d=t.valueCallback?t.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const p=e.slice(o.length);return{value:d,rest:p}}}function qpe(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function Gpe(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function aV(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const s=r[0],i=e.match(t.parsePattern);if(!i)return null;let o=t.valueCallback?t.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(s.length);return{value:o,rest:a}}}const Kpe=/^(\d+)(th|st|nd|rd)?/i,Ype=/\d+/i,Qpe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Xpe={any:[/^b/i,/^(a|c)/i]},Zpe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Jpe={any:[/1/i,/2/i,/3/i,/4/i]},eme={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},tme={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nme={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},rme={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sme={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ime={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ome={ordinalNumber:aV({matchPattern:Kpe,parsePattern:Ype,valueCallback:t=>parseInt(t,10)}),era:pa({matchPatterns:Qpe,defaultMatchWidth:"wide",parsePatterns:Xpe,defaultParseWidth:"any"}),quarter:pa({matchPatterns:Zpe,defaultMatchWidth:"wide",parsePatterns:Jpe,defaultParseWidth:"any",valueCallback:t=>t+1}),month:pa({matchPatterns:eme,defaultMatchWidth:"wide",parsePatterns:tme,defaultParseWidth:"any"}),day:pa({matchPatterns:nme,defaultMatchWidth:"wide",parsePatterns:rme,defaultParseWidth:"any"}),dayPeriod:pa({matchPatterns:sme,defaultMatchWidth:"any",parsePatterns:ime,defaultParseWidth:"any"})},Cb={code:"en-US",formatDistance:Npe,formatLong:Ope,formatRelative:Fpe,localize:Wpe,match:ome,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ame(t,e){const n=Bt(t,e?.in);return ya(n,iV(n))+1}function Tb(t,e){const n=Bt(t,e?.in),r=+Ol(n)-+Spe(n);return Math.round(r/xb)+1}function Ab(t,e){const n=Bt(t,e?.in),r=n.getFullYear(),s=Rf(),i=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,o=xn(e?.in||t,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const a=Qs(o,e),c=xn(e?.in||t,0);c.setFullYear(r,0,i),c.setHours(0,0,0,0);const d=Qs(c,e);return+n>=+a?r+1:+n>=+d?r:r-1}function lme(t,e){const n=Rf(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=Ab(t,e),i=xn(e?.in||t,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),Qs(i,e)}function Ib(t,e){const n=Bt(t,e?.in),r=+Qs(n,e)-+lme(n,e);return Math.round(r/xb)+1}function mn(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const Ac={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return mn(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):mn(n+1,2)},d(t,e){return mn(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return mn(t.getHours()%12||12,e.length)},H(t,e){return mn(t.getHours(),e.length)},m(t,e){return mn(t.getMinutes(),e.length)},s(t,e){return mn(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return mn(s,e.length)}},Mh={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},oN={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return Ac.y(t,e)},Y:function(t,e,n,r){const s=Ab(t,r),i=s>0?s:1-s;if(e==="YY"){const o=i%100;return mn(o,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):mn(i,e.length)},R:function(t,e){const n=sV(t);return mn(n,e.length)},u:function(t,e){const n=t.getFullYear();return mn(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return mn(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return mn(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return Ac.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return mn(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const s=Ib(t,r);return e==="wo"?n.ordinalNumber(s,{unit:"week"}):mn(s,e.length)},I:function(t,e,n){const r=Tb(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):mn(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):Ac.d(t,e)},D:function(t,e,n){const r=ame(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):mn(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const s=t.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return mn(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const s=t.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return mn(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),s=r===0?7:r;switch(e){case"i":return String(s);case"ii":return mn(s,e.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const s=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let s;switch(r===12?s=Mh.noon:r===0?s=Mh.midnight:s=r/12>
vendor: 4,442 bytes, line 285
285=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let s;switch(r>=17?s=Mh.evening:r>=12?s=Mh.afternoon:r>=4?s=Mh.morning:s=Mh.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Ac.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):Ac.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):mn(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):mn(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):Ac.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):Ac.s(t,e)},S:function(t,e){return Ac.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return lN(r);case"XXXX":case"XX":return xd(r);case"XXXXX":case"XXX":default:return xd(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return lN(r);case"xxxx":case"xx":return xd(r);case"xxxxx":case"xxx":default:return xd(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+aN(r,":");case"OOOO":default:return"GMT"+xd(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+aN(r,":");case"zzzz":default:return"GMT"+xd(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return mn(r,e.length)},T:function(t,e,n){return mn(+t,e.length)}};function aN(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=Math.trunc(r/60),i=r%60;return i===0?n+String(s):n+String(s)+e+mn(i,2)}function lN(t,e){return t%60===0?(t>0?"-":"+")+mn(Math.abs(t)/60,2):xd(t,e)}function xd(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),s=mn(Math.trunc(r/60),2),i=mn(r%60,2);return n+s+e+i}const cN=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},lV=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},cme=(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return cN(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",cN(r,e)).replace("{{time}}",lV(s,e))},S_={p:lV,P:cme},ume=/^D+$/,dme=/^Y+$/,fme=["D","DD","YY","YYYY"];function cV(t){return ume.test(t)}function uV(t){return dme.test(t)}function C_(t,e,n){const r=hme(t,e,n);if(console.warn(r),fme.includes(t))throw new RangeError(r)}function hme(t,e,n){const r=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const pme=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mme=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gme=/^'([^]*?)'?$/,vme=/''/g,yme=/[a-zA-Z]/;function yi(t,e,n){const r=Rf(),s=n?.locale??r.locale??Cb,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=Bt(t,n?.in);if(!Ipe(a))throw new RangeError("Invalid time value");let c=e.match(mme).map(p=>{const m=p[0];if(m==="p"||m==="P"){const v=S_[m];return v(p,s.formatLong)}return p}).join("").match(pme).map(p=>{if(p==="''")return{isToken:!1,value:"'"};const m=p[0];if(m==="'")return{isToken:!1,value:xme(p)};if(oN[m])return{isToken:!0,value:p};
vendor: 25,999 bytes, line 285
285if(m.match(yme))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:p}});s.localize.preprocessor&&(c=s.localize.preprocessor(a,c));const d={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return c.map(p=>{if(!p.isToken)return p.value;const m=p.value;(!n?.useAdditionalWeekYearTokens&&uV(m)||!n?.useAdditionalDayOfYearTokens&&cV(m))&&C_(m,e,String(t));const v=oN[m[0]];return v(a,m,s.localize,d)}).join("")}function xme(t){const e=t.match(gme);return e?e[1].replace(vme,"'"):t}function wme(t,e){const n=Bt(t,e?.in),r=n.getFullYear(),s=n.getMonth(),i=xn(n,0);return i.setFullYear(r,s+1,0),i.setHours(0,0,0,0),i.getDate()}function _me(){return Object.assign({},Rf())}function Eme(t,e){const n=Bt(t,e?.in).getDay();return n===0?7:n}function bme(t){return Math.trunc(+Bt(t)/1e3)}function Sme(t,e){const n=Bt(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(0,0,0,0),Bt(n,e?.in)}function Cme(t,e){const n=Bt(t,e?.in);return Ppe(Sme(n,e),Gs(n,e),e)+1}function T_(t,e){return+Bt(t)>+Bt(e)}function dV(t,e){return+Bt(t)<+Bt(e)}function Tme(t,e){const n=Ame(e)?new e(0):xn(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}function Ame(t){return typeof t=="function"&&t.prototype?.constructor===t}const Ime=10;class fV{constructor(){Ue(this,"subPriority",0)}validate(e,n){return!0}}class Pme extends fV{constructor(e,n,r,s,i){super(),this.value=e,this.validateValue=n,this.setValue=r,this.priority=s,i&&(this.subPriority=i)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,r){return this.setValue(e,n,this.value,r)}}class Rme extends fV{constructor(n,r){super();Ue(this,"priority",Ime);Ue(this,"subPriority",-1);this.context=n||(s=>xn(r,s))}set(n,r){return r.timestampIsSet?n:xn(n,Tme(n,this.context))}}class an{run(e,n,r,s){const i=this.parse(e,n,r,s);return i?{setter:new Pme(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,n,r){return!0}}class Nme extends an{constructor(){super(...arguments);Ue(this,"priority",140);Ue(this,"incompatibleTokens",["R","u","t","T"])}parse(n,r,s){switch(r){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})||s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"})}}set(n,r,s){return r.era=s,n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}const lr={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ma={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function cr(t,e){return t&&{value:e(t.value),rest:t.rest}}function Vn(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function ga(t,e){const n=e.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const r=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(s*_b+i*wb+o*Epe),rest:e.slice(n[0].length)}}function hV(t){return Vn(lr.anyDigitsSigned,t)}function Jn(t,e){switch(t){case 1:return Vn(lr.singleDigit,e);case 2:return Vn(lr.twoDigits,e);case 3:return Vn(lr.threeDigits,e);case 4:return Vn(lr.fourDigits,e);default:return Vn(new RegExp("^\\d{1,"+t+"}"),e)}}function Yy(t,e){switch(t){case 1:return Vn(lr.singleDigitSigned,e);case 2:return Vn(lr.twoDigitsSigned,e);case 3:return Vn(lr.threeDigitsSigned,e);case 4:return Vn(lr.fourDigitsSigned,e);default:return Vn(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Pb(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function pV(t,e){const n=e>0,r=n?e:1-e;let s;if(r<=50)s=t||100;else{const i=r+50,o=Math.trunc(i/100)*100,a=t>=i%100;s=t+o-(a?100:0)}return n?s:1-s}function mV(t){return t%400===0||t%4===0&&t%100!==0}class Mme extends an{constructor(){super(...arguments);Ue(this,"priority",130);Ue(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,r,s){const i=o=>({year:o,isTwoDigitYear:r==="yy"});switch(r){case"y":return cr(Jn(4,n),i);case"yo":return cr(s.ordinalNumber(n,{unit:"year"}),i);default:return cr(Jn(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s){const i=n.getFullYear();if(s.isTwoDigitYear){const a=pV(s.year,i);return n.setFullYear(a,0,1),n.setHours(0,0,0,0),n}const o=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}}class kme extends an{constructor(){super(...arguments);Ue(this,"priority",130);Ue(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,r,s){const i=o=>({year:o,isTwoDigitYear:r==="YY"});switch(r){case"Y":return cr(Jn(4,n),i);case"Yo":return cr(s.ordinalNumber(n,{unit:"year"}),i);default:return cr(Jn(r.length,n),i)}}validate(n,r){return r.isTwoDigitYear||r.year>0}set(n,r,s,i){const o=Ab(n,i);if(s.isTwoDigitYear){const c=pV(s.year,o);return n.setFullYear(c,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),Qs(n,i)}const a=!("era"in r)||r.era===1?s.year:1-s.year;return n.setFullYear(a,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),Qs(n,i)}}class Dme extends an{constructor(){super(...arguments);Ue(this,"priority",130);Ue(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,r){return Yy(r==="R"?4:r.length,n)}set(n,r,s){const i=xn(n,0);return i.setFullYear(s,0,4),i.setHours(0,0,0,0),Ol(i)}}class Ome extends an{constructor(){super(...arguments);Ue(this,"priority",130);Ue(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,r){return Yy(r==="u"?4:r.length,n)}set(n,r,s){return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}}class $me extends an{constructor(){super(...arguments);Ue(this,"priority",120);Ue(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"Q":case"QQ":return Jn(r.length,n);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})||s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class Fme extends an{constructor(){super(...arguments);Ue(this,"priority",120);Ue(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"q":case"qq":return Jn(r.length,n);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})||s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=1&&r<=4}set(n,r,s){return n.setMonth((s-1)*3,1),n.setHours(0,0,0,0),n}}class jme extends an{constructor(){super(...arguments);Ue(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);Ue(this,"priority",110)}parse(n,r,s){const i=o=>o-1;switch(r){case"M":return cr(Vn(lr.month,n),i);case"MM":return cr(Jn(2,n),i);case"Mo":return cr(s.ordinalNumber(n,{unit:"month"}),i);case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})||s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}class Lme extends an{constructor(){super(...arguments);Ue(this,"priority",110);Ue(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,r,s){const i=o=>o-1;switch(r){case"L":return cr(Vn(lr.month,n),i);case"LL":return cr(Jn(2,n),i);case"Lo":return cr(s.ordinalNumber(n,{unit:"month"}),i);case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})||s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.setMonth(s,1),n.setHours(0,0,0,0),n}}function zme(t,e,n){const r=Bt(t,n?.in),s=Ib(r,n)-e;return r.setDate(r.getDate()-s*7),Bt(r,n?.in)}class Vme extends an{constructor(){super(...arguments);Ue(this,"priority",100);Ue(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,r,s){switch(r){case"w":return Vn(lr.week,n);case"wo":return s.ordinalNumber(n,{unit:"week"});default:return Jn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s,i){return Qs(zme(n,s,i),i)}}function Bme(t,e,n){const r=Bt(t,n?.in),s=Tb(r,n)-e;return r.setDate(r.getDate()-s*7),r}class Hme extends an{constructor(){super(...arguments);Ue(this,"priority",100);Ue(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,r,s){switch(r){case"I":return Vn(lr.week,n);case"Io":return s.ordinalNumber(n,{unit:"week"});default:return Jn(r.length,n)}}validate(n,r){return r>=1&&r<=53}set(n,r,s){return Ol(Bme(n,s))}}const Ume=[31,28,31,30,31,30,31,31,30,31,30,31],Wme=[31,29,31,30,31,30,31,31,30,31,30,31];class qme extends an{constructor(){super(...arguments);Ue(this,"priority",90);Ue(this,"subPriority",1);Ue(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"d":return Vn(lr.date,n);case"do":return s.ordinalNumber(n,{unit:"date"});default:return Jn(r.length,n)}}validate(n,r){const s=n.getFullYear(),i=mV(s),o=n.getMonth();return i?r>=1&&r<=Wme[o]:r>=1&&r<=Ume[o]}set(n,r,s){return n.setDate(s),n.setHours(0,0,0,0),n}}class Gme extends an{constructor(){super(...arguments);Ue(this,"priority",90);Ue(this,"subpriority",1);Ue(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,r,s){switch(r){case"D":case"DD":return Vn(lr.dayOfYear,n);case"Do":return s.ordinalNumber(n,{unit:"date"});default:return Jn(r.length,n)}}validate(n,r){const s=n.getFullYear();return mV(s)?r>=1&&r<=366:r>=1&&r<=365}set(n,r,s){return n.setMonth(0,s),n.setHours(0,0,0,0),n}}function Rb(t,e,n){const r=Rf(),s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Bt(t,n?.in),o=i.getDay(),c=(e%7+7)%7,d=7-s,p=e<0||e>6?e-(o+d)%7:(c+d)%7-(o+d)%7;return Gr(i,p,n)}class Kme extends an{constructor(){super(...arguments);Ue(this,"priority",90);Ue(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,r,s){switch(r){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,i){return n=Rb(n,s,i),n.setHours(0,0,0,0),n}}class Yme extends an{constructor(){super(...arguments);Ue(this,"priority",90);Ue(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,r,s,i){const o=a=>{const c=Math.floor((a-1)/7)*7;return(a+i.weekStartsOn+6)%7+c};switch(r){case"e":case"ee":return cr(Jn(r.length,n),o);case"eo":return cr(s.ordinalNumber(n,{unit:"day"}),o);case"eee":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,i){return n=Rb(n,s,i),n.setHours(0,0,0,0),n}}class Qme extends an{constructor(){super(...arguments);Ue(this,"priority",90);Ue(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,r,s,i){const o=a=>{const c=Math.floor((a-1)/7)*7;return(a+i.weekStartsOn+6)%7+c};switch(r){case"c":case"cc":return cr(Jn(r.length,n),o);case"co":return cr(s.ordinalNumber(n,{unit:"day"}),o);case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})||s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"})}}validate(n,r){return r>=0&&r<=6}set(n,r,s,i){return n=Rb(n,s,i),n.setHours(0,0,0,0),n}}function Xme(t,e,n){const r=Bt(t,n?.in),s=Eme(r,n),i=e-s;return Gr(r,i,n)}class Zme extends an{constructor(){super(...arguments);Ue(this,"priority",90);Ue(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,r,s){const i=o=>o===0?7:o;switch(r){case"i":case"ii":return Jn(r.length,n);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return cr(s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),i);case"iiiii":return cr(s.day(n,{width:"narrow",context:"formatting"}),i);case"iiiiii":return cr(s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),i);case"iiii":default:return cr(s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),i)}}validate(n,r){return r>=1&&r<=7}set(n,r,s){return n=Xme(n,s),n.setHours(0,0,0,0),n}}class Jme extends an{constructor(){super(...arguments);Ue(this,"priority",80);Ue(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,r,s){switch(r){case"a":case"aa":case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Pb(s),0,0,0),n}}class e1e extends an{constructor(){super(...arguments);Ue(this,"priority",80);Ue(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,r,s){switch(r){case"b":case"bb":case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Pb(s),0,0,0),n}}class t1e extends an{constructor(){super(...arguments);Ue(this,"priority",80);Ue(this,"incompatibleTokens",["a","b","t","T"])}parse(n,r,s){switch(r){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,r,s){return n.setHours(Pb(s),0,0,0),n}}class n1e extends an{constructor(){super(...arguments);Ue(this,"priority",70);Ue(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,r,s){switch(r){case"h":return Vn(lr.hour12h,n);case"ho":return s.ordinalNumber(n,{unit:"hour"});default:return Jn(r.length,n)}}validate(n,r){return r>=1&&r<=12}set(n,r,s){const i=n.getHours()>=12;return i&&s<12?n.setHours(s+12,0,0,0):!i&&s===12?n.setHours(0,0,0,0):n.setHours(s,0,0,0),n}}class r1e extends an{constructor(){super(...arguments);Ue(this,"priority",70);Ue(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,r,s){switch(r){case"H":return Vn(lr.hour23h,n);case"Ho":return s.ordinalNumber(n,{unit:"hour"});default:return Jn(r.length,n)}}validate(n,r){return r>=0&&r<=23}set(n,r,s){return n.setHours(s,0,0,0),n}}class s1e extends an{constructor(){super(...arguments);Ue(this,"priority",70);Ue(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,r,s){switch(r){case"K":return Vn(lr.hour11h,n);case"Ko":return s.ordinalNumber(n,{unit:"hour"});default:return Jn(r.length,n)}}validate(n,r){return r>=0&&r<=11}set(n,r,s){return n.getHours()>=12&&s<12?n.setHours(s+12,0,0,0):n.setHours(s,0,0,0),n}}class i1e extends an{constructor(){super(...arguments);Ue(this,"priority",70);Ue(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,r,s){switch(r){case"k":return Vn(lr.hour24h,n);case"ko":return s.ordinalNumber(n,{unit:"hour"});default:return Jn(r.length,n)}}validate(n,r){return r>=1&&r<=24}set(n,r,s){const i=s<=24?s%24:s;return n.setHours(i,0,0,0),n}}class o1e extends an{constructor(){super(...arguments);Ue(this,"priority",60);Ue(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"m":return Vn(lr.minute,n);case"mo":return s.ordinalNumber(n,{unit:"minute"});default:return Jn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setMinutes(s,0,0),n}}class a1e extends an{constructor(){super(...arguments);Ue(this,"priority",50);Ue(this,"incompatibleTokens",["t","T"])}parse(n,r,s){switch(r){case"s":return Vn(lr.second,n);case"so":return s.ordinalNumber(n,{unit:"second"});default:return Jn(r.length,n)}}validate(n,r){return r>=0&&r<=59}set(n,r,s){return n.setSeconds(s,0),n}}class l1e extends an{constructor(){super(...arguments);Ue(this,"priority",30);Ue(this,"incompatibleTokens",["t","T"])}parse(n,r){const s=i=>Math.trunc(i*Math.pow(10,-r.length+3));return cr(Jn(r.length,n),s)}set(n,r,s){return n.setMilliseconds(s),n}}class c1e extends an{constructor(){super(...arguments);Ue(this,"priority",10);Ue(this,"incompatibleTokens",["t","T","x"])}parse(n,r){switch(r){case"X":return ga(ma.basicOptionalMinutes,n);case"XX":return ga(ma.basic,n);case"XXXX":return ga(ma.basicOptionalSeconds,n);case"XXXXX":return ga(ma.extendedOptionalSeconds,n);case"XXX":default:return ga(ma.extended,n)}}set(n,r,s){return r.timestampIsSet?n:xn(n,n.getTime()-Gp(n)-s)}}class u1e extends an{constructor(){super(...arguments);Ue(this,"priority",10);Ue(this,"incompatibleTokens",["t","T","X"])}parse(n,r){switch(r){case"x":return ga(ma.basicOptionalMinutes,n);case"xx":return ga(ma.basic,n);case"xxxx":return ga(ma.basicOptionalSeconds,n);case"xxxxx":return ga(ma.extendedOptionalSeconds,n);case"xxx":default:return ga(ma.extended,n)}}set(n,r,s){return r.timestampIsSet?n:xn(n,n.getTime()-Gp(n)-s)}}class d1e extends an{constructor(){super(...arguments);Ue(this,"priority",40);Ue(this,"incompatibleTokens","*")}parse(n){return hV(n)}set(n,r,s){return[xn(n,s*1e3),{timestampIsSet:!0}]}}class f1e extends an{constructor(){super(...arguments);Ue(this,"priority",20);Ue(this,"incompatibleTokens","*")}parse(n){return hV(n)}set(n,r,s){return[xn(n,s),{timestampIsSet:!0}]}}const h1e={G:new Nme,y:new Mme,Y:new kme,R:new Dme,u:new Ome,Q:new $me,q:new Fme,M:new jme,L:new Lme,w:new Vme,I:new Hme,d:new qme,D:new Gme,E:new Kme,e:new Yme,c:new Qme,i:new Zme,a:new Jme,b:new e1e,B:new t1e,h:new n1e,H:new r1e,K:new s1e,k:new i1e,m:new o1e,s:new a1e,S:new l1e,X:new c1e,x:new u1e,t:new d1e,T:new f1e},p1e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,m1e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,g1e=/^'([^]*?)'?$/,v1e=/''/g,y1e=/\S/,x1e=/[a-zA-Z]/;function w1e(t,e,n,r){const s=()=>xn(r?.in||n,NaN),i=_me(),o=r?.locale??i.locale??Cb,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,d={firstWeekContainsDate:a,weekStartsOn:c,locale:o},p=[new Rme(r?.in,n)],m=e.match(m1e).map(b=>{const S=b[0];if(S in S_){const P=S_[S];return P(b,o.formatLong)}return b}).join("").match(p1e),v=[];for(let b of m){!r?.useAdditionalWeekYearTokens&&uV(b)&&C_(b,e,t),!r?.useAdditionalDayOfYearTokens&&cV(b)&&C_(b,e,t);const S=b[0],P=h1e[S];if(P){const{incompatibleTokens:R}=P;if(Array.isArray(R)){const O=v.find(F=>R.includes(F.token)||F.token===S);if(O)throw new RangeError(`The format string mustn't contain \`${O.fullToken}\` and \`${b}\` at the same time`)}else if(P.incompatibleTokens==="*"&&v.length>0)throw new RangeError(`The format string mustn't contain \`${b}\` and any other token at the same time`);v.push({token:S,fullToken:b});const z=P.run(t,b,o.match,d);if(!z)return s();p.push(z.setter),t=z.rest}else{if(S.match(x1e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if(b==="''"?b="'":S==="'"&&(b=_1e(b)),t.indexOf(b)===0)t=t.slice(b.length);else return s()}}if(t.length>0&&y1e.test(t))return s();const w=p.map(b=>b.priority).sort((b,S)=>S-b).filter((b,S,P)=>P.indexOf(b)===S).map(b=>p.filter(S=>S.priority===b).sort((S,P)=>P.subPriority-S.subPriority)).map(b=>b[0]);let E=Bt(n,r?.in);if(isNaN(+E))return s();const C={};for(const b of w){if(!b.validate(E,d))return s();const S=b.set(E,C,d);Array.isArray(S)?(E=S[0],Object.assign(C,S[1])):E=S}return E}function _1e(t){return t.match(g1e)[1].replace(v1e,"'")}function Nb(t,e,n){const[r,s]=Tm(n?.in,t,e);return r.getFullYear()===s.getFullYear()&&r.getMonth()===s.getMonth()}function E1e(t,e,n){const[r,s]=Tm(n?.in,t,e);return r.getFullYear()===s.getFullYear()}function v7(t,e,n){return Gr(t,-e,n)}function Mb(t,e){const n=()=>xn(e?.in,NaN),s=T1e(t);let i;if(s.date){const d=A1e(s.date,2);i=I1e(d.restDateString,d.year)}if(!i||isNaN(+i))return n();const o=+i;let a=0,c;if(s.time&&(a=P1e(s.time),isNaN(a)))return n();if(s.timezone){if(c=R1e(s.timezone),isNaN(c))return n()}else{const d=new Date(o+a),p=Bt(0,e?.in);return p.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),p.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),p}return Bt(o+a+c,e?.in)}const u3={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},b1e=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,S1e=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,C1e=/^([+-])(\d{2})(?::?(\d{2}))?$/;function T1e(t){const e={},n=t.split(u3.dateTimeDelimiter);let r;if(n.length>2)return e;if(/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],u3.timeZoneDelimiter.test(e.date)&&(e.date=t.split(u3.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length))),r){const s=u3.timezone.exec(r);s?(e.time=r.replace(s[1],""),e.timezone=s[1]):e.time=r}return e}function A1e(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const s=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?s:i*100,restDateString:t.slice((r[1]||r[2]).length)}}function I1e(t,e){if(e===null)return new Date(NaN);const n=t.match(b1e);if(!n)return new Date(NaN);const r=!!n[4],s=D1(n[1]),i=D1(n[2])-1,o=D1(n[3]),a=D1(n[4]),c=D1(n[5])-1;if(r)return O1e(e,a,c)?N1e(e,a,c):new Date(NaN);{const d=new Date(0);return!k1e(e,i,o)||!D1e(e,s)?new Date(NaN):(d.setUTCFullYear(e,i,Math.max(s,o)),d)}}function D1(t){return t?parseInt(t):1}function P1e(t){const e=t.match(S1e);if(!e)return NaN;const n=y7(e[1]),r=y7(e[2]),s=y7(e[3]);return $1e(n,r,s)?n*_b+r*wb+s*1e3:NaN}function y7(t){return t&&parseFloat(t.replace(",","."))||0}function R1e(t){if(t==="Z")return 0;const e=t.match(C1e);if(!e)return 0;const n=e[1]==="+"?-1:1,r=parseInt(e[2]),s=e[3]&&parseInt(e[3])||0;return F1e(r,s)?n*(r*_b+s*wb):NaN}function N1e(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const s=r.getUTCDay()||7,i=(e-1)*7+n+1-s;return r.setUTCDate(r.getUTCDate()+i),r}const M1e=[31,null,31,30,31,30,31,31,30,31,30,31];function gV(t){return t%400===0||t%4===0&&t%100!==0}function k1e(t,e,n){return e>=0&&e<=11&&n>
285=1&&n<=(M1e[e]||(gV(t)?29:28))}function D1e(t,e){return e>=1&&e<=(gV(t)?366:365)}function O1e(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}function $1e(t,e,n){return t===24?e===0&&n===0:n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}function F1e(t,e){return e>=0&&e<=59}function x7(t,e,n){const r=Bt(t,n?.in),s=r.getFullYear(),i=r.getDate(),o=xn(t,0);o.setFullYear(s,e,15),o.setHours(0,0,0,0);const a=wme(o);return r.setMonth(e,Math.min(i,a)),r}function uN(t,e,n){const r=Bt(t,n?.in);return isNaN(+r)?xn(t,NaN):(r.setFullYear(e),r)}const j1e={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},L1e=(t,e,n)=>{let r;const s=j1e[t];return typeof s=="string"?r=s:e===1?r=s.one:r=s.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"en "+r:"hace "+r:r},z1e={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},V1e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},B1e={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},H1e={date:dp({formats:z1e,defaultWidth:"full"}),time:dp({formats:V1e,defaultWidth:"full"}),dateTime:dp({formats:B1e,defaultWidth:"full"})},U1e={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},W1e={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},q1e=(t,e,n,r)=>e.getHours()!==1?W1e[t]:U1e[t],G1e={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},K1e={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Y1e={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},Q1e={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},X1e={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},Z1e={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},J1e=(t,e)=>Number(t)+"º",e0e={ordinalNumber:J1e,era:ha({values:G1e,defaultWidth:"wide"}),quarter:ha({values:K1e,defaultWidth:"wide",argumentCallback:t=>Number(t)-1}
285),month:ha({values:Y1e,defaultWidth:"wide"}),day:ha({values:Q1e,defaultWidth:"wide"}),dayPeriod:ha({values:X1e,defaultWidth:"wide",formattingValues:Z1e,defaultFormattingWidth:"wide"})},t0e=/^(\d+)(º)?/i,n0e=/\d+/i,r0e={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},s0e={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},i0e={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},o0e={any:[/1/i,/2/i,/3/i,/4/i]},a0e={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},l0e={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},c0e={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},u0e={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},d0e={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},f0e={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},h0e={ordinalNumber:aV({matchPattern:t0e,parsePattern:n0e,valueCallback:function(t){return parseInt(t,10)}}),era:pa({matchPatterns:r0e,defaultMatchWidth:"wide",parsePatterns:s0e,defaultParseWidth:"any"}),quarter:pa({matchPatterns:i0e,defaultMatchWidth:"wide",parsePatterns:o0e,defaultParseWidth:"any",valueCallback:t=>t+1}),month:pa({matchPatterns:a0e,defaultMatchWidth:"wide",parsePatterns:l0e,defaultParseWidth:"any"}),day:pa({matchPatterns:c0e,defaultMatchWidth:"wide",parsePatterns:u0e,defaultParseWidth:"any"}),dayPeriod:pa({matchPatterns:d0e,defaultMatchWidth:"any",parsePatterns:f0e,defaultParseWidth:"any"})},Uo={code:"es",formatDistance:L1e,formatLong:H1e,formatRelative:q1e,localize:e0e,match:h0e,options:{weekStartsOn:1,firstWeekContainsDate:1}};var mt=function(){return mt=Object.assign||function(e){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},mt.apply(this,arguments)};function p0e(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n}function vV(t,e,n){for(var r=0,s=e.length,i;r<s;r++)(i||!(r in e))&&(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}function H2(t){return t.mode==="multiple"}function U2(t){return t.mode==="range"}function P5(t){return t.mode==="single"}var m0e={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function g0e(t,e){return yi(t,"LLLL y",e)}function v0e(t,e){return yi(t,"d",e)}function y0e(t,e){return yi(t,"LLLL",e)}function x0e(t){return"".concat(t)}function w0e(t,e){return yi(t,"cccccc",e)}function _0e(t,e){return yi(t,"yyyy",e)}var E0e=Object.freeze({__proto__:null,formatCaption:g0e,formatDay:v0e,formatMonthCaption:y0e,formatWeekNumber:x0e,formatWeekdayName:w0e,formatYearC
285aption:_0e}),b0e=function(t,e,n){return yi(t,"do MMMM (EEEE)",n)},S0e=function(){return"Month: "},C0e=function(){return"Go to next month"},T0e=function(){return"Go to previous month"},A0e=function(t,e){return yi(t,"cccc",e)},I0e=function(t){return"Week n. ".concat(t)},P0e=function(){return"Year: "},R0e=Object.freeze({__proto__:null,labelDay:b0e,labelMonthDropdown:S0e,labelNext:C0e,labelPrevious:T0e,labelWeekNumber:I0e,labelWeekday:A0e,labelYearDropdown:P0e});function N0e(){var t="buttons",e=m0e,n=Cb,r={},s={},i=1,o={},a=new Date;return{captionLayout:t,classNames:e,formatters:E0e,labels:R0e,locale:n,modifiersClassNames:r,modifiers:s,numberOfMonths:i,styles:o,today:a,mode:"default"}}function M0e(t){var e=t.fromYear,n=t.toYear,r=t.fromMonth,s=t.toMonth,i=t.fromDate,o=t.toDate;return r?i=Gs(r):e&&(i=new Date(e,0,1)),s?o=bb(s):n&&(o=new Date(n,11,31)),{fromDate:i?Kp(i):void 0,toDate:o?Kp(o):void 0}}var yV=_.createContext(void 0);function k0e(t){var e,n=t.initialProps,r=N0e(),s=M0e(n),i=s.fromDate,o=s.toDate,a=(e=n.captionLayout)!==null&&e!==void 0?e:r.captionLayout;a!=="buttons"&&(!i||!o)&&(a="buttons");var c;(P5(n)||H2(n)||U2(n))&&(c=n.onSelect);var d=mt(mt(mt({},r),n),{captionLayout:a,classNames:mt(mt({},r.classNames),n.classNames),components:mt({},n.components),formatters:mt(mt({},r.formatters),n.formatters),fromDate:i,labels:mt(mt({},r.labels),n.labels),mode:n.mode||r.mode,modifiers:mt(mt({},r.modifiers),n.modifiers),modifiersClassNames:mt(mt({},r.modifiersClassNames),n.modifiersClassNames),onSelect:c,styles:mt(mt({},r.styles),n.styles),toDate:o});return u.jsx(yV.Provider,{value:d,children:t.children})}function Rn(){var t=_.useContext(yV);if(!t)throw new Error("useDayPicker must be used within a DayPickerProvider.");return t}function xV(t){var e=Rn(),n=e.locale,r=e.classNames,s=e.styles,i=e.formatters.formatCaption;return u.jsx("div",{className:r.caption_label,style:s.caption_label,"aria-live":"polite",role:"presentation",id:t.id,children:i(t.displayMonth,{locale:n})})}function D0e(t){return u.jsx("svg",mt({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},t,{children:u.jsx("path",{d:"M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z",fill:"currentColor",fillRule:"nonzero"})}))}function wV(t){var e,n,r=t.onChange,s=t.value,i=t.children,o=t.caption,a=t.className,c=t.style,d=Rn(),p=(n=(e=d.components)===null||e===void 0?void 0:e.IconDropdown)!==null&&n!==void 0?n:D0e;return u.jsxs("div",{className:a,style:c,children:[u.jsx("span",{className:d.classNames.vhidden,children:t["aria-label"]}),u.jsx("select",{name:t.name,"aria-label":t["aria-label"],className:d.classNames.dropdown,style:d.styles.dropdown,value:s,onChange:r,children:i}),u.jsxs("div",{className:d.classNames.caption_label,style:d.styles.caption_label,"aria-hidden":"true",children:[o,u.jsx(p,{className:d.classNames.dropdown_icon,style:d.styles.dropdown_icon})]})]})}function O0e(t){var e,n=Rn(),r=n.fromDate,s=n.toDate,i=n.styles,o=n.locale,a=n.formatters.formatMonthCaption,c=n.classNames,d=n.components,p=n.labels.labelMonthDropdown;if(!r)return u.jsx(u.Fragment,{});if(!s)return u.jsx(u.Fragment,{});var m=[];if(E1e(r,s))for(var v=Gs(r),w=r.getMonth();w<=s.getMonth();w++)m.push(x7(v,w));else for(var v=Gs(new Date),w=0;w<=11;w++)m.push(x7(v,w));var E=function(b){var S=Number(b.target.value),P=x7(Gs(t.displayMonth),S);t.onChange(P)},C=(e=d?.Dropdown)!==null&&e!==void 0?e:wV;return u.jsx(C,{name:"months","aria-label":p(),className:c.dropdown_month,style:i.dropdown_month,onChange:E,value:t.displayMonth.getMonth(),caption:a(t.displayMonth,{locale:o}),children:m.map(function(b){return u.jsx("option",{value:b.getMonth(),children:a(b,{locale:o})},b.getMonth())})})}function $0e(t){var e,n=t.displayMonth,r=Rn(),s=r.fromDate,i=r.toDate,o=r.locale,a=r.
285styles,c=r.classNames,d=r.components,p=r.formatters.formatYearCaption,m=r.labels.labelYearDropdown,v=[];if(!s)return u.jsx(u.Fragment,{});if(!i)return u.jsx(u.Fragment,{});for(var w=s.getFullYear(),E=i.getFullYear(),C=w;C<=E;C++)v.push(uN(iV(new Date),C));var b=function(P){var R=uN(Gs(n),Number(P.target.value));t.onChange(R)},S=(e=d?.Dropdown)!==null&&e!==void 0?e:wV;return u.jsx(S,{name:"years","aria-label":m(),className:c.dropdown_year,style:a.dropdown_year,onChange:b,value:n.getFullYear(),caption:p(n,{locale:o}),children:v.map(function(P){return u.jsx("option",{value:P.getFullYear(),children:p(P,{locale:o})},P.getFullYear())})})}function F0e(t,e){var n=_.useState(t),r=n[0],s=n[1],i=e===void 0?r:e;return[i,s]}function j0e(t){var e=t.month,n=t.defaultMonth,r=t.today,s=e||n||r||new Date,i=t.toDate,o=t.fromDate,a=t.numberOfMonths,c=a===void 0?1:a;if(i&&$0(i,s)<0){var d=-1*(c-1);s=Fo(i,d)}return o&&$0(s,o)<0&&(s=o),Gs(s)}function L0e(){var t=Rn(),e=j0e(t),n=F0e(e,t.month),r=n[0],s=n[1],i=function(o){var a;if(!t.disableNavigation){var c=Gs(o);s(c),(a=t.onMonthChange)===null||a===void 0||a.call(t,c)}};return[r,i]}function z0e(t,e){for(var n=e.reverseMonths,r=e.numberOfMonths,s=Gs(t),i=Gs(Fo(s,r)),o=$0(i,s),a=[],c=0;c<o;c++){var d=Fo(s,c);a.push(d)}return n&&(a=a.reverse()),a}function V0e(t,e){if(!e.disableNavigation){var n=e.toDate,r=e.pagedNavigation,s=e.numberOfMonths,i=s===void 0?1:s,o=r?i:1,a=Gs(t);if(!n)return Fo(a,o);var c=$0(n,t);if(!(c<i))return Fo(a,o)}}function B0e(t,e){if(!e.disableNavigation){var n=e.fromDate,r=e.pagedNavigation,s=e.numberOfMonths,i=s===void 0?1:s,o=r?i:1,a=Gs(t);if(!n)return Fo(a,-o);var c=$0(a,n);if(!(c<=0))return Fo(a,-o)}}var _V=_.createContext(void 0);function H0e(t){var e=Rn(),n=L0e(),r=n[0],s=n[1],i=z0e(r,e),o=V0e(r,e),a=B0e(r,e),c=function(m){return i.some(function(v){return Nb(m,v)})},d=function(m,v){c(m)||(v&&dV(m,v)?s(Fo(m,1+e.numberOfMonths*-1)):s(m))},p={currentMonth:r,displayMonths:i,goToMonth:s,goToDate:d,previousMonth:a,nextMonth:o,isDateDisplayed:c};return u.jsx(_V.Provider,{value:p,children:t.children})}function W2(){var t=_.useContext(_V);if(!t)throw new Error("useNavigation must be used within a NavigationProvider");return t}function dN(t){var e,n=Rn(),r=n.classNames,s=n.styles,i=n.components,o=W2().goToMonth,a=function(p){o(Fo(p,t.displayIndex?-t.displayIndex:0))},c=(e=i?.CaptionLabel)!==null&&e!==void 0?e:xV,d=u.jsx(c,{id:t.id,displayMonth:t.displayMonth});return u.jsxs("div",{className:r.caption_dropdowns,style:s.caption_dropdowns,children:[u.jsx("div",{className:r.vhidden,children:d}),u.jsx(O0e,{onChange:a,displayMonth:t.displayMonth}),u.jsx($0e,{onChange:a,displayMonth:t.displayMonth})]})}function U0e(t){return u.jsx("svg",mt({width:"16px",height:"16px",viewBox:"0 0 120 120"},t,{children:u.jsx("path",{d:"M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z",fill:"currentColor",fillRule:"nonzero"})}))}function W0e(t){return u.jsx("svg",mt({width:"16px",height:"16px",viewBox:"0 0 120 120"},t,{children:u.jsx("path",{d:"M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z",fill:"currentColor"})}))}var Qy=_.forwardRef(function(t,e){var n=Rn(),r=n.classNames,s=n.styles,i=[r.button_reset,r.button];t.className&&i.push(t.className);var o=i.join(" "),a=mt(mt({},s.button_reset),s.button);return t.style&&Object.assign(a,t.style),u.jsx("button",mt({},t,{ref:e,type:"button",className:o,style:a}))});function q0e(t){var e,n,r=Rn(),s=r.dir,i=r.locale,o=r.classNames,a=r.styles,c=r.labels,d=c.labelPrevious,p=c.labelNext,m=r.components;if(!t.nextMonth&&!t.previousMonth)return u.jsx(u.Fragment,{});var v=d(t.previousMonth,{locale:i}),w=[o.nav_button,o.nav_button_previous].join(" "),E=p(t.nextMonth,{locale:i}),C=[o.nav_button,o.nav_button_next].join(" "),b=(e=m?.IconRight)!==null&&e!==void 0?e:W0e,S=(n=m?.IconLeft)!==null&&n!==void 0?n:U0e;return u.jsxs("div",{className:o.nav,style:a.nav,children:[!t.hidePrevious&&u.jsx(Qy,{name:"previous-month","aria-label":v,className:w,style:a.nav_button_previous,disabled:!t.previousMonth,onClick:t.onPreviousClick,children:s==="rtl"?u.jsx(b,{className:o.nav_icon,style:a.nav_icon}):u.jsx(S,{className:o.nav_icon,style:a.nav_icon})}),!t.hideNext&&u.jsx(Qy,{name:"next-month","aria-label":E,className:C,style:a.nav_button_next,disabled:!t.nextMonth,onClick:t.onNextClick,children:s==="rtl"?u.jsx(S,{className:o.nav_icon,style:a.nav_icon}):u.jsx(b,{className:o.nav_icon,style:a.nav_icon})})]})}function fN(t){var e=Rn().numberOfMonths,n=W2(),r=n.previousMonth,s=n.nextMonth,i=n.goToMonth,o=n.displayMonths,a=o.findIndex(function(E){return Nb(t.displayMonth,E)}),c=a===0,d=a===o.length-1,p=e>1&&(c||!d),m=e>1&&(d||!c),v=function(){r&&i(r)},w=function(){s&&i(s)};return u.jsx(q0e,{displayMonth:t.displayMonth,hideNext:p,hidePrevious:m,nextMonth:s,previousMonth:r,onPreviousClick:v,onNextClick:w})}function G0e(t){var e,n=Rn(),r=n.classNames,s=n.disableNavigation,i=n.styles,o=n.captionLayout,a=n.components,c=(e=a?.CaptionLabel)!==null&&e!==void 0?e:xV,d;return s?d=u.jsx(c,{id:t.id,displayMonth:t.displayMonth}):o==="dropdown"?d=u.jsx(dN,{displayMonth:t.displayMonth,id:t.id}):o==="dropdown-buttons"?d=u.jsxs(u.Fragment,{children:[u.jsx(dN,{displayMonth:t.displayMonth,displayIndex:t.displayIndex,id:t.id}),u.jsx(fN,{displayMonth:t.displayMonth,displayIndex:t.displayIndex,id:t.id})]}):d=u.jsxs(u.Fragment,{children:[u.jsx(c,{id:t.id,displayMonth:t.displayMonth,displayIndex:t.displayIndex}),u.jsx(fN,{displayMonth:t.displayMonth,id:t.id})]}),u.jsx("div",{className:r.caption,style:i.caption,children:d})}function K0e(t){var e=Rn(),n=e.footer,r=e.styles,s=e.classNames.tfoot;return n?u.jsx("tfoot",{className:s,style:r.tfoot,children:u.jsx("tr",{children:u.jsx("td",{colSpan:8,children:n})})}):u.jsx(u.Fragment,{})}function Y0e(t,e,n){for(var r=n?Ol(new Date):Qs(new Date,{locale:t,weekStartsOn:e}),s=[],i=0;i<7;i++){var o=Gr(r,i);s.push(o)}return s}function Q0e(){var t=Rn(),e=t.classNames,n=t.styles,r=t.showWeekNumber,s=t.locale,i=t.weekStartsOn,o=t.ISOWeek,a=t.formatters.formatWeekdayName,c=t.labels.labelWeekday,d=Y0e(s,i,o);return u.jsxs("tr",{style:n.head_row,className:e.head_row,children:[r&&u.jsx("td",{style:n.head_cell,className:e.head_cell}),d.map(function(p,m){return u.jsx("th",{scope:"col",className:e.head_cell,style:n.head_cell,"aria-label":c(p,{locale:s}),children:a(p,{locale:s})},m)})]})}function X0e(){var t,e=Rn(),n=e.classNames,r=e.styles,s=e.components,i=(t=s?.HeadRow)!==null&&t!==void 0?t:Q0e;return u.jsx("thead",{style:r.head,className:n.head,children:u.jsx(i,{})})}function Z0e(t){var e=Rn(),n=e.locale,r=e.formatters.formatDay;return u.jsx(u.Fragment,{children:r(t.date,{locale:n})})}var kb=_.createContext(void 0);function J0e(t){if(!H2(t.initialProps)){var e={selected:void 0,modifiers:{disabled:[]}};return u.jsx(kb.Provider,{value:e,children:t.children})}return u.jsx(e2e,{initialProps:t.initialProps,children:t.children})}function e2e(t){var e=t.initialProps,n=t.children,r=e.selected,s=e.min,i=e.max,o=function(d,p,m){var v,w;(v=e.onDayClick)===null||v===void 0||v.call(e,d,p,m);var E=!!(p.selected&&s&&r?.length===s);if(!E){var C=!!(!p.selected&&i&&r?.length===i);if(!C){var b=r?vV([],r):[];if(p.selected){var S=b.findIndex(function(P){return Us(d,P)});b.splice(S,1)}else b.push(d);(w=e.onSelect)===null||w===void 0||w.call(e,b,d,p,m)}}},a={disabled:[]};r&&a.disabled.push(function(d){var p=i&&r.length>i-1,m=r.some(function(v){return Us(v,d)});return!!(p&&!m)});var c={selected:r,onDayClick:o,modifiers:a};return u.jsx(kb.Provider,{value:c,children:n})}function Db(){var t=_.useContext(kb);
285if(!t)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return t}function t2e(t,e){var n=e||{},r=n.from,s=n.to;return r&&s?Us(s,t)&&Us(r,t)?void 0:Us(s,t)?{from:s,to:void 0}:Us(r,t)?void 0:T_(r,t)?{from:t,to:s}:{from:r,to:t}:s?T_(t,s)?{from:s,to:t}:{from:t,to:s}:r?dV(t,r)?{from:t,to:r}:{from:r,to:t}:{from:t,to:void 0}}var Ob=_.createContext(void 0);function n2e(t){if(!U2(t.initialProps)){var e={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return u.jsx(Ob.Provider,{value:e,children:t.children})}return u.jsx(r2e,{initialProps:t.initialProps,children:t.children})}function r2e(t){var e=t.initialProps,n=t.children,r=e.selected,s=r||{},i=s.from,o=s.to,a=e.min,c=e.max,d=function(w,E,C){var b,S;(b=e.onDayClick)===null||b===void 0||b.call(e,w,E,C);var P=t2e(w,r);(S=e.onSelect)===null||S===void 0||S.call(e,P,w,E,C)},p={range_start:[],range_end:[],range_middle:[],disabled:[]};if(i?(p.range_start=[i],o?(p.range_end=[o],Us(i,o)||(p.range_middle=[{after:i,before:o}])):p.range_end=[i]):o&&(p.range_start=[o],p.range_end=[o]),a&&(i&&!o&&p.disabled.push({after:v7(i,a-1),before:Gr(i,a-1)}),i&&o&&p.disabled.push({after:i,before:Gr(i,a-1)}),!i&&o&&p.disabled.push({after:v7(o,a-1),before:Gr(o,a-1)})),c){if(i&&!o&&(p.disabled.push({before:Gr(i,-c+1)}),p.disabled.push({after:Gr(i,c-1)})),i&&o){var m=ya(o,i)+1,v=c-m;p.disabled.push({before:v7(i,v)}),p.disabled.push({after:Gr(o,v)})}!i&&o&&(p.disabled.push({before:Gr(o,-c+1)}),p.disabled.push({after:Gr(o,c-1)}))}return u.jsx(Ob.Provider,{value:{selected:r,onDayClick:d,modifiers:p},children:n})}function $b(){var t=_.useContext(Ob);if(!t)throw new Error("useSelectRange must be used within a SelectRangeProvider");return t}function K3(t){return Array.isArray(t)?vV([],t):t!==void 0?[t]:[]}function s2e(t){var e={};return Object.entries(t).forEach(function(n){var r=n[0],s=n[1];e[r]=K3(s)}),e}var jo;(function(t){t.Outside="outside",t.Disabled="disabled",t.Selected="selected",t.Hidden="hidden",t.Today="today",t.RangeStart="range_start",t.RangeEnd="range_end",t.RangeMiddle="range_middle"})(jo||(jo={}));var i2e=jo.Selected,sl=jo.Disabled,o2e=jo.Hidden,a2e=jo.Today,w7=jo.RangeEnd,_7=jo.RangeMiddle,E7=jo.RangeStart,l2e=jo.Outside;function c2e(t,e,n){var r,s=(r={},r[i2e]=K3(t.selected),r[sl]=K3(t.disabled),r[o2e]=K3(t.hidden),r[a2e]=[t.today],r[w7]=[],r[_7]=[],r[E7]=[],r[l2e]=[],r);return t.fromDate&&s[sl].push({before:t.fromDate}),t.toDate&&s[sl].push({after:t.toDate}),H2(t)?s[sl]=s[sl].concat(e.modifiers[sl]):U2(t)&&(s[sl]=s[sl].concat(n.modifiers[sl]),s[E7]=n.modifiers[E7],s[_7]=n.modifiers[_7],s[w7]=n.modifiers[w7]),s}var EV=_.createContext(void 0);function u2e(t){var e=Rn(),n=Db(),r=$b(),s=c2e(e,n,r),i=s2e(e.modifiers),o=mt(mt({},s),i);return u.jsx(EV.Provider,{value:o,children:t.children})}function bV(){var t=_.useContext(EV);if(!t)throw new Error("useModifiers must be used within a ModifiersProvider");return t}function d2e(t){return!!(t&&typeof t=="object"&&"before"in t&&"after"in t)}function f2e(t){return!!(t&&typeof t=="object"&&"from"in t)}function h2e(t){return!!(t&&typeof t=="object"&&"after"in t)}function p2e(t){return!!(t&&typeof t=="object"&&"before"in t)}function m2e(t){return!!(t&&typeof t=="object"&&"dayOfWeek"in t)}function g2e(t,e){var n,r=e.from,s=e.to;if(r&&s){var i=ya(s,r)<0;i&&(n=[s,r],r=n[0],s=n[1]);var o=ya(t,r)>=0&&ya(s,t)>=0;return o}return s?Us(s,t):r?Us(r,t):!1}function v2e(t){return Eb(t)}function y2e(t){return Array.isArray(t)&&t.every(Eb)}function x2e(t,e){return e.some(function(n){if(typeof n=="boolean")return n;if(v2e(n))return Us(t,n);if(y2e(n))return n.includes(t);if(f2e(n))return g2e(t,n);if(m2e(n))return n.dayOfWeek.includes(t.getDay());if(d2e(n)){var r=ya(n.before,t),s=ya(n.after,t),i=r>0,o=s<0,a=T_(n.before,n.after);return a?o&&i:i||o}return h2e(n)?ya(t,n.after)>0:p2e(n)?ya(n.before,t)>0:typeof n=="function"?n(t):!1})}function Fb(t,e,n){var r=Object.keys(e).reduce(function(i,o){var a=e[o];return x2e(t,a)&&i.push(o),i},[]),s={};return r.forEach(function(i){return s[i]=!0}),n&&!Nb(t,n)&&(s.outside=!0),s}function w2e(t,e){for(var n=Gs(t[0]),r=bb(t[t.length-1]),s,i,o=n;o<=r;){var a=Fb(o,e),c=!a.disabled&&!a.hidden;if(!c){o=Gr(o,1);continue}if(a.selected)return o;a.today&&!i&&(i=o),s||(s=o),o=Gr(o,1)}return i||s}var _2e=365;function SV(t,e){var n=e.moveBy,r=e.direction,s=e.context,i=e.modifiers,o=e.retry,a=o===void 0?{count:0,lastFocused:t}:o,c=s.weekStartsOn,d=s.fromDate,p=s.toDate,m=s.locale,v={day:Gr,week:Ky,month:Fo,year:Cpe,startOfWeek:function(b){return s.ISOWeek?Ol(b):Qs(b,{locale:m,weekStartsOn:c})},endOfWeek:function(b){return s.ISOWeek?oV(b):Sb(b,{locale:m,weekStartsOn:c})}},w=v[n](t,r==="after"?1:-1);r==="before"&&d?w=Tpe([d,w]):r==="after"&&p&&(w=Ape([p,w]));var E=!0;if(i){var C=Fb(w,i);E=!C.disabled&&!C.hidden}return E?w:a.count>_2e?a.lastFocused:SV(w,{moveBy:n,direction:r,context:s,modifiers:i,retry:mt(mt({},a),{count:a.count+1})})}var CV=_.createContext(void 0);function E2e(t){var e=W2(),n=bV(),r=_.useState(),s=r[0],i=r[1],o=_.useState(),a=o[0],c=o[1],d=w2e(e.dis
285playMonths,n),p=s??(a&&e.isDateDisplayed(a))?a:d,m=function(){c(s),i(void 0)},v=function(b){i(b)},w=Rn(),E=function(b,S){if(s){var P=SV(s,{moveBy:b,direction:S,context:w,modifiers:n});Us(s,P)||(e.goToDate(P,s),v(P))}},C={focusedDay:s,focusTarget:p,blur:m,focus:v,focusDayAfter:function(){return E("day","after")},focusDayBefore:function(){return E("day","before")},focusWeekAfter:function(){return E("week","after")},focusWeekBefore:function(){return E("week","before")},focusMonthBefore:function(){return E("month","before")},focusMonthAfter:function(){return E("month","after")},focusYearBefore:function(){return E("year","before")},focusYearAfter:function(){return E("year","after")},focusStartOfWeek:function(){return E("startOfWeek","before")},focusEndOfWeek:function(){return E("endOfWeek","after")}};return u.jsx(CV.Provider,{value:C,children:t.children})}function jb(){var t=_.useContext(CV);if(!t)throw new Error("useFocusContext must be used within a FocusProvider");return t}function b2e(t,e){var n=bV(),r=Fb(t,n,e);return r}var Lb=_.createContext(void 0);function S2e(t){if(!P5(t.initialProps)){var e={selected:void 0};return u.jsx(Lb.Provider,{value:e,children:t.children})}return u.jsx(C2e,{initialProps:t.initialProps,children:t.children})}function C2e(t){var e=t.initialProps,n=t.children,r=function(i,o,a){var c,d,p;if((c=e.onDayClick)===null||c===void 0||c.call(e,i,o,a),o.selected&&!e.required){(d=e.onSelect)===null||d===void 0||d.call(e,void 0,i,o,a);return}(p=e.onSelect)===null||p===void 0||p.call(e,i,i,o,a)},s={selected:e.selected,onDayClick:r};return u.jsx(Lb.Provider,{value:s,children:n})}function TV(){var t=_.useContext(Lb);if(!t)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return t}function T2e(t,e){var n=Rn(),r=TV(),s=Db(),i=$b(),o=jb(),a=o.focusDayAfter,c=o.focusDayBefore,d=o.focusWeekAfter,p=o.focusWeekBefore,m=o.blur,v=o.focus,w=o.focusMonthBefore,E=o.focusMonthAfter,C=o.focusYearBefore,b=o.focusYearAfter,S=o.focusStartOfWeek,P=o.focusEndOfWeek,R=function(U){var B,ne,oe,Q;P5(n)?(B=r.onDayClick)===null||B===void 0||B.call(r,t,e,U):H2(n)?(ne=s.onDayClick)===null||ne===void 0||ne.call(s,t,e,U):U2(n)?(oe=i.onDayClick)===null||oe===void 0||oe.call(i,t,e,U):(Q=n.onDayClick)===null||Q===void 0||Q.call(n,t,e,U)},z=function(U){var B;v(t),(B=n.onDayFocus)===null||B===void 0||B.call(n,t,e,U)},O=function(U){var B;m(),(B=n.onDayBlur)===null||B===void 0||B.call(n,t,e,U)},F=function(U){var B;(B=n.onDayMouseEnter)===null||B===void 0||B.call(n,t,e,U)},D=function(U){var B;(B=n.onDayMouseLeave)===null||B===void 0||B.call(n,t,e,U)},I=function(U){var B;(B=n.onDayPointerEnter)===null||B===void 0||B.call(n,t,e,U)},T=function(U){var B;(B=n.onDayPointerLeave)===null||B===void 0||B.call(n,t,e,U)},k=function(U){var B;(B=n.onDayTouchCancel)===null||B===void 0||B.call(n,t,e,U)},j=function(U){var B;(B=n.onDayTouchEnd)===null||B===void 0||B.call(n,t,e,U)},L=function(U){var B;(B=n.onDayTouchMove)===null||B===void 0||B.call(n,t,e,U)},V=function(U){var B;(B=n.onDayTouchStart)===null||B===void 0||B.call(n,t,e,U)},Y=function(U){var B;(B=n.onDayKeyUp)===null||B===void 0||B.call(n,t,e,U)},G=function(U){var B;switch(U.key){case"ArrowLeft":U.preventDefault(),U.stopPropagation(),n.dir==="rtl"?a():c();break;case"ArrowRight":U.preventDefault(),U.stopPropagation(),n.dir==="rtl"?c():a();break;case"ArrowDown":U.preventDefault(),U.stopPropagation(),d();break;case"ArrowUp":U.preventDefault(),U.stopPropagation(),p();break;case"PageUp":U.preventDefault(),U.stopPropagation(),U.shiftKey?C():w();break;case"PageDown":U.preventDefault(),U.stopPropagation(),U.shiftKey?b():E();break;case"Home":U.preventDefault(),U.stopPropagation(),S();break;case"End":U.preventDefault(),U.stopPropagation(),P();break}(B=n.onDayKeyDown)===null||B===void 0||B.call(n,t,e,U)},q={onClick:R,onFocus:z,onBlur:O,onKeyDown:G,onKeyUp:Y,onMouseEnter:F,onMouseLeave:D,onPointerEnter:I,onPointerLeave:T,onTouchCancel:k,onTouchEnd:j,onTouchMove:L,onTouchStart:V};return q}function A2e(){var t=Rn(),e=TV(),n=Db(),r=$b(),s=P5(t)?e.selected:H2(t)?n.selected:U2(t)?r.selected:void 0;return s}function I2e(t){return Object.values(jo).includes(t)}function P2e(t,e){var n=[t.classNames.day];return Object.keys(e).forEach(function(r){var s=t.modifiersClassNames[r];if(s)n.push(s);else if(I2e(r)){var i=t.classNames["day_".concat(r)];i&&n.push(i)}}),n}function R2e(t,e){var n=mt({},t.styles.day);return Object.keys(e).forEach(function(r){var s;n=mt(mt({},n),(s=t.modifiersStyles)===null||s===void 0?void 0:s[r])}),n}function N2e(t,e,n){var r,s,i,o=Rn(),a=jb(),c=b2e(t,e),d=T2e(t,c),p=A2e(),m=!!(o.onDayCl
285ick||o.mode!=="default");_.useEffect(function(){var F;c.outside||a.focusedDay&&m&&Us(a.focusedDay,t)&&((F=n.current)===null||F===void 0||F.focus())},[a.focusedDay,t,n,m,c.outside]);var v=P2e(o,c).join(" "),w=R2e(o,c),E=!!(c.outside&&!o.showOutsideDays||c.hidden),C=(i=(s=o.components)===null||s===void 0?void 0:s.DayContent)!==null&&i!==void 0?i:Z0e,b=u.jsx(C,{date:t,displayMonth:e,activeModifiers:c}),S={style:w,className:v,children:b,role:"gridcell"},P=a.focusTarget&&Us(a.focusTarget,t)&&!c.outside,R=a.focusedDay&&Us(a.focusedDay,t),z=mt(mt(mt({},S),(r={disabled:c.disabled,role:"gridcell"},r["aria-selected"]=c.selected,r.tabIndex=R||P?0:-1,r)),d),O={isButton:m,isHidden:E,activeModifiers:c,selectedDays:p,buttonProps:z,divProps:S};return O}function M2e(t){var e=_.useRef(null),n=N2e(t.date,t.displayMonth,e);return n.isHidden?u.jsx("div",{role:"gridcell"}):n.isButton?u.jsx(Qy,mt({name:"day",ref:e},n.buttonProps)):u.jsx("div",mt({},n.divProps))}function k2e(t){var e=t.number,n=t.dates,r=Rn(),s=r.onWeekNumberClick,i=r.styles,o=r.classNames,a=r.locale,c=r.labels.labelWeekNumber,d=r.formatters.formatWeekNumber,p=d(Number(e),{locale:a});if(!s)return u.jsx("span",{className:o.weeknumber,style:i.weeknumber,children:p});var m=c(Number(e),{locale:a}),v=function(w){s(e,n,w)};return u.jsx(Qy,{name:"week-number","aria-label":m,className:o.weeknumber,style:i.weeknumber,onClick:v,children:p})}function D2e(t){var e,n,r=Rn(),s=r.styles,i=r.classNames,o=r.showWeekNumber,a=r.components,c=(e=a?.Day)!==null&&e!==void 0?e:M2e,d=(n=a?.WeekNumber)!==null&&n!==void 0?n:k2e,p;return o&&(p=u.jsx("td",{className:i.cell,style:s.cell,children:u.jsx(d,{number:t.weekNumber,dates:t.dates})})),u.jsxs("tr",{className:i.row,style:s.row,children:[p,t.dates.map(function(m){return u.jsx("td",{className:i.cell,style:s.cell,role:"presentation",children:u.jsx(c,{displayMonth:t.displayMonth,date:m})},bme(m))})]})}function hN(t,e,n){for(var r=n?.ISOWeek?oV(e):Sb(e,n),s=n?.ISOWeek?Ol(t):Qs(t,n),i=ya(r,s),o=[],a=0;a<=i;a++)o.push(Gr(s,a));var c=o.reduce(function(d,p){var m=n?.ISOWeek?Tb(p):Ib(p,n),v=d.find(function(w){return w.weekNumber===m});return v?(v.dates.push(p),d):(d.push({weekNumber:m,dates:[p]}),d)},[]);return c}function O2e(t,e){var n=hN(Gs(t),bb(t),e);if(e?.useFixedWeeks){var r=Cme(t,e);if(r<6){var s=n[n.length-1],i=s.dates[s.dates.length-1],o=Ky(i,6-r),a=hN(Ky(i,1),o,e);n.push.apply(n,a)}}return n}function $2e(t){var e,n,r,s=Rn(),i=s.locale,o=s.classNames,a=s.styles,c=s.hideHead,d=s.fixedWeeks,p=s.components,m=s.weekStartsOn,v=s.firstWeekContainsDate,w=s.ISOWeek,E=O2e(t.displayMonth,{useFixedWeeks:!!d,ISOWeek:w,locale:i,weekStartsOn:m,firstWeekContainsDate:v}),C=(e=p?.Head)!==null&&e!==void 0?e:X0e,b=(n=p?.Row)!==null&&n!==void 0?n:D2e,S=(r=p?.Footer)!==null&&r!==void 0?r:K0e;return u.jsxs("table",{id:t.id,className:o.table,style:a.table,role:"grid","aria-labelledby":t["aria-labelledby"],children:[!c&&u.jsx(C,{}),u.jsx("tbody",{className:o.tbody,style:a.tbody,children:E.map(function(P){return u.jsx(b,{displayMonth:t.displayMonth,dates:P.dates,weekNumber:P.weekNumber},P.weekNumber)})}),u.jsx(S,{displayMonth:t.displayMonth})]})}function F2e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var j2e=F2e()?_.useLayoutEffect:_.useEffect,b7=!1,L2e=0;function pN(){return"react-day-picker-".concat(++L2e)}function z2e(t){var e,n=t??(b7?pN():null),r=_.useState(n),s=r[0],i=r[1];return j2e(function(){s===null&&i(pN())},[]),_.useEffect(function(){b7===!1&&(b7=!0)},[]),(e=t??s)!==null&&e!==void 0?e:void 0}function V2e(t){var e,n,r=Rn(),s=r.dir,i=r.classNames,o=r.styles,a=r.components,c=W2().displayMonths,d=z2e(r.id?"".concat(r.id,"-").concat(t.displayIndex):void 0),p=r.id?"".concat(r.id,"-grid-").concat(t.displayIndex):void 0,m=[i.month],v=o.month,w=t.displayIndex===0,E=t.displayIndex===c.length-1,C=!w&&!E;s==="rtl"&&(e=[w,E],E=e[0],w=e[1]),w&&(m.push(i.caption_start),v=mt(mt({},v),o.caption_start)),E&&(m.push(i.caption_end),v=mt(mt({},v),o.caption_end)),C&&(m.push(i.caption_between),v=mt(mt({},v),o.caption_between));var b=(n=a?.Caption)!==null&&n!==void 0?n:G0e;return u.jsxs("div",{className:m.join(" "),style:v,children:[u.jsx(b,{id:d,displayMonth:t.displayMonth,displayIndex:t.displayIndex}),u.jsx($2e,{id:p,"aria-labelledby":d,displayMonth:t.displayMonth})]},t.displayIndex)}function B2e(t){var e=Rn(),n=e.classNames,r=e.styles;return u.jsx("div",{className:n.months,style:r.months,children:t.children})}function H2e(t){var e,n,r=t.initialProps,s=Rn(),i=jb(),o=W2(),a=_.useState(!1),c=a[0],d=a[1];_.useEffect(function(){s.initialFocus&&i.focusTarget&&(c||(i.focus(i.focusTarget),d(!0)))},[s.initialFocus,c,i.focus,i.focusTarget,i]);var p=[s.classNames.root,s.className];s.numberOfMonths>1&&p.push(s.classNames.multiple_months),s.showWeekNumber&&p.push(s.classNames.with_weeknumber);var m=mt(mt({},s.styles.root),s.style),v=Object.keys(r).filter(function(E){return E.startsWith("data-")}).reduce(function(E,C){var b;return mt(mt({},E),(b={},b[C]=r[C],b))},{}),w=(n=(e=r.components)===null||e===void 0?void 0:e.Months)!==null&&n!==void 0?n:B2e;return u.jsx("div",mt({className:p.join(" "),style:m,dir:s.dir,id:s.id,nonce:r.nonce,title:r.title,lang:r.lang},v,{children:u.jsx(w,{children:o.displayMonths.map(function(E,C){return u.jsx(V2e,{displayIndex:C,displayMonth:E},C)})})}))}function U2e(t){var e=t.children,n=p0e(t,["children"]);return u.jsx(k0e,{initialProps:n,children:u.jsx(H0e,{children:u.jsx(S2e,{initialProps:n,children:u.jsx(J0e,{initialProps:n,children:u.jsx(n2e,{initialProps:n,children:u.jsx(u2e,{children:u.jsx(E2e,{children:e})})})})})})})}function W2e(t){return u.jsx(U2e,mt({},t,{children:u.jsx(H2e,{initialProps:t})}))}function Am({className:t,classNames:e,showOutsideDays:n=!0,...r}){return u.jsx(W2e,{showOutsideDays:n,className:ve("p-3",t),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:sp
285ace-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:ve(Wp({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:ve("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:ve(Wp({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...e},components:{IconLeft:({className:s,...i})=>u.jsx(oue,{className:ve("h-4 w-4",s),...i}),IconRight:({className:s,...i})=>u.jsx(lue,{className:ve("h-4 w-4",s),...i})},...r})}Am.displayName="Calendar";var q2=t=>t.type==="checkbox",Ad=t=>t instanceof Date,_s=t=>t==null;const AV=t=>typeof t=="object";var ur=t=>!_s(t)&&!Array.isArray(t)&&AV(t)&&!Ad(t),IV=t=>ur(t)&&t.target?q2(t.target)?t.target.checked:t.target.value:t,q2e=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,PV=(t,e)=>t.has(q2e(e)),G2e=t=>{const e=t.constructor&&t.constructor.prototype;return ur(e)&&e.hasOwnProperty("isPrototypeOf")},zb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ur(t){let e;const n=Array.isArray(t),r=typeof FileList<"u"?t instanceof FileList:!1;if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else if(!(zb&&(t instanceof Blob||r))&&(n||ur(t)))if(e=n?[]:{},!n&&!G2e(t))e=t;else for(const s in t)t.hasOwnProperty(s)&&(e[s]=Ur(t[s]));else return t;return e}var R5=t=>Array.isArray(t)?t.filter(Boolean):[],sr=t=>t===void 0,Oe=(t,e,n)=>{if(!e||!ur(t))return n;const r=R5(e.split(/[,[\].]+?/)).reduce((s,i)=>_s(s)?s:s[i],t);return sr(r)||r===t?sr(t[e])?n:t[e]:r},ci=t=>typeof t=="boolean",Vb=t=>/^\w*$/.test(t),RV=t=>R5(t.replace(/["|']|\]/g,"").split(/\.|\[/)),ln=(t,e,n)=>{let r=-1;const s=Vb(e)?[e]:RV(e),i=s.length,o=i-1;for(;++r<i;){const a=s[r];let c=n;if(r!==o){const d=t[a];c=ur(d)||Array.isArray(d)?d:isNaN(+s[r+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;t[a]=c,t=t[a]}};const Xy={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ao={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},il={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},NV=h.createContext(null),N5=()=>h.useContext(NV),K2e=t=>{const{children:e,...n}=t;return h.createElement(NV.Provider,{value:n},e)};var MV=(t,e,n,r=!0)=>{const s={defaultValues:e._defaultValues};for(const i in t)Object.defineProperty(s,i,{get:()=>{const o=i;return e._proxyFormState[o]!==Ao.all&&(e._proxyFormState[o]=!r||Ao.all),n&&(n[o]=!0),t[o]}});return s};const Bb=typeof window<"u"?_.useLayoutEffect:_.useEffect;function Y2e(t){const e=N5(),{control:n=e.control,disabled:r,name:s,exact:i}=t||{},[o,a]=h.useState(n._formState),c=h.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Bb(()=>n._subscribe({name:s,formState:c.current,exact:i,callback:d=>{!r&&a({...n._formState,...d})}}),[s,r,i]),h.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),h.useMemo(()=>MV(o,n,c.current,!1),[o,n])}var xa=t=>typeof t=="string",kV=(t,e,n,r,s)=>xa(t)?(r&&e.watch.add(t),Oe(n,t,s)):Array.isArray(t)?t.map(i=>(r&&e.watch.add(i),Oe(n,i))):(r&&(e.watchAll=!0),n);function Q2e(t){const e=N5(),{control:n=e.control,name:r,defaultValue:s,disabled:i,exact:o}=t||{},a=h.useRef(s),[c,d]=h.useState(n._getWatch(r,a.current));return Bb(()=>n._subscribe({name:r,formState:{values:!0},exact:o,callback:p=>!i&&d(kV(r,n._names,p.values||n._formValues,!1,a.current))}),[r,n,i,o]),h.useEffect(()=>n._removeUnmounted()),c}function X2e(t){const e=N5(),{name:n,disabled:r,control:s=e.control,shouldUnregister:i}=t,o=PV(s._names.array,n),a=Q2e({control:s,name:n,defaultValue:Oe(s._formValues,n,Oe(s._defaultValues,n,t.defaultValue)),exact:!0}),c=Y2e({control:s,name:n,exact:!0}),d=h.useRef(t),p=h.useRef(s.register(n,{...t.rules,value:a,...ci(t.disabled)?{disabled:t.disabled}:{}})),m=h.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Oe(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Oe(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Oe(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Oe(c.validatingFields,n)},error:{enumerable:!0,get:()=>Oe(c.errors,n)}}),[c,n]),v=h.useCallback(b=>p.current.onChange({target:{value:IV(b),name:n},type:Xy.CHANGE}),[n]),w=h.useCallback(()=>p.current.onBlur({target:{value:Oe(s._formValues,n),name:n},type:Xy.BLUR}),[n,s._formValues]),E=h.useCallback(b=>{const S=Oe(s._fields,n);S&&b&&(S._f.ref=b)},[s._fields,n]),C=h.useMemo(()=>({name:n,value:a,...ci(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:v,onBlur:w,ref:E}),[n,r,c.disabled,v,w,E,a]);return h.useEffect(()=>{const b=s._options.shouldUnregister||i;
vendor: 8,263 bytes, line 285
285s.register(n,{...d.current.rules,...ci(d.current.disabled)?{disabled:d.current.disabled}:{}});const S=(P,R)=>{const z=Oe(s._fields,P);z&&z._f&&(z._f.mount=R)};if(S(n,!0),b){const P=Ur(Oe(s._options.defaultValues,n));ln(s._defaultValues,n,P),sr(Oe(s._formValues,n))&&ln(s._formValues,n,P)}return!o&&s.register(n),()=>{(o?b&&!s._state.action:b)?s.unregister(n):S(n,!1)}},[n,s,o,i]),h.useEffect(()=>{s._setDisabledField({disabled:r,name:n})},[r,n,s]),h.useMemo(()=>({field:C,formState:c,fieldState:m}),[C,c,m])}const Z2e=t=>t.render(X2e(t));var DV=(t,e,n,r,s)=>e?{...n[t],types:{...n[t]&&n[t].types?n[t].types:{},[r]:s||!0}}:{},p0=t=>Array.isArray(t)?t:[t],mN=()=>{let t=[];return{get observers(){return t},next:s=>{for(const i of t)i.next&&i.next(s)},subscribe:s=>(t.push(s),{unsubscribe:()=>{t=t.filter(i=>i!==s)}}),unsubscribe:()=>{t=[]}}},A_=t=>_s(t)||!AV(t);function zc(t,e){if(A_(t)||A_(e))return t===e;if(Ad(t)&&Ad(e))return t.getTime()===e.getTime();const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const s of n){const i=t[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=e[s];if(Ad(i)&&Ad(o)||ur(i)&&ur(o)||Array.isArray(i)&&Array.isArray(o)?!zc(i,o):i!==o)return!1}}return!0}var ws=t=>ur(t)&&!Object.keys(t).length,Hb=t=>t.type==="file",Io=t=>typeof t=="function",Zy=t=>{if(!zb)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},OV=t=>t.type==="select-multiple",Ub=t=>t.type==="radio",J2e=t=>Ub(t)||q2(t),S7=t=>Zy(t)&&t.isConnected;function ege(t,e){const n=e.slice(0,-1).length;let r=0;for(;r<n;)t=sr(t)?r++:t[e[r++]];return t}function tge(t){for(const e in t)if(t.hasOwnProperty(e)&&!sr(t[e]))return!1;return!0}function _r(t,e){const n=Array.isArray(e)?e:Vb(e)?[e]:RV(e),r=n.length===1?t:ege(t,n),s=n.length-1,i=n[s];return r&&delete r[i],s!==0&&(ur(r)&&ws(r)||Array.isArray(r)&&tge(r))&&_r(t,n.slice(0,-1)),t}var $V=t=>{for(const e in t)if(Io(t[e]))return!0;return!1};function Jy(t,e={}){const n=Array.isArray(t);if(ur(t)||n)for(const r in t)Array.isArray(t[r])||ur(t[r])&&!$V(t[r])?(e[r]=Array.isArray(t[r])?[]:{},Jy(t[r],e[r])):_s(t[r])||(e[r]=!0);return e}function FV(t,e,n){const r=Array.isArray(t);if(ur(t)||r)for(const s in t)Array.isArray(t[s])||ur(t[s])&&!$V(t[s])?sr(e)||A_(n[s])?n[s]=Array.isArray(t[s])?Jy(t[s],[]):{...Jy(t[s])}:FV(t[s],_s(e)?{}:e[s],n[s]):n[s]=!zc(t[s],e[s]);return n}var O1=(t,e)=>FV(t,e,Jy(e));const gN={value:!1,isValid:!1},vN={value:!0,isValid:!0};var jV=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!sr(t[0].attributes.value)?sr(t[0].value)||t[0].value===""?vN:{value:t[0].value,isValid:!0}:vN:gN}return gN},LV=(t,{valueAsNumber:e,valueAsDate:n,setValueAs:r})=>sr(t)?t:e?t===""?NaN:t&&+t:n&&xa(t)?new Date(t):r?r(t):t;const yN={isValid:!1,value:null};var zV=t=>Array.isArray(t)?t.reduce((e,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:e,yN):yN;function xN(t){const e=t.ref;return Hb(e)?e.files:Ub(e)?zV(t.refs).value:OV(e)?[...e.selectedOptions].map(({value:n})=>n):q2(e)?jV(t.refs).value:LV(sr(e.value)?t.ref.value:e.value,t)}var nge=(t,e,n,r)=>{const s={};for(const i of t){const o=Oe(e,i);o&&ln(s,i,o._f)}return{criteriaMode:n,names:[...t],fields:s,shouldUseNativeValidation:r}},e4=t=>t instanceof RegExp,$1=t=>sr(t)?t:e4(t)?t.source:ur(t)?e4(t.value)?t.value.source:t.value:t,wN=t=>({isOnSubmit:!t||t===Ao.onSubmit,isOnBlur:t===Ao.onBlur,isOnChange:t===Ao.onChange,isOnAll:t===Ao.all,isOnTouch:t===Ao.onTouched});const _N="AsyncFunction";var rge=t=>!!t&&!!t.validate&&!!(Io(t.validate)&&t.validate.constructor.name===_N||ur(t.validate)&&Object.values(t.validate).find(e=>e.constructor.name===_N)),sge=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate),EN=(t,e,n)=>!n&&(e.watchAll||e.watch.has(t)||[...e.watch].some(r=>t.startsWith(r)&&/^\.\w+/.test(t.slice(r.length))));const m0=(t,e,n,r)=>{for(const s of n||Object.keys(t)){const i=Oe(t,s);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&e(o.refs[0],s)&&!r)return!0;if(o.ref&&e(o.ref,o.name)&&!r)return!0;if(m0(a,e))break}else if(ur(a)&&m0(a,e))break}}};function bN(t,e,n){const r=Oe(t,n);if(r||Vb(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=Oe(e,i),a=Oe(t,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};s.pop()}return{name:n}}var ige=(t,e,n,r)=>{n(t);const{name:s,...i}=t;return ws(i)||Object.keys(i).length>=Object.keys(e).length||Object.keys(i).find(o=>e[o]===(!r||Ao.all))},oge=(t,e,n)=>!t||!e||t===e||p0(t).some(r=>r&&(n?r===e:r.startsWith(e)||e.startsWith(r))),age=(t,e,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(e||t):(n?r.isOnBlur:s.isOnBlur)?!t:(n?r.isOnChange:s.isOnChange)?t:!0,lge=(t,e)=>!R5(Oe(t,e)).length&&_r(t,e),cge=(t,e,n)=>{const r=p0(Oe(t,n));return ln(r,"root",e[n]),ln(t,n,r),t},Y3=t=>xa(t);function SN(t,e,n="validate"){if(Y3(t)||Array.isArray(t)&&t.every(Y3)||ci(t)&&!t)return{type:n,message:Y3(t)?t:"",ref:e}}var kh=t=>ur(t)&&!e4(t)?t:{value:t,message:""},CN=async(t,e,n,r,s,i)=>{const{ref:o,refs:a,required:c,maxLength:d,minLength:p,min:m,max:v,pattern:w,validate:E,name:C,valueAsNumber:b,mount:S}=t._f,P=Oe(n,C);if(!S||e.has(C))return{};const R=a?a[0]:o,z=L=>{s&&R.reportValidity&&(R.setCustomValidity(ci(L)?"":L||""),R.reportValidity())},O={},F=Ub(o),D=q2(o),I=F||D,T=(b||Hb(o))&&sr(o.value)&&sr(P)||Zy(o)&&o.value===""||P===""||Array.isArray(P)&&!P.length,k=DV.bind(null,C,r,O),j=(L,V,Y,G=il.maxLength,q=il.minLength)=>{const U=L?V:Y;O[C]={type:L?G:q,message:U,ref:o,...k(L?G:q,U)}};if(i?!Array.isArray(P)||!P.length:c&&(!I&&(T||_s(P))||ci(P)&&!P||D&&!jV(a).isValid||F&&!zV(a).isValid)){const{value:L,message:V}=Y3(c)?{value:!!c,message:c}:kh(c);if(L&&(O[C]={type:il.required,message:V,ref:R,...k(il.required,V)},!r))return z(V),O}if(!T&&(!_s(m)||!_s(v))){let L,V;const Y=kh(v),G=kh(m);if(!_s(P)&&!isNaN(P)){const q=o.valueAsNumber||P&&+P;_s(Y.value)||(L=q>Y.value),_s(G.value)||(V=q<G.value)}else{const q=o.valueAsDate||new Date(P),U=oe=>new Date(new Date().toDateString()+" "+oe),B=o.type=="time",ne=o.type=="week";xa(Y.value)&&P&&(L=B?U(P)>U(Y.value):ne?P>Y.value:q>new Date(Y.value)),xa(G.value)&&P&&(V=B?U(P)<U(G.value):ne?P<G.value:q<new Date(G.value))}if((L||V)&&(j(!!L,Y.message,G.message,il.max,il.min),!r))return z(O[C].message),O}if((d||p)&&!T&&(xa(P)||i&&Array.isArray(P))){const L=kh(d),V=kh(p),Y=!_s(L.value)&&P.length>+L.value,G=!_s(V.value)&&P.length<+V.value;if((Y||G)&&(j(Y,L.message,V.message),!r))return z(O[C].message),O}if(w&&!T&&xa(P)){const{value:L,message:V}=kh(w);if(e4(L)&&!P.match(L)&&(O[C]={type:il.pattern,message:V,ref:o,...k(il.pattern,V)},!r))return z(V),O}if(E){if(Io(E)){const L=await E(P,n),V=SN(L,R);if(V&&(O[C]={...V,...k(il.validate,V.message)},!r))return z(V.message),O}else if(ur(E)){let L={};for(const V in E){if(!ws(L)&&!r)break;const Y=SN(await E[V](P,n),R,V);Y&&(L={...Y,...k(V,Y.message)},z(Y.message),r&&(O[C]=L))}if(!ws(L)&&(O[C]={ref:R,...L},!r))return O}}return z(!0),O};const uge={mode:Ao.onSubmit,reValidateMode:Ao.onChange,shouldFocusError:!0};function dge(t={}){let e={...uge,...t},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Io(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1};const r={};let s=ur(e.defaultValues)||ur(e.values)?Ur(e.defaultValues||e.values)||{}:{},i=e.shouldUnregister?{}:Ur(s),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let m={...p};const v={array:mN(),state:mN()},w=wN(e.mode),E=wN(e.reValidateMode),C=e.criteriaMode===Ao.all,b=K=>se=>{clearTimeout(d),d=setTimeout(K,se)},S=async K=>{if(!e.disabled&&(p.isValid||m.isValid||K)){const se=e.resolver?ws((await T()).errors):await j(r,!0);se!==n.isValid&&v.state.next({isValid:se})}},P=(K,se)=>{!e.disabled&&(p.isValidating||p.validatingFields||m.isValidating||m.validatingFields)&&((K||Array.from(a.mount)).forEac
vendor: 12,406 bytes, line 285
285h(ce=>{ce&&(se?ln(n.validatingFields,ce,se):_r(n.validatingFields,ce))}),v.state.next({validatingFields:n.validatingFields,isValidating:!ws(n.validatingFields)}))},R=(K,se=[],ce,Me,be=!0,we=!0)=>{if(Me&&ce&&!e.disabled){if(o.action=!0,we&&Array.isArray(Oe(r,K))){const je=ce(Oe(r,K),Me.argA,Me.argB);be&&ln(r,K,je)}if(we&&Array.isArray(Oe(n.errors,K))){const je=ce(Oe(n.errors,K),Me.argA,Me.argB);be&&ln(n.errors,K,je),lge(n.errors,K)}if((p.touchedFields||m.touchedFields)&&we&&Array.isArray(Oe(n.touchedFields,K))){const je=ce(Oe(n.touchedFields,K),Me.argA,Me.argB);be&&ln(n.touchedFields,K,je)}(p.dirtyFields||m.dirtyFields)&&(n.dirtyFields=O1(s,i)),v.state.next({name:K,isDirty:V(K,se),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ln(i,K,se)},z=(K,se)=>{ln(n.errors,K,se),v.state.next({errors:n.errors})},O=K=>{n.errors=K,v.state.next({errors:n.errors,isValid:!1})},F=(K,se,ce,Me)=>{const be=Oe(r,K);if(be){const we=Oe(i,K,sr(ce)?Oe(s,K):ce);sr(we)||Me&&Me.defaultChecked||se?ln(i,K,se?we:xN(be._f)):q(K,we),o.mount&&S()}},D=(K,se,ce,Me,be)=>{let we=!1,je=!1;const zt={name:K};if(!e.disabled){if(!ce||Me){(p.isDirty||m.isDirty)&&(je=n.isDirty,n.isDirty=zt.isDirty=V(),we=je!==zt.isDirty);const hn=zc(Oe(s,K),se);je=!!Oe(n.dirtyFields,K),hn?_r(n.dirtyFields,K):ln(n.dirtyFields,K,!0),zt.dirtyFields=n.dirtyFields,we=we||(p.dirtyFields||m.dirtyFields)&&je!==!hn}if(ce){const hn=Oe(n.touchedFields,K);hn||(ln(n.touchedFields,K,ce),zt.touchedFields=n.touchedFields,we=we||(p.touchedFields||m.touchedFields)&&hn!==ce)}we&&be&&v.state.next(zt)}return we?zt:{}},I=(K,se,ce,Me)=>{const be=Oe(n.errors,K),we=(p.isValid||m.isValid)&&ci(se)&&n.isValid!==se;if(e.delayError&&ce?(c=b(()=>z(K,ce)),c(e.delayError)):(clearTimeout(d),c=null,ce?ln(n.errors,K,ce):_r(n.errors,K)),(ce?!zc(be,ce):be)||!ws(Me)||we){const je={...Me,...we&&ci(se)?{isValid:se}:{},errors:n.errors,name:K};n={...n,...je},v.state.next(je)}},T=async K=>{P(K,!0);const se=await e.resolver(i,e.context,nge(K||a.mount,r,e.criteriaMode,e.shouldUseNativeValidation));return P(K),se},k=async K=>{const{errors:se}=await T(K);if(K)for(const ce of K){const Me=Oe(se,ce);Me?ln(n.errors,ce,Me):_r(n.errors,ce)}else n.errors=se;return se},j=async(K,se,ce={valid:!0})=>{for(const Me in K){const be=K[Me];if(be){const{_f:we,...je}=be;if(we){const zt=a.array.has(we.name),hn=be._f&&rge(be._f);hn&&p.validatingFields&&P([Me],!0);const kn=await CN(be,a.disabled,i,C,e.shouldUseNativeValidation&&!se,zt);if(hn&&p.validatingFields&&P([Me]),kn[we.name]&&(ce.valid=!1,se))break;!se&&(Oe(kn,we.name)?zt?cge(n.errors,kn,we.name):ln(n.errors,we.name,kn[we.name]):_r(n.errors,we.name))}!ws(je)&&await j(je,se,ce)}}return ce.valid},L=()=>{for(const K of a.unMount){const se=Oe(r,K);se&&(se._f.refs?se._f.refs.every(ce=>!S7(ce)):!S7(se._f.ref))&&Ne(K)}a.unMount=new Set},V=(K,se)=>!e.disabled&&(K&&se&&ln(i,K,se),!zc(ie(),s)),Y=(K,se,ce)=>kV(K,a,{...o.mount?i:sr(se)?s:xa(K)?{[K]:se}:se},ce,se),G=K=>R5(Oe(o.mount?i:s,K,e.shouldUnregister?Oe(s,K,[]):[])),q=(K,se,ce={})=>{const Me=Oe(r,K);let be=se;if(Me){const we=Me._f;we&&(!we.disabled&&ln(i,K,LV(se,we)),be=Zy(we.ref)&&_s(se)?"":se,OV(we.ref)?[...we.ref.options].forEach(je=>je.selected=be.includes(je.value)):we.refs?q2(we.ref)?we.refs.length>1?we.refs.forEach(je=>(!je.defaultChecked||!je.disabled)&&(je.checked=Array.isArray(be)?!!be.find(zt=>zt===je.value):be===je.value)):we.refs[0]&&(we.refs[0].checked=!!be):we.refs.forEach(je=>je.checked=je.value===be):Hb(we.ref)?we.ref.value="":(we.ref.value=be,we.ref.type||v.state.next({name:K,values:Ur(i)})))}(ce.shouldDirty||ce.shouldTouch)&&D(K,be,ce.shouldTouch,ce.shouldDirty,!0),ce.shouldValidate&&Q(K)},U=(K,se,ce)=>{for(const Me in se){const be=se[Me],we=`${K}.${Me}`,je=Oe(r,we);(a.array.has(K)||ur(be)||je&&!je._f)&&!Ad(be)?U(we,be,ce):q(we,be,ce)}},B=(K,se,ce={})=>{const Me=Oe(r,K),be=a.array.has(K),we=Ur(se);ln(i,K,we),be?(v.array.next({name:K,values:Ur(i)}),(p.isDirty||p.dirtyFields||m.isDirty||m.dirtyFields)&&ce.shouldDirty&&v.state.next({name:K,dirtyFields:O1(s,i),isDirty:V(K,we)})):Me&&!Me._f&&!_s(we)?U(K,we,ce):q(K,we,ce),EN(K,a)&&v.state.next({...n}),v.state.next({name:o.mount?K:void 0,values:Ur(i)})},ne=async K=>{o.mount=!0;const se=K.target;let ce=se.name,Me=!0;const be=Oe(r,ce),we=je=>{Me=Number.isNaN(je)||Ad(je)&&isNaN(je.getTime())||zc(je,Oe(i,ce,je))};if(be){let je,zt;const hn=se.type?xN(be._f):IV(K),kn=K.type===Xy.BLUR||K.type===Xy.FOCUS_OUT,za=!sge(be._f)&&!e.resolver&&!Oe(n.errors,ce)&&!be._f.deps||age(kn,Oe(n.touchedFields,ce),n.isSubmitted,E,w),Va=EN(ce,a,kn);ln(i,ce,hn),kn?(be._f.onBlur&&be._f.onBlur(K),c&&c(0)):be._f.onChange&&be._f.onChange(K);const Ba=D(ce,hn,kn),Bu=!ws(Ba)||Va;if(!kn&&v.state.next({name:ce,type:K.type,values:Ur(i)}),za)return(p.isValid||m.isValid)&&(e.mode==="onBlur"?kn&&S():kn||S()),Bu&&v.state.next({name:ce,...Va?{}:Ba});if(!kn&&Va&&v.state.next({...n}),e.resolver){const{errors:nc}=await T([ce]);if(we(hn),Me){const Hu=bN(n.errors,r,ce),Go=bN(nc,r,Hu.name||ce);je=Go.error,ce=Go.name,zt=ws(nc)}}else P([ce],!0),je=(await CN(be,a.disabled,i,C,e.shouldUseNativeValidation))[ce],P([ce]),we(hn),Me&&(je?zt=!1:(p.isValid||m.isValid)&&(zt=await j(r,!0)));Me&&(be._f.deps&&Q(be._f.deps),I(ce,zt,je,Ba))}},oe=(K,se)=>{if(Oe(n.errors,se)&&K.focus)return K.focus(),1},Q=async(K,se={})=>{let ce,Me;const be=p0(K);if(e.resolver){const we=await k(sr(K)?K:be);ce=ws(we),Me=K?!be.some(je=>Oe(we,je)):ce}else K?(Me=(await Promise.all(be.map(async we=>{const je=Oe(r,we);return await j(je&&je._f?{[we]:je}:je)}))).every(Boolean),!(!Me&&!n.isValid)&&S()):Me=ce=await j(r);return v.state.next({...!xa(K)||(p.isValid||m.isValid)&&ce!==n.isValid?{}:{name:K},...e.resolver||!K?{isValid:ce}:{},errors:n.errors}),se.shouldFocus&&!Me&&m0(r,oe,K?be:a.mount),Me},ie=K=>{const se={...o.mount?i:s};return sr(K)?se:xa(K)?Oe(se,K):K.map(ce=>Oe(se,ce))},ue=(K,se)=>({invalid:!!Oe((se||n).errors,K),isDirty:!!Oe((se||n).dirtyFields,K),error:Oe((se||n).errors,K),isValidating:!!Oe(n.validatingFields,K),isTouched:!!Oe((se||n).touchedFields,K)}),ge=K=>{K&&p0(K).forEach(se=>_r(n.errors,se)),v.state.next({errors:K?n.errors:{}})},Ae=(K,se,ce)=>{const Me=(Oe(r,K,{_f:{}})._f||{}).ref,be=Oe(n.errors,K)||{},{ref:we,message:je,type:zt,...hn}=be;ln(n.errors,K,{...hn,...se,ref:Me}),v.state.next({name:K,errors:n.errors,isValid:!1}),ce&&ce.shouldFocus&&Me&&Me.focus&&Me.focus()},Pe=(K,se)=>Io(K)?v.state.subscribe({next:ce=>K(Y(void 0,se),ce)}):Y(K,se,!0),he=K=>v.state.subscribe({next:se=>{oge(K.name,se.name,K.exact)&&ige(se,K.formState||p,Lr,K.reRenderRoot)&&K.callback({values:{...i},...n,...se})}}).unsubscribe,xe=K=>(o.mount=!0,m={...m,...K.formState},he({...K,formState:m})),Ne=(K,se={})=>{for(const ce of K?p0(K):a.mount)a.mount.delete(ce),a.array.delete(ce),se.keepValue||(_r(r,ce),_r(i,ce)),!se.keepError&&_r(n.errors,ce),!se.keepDirty&&_r(n.dirtyFields,ce),!se.keepTouched&&_r(n.touchedFields,ce),!se.keepIsValidating&&_r(n.validatingFields,ce),!e.shouldUnregister&&!se.keepDefaultValue&&_r(s,ce);v.state.next({values:Ur(i)}),v.state.next({...n,...se.keepDirty?{isDirty:V()}:{}}),!se.keepIsValid&&S()},ze=({disabled:K,name:se})=>{(ci(K)&&o.mount||K||a.disabled.has(se))&&(K?a.disabled.add(se):a.disabled.delete(se))},Ze=(K,se={})=>{let ce=Oe(r,K);const Me=ci(se.disabled)||ci(e.disabled);return ln(r,K,{...ce||{},_f:{...ce&&ce._f?ce._f:{ref:{name:K}},name:K,mount:!0,...se}}),a.mount.add(K),ce?ze({disabled:ci(se.disabled)?se.disabled:e.disabled,name:K}):F(K,!0,se.value),{...Me?{disabled:se.disabled||e.disabled}:{},...e.progressive?{required:!!se.required,min:$1(se.min),max:$1(se.max),minLength:$1(se.minLength),maxLength:$1(se.maxLength),pattern:$1(se.pattern)}:{},name:K,onChange:ne,onBlur:ne,ref:be=>{if(be){Ze(K,se),ce=Oe(r,K);const we=sr(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,je=J2e(we),zt=ce._f.refs||[];if(je?zt.find(hn=>hn===we):we===ce._f.ref)return;ln(r,K,{_f:{...ce._f,...je?{refs:[...zt.filter(S7),we,...Array.isArray(Oe(s,K))?[{}]:[]],ref:{type:we.type,name:K}}:{ref:we}}}),F(K,!1,void 0,we)}else ce=Oe(r,K,{}),ce._f&&(ce._f.mount=!1),(e.shouldUnregister||se.shouldUnregister)&&!(PV(a.array,K)&&o.action)&&a.unMount.add(K)}}},ut=()=>e.shouldFocusError&&m0(r,oe,a.mount),Pt=K=>{ci(K)&&(v.state.next({disabled:K}),m0(r,(se,ce)=>{const Me=Oe(r,ce);Me&&(se.disabled=Me._f.disabled||K,Array.isArray(Me._f.refs)&&Me._f.refs.forEach(be=>{be.disabled=Me._f.disabled||K}))},0,!1))},Rt=(K,se)=>async ce=>{let Me;ce&&(ce.preventDefault&&ce.preventDefault(),ce.persist&&ce.persist());let be=Ur(i);if(v.state.next({isSubmitting:!0}),e.resolver){const{errors:we,values:je}=await T();n.errors=we,be=je}else await j(r);if(a.disabled.size)for(const we of a.disabled)ln(be,we,void 0);if(_r(n.errors,"root"),ws(n.errors)){v.state.next({errors:{}});try{await K(be,ce)}catch(we){Me=we}}else se&&await se({...n.errors},ce),ut(),setTimeout(ut);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ws(n.errors)&&!Me,submitCount:n.submitCount+1,errors:n.errors}),Me)throw Me},Tt=(K,se={})=>{Oe(r,K)&&(sr(se.defaultValue)?B(K,Ur(Oe(s,K))):(B(K,se.defaultValue),ln(s,K,Ur(se.defaultValue))),se.keepTouched||_r(n.touchedFields,K),se.keepDirty||(_r(n.dirtyFields,K),n.isDirty=se.defaultValue?V(K,Ur(Oe(s,K))):V()),se.keepError||(_r(n.errors,K),p.isValid&&S()),v.state.next({...n}))},on=(K,se={})=>{const ce=K?Ur(K):s,Me=Ur(ce),be=ws(K),we=be?s:Me;if(se.keepDefaultValues||(s=ce),!se.keepValues){if(se.keepDirtyValues){const je=new Set([...a.mount,...Object.keys(O1(s,i))]);for(const zt of Array.from(je))Oe(n.dirtyFields,zt)?ln(we,zt,Oe(i,zt)):B(zt,Oe(we,zt))}else{if(zb&&sr(K))for(const je of a.mount){const zt=Oe(r,je);if(zt&&zt._f){const hn=Array.isArray(zt._f.refs)?zt._f.refs[0]:zt._f.ref;if(Zy(hn)){const kn=hn.closest("form");if(kn){kn.reset();break}}}}for(const je of a.mount)B(je,Oe(we,je))}i=Ur(we),v.array.next({values:{...we}}),v.state.next({values:{...we}})}a={mount:se.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!p.isValid||!!se.keepIsValid||!!se.keepDirtyValues,o.watch=!!e.shouldUnregister,v.state.next({submitCount:se.keepSubmitCount?n.submitCount:0,isDirty:be?!1:se.keepDirty?n.isDirty:!!(se.keepDefaultValues&&!zc(K,s)),isSubmitted:se.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:be?{}:se.keepDirtyValues?se.keepDefaultValues&&i?O1(s,i):n.dirtyFields:se.keepDefaultValues&&K?O1(s,K):se.keepDirty?n.dirtyFields:{},touchedFields:se.keepTouched?n.touchedFields:{},errors:se.keepErrors?n.errors:{},isSubmitSuccessful:se.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Xt=(K,se)=>on(Io(K)?K(i):K,se),Pr=(K,se={})=>{const ce=Oe(r,K),Me=ce&&ce._f;if(Me){const be=Me.refs?Me.refs[0]:Me.ref;be.focus&&(be.focus(),se.shouldSelect&&Io(be.select)&&be.select())}},Lr=K=>{n={...n,...K}},nt={control:{register:Ze,unregister:Ne,getFieldState:ue,handleSubmit:Rt,setError:Ae,_subscribe:he,_runSchema:T,_getWatch:Y,_getDirty:V,_setValid:S,_setFieldArray:R,_setDisabledField:ze,_setErrors:O,_getFieldArray:G,_reset:on,_resetDefaultValues:()=>Io(e.defaultValues)&&e.defaultValues().then(K=>{Xt(K,e.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:L,_disableForm:Pt,_subjects:v,_proxyFormState:p,get _fields(){return r},get _formValues(){return i},get _state(){return o},set _state(K){o=K},get _defaultValues(){return s},get _names(){return a},set _names(K){a=K},get _formState(){return n},get _options(){return e},set _options(K){e={...e,...K}}},subscribe:xe,trigger:Q,register:Ze,handleSubmit:Rt,watch:Pe,setValue:B,getValues:ie,reset:Xt,resetField:Tt,clearErrors:ge,unregister:Ne,setError:Ae,setFocus:Pr,getFieldState:ue};return{...nt,formControl:nt}}function xi(t={}){const e=h.useRef(void 0),n=h.useRef(void 0),[r,s]=h.useState({isDirty:!1,isValidating:!1,isLoading:Io(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1,isReady:!1,defaultValues:Io(t.defaultValues)?void 0:t.defaultValues});e.current||(e.current={...t.formControl?t.formControl:dge(t),formState:r},t.formControl&&t.defaultValues&&!Io(t.defaultValues)&&t.formControl.reset(t.defaultValues,t.resetOptions));const i=e.current.control;return i._options=t,Bb(()=>{const o=i._subscribe({formState:i._proxyFormState,callback:()=>s({...i._formState}
285),reRenderRoot:!0});return s(a=>({...a,isReady:!0})),i._formState.isReady=!0,o},[i]),h.useEffect(()=>i._disableForm(t.disabled),[i,t.disabled]),h.useEffect(()=>{t.mode&&(i._options.mode=t.mode),t.reValidateMode&&(i._options.reValidateMode=t.reValidateMode),t.errors&&!ws(t.errors)&&i._setErrors(t.errors)},[i,t.errors,t.mode,t.reValidateMode]),h.useEffect(()=>{t.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,t.shouldUnregister]),h.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),h.useEffect(()=>{t.values&&!zc(t.values,n.current)?(i._reset(t.values,i._options.resetOptions),n.current=t.values,s(o=>({...o}))):i._resetDefaultValues()},[i,t.values]),h.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),e.current.formState=MV(r,i),e.current}const wi=K2e,VV=_.createContext({}),cn=({...t})=>u.jsx(VV.Provider,{value:{name:t.name},children:u.jsx(Z2e,{...t})}),M5=()=>{const t=_.useContext(VV),e=_.useContext(BV),{getFieldState:n,formState:r}=N5(),s=n(t.name,r);if(!t)throw new Error("useFormField should be used within <FormField>");const{id:i}=e;return{id:i,name:t.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},BV=_.createContext({}),un=_.forwardRef(({className:t,...e},n)=>{const r=_.useId();return u.jsx(BV.Provider,{value:{id:r},children:u.jsx("div",{ref:n,className:ve("space-y-2",t),...e})})});un.displayName="FormItem";const gn=_.forwardRef(({className:t,...e},n)=>{const{error:r,formItemId:s}=M5();return u.jsx(Qn,{ref:n,className:ve(r&&"text-destructive",t),htmlFor:s,...e})});gn.displayName="FormLabel";const En=_.forwardRef(({...t},e)=>{const{error:n,formItemId:r,formDescriptionId:s,formMessageId:i}=M5();return u.jsx(hL,{ref:e,id:r,"aria-describedby":n?`${s} ${i}`:`${s}`,"aria-invalid":!!n,...t})});En.displayName="FormControl";const Ra=_.forwardRef(({className:t,...e},n)=>{const{formDescriptionId:r}=M5();return u.jsx("p",{ref:n,id:r,className:ve("text-[0.8rem] text-muted-foreground",t),...e})});Ra.displayName="FormDescription";const Ot=_.forwardRef(({className:t,children:e,...n},r)=>{const{error:s,formMessageId:i}=M5(),o=s?String(s?.message??""):e;return o?u.jsx("p",{ref:r,id:i,className:ve("text-[0.8rem] font-medium text-destructive",t),...n,children:o}):null});Ot.displayName="FormMessage";const fge=["top","right","bottom","left"],mu=Math.min,ui=Math.max,t4=Math.round,d3=Math.floor,wa=t=>({x:t,y:t}),hge={left:"right",right:"left",bottom:"top",top:"bottom"},pge={start:"end",end:"start"};function I_(t,e,n){return ui(t,mu(e,n))}function $l(t,e){return typeof t=="function"?t(e):t}function Fl(t){return t.split("-")[0]}function Im(t){return t.split("-")[1]}function Wb(t){return t==="x"?"y":"x"}function qb(t){return t==="y"?"height":"width"}function Sl(t){return["top","bottom"].includes(Fl(t))?"y":"x"}function Gb(t){return Wb(Sl(t))}function mge(t,e,n){n===void 0&&(n=!1);const r=Im(t),s=Gb(t),i=qb(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=n4(o)),[o,n4(o)]}function gge(t){const e=n4(t);return[P_(t),e,P_(e)]}function P_(t){return t.replace(/start|end/g,e=>pge[e])}function vge(t,e,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return n?e?s:r:e?r:s;case"left":case"right":return e?i:o;default:return[]}}function yge(t,e,n,r){const s=Im(t);let i=vge(Fl(t),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(P_)))),i}function n4(t){return t.replace(/left|right|bottom|top/g,e=>hge[e])}function xge(t){return{top:0,right:0,bottom:0,left:0,...t}}function HV(t){return typeof t!="number"?xge(t):{top:t,right:t,bottom:t,left:t}}function r4(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function TN(t,e,n){let{reference:r,floating:s}=t;const i=Sl(e),o=Gb(e),a=qb(o),c=Fl(e),d=i==="y",p=r.x+r.width/2-s.width/2,m=r.y+r.height/2-s.height/2,v=r[a]
vendor: 10,303 bytes, line 285
285/2-s[a]/2;let w;switch(c){case"top":w={x:p,y:r.y-s.height};break;case"bottom":w={x:p,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:m};break;case"left":w={x:r.x-s.width,y:m};break;default:w={x:r.x,y:r.y}}switch(Im(e)){case"start":w[o]-=v*(n&&d?-1:1);break;case"end":w[o]+=v*(n&&d?-1:1);break}return w}const wge=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let d=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:p,y:m}=TN(d,r,c),v=r,w={},E=0;for(let C=0;C<a.length;C++){const{name:b,fn:S}=a[C],{x:P,y:R,data:z,reset:O}=await S({x:p,y:m,initialPlacement:r,placement:v,strategy:s,middlewareData:w,rects:d,platform:o,elements:{reference:t,floating:e}});p=P??p,m=R??m,w={...w,[b]:{...w[b],...z}},O&&E<=50&&(E++,typeof O=="object"&&(O.placement&&(v=O.placement),O.rects&&(d=O.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):O.rects),{x:p,y:m}=TN(d,v,c)),C=-1)}return{x:p,y:m,placement:v,strategy:s,middlewareData:w}};async function F0(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:c}=t,{boundary:d="clippingAncestors",rootBoundary:p="viewport",elementContext:m="floating",altBoundary:v=!1,padding:w=0}=$l(e,t),E=HV(w),b=a[v?m==="floating"?"reference":"floating":m],S=r4(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(a.floating)),boundary:d,rootBoundary:p,strategy:c})),P=m==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),z=await(i.isElement==null?void 0:i.isElement(R))?await(i.getScale==null?void 0:i.getScale(R))||{x:1,y:1}:{x:1,y:1},O=r4(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:R,strategy:c}):P);return{top:(S.top-O.top+E.top)/z.y,bottom:(O.bottom-S.bottom+E.bottom)/z.y,left:(S.left-O.left+E.left)/z.x,right:(O.right-S.right+E.right)/z.x}}const _ge=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:d,padding:p=0}=$l(t,e)||{};if(d==null)return{};const m=HV(p),v={x:n,y:r},w=Gb(s),E=qb(w),C=await o.getDimensions(d),b=w==="y",S=b?"top":"left",P=b?"bottom":"right",R=b?"clientHeight":"clientWidth",z=i.reference[E]+i.reference[w]-v[w]-i.floating[E],O=v[w]-i.reference[w],F=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let D=F?F[R]:0;(!D||!await(o.isElement==null?void 0:o.isElement(F)))&&(D=a.floating[R]||i.floating[E]);const I=z/2-O/2,T=D/2-C[E]/2-1,k=mu(m[S],T),j=mu(m[P],T),L=k,V=D-C[E]-j,Y=D/2-C[E]/2+I,G=I_(L,Y,V),q=!c.arrow&&Im(s)!=null&&Y!==G&&i.reference[E]/2-(Y<L?k:j)-C[E]/2<0,U=q?Y<L?Y-L:Y-V:0;return{[w]:v[w]+U,data:{[w]:G,centerOffset:Y-G-U,...q&&{alignmentOffset:U}},reset:q}}}),Ege=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:c,elements:d}=e,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:C=!0,...b}=$l(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const S=Fl(s),P=Sl(a),R=Fl(a)===a,z=await(c.isRTL==null?void 0:c.isRTL(d.floating)),O=v||(R||!C?[n4(a)]:gge(a)),F=E!=="none";!v&&F&&O.push(...yge(a,C,E,z));const D=[a,...O],I=await F0(e,b),T=[];let k=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&T.push(I[S]),m){const G=mge(s,o,z);T.push(I[G[0]],I[G[1]])}if(k=[...k,{placement:s,overflows:T}],!T.every(G=>G<=0)){var j,L;const G=(((j=i.flip)==null?void 0:j.index)||0)+1,q=D[G];if(q){var V;const B=m==="alignment"?P!==Sl(q):!1,ne=((V=k[0])==null?void 0:V.overflows[0])>0;if(!B||ne)return{data:{index:G,overflows:k},reset:{placement:q}}}let U=(L=k.filter(B=>B.overflows[0]<=0).sort((B,ne)=>B.overflows[1]-ne.overflows[1])[0])==null?void 0:L.placement;if(!U)switch(w){case"bestFit":{var Y;const B=(Y=k.filter(ne=>{if(F){const oe=Sl(ne.placement);return oe===P||oe==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(oe=>oe>0).reduce((oe,Q)=>oe+Q,0)]).sort((ne,oe)=>ne[1]-oe[1])[0])==null?void 0:Y[0];B&&(U=B);break}case"initialPlacement":U=a;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function AN(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function IN(t){return fge.some(e=>t[e]>=0)}const bge=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...s}=$l(t,e);switch(r){case"referenceHidden":{const i=await F0(e,{...s,elementContext:"reference"}),o=AN(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:IN(o)}}}case"escaped":{const i=await F0(e,{...s,altBoundary:!0}),o=AN(i,n.floating);return{data:{escapedOffsets:o,escaped:IN(o)}}}default:return{}}}}};async function Sge(t,e){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Fl(n),a=Im(n),c=Sl(n)==="y",d=["left","top"].includes(o)?-1:1,p=i&&c?-1:1,m=$l(e,t);let{mainAxis:v,crossAxis:w,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&typeof E=="number"&&(w=a==="end"?E*-1:E),c?{x:w*p,y:v*d}:{x:v*d,y:w*p}}const Cge=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=e,c=await Sge(e,t);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},Tge=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:S,y:P}=b;return{x:S,y:P}}},...c}=$l(t,e),d={x:n,y:r},p=await F0(e,c),m=Sl(Fl(s)),v=Wb(m);let w=d[v],E=d[m];if(i){const b=v==="y"?"top":"left",S=v==="y"?"bottom":"right",P=w+p[b],R=w-p[S];w=I_(P,w,R)}if(o){const b=m==="y"?"top":"left",S=m==="y"?"bottom":"right",P=E+p[b],R=E-p[S];E=I_(P,E,R)}const C=a.fn({...e,[v]:w,[m]:E});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[v]:i,[m]:o}}}}}},Age=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:d=!0}=$l(t,e),p={x:n,y:r},m=Sl(s),v=Wb(m);let w=p[v],E=p[m];const C=$l(a,e),b=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(c){const R=v==="y"?"height":"width",z=i.reference[v]-i.floating[R]+b.mainAxis,O=i.reference[v]+i.reference[R]-b.mainAxis;w<z?w=z:w>O&&(w=O)}if(d){var S,P;const R=v==="y"?"width":"height",z=["top","left"].includes(Fl(s)),O=i.reference[m]-i.floating[R]+(z&&((S=o.offset)==null?void 0:S[m])||0)+(z?0:b.crossAxis),F=i.reference[m]+i.reference[R]+(z?0:((P=o.offset)==null?void 0:P[m])||0)-(z?b.crossAxis:0);E<O?E=O:E>F&&(E=F)}return{[v]:w,[m]:E}}}},Ige=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:s,rects:i,platform:o,elements:a}=e,{apply:c=()=>{},...d}=$l(t,e),p=await F0(e,d),m=Fl(s),v=Im(s),w=Sl(s)==="y",{width:E,height:C}=i.floating;let b,S;m==="top"||m==="bottom"?(b=m,S=v===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(S=m,b=v==="end"?"top":"bottom");const P=C-p.top-p.bottom,R=E-p.left-p.right,z=mu(C-p[b],P),O=mu(E-p[S],R),F=!e.middlewareData.shift;let D=z,I=O;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(I=R),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(D=P),F&&!v){const k=ui(p.left,0),j=ui(p.right,0),L=ui(p.top,0),V=ui(p.bottom,0);w?I=E-2*(k!==0||j!==0?k+j:ui(p.left,p.right)):D=C-2*(L!==0||V!==0?L+V:ui(p.top,p.bottom))}await c({...e,availableWidth:I,availableHeight:D});const T=await o.getDimensions(a.floating);return E!==T.width||C!==T.height?{reset:{rects:!0}}:{}}}};function k5(){return typeof window<"u"}function Pm(t){return UV(t)?(t.nodeName||"").toLowerCase():"#document"}function pi(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function $a(t){var e;return(e=(UV(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function UV(t){return k5()?t instanceof Node||t instanceof pi(t).Node:!1}function Lo(t){return k5()?t instanceof Element||t instanceof pi(t).Element:!1}function Na(t){return k5()?t instanceof HTMLElement||t instanceof pi(t).HTMLElement:!1}function PN(t){return!k5()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof pi(t).ShadowRoot}function G2(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=zo(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(s)}function Pge(t){return["table","td","th"].includes(Pm(t))}function D5(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Kb(t){const e=Yb(),n=Lo(t)?zo(t):t;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Rge(t){let e=gu(t);for(;Na(e)&&!Yp(e);){if(Kb(e))return e;if(D5(e))return null;e=gu(e)}return null}function Yb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Yp(t){return["html","body","#document"].includes(Pm(t))}function zo(t){return pi(t).getComputedStyle(t)}function O5(t){return Lo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function gu(t){if(Pm(t)==="html")return t;const e=t.assignedSlot||t.parentNode||PN(t)&&t.host||$a(t);return PN(e)?e.host:e}function WV(t){const e=gu(t);return Yp(e)?t.ownerDocument?t.ownerDocument.body:t.body:Na(e)&&G2(e)?e:WV(e)}function j0(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=WV(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),o=pi(s);if(i){const a=R_(o);
vendor: 6,616 bytes, line 285
285return e.concat(o,o.visualViewport||[],G2(s)?s:[],a&&n?j0(a):[])}return e.concat(s,j0(s,[],n))}function R_(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qV(t){const e=zo(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=Na(t),i=s?t.offsetWidth:n,o=s?t.offsetHeight:r,a=t4(n)!==i||t4(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function Qb(t){return Lo(t)?t:t.contextElement}function fp(t){const e=Qb(t);if(!Na(e))return wa(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:i}=qV(e);let o=(i?t4(n.width):n.width)/r,a=(i?t4(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Nge=wa(0);function GV(t){const e=pi(t);return!Yb()||!e.visualViewport?Nge:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Mge(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==pi(t)?!1:e}function sf(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=Qb(t);let o=wa(1);e&&(r?Lo(r)&&(o=fp(r)):o=fp(t));const a=Mge(i,n,r)?GV(i):wa(0);let c=(s.left+a.x)/o.x,d=(s.top+a.y)/o.y,p=s.width/o.x,m=s.height/o.y;if(i){const v=pi(i),w=r&&Lo(r)?pi(r):r;let E=v,C=R_(E);for(;C&&r&&w!==E;){const b=fp(C),S=C.getBoundingClientRect(),P=zo(C),R=S.left+(C.clientLeft+parseFloat(P.paddingLeft))*b.x,z=S.top+(C.clientTop+parseFloat(P.paddingTop))*b.y;c*=b.x,d*=b.y,p*=b.x,m*=b.y,c+=R,d+=z,E=pi(C),C=R_(E)}}return r4({width:p,height:m,x:c,y:d})}function Xb(t,e){const n=O5(t).scrollLeft;return e?e.left+n:sf($a(t)).left+n}function KV(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),s=r.left+e.scrollLeft-(n?0:Xb(t,r)),i=r.top+e.scrollTop;return{x:s,y:i}}function kge(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",o=$a(r),a=e?D5(e.floating):!1;if(r===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},d=wa(1);const p=wa(0),m=Na(r);if((m||!m&&!i)&&((Pm(r)!=="body"||G2(o))&&(c=O5(r)),Na(r))){const w=sf(r);d=fp(r),p.x=w.x+r.clientLeft,p.y=w.y+r.clientTop}const v=o&&!m&&!i?KV(o,c,!0):wa(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+p.x+v.x,y:n.y*d.y-c.scrollTop*d.y+p.y+v.y}}function Dge(t){return Array.from(t.getClientRects())}function Oge(t){const e=$a(t),n=O5(t),r=t.ownerDocument.body,s=ui(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=ui(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Xb(t);const a=-n.scrollTop;return zo(r).direction==="rtl"&&(o+=ui(e.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function $ge(t,e){const n=pi(t),r=$a(t),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const d=Yb();(!d||d&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function Fge(t,e){const n=sf(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=Na(t)?fp(t):wa(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,c=s*i.x,d=r*i.y;return{width:o,height:a,x:c,y:d}}function RN(t,e,n){let r;if(e==="viewport")r=$ge(t,n);else if(e==="document")r=Oge($a(t));else if(Lo(e))r=Fge(e,n);else{const s=GV(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return r4(r)}function YV(t,e){const n=gu(t);return n===e||!Lo(n)||Yp(n)?!1:zo(n).position==="fixed"||YV(n,e)}function jge(t,e){const n=e.get(t);if(n)return n;let r=j0(t,[],!1).filter(a=>Lo(a)&&Pm(a)!=="body"),s=null;const i=zo(t).position==="fixed";let o=i?gu(t):t;for(;Lo(o)&&!Yp(o);){const a=zo(o),c=Kb(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||G2(o)&&!c&&YV(t,o))?r=r.filter(p=>p!==o):s=a,o=gu(o)}return e.set(t,r),r}function Lge(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?D5(e)?[]:jge(e,this._c):[].concat(n),r],a=o[0],c=o.reduce((d,p)=>{const m=RN(e,p,s);return d.top=ui(m.top,d.top),d.right=mu(m.right,d.right),d.bottom=mu(m.bottom,d.bottom),d.left=ui(m.left,d.left),d},RN(e,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function zge(t){const{width:e,height:n}=qV(t);return{width:e,height:n}}function Vge(t,e,n){const r=Na(e),s=$a(e),i=n==="fixed",o=sf(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=wa(0);function d(){c.x=Xb(s)}if(r||!r&&!i)if((Pm(e)!=="body"||G2(s))&&(a=O5(e)),r){const w=sf(e,!0,i,e);c.x=w.x+e.clientLeft,c.y=w.y+e.clientTop}else s&&d();i&&!r&&s&&d();const p=s&&!r&&!i?KV(s,a):wa(0),m=o.left+a.scrollLeft-c.x-p.x,v=o.top+a.scrollTop-c.y-p.y;return{x:m,y:v,width:o.width,height:o.height}}function C7(t){return zo(t).position==="static"}function NN(t,e){if(!Na(t)||zo(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return $a(t)===n&&(n=n.ownerDocument.body),n}function QV(t,e){const n=pi(t);if(D5(t))return n;if(!Na(t)){let s=gu(t);for(;s&&!Yp(s);){if(Lo(s)&&!C7(s))return s;s=gu(s)}return n}let r=NN(t,e);for(;r&&Pge(r)&&C7(r);)r=NN(r,e);return r&&Yp(r)&&C7(r)&&!Kb(r)?n:r||Rge(t)||n}const Bge=async function(t){const e=this.getOffsetParent||QV,n=this.getDimensions,r=await n(t.floating);return{reference:Vge(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Hge(t){return zo(t).direction==="rtl"}const Uge={convertOffsetParentRelativeRectToViewportRelativeRect:kge,getDocumentElement:$a,getClippingRect:Lge,getOffsetParent:QV,getElementRects:Bge,getClientRects:Dge,getDimensions:zge,getScale:fp,isElement:Lo,isRTL:Hge};function XV(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Wge(t,e){let n=null,r;const s=$a(t);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const d=t.getBoundingClientRect(),{left:p,top:m,width:v,height:w}=d;if(a||e(),!v||!w)return;const E=d3(m),C=d3(s.clientWidth-(p+v)),b=d3(s.clientHeight-(m+w)),S=d3(p),R={rootMargin:-E+"px "+-C+"px "+-b+"px "+-S+"px",threshold:ui(0,mu(1,c))||1};let z=!0;function O(F){const D=F[0].intersectionRatio;if(D!==c){if(!z)return o();D?o(!1,D):r=setTimeout(()=>{o(!1,1e-7)},1e3)}D===1&&!XV(d,t.getBoundingClientRect())&&o(),z=!1}try{n=new IntersectionObserver(O,{...R,root:s.ownerDocument})}catch{n=new IntersectionObserver(O,R)}n.observe(t)}return o(!0),i}function qge(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=Qb(t),p=s||i?[...d?j0(d):[],...j0(e)]:[];p.forEach(S=>{s&&S.addEventListener("scroll",n,{passive:!0}),i&&S.addEventListener("resize",n)});
vendor: 4,141 bytes, line 285
285const m=d&&a?Wge(d,n):null;let v=-1,w=null;o&&(w=new ResizeObserver(S=>{let[P]=S;P&&P.target===d&&w&&(w.unobserve(e),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var R;(R=w)==null||R.observe(e)})),n()}),d&&!c&&w.observe(d),w.observe(e));let E,C=c?sf(t):null;c&&b();function b(){const S=sf(t);C&&!XV(C,S)&&n(),C=S,E=requestAnimationFrame(b)}return n(),()=>{var S;p.forEach(P=>{s&&P.removeEventListener("scroll",n),i&&P.removeEventListener("resize",n)}),m?.(),(S=w)==null||S.disconnect(),w=null,c&&cancelAnimationFrame(E)}}const Gge=Cge,Kge=Tge,Yge=Ege,Qge=Ige,Xge=bge,MN=_ge,Zge=Age,Jge=(t,e,n)=>{const r=new Map,s={platform:Uge,...n},i={...s.platform,_c:r};return wge(t,e,{...s,platform:i})};var Q3=typeof document<"u"?_.useLayoutEffect:_.useEffect;function s4(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!s4(t[r],e[r]))return!1;return!0}if(s=Object.keys(t),n=s.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&t.$$typeof)&&!s4(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function ZV(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function kN(t,e){const n=ZV(t);return Math.round(e*n)/n}function T7(t){const e=_.useRef(t);return Q3(()=>{e.current=t}),e}function eve(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:d}=t,[p,m]=_.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[v,w]=_.useState(r);s4(v,r)||w(r);const[E,C]=_.useState(null),[b,S]=_.useState(null),P=_.useCallback(B=>{B!==F.current&&(F.current=B,C(B))},[]),R=_.useCallback(B=>{B!==D.current&&(D.current=B,S(B))},[]),z=i||E,O=o||b,F=_.useRef(null),D=_.useRef(null),I=_.useRef(p),T=c!=null,k=T7(c),j=T7(s),L=T7(d),V=_.useCallback(()=>{if(!F.current||!D.current)return;const B={placement:e,strategy:n,middleware:v};j.current&&(B.platform=j.current),Jge(F.current,D.current,B).then(ne=>{const oe={...ne,isPositioned:L.current!==!1};Y.current&&!s4(I.current,oe)&&(I.current=oe,Tf.flushSync(()=>{m(oe)}))})},[v,e,n,j,L]);Q3(()=>{d===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,m(B=>({...B,isPositioned:!1})))},[d]);const Y=_.useRef(!1);Q3(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Q3(()=>{if(z&&(F.current=z),O&&(D.current=O),z&&O){if(k.current)return k.current(z,O,V);V()}},[z,O,V,k,T]);const G=_.useMemo(()=>({reference:F,floating:D,setReference:P,setFloating:R}),[P,R]),q=_.useMemo(()=>({reference:z,floating:O}),[z,O]),U=_.useMemo(()=>{const B={position:n,left:0,top:0};if(!q.floating)return B;const ne=kN(q.floating,p.x),oe=kN(q.floating,p.y);return a?{...B,transform:"translate("+ne+"px, "+oe+"px)",...ZV(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ne,top:oe}},[n,a,q.floating,p.x,p.y]);return _.useMemo(()=>({...p,update:V,refs:G,elements:q,floatingStyles:U}),[p,V,G,q,U])}const tve=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:s}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?MN({element:r.current,padding:s}).fn(n):{}:r?MN({element:r,padding:s}).fn(n):{}}}},nve=(t,e)=>({...Gge(t),options:[t,e]}),rve=(t,e)=>({...Kge(t),options:[t,e]}),sve=(t,e)=>({...Zge(t),options:[t,e]}),ive=(t,e)=>({...Yge(t),options:[t,e]}),ove=(t,e)=>({...Qge(t),options:[t,e]}),ave=(t,e)=>({...Xge(t),options:[t,e]}),lve=(t,e)=>({...tve(t),options:[t,e]});var cve="Arrow",JV=_.forwardRef((t,e)=>{const{children:n,width:r=10,height:s=5,...i}=t;return u.jsx(Le.svg,{...i,ref:e,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});JV.displayName=cve;var uve=JV;function Zb(t){const[e,n]=_.useState(void 0);return Zn(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(s=>
vendor: 9,216 bytes, line 285
285{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;o=d.inlineSize,a=d.blockSize}else o=t.offsetWidth,a=t.offsetHeight;n({width:o,height:a})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var Jb="Popper",[eB,Rm]=jr(Jb),[dve,tB]=eB(Jb),nB=t=>{const{__scopePopper:e,children:n}=t,[r,s]=_.useState(null);return u.jsx(dve,{scope:e,anchor:r,onAnchorChange:s,children:n})};nB.displayName=Jb;var rB="PopperAnchor",sB=_.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...s}=t,i=tB(rB,n),o=_.useRef(null),a=yt(e,o);return _.useEffect(()=>{i.onAnchorChange(r?.current||o.current)}),r?null:u.jsx(Le.div,{...s,ref:a})});sB.displayName=rB;var eS="PopperContent",[fve,hve]=eB(eS),iB=_.forwardRef((t,e)=>{const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:v=!1,updatePositionStrategy:w="optimized",onPlaced:E,...C}=t,b=tB(eS,n),[S,P]=_.useState(null),R=yt(e,he=>P(he)),[z,O]=_.useState(null),F=Zb(z),D=F?.width??0,I=F?.height??0,T=r+(i!=="center"?"-"+i:""),k=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},j=Array.isArray(d)?d:[d],L=j.length>0,V={padding:k,boundary:j.filter(mve),altBoundary:L},{refs:Y,floatingStyles:G,placement:q,isPositioned:U,middlewareData:B}=eve({strategy:"fixed",placement:T,whileElementsMounted:(...he)=>qge(...he,{animationFrame:w==="always"}),elements:{reference:b.anchor},middleware:[nve({mainAxis:s+I,alignmentAxis:o}),c&&rve({mainAxis:!0,crossAxis:!1,limiter:m==="partial"?sve():void 0,...V}),c&&ive({...V}),ove({...V,apply:({elements:he,rects:xe,availableWidth:Ne,availableHeight:ze})=>{const{width:Ze,height:ut}=xe.reference,Pt=he.floating.style;Pt.setProperty("--radix-popper-available-width",`${Ne}px`),Pt.setProperty("--radix-popper-available-height",`${ze}px`),Pt.setProperty("--radix-popper-anchor-width",`${Ze}px`),Pt.setProperty("--radix-popper-anchor-height",`${ut}px`)}}),z&&lve({element:z,padding:a}),gve({arrowWidth:D,arrowHeight:I}),v&&ave({strategy:"referenceHidden",...V})]}),[ne,oe]=lB(q),Q=An(E);Zn(()=>{U&&Q?.()},[U,Q]);const ie=B.arrow?.x,ue=B.arrow?.y,ge=B.arrow?.centerOffset!==0,[Ae,Pe]=_.useState();return Zn(()=>{S&&Pe(window.getComputedStyle(S).zIndex)},[S]),u.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:U?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ae,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:u.jsx(fve,{scope:n,placedSide:ne,onArrowChange:O,arrowX:ie,arrowY:ue,shouldHideArrow:ge,children:u.jsx(Le.div,{"data-side":ne,"data-align":oe,...C,ref:R,style:{...C.style,animation:U?void 0:"none"}})})})});iB.displayName=eS;var oB="PopperArrow",pve={top:"bottom",right:"left",bottom:"top",left:"right"},aB=_.forwardRef(function(e,n){const{__scopePopper:r,...s}=e,i=hve(oB,r),o=pve[i.placedSide];return u.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:u.jsx(uve,{...s,ref:n,style:{...s.style,display:"block"}})})});aB.displayName=oB;function mve(t){return t!==null}var gve=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:s}=e,o=s.arrow?.centerOffset!==0,a=o?0:t.arrowWidth,c=o?0:t.arrowHeight,[d,p]=lB(n),m={start:"0%",center:"50%",end:"100%"}[p],v=(s.arrow?.x??0)+a/2,w=(s.arrow?.y??0)+c/2;let E="",C="";return d==="bottom"?(E=o?m:`${v}px`,C=`${-c}px`):d==="top"?(E=o?m:`${v}px`,C=`${r.floating.height+c}px`):d==="right"?(E=`${-c}px`,C=o?m:`${w}px`):d==="left"&&(E=`${r.floating.width+c}px`,C=o?m:`${w}px`),{data:{x:E,y:C}}}});function lB(t){const[e,n="center"]=t.split("-");return[e,n]}var tS=nB,$5=sB,nS=iB,rS=aB,F5="Popover",[cB,vQe]=jr(F5,[Rm]),K2=Rm(),[vve,Ou]=cB(F5),uB=t=>{const{__scopePopover:e,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:o=!1}=t,a=K2(e),c=_.useRef(null),[d,p]=_.useState(!1),[m,v]=As({prop:r,defaultProp:s??!1,onChange:i,caller:F5});return u.jsx(tS,{...a,children:u.jsx(vve,{scope:e,contentId:qs(),triggerRef:c,open:m,onOpenChange:v,onOpenToggle:_.useCallback(()=>v(w=>!w),[v]),hasCustomAnchor:d,onCustomAnchorAdd:_.useCallback(()=>p(!0),[]),onCustomAnchorRemove:_.useCallback(()=>p(!1),[]),modal:o,children:n})})};uB.displayName=F5;var dB="PopoverAnchor",yve=_.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,s=Ou(dB,n),i=K2(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=s;return _.useEffect(()=>(o(),()=>a()),[o,a]),u.jsx($5,{...i,...r,ref:e})});yve.displayName=dB;var fB="PopoverTrigger",hB=_.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,s=Ou(fB,n),i=K2(n),o=yt(e,s.triggerRef),a=u.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":yB(s.open),...r,ref:o,onClick:ke(t.onClick,s.onOpenToggle)});return s.hasCustomAnchor?a:u.jsx($5,{asChild:!0,...i,children:a})});hB.displayName=fB;var sS="PopoverPortal",[xve,wve]=cB(sS,{forceMount:void 0}),pB=t=>{const{__scopePopover:e,forceMount:n,children:r,container:s}=t,i=Ou(sS,e);return u.jsx(xve,{scope:e,forceMount:n,children:u.jsx(gr,{present:n||i.open,children:u.jsx(bm,{asChild:!0,container:s,children:r})})})};pB.displayName=sS;var Qp="PopoverContent",mB=_.forwardRef((t,e)=>{const n=wve(Qp,t.__scopePopover),{forceMount:r=n.forceMount,...s}=t,i=Ou(Qp,t.__scopePopover);return u.jsx(gr,{present:r||i.open,children:i.modal?u.jsx(Eve,{...s,ref:e}):u.jsx(bve,{...s,ref:e})})});mB.displayName=Qp;var _ve=tf("PopoverContent.RemoveScroll"),Eve=_.forwardRef((t,e)=>{const n=Ou(Qp,t.__scopePopover),r=_.useRef(null),s=yt(e,r),i=_.useRef(!1);return _.useEffect(()=>{const o=r.current;if(o)return lb(o)},[]),u.jsx(T5,{as:_ve,allowPinchZoom:!0,children:u.jsx(gB,{...t,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(t.onCloseAutoFocus,o=>{o.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:ke(t.onPointerDownOutside,o=>{const a=o.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,d=a.button===2||c;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:ke(t.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),bve=_.forwardRef((t,e)=>{const n=Ou(Qp,t.__scopePopover),r=_.useRef(!1),s=_.useRef(!1);return u.jsx(gB,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(r.current||n.triggerRef.current?.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const o=i.target;n.triggerRef.current?.contains(o)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),gB=_.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:p,...m}=t,v=Ou(Qp,n),w=K2(n);return ab(),u.jsx(S5,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:u.jsx(Af,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:p,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>v.onOpenChange(!1),children:u.jsx(nS,{"data-state":yB(v.open),role:"dialog",id:v.contentId,...w,...m,ref:e,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),vB="PopoverClose",Sve=_.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,s=Ou(vB,n);return u.jsx(Le.button,{type:"button",...r,ref:e,onClick:ke(t.onClick,()=>s.onOpenChange(!1))})});Sve.displayName=vB;var Cve="PopoverArrow",Tve=_.forwardRef((t,e)=>{const{__scopePopover:n,...r}=t,s=K2(n);return u.jsx(rS,{...s,...r,ref:e})});Tve.displayName=Cve;function yB(t){return t?"open":"closed"}var Ave=uB,Ive=hB,Pve=pB,xB=mB;const iS=Ave,wB=Ive,oS=_.forwardRef(({className:t,align:e="center",sideOffset:n=4,...r},s)=>u.jsx(Pve,{children:u.jsx(xB,{ref:s,align:e,sideOffset:n,className:ve("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
285de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",t),...r})}));oS.displayName=xB.displayName;const bs=t=>{if(!t)return"";try{if(t instanceof Date&&Number.isNaN(t.getTime()))return"";const e=typeof t=="string"?Mb(t):t;return Number.isNaN(e.getTime())?"":yi(e,"PPP",{locale:Uo})}catch(e){return console.error("Error formatting date:",e,t),""}},yQe=t=>{if(!t)return"";const e=typeof t=="string"?Mb(t):t;return yi(e,"PPP kk:mm:ss",{locale:Uo})},_B="EEEE d 'de' MMMM",EB=t=>t?yi(t,_B,{locale:Uo}):"",xQe=t=>yi(t,"dd-MM-yyyy",{locale:Uo}),Rve=t=>{t||console.error("date is required");const e=_B;try{return w1e(t,e,new Date,{locale:Uo})}catch{console.error("date is required")}},Nve=t=>t?yi(t,"cccc",{locale:Uo}):"",su=t=>{const[e,n,r]=t.split("-").map(Number);return new Date(e,n-1,r)},of=t=>{const e=new Date(t.getTime()+t.getTimezoneOffset()*6e4);return yi(e,"yyyy-MM-dd")},Mve=(t,e)=>{const n=[],r=e==="WEEKLY"?1:2;for(let s=0;s<4;s++)n.push(Ky(t,s*r));return n},bB=t=>{const e=Mb(t);return Qs(e,{weekStartsOn:0}).toISOString().slice(0,10)},kve=({field:t,onChange:e,availableDates:n})=>{const[r,s]=_.useState(!1);return u.jsxs(un,{className:"flex flex-col",children:[u.jsx(gn,{children:"Selecciona la fecha de tu primer envío"}),u.jsxs(iS,{open:r,onOpenChange:s,children:[u.jsx(wB,{asChild:!0,children:u.jsx(En,{children:u.jsxs(tt,{variant:"outline",className:ve("w-[240px] pl-3 text-left font-normal",!t.value&&"text-muted-foreground"),children:[t.value?bs(t.value):u.jsx("span",{children:"---"}),u.jsx(tue,{className:"ml-auto h-4 w-4 opacity-50"})]})})}),u.jsx(oS,{className:"w-auto p-0",align:"start",children:u.jsx(Am,{mode:"single",className:"font-sans",onSelect:i=>{e(i),s(!1)},selected:t.value,fromDate:su(n[0]),disabled:i=>!n.includes(of(i)),locale:Uo})})]}),u.jsx(Ra,{children:"Los envíos de tu suscripción se calcularán en base a este dia."}),u.jsx(Ot,{})]})},DN=(t,e,n)=>{if(t&&"reportValidity"in t){const r=Oe(n,e);t.setCustomValidity(r&&r.message||""),t.reportValidity()}},SB=(t,e)=>{for(const n in e.fields){const r=e.fields[n];r&&r.ref&&"reportValidity"in r.ref?DN(r.ref,n,t):r&&r.refs&&r.refs.forEach(s=>DN(s,n,t))}},Dve=(t,e)=>{e.shouldUseNativeValidation&&SB(t,e);const n={};for(const r in t){const s=Oe(e.fields,r),i=Object.assign(t[r]||{},{ref:s&&s.ref});if(Ove(e.names||Object.keys(t),r)){const o=Object.assign({},Oe(n,r));ln(o,"root",i),ln(n,r,o)}else ln(n,r,i)}return n},Ove=(t,e)=>{const n=ON(e);return t.some(r=>ON(r).match(`^${n}\\.\\d+`))};function ON(t){return t.replace(/\]|\[/g,"")}function $ve(t,e){for(var n={};t.length;){var r=t[0],s=r.code,i=r.message,o=r.path.join(".");if(!n[o])if("unionErrors"in r){var a=r.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(p){return p.errors.forEach(function(m){return t.push(m)})}),e){var c=n[o].types,d=c&&c[r.code];n[o]=DV(o,e,n,s,d?[].concat(d,r.message):r.message)}t.shift()}return n}function _i(t,e,n){return n===void 0&&(n={}),function(r,s,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(t[n.mode==="sync"?"parse":"parseAsync"](r,e)).then(function(d){return i.shouldUseNativeValidation&&SB({},i),{errors:{},values:n.raw?Object.assign({},r):d}})}catch(d){return a(d)}return c&&c.then?c.then(void 0,a):c}(0,function(o){if(function(a){return Array.isArray(a?.errors)}(o))return{values:{},errors:Dve($ve(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}}var Fve={ENV:"production",BASE_URL:"https://maifud.app",BACKEND_URL:"https://maifud.herokuapp.com",ENABLE_GOOGLE_AUTH:!0,REGISTER_LOCALSTORAGE_KEY:"maifud-registry-data-2.1.6-8/28/2026",UPSELL_CART_LOCALSTORAGE_KEY:"maifud-upsell-cart-data-2.1.6-8/28/2026",STANDALONE_ORDER_CART_LOCALSTORAGE_KEY:"maifud-standalone-order-cart-data-2.1.6-8/28/2026"};const f3="13:00",wQe=3e3,jve=3e4,gi=Fve;function CB(t){const e={...t};for(const n of Object.keys(e))e[n]===void 0&&delete e[n];return e}const Lve=(t,e)=>{if(!e.shipping_first_delivery_date)throw new Error("Delivery Date was not provided");const n=EB(e.shipping_first_delivery_date),r={uid:t,display_name:e.display_name,email:e.email,phone_number:e.phone_number,form_subscription_id:e.subscription_id?String(e.subscription_id):void 0,form_shipping_type:e.shipping_type,form_delivery_additional_data:e.aditional_notes,form_delivery_address:e.address,form_delivery_address_depto:e.address_dpto??"",form_delivery_address_number:e.address_dpto??"",form_delivery_district_name:e.delivery_district,form_pickup_district_name:e.pickup_district,form_pickup_name:e.pickup_name,form_shipping_first_delivery_date:n,form_shipping_frecuency:e.shipping_frecuency,shipping_entity_id:e.shipping_entity_id?String(e.shipping_entity_id):void 0,promo_code:e.promo_code,subscription_status:"SUBSCRIPTION_PENDING",user_referral_id:e.referrer_user_id,partnership_data:e.partnership_data,new_frontend:!0};return CB(r)},zve=t=>{const e={display_name:t?.display_name,email:t?.email,phone_number:t?.phone_number,subscription_id:t?.form_subscription_id,shipping_type:t?.form_shipping_type==="DELIVERY"||t?.form_shipping_type==="PICKUP"?t.form_shipping_type:void 0,aditional_notes:t?.form_delivery_additional_data,address:t?.form_delivery_address,address_dpto:t?.form_delivery_address_depto,delivery_district:t?.form_delivery_district_name,pickup_district:t?.form_pickup_district_name,pickup_name:t?.form_pickup_name,shipping_frecuency:t?.form_shipping_frecuency,promo_code:t?.promo_code,referrer_user_id:t?.user_referral_id,subscription_status:t?.subscription_status,payment_subscription_error:typeof t?.payment_subscription_error=="boolean"?t.payment_subscription_error:void 0,shipping_entity_id:t?.shipping_entity_id?Number(t.shipping_entity_id):void 0,shipping_first_delivery_date:t?.form_shipping_first_delivery_date?Rve(t?.form_shipping_first_delivery_date):void 0,partnership_data:t?.partnership_data&&typeof t.partnership_data=="object"&&"name"in t.partnership_data&&"metadata"in t.partnership_data?t.partnership_data:void 0};return CB(e)};/**
286 * @license
287 * Copyright 2025 Google LLC
288 *
289 * Licensed under the Apache License, Version 2.0 (the "License");
290 * you may not use this file except in compliance with the License.
291 * You may obtain a copy of the License at
292 *
293 *   http://www.apache.org/licenses/LICENSE-2.0
294 *
295 * Unless required by applicable law or agreed to in writing, software
296 * distributed under the License is distributed on an "AS IS" BASIS,
297 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
298 * See the License for the specific language governing permissions and
299 * limitations under the License.
300 */const Vve=()=>{};var $N={};/**
301 * @license
302 * Copyright 2017 Google LLC
303 *
304 * Licensed under the Apache License, Version 2.0 (the "License");
305 * you may not use this file except in compliance with the License.
306 * You may obtain a copy of the License at
307 *
308 *   http://www.apache.org/licenses/LICENSE-2.0
309 *
310 * Unless required by applicable law or agreed to in writing, software
311 * distributed under the License is distributed on an "AS IS" BASIS,
312 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
313 * See the License for the specific language governing permissions and
314 * limitations under the License.
315 */const TB=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);s<128?e[n++]=s:s<2048?(e[n++]=s>>6|192,e[n++]=s&63|128):(s&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(s=65536+((s&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=s>>18|240,e[n++]=s>>12&63|128,e[n++]=s>>6&63|128,e[n++]=s&63|128):(e[n++]=s>>12|224,e[n++]=s>>6&63|128,e[n++]=s&63|128)}return e},Bve=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const s=t[n++];if(s<128)e[r++]=String.fromCharCode(s);else if(s>191&&s<224){const i=t[n++];e[r++]=String.fromCharCode((s&31)<<6|i&63)}else if(s>239&&s<365){const i=t[n++],o=t[n++],a=t[n++],c=((s&7)<<18|(i&63)<<12|(o&63)<<6|a&63)-65536;e[r++]=String.fromCharCode(55296+(c>>10)),e[r++]=String.fromCharCode(56320+(c&1023))}else{const i=t[n++],o=t[n++];e[r++]=String.fromCharCode((s&15)<<12|(i&63)<<6|o&63)}}return e.join("")},AB={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let s=0;s<t.length;s+=3){const i=t[s],o=s+1<t.length,a=o?t[s+1]:0,c=s+2<t.length,d=c?t[s+2]:0,p=i>>2,m=(i&3)<<4|a>>4;let v=(a&15)<<2|d>>6,w=d&63;c||(w=64,o||(v=64)),r.push(n[p],n[m],n[v],n[w])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(TB(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):Bve(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let s=0;s<t.length;){const i=n[t.charAt(s++)],a=s<t.length?n[t.charAt(s)]:0;++s;const d=s<t.length?n[t.charAt(s)]:64;++s;const m=s<t.length?n[t.charAt(s)]:64;if(++s,i==null||a==null||d==null||m==null)throw new Hve;const v=i<<2|a>>4;if(r.push(v),d!==64){const w=a<<4&240|d>>2;if(r.push(w),m!==64){const E=d<<6&192|m;r.push(E)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class Hve extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Uve=function(t){const e=TB(t);return AB.encodeByteArray(e,!0)},i4=function(t){return Uve(t).replace(/\./g,"")},IB=function(t){try{return AB.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
316 * @license
317 * Copyright 2022 Google LLC
318 *
319 * Licensed under the Apache License, Version 2.0 (the "License");
320 * you may not use this file except in compliance with the License.
321 * You may obtain a copy of the License at
322 *
323 *   http://www.apache.org/licenses/LICENSE-2.0
324 *
325 * Unless required by applicable law or agreed to in writing, software
326 * distributed under the License is distributed on an "AS IS" BASIS,
327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
328 * See the License for the specific language governing permissions and
329 * limitations under the License.
330 */function Wve(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
331 * @license
332 * Copyright 2022 Google LLC
333 *
334 * Licensed under the Apache License, Version 2.0 (the "License");
335 * you may not use this file except in compliance with the License.
336 * You may obtain a copy of the License at
337 *
338 *   http://www.apache.org/licenses/LICENSE-2.0
339 *
340 * Unless required by applicable law or agreed to in writing, software
341 * distributed under the License is distributed on an "AS IS" BASIS,
342 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
343 * See the License for the specific language governing permissions and
344 * limitations under the License.
345 */const qve=()=>Wve().__FIREBASE_DEFAULTS__,Gve=()=>{if(typeof process>"u"||typeof $N>"u")return;const t=$N.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},Kve=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&IB(t[1]);return e&&JSON.parse(e)},j5=()=>{try{return Vve()||qve()||Gve()||Kve()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},PB=t=>{var e,n;return(n=(e=j5())===null||e===void 0?void 0:e.emulatorHosts)===null||n===void 0?void 0:n[t]},Yve=t=>{const e=PB(t);if(!e)return;const n=e.lastIndexOf(":");if(n<=0||n+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const r=parseInt(e.substring(n+1),10);return e[0]==="["?[e.substring(1,n-1),r]:[e.substring(0,n),r]},RB=()=>{var t;return(t=j5())===null||t===void 0?void 0:t.config},NB=t=>{var e;return(e=j5())===null||e===void 0?void 0:e[`_${t}`]};/**
346 * @license
347 * Copyright 2017 Google LLC
348 *
349 * Licensed under the Apache License, Version 2.0 (the "License");
350 * you may not use this file except in compliance with the License.
351 * You may obtain a copy of the License at
352 *
353 *   http://www.apache.org/licenses/LICENSE-2.0
354 *
355 * Unless required by applicable law or agreed to in writing, software
356 * distributed under the License is distributed on an "AS IS" BASIS,
357 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
358 * See the License for the specific language governing permissions and
359 * limitations under the License.
360 */class Qve{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}/**
361 * @license
362 * Copyright 2021 Google LLC
363 *
364 * Licensed under the Apache License, Version 2.0 (the "License");
365 * you may not use this file except in compliance with the License.
366 * You may obtain a copy of the License at
367 *
368 *   http://www.apache.org/licenses/LICENSE-2.0
369 *
370 * Unless required by applicable law or agreed to in writing, software
371 * distributed under the License is distributed on an "AS IS" BASIS,
372 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
373 * See the License for the specific language governing permissions and
374 * limitations under the License.
375 */function Xve(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},r=e||"demo-project",s=t.iat||0,i=t.sub||t.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:s,exp:s+3600,auth_time:s,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},t);return[i4(JSON.stringify(n)),i4(JSON.stringify(o)),""].join(".")}/**
376 * @license
377 * Copyright 2017 Google LLC
378 *
379 * Licensed under the Apache License, Version 2.0 (the "License");
380 * you may not use this file except in compliance with the License.
381 * You may obtain a copy of the License at
382 *
383 *   http://www.apache.org/licenses/LICENSE-2.0
384 *
385 * Unless required by applicable law or agreed to in writing, software
386 * distributed under the License is distributed on an "AS IS" BASIS,
387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
388 * See the License for the specific language governing permissions and
389 * limitations under the License.
390 */function ds(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function Zve(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ds())}function Jve(){var t;const e=(t=j5())===null||t===void 0?void 0:t.forceEnvironment;if(e==="node")return!0;if(e==="browser")return!1;try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function e3e(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function t3e(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function n3e(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function r3e(){const t=ds();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function s3e(){return!Jve()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function i3e(){try{return typeof indexedDB=="object"}catch{return!1}}function o3e(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",s=self.indexedDB.open(r);s.onsuccess=()=>{s.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},s.onupgradeneeded=()=>{n=!1},s.onerror=()=>{var i;e(((i=s.error)===null||i===void 0?void 0:i.message)||"")}}catch(n){e(n)}})}/**
391 * @license
392 * Copyright 2017 Google LLC
393 *
394 * Licensed under the Apache License, Version 2.0 (the "License");
395 * you may not use this file except in compliance with the License.
396 * You may obtain a copy of the License at
397 *
398 *   http://www.apache.org/licenses/LICENSE-2.0
399 *
400 * Unless required by applicable law or agreed to in writing, software
401 * distributed under the License is distributed on an "AS IS" BASIS,
402 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
403 * See the License for the specific language governing permissions and
404 * limitations under the License.
405 */const a3e="FirebaseError";class Ql extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=a3e,Object.setPrototypeOf(this,Ql.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Y2.prototype.create)}}class Y2{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},s=`${this.service}/${e}`,i=this.errors[e],o=i?l3e(i,r):"Error",a=`${this.serviceName}: ${o} (${s}).`;return new Ql(s,a,r)}}function l3e(t,e){return t.replace(c3e,(n,r)=>{const s=e[r];return s!=null?String(s):`<${r}?>`})}const c3e=/\{\$([^}]+)}/g;function u3e(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function af(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const s of n){if(!r.includes(s))return!1;const i=t[s],o=e[s];if(FN(i)&&FN(o)){if(!af(i,o))return!1}else if(i!==o)return!1}for(const s of r)if(!n.includes(s))return!1;return!0}function FN(t){return t!==null&&typeof t=="object"}/**
406 * @license
407 * Copyright 2017 Google LLC
408 *
409 * Licensed under the Apache License, Version 2.0 (the "License");
410 * you may not use this file except in compliance with the License.
411 * You may obtain a copy of the License at
412 *
413 *   http://www.apache.org/licenses/LICENSE-2.0
414 *
415 * Unless required by applicable law or agreed to in writing, software
416 * distributed under the License is distributed on an "AS IS" BASIS,
417 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
418 * See the License for the specific language governing permissions and
419 * limitations under the License.
420 */function Q2(t){const e=[];for(const[n,r]of Object.entries(t))Array.isArray(r)?r.forEach(s=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(s))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}function K1(t){const e={};return t.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[s,i]=r.split("=");e[decodeURIComponent(s)]=decodeURIComponent(i)}}),e}function Y1(t){const e=t.indexOf("?");if(!e)return"";const n=t.indexOf("#",e);return t.substring(e,n>0?n:void 0)}function d3e(t,e){const n=new f3e(t,e);return n.subscribe.bind(n)}class f3e{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
vendor: 7,261 bytes, lines 420-469
420ise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,r){let s;if(e===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");h3e(e,["next","error","complete"])?s=e:s={next:e,error:n,complete:r},s.next===void 0&&(s.next=A7),s.error===void 0&&(s.error=A7),s.complete===void 0&&(s.complete=A7);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?s.error(this.finalError):s.complete()}catch{}}),this.observers.push(s),i}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,e)}sendOne(e,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{n(this.observers[e])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function h3e(t,e){if(typeof t!="object"||t===null)return!1;for(const n of e)if(n in t&&typeof t[n]=="function")return!0;return!1}function A7(){}/**
421 * @license
422 * Copyright 2021 Google LLC
423 *
424 * Licensed under the Apache License, Version 2.0 (the "License");
425 * you may not use this file except in compliance with the License.
426 * You may obtain a copy of the License at
427 *
428 *   http://www.apache.org/licenses/LICENSE-2.0
429 *
430 * Unless required by applicable law or agreed to in writing, software
431 * distributed under the License is distributed on an "AS IS" BASIS,
432 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
433 * See the License for the specific language governing permissions and
434 * limitations under the License.
435 */function Xs(t){return t&&t._delegate?t._delegate:t}class lf{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/**
436 * @license
437 * Copyright 2019 Google LLC
438 *
439 * Licensed under the Apache License, Version 2.0 (the "License");
440 * you may not use this file except in compliance with the License.
441 * You may obtain a copy of the License at
442 *
443 *   http://www.apache.org/licenses/LICENSE-2.0
444 *
445 * Unless required by applicable law or agreed to in writing, software
446 * distributed under the License is distributed on an "AS IS" BASIS,
447 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
448 * See the License for the specific language governing permissions and
449 * limitations under the License.
450 */const wd="[DEFAULT]";/**
451 * @license
452 * Copyright 2019 Google LLC
453 *
454 * Licensed under the Apache License, Version 2.0 (the "License");
455 * you may not use this file except in compliance with the License.
456 * You may obtain a copy of the License at
457 *
458 *   http://www.apache.org/licenses/LICENSE-2.0
459 *
460 * Unless required by applicable law or agreed to in writing, software
461 * distributed under the License is distributed on an "AS IS" BASIS,
462 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
463 * See the License for the specific language governing permissions and
464 * limitations under the License.
465 */let p3e=class{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new Qve;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const s=this.getOrInitializeService({instanceIdentifier:n});s&&r.resolve(s)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e?.identifier),s=(n=e?.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(i){if(s)return null;throw i}else{if(s)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(g3e(e))try{this.getOrInitializeService({instanceIdentifier:wd})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(n);try{const i=this.getOrInitializeService({instanceIdentifier:s});r.resolve(i)}catch{}}}}clearInstance(e=wd){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=wd){return this.instances.has(e)}getOptions(e=wd){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const s=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[i,o]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(i);r===a&&o.resolve(s)}return s}onInit(e,n){var r;const s=this.normalizeInstanceIdentifier(n),i=(r=this.onInitCallbacks.get(s))!==null&&r!==void 0?r:new Set;i.add(e),this.onInitCallbacks.set(s,i);const o=this.instances.get(s);return o&&e(o,s),()=>{i.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const s of r)try{s(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:m3e(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=wd){return this.component?this.component.multipleInstances?e:wd:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function m3e(t){return t===wd?void 0:t}function g3e(t){return t.instantiationMode==="EAGER"}/**
466 * @license
467 * Copyright 2019 Google LLC
468 *
469 * Licensed under the Apache License, Version 2.0 (the "License");
470 * you may not use this file except in compliance with the License.
471 * You may obtain a copy of the License at
472 *
473 *   http://www.apache.org/licenses/LICENSE-2.0
474 *
475 * Unless required by applicable law or agreed to in writing, software
476 * distributed under the License is distributed on an "AS IS" BASIS,
477 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
478 * See the License for the specific language governing permissions and
479 * limitations under the License.
480 */class v3e{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new p3e(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
481 * @license
482 * Copyright 2017 Google LLC
483 *
484 * Licensed under the Apache License, Version 2.0 (the "License");
485 * you may not use this file except in compliance with the License.
486 * You may obtain a copy of the License at
487 *
488 *   http://www.apache.org/licenses/LICENSE-2.0
489 *
490 * Unless required by applicable law or agreed to in writing, software
491 * distributed under the License is distributed on an "AS IS" BASIS,
492 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
493 * See the License for the specific language governing permissions and
494 * limitations under the License.
495 */var Ut;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Ut||(Ut={}));const y3e={debug:Ut.DEBUG,verbose:Ut.VERBOSE,info:Ut.INFO,warn:Ut.WARN,error:Ut.ERROR,silent:Ut.SILENT},x3e=Ut.INFO,w3e={[Ut.DEBUG]:"log",[Ut.VERBOSE]:"log",[Ut.INFO]:"info",[Ut.WARN]:"warn",[Ut.ERROR]:"error"},_3e=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),s=w3e[e];if(s)console[s](`[${r}]  ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class aS{constructor(e){this.name=e,this._logLevel=x3e,this._logHandler=_3e,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Ut))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?y3e[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Ut.DEBUG,...e),this._logHandler(this,Ut.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Ut.VERBOSE,...e),this._logHandler(this,Ut.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Ut.INFO,...e),this._logHandler(this,Ut.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Ut.WARN,...e),this._logHandler(this,Ut.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Ut.ERROR,...e),this._logHandler(this,Ut.ERROR,...e)}}const E3e=(t,e)=>e.some(n=>t instanceof n);let jN,LN;function b3e(){return jN||(jN=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function S3e(){return LN||(LN=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const MB=new WeakMap,N_=new WeakMap,kB=new WeakMap,I7=new WeakMap,lS=new WeakMap;function C3e(t){const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{n(iu(t.result)),s()},o=()=>{r(t.error),s()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(n=>{n instanceof IDBCursor&&MB.set(n,t)}).catch(()=>{}),lS.set(e,t),e}function T3e(t){if(N_.has(t))return;const e=new Promise((n,r)=>{const s=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{n(),s()},o=()=>{r(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});N_.set(t,e)}let M_={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return N_.get(t);if(e==="objectStoreNames")return t.objectStoreNames||kB.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return iu(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function A3e(t){M_=t(M_)}function I3e(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(P7(this),e,...n);
vendor: 4,200 bytes, lines 495-535
495return kB.set(r,e.sort?e.sort():[e]),iu(r)}:S3e().includes(t)?function(...e){return t.apply(P7(this),e),iu(MB.get(this))}:function(...e){return iu(t.apply(P7(this),e))}}function P3e(t){return typeof t=="function"?I3e(t):(t instanceof IDBTransaction&&T3e(t),E3e(t,b3e())?new Proxy(t,M_):t)}function iu(t){if(t instanceof IDBRequest)return C3e(t);if(I7.has(t))return I7.get(t);const e=P3e(t);return e!==t&&(I7.set(t,e),lS.set(e,t)),e}const P7=t=>lS.get(t);function R3e(t,e,{blocked:n,upgrade:r,blocking:s,terminated:i}={}){const o=indexedDB.open(t,e),a=iu(o);return r&&o.addEventListener("upgradeneeded",c=>{r(iu(o.result),c.oldVersion,c.newVersion,iu(o.transaction),c)}),n&&o.addEventListener("blocked",c=>n(c.oldVersion,c.newVersion,c)),a.then(c=>{i&&c.addEventListener("close",()=>i()),s&&c.addEventListener("versionchange",d=>s(d.oldVersion,d.newVersion,d))}).catch(()=>{}),a}const N3e=["get","getKey","getAll","getAllKeys","count"],M3e=["put","add","delete","clear"],R7=new Map;function zN(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(R7.get(e))return R7.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,s=M3e.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(s||N3e.includes(n)))return;const i=async function(o,...a){const c=this.transaction(o,s?"readwrite":"readonly");let d=c.store;return r&&(d=d.index(a.shift())),(await Promise.all([d[n](...a),s&&c.done]))[0]};return R7.set(e,i),i}A3e(t=>({...t,get:(e,n,r)=>zN(e,n)||t.get(e,n,r),has:(e,n)=>!!zN(e,n)||t.has(e,n)}));/**
496 * @license
497 * Copyright 2019 Google LLC
498 *
499 * Licensed under the Apache License, Version 2.0 (the "License");
500 * you may not use this file except in compliance with the License.
501 * You may obtain a copy of the License at
502 *
503 *   http://www.apache.org/licenses/LICENSE-2.0
504 *
505 * Unless required by applicable law or agreed to in writing, software
506 * distributed under the License is distributed on an "AS IS" BASIS,
507 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
508 * See the License for the specific language governing permissions and
509 * limitations under the License.
510 */class k3e{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(D3e(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function D3e(t){const e=t.getComponent();return e?.type==="VERSION"}const k_="@firebase/app",VN="0.11.5";/**
511 * @license
512 * Copyright 2019 Google LLC
513 *
514 * Licensed under the Apache License, Version 2.0 (the "License");
515 * you may not use this file except in compliance with the License.
516 * You may obtain a copy of the License at
517 *
518 *   http://www.apache.org/licenses/LICENSE-2.0
519 *
520 * Unless required by applicable law or agreed to in writing, software
521 * distributed under the License is distributed on an "AS IS" BASIS,
522 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
523 * See the License for the specific language governing permissions and
524 * limitations under the License.
525 */const jl=new aS("@firebase/app"),O3e="@firebase/app-compat",$3e="@firebase/analytics-compat",F3e="@firebase/analytics",j3e="@firebase/app-check-compat",L3e="@firebase/app-check",z3e="@firebase/auth",V3e="@firebase/auth-compat",B3e="@firebase/database",H3e="@firebase/data-connect",U3e="@firebase/database-compat",W3e="@firebase/functions",q3e="@firebase/functions-compat",G3e="@firebase/installations",K3e="@firebase/installations-compat",Y3e="@firebase/messaging",Q3e="@firebase/messaging-compat",X3e="@firebase/performance",Z3e="@firebase/performance-compat",J3e="@firebase/remote-config",eye="@firebase/remote-config-compat",tye="@firebase/storage",nye="@firebase/storage-compat",rye="@firebase/firestore",sye="@firebase/vertexai",iye="@firebase/firestore-compat",oye="firebase",aye="11.6.1";/**
526 * @license
527 * Copyright 2019 Google LLC
528 *
529 * Licensed under the Apache License, Version 2.0 (the "License");
530 * you may not use this file except in compliance with the License.
531 * You may obtain a copy of the License at
532 *
533 *   http://www.apache.org/licenses/LICENSE-2.0
534 *
535 * Unless required by applicable law or agreed to in writing, softw
535are
536 * distributed under the License is distributed on an "AS IS" BASIS,
537 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
538 * See the License for the specific language governing permissions and
539 * limitations under the License.
540 */const D_="[DEFAULT]",lye={[k_]:"fire-core",[O3e]:"fire-core-compat",[F3e]:"fire-analytics",[$3e]:"fire-analytics-compat",[L3e]:"fire-app-check",[j3e]:"fire-app-check-compat",[z3e]:"fire-auth",[V3e]:"fire-auth-compat",[B3e]:"fire-rtdb",[H3e]:"fire-data-connect",[U3e]:"fire-rtdb-compat",[W3e]:"fire-fn",[q3e]:"fire-fn-compat",[G3e]:"fire-iid",[K3e]:"fire-iid-compat",[Y3e]:"fire-fcm",[Q3e]:"fire-fcm-compat",[X3e]:"fire-perf",[Z3e]:"fire-perf-compat",[J3e]:"fire-rc",[eye]:"fire-rc-compat",[tye]:"fire-gcs",[nye]:"fire-gcs-compat",[rye]:"fire-fst",[iye]:"fire-fst-compat",[sye]:"fire-vertex","fire-js":"fire-js",[oye]:"fire-js-all"};/**
541 * @license
542 * Copyright 2019 Google LLC
543 *
544 * Licensed under the Apache License, Version 2.0 (the "License");
545 * you may not use this file except in compliance with the License.
546 * You may obtain a copy of the License at
547 *
548 *   http://www.apache.org/licenses/LICENSE-2.0
549 *
550 * Unless required by applicable law or agreed to in writing, software
551 * distributed under the License is distributed on an "AS IS" BASIS,
552 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
553 * See the License for the specific language governing permissions and
554 * limitations under the License.
555 */const o4=new Map,cye=new Map,O_=new Map;function BN(t,e){try{t.container.addComponent(e)}catch(n){jl.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function Xp(t){const e=t.name;if(O_.has(e))return jl.debug(`There were multiple attempts to register component ${e}.`),!1;O_.set(e,t);for(const n of o4.values())BN(n,t);for(const n of cye.values())BN(n,t);return!0}function cS(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}function di(t){return t==null?!1:t.settings!==void 0}/**
556 * @license
557 * Copyright 2019 Google LLC
558 *
559 * Licensed under the Apache License, Version 2.0 (the "License");
560 * you may not use this file except in compliance with the License.
561 * You may obtain a copy of the License at
562 *
563 *   http://www.apache.org/licenses/LICENSE-2.0
564 *
565 * Unless required by applicable law or agreed to in writing, software
566 * distributed under the License is distributed on an "AS IS" BASIS,
567 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
568 * See the License for the specific language governing permissions and
569 * limitations under the License.
570 */const uye={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
570d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},ou=new Y2("app","Firebase",uye);/**
571 * @license
572 * Copyright 2019 Google LLC
573 *
574 * Licensed under the Apache License, Version 2.0 (the "License");
575 * you may not use this file except in compliance with the License.
576 * You may obtain a copy of the License at
577 *
578 *   http://www.apache.org/licenses/LICENSE-2.0
579 *
580 * Unless required by applicable law or agreed to in writing, software
581 * distributed under the License is distributed on an "AS IS" BASIS,
582 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
583 * See the License for the specific language governing permissions and
584 * limitations under the License.
585 */class dye{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new lf("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw ou.create("app-deleted",{appName:this._name})}}/**
586 * @license
587 * Copyright 2019 Google LLC
588 *
589 * Licensed under the Apache License, Version 2.0 (the "License");
590 * you may not use this file except in compliance with the License.
591 * You may obtain a copy of the License at
592 *
593 *   http://www.apache.org/licenses/LICENSE-2.0
594 *
595 * Unless required by applicable law or agreed to in writing, software
596 * distributed under the License is distributed on an "AS IS" BASIS,
597 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
598 * See the License for the specific language governing permissions and
599 * limitations under the License.
600 */const Nm=aye;function DB(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:D_,automaticDataCollectionEnabled:!1},e),s=r.name;if(typeof s!="string"||!s)throw ou.create("bad-app-name",{appName:String(s)});if(n||(n=RB()),!n)throw ou.create("no-options");const i=o4.get(s);if(i){if(af(n,i.options)&&af(r,i.config))return i;throw ou.create("duplicate-app",{appName:s})}const o=new v3e(s);for(const c of O_.values())o.addComponent(c);const a=new dye(n,r,o);return o4.set(s,a),a}function OB(t=D_){const e=o4.get(t);if(!e&&t===D_&&RB())return DB();if(!e)throw ou.create("no-app",{appName:t});return e}function au(t,e,n){var r;let s=(r=lye[t])!==null&&r!==void 0?r:t;n&&(s+=`-${n}`);const i=s.match(/\s|\//),o=e.match(/\s|\//);if(i||o){const a=[`Unable to register library "${s}" with version "${e}":`];i&&a.push(`library name "${s}" contains illegal characters (whitespace or "/")`),i&&o&&a.push("and"),o&&a.push(`version name "${e}" contains illegal characters (whitespace or "/")`),jl.warn(a.join(" "));return}Xp(new lf(`${s}-version`,()=>({library:s,version:e}),"VERSION"))}/**
601 * @license
602 * Copyright 2021 Google LLC
603 *
604 * Licensed under the Apache License, Version 2.0 (the "License");
605 * you may not use this file except in compliance with the License.
606 * You may obtain a copy of the License at
607 *
608 *   http://www.apache.org/licenses/LICENSE-2.0
609 *
610 * Unless required by applicable law or agreed to in writing, softw
610are
611 * distributed under the License is distributed on an "AS IS" BASIS,
612 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
613 * See the License for the specific language governing permissions and
614 * limitations under the License.
615 */const fye="firebase-heartbeat-database",hye=1,L0="firebase-heartbeat-store";let N7=null;function $B(){return N7||(N7=R3e(fye,hye,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(L0)}catch(n){console.warn(n)}}}}).catch(t=>{throw ou.create("idb-open",{originalErrorMessage:t.message})})),N7}async function pye(t){try{const n=(await $B()).transaction(L0),r=await n.objectStore(L0).get(FB(t));return await n.done,r}catch(e){if(e instanceof Ql)jl.warn(e.message);else{const n=ou.create("idb-get",{originalErrorMessage:e?.message});jl.warn(n.message)}}}async function HN(t,e){try{const r=(await $B()).transaction(L0,"readwrite");await r.objectStore(L0).put(e,FB(t)),await r.done}catch(n){if(n instanceof Ql)jl.warn(n.message);else{const r=ou.create("idb-set",{originalErrorMessage:n?.message});jl.warn(r.message)}}}function FB(t){return`${t.name}!${t.options.appId}`}/**
616 * @license
617 * Copyright 2021 Google LLC
618 *
619 * Licensed under the Apache License, Version 2.0 (the "License");
620 * you may not use this file except in compliance with the License.
621 * You may obtain a copy of the License at
622 *
623 *   http://www.apache.org/licenses/LICENSE-2.0
624 *
625 * Unless required by applicable law or agreed to in writing, software
626 * distributed under the License is distributed on an "AS IS" BASIS,
627 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
628 * See the License for the specific language governing permissions and
629 * limitations under the License.
630 */const mye=1024,gye=30;class vye{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new xye(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var e,n;try{const s=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),i=UN();if(((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===i||this._heartbeatsCache.heartbeats.some(o=>o.date===i))return;if(this._heartbeatsCache.heartbeats.push({date:i,agent:s}),this._heartbeatsCache.heartbeats.length>gye){const o=wye(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(o,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(r){jl.warn(r)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=UN(),{heartbeatsToSend:r,unsentEntries:s}=yye(this._heartbeatsCache.heartbeats),i=i4(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,s.length>0?(this._heartbeatsCache.heartbeats=s,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(n){return jl.warn(n),""}}}function UN(){return new Date().toISOString().substring(0,10)}function yye(t,e=mye){const n=[];let r=t.slice();for(const s of t){const i=n.find(o=>o.agent===s.agent);if(i){if(i.dates.push(s.date),WN(n)>e){i.dates.pop();break}}else if(n.push({agent:s.agent,dates:[s.date]}),WN(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class xye{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return i3e()?o3e().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await pye(this.app);return n?.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const s=await this.read();return HN(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:s.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const s=await this.read();return HN(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:s.lastSentHeartbeatDate,heartbeats:[...s.heartbeats,...e.heartbeats]})}else return}}function WN(t){return i4(JSON.stringify({version:2,heartbeats:t})).length}function wye(t){if(t.length===0)return-1;let e=0,n=t[0].date;for(let r=1;r<t.length;r++)t[r].date<n&&(n=t[r].date,e=r);return e}/**
631 * @license
632 * Copyright 2019 Google LLC
633 *
634 * Licensed under the Apache License, Version 2.0 (the "License");
635 * you may not use this file except in compliance with the License.
636 * You may obtain a copy of the License at
637 *
638 *   http://www.apache.org/licenses/LICENSE-2.0
639 *
640 * Unless required by applicable law or agreed to in writing, software
641 * distributed under the License is distributed on an "AS IS" BASIS,
642 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
643 * See the License for the specific language governing permissions and
644 * limitations under the License.
645 */function _ye(t){Xp(new lf("platform-logger",e=>new k3e(e),"PRIVATE")),Xp(new lf("heartbeat",e=>new vye(e),"PRIVATE")),au(k_,VN,t),au(k_,VN,"esm2017"),au("fire-js","")}_ye("");var Eye="firebase",bye="11.6.1";/**
646 * @license
647 * Copyright 2020 Google LLC
648 *
649 * Licensed under the Apache License, Version 2.0 (the "License");
650 * you may not use this file except in compliance with the License.
651 * You may obtain a copy of the License at
652 *
653 *   http://www.apache.org/licenses/LICENSE-2.0
654 *
655 * Unless required by applicable law or agreed to in writing, software
656 * distributed under the License is distributed on an "AS IS" BASIS,
657 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
658 * See the License for the specific language governing permissions and
659 * limitations under the License.
660 */au(Eye,bye,"app");function jB(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const Sye=jB,LB=new Y2("auth","Firebase",jB());/**
661 * @license
662 * Copyright 2020 Google LLC
663 *
664 * Licensed under the Apache License, Version 2.0 (the "License");
665 * you may not use this file except in compliance with the License.
666 * You may obtain a copy of the License at
667 *
668 *   http://www.apache.org/licenses/LICENSE-2.0
669 *
670 * Unless required by applicable law or agreed to in writing, software
671 * distributed under the License is distributed on an "AS IS" BASIS,
672 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
673 * See the License for the specific language governing permissions and
674 * limitations under the License.
675 */const a4=new aS("@firebase/auth");function Cye(t,...e){a4.logLevel<=Ut.WARN&&a4.warn(`Auth (${Nm}): ${t}`,...e)}function X3(t,...e){a4.logLevel<=Ut.ERROR&&a4.error(`Auth (${Nm}): ${t}`,...e)}/**
676 * @license
677 * Copyright 2020 Google LLC
678 *
679 * Licensed under the Apache License, Version 2.0 (the "License");
680 * you may not use this file except in compliance with the License.
681 * You may obtain a copy of the License at
682 *
683 *   http://www.apache.org/licenses/LICENSE-2.0
684 *
685 * Unless required by applicable law or agreed to in writing, software
686 * distributed under the License is distributed on an "AS IS" BASIS,
687 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
688 * See the License for the specific language governing permissions and
689 * limitations under the License.
690 */function Yi(t,...e){throw dS(t,...e)}function Mo(t,...e){return dS(t,...e)}function uS(t,e,n){const r=Object.assign(Object.assign({},Sye()),{[e]:n});return new Y2("auth","Firebase",r).create(e,{appName:t.name})}function Cl(t){return uS(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Tye(t,e,n){const r=n;if(!(e instanceof r))throw r.name!==e.constructor.name&&Yi(t,"argument-error"),uS(t,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function dS(t,...e){if(typeof t!="string"){const n=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=t.name),t._errorFactory.create(n,...r)}return LB.create(t,...e)}function ft(t,e,...n){if(!t)throw dS(e,...n)}function xl(t){const e="INTERNAL ASSERTION FAILED: "+t;throw X3(e),new Error(e)}function Ll(t,e){t||xl(e)}/**
691 * @license
692 * Copyright 2020 Google LLC
693 *
694 * Licensed under the Apache License, Version 2.0 (the "License");
695 * you may not use this file except in compliance with the License.
696 * You may obtain a copy of the License at
697 *
698 *   http://www.apache.org/licenses/LICENSE-2.0
699 *
700 * Unless required by applicable law or agreed to in writing, softw
700are
701 * distributed under the License is distributed on an "AS IS" BASIS,
702 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
703 * See the License for the specific language governing permissions and
704 * limitations under the License.
705 */function $_(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.href)||""}function Aye(){return qN()==="http:"||qN()==="https:"}function qN(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.protocol)||null}/**
706 * @license
707 * Copyright 2020 Google LLC
708 *
709 * Licensed under the Apache License, Version 2.0 (the "License");
710 * you may not use this file except in compliance with the License.
711 * You may obtain a copy of the License at
712 *
713 *   http://www.apache.org/licenses/LICENSE-2.0
714 *
715 * Unless required by applicable law or agreed to in writing, software
716 * distributed under the License is distributed on an "AS IS" BASIS,
717 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
718 * See the License for the specific language governing permissions and
719 * limitations under the License.
720 */function Iye(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(Aye()||t3e()||"connection"in navigator)?navigator.onLine:!0}function Pye(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/**
721 * @license
722 * Copyright 2020 Google LLC
723 *
724 * Licensed under the Apache License, Version 2.0 (the "License");
725 * you may not use this file except in compliance with the License.
726 * You may obtain a copy of the License at
727 *
728 *   http://www.apache.org/licenses/LICENSE-2.0
729 *
730 * Unless required by applicable law or agreed to in writing, software
731 * distributed under the License is distributed on an "AS IS" BASIS,
732 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
733 * See the License for the specific language governing permissions and
734 * limitations under the License.
735 */class X2{constructor(e,n){this.shortDelay=e,this.longDelay=n,Ll(n>e,"Short delay should be less than long delay!"),this.isMobile=Zve()||n3e()}get(){return Iye()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
736 * @license
737 * Copyright 2020 Google LLC
738 *
739 * Licensed under the Apache License, Version 2.0 (the "License");
740 * you may not use this file except in compliance with the License.
741 * You may obtain a copy of the License at
742 *
743 *   http://www.apache.org/licenses/LICENSE-2.0
744 *
745 * Unless required by applicable law or agreed to in writing, software
746 * distributed under the License is distributed on an "AS IS" BASIS,
747 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
748 * See the License for the specific language governing permissions and
749 * limitations under the License.
750 */function fS(t,e){Ll(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}/**
751 * @license
752 * Copyright 2020 Google LLC
753 *
754 * Licensed under the Apache License, Version 2.0 (the "License");
755 * you may not use this file except in compliance with the License.
756 * You may obtain a copy of the License at
757 *
758 *   http://www.apache.org/licenses/LICENSE-2.0
759 *
760 * Unless required by applicable law or agreed to in writing, software
761 * distributed under the License is distributed on an "AS IS" BASIS,
762 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
763 * See the License for the specific language governing permissions and
764 * limitations under the License.
765 */class zB{static initialize(e,n,r){this.fetchImpl=e,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;xl("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;xl("Could not find Headers implementation, make sure you call FetchProvi
765der.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;xl("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
766 * @license
767 * Copyright 2020 Google LLC
768 *
769 * Licensed under the Apache License, Version 2.0 (the "License");
770 * you may not use this file except in compliance with the License.
771 * You may obtain a copy of the License at
772 *
773 *   http://www.apache.org/licenses/LICENSE-2.0
774 *
775 * Unless required by applicable law or agreed to in writing, software
776 * distributed under the License is distributed on an "AS IS" BASIS,
777 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
778 * See the License for the specific language governing permissions and
779 * limitations under the License.
780 */const Rye={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/**
781 * @license
782 * Copyright 2020 Google LLC
783 *
784 * Licensed under the Apache License, Version 2.0 (the "License");
785 * you may not use this file except in compliance with the License.
786 * You may obtain a copy of the License at
787 *
788 *   http://www.apache.org/licenses/LICENSE-2.0
789 *
790 * Unless required by applicable law or agreed to in writing, software
791 * distributed under the License is distributed on an "AS IS" BASIS,
792 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
793 * See the License for the specific language governing permissions and
794 * limitations under the License.
795 */const Nye=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],Mye=new X2(3e4,6e4);function Xl(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function Zl(t,e,n,r,s={}){return VB(t,s,async()=>{let i={},o={};r&&(e==="GET"?o=r:i={body:JSON.stringify(r)});const a=Q2(Object.assign({key:t.config.apiKey},o)).slice(1),c=await t._getAdditionalHeaders();c["Content-Type"]="application/json",t.languageCode&&(c["X-Firebase-Locale"]=t.languageCode);const d=Object.assign({method:e,headers:c},i);return e3e()||(d.referrerPolicy="no-referrer"),zB.fetch()(await BB(t,t.config.apiHost,n,a),d)})}async function VB(t,e,n){t._canInitEmulator=!1;const r=Object.assign(Object.assign({},Rye),e);try{const s=new Dye(t),i=await Promise.race([n(),s.promise]);s.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw h3(t,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const a=i.ok?o.errorMessage:o.error.message,[c,d]=a.split(" : ");if(c==="FEDERATED_USER_ID_ALREADY_LINKED")throw h3(t,"credential-already-in-use",o);if(c==="EMAIL_EXISTS")throw h3(t,"email-already-in-use",o);if(c==="USER_DISABLED")throw h3(t,"user-disabled",o);const p=r[c]||c.toLowerCase().replace(/[_\s]+/g,"-");if(d)throw uS(t,p,d);Yi(t,p)}}catch(s){if(s instanceof Ql)throw s;Yi(t,"network-request-failed",{message:String(s)})}}async function Z2(t,e,n,r,s={}){const i=await Zl(t,e,n,r,s);return"mfaPendingCredential"in i&&Yi(t,"multi-factor-auth-required",{_serverResponse:i}),i}async function BB(t,e,n,r){const s=`${e}${n}?${r}`,i=t,o=i.config.emulator?fS(t.config,s):`${t.config.apiScheme}://${s}`;return Nye.includes(n)&&(await i._persistenceManagerAvailable,i._getPersistenceType()==="COOKIE")?
795i._getPersistence()._getFinalTarget(o).toString():o}function kye(t){switch(t){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class Dye{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Mo(this.auth,"network-request-failed")),Mye.get())})}}function h3(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const s=Mo(t,e,r);return s.customData._tokenResponse=n,s}function GN(t){return t!==void 0&&t.enterprise!==void 0}class Oye{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],e.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const n of this.recaptchaEnforcementState)if(n.provider&&n.provider===e)return kye(n.enforcementState);return null}isProviderEnabled(e){return this.getProviderEnforcementState(e)==="ENFORCE"||this.getProviderEnforcementState(e)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function $ye(t,e){return Zl(t,"GET","/v2/recaptchaConfig",Xl(t,e))}/**
796 * @license
797 * Copyright 2020 Google LLC
798 *
799 * Licensed under the Apache License, Version 2.0 (the "License");
800 * you may not use this file except in compliance with the License.
801 * You may obtain a copy of the License at
802 *
803 *   http://www.apache.org/licenses/LICENSE-2.0
804 *
805 * Unless required by applicable law or agreed to in writing, software
806 * distributed under the License is distributed on an "AS IS" BASIS,
807 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
808 * See the License for the specific language governing permissions and
809 * limitations under the License.
810 */async function Fye(t,e){return Zl(t,"POST","/v1/accounts:delete",e)}async function l4(t,e){return Zl(t,"POST","/v1/accounts:lookup",e)}/**
811 * @license
812 * Copyright 2020 Google LLC
813 *
814 * Licensed under the Apache License, Version 2.0 (the "License");
815 * you may not use this file except in compliance with the License.
816 * You may obtain a copy of the License at
817 *
818 *   http://www.apache.org/licenses/LICENSE-2.0
819 *
820 * Unless required by applicable law or agreed to in writing, software
821 * distributed under the License is distributed on an "AS IS" BASIS,
822 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
823 * See the License for the specific language governing permissions and
824 * limitations under the License.
825 */function g0(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function jye(t,e=!1){const n=Xs(t),r=await n.getIdToken(e),s=L5(r);ft(s&&s.exp&&s.auth_time&&s.iat,n.auth,"internal-error");const i=typeof s.firebase=="object"?s.firebase:void 0,o=i?.sign_in_provider;return{claims:s,token:r,authTime:g0(M7(s.auth_time)),issuedAtTime:g0(M7(s.iat)),expirationTime:g0(M7(s.exp)),signInProvider:o||null,signInSecondFactor:i?.sign_in_second_factor||null}}function M7(t){return Number(t)*1e3}function L5(t){const[e,n,r]=t.split(".");if(e===void 0||n===void 0||r===void 0)return X3("JWT malformed, contained fewer than 3 sections"),null;try{const s=IB(n);return s?JSON.parse(s):(X3("Failed to decode base64 JWT payload"),null)}catch(s){return X3("Caught error parsing JWT payload as JSON",s?.toString()),null}}function KN(t){const e=L5(t);return ft(e,"internal-error"),ft(typeof e.exp<"u","internal-error"),ft(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}/**
826 * @license
827 * Copyright 2020 Google LLC
828 *
829 * Licensed under the Apache License, Version 2.0 (the "License");
830 * you may not use this file except in compliance with the License.
831 * You may obtain a copy of the License at
832 *
833 *   http://www.apache.org/licenses/LICENSE-2.0
834 *
835 * Unless required by applicable law or agreed to in writing, softw
835are
836 * distributed under the License is distributed on an "AS IS" BASIS,
837 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
838 * See the License for the specific language governing permissions and
839 * limitations under the License.
840 */async function z0(t,e,n=!1){if(n)return e;try{return await e}catch(r){throw r instanceof Ql&&Lye(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function Lye({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/**
841 * @license
842 * Copyright 2020 Google LLC
843 *
844 * Licensed under the Apache License, Version 2.0 (the "License");
845 * you may not use this file except in compliance with the License.
846 * You may obtain a copy of the License at
847 *
848 *   http://www.apache.org/licenses/LICENSE-2.0
849 *
850 * Unless required by applicable law or agreed to in writing, software
851 * distributed under the License is distributed on an "AS IS" BASIS,
852 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
853 * See the License for the specific language governing permissions and
854 * limitations under the License.
855 */class zye{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var n;if(e){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const s=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,s)}}schedule(e=!1){if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){e?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
856 * @license
857 * Copyright 2020 Google LLC
858 *
859 * Licensed under the Apache License, Version 2.0 (the "License");
860 * you may not use this file except in compliance with the License.
861 * You may obtain a copy of the License at
862 *
863 *   http://www.apache.org/licenses/LICENSE-2.0
864 *
865 * Unless required by applicable law or agreed to in writing, software
866 * distributed under the License is distributed on an "AS IS" BASIS,
867 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
868 * See the License for the specific language governing permissions and
869 * limitations under the License.
870 */class F_{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=g0(this.lastLoginAt),this.creationTime=g0(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
871 * @license
872 * Copyright 2019 Google LLC
873 *
874 * Licensed under the Apache License, Version 2.0 (the "License");
875 * you may not use this file except in compliance with the License.
876 * You may obtain a copy of the License at
877 *
878 *   http://www.apache.org/licenses/LICENSE-2.0
879 *
880 * Unless required by applicable law or agreed to in writing, software
881 * distributed under the License is distributed on an "AS IS" BASIS,
882 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
883 * See the License for the specific language governing permissions and
884 * limitations under the License.
885 */async function c4(t){var e;const n=t.auth,r=await t.getIdToken(),s=await z0(t,l4(n,{idToken:r}));ft(s?.users.length,n,"internal-error");const i=s.users[0];t._notifyReloadListener(i);const o=!((e=i.providerUserInfo)===null||e===void 0)&&e.length?HB(i.providerUserInfo):[],a=Bye(t.providerData,o),c=t.isAnonymous,d=!(t.email&&i.passwordHash)&&!a?.length,p=c?d:!1,m={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new F_(i.createdAt,i.lastLoginAt),isAnonymous:p};Object.assign(t,m)}async function Vye(t){const e=Xs(t);await c4(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function Bye(t,e){return[...t.filter(r=>!e.some(s=>s.providerId===r.providerId)),...e]}function HB(t){return t.map(e=>{var{providerId:n}=e,r=j2(e,["providerId"]);
885return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/**
886 * @license
887 * Copyright 2020 Google LLC
888 *
889 * Licensed under the Apache License, Version 2.0 (the "License");
890 * you may not use this file except in compliance with the License.
891 * You may obtain a copy of the License at
892 *
893 *   http://www.apache.org/licenses/LICENSE-2.0
894 *
895 * Unless required by applicable law or agreed to in writing, software
896 * distributed under the License is distributed on an "AS IS" BASIS,
897 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
898 * See the License for the specific language governing permissions and
899 * limitations under the License.
900 */async function Hye(t,e){const n=await VB(t,{},async()=>{const r=Q2({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:s,apiKey:i}=t.config,o=await BB(t,s,"/v1/token",`key=${i}`),a=await t._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",zB.fetch()(o,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function Uye(t,e){return Zl(t,"POST","/v2/accounts:revokeToken",Xl(t,e))}/**
901 * @license
902 * Copyright 2020 Google LLC
903 *
904 * Licensed under the Apache License, Version 2.0 (the "License");
905 * you may not use this file except in compliance with the License.
906 * You may obtain a copy of the License at
907 *
908 *   http://www.apache.org/licenses/LICENSE-2.0
909 *
910 * Unless required by applicable law or agreed to in writing, software
911 * distributed under the License is distributed on an "AS IS" BASIS,
912 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
913 * See the License for the specific language governing permissions and
914 * limitations under the License.
915 */class hp{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){ft(e.idToken,"internal-error"),ft(typeof e.idToken<"u","internal-error"),ft(typeof e.refreshToken<"u","internal-error");const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):KN(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}updateFromIdToken(e){ft(e.length!==0,"internal-error");const n=KN(e);this.updateTokensAndExpiration(e,null,n)}async getToken(e,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(ft(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(e,n){const{accessToken:r,refreshToken:s,expiresIn:i}=await Hye(e,n);this.updateTokensAndExpiration(r,s,Number(i))}updateTokensAndExpiration(e,n,r){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,n){const{refreshToken:r,accessToken:s,expirationTime:i}=n,o=new hp;return r&&(ft(typeof r=="string","internal-error",{appName:e}),o.refreshToken=r),s&&(ft(typeof s=="string","internal-error",{appName:e}),o.accessToken=s),i&&(ft(typeof i=="number","internal-error",{appName:e}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new hp,this.toJSON())}_performRefresh(){return xl("not implemented")}}/**
916 * @license
917 * Copyright 2020 Google LLC
918 *
919 * Licensed under the Apache License, Version 2.0 (the "License");
920 * you may not use this file except in compliance with the License.
921 * You may obtain a copy of the License at
922 *
923 *   http://www.apache.org/licenses/LICENSE-2.0
924 *
925 * Unless required by applicable law or agreed to in writing, software
926 * distributed under the License is distributed on an "AS IS" BASIS,
927 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
928 * See the License for the specific language governing permissions and
929 * limitations under the License.
930 */function Ic(t,e){ft(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class Po{constructor(e){var{uid:n,auth:r,stsTokenManager:s}=e,i=j2(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new zye(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=s,this.accessToken=s.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new F_(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const n=await z0(this,this.stsTokenManager.getToken(this.auth,e));return ft(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return jye(this,e)}reload(){return Vye(this)}_assign(e){this!==e&&(ft(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
930otoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const n=new Po(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){ft(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),n&&await c4(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(di(this.auth.app))return Promise.reject(Cl(this.auth));const e=await this.getIdToken();return await z0(this,Fye(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,n){var r,s,i,o,a,c,d,p;const m=(r=n.displayName)!==null&&r!==void 0?r:void 0,v=(s=n.email)!==null&&s!==void 0?s:void 0,w=(i=n.phoneNumber)!==null&&i!==void 0?i:void 0,E=(o=n.photoURL)!==null&&o!==void 0?o:void 0,C=(a=n.tenantId)!==null&&a!==void 0?a:void 0,b=(c=n._redirectEventId)!==null&&c!==void 0?c:void 0,S=(d=n.createdAt)!==null&&d!==void 0?d:void 0,P=(p=n.lastLoginAt)!==null&&p!==void 0?p:void 0,{uid:R,emailVerified:z,isAnonymous:O,providerData:F,stsTokenManager:D}=n;ft(R&&D,e,"internal-error");const I=hp.fromJSON(this.name,D);ft(typeof R=="string",e,"internal-error"),Ic(m,e.name),Ic(v,e.name),ft(typeof z=="boolean",e,"internal-error"),ft(typeof O=="boolean",e,"internal-error"),Ic(w,e.name),Ic(E,e.name),Ic(C,e.name),Ic(b,e.name),Ic(S,e.name),Ic(P,e.name);const T=new Po({uid:R,auth:e,email:v,emailVerified:z,displayName:m,isAnonymous:O,photoURL:E,phoneNumber:w,tenantId:C,stsTokenManager:I,createdAt:S,lastLoginAt:P});return F&&Array.isArray(F)&&(T.providerData=F.map(k=>Object.assign({},k))),b&&(T._redirectEventId=b),T}static async _fromIdTokenResponse(e,n,r=!1){const s=new hp;s.updateFromServerResponse(n);const i=new Po({uid:n.localId,auth:e,stsTokenManager:s,isAnonymous:r});return await c4(i),i}static async _fromGetAccountInfoResponse(e,n,r){const s=n.users[0];ft(s.localId!==void 0,"internal-error");const i=s.providerUserInfo!==void 0?HB(s.providerUserInfo):[],o=!(s.email&&s.passwordHash)&&!i?.length,a=new hp;a.updateFromIdToken(r);const c=new Po({uid:s.localId,auth:e,stsTokenManager:a,isAnonymous:o}),d={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:i,metadata:new F_(s.createdAt,s.lastLoginAt),isAnonymous:!(s.email&&s.passwordHash)&&!i?.length};return Object.assign(c,d),c}}/**
931 * @license
932 * Copyright 2020 Google LLC
933 *
934 * Licensed under the Apache License, Version 2.0 (the "License");
935 * you may not use this file except in compliance with the License.
936 * You may obtain a copy of the License at
937 *
938 *   http://www.apache.org/licenses/LICENSE-2.0
939 *
940 * Unless required by applicable law or agreed to in writing, softw
940are
941 * distributed under the License is distributed on an "AS IS" BASIS,
942 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
943 * See the License for the specific language governing permissions and
944 * limitations under the License.
945 */const YN=new Map;function wl(t){Ll(t instanceof Function,"Expected a class definition");let e=YN.get(t);return e?(Ll(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,YN.set(t,e),e)}/**
946 * @license
947 * Copyright 2019 Google LLC
948 *
949 * Licensed under the Apache License, Version 2.0 (the "License");
950 * you may not use this file except in compliance with the License.
951 * You may obtain a copy of the License at
952 *
953 *   http://www.apache.org/licenses/LICENSE-2.0
954 *
955 * Unless required by applicable law or agreed to in writing, software
956 * distributed under the License is distributed on an "AS IS" BASIS,
957 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
958 * See the License for the specific language governing permissions and
959 * limitations under the License.
960 */class UB{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,n){this.storage[e]=n}async _get(e){const n=this.storage[e];return n===void 0?null:n}async _remove(e){delete this.storage[e]}_addListener(e,n){}_removeListener(e,n){}}UB.type="NONE";const QN=UB;/**
961 * @license
962 * Copyright 2019 Google LLC
963 *
964 * Licensed under the Apache License, Version 2.0 (the "License");
965 * you may not use this file except in compliance with the License.
966 * You may obtain a copy of the License at
967 *
968 *   http://www.apache.org/licenses/LICENSE-2.0
969 *
970 * Unless required by applicable law or agreed to in writing, software
971 * distributed under the License is distributed on an "AS IS" BASIS,
972 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
973 * See the License for the specific language governing permissions and
974 * limitations under the License.
975 */function Z3(t,e,n){return`firebase:${t}:${e}:${n}`}class pp{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:s,name:i}=this.auth;this.fullUserKey=Z3(this.userKey,s.apiKey,i),this.fullPersistenceKey=Z3("persistence",s.apiKey,i),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if(typeof e=="string"){const n=await l4(this.auth,{idToken:e}).catch(()=>{});return n?Po._fromGetAccountInfoResponse(this.auth,n,e):null}return Po._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,n,r="authUser"){if(!n.length)return new pp(wl(QN),e,r);const s=(await Promise.all(n.map(async d=>{if(await d._isAvailable())return d}))).filter(d=>d);let i=s[0]||wl(QN);const o=Z3(r,e.config.apiKey,e.name);let a=null;for(const d of n)try{const p=await d._get(o);if(p){let m;if(typeof p=="string"){const v=await l4(e,{idToken:p}).catch(()=>{});if(!v)break;m=await Po._fromGetAccountInfoResponse(e,v,p)}else m=Po._fromJSON(e,p);d!==i&&(a=m),i=d;break}}catch{}const c=s.filter(d=>d._shouldAllowMigration);return!i._shouldAllowMigration||!c.length?new pp(i,e,r):(i=c[0],a&&await i._set(o,a.toJSON()),await Promise.all(n.map(async d=>{if(d!==i)try{await d._remove(o)}catch{}})),new pp(i,e,r))}}/**
976 * @license
977 * Copyright 2020 Google LLC
978 *
979 * Licensed under the Apache License, Version 2.0 (the "License");
980 * you may not use this file except in compliance with the License.
981 * You may obtain a copy of the License at
982 *
983 *   http://www.apache.org/licenses/LICENSE-2.0
984 *
985 * Unless required by applicable law or agreed to in writing, softw
985are
986 * distributed under the License is distributed on an "AS IS" BASIS,
987 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
988 * See the License for the specific language governing permissions and
989 * limitations under the License.
990 */function XN(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(KB(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(WB(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(QB(e))return"Blackberry";if(XB(e))return"Webos";if(qB(e))return"Safari";if((e.includes("chrome/")||GB(e))&&!e.includes("edge/"))return"Chrome";if(YB(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(n);if(r?.length===2)return r[1]}return"Other"}function WB(t=ds()){return/firefox\//i.test(t)}function qB(t=ds()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function GB(t=ds()){return/crios\//i.test(t)}function KB(t=ds()){return/iemobile/i.test(t)}function YB(t=ds()){return/android/i.test(t)}function QB(t=ds()){return/blackberry/i.test(t)}function XB(t=ds()){return/webos/i.test(t)}function hS(t=ds()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function Wye(t=ds()){var e;return hS(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function qye(){return r3e()&&document.documentMode===10}function ZB(t=ds()){return hS(t)||YB(t)||XB(t)||QB(t)||/windows phone/i.test(t)||KB(t)}/**
991 * @license
992 * Copyright 2020 Google LLC
993 *
994 * Licensed under the Apache License, Version 2.0 (the "License");
995 * you may not use this file except in compliance with the License.
996 * You may obtain a copy of the License at
997 *
998 *   http://www.apache.org/licenses/LICENSE-2.0
999 *
1000 * Unless required by applicable law or agreed to in writing, software
1001 * distributed under the License is distributed on an "AS IS" BASIS,
1002 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1003 * See the License for the specific language governing permissions and
1004 * limitations under the License.
1005 */function JB(t,e=[]){let n;switch(t){case"Browser":n=XN(ds());break;case"Worker":n=`${XN(ds())}-${t}`;break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${Nm}/${r}`}/**
1006 * @license
1007 * Copyright 2022 Google LLC
1008 *
1009 * Licensed under the Apache License, Version 2.0 (the "License");
1010 * you may not use this file except in compliance with the License.
1011 * You may obtain a copy of the License at
1012 *
1013 *   http://www.apache.org/licenses/LICENSE-2.0
1014 *
1015 * Unless required by applicable law or agreed to in writing, software
1016 * distributed under the License is distributed on an "AS IS" BASIS,
1017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1018 * See the License for the specific language governing permissions and
1019 * limitations under the License.
1020 */class Gye{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const r=i=>new Promise((o,a)=>{try{const c=e(i);o(c)}catch(c){a(c)}});r.onAbort=n,this.queue.push(r);const s=this.queue.length-1;return()=>{this.queue[s]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const n=[];try{for(const r of this.queue)await r(e),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const s of n)try{s()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r?.message})}}}/**
1021 * @license
1022 * Copyright 2023 Google LLC
1023 *
1024 * Licensed under the Apache License, Version 2.0 (the "License");
1025 * you may not use this file except in compliance with the License.
1026 * You may obtain a copy of the License at
1027 *
1028 *   http://www.apache.org/licenses/LICENSE-2.0
1029 *
1030 * Unless required by applicable law or agreed to in writing, software
1031 * distributed under the License is distributed on an "AS IS" BASIS,
1032 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1033 * See the License for the specific language governing permissions and
1034 * limitations under the License.
1035 */async function Kye(t,e={}){return Zl(t,"GET","/v2/passwordPolicy",Xl(t,e))}/**
1036 * @license
1037 * Copyright 2023 Google LLC
1038 *
1039 * Licensed under the Apache License, Version 2.0 (the "License");
1040 * you may not use this file except in compliance with the License.
1041 * You may obtain a copy of the License at
1042 *
1043 *   http://www.apache.org/licenses/LICENSE-2.0
1044 *
1045 * Unless required by applicable law or agreed to in writing, software
1046 * distributed under the License is distributed on an "AS IS" BASIS,
1047 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1048 * See the License for the specific language governing permissions and
1049 * limitations under the License.
1050 */const Yye=6;class Qye{constructor(e){var n,r,s,i;const o=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=o.minPasswordLength)!==null&&n!==void 0?n:Yye,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),o.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),o.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),o.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),o.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(s=(r=e.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&s!==void 0?s:"",this.forceUpgradeOnSignin=(i=e.forceUpgradeOnSignin)!==null&&i!==void 0?i:!1,this.schemaVersion=e.schemaVersion}validatePassword(e){var n,r,s,i,o,a;const c={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,c),this.validatePasswordCharacterOptions(e,c),c.isValid&&
1050(c.isValid=(n=c.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),c.isValid&&(c.isValid=(r=c.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),c.isValid&&(c.isValid=(s=c.containsLowercaseLetter)!==null&&s!==void 0?s:!0),c.isValid&&(c.isValid=(i=c.containsUppercaseLetter)!==null&&i!==void 0?i:!0),c.isValid&&(c.isValid=(o=c.containsNumericCharacter)!==null&&o!==void 0?o:!0),c.isValid&&(c.isValid=(a=c.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),c}validatePasswordLengthOptions(e,n){const r=this.customStrengthOptions.minPasswordLength,s=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=e.length>=r),s&&(n.meetsMaxPasswordLength=e.length<=s)}validatePasswordCharacterOptions(e,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let s=0;s<e.length;s++)r=e.charAt(s),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,n,r,s,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=s)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}/**
1051 * @license
1052 * Copyright 2020 Google LLC
1053 *
1054 * Licensed under the Apache License, Version 2.0 (the "License");
1055 * you may not use this file except in compliance with the License.
1056 * You may obtain a copy of the License at
1057 *
1058 *   http://www.apache.org/licenses/LICENSE-2.0
1059 *
1060 * Unless required by applicable law or agreed to in writing, software
1061 * distributed under the License is distributed on an "AS IS" BASIS,
1062 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1063 * See the License for the specific language governing permissions and
1064 * limitations under the License.
1065 */class Xye{constructor(e,n,r,s){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=s,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new ZN(this),this.idTokenSubscription=new ZN(this),this.beforeStateQueue=new Gye(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=LB,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=s.sdkClientVersion,this._persistenceManagerAvailable=new Promise(i=>this._resolvePersistenceManagerAvailable=i)}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=wl(n)),this._initializationPromise=this.queue(async()=>{var r,s,i;if(!this._deleted&&(this.persistenceManager=await pp.create(this,e),(r=this._resolvePersistenceManagerAvailable)===null||r===void 0||r.call(this),!this._deleted)){if(!((s=this._popupRedirectResolver)===null||s===void 0)&&s._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((i=this.currentUser)===null||i===void 0?void 0:i.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{const n=await l4(this,{idToken:e}),r=await Po._fromGetAccountInfoResponse(this,n,e);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var n;if(di(this.app)){const o=this.app.settings.authIdToken;return o?new Promise(a=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(o).then(a,a))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let s=r,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const o=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=s?._redirectEventId,c=await this.tryRedirectSignIn(e);(!o||o===a)&&c?.user&&(s=c.user,i=!0)}if(!s)return this.directlySetCurrentUser(null);
1065if(!s._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(s)}catch(o){s=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return s?this.reloadAndSetCurrentUserOrClear(s):this.directlySetCurrentUser(null)}return ft(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===s._redirectEventId?this.directlySetCurrentUser(s):this.reloadAndSetCurrentUserOrClear(s)}async tryRedirectSignIn(e){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(e){try{await c4(e)}catch(n){if(n?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=Pye()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(di(this.app))return Promise.reject(Cl(this));const n=e?Xs(e):null;return n&&ft(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(e,n=!1){if(!this._deleted)return e&&ft(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return di(this.app)?Promise.reject(Cl(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return di(this.app)?Promise.reject(Cl(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(wl(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await Kye(this),n=new Qye(e);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new Y2("auth","Firebase",e())}onAuthStateChanged(e,n,r){return this.registerStateListener(this.authStateSubscription,e,n,r)}beforeAuthStateChanged(e,n){return this.beforeStateQueue.pushCallback(e,n)}onIdTokenChanged(e,n,r){return this.registerStateListener(this.idTokenSubscription,e,n,r)}authStateReady(){return new Promise((e,n)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},n)}})}async revokeAccessToken(e){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await Uye(this,r)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}async _setRedirectUser(e,n){const r=await this.getOrInitRedirectPersistenceManager(n);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const n=e&&wl(e)||this._popupRedirectResolver;ft(n,this,"argument-error"),this.redirectPersistenceManager=await pp.create(this,[wl(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===e?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,r,s){if(this._deleted)return()=>{};const i=typeof n=="function"?n:n.next.bind(n);let o=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(ft(a,this,"internal-error"),a.then(()=>{o||i(this.currentUser)}),typeof n=="function"){const c=e.addObserver(n,r,s);return()=>{o=!0,c()}}else{const c=e.addObserver(n);return()=>{o=!0,c()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return ft(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=JB(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const s=await this._getAppCheckToken();return s&&(n["X-Firebase-AppCheck"]=s),n}async _getAppCheckToken(){var e;if(di(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const n=await((e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken());return n?.error&&Cye(`Error while retrieving App Check token: ${n.error}`),n?.token}}function Jl(t){return Xs(t)}let ZN=class{constructor(e){this.auth=e,this.observer=null,this.addObserver=d3e(n=>this.observer=n)}get next(){return ft(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}};/**
1066 * @license
1067 * Copyright 2020 Google LLC
1068 *
1069 * Licensed under the Apache License, Version 2.0 (the "License");
1070 * you may not use this file except in compliance with the License.
1071 * You may obtain a copy of the License at
1072 *
1073 *   http://www.apache.org/licenses/LICENSE-2.0
1074 *
1075 * Unless required by applicable law or agreed to in writing, software
1076 * distributed under the License is distributed on an "AS IS" BASIS,
1077 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1078 * See the License for the specific language governing permissions and
1079 * limitations under the License.
1080 */let z5={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Zye(t){z5=t}function eH(t){return z5.loadJS(t)}function Jye(){return z5.recaptchaEnterpriseScript}function e4e(){return z5.gapiScript}function t4e(t){return`__${t}${Math.floor(Math.random()*1e6)}`}class n4e{constructor(){this.enterprise=new r4e}ready(e){e()}execute(e,n){return Promise.resolve("token")}render(e,n){return""}}class r4e{ready(e){e()}execute(e,n){return Promise.resolve("token")}render(e,n){return""}}const s4e="recaptcha-enterprise",tH="NO_RECAPTCHA";class i4e{constructor(e){this.type=s4e,this.auth=Jl(e)}async verify(e="verify",n=!1){async function r(i){if(!n){if(i.tenantId==null&&i._agentRecaptchaConfig!=null)return i._agentRecaptchaConfig.siteKey;if(i.tenantId!=null&&i._tenantRecaptchaConfigs[i.tenantId]!==void 0)return i._tenantRecaptchaConfigs[i.tenantId].siteKey}return new Promise(async(o,a)=>{$ye(i,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(c=>{if(c.recaptchaKey===void 0)a(new Error("recaptcha Enterprise site key undefined"));else{const d=new Oye(c);return i.tenantId==null?i._agentRecaptchaConfig=d:i._tenantRecaptchaConfigs[i.tenantId]=d,o(d.siteKey)}}).catch(c=>{a(c)})})}function s(i,o,a){const c=window.grecaptcha;GN(c)?c.enterprise.ready(()=>{c.enterprise.execute(i,{action:e}).then(d=>{o(d)}).catch(()=>{o(tH)})}):a(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new n4e().execute("siteKey",{action:"verify"}):new Promise((i,o)=>{r(this.auth).then(a=>{if(!n&&GN(window.grecaptcha))s(a,i,o);else{if(typeof window>"u"){o(new Error("RecaptchaVerifier is only supported in browser"));return}let c=Jye();c.length!==0&&(c+=a),eH(c).then(()=>{s(a,i,o)}).catch(d=>{o(d)})}}).catch(a=>{o(a)})})}}async function JN(t,e,n,r=!1,s=!1){const i=new i4e(t);let o;if(s)o=tH;else try{o=await i.verify(n)}catch{o=await i.verify(n,!0)}const a=Object.assign({},e);if(n==="mfaSmsEnrollment"||n==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in a){const c=a.phoneEnrollmentInfo.phoneNumber,d=a.phoneEnrollmentInfo.recaptchaToken;Object.assign(a,{phoneEnrollmentInfo:{phoneNumber:c,recaptchaToken:d,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in a){const c=a.phoneSignInInfo.recaptchaToken;Object.assign(a,{phoneSignInInfo:{recaptchaToken:c,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return a}return r?Object.assign(a,{captchaResp:o}):Object.assign(a,{captchaResponse:o}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function u4(t,e,n,r,s){var i;if(!((i=t._getRecaptchaConfig())===null||i===void 0)&&i.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const o=await JN(t,e,n,n==="getOobCode");return r(t,o)}else return r(t,e).catch(async o=>{if(o.code==="auth/missing-recaptcha-token"){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const a=await JN(t,e,n,n==="getOobCode");return r(t,a)}else return Promise.reject(o)})}/**
1081 * @license
1082 * Copyright 2020 Google LLC
1083 *
1084 * Licensed under the Apache License, Version 2.0 (the "License");
1085 * you may not use this file except in compliance with the License.
1086 * You may obtain a copy of the License at
1087 *
1088 *   http://www.apache.org/licenses/LICENSE-2.0
1089 *
1090 * Unless required by applicable law or agreed to in writing, software
1091 * distributed under the License is distributed on an "AS IS" BASIS,
1092 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1093 * See the License for the specific language governing permissions and
1094 * limitations under the License.
1095 */function o4e(t,e){const n=cS(t,"auth");if(n.isInitialized()){const s=n.getImmediate(),i=n.getOptions();if(af(i,e??{}))return s;Yi(s,"already-initialized")}return n.initialize({options:e})}function a4e(t,e){const n=e?.persistence||[],r=(Array.isArray(n)?n:[n]).map(wl);e?.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e?.popupRedirectResolver)}function l4e(t,e,n){const r=Jl(t);
1095ft(/^https?:\/\//.test(e),r,"invalid-emulator-scheme");const s=!1,i=nH(e),{host:o,port:a}=c4e(e),c=a===null?"":`:${a}`,d={url:`${i}//${o}${c}/`},p=Object.freeze({host:o,port:a,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:s})});if(!r._canInitEmulator){ft(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),ft(af(d,r.config.emulator)&&af(p,r.emulatorConfig),r,"emulator-config-failed");return}r.config.emulator=d,r.emulatorConfig=p,r.settings.appVerificationDisabledForTesting=!0,u4e()}function nH(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function c4e(t){const e=nH(t),n=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",s=/^(\[[^\]]+\])(:|$)/.exec(r);if(s){const i=s[1];return{host:i,port:eM(r.substr(i.length+1))}}else{const[i,o]=r.split(":");return{host:i,port:eM(o)}}}function eM(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function u4e(){function t(){const e=document.createElement("p"),n=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}/**
1096 * @license
1097 * Copyright 2020 Google LLC
1098 *
1099 * Licensed under the Apache License, Version 2.0 (the "License");
1100 * you may not use this file except in compliance with the License.
1101 * You may obtain a copy of the License at
1102 *
1103 *   http://www.apache.org/licenses/LICENSE-2.0
1104 *
1105 * Unless required by applicable law or agreed to in writing, software
1106 * distributed under the License is distributed on an "AS IS" BASIS,
1107 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1108 * See the License for the specific language governing permissions and
1109 * limitations under the License.
1110 */class pS{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return xl("not implemented")}_getIdTokenResponse(e){return xl("not implemented")}_linkToIdToken(e,n){return xl("not implemented")}_getReauthenticationResolver(e){return xl("not implemented")}}async function d4e(t,e){return Zl(t,"POST","/v1/accounts:signUp",e)}/**
1111 * @license
1112 * Copyright 2020 Google LLC
1113 *
1114 * Licensed under the Apache License, Version 2.0 (the "License");
1115 * you may not use this file except in compliance with the License.
1116 * You may obtain a copy of the License at
1117 *
1118 *   http://www.apache.org/licenses/LICENSE-2.0
1119 *
1120 * Unless required by applicable law or agreed to in writing, software
1121 * distributed under the License is distributed on an "AS IS" BASIS,
1122 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1123 * See the License for the specific language governing permissions and
1124 * limitations under the License.
1125 */async function f4e(t,e){return Z2(t,"POST","/v1/accounts:signInWithPassword",Xl(t,e))}async function h4e(t,e){return Zl(t,"POST","/v1/accounts:sendOobCode",Xl(t,e))}async function p4e(t,e){return h4e(t,e)}/**
1126 * @license
1127 * Copyright 2020 Google LLC
1128 *
1129 * Licensed under the Apache License, Version 2.0 (the "License");
1130 * you may not use this file except in compliance with the License.
1131 * You may obtain a copy of the License at
1132 *
1133 *   http://www.apache.org/licenses/LICENSE-2.0
1134 *
1135 * Unless required by applicable law or agreed to in writing, software
1136 * distributed under the License is distributed on an "AS IS" BASIS,
1137 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1138 * See the License for the specific language governing permissions and
1139 * limitations under the License.
1140 */async function m4e(t,e){return Z2(t,"POST","/v1/accounts:signInWithEmailLink",Xl(t,e))}async function g4e(t,e){return Z2(t,"POST","/v1/accounts:signInWithEmailLink",Xl(t,e))}/**
1141 * @license
1142 * Copyright 2020 Google LLC
1143 *
1144 * Licensed under the Apache License, Version 2.0 (the "License");
1145 * you may not use this file except in compliance with the License.
1146 * You may obtain a copy of the License at
1147 *
1148 *   http://www.apache.org/licenses/LICENSE-2.0
1149 *
1150 * Unless required by applicable law or agreed to in writing, software
1151 * distributed under the License is distributed on an "AS IS" BASIS,
1152 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1153 * See the License for the specific language governing permissions and
1154 * limitations under the License.
1155 */class V0 extends pS{constructor(e,n,r,s=null){super("password",r),this._email=e,this._password=n,this._tenantId=s}static _fromEmailAndPassword(e,n){return new V0(e,n,"password")}static _fromEmailAndCode(e,n,r=null){return new V0(e,n,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e;if(n?.email&&n?.password){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":const n={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return u4(e,n,"signInWithPassword",f4e);case"emailLink":return m4e(e,{email:this._email,oobCode:this._password});default:Yi(e,"internal-error")}}async _linkToIdToken(e,n){switch(this.signInMethod){case"password":const r={idToken:n,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return u4(e,r,"signUpPassword",d4e);case"emailLink":return g4e(e,{idToken:n,email:this._email,oobCode:this._password});default:Yi(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}/**
1156 * @license
1157 * Copyright 2020 Google LLC
1158 *
1159 * Licensed under the Apache License, Version 2.0 (the "License");
1160 * you may not use this file except in compliance with the License.
1161 * You may obtain a copy of the License at
1162 *
1163 *   http://www.apache.org/licenses/LICENSE-2.0
1164 *
1165 * Unless required by applicable law or agreed to in writing, software
1166 * distributed under the License is distributed on an "AS IS" BASIS,
1167 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1168 * See the License for the specific language governing permissions and
1169 * limitations under the License.
1170 */async function mp(t,e){return Z2(t,"POST","/v1/accounts:signInWithIdp",Xl(t,e))}/**
1171 * @license
1172 * Copyright 2020 Google LLC
1173 *
1174 * Licensed under the Apache License, Version 2.0 (the "License");
1175 * you may not use this file except in compliance with the License.
1176 * You may obtain a copy of the License at
1177 *
1178 *   http://www.apache.org/licenses/LICENSE-2.0
1179 *
1180 * Unless required by applicable law or agreed to in writing, software
1181 * distributed under the License is distributed on an "AS IS" BASIS,
1182 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1183 * See the License for the specific language governing permissions and
1184 * limitations under the License.
1185 */const v4e="http://localhost";class cf extends pS{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const n=new cf(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(n.idToken=e.idToken),e.accessToken&&(n.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):Yi("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
1185once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:s}=n,i=j2(n,["providerId","signInMethod"]);if(!r||!s)return null;const o=new cf(r,s);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(e){const n=this.buildRequest();return mp(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,mp(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,mp(e,n)}buildRequest(){const e={requestUri:v4e,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),e.postBody=Q2(n)}return e}}/**
1186 * @license
1187 * Copyright 2020 Google LLC
1188 *
1189 * Licensed under the Apache License, Version 2.0 (the "License");
1190 * you may not use this file except in compliance with the License.
1191 * You may obtain a copy of the License at
1192 *
1193 *   http://www.apache.org/licenses/LICENSE-2.0
1194 *
1195 * Unless required by applicable law or agreed to in writing, software
1196 * distributed under the License is distributed on an "AS IS" BASIS,
1197 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1198 * See the License for the specific language governing permissions and
1199 * limitations under the License.
1200 */function y4e(t){switch(t){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function x4e(t){const e=K1(Y1(t)).link,n=e?K1(Y1(e)).deep_link_id:null,r=K1(Y1(t)).deep_link_id;return(r?K1(Y1(r)).link:null)||r||n||e||t}class mS{constructor(e){var n,r,s,i,o,a;const c=K1(Y1(e)),d=(n=c.apiKey)!==null&&n!==void 0?n:null,p=(r=c.oobCode)!==null&&r!==void 0?r:null,m=y4e((s=c.mode)!==null&&s!==void 0?s:null);ft(d&&p&&m,"argument-error"),this.apiKey=d,this.operation=m,this.code=p,this.continueUrl=(i=c.continueUrl)!==null&&i!==void 0?i:null,this.languageCode=(o=c.lang)!==null&&o!==void 0?o:null,this.tenantId=(a=c.tenantId)!==null&&a!==void 0?a:null}static parseLink(e){const n=x4e(e);try{return new mS(n)}catch{return null}}}/**
1201 * @license
1202 * Copyright 2020 Google LLC
1203 *
1204 * Licensed under the Apache License, Version 2.0 (the "License");
1205 * you may not use this file except in compliance with the License.
1206 * You may obtain a copy of the License at
1207 *
1208 *   http://www.apache.org/licenses/LICENSE-2.0
1209 *
1210 * Unless required by applicable law or agreed to in writing, software
1211 * distributed under the License is distributed on an "AS IS" BASIS,
1212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1213 * See the License for the specific language governing permissions and
1214 * limitations under the License.
1215 */class Mm{constructor(){this.providerId=Mm.PROVIDER_ID}static credential(e,n){return V0._fromEmailAndPassword(e,n)}static credentialWithLink(e,n){const r=mS.parseLink(n);return ft(r,"argument-error"),V0._fromEmailAndCode(e,r.code,r.tenantId)}}Mm.PROVIDER_ID="password";Mm.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Mm.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/**
1216 * @license
1217 * Copyright 2020 Google LLC
1218 *
1219 * Licensed under the Apache License, Version 2.0 (the "License");
1220 * you may not use this file except in compliance with the License.
1221 * You may obtain a copy of the License at
1222 *
1223 *   http://www.apache.org/licenses/LICENSE-2.0
1224 *
1225 * Unless required by applicable law or agreed to in writing, software
1226 * distributed under the License is distributed on an "AS IS" BASIS,
1227 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1228 * See the License for the specific language governing permissions and
1229 * limitations under the License.
1230 */class gS{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/**
1231 * @license
1232 * Copyright 2019 Google LLC
1233 *
1234 * Licensed under the Apache License, Version 2.0 (the "License");
1235 * you may not use this file except in compliance with the License.
1236 * You may obtain a copy of the License at
1237 *
1238 *   http://www.apache.org/licenses/LICENSE-2.0
1239 *
1240 * Unless required by applicable law or agreed to in writing, software
1241 * distributed under the License is distributed on an "AS IS" BASIS,
1242 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1243 * See the License for the specific language governing permissions and
1244 * limitations under the License.
1245 */class J2 extends gS{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/**
1246 * @license
1247 * Copyright 2020 Google LLC
1248 *
1249 * Licensed under the Apache License, Version 2.0 (the "License");
1250 * you may not use this file except in compliance with the License.
1251 * You may obtain a copy of the License at
1252 *
1253 *   http://www.apache.org/licenses/LICENSE-2.0
1254 *
1255 * Unless required by applicable law or agreed to in writing, software
1256 * distributed under the License is distributed on an "AS IS" BASIS,
1257 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1258 * See the License for the specific language governing permissions and
1259 * limitations under the License.
1260 */class Vc extends J2{constructor(){super("facebook.com")}static credential(e){return cf._fromParams({providerId:Vc.PROVIDER_ID,signInMethod:Vc.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Vc.credentialFromTaggedObject(e)}static credentialFromError(e){return Vc.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Vc.credential(e.oauthAccessToken)}catch{return null}}}Vc.FACEBOOK_SIGN_IN_METHOD="facebook.com";Vc.PROVIDER_ID="facebook.com";/**
1261 * @license
1262 * Copyright 2020 Google LLC
1263 *
1264 * Licensed under the Apache License, Version 2.0 (the "License");
1265 * you may not use this file except in compliance with the License.
1266 * You may obtain a copy of the License at
1267 *
1268 *   http://www.apache.org/licenses/LICENSE-2.0
1269 *
1270 * Unless required by applicable law or agreed to in writing, software
1271 * distributed under the License is distributed on an "AS IS" BASIS,
1272 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1273 * See the License for the specific language governing permissions and
1274 * limitations under the License.
1275 */class vl extends J2{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return cf._fromParams({providerId:vl.PROVIDER_ID,signInMethod:vl.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return vl.credentialFromTaggedObject(e)}static credentialFromError(e){return vl.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return vl.credential(n,r)}catch{return null}}}vl.GOOGLE_SIGN_IN_METHOD="google.com";vl.PROVIDER_ID="google.com";/**
1276 * @license
1277 * Copyright 2020 Google LLC
1278 *
1279 * Licensed under the Apache License, Version 2.0 (the "License");
1280 * you may not use this file except in compliance with the License.
1281 * You may obtain a copy of the License at
1282 *
1283 *   http://www.apache.org/licenses/LICENSE-2.0
1284 *
1285 * Unless required by applicable law or agreed to in writing, software
1286 * distributed under the License is distributed on an "AS IS" BASIS,
1287 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1288 * See the License for the specific language governing permissions and
1289 * limitations under the License.
1290 */class Bc extends J2{constructor(){super("github.com")}static credential(e){return cf._fromParams({providerId:Bc.PROVIDER_ID,signInMethod:Bc.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Bc.credentialFromTaggedObject(e)}static credentialFromError(e){return Bc.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Bc.credential(e.oauthAccessToken)}catch{return null}}}Bc.GITHUB_SIGN_IN_METHOD="github.com";Bc.PROVIDER_ID="github.com";/**
1291 * @license
1292 * Copyright 2020 Google LLC
1293 *
1294 * Licensed under the Apache License, Version 2.0 (the "License");
1295 * you may not use this file except in compliance with the License.
1296 * You may obtain a copy of the License at
1297 *
1298 *   http://www.apache.org/licenses/LICENSE-2.0
1299 *
1300 * Unless required by applicable law or agreed to in writing, software
1301 * distributed under the License is distributed on an "AS IS" BASIS,
1302 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1303 * See the License for the specific language governing permissions and
1304 * limitations under the License.
1305 */class Hc extends J2{constructor(){super("twitter.com")}static credential(e,n){return cf._fromParams({providerId:Hc.PROVIDER_ID,signInMethod:Hc.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return Hc.credentialFromTaggedObject(e)}static credentialFromError(e){return Hc.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return Hc.credential(n,r)}catch{return null}}}Hc.TWITTER_SIGN_IN_METHOD="twitter.com";Hc.PROVIDER_ID="twitter.com";/**
1306 * @license
1307 * Copyright 2020 Google LLC
1308 *
1309 * Licensed under the Apache License, Version 2.0 (the "License");
1310 * you may not use this file except in compliance with the License.
1311 * You may obtain a copy of the License at
1312 *
1313 *   http://www.apache.org/licenses/LICENSE-2.0
1314 *
1315 * Unless required by applicable law or agreed to in writing, software
1316 * distributed under the License is distributed on an "AS IS" BASIS,
1317 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1318 * See the License for the specific language governing permissions and
1319 * limitations under the License.
1320 */async function w4e(t,e){return Z2(t,"POST","/v1/accounts:signUp",Xl(t,e))}/**
1321 * @license
1322 * Copyright 2020 Google LLC
1323 *
1324 * Licensed under the Apache License, Version 2.0 (the "License");
1325 * you may not use this file except in compliance with the License.
1326 * You may obtain a copy of the License at
1327 *
1328 *   http://www.apache.org/licenses/LICENSE-2.0
1329 *
1330 * Unless required by applicable law or agreed to in writing, software
1331 * distributed under the License is distributed on an "AS IS" BASIS,
1332 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1333 * See the License for the specific language governing permissions and
1334 * limitations under the License.
1335 */class uf{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,r,s=!1){const i=await Po._fromIdTokenResponse(e,r,s),o=tM(r);return new uf({user:i,providerId:o,_tokenResponse:r,operationType:n})}static async _forOperation(e,n,r){await e._updateTokensIfNecessary(r,!0);const s=tM(r);return new uf({user:e,providerId:s,_tokenResponse:r,operationType:n})}}function tM(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/**
1336 * @license
1337 * Copyright 2020 Google LLC
1338 *
1339 * Licensed under the Apache License, Version 2.0 (the "License");
1340 * you may not use this file except in compliance with the License.
1341 * You may obtain a copy of the License at
1342 *
1343 *   http://www.apache.org/licenses/LICENSE-2.0
1344 *
1345 * Unless required by applicable law or agreed to in writing, software
1346 * distributed under the License is distributed on an "AS IS" BASIS,
1347 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1348 * See the License for the specific language governing permissions and
1349 * limitations under the License.
1350 */class d4 extends Ql{constructor(e,n,r,s){var i;super(n.code,n.message),this.operationType=r,this.user=s,Object.setPrototypeOf(this,d4.prototype),this.customData={appName:e.name,tenantId:(i=e.tenantId)!==null&&i!==void 0?i:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,n,r,s){return new d4(e,n,r,s)}}function rH(t,e,n,r){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(i=>{throw i.code==="auth/multi-factor-auth-required"?d4._fromErrorAndOperation(t,i,e,r):i})}async function _4e(t,e,n=!1){const r=await z0(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return uf._forOperation(t,"link",r)}/**
1351 * @license
1352 * Copyright 2019 Google LLC
1353 *
1354 * Licensed under the Apache License, Version 2.0 (the "License");
1355 * you may not use this file except in compliance with the License.
1356 * You may obtain a copy of the License at
1357 *
1358 *   http://www.apache.org/licenses/LICENSE-2.0
1359 *
1360 * Unless required by applicable law or agreed to in writing, software
1361 * distributed under the License is distributed on an "AS IS" BASIS,
1362 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1363 * See the License for the specific language governing permissions and
1364 * limitations under the License.
1365 */async function E4e(t,e,n=!1){const{auth:r}=t;if(di(r.app))return Promise.reject(Cl(r));const s="reauthenticate";try{const i=await z0(t,rH(r,s,e,t),n);ft(i.idToken,r,"internal-error");const o=L5(i.idToken);ft(o,r,"internal-error");const{sub:a}=o;return ft(t.uid===a,r,"user-mismatch"),uf._forOperation(t,s,i)}catch(i){throw i?.code==="auth/user-not-found"&&Yi(r,"user-mismatch"),i}}/**
1366 * @license
1367 * Copyright 2020 Google LLC
1368 *
1369 * Licensed under the Apache License, Version 2.0 (the "License");
1370 * you may not use this file except in compliance with the License.
1371 * You may obtain a copy of the License at
1372 *
1373 *   http://www.apache.org/licenses/LICENSE-2.0
1374 *
1375 * Unless required by applicable law or agreed to in writing, software
1376 * distributed under the License is distributed on an "AS IS" BASIS,
1377 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1378 * See the License for the specific language governing permissions and
1379 * limitations under the License.
1380 */async function sH(t,e,n=!1){if(di(t.app))return Promise.reject(Cl(t));const r="signIn",s=await rH(t,r,e),i=await uf._fromIdTokenResponse(t,r,s);return n||await t._updateCurrentUser(i.user),i}async function b4e(t,e){return sH(Jl(t),e)}/**
1381 * @license
1382 * Copyright 2020 Google LLC
1383 *
1384 * Licensed under the Apache License, Version 2.0 (the "License");
1385 * you may not use this file except in compliance with the License.
1386 * You may obtain a copy of the License at
1387 *
1388 *   http://www.apache.org/licenses/LICENSE-2.0
1389 *
1390 * Unless required by applicable law or agreed to in writing, software
1391 * distributed under the License is distributed on an "AS IS" BASIS,
1392 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1393 * See the License for the specific language governing permissions and
1394 * limitations under the License.
1395 */async function iH(t){const e=Jl(t);e._getPasswordPolicyInternal()&&await e._updatePasswordPolicy()}async function S4e(t,e,n){const r=Jl(t);await u4(r,{requestType:"PASSWORD_RESET",email:e,clientType:"CLIENT_TYPE_WEB"},"getOobCode",p4e)}async function C4e(t,e,n){if(di(t.app))return Promise.reject(Cl(t));const r=Jl(t),o=await u4(r,{returnSecureToken:!0,email:e,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",w4e).catch(c=>{throw c.code==="auth/password-does-not-meet-requirements"&&iH(t),c}),a=await uf._fromIdTokenResponse(r,"signIn",o);return await r._updateCurrentUser(a.user),a}function T4e(t,e,n){return di(t.app)?Promise.reject(Cl(t)):b4e(Xs(t),Mm.credential(e,n)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&iH(t),r})}/**
1396 * @license
1397 * Copyright 2019 Google LLC
1398 *
1399 * Licensed under the Apache License, Version 2.0 (the "License");
1400 * you may not use this file except in compliance with the License.
1401 * You may obtain a copy of the License at
1402 *
1403 *   http://www.apache.org/licenses/LICENSE-2.0
1404 *
1405 * Unless required by applicable law or agreed to in writing, software
1406 * distributed under the License is distributed on an "AS IS" BASIS,
1407 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1408 * See the License for the specific language governing permissions and
1409 * limitations under the License.
1410 */function A4e(t){var e,n;if(!t)return null;const{providerId:r}=t,s=t.rawUserInfo?JSON.parse(t.rawUserInfo):{},i=t.isNewUser||t.kind==="identitytoolkit#SignupNewUserResponse";if(!r&&t?.idToken){const o=(n=(e=L5(t.idToken))===null||e===void 0?void 0:e.firebase)===null||n===void 0?void 0:n.sign_in_provider;if(o){const a=o!=="anonymous"&&o!=="custom"?o:null;return new gp(i,a)}}if(!r)return null;switch(r){case"facebook.com":return new I4e(i,s);case"github.com":return new P4e(i,s);case"google.com":return new R4e(i,s);case"twitter.com":return new N4e(i,s,t.screenName||null);
1410case"custom":case"anonymous":return new gp(i,null);default:return new gp(i,r,s)}}class gp{constructor(e,n,r={}){this.isNewUser=e,this.providerId=n,this.profile=r}}class oH extends gp{constructor(e,n,r,s){super(e,n,r),this.username=s}}class I4e extends gp{constructor(e,n){super(e,"facebook.com",n)}}class P4e extends oH{constructor(e,n){super(e,"github.com",n,typeof n?.login=="string"?n?.login:null)}}class R4e extends gp{constructor(e,n){super(e,"google.com",n)}}class N4e extends oH{constructor(e,n,r){super(e,"twitter.com",n,r)}}function M4e(t){const{user:e,_tokenResponse:n}=t;return e.isAnonymous&&!n?{providerId:null,isNewUser:!1,profile:null}:A4e(n)}function k4e(t,e,n,r){return Xs(t).onIdTokenChanged(e,n,r)}function D4e(t,e,n){return Xs(t).beforeAuthStateChanged(e,n)}function aH(t,e,n,r){return Xs(t).onAuthStateChanged(e,n,r)}function vS(t){return Xs(t).signOut()}async function O4e(t){return Xs(t).delete()}const f4="__sak";/**
1411 * @license
1412 * Copyright 2019 Google LLC
1413 *
1414 * Licensed under the Apache License, Version 2.0 (the "License");
1415 * you may not use this file except in compliance with the License.
1416 * You may obtain a copy of the License at
1417 *
1418 *   http://www.apache.org/licenses/LICENSE-2.0
1419 *
1420 * Unless required by applicable law or agreed to in writing, software
1421 * distributed under the License is distributed on an "AS IS" BASIS,
1422 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1423 * See the License for the specific language governing permissions and
1424 * limitations under the License.
1425 */class lH{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(f4,"1"),this.storage.removeItem(f4),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,n){return this.storage.setItem(e,JSON.stringify(n)),Promise.resolve()}_get(e){const n=this.storage.getItem(e);return Promise.resolve(n?JSON.parse(n):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}/**
1426 * @license
1427 * Copyright 2020 Google LLC
1428 *
1429 * Licensed under the Apache License, Version 2.0 (the "License");
1430 * you may not use this file except in compliance with the License.
1431 * You may obtain a copy of the License at
1432 *
1433 *   http://www.apache.org/licenses/LICENSE-2.0
1434 *
1435 * Unless required by applicable law or agreed to in writing, software
1436 * distributed under the License is distributed on an "AS IS" BASIS,
1437 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1438 * See the License for the specific language governing permissions and
1439 * limitations under the License.
1440 */const $4e=1e3,F4e=10;class cH extends lH{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=ZB(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),s=this.localCache[n];r!==s&&e(n,s,r)}}onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((o,a,c)=>{this.notifyListeners(o,c)});return}const r=e.key;n?this.detachListener():this.stopPolling();const s=()=>{const o=this.storage.getItem(r);!n&&this.localCache[r]===o||this.notifyListeners(r,o)},i=this.storage.getItem(r);qye()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(s,F4e):s()}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const s of Array.from(r))s(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:r}),!0)})},$4e)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
1440ject.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,n){await super._set(e,n),this.localCache[e]=JSON.stringify(n)}async _get(e){const n=await super._get(e);return this.localCache[e]=JSON.stringify(n),n}async _remove(e){await super._remove(e),delete this.localCache[e]}}cH.type="LOCAL";const j4e=cH;/**
1441 * @license
1442 * Copyright 2020 Google LLC
1443 *
1444 * Licensed under the Apache License, Version 2.0 (the "License");
1445 * you may not use this file except in compliance with the License.
1446 * You may obtain a copy of the License at
1447 *
1448 *   http://www.apache.org/licenses/LICENSE-2.0
1449 *
1450 * Unless required by applicable law or agreed to in writing, software
1451 * distributed under the License is distributed on an "AS IS" BASIS,
1452 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1453 * See the License for the specific language governing permissions and
1454 * limitations under the License.
1455 */class uH extends lH{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}uH.type="SESSION";const dH=uH;/**
1456 * @license
1457 * Copyright 2019 Google LLC
1458 *
1459 * Licensed under the Apache License, Version 2.0 (the "License");
1460 * you may not use this file except in compliance with the License.
1461 * You may obtain a copy of the License at
1462 *
1463 *   http://www.apache.org/licenses/LICENSE-2.0
1464 *
1465 * Unless required by applicable law or agreed to in writing, software
1466 * distributed under the License is distributed on an "AS IS" BASIS,
1467 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1468 * See the License for the specific language governing permissions and
1469 * limitations under the License.
1470 */function L4e(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(n){return{fulfilled:!1,reason:n}}}))}/**
1471 * @license
1472 * Copyright 2019 Google LLC
1473 *
1474 * Licensed under the Apache License, Version 2.0 (the "License");
1475 * you may not use this file except in compliance with the License.
1476 * You may obtain a copy of the License at
1477 *
1478 *   http://www.apache.org/licenses/LICENSE-2.0
1479 *
1480 * Unless required by applicable law or agreed to in writing, software
1481 * distributed under the License is distributed on an "AS IS" BASIS,
1482 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1483 * See the License for the specific language governing permissions and
1484 * limitations under the License.
1485 */class V5{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(s=>s.isListeningto(e));if(n)return n;const r=new V5(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:r,eventType:s,data:i}=n.data,o=this.handlersMap[s];if(!o?.size)return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:s});const a=Array.from(o).map(async d=>d(n.origin,i)),c=await L4e(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:s,response:c})}_subscribe(e,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(n)}_unsubscribe(e,n){this.handlersMap[e]&&n&&this.handlersMap[e].delete(n),(!n||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}V5.receivers=[];/**
1486 * @license
1487 * Copyright 2020 Google LLC
1488 *
1489 * Licensed under the Apache License, Version 2.0 (the "License");
1490 * you may not use this file except in compliance with the License.
1491 * You may obtain a copy of the License at
1492 *
1493 *   http://www.apache.org/licenses/LICENSE-2.0
1494 *
1495 * Unless required by applicable law or agreed to in writing, software
1496 * distributed under the License is distributed on an "AS IS" BASIS,
1497 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1498 * See the License for the specific language governing permissions and
1499 * limitations under the License.
1500 */function yS(t="",e=10){let n="";for(let r=0;r<e;r++)n+=Math.floor(Math.random()*10);return t+n}/**
1501 * @license
1502 * Copyright 2019 Google LLC
1503 *
1504 * Licensed under the Apache License, Version 2.0 (the "License");
1505 * you may not use this file except in compliance with the License.
1506 * You may obtain a copy of the License at
1507 *
1508 *   http://www.apache.org/licenses/LICENSE-2.0
1509 *
1510 * Unless required by applicable law or agreed to in writing, software
1511 * distributed under the License is distributed on an "AS IS" BASIS,
1512 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1513 * See the License for the specific language governing permissions and
1514 * limitations under the License.
1515 */class z4e{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,n,r=50){const s=typeof MessageChannel<"u"?new MessageChannel:null;if(!s)throw new Error("connection_unavailable");let i,o;return new Promise((a,c)=>{const d=yS("",20);s.port1.start();const p=setTimeout(()=>{c(new Error("unsupported_event"))},r);o={messageChannel:s,onMessage(m){const v=m;if(v.data.eventId===d)switch(v.data.status){case"ack":clearTimeout(p),i=setTimeout(()=>{c(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),a(v.data.response);break;default:clearTimeout(p),clearTimeout(i),c(new Error("invalid_response"));break}}},this.handlers.add(o),s.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:e,eventId:d,data:n},[s.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})}}/**
1516 * @license
1517 * Copyright 2020 Google LLC
1518 *
1519 * Licensed under the Apache License, Version 2.0 (the "License");
1520 * you may not use this file except in compliance with the License.
1521 * You may obtain a copy of the License at
1522 *
1523 *   http://www.apache.org/licenses/LICENSE-2.0
1524 *
1525 * Unless required by applicable law or agreed to in writing, software
1526 * distributed under the License is distributed on an "AS IS" BASIS,
1527 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1528 * See the License for the specific language governing permissions and
1529 * limitations under the License.
1530 */function _a(){return window}function V4e(t){_a().location.href=t}/**
1531 * @license
1532 * Copyright 2020 Google LLC.
1533 *
1534 * Licensed under the Apache License, Version 2.0 (the "License");
1535 * you may not use this file except in compliance with the License.
1536 * You may obtain a copy of the License at
1537 *
1538 *   http://www.apache.org/licenses/LICENSE-2.0
1539 *
1540 * Unless required by applicable law or agreed to in writing, software
1541 * distributed under the License is distributed on an "AS IS" BASIS,
1542 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1543 * See the License for the specific language governing permissions and
1544 * limitations under the License.
1545 */function fH(){return typeof _a().WorkerGlobalScope<"u"&&typeof _a().importScripts=="function"}async function B4e(){if(!navigator?.serviceWorker)return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function H4e(){var t;return((t=navigator?.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function U4e(){return fH()?self:null}/**
1546 * @license
1547 * Copyright 2019 Google LLC
1548 *
1549 * Licensed under the Apache License, Version 2.0 (the "License");
1550 * you may not use this file except in compliance with the License.
1551 * You may obtain a copy of the License at
1552 *
1553 *   http://www.apache.org/licenses/LICENSE-2.0
1554 *
1555 * Unless required by applicable law or agreed to in writing, software
1556 * distributed under the License is distributed on an "AS IS" BASIS,
1557 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1558 * See the License for the specific language governing permissions and
1559 * limitations under the License.
1560 */const hH="firebaseLocalStorageDb",W4e=1,h4="firebaseLocalStorage",pH="fbase_key";class eg{constructor(e){this.request=e}toPromise(){return new Promise((e,n)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function B5(t,e){return t.transaction([h4],e?"readwrite":"readonly").objectStore(h4)}function q4e(){const t=indexedDB.deleteDatabase(hH);
1560return new eg(t).toPromise()}function j_(){const t=indexedDB.open(hH,W4e);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const r=t.result;try{r.createObjectStore(h4,{keyPath:pH})}catch(s){n(s)}}),t.addEventListener("success",async()=>{const r=t.result;r.objectStoreNames.contains(h4)?e(r):(r.close(),await q4e(),e(await j_()))})})}async function nM(t,e,n){const r=B5(t,!0).put({[pH]:e,value:n});return new eg(r).toPromise()}async function G4e(t,e){const n=B5(t,!1).get(e),r=await new eg(n).toPromise();return r===void 0?null:r.value}function rM(t,e){const n=B5(t,!0).delete(e);return new eg(n).toPromise()}const K4e=800,Y4e=3;class mH{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await j_(),this.db)}async _withRetries(e){let n=0;for(;;)try{const r=await this._openDb();return await e(r)}catch(r){if(n++>Y4e)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return fH()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=V5._getInstance(U4e()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
1560)),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){var e,n;if(this.activeServiceWorker=await B4e(),!this.activeServiceWorker)return;this.sender=new z4e(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((e=r[0])===null||e===void 0)&&e.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||H4e()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await j_();return await nM(e,f4,"1"),await rM(e,f4),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>nM(r,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(r=>G4e(r,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>rM(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(s=>{const i=B5(s,!1).getAll();return new eg(i).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(e.length!==0)for(const{fbase_key:s,value:i}of e)r.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(i)&&(this.notifyListeners(s,i),n.push(s));for(const s of Object.keys(this.localCache))this.localCache[s]&&!r.has(s)&&(this.notifyListeners(s,null),n.push(s));return n}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const s of Array.from(r))s(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),K4e)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
vendor: 4,327 bytes, lines 1560-1609
1560ject.keys(this.listeners).length===0&&this.stopPolling()}}mH.type="LOCAL";const Q4e=mH;new X2(3e4,6e4);/**
1561 * @license
1562 * Copyright 2021 Google LLC
1563 *
1564 * Licensed under the Apache License, Version 2.0 (the "License");
1565 * you may not use this file except in compliance with the License.
1566 * You may obtain a copy of the License at
1567 *
1568 *   http://www.apache.org/licenses/LICENSE-2.0
1569 *
1570 * Unless required by applicable law or agreed to in writing, software
1571 * distributed under the License is distributed on an "AS IS" BASIS,
1572 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1573 * See the License for the specific language governing permissions and
1574 * limitations under the License.
1575 */function gH(t,e){return e?wl(e):(ft(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/**
1576 * @license
1577 * Copyright 2019 Google LLC
1578 *
1579 * Licensed under the Apache License, Version 2.0 (the "License");
1580 * you may not use this file except in compliance with the License.
1581 * You may obtain a copy of the License at
1582 *
1583 *   http://www.apache.org/licenses/LICENSE-2.0
1584 *
1585 * Unless required by applicable law or agreed to in writing, software
1586 * distributed under the License is distributed on an "AS IS" BASIS,
1587 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1588 * See the License for the specific language governing permissions and
1589 * limitations under the License.
1590 */class xS extends pS{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return mp(e,this._buildIdpRequest())}_linkToIdToken(e,n){return mp(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return mp(e,this._buildIdpRequest())}_buildIdpRequest(e){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(n.idToken=e),n}}function X4e(t){return sH(t.auth,new xS(t),t.bypassAuthState)}function Z4e(t){const{auth:e,user:n}=t;return ft(n,e,"internal-error"),E4e(n,new xS(t),t.bypassAuthState)}async function J4e(t){const{auth:e,user:n}=t;return ft(n,e,"internal-error"),_4e(n,new xS(t),t.bypassAuthState)}/**
1591 * @license
1592 * Copyright 2020 Google LLC
1593 *
1594 * Licensed under the Apache License, Version 2.0 (the "License");
1595 * you may not use this file except in compliance with the License.
1596 * You may obtain a copy of the License at
1597 *
1598 *   http://www.apache.org/licenses/LICENSE-2.0
1599 *
1600 * Unless required by applicable law or agreed to in writing, software
1601 * distributed under the License is distributed on an "AS IS" BASIS,
1602 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1603 * See the License for the specific language governing permissions and
1604 * limitations under the License.
1605 */class vH{constructor(e,n,r,s,i=!1){this.auth=e,this.resolver=r,this.user=s,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(e,n)=>{this.pendingPromise={resolve:e,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:r,postBody:s,tenantId:i,error:o,type:a}=e;if(o){this.reject(o);return}const c={auth:this.auth,requestUri:n,sessionId:r,tenantId:i||void 0,postBody:s||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(c))}catch(d){this.reject(d)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return X4e;case"linkViaPopup":case"linkViaRedirect":return J4e;case"reauthViaPopup":case"reauthViaRedirect":return Z4e;default:Yi(this.auth,"internal-error")}}resolve(e){Ll(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Ll(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
1606 * @license
1607 * Copyright 2020 Google LLC
1608 *
1609 * Licensed under the Apache License, Version 2.0 (the "License");
1610 * you may not use this file except in compliance with the License.
1611 * You may obtain a copy of the License at
1612 *
1613 *   http://www.apache.org/licenses/LICENSE-2.0
1614 *
1615 * Unless required by applicable law or agreed to in writing, software
1616 * distributed under the License is distributed on an "AS IS" BASIS,
1617 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1618 * See the License for the specific language governing permissions and
1619 * limitations under the License.
1620 */const e5e=new X2(2e3,1e4);async function yH(t,e,n){if(di(t.app))return Promise.reject(Mo(t,"operation-not-supported-in-this-environment"));const r=Jl(t);Tye(t,e,gS);const s=gH(r,n);return new Id(r,"signInViaPopup",e,s).executeNotNull()}class Id extends vH{constructor(e,n,r,s,i){super(e,n,s,i),this.provider=r,this.authWindow=null,this.pollId=null,Id.currentPopupAction&&Id.currentPopupAction.cancel(),Id.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return ft(e,this.auth,"internal-error"),e}async onExecution(){Ll(this.filter.length===1,"Popup operations only handle one event");const e=yS();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(Mo(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return((e=this.authWindow)===null||e===void 0?void 0:e.associatedEvent)||null}cancel(){this.reject(Mo(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Id.currentPopupAction=null}pollUserCancellation(){const e=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Mo(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,e5e.get())};e()}}Id.currentPopupAction=null;/**
1621 * @license
1622 * Copyright 2020 Google LLC
1623 *
1624 * Licensed under the Apache License, Version 2.0 (the "License");
1625 * you may not use this file except in compliance with the License.
1626 * You may obtain a copy of the License at
1627 *
1628 *   http://www.apache.org/licenses/LICENSE-2.0
1629 *
1630 * Unless required by applicable law or agreed to in writing, software
1631 * distributed under the License is distributed on an "AS IS" BASIS,
1632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1633 * See the License for the specific language governing permissions and
1634 * limitations under the License.
1635 */const t5e="pendingRedirect",J3=new Map;class n5e extends vH{constructor(e,n,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let e=J3.get(this.auth._key());if(!e){try{const r=await r5e(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(n){e=()=>Promise.reject(n)}J3.set(this.auth._key(),e)}return this.bypassAuthState||J3.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const n=await this.auth._redirectUserForId(e.eventId);if(n)return this.user=n,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function r5e(t,e){const n=o5e(e),r=i5e(t);if(!await r._isAvailable())return!1;const s=await r._get(n)==="true";return await r._remove(n),s}function s5e(t,e){J3.set(t._key(),e)}function i5e(t){return wl(t._redirectPersistence)}function o5e(t){return Z3(t5e,t.config.apiKey,t.name)}async function a5e(t,e,n=!1){if(di(t.app))return Promise.reject(Cl(t));const r=Jl(t),s=gH(r,e),o=await new n5e(r,s,n).execute();return o&&!n&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,e)),o}/**
1636 * @license
1637 * Copyright 2020 Google LLC
1638 *
1639 * Licensed under the Apache License, Version 2.0 (the "License");
1640 * you may not use this file except in compliance with the License.
1641 * You may obtain a copy of the License at
1642 *
1643 *   http://www.apache.org/licenses/LICENSE-2.0
1644 *
1645 * Unless required by applicable law or agreed to in writing, software
1646 * distributed under the License is distributed on an "AS IS" BASIS,
1647 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1648 * See the License for the specific language governing permissions and
1649 * limitations under the License.
1650 */const l5e=10*60*1e3;class c5e{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(n=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!u5e(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){var r;if(e.error&&!xH(e)){const s=((r=e.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(Mo(this.auth,s))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const r=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=l5e&&this.cachedEventUids.clear(),this.cachedEventUids.has(sM(e))}saveEventToCache(e){this.cachedEventUids.add(sM(e)),this.lastProcessedEventTime=Date.now()}}function sM(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function xH({type:t,error:e}){return t==="unknown"&&e?.code==="auth/no-auth-event"}function u5e(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return xH(t);default:return!1}}/**
1651 * @license
1652 * Copyright 2020 Google LLC
1653 *
1654 * Licensed under the Apache License, Version 2.0 (the "License");
1655 * you may not use this file except in compliance with the License.
1656 * You may obtain a copy of the License at
1657 *
1658 *   http://www.apache.org/licenses/LICENSE-2.0
1659 *
1660 * Unless required by applicable law or agreed to in writing, software
1661 * distributed under the License is distributed on an "AS IS" BASIS,
1662 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1663 * See the License for the specific language governing permissions and
1664 * limitations under the License.
1665 */async function d5e(t,e={}){return Zl(t,"GET","/v1/projects",e)}/**
1666 * @license
1667 * Copyright 2020 Google LLC
1668 *
1669 * Licensed under the Apache License, Version 2.0 (the "License");
1670 * you may not use this file except in compliance with the License.
1671 * You may obtain a copy of the License at
1672 *
1673 *   http://www.apache.org/licenses/LICENSE-2.0
1674 *
1675 * Unless required by applicable law or agreed to in writing, software
1676 * distributed under the License is distributed on an "AS IS" BASIS,
1677 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1678 * See the License for the specific language governing permissions and
1679 * limitations under the License.
1680 */const f5e=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,h5e=/^https?/;async function p5e(t){if(t.config.emulator)return;const{authorizedDomains:e}=await d5e(t);for(const n of e)try{if(m5e(n))return}catch{}Yi(t,"unauthorized-domain")}function m5e(t){const e=$_(),{protocol:n,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const o=new URL(t);return o.hostname===""&&r===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&o.hostname===r}if(!h5e.test(n))return!1;if(f5e.test(t))return r===t;const s=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+s+"|"+s+")$","i").test(r)}/**
1681 * @license
1682 * Copyright 2020 Google LLC.
1683 *
1684 * Licensed under the Apache License, Version 2.0 (the "License");
1685 * you may not use this file except in compliance with the License.
1686 * You may obtain a copy of the License at
1687 *
1688 *   http://www.apache.org/licenses/LICENSE-2.0
1689 *
1690 * Unless required by applicable law or agreed to in writing, software
1691 * distributed under the License is distributed on an "AS IS" BASIS,
1692 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1693 * See the License for the specific language governing permissions and
1694 * limitations under the License.
1695 */const g5e=new X2(3e4,6e4);function iM(){const t=_a().___jsl;if(t?.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let n=0;n<t.CP.length;n++)t.CP[n]=null}}function v5e(t){return new Promise((e,n)=>{var r,s,i;function o(){iM(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{iM(),n(Mo(t,"network-request-failed"))},timeout:g5e.get()})}if(!((s=(r=_a().gapi)===null||r===void 0?void 0:r.iframes)===null||s===void 0)&&s.Iframe)e(gapi.iframes.getContext());else if(!((i=_a().gapi)===null||i===void 0)&&i.load)o();else{const a=t4e("iframefcb");return _a()[a]=()=>{gapi.load?o():n(Mo(t,"network-request-failed"))},eH(`${e4e()}?onload=${a}`).catch(c=>n(c))}}).catch(e=>{throw ey=null,e})}let ey=null;function y5e(t){return ey=ey||v5e(t),ey}/**
1696 * @license
1697 * Copyright 2020 Google LLC.
1698 *
1699 * Licensed under the Apache License, Version 2.0 (the "License");
1700 * you may not use this file except in compliance with the License.
1701 * You may obtain a copy of the License at
1702 *
1703 *   http://www.apache.org/licenses/LICENSE-2.0
1704 *
1705 * Unless required by applicable law or agreed to in writing, software
1706 * distributed under the License is distributed on an "AS IS" BASIS,
1707 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1708 * See the License for the specific language governing permissions and
1709 * limitations under the License.
1710 */const x5e=new X2(5e3,15e3),w5e="__/auth/iframe",_5e="emulator/auth/iframe",E5e={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},b5e=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function S5e(t){const e=t.config;ft(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?fS(e,_5e):`https://${t.config.authDomain}/${w5e}`,r={apiKey:e.apiKey,appName:t.name,v:Nm},s=b5e.get(t.config.apiHost);s&&(r.eid=s);const i=t._getFrameworks();return i.length&&(r.fw=i.join(",")),`${n}?${Q2(r).slice(1)}`}async function C5e(t){const e=await y5e(t),n=_a().gapi;return ft(n,t,"internal-error"),e.open({where:document.body,url:S5e(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:E5e,dontclear:!0},r=>new Promise(async(s,i)=>{await r.restyle({setHideOnLeave:!1});const o=Mo(t,"network-request-failed"),a=_a().setTimeout(()=>{i(o)},x5e.get());function c(){_a().clearTimeout(a),s(r)}r.ping(c).then(c,()=>{i(o)})}))}/**
1711 * @license
1712 * Copyright 2020 Google LLC.
1713 *
1714 * Licensed under the Apache License, Version 2.0 (the "License");
1715 * you may not use this file except in compliance with the License.
1716 * You may obtain a copy of the License at
1717 *
1718 *   http://www.apache.org/licenses/LICENSE-2.0
1719 *
1720 * Unless required by applicable law or agreed to in writing, software
1721 * distributed under the License is distributed on an "AS IS" BASIS,
1722 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1723 * See the License for the specific language governing permissions and
1724 * limitations under the License.
1725 */const T5e={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},A5e=500,I5e=600,P5e="_blank",R5e="http://localhost";class oM{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function N5e(t,e,n,r=A5e,s=I5e){const i=Math.max((window.screen.availHeight-s)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const c=Object.assign(Object.assign({},T5e),{width:r.toString(),height:s.toString(),top:i,left:o}),d=ds().toLowerCase();n&&(a=GB(d)?P5e:n),WB(d)&&(e=e||R5e,c.scrollbars="yes");const p=Object.entries(c).reduce((v,[w,E])=>`${v}${w}=${E},`,"");if(Wye(d)&&a!=="_self")return M5e(e||"",a),new oM(null);const m=window.open(e||"",a,p);ft(m,t,"popup-blocked");try{m.focus()}catch{}return new oM(m)}function M5e(t,e){const n=document.createElement("a");n.href=t,n.target=e;const r=document.createEvent("MouseEvent");
1725r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/**
1726 * @license
1727 * Copyright 2021 Google LLC
1728 *
1729 * Licensed under the Apache License, Version 2.0 (the "License");
1730 * you may not use this file except in compliance with the License.
1731 * You may obtain a copy of the License at
1732 *
1733 *   http://www.apache.org/licenses/LICENSE-2.0
1734 *
1735 * Unless required by applicable law or agreed to in writing, software
1736 * distributed under the License is distributed on an "AS IS" BASIS,
1737 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1738 * See the License for the specific language governing permissions and
1739 * limitations under the License.
1740 */const k5e="__/auth/handler",D5e="emulator/auth/handler",O5e=encodeURIComponent("fac");async function aM(t,e,n,r,s,i){ft(t.config.authDomain,t,"auth-domain-config-required"),ft(t.config.apiKey,t,"invalid-api-key");const o={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:r,v:Nm,eventId:s};if(e instanceof gS){e.setDefaultLanguage(t.languageCode),o.providerId=e.providerId||"",u3e(e.getCustomParameters())||(o.customParameters=JSON.stringify(e.getCustomParameters()));for(const[p,m]of Object.entries({}))o[p]=m}if(e instanceof J2){const p=e.getScopes().filter(m=>m!=="");p.length>0&&(o.scopes=p.join(","))}t.tenantId&&(o.tid=t.tenantId);const a=o;for(const p of Object.keys(a))a[p]===void 0&&delete a[p];const c=await t._getAppCheckToken(),d=c?`#${O5e}=${encodeURIComponent(c)}`:"";return`${$5e(t)}?${Q2(a).slice(1)}${d}`}function $5e({config:t}){return t.emulator?fS(t,D5e):`https://${t.authDomain}/${k5e}`}/**
1741 * @license
1742 * Copyright 2020 Google LLC
1743 *
1744 * Licensed under the Apache License, Version 2.0 (the "License");
1745 * you may not use this file except in compliance with the License.
1746 * You may obtain a copy of the License at
1747 *
1748 *   http://www.apache.org/licenses/LICENSE-2.0
1749 *
1750 * Unless required by applicable law or agreed to in writing, software
1751 * distributed under the License is distributed on an "AS IS" BASIS,
1752 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1753 * See the License for the specific language governing permissions and
1754 * limitations under the License.
1755 */const k7="webStorageSupport";class F5e{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=dH,this._completeRedirectFn=a5e,this._overrideRedirectResult=s5e}
1755async _openPopup(e,n,r,s){var i;Ll((i=this.eventManagers[e._key()])===null||i===void 0?void 0:i.manager,"_initialize() not called before _openPopup()");const o=await aM(e,n,r,$_(),s);return N5e(e,o,yS())}async _openRedirect(e,n,r,s){await this._originValidation(e);const i=await aM(e,n,r,$_(),s);return V4e(i),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:s,promise:i}=this.eventManagers[n];return s?Promise.resolve(s):(Ll(i,"If manager is not set, promise should be"),i)}const r=this.initAndGetManager(e);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(e){const n=await C5e(e),r=new c5e(e);return n.register("authEvent",s=>(ft(s?.authEvent,e,"invalid-auth-event"),{status:r.onEvent(s.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=n,r}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(k7,{type:k7},s=>{var i;const o=(i=s?.[0])===null||i===void 0?void 0:i[k7];o!==void 0&&n(!!o),Yi(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=p5e(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return ZB()||qB()||hS()}}const j5e=F5e;var lM="@firebase/auth",cM="1.10.1";/**
1756 * @license
1757 * Copyright 2020 Google LLC
1758 *
1759 * Licensed under the Apache License, Version 2.0 (the "License");
1760 * you may not use this file except in compliance with the License.
1761 * You may obtain a copy of the License at
1762 *
1763 *   http://www.apache.org/licenses/LICENSE-2.0
1764 *
1765 * Unless required by applicable law or agreed to in writing, software
1766 * distributed under the License is distributed on an "AS IS" BASIS,
1767 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1768 * See the License for the specific language governing permissions and
1769 * limitations under the License.
1770 */class L5e{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const n=this.auth.onIdTokenChanged(r=>{e(r?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const n=this.internalListeners.get(e);n&&(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){ft(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
1771 * @license
1772 * Copyright 2020 Google LLC
1773 *
1774 * Licensed under the Apache License, Version 2.0 (the "License");
1775 * you may not use this file except in compliance with the License.
1776 * You may obtain a copy of the License at
1777 *
1778 *   http://www.apache.org/licenses/LICENSE-2.0
1779 *
1780 * Unless required by applicable law or agreed to in writing, software
1781 * distributed under the License is distributed on an "AS IS" BASIS,
1782 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1783 * See the License for the specific language governing permissions and
1784 * limitations under the License.
1785 */function z5e(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function V5e(t){Xp(new lf("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),s=e.getProvider("heartbeat"),i=e.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=r.options;ft(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});const c={apiKey:o,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:JB(t)},d=new Xye(r,s,i,c);return a4e(d,n),d},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),Xp(new lf("auth-internal",e=>
1785{const n=Jl(e.getProvider("auth").getImmediate());return(r=>new L5e(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),au(lM,cM,z5e(t)),au(lM,cM,"esm2017")}/**
1786 * @license
1787 * Copyright 2021 Google LLC
1788 *
1789 * Licensed under the Apache License, Version 2.0 (the "License");
1790 * you may not use this file except in compliance with the License.
1791 * You may obtain a copy of the License at
1792 *
1793 *   http://www.apache.org/licenses/LICENSE-2.0
1794 *
1795 * Unless required by applicable law or agreed to in writing, software
1796 * distributed under the License is distributed on an "AS IS" BASIS,
1797 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1798 * See the License for the specific language governing permissions and
1799 * limitations under the License.
1800 */const B5e=5*60,H5e=NB("authIdTokenMaxAge")||B5e;let uM=null;const U5e=t=>async e=>{const n=e&&await e.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>H5e)return;const s=n?.token;uM!==s&&(uM=s,await fetch(t,{method:s?"POST":"DELETE",headers:s?{Authorization:`Bearer ${s}`}:{}}))};function wH(t=OB()){const e=cS(t,"auth");if(e.isInitialized())return e.getImmediate();const n=o4e(t,{popupRedirectResolver:j5e,persistence:[Q4e,j4e,dH]}),r=NB("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const i=new URL(r,location.origin);if(location.origin===i.origin){const o=U5e(i.toString());D4e(n,o,()=>o(n.currentUser)),k4e(n,a=>o(a))}}const s=PB("auth");return s&&l4e(n,`http://${s}`),n}function W5e(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}Zye({loadJS(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=s=>{const i=Mo("internal-error");i.customData=s,n(i)},r.type="text/javascript",r.charset="UTF-8",W5e().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});V5e("Browser");var dM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license
1801Copyright The Closure Library Authors.
1802SPDX-License-Identifier: Apache-2.0
1803*/var lu,_H;(function(){var t;/** @license
1804
1805 Copyright The Closure Library Authors.
1806 SPDX-License-Identifier: Apache-2.0
1807*/function e(D,I){function T(){}T.prototype=I.prototype,D.D=I.prototype,D.prototype=new T,D.prototype.constructor=D,D.C=function(k,j,L){for(var V=Array(arguments.length-2),Y=2;Y<arguments.length;Y++)V[Y-2]=arguments[Y];return I.prototype[j].apply(k,V)}}function n(){this.blockSize=-1}function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}e(r,n),r.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function s(D,I,T){T||(T=0);var k=Array(16);if(typeof I=="string")for(var j=0;16>j;++j)k[j]=I.charCodeAt(T++)|I.charCodeAt(T++)<<8|I.charCodeAt(T++)<<16|I.charCodeAt(T++)<<24;else for(j=0;16>j;++j)k[j]=I[T++]|I[T++]<<8|I[T++]<<16|I[T++]<<24;I=D.g[0],T=D.g[1],j=D.g[2];var L=D.g[3],V=I+(L^T&(j^L))+k[0]+3614090360&4294967295;I=T+(V<<7&4294967295|V>>>25),V=L+(j^I&(T^j))+k[1]+3905402710&4294967295,L=I+(V<<12&4294967295|V>>>20),V=j+(T^L&(I^T))+k[2]+606105819&4294967295,j=L+(V<<17&4294967295|V>>>15),V=T+(I^j&(L^I))+k[3]+3250441966&4294967295,T=j+(V<<22&4294967295|V>>>10),V=I+(L^T&(j^L))+k[4]+4118548399&4294967295,I=T+(V<<7&4294967295|V>>>25),V=L+(j^I&(T^j))+k[5]+1200080426&4294967295,L=I+(V<<12&4294967295|V>>>20),V=j+(T^L&(I^T))+k[6]+2821735955&4294967295,j=L+(V<<17&4294967295|V>>>15),V=T+(I^j&(L^I))+k[7]+4249261313&4294967295,T=j+(V<<22&4294967295|V>>>10),V=I+(L^T&(j^L))+k[8]+1770035416&4294967295,I=T+(V<<7&4294967295|V>>>25),V=L+(j^I&(T^j))+k[9]+2336552879&4294967295,L=I+(V<<12&4294967295|V>>>20),V=j+(T^L&(I^T))+k[10]+4294925233&4294967295,j=L+(V<<17&4294967295|V>>>15),V=T+(I^j&(L^I))+k[11]+2304563134&4294967295,T=j+(V<<22&4294967295|V>>>10),V=I+(L^T&(j^L))+k[12]+1804603682&4294967295,I=T+(V<<7&4294967295|V>>>25),V=L+(j^I&(T^j))+k[13]+4254626195&4294967295,L=I+(V<<12&4294967295|V>>>20),V=j+(T^L&(I^T))+k[14]+2792965006&4294967295,j=L+(V<<17&4294967295|V>>>15),V=T+(I^j&(L^I))+k[15]+1236535329&4294967295,T=j+(V<<22&4294967295|V>>>10),V=I+(j^L&(T^j))+k[1]+4129170786&4294967295,I=T+(V<<5&4294967295|V>>>27),V=L+(T^j&(I^T))+k[6]+3225465664&4294967295,L=I+(V<<9&4294967295|V>>>23),V=j+(I^T&(L^I))+k[11]+643717713&4294967295,j=L+(V<<14&4294967295|V>>>18),V=T+(L^I&(j^L))+k[0]+3921069994&4294967295,T=j+(V<<20&4294967295|V>>>12),V=I+(j^L&(T^j))+k[5]+3593408605&4294967295,I=T+(V<<5&4294967295|V>>>27),V=L+(T^j&(I^T))+k[10]+38016083&4294967295,L=I+(V<<9&4294967295|V>>>23),V=j+(I^T&(L^I))+k[15]+3634488961&4294967295,j=L+(V<<14&4294967295|V>>>18),V=T+(L^I&(j^L))+k[4]+3889429448&4294967295,T=j+(V<<20&4294967295|V>>>12),V=I+(j^L&(T^j))+k[9]+568446438&4294967295,I=T+(V<<5&4294967295|V>>>27),V=L+(T^j&(I^T))+k[14]+3275163606&4294967295,L=I+(V<<9&4294967295|V>>>23),V=j+(I^T&(L^I))+k[3]+4107603335&4294967295,j=L+(V<<14&4294967295|V>>>18),V=T+(L^I&(j^L))+k[8]+1163531501&4294967295,T=j+(V<<20&4294967295|V>>>12),V=I+(j^L&(T^j))+k[13]+2850285829&4294967295,I=T+(V<<5&4294967295|V>>>27),V=L+(T^j&(I^T))+k[2]+4243563512&4294967295,L=I+(V<<9&4294967295|V>>>23),V=j+(I^T&(L^I))+k[7]+1735328473&4294967295,j=L+(V<<14&4294967295|V>>>18),V=T+(L^I&(j^L))+k[12]+2368359562&4294967295,T=j+(V<<20&4294967295|V>>>12),V=I+(T^j^L)+k[5]+4294588738&4294967295,I=T+(V<<4&4294967295|V>>>28),V=L+(I^T^j)+k[8]+2272392833&4294967295,L=I+(V<<11&4294967295|V>>>21),V=j+(L^I^T)+k[11]+1839030562&4294967295,j=L+(V<<16&4294967295|V>>>16),V=T+(j^L^I)+k[14]+4259657740&4294967295,T=j+(V<<23&4294967295|V>>>9),V=I+(T^j^L)+k[1]+2763975236&4294967295,I=T+(V<<4&4294967295|V>>>28),V=L+(I^T^j)+k[4]+1272893353&4294967295,L=I+(V<<11&4294967295|V>>>21),V=j+(L^I^T)+k[7]+4139469664&4294967295,j=L+(V<<16&4294967295|V>>>16),V=T+(j^L^I)+k[10]+3200236656&4294967295,T=j+(V<<23&4294967295|V>>>9),V=I+(T^j^L)+k[13]+681279174&4294967295,I=T+(V<<4&4294967295|V>>>28),V=L+(I^T^j)+k[0]+3936430074&4294967295,L=I+(V<<11&4294967295|V>>>21),V=j+(L^I^T)+k[3]+3572445317&4294967295,j=L+(V<<16&4294967295|V>>>16),V=T+(j^L^I)+k[6]+76029189&4294967295,T=j+(V<<23&4294967295|V>>>9),V=I+(T^j^L)+k[9]+3654602809&4294967295,I=T+(V<<4&4294967295|V>>>28),V=L+(I^T^j)+k[12]+3873151461&4294967295,L=I+(V<<11&4294967295|V>>>21),V=j+(L^I^T)+k[15]+530742520&4294967295,j=L+(V<<16&4294967295|V>>>16),V=T+(j^L^I)+k[2]+3299628645&4294967295,T=j+(V<<23&4294967295|V>>>9),V=I+(j^(T|~L))+k[0]+4096336452&4294967295,I=T+(V<<6&4294967295|V>>>26),V=L+(T^(I|~j))+k[7]+1126891415&4294967295,L=I+(V<<10&4294967295|V>>>22),V=j+(I^(L|~T))+k[14]+2878612391&4294967295,j=L+(V<<15&4294967295|V>>>17),V=T+(L^(j|~I))+k[5]+4237533241&4294967295,T=j+(V<<21&4294967295|V>>>11),V=I+(j^(T|~L))+k[12]+1700485571&4294967295,I=T+(V<<6&4294967295|V>>>26),V=L+(T^(I|~j))+k[3]+2399980690&4294967295,L=I+(V<<10&4294967295|V>>>22),V=j+(I^(L|~T))+k[10]+4293915773&4294967295,j=L+(V<<15&4294967295|V>>>17),V=T+(L^(j|~I))+k[1]+2240044497&4294967295,T=j+(V<<21&4294967295|V>>>11),V=I+(j^(T|~L))+k[8]+1873313359&4294967295,I=T+(V<<6&4294967295|V>>>26),V=L+(T^(I|~j))+k[15]+4264355552&4294967295,L=I+(V<<10&4294967295|V>>>22),V=j+(I^(L|~T))+k[6]+2734768916&4294967295,j=L+(V<<15&4294967295|V>>>17),V=T+(L^(j|~I))+k[13]+1309151649&4294967295,T=j+(V<<21&4294967295|V>>>11),V=I+(j^(T|~L))+k[4]+4149444226&4294967295,I=T+(V<<6&4294967295|V>>>26),V=L+(T^(I|~j))+k[11]+3174756917&4294967295,L=I+(V<<10&4294967295|V>>>22),V=j+(I^(L|~T))+k[2]+718787259&4294967295,j=L+(V<<15&4294967295|V>>>17),V=T+(L^(j|~I))+k[9]+3951481745&4294967295,D.g[0]=D.g[0]+I&4294967295,D.g[1]=D.g[1]+(j+(V<<21&4294967295|V>>>11))&4294967295,D.g[2]=D.g[2]+j&4294967295,D.g[3]=D.g[3]+L&4294967295}r.prototype.u=function(D,I){I===void 0&&(I=D.length);
vendor: 48,007 bytes, lines 1807-1841
1807for(var T=I-this.blockSize,k=this.B,j=this.h,L=0;L<I;){if(j==0)for(;L<=T;)s(this,D,L),L+=this.blockSize;if(typeof D=="string"){for(;L<I;)if(k[j++]=D.charCodeAt(L++),j==this.blockSize){s(this,k),j=0;break}}else for(;L<I;)if(k[j++]=D[L++],j==this.blockSize){s(this,k),j=0;break}}this.h=j,this.o+=I},r.prototype.v=function(){var D=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);D[0]=128;for(var I=1;I<D.length-8;++I)D[I]=0;var T=8*this.o;for(I=D.length-8;I<D.length;++I)D[I]=T&255,T/=256;for(this.u(D),D=Array(16),I=T=0;4>I;++I)for(var k=0;32>k;k+=8)D[T++]=this.g[I]>>>k&255;return D};function i(D,I){var T=a;return Object.prototype.hasOwnProperty.call(T,D)?T[D]:T[D]=I(D)}function o(D,I){this.h=I;for(var T=[],k=!0,j=D.length-1;0<=j;j--){var L=D[j]|0;k&&L==I||(T[j]=L,k=!1)}this.g=T}var a={};function c(D){return-128<=D&&128>D?i(D,function(I){return new o([I|0],0>I?-1:0)}):new o([D|0],0>D?-1:0)}function d(D){if(isNaN(D)||!isFinite(D))return m;if(0>D)return b(d(-D));for(var I=[],T=1,k=0;D>=T;k++)I[k]=D/T|0,T*=4294967296;return new o(I,0)}function p(D,I){if(D.length==0)throw Error("number format error: empty string");if(I=I||10,2>I||36<I)throw Error("radix out of range: "+I);if(D.charAt(0)=="-")return b(p(D.substring(1),I));if(0<=D.indexOf("-"))throw Error('number format error: interior "-" character');for(var T=d(Math.pow(I,8)),k=m,j=0;j<D.length;j+=8){var L=Math.min(8,D.length-j),V=parseInt(D.substring(j,j+L),I);8>L?(L=d(Math.pow(I,L)),k=k.j(L).add(d(V))):(k=k.j(T),k=k.add(d(V)))}return k}var m=c(0),v=c(1),w=c(16777216);t=o.prototype,t.m=function(){if(C(this))return-b(this).m();for(var D=0,I=1,T=0;T<this.g.length;T++){var k=this.i(T);D+=(0<=k?k:4294967296+k)*I,I*=4294967296}return D},t.toString=function(D){if(D=D||10,2>D||36<D)throw Error("radix out of range: "+D);if(E(this))return"0";if(C(this))return"-"+b(this).toString(D);for(var I=d(Math.pow(D,6)),T=this,k="";;){var j=z(T,I).g;T=S(T,j.j(I));var L=((0<T.g.length?T.g[0]:T.h)>>>0).toString(D);if(T=j,E(T))return L+k;for(;6>L.length;)L="0"+L;k=L+k}},t.i=function(D){return 0>D?0:D<this.g.length?this.g[D]:this.h};function E(D){if(D.h!=0)return!1;for(var I=0;I<D.g.length;I++)if(D.g[I]!=0)return!1;return!0}function C(D){return D.h==-1}t.l=function(D){return D=S(this,D),C(D)?-1:E(D)?0:1};function b(D){for(var I=D.g.length,T=[],k=0;k<I;k++)T[k]=~D.g[k];return new o(T,~D.h).add(v)}t.abs=function(){return C(this)?b(this):this},t.add=function(D){for(var I=Math.max(this.g.length,D.g.length),T=[],k=0,j=0;j<=I;j++){var L=k+(this.i(j)&65535)+(D.i(j)&65535),V=(L>>>16)+(this.i(j)>>>16)+(D.i(j)>>>16);k=V>>>16,L&=65535,V&=65535,T[j]=V<<16|L}return new o(T,T[T.length-1]&-2147483648?-1:0)};function S(D,I){return D.add(b(I))}t.j=function(D){if(E(this)||E(D))return m;if(C(this))return C(D)?b(this).j(b(D)):b(b(this).j(D));if(C(D))return b(this.j(b(D)));if(0>this.l(w)&&0>D.l(w))return d(this.m()*D.m());for(var I=this.g.length+D.g.length,T=[],k=0;k<2*I;k++)T[k]=0;for(k=0;k<this.g.length;k++)for(var j=0;j<D.g.length;j++){var L=this.i(k)>>>16,V=this.i(k)&65535,Y=D.i(j)>>>16,G=D.i(j)&65535;T[2*k+2*j]+=V*G,P(T,2*k+2*j),T[2*k+2*j+1]+=L*G,P(T,2*k+2*j+1),T[2*k+2*j+1]+=V*Y,P(T,2*k+2*j+1),T[2*k+2*j+2]+=L*Y,P(T,2*k+2*j+2)}for(k=0;k<I;k++)T[k]=T[2*k+1]<<16|T[2*k];for(k=I;k<2*I;k++)T[k]=0;return new o(T,0)};function P(D,I){for(;(D[I]&65535)!=D[I];)D[I+1]+=D[I]>>>16,D[I]&=65535,I++}function R(D,I){this.g=D,this.h=I}function z(D,I){if(E(I))throw Error("division by zero");if(E(D))return new R(m,m);if(C(D))return I=z(b(D),I),new R(b(I.g),b(I.h));if(C(I))return I=z(D,b(I)),new R(b(I.g),I.h);if(30<D.g.length){if(C(D)||C(I))throw Error("slowDivide_ only works with positive integers.");for(var T=v,k=I;0>=k.l(D);)T=O(T),k=O(k);var j=F(T,1),L=F(k,1);for(k=F(k,2),T=F(T,2);!E(k);){var V=L.add(k);0>=V.l(D)&&(j=j.add(T),L=V),k=F(k,1),T=F(T,1)}return I=S(D,j.j(I)),new R(j,I)}for(j=m;0<=D.l(I);){for(T=Math.max(1,Math.floor(D.m()/I.m())),k=Math.ceil(Math.log(T)/Math.LN2),k=48>=k?1:Math.pow(2,k-48),L=d(T),V=L.j(I);C(V)||0<V.l(D);)T-=k,L=d(T),V=L.j(I);E(L)&&(L=v),j=j.add(L),D=S(D,V)}return new R(j,D)}t.A=function(D){return z(this,D).h},t.and=function(D){for(var I=Math.max(this.g.length,D.g.length),T=[],k=0;k<I;k++)T[k]=this.i(k)&D.i(k);return new o(T,this.h&D.h)},t.or=function(D){for(var I=Math.max(this.g.length,D.g.length),T=[],k=0;k<I;k++)T[k]=this.i(k)|D.i(k);return new o(T,this.h|D.h)},t.xor=function(D){for(var I=Math.max(this.g.length,D.g.length),T=[],k=0;k<I;k++)T[k]=this.i(k)^D.i(k);return new o(T,this.h^D.h)};function O(D){for(var I=D.g.length+1,T=[],k=0;k<I;k++)T[k]=D.i(k)<<1|D.i(k-1)>>>31;return new o(T,D.h)}function F(D,I){var T=I>>5;I%=32;for(var k=D.g.length-T,j=[],L=0;L<k;L++)j[L]=0<I?D.i(L+T)>>>I|D.i(L+T+1)<<32-I:D.i(L+T);return new o(j,D.h)}r.prototype.digest=r.prototype.v,r.prototype.reset=r.prototype.s,r.prototype.update=r.prototype.u,_H=r,o.prototype.add=o.prototype.add,o.prototype.multiply=o.prototype.j,o.prototype.modulo=o.prototype.A,o.prototype.compare=o.prototype.l,o.prototype.toNumber=o.prototype.m,o.prototype.toString=o.prototype.toString,o.prototype.getBits=o.prototype.i,o.fromNumber=d,o.fromString=p,lu=o}).apply(typeof dM<"u"?dM:typeof self<"u"?self:typeof window<"u"?window:{});var p3=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license
1808Copyright The Closure Library Authors.
1809SPDX-License-Identifier: Apache-2.0
1810*/var EH,Q1,bH,ty,L_,SH,CH,TH;(function(){var t,e=typeof Object.defineProperties=="function"?Object.defineProperty:function(y,N,$){return y==Array.prototype||y==Object.prototype||(y[N]=$.value),y};function n(y){y=[typeof globalThis=="object"&&globalThis,y,typeof window=="object"&&window,typeof self=="object"&&self,typeof p3=="object"&&p3];for(var N=0;N<y.length;++N){var $=y[N];if($&&$.Math==Math)return $}throw Error("Cannot find global object")}var r=n(this);function s(y,N){if(N)e:{var $=r;y=y.split(".");for(var W=0;W<y.length-1;W++){var ae=y[W];if(!(ae in $))break e;$=$[ae]}y=y[y.length-1],W=$[y],N=N(W),N!=W&&N!=null&&e($,y,{configurable:!0,writable:!0,value:N})}}function i(y,N){y instanceof String&&(y+="");var $=0,W=!1,ae={next:function(){if(!W&&$<y.length){var pe=$++;return{value:N(pe,y[pe]),done:!1}}return W=!0,{done:!0,value:void 0}}};return ae[Symbol.iterator]=function(){return ae},ae}s("Array.prototype.values",function(y){return y||function(){return i(this,function(N,$){return $})}});/** @license
1811
1812 Copyright The Closure Library Authors.
1813 SPDX-License-Identifier: Apache-2.0
1814*/var o=o||{},a=this||self;function c(y){var N=typeof y;return N=N!="object"?N:y?Array.isArray(y)?"array":N:"null",N=="array"||N=="object"&&typeof y.length=="number"}function d(y){var N=typeof y;return N=="object"&&y!=null||N=="function"}function p(y,N,$){return y.call.apply(y.bind,arguments)}function m(y,N,$){if(!y)throw Error();if(2<arguments.length){var W=Array.prototype.slice.call(arguments,2);return function(){var ae=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(ae,W),y.apply(N,ae)}}return function(){return y.apply(N,arguments)}}function v(y,N,$){return v=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?p:m,v.apply(null,arguments)}function w(y,N){var $=Array.prototype.slice.call(arguments,1);return function(){var W=$.slice();return W.push.apply(W,arguments),y.apply(this,W)}}function E(y,N){function $(){}$.prototype=N.prototype,y.aa=N.prototype,y.prototype=new $,y.prototype.constructor=y,y.Qb=function(W,ae,pe){for(var De=Array(arguments.length-2),pn=2;pn<arguments.length;pn++)De[pn-2]=arguments[pn];return N.prototype[ae].apply(W,De)}}function C(y){const N=y.length;if(0<N){const $=Array(N);for(let W=0;W<N;W++)$[W]=y[W];return $}return[]}function b(y,N){for(let $=1;$<arguments.length;$++){const W=arguments[$];if(c(W)){const ae=y.length||0,pe=W.length||0;y.length=ae+pe;for(let De=0;De<pe;De++)y[ae+De]=W[De]}else y.push(W)}}class S{constructor(N,$){this.i=N,this.j=$,this.h=0,this.g=null}get(){let N;return 0<this.h?(this.h--,N=this.g,this.g=N.next,N.next=null):N=this.i(),N}}function P(y){return/^[\s\xa0]*$/.test(y)}function R(){var y=a.navigator;return y&&(y=y.userAgent)?y:""}function z(y){return z[" "](y),y}z[" "]=function(){};var O=R().indexOf("Gecko")!=-1&&!(R().toLowerCase().indexOf("webkit")!=-1&&R().indexOf("Edge")==-1)&&!(R().indexOf("Trident")!=-1||R().indexOf("MSIE")!=-1)&&R().indexOf("Edge")==-1;function F(y,N,$){for(const W in y)N.call($,y[W],W,y)}function D(y,N){for(const $ in y)N.call(void 0,y[$],$,y)}function I(y){const N={};for(const $ in y)N[$]=y[$];return N}const T="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function k(y,N){let $,W;for(let ae=1;ae<arguments.length;ae++){W=arguments[ae];for($ in W)y[$]=W[$];for(let pe=0;pe<T.length;pe++)$=T[pe],Object.prototype.hasOwnProperty.call(W,$)&&(y[$]=W[$])}}function j(y){var N=1;y=y.split(":");const $=[];for(;0<N&&y.length;)$.push(y.shift()),N--;return y.length&&$.push(y.join(":")),$}function L(y){a.setTimeout(()=>{throw y},0)}function V(){var y=ne;let N=null;return y.g&&(N=y.g,y.g=y.g.next,y.g||(y.h=null),N.next=null),N}class Y{constructor(){this.h=this.g=null}add(N,$){const W=G.get();W.set(N,$),this.h?this.h.next=W:this.g=W,this.h=W}}var G=new S(()=>new q,y=>y.reset());class q{constructor(){this.next=this.g=this.h=null}set(N,$){this.h=N,this.g=$,this.next=null}reset(){this.next=this.g=this.h=null}}let U,B=!1,ne=new Y,oe=()=>{const y=a.Promise.resolve(void 0);U=()=>{y.then(Q)}};var Q=()=>{for(var y;y=V();){try{y.h.call(y.g)}catch($){L($)}var N=G;N.j(y),100>N.h&&(N.h++,y.next=N.g,N.g=y)}B=!1};function ie(){this.s=this.s,this.C=this.C}ie.prototype.s=!1,ie.prototype.ma=function(){this.s||(this.s=!0,this.N())},ie.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function ue(y,N){this.type=y,this.g=this.target=N,this.defaultPrevented=!1}ue.prototype.h=function(){this.defaultPrevented=!0};var ge=function(){if(!a.addEventListener||!Object.defineProperty)return!1;var y=!1,N=Object.defineProperty({},"passive",{get:function(){y=!0}});try{const $=()=>{};a.addEventListener("test",$,N),a.removeEventListener("test",$,N)}catch{}return y}();function Ae(y,N){if(ue.call(this,y?y.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,y){var $=this.type=y.type,W=y.changedTouches&&y.changedTouches.length?y.changedTouches[0]:null;if(this.target=y.target||y.srcElement,this.g=N,N=y.relatedTarget){if(O){e:{try{z(N.nodeName);var ae=!0;break e}catch{}ae=!1}ae||(N=null)}}else $=="mouseover"?N=y.fromElement:$=="mouseout"&&(N=y.toElement);this.relatedTarget=N,W?(this.clientX=W.clientX!==void 0?W.clientX:W.pageX,this.clientY=W.clientY!==void 0?W.clientY:W.pageY,this.screenX=W.screenX||0,this.screenY=W.screenY||0):(this.clientX=y.clientX!==void 0?y.clientX:y.pageX,this.clientY=y.clientY!==void 0?y.clientY:y.pageY,this.screenX=y.screenX||0,this.screenY=y.screenY||0),this.button=y.button,this.key=y.key||"",this.ctrlKey=y.ctrlKey,this.altKey=y.altKey,this.shiftKey=y.shiftKey,this.metaKey=y.metaKey,this.pointerId=y.pointerId||0,this.pointerType=typeof y.pointerType=="string"?y.pointerType:Pe[y.pointerType]||"",this.state=y.state,this.i=y,y.defaultPrevented&&Ae.aa.h.call(this)}}E(Ae,ue);var Pe={2:"touch",3:"pen",4:"mouse"};Ae.prototype.h=function(){Ae.aa.h.call(this);var y=this.i;y.preventDefault?y.preventDefault():y.returnValue=!1};var he="closure_listenable_"+(1e6*Math.random()|0),xe=0;function Ne(y,N,$,W,ae){this.listener=y,this.proxy=null,this.src=N,this.type=$,this.capture=!!W,this.ha=ae,this.key=++xe,this.da=this.fa=!1}function ze(y){y.da=!0,y.listener=null,y.proxy=null,y.src=null,y.ha=null}function Ze(y){this.src=y,this.g={},this.h=0}Ze.prototype.add=function(y,N,$,W,ae){var pe=y.toString();y=this.g[pe],y||(y=this.g[pe]=[],this.h++);var De=Pt(y,N,W,ae);return-1<De?(N=y[De],$||(N.fa=!1)):(N=new Ne(N,this.src,pe,!!W,ae),N.fa=$,y.push(N)),N};function ut(y,N){var $=N.type;if($ in y.g){var W=y.g[$],ae=Array.prototype.indexOf.call(W,N,void 0),pe;(pe=0<=ae)&&Array.prototype.splice.call(W,ae,1),pe&&(ze(N),y.g[$].length==0&&(delete y.g[$],y.h--))}}function Pt(y,N,$,W){for(var ae=0;ae<y.length;++ae){var pe=y[ae];if(!pe.da&&pe.listener==N&&pe.capture==!!$&&pe.ha==W)return ae}return-1}var Rt="closure_lm_"+(1e6*Math.random()|0),Tt={};function on(y,N,$,W,ae){if(Array.isArray(N)){for(var pe=0;pe<N.length;pe++)on(y,N[pe],$,W,ae);return null}return $=Me($),y&&y[he]?y.K(N,$,d(W)?!!W.capture:!1,ae):Xt(y,N,$,!1,W,ae)}function Xt(y,N,$,W,ae,pe){if(!N)throw Error("Invalid event type");var De=d(ae)?!!ae.capture:!!ae,pn=se(y);if(pn||(y[Rt]=pn=new Ze(y)),$=pn.add(N,$,W,De,pe),$.proxy)return $;if(W=Pr(),$.proxy=W,W.src=y,W.listener=$,y.addEventListener)ge||(ae=De),ae===void 0&&(ae=!1),y.addEventListener(N.toString(),W,ae);else if(y.attachEvent)y.attachEvent(nt(N.toString()),W);else if(y.addListener&&y.removeListener)y.addListener(W);else throw Error("addEventListener and attachEvent are unavailable.");return $}function Pr(){function y($){return N.call(y.src,y.listener,$)}const N=K;return y}function Lr(y,N,$,W,ae){if(Array.isArray(N))for(var pe=0;pe<N.length;pe++)Lr(y,N[pe],$,W,ae);else W=d(W)?!!W.capture:!!W,$=Me($),y&&y[he]?(y=y.i,N=String(N).toString(),N in y.g&&(pe=y.g[N],$=Pt(pe,$,W,ae),-1<$&&(ze(pe[$]),Array.prototype.splice.call(pe,$,1),pe.length==0&&(delete y.g[N],y.h--)))):y&&(y=se(y))&&(N=y.g[N.toString()],y=-1,N&&(y=Pt(N,$,W,ae)),($=-1<y?N[y]:null)&&xt($))}function xt(y){if(typeof y!="number"&&y&&!y.da){var N=y.src;if(N&&N[he])ut(N.i,y);else{var $=y.type,W=y.proxy;N.removeEventListener?N.removeEventListener($,W,y.capture):N.detachEvent?N.detachEvent(nt($),W):N.addListener&&N.removeListener&&N.removeListener(W),($=se(N))?(ut($,y),$.h==0&&($.src=null,N[Rt]=null)):ze(y)}}}function nt(y){return y in Tt?Tt[y]:Tt[y]="on"+y}function K(y,N){if(y.da)y=!0;else{N=new Ae(N,this);var $=y.listener,W=y.ha||y.src;y.fa&&xt(y),y=$.call(W,N)}return y}function se(y){return y=y[Rt],y instanceof Ze?y:null}var ce="__closure_events_fn_"+(1e9*Math.random()>>>0);function Me(y){return typeof y=="function"?y:(y[ce]||(y[ce]=function(N){return y.handleEvent(N)}),y[ce])}function be(){ie.call(this),this.i=new Ze(this),this.M=this,this.F=null}E(be,ie),be.prototype[he]=!0,be.prototype.removeEventListener=function(y,N,$,W){Lr(this,y,N,$,W)};function we(y,N){var $,W=y.F;if(W)for($=[];W;W=W.F)$.push(W);if(y=y.M,W=N.type||N,typeof N=="string")N=new ue(N,y);else if(N instanceof ue)N.target=N.target||y;else{var ae=N;N=new ue(W,y),k(N,ae)}if(ae=!0,$)for(var pe=$.length-1;0<=pe;pe--){var De=N.g=$[pe];ae=je(De,W,!0,N)&&ae}if(De=N.g=y,ae=je(De,W,!0,N)&&ae,ae=je(De,W,!1,N)&&ae,$)for(pe=0;pe<$.length;pe++)De=N.g=$[pe],ae=je(De,W,!1,N)&&ae}be.prototype.N=function(){if(be.aa.N.call(this),this.i){var y=this.i,N;for(N in y.g){for(var $=y.g[N],W=0;W<$.length;W++)ze($[W]);delete y.g[N],y.h--}}this.F=null},be.prototype.K=function(y,N,$,W){return this.i.add(String(y),N,!1,$,W)},be.prototype.L=function(y,N,$,W){return this.i.add(String(y),N,!0,$,W)};function je(y,N,$,W){if(N=y.i.g[String(N)],!N)return!0;N=N.concat();for(var ae=!0,pe=0;pe<N.length;++pe){var De=N[pe];if(De&&!De.da&&De.capture==$){var pn=De.listener,vr=De.ha||De.src;De.fa&&ut(y.i,De),ae=pn.call(vr,W)!==!1&&ae}}return ae&&!W.defaultPrevented}function zt(y,N,$){if(typeof y=="function")$&&(y=v(y,$));else if(y&&typeof y.handleEvent=="function")y=v(y.handleEvent,y);else throw Error("Invalid listener argument");return 2147483647<Number(N)?-1:a.setTimeout(y,N||0)}function hn(y){y.g=zt(()=>{y.g=null,y.i&&(y.i=!1,hn(y))},y.l);const N=y.h;y.h=null,y.m.apply(null,N)}class kn extends ie{constructor(N,$){super(),this.m=N,this.l=$,this.h=null,this.i=!1,this.g=null}j(N){this.h=arguments,this.g?this.i=!0:hn(this)}N(){super.N(),this.g&&(a.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function za(y){ie.call(this),this.h=y,this.g={}}E(za,ie);var Va=[];function Ba(y){F(y.g,function(N,$){this.g.hasOwnProperty($)&&xt(N)},y),y.g={}}za.prototype.N=function(){za.aa.N.call(this),Ba(this)},za.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Bu=a.JSON.stringify,nc=a.JSON.parse,Hu=class{stringify(y){return a.JSON.stringify(y,void 0)}parse(y){return a.JSON.parse(y,void 0)}};function Go(){}Go.prototype.h=null;function zf(y){return y.h||(y.h=y.i())}function Vf(){}var Ei={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function Ko(){ue.call(this,"d")}E(Ko,ue);function Bf(){ue.call(this,"c")}E(Bf,ue);var Yo={},Gm=null;function Uu(){return Gm=Gm||new be}Yo.La="serverreachability";function Km(y){ue.call(this,Yo.La,y)}E(Km,ue);function Ha(y){const N=Uu();we(N,new Km(N))}Yo.STAT_EVENT="statevent";function Ym(y,N){ue.call(this,Yo.STAT_EVENT,y),this.stat=N}E(Ym,ue);function tr(y){const N=Uu();we(N,new Ym(N,y))}Yo.Ma="timingevent";function Hf(y,N){ue.call(this,Yo.Ma,y),this.size=N}E(Hf,ue);function Ji(y,N){if(typeof y!="function")throw Error("Fn must not be null and must be a function");return a.setTimeout(function(){y()},N)}function Wu(){this.g=!0}Wu.prototype.xa=function(){this.g=!1};function qu(y,N,$,W,ae,pe){y.info(function(){if(y.g)if(pe)for(var De="",pn=pe.split("&"),vr=0;vr<pn.length;vr++){var Zt=pn[vr].split("=");if(1<Zt.length){var Rr=Zt[0];Zt=Zt[1];var fr=Rr.split("_");De=2<=fr.length&&fr[1]=="type"?De+(Rr+"="+Zt+"&"):De+(Rr+"=redacted&")}}else De=null;else De=pe;return"XMLHTTP REQ ("+W+") [attempt "+ae+"]: "+N+`
1815`+$+`
1816`+De})}function Uf(y,N,$,W,ae,pe,De){y.info(function(){return"XMLHTTP RESP ("+W+") [ attempt "+ae+"]: "+N+`
1817`+$+`
1818`+pe+" "+De})}function eo(y,N,$,W){y.info(function(){return"XMLHTTP TEXT ("+N+"): "+K6(y,$)+(W?" "+W:"")})}function Qm(y,N){y.info(function(){return"TIMEOUT: "+N})}Wu.prototype.info=function(){};function K6(y,N){if(!y.g)return N;if(!N)return null;try{var $=JSON.parse(N);if($){for(y=0;y<$.length;y++)if(Array.isArray($[y])){var W=$[y];if(!(2>W.length)){var ae=W[1];if(Array.isArray(ae)&&!(1>ae.length)){var pe=ae[0];if(pe!="noop"&&pe!="stop"&&pe!="close")for(var De=1;De<ae.length;De++)ae[De]=""}}}}return Bu($)}catch{return N}}var Wf={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},_g={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"},to;function Gu(){}E(Gu,Go),Gu.prototype.g=function(){return new XMLHttpRequest},Gu.prototype.i=function(){return{}},to=new Gu;function no(y,N,$,W){this.j=y,this.i=N,this.l=$,this.R=W||1,this.U=new za(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new Eg}function Eg(){this.i=null,this.g="",this.h=!1}var Xm={},qf={};function Gf(y,N,$){y.L=1,y.v=ac(ti(N)),y.m=$,y.P=!0,Zm(y,null)}function Zm(y,N){y.F=Date.now(),bn(y),y.A=ti(y.v);var $=y.A,W=y.R;Array.isArray(W)||(W=[String(W)]),cc($.i,"t",W),y.C=0,$=y.j.J,y.h=new Eg,y.g=zg(y.j,$?N:null,!y.m),0<y.O&&(y.M=new kn(v(y.Y,y,y.g),y.O)),N=y.U,$=y.g,W=y.ca;var ae="readystatechange";Array.isArray(ae)||(ae&&(Va[0]=ae.toString()),ae=Va);for(var pe=0;pe<ae.length;pe++){var De=on($,ae[pe],W||N.handleEvent,!1,N.h||N);if(!De)break;N.g[De.key]=De}N=y.H?I(y.H):{},y.m?(y.u||(y.u="POST"),N["Content-Type"]="application/x-www-form-urlencoded",y.g.ea(y.A,y.u,y.m,N)):(y.u="GET",y.g.ea(y.A,y.u,null,N)),Ha(),qu(y.i,y.u,y.A,y.l,y.R,y.m)}no.prototype.ca=function(y){y=y.target;const N=this.M;N&&Ns(y)==3?N.j():this.Y(y)},no.prototype.Y=function(y){try{if(y==this.g)e:{const fr=Ns(this.g);var N=this.g.Ba();const Ci=this.g.Z();if(!(3>fr)&&(fr!=3||this.g&&(this.h.h||this.g.oa()||s1(this.g)))){this.J||fr!=4||N==7||(N==8||0>=Ci?Ha(3):Ha(2)),Ku(this);var $=this.g.Z();this.X=$;t:if(bg(this)){var W=s1(this.g);y="";var ae=W.length,pe=Ns(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){bi(this),rc(this);var De="";break t}this.h.i=new a.TextDecoder}for(N=0;N<ae;N++)this.h.h=!0,y+=this.h.i.decode(W[N],{stream:!(pe&&N==ae-1)});W.length=0,this.h.g+=y,this.C=0,De=this.h.g}else De=this.g.oa();if(this.o=$==200,Uf(this.i,this.u,this.A,this.l,this.R,fr,$),this.o){if(this.T&&!this.K){t:{if(this.g){var pn,vr=this.g;if((pn=vr.g?vr.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!P(pn)){var Zt=pn;break t}}Zt=null}if($=Zt)eo(this.i,this.l,$,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Jm(this,$);else{this.o=!1,this.s=3,tr(12),bi(this),rc(this);break e}}if(this.P){$=!0;let ri;for(;!this.J&&this.C<De.length;)if(ri=Y6(this,De),ri==qf){fr==4&&(this.s=4,tr(14),$=!1),eo(this.i,this.l,null,"[Incomplete Response]");break}else if(ri==Xm){this.s=4,tr(15),eo(this.i,this.l,De,"[Invalid Chunk]"),$=!1;break}else eo(this.i,this.l,ri,null),Jm(this,ri);if(bg(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),fr!=4||De.length!=0||this.h.h||(this.s=1,tr(16),$=!1),this.o=this.o&&$,!$)eo(this.i,this.l,De,"[Invalid Chunked Response]"),bi(this),rc(this);else if(0<De.length&&!this.W){this.W=!0;var Rr=this.j;Rr.g==this&&Rr.ba&&!Rr.M&&(Rr.j.info("Great, no buffering proxy detected. Bytes received: "+De.length),o1(Rr),Rr.M=!0,tr(11))}}else eo(this.i,this.l,De,null),Jm(this,De);fr==4&&bi(this),this.o&&!this.J&&(fr==4?sh(this.j,this):(this.o=!1,bn(this)))}else Jf(this.g),$==400&&0<De.indexOf("Unknown SID")?(this.s=3,tr(12)):(this.s=0,tr(13)),bi(this),rc(this)}}}catch{}finally{}};function bg(y){return y.g?y.u=="GET"&&y.L!=2&&y.j.Ca:!1}function Y6(y,N){var $=y.C,W=N.indexOf(`
1819`,$);return W==-1?qf:($=Number(N.substring($,W)),isNaN($)?Xm:(W+=1,W+$>N.length?qf:(N=N.slice(W,W+$),y.C=W+$,N)))}no.prototype.cancel=function(){this.J=!0,bi(this)};function bn(y){y.S=Date.now()+y.I,Sg(y,y.I)}function Sg(y,N){if(y.B!=null)throw Error("WatchDog timer not null");y.B=Ji(v(y.ba,y),N)}function Ku(y){y.B&&(a.clearTimeout(y.B),y.B=null)}no.prototype.ba=function(){this.B=null;const y=Date.now();0<=y-this.S?(Qm(this.i,this.A),this.L!=2&&(Ha(),tr(17)),bi(this),this.s=2,rc(this)):Sg(this,this.S-y)};function rc(y){y.j.G==0||y.J||sh(y.j,y)}function bi(y){Ku(y);var N=y.M;N&&typeof N.ma=="function"&&N.ma(),y.M=null,Ba(y.U),y.g&&(N=y.g,y.g=null,N.abort(),N.ma())}function Jm(y,N){try{var $=y.j;if($.G!=0&&($.g==y||hs($.h,y))){if(!y.K&&hs($.h,y)&&$.G==3){try{var W=$.Da.g.parse(N)}catch{W=null}if(Array.isArray(W)&&W.length==3){var ae=W;if(ae[0]==0){e:if(!$.u){if($.g)if($.g.F+3e3<y.F)rh($),ao($);else break e;nh($),tr(18)}}else $.za=ae[1],0<$.za-$.T&&37500>ae[2]&&$.F&&$.v==0&&!$.C&&($.C=Ji(v($.Za,$),6e3));if(1>=Tg($.h)&&$.ca){try{$.ca()}catch{}$.ca=void 0}}else Ka($,11)}else if((y.K||$.g==y)&&rh($),!P(N))for(ae=$.Da.g.parse(N),N=0;N<ae.length;N++){let Zt=ae[N];if($.T=Zt[0],Zt=Zt[1],$.G==2)if(Zt[0]=="c"){$.K=Zt[1],$.ia=Zt[2];const Rr=Zt[3];Rr!=null&&($.la=Rr,$.j.info("VER="+$.la));const fr=Zt[4];fr!=null&&($.Aa=fr,$.j.info("SVER="+$.Aa));const Ci=Zt[5];Ci!=null&&typeof Ci=="number"&&0<Ci&&(W=1.5*Ci,$.L=W,$.j.info("backChannelRequestTimeoutMs_="+W)),W=$;const ri=y.g;if(ri){const td=ri.g?ri.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(td){var pe=W.h;pe.g||td.indexOf("spdy")==-1&&td.indexOf("quic")==-1&&td.indexOf("h2")==-1||(pe.j=pe.l,pe.g=new Set,pe.h&&(e1(pe,pe.h),pe.h=null))}if(W.D){const oh=ri.g?ri.g.getResponseHeader("X-HTTP-Session-Id"):null;oh&&(W.ya=oh,_n(W.I,W.D,oh))}}$.G=3,$.l&&$.l.ua(),$.ba&&($.R=Date.now()-y.F,$.j.info("Handshake RTT: "+$.R+"ms")),W=$;var De=y;if(W.qa=Lg(W,W.J?W.ia:null,W.W),De.K){Ag(W.h,De);var pn=De,vr=W.L;vr&&(pn.I=vr),pn.B&&(Ku(pn),bn(pn)),W.g=De}else ed(W);0<$.i.length&&Jo($)}else Zt[0]!="stop"&&Zt[0]!="close"||Ka($,7);else $.G==3&&(Zt[0]=="stop"||Zt[0]=="close"?Zt[0]=="stop"?Ka($,7):Vr($):Zt[0]!="noop"&&$.l&&$.l.ta(Zt),$.v=0)}}Ha(4)}catch{}}var Cg=class{constructor(y,N){this.g=y,this.map=N}};function Yu(y){this.l=y||10,a.PerformanceNavigationTiming?(y=a.performance.getEntriesByType("navigation"),y=0<y.length&&(y[0].nextHopProtocol=="hq"||y[0].nextHopProtocol=="h2")):y=!!(a.chrome&&a.chrome.loadTimes&&a.chrome.loadTimes()&&a.chrome.loadTimes().wasFetchedViaSpdy),this.j=y?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function ei(y){return y.h?!0:y.g?y.g.size>=y.j:!1}function Tg(y){return y.h?1:y.g?y.g.size:0}function hs(y,N){return y.h?y.h==N:y.g?y.g.has(N):!1}function e1(y,N){y.g?y.g.add(N):y.h=N}function Ag(y,N){y.h&&y.h==N?y.h=null:y.g&&y.g.has(N)&&y.g.delete(N)}Yu.prototype.cancel=function(){if(this.i=Ig(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const y of this.g.values())y.cancel();this.g.clear()}};function Ig(y){if(y.h!=null)return y.i.concat(y.h.D);if(y.g!=null&&y.g.size!==0){let N=y.i;for(const $ of y.g.values())N=N.concat($.D);return N}return C(y.i)}function Kf(y){if(y.V&&typeof y.V=="function")return y.V();if(typeof Map<"u"&&y instanceof Map||typeof Set<"u"&&y instanceof Set)return Array.from(y.values());if(typeof y=="string")return y.split("");if(c(y)){for(var N=[],$=y.length,W=0;W<$;W++)N.push(y[W]);return N}N=[],$=0;for(W in y)N[$++]=y[W];return N}function Yf(y){if(y.na&&typeof y.na=="function")return y.na();if(!y.V||typeof y.V!="function"){if(typeof Map<"u"&&y instanceof Map)return Array.from(y.keys());if(!(typeof Set<"u"&&y instanceof Set)){if(c(y)||typeof y=="string"){var N=[];y=y.length;for(var $=0;$<y;$++)N.push($);return N}N=[],$=0;for(const W in y)N[$++]=W;return N}}}function sc(y,N){if(y.forEach&&typeof y.forEach=="function")y.forEach(N,void 0);else if(c(y)||typeof y=="string")Array.prototype.forEach.call(y,N,void 0);else for(var $=Yf(y),W=Kf(y),ae=W.length,pe=0;pe<ae;pe++)N.call(void 0,W[pe],$&&$[pe],y)}var Qu=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Q6(y,N){if(y){y=y.split("&");for(var $=0;$<y.length;$++){var W=y[$].indexOf("="),ae=null;if(0<=W){var pe=y[$].substring(0,W);ae=y[$].substring(W+1)}else pe=y[$];N(pe,ae?decodeURIComponent(ae.replace(/\+/g," ")):"")}}}function Ua(y){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,y instanceof Ua){this.h=y.h,Xu(this,y.j),this.o=y.o,this.g=y.g,ic(this,y.s),this.l=y.l;var N=y.i,$=new Qo;$.i=N.i,N.g&&($.g=new Map(N.g),$.h=N.h),oc(this,$),this.m=y.m}else y&&(N=String(y).match(Qu))?(this.h=!1,Xu(this,N[1]||"",!0),this.o=Kt(N[2]||""),this.g=Kt(N[3]||"",!0),ic(this,N[4]),this.l=Kt(N[5]||"",!0),oc(this,N[6]||"",!0),this.m=Kt(N[7]||"")):(this.h=!1,this.i=new Qo(null,this.h))}Ua.prototype.toString=function(){var y=[],N=this.j;N&&y.push(lc(N,Qf,!0),":");var $=this.g;return($||N=="file")&&(y.push("//"),(N=this.o)&&y.push(lc(N,Qf,!0),"@"),y.push(encodeURIComponent(String($)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),$=this.s,$!=null&&y.push(":",String($))),($=this.l)&&(this.g&&$.charAt(0)!="/"&&y.push("/"),y.push(lc($,$.charAt(0)=="/"?Ng:Rg,!0))),($=this.i.toString())&&y.push("?",$),($=this.m)&&y.push("#",lc($,t1)),y.join("")};function ti(y){return new Ua(y)}function Xu(y,N,$){y.j=$?Kt(N,!0):N,y.j&&(y.j=y.j.replace(/:$/,""))}function ic(y,N){if(N){if(N=Number(N),isNaN(N)||0>N)throw Error("Bad port number "+N);y.s=N}else y.s=null}function oc(y,N,$){N instanceof Qo?(y.i=N,Xo(y.i,y.h)):($||(N=lc(N,Mg)),y.i=new Qo(N,y.h))}function _n(y,N,$){y.i.set(N,$)}function ac(y){return _n(y,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),y}function Kt(y,N){return y?N?decodeURI(y.replace(/%25/g,"%2525")):decodeURIComponent(y):""}function lc(y,N,$){return typeof y=="string"?(y=encodeURI(y).replace(N,Pg),$&&(y=y.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),y):null}function Pg(y){return y=y.charCodeAt(0),"%"+(y>>4&15).toString(16)+(y&15).toString(16)}var Qf=/[#\/\?@]/g,Rg=/[#\?:]/g,Ng=/[#\?]/g,Mg=/[#\?@]/g,t1=/#/g;function Qo(y,N){this.h=this.g=null,this.i=y||null,this.j=!!N}function zr(y){y.g||(y.g=new Map,y.h=0,y.i&&Q6(y.i,function(N,$){y.add(decodeURIComponent(N.replace(/\+/g," ")),$)}))}t=Qo.prototype,t.add=function(y,N){zr(this),this.i=null,y=Si(this,y);var $=this.g.get(y);return $||this.g.set(y,$=[]),$.push(N),this.h+=1,this};function ro(y,N){zr(y),N=Si(y,N),y.g.has(N)&&(y.i=null,y.h-=y.g.get(N).length,y.g.delete(N))}function so(y,N){return zr(y),N=Si(y,N),y.g.has(N)}t.forEach=function(y,N){zr(this),this.g.forEach(function($,W){$.forEach(function(ae){y.call(N,ae,W,this)},this)},this)},t.na=function(){zr(this);const y=Array.from(this.g.values()),N=Array.from(this.g.keys()),$=[];for(let W=0;W<N.length;W++){const ae=y[W];for(let pe=0;pe<ae.length;pe++)$.push(N[W])}return $},t.V=function(y){zr(this);let N=[];if(typeof y=="string")so(this,y)&&(N=N.concat(this.g.get(Si(this,y))));else{y=Array.from(this.g.values());for(let $=0;$<y.length;$++)N=N.concat(y[$])}return N},t.set=function(y,N){return zr(this),this.i=null,y=Si(this,y),so(this,y)&&(this.h-=this.g.get(y).length),this.g.set(y,[N]),this.h+=1,this},t.get=function(y,N){return y?(y=this.V(y),0<y.length?String(y[0]):N):N};function cc(y,N,$){ro(y,N),0<$.length&&(y.i=null,y.g.set(Si(y,N),C($)),y.h+=$.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const y=[],N=Array.from(this.g.keys());for(var $=0;$<N.length;$++){var W=N[$];const pe=encodeURIComponent(String(W)),De=this.V(W);for(W=0;W<De.length;W++){var ae=pe;De[W]!==""&&(ae+="="+encodeURIComponent(String(De[W]))),y.push(ae)}}return this.i=y.join("&")};function Si(y,N){return N=String(N),y.j&&(N=N.toLowerCase()),N}function Xo(y,N){N&&!y.j&&(zr(y),y.i=null,y.g.forEach(function($,W){var ae=W.toLowerCase();W!=ae&&(ro(this,W),cc(this,ae,$))},y)),y.j=N}function X6(y,N){const $=new Wu;if(a.Image){const W=new Image;W.onload=w(Rs,$,"TestLoadImage: loaded",!0,N,W),W.onerror=w(Rs,$,"TestLoadImage: error",!1,N,W),W.onabort=w(Rs,$,"TestLoadImage: abort",!1,N,W),W.ontimeout=w(Rs,$,"TestLoadImage: timeout",!1,N,W),a.setTimeout(function(){W.ontimeout&&W.ontimeout()},1e4),W.src=y}else N(!1)}function kg(y,N){const $=new Wu,W=new AbortController,ae=setTimeout(()=>{W.abort(),Rs($,"TestPingServer: timeout",!1,N)},1e4);fetch(y,{signal:W.signal}).then(pe=>{clearTimeout(ae),pe.ok?Rs($,"TestPingServer: ok",!0,N):Rs($,"TestPingServer: server error",!1,N)}).catch(()=>{clearTimeout(ae),Rs($,"TestPingServer: error",!1,N)})}function Rs(y,N,$,W,ae){try{ae&&(ae.onload=null,ae.onerror=null,ae.onabort=null,ae.ontimeout=null),W($)}catch{}}function Z6(){this.g=new Hu}function Dg(y,N,$){const W=$||"";try{sc(y,function(ae,pe){let De=ae;d(ae)&&(De=Bu(ae)),N.push(W+pe+"="+encodeURIComponent(De))})}catch(ae){throw N.push(W+"type="+encodeURIComponent("_badmap")),ae}}function Wa(y){this.l=y.Ub||null,this.j=y.eb||!1}E(Wa,Go),Wa.prototype.g=function(){return new Zu(this.l,this.j)},Wa.prototype.i=function(y){return function(){return y}}({});function Zu(y,N){be.call(this),this.D=y,this.o=N,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}E(Zu,be),t=Zu.prototype,t.open=function(y,N){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.B=y,this.A=N,this.readyState=1,oo(this)},t.send=function(y){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const N={headers:this.u,method:this.B,credentials:this.m,cache:void 0};y&&(N.body=y),(this.D||a).fetch(new Request(this.A,N)).then(this.Sa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&this.readyState!=4&&(this.g=!1,io(this)),this.readyState=0},t.Sa=function(y){if(this.g&&(this.l=y,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=y.headers,this.readyState=2,oo(this)),this.g&&(this.readyState=3,oo(this),this.g)))if(this.responseType==="arraybuffer")y.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof a.ReadableStream<"u"&&"body"in y){if(this.j=y.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;Og(this)}else y.text().then(this.Ra.bind(this),this.ga.bind(this))};function Og(y){y.j.read().then(y.Pa.bind(y)).catch(y.ga.bind(y))}t.Pa=function(y){if(this.g){if(this.o&&y.value)this.response.push(y.value);else if(!this.o){var N=y.value?y.value:new Uint8Array(0);(N=this.v.decode(N,{stream:!y.done}))&&(this.response=this.responseText+=N)}y.done?io(this):oo(this),this.readyState==3&&Og(this)}},t.Ra=function(y){this.g&&(this.response=this.responseText=y,io(this))},t.Qa=function(y){this.g&&(this.response=y,io(this))},t.ga=function(){this.g&&io(this)};function io(y){y.readyState=4,y.l=null,y.j=null,y.v=null,oo(y)}t.setRequestHeader=function(y,N){this.u.append(y,N)},t.getResponseHeader=function(y){return this.h&&this.h.get(y.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const y=[],N=this.h.entries();for(var $=N.next();!$.done;)$=$.value,y.push($[0]+": "+$[1]),$=N.next();return y.join(`\r
1820`)};function oo(y){y.onreadystatechange&&y.onreadystatechange.call(y)}Object.defineProperty(Zu.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(y){this.m=y?"include":"same-origin"}});function qa(y){let N="";return F(y,function($,W){N+=W,N+=":",N+=$,N+=`\r
1821`}),N}function uc(y,N,$){e:{for(W in $){var W=!1;break e}W=!0}W||($=qa($),typeof y=="string"?$!=null&&encodeURIComponent(String($)):_n(y,N,$))}function Dn(y){be.call(this),this.headers=new Map,this.o=y||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}E(Dn,be);var J6=/^https?$/i,n1=["POST","PUT"];t=Dn.prototype,t.Ha=function(y){this.J=y},t.ea=function(y,N,$,W){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+y);N=N?N.toUpperCase():"GET",this.D=y,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():to.g(),this.v=this.o?zf(this.o):zf(to),this.g.onreadystatechange=v(this.Ea,this);try{this.B=!0,this.g.open(N,String(y),!0),this.B=!1}catch(pe){Ju(this,pe);return}if(y=$||"",$=new Map(this.headers),W)if(Object.getPrototypeOf(W)===Object.prototype)for(var ae in W)$.set(ae,W[ae]);else if(typeof W.keys=="function"&&typeof W.get=="function")for(const pe of W.keys())$.set(pe,W.get(pe));else throw Error("Unknown input type for opt_headers: "+String(W));W=Array.from($.keys()).find(pe=>pe.toLowerCase()=="content-type"),ae=a.FormData&&y instanceof a.FormData,!(0<=Array.prototype.indexOf.call(n1,N,void 0))||W||ae||$.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[pe,De]of $)this.g.setRequestHeader(pe,De);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{Zf(this),this.u=!0,this.g.send(y),this.u=!1}catch(pe){Ju(this,pe)}};function Ju(y,N){y.h=!1,y.g&&(y.j=!0,y.g.abort(),y.j=!1),y.l=N,y.m=5,Xf(y),ni(y)}function Xf(y){y.A||(y.A=!0,we(y,"complete"),we(y,"error"))}t.abort=function(y){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=y||7,we(this,"complete"),we(this,"abort"),ni(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),ni(this,!0)),Dn.aa.N.call(this)},t.Ea=function(){this.s||(this.B||this.u||this.j?r1(this):this.bb())},t.bb=function(){r1(this)};function r1(y){if(y.h&&typeof o<"u"&&(!y.v[1]||Ns(y)!=4||y.Z()!=2)){if(y.u&&Ns(y)==4)zt(y.Ea,0,y);else if(we(y,"readystatechange"),Ns(y)==4){y.h=!1;try{const De=y.Z();e:switch(De){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var N=!0;break e;default:N=!1}var $;if(!($=N)){var W;if(W=De===0){var ae=String(y.D).match(Qu)[1]||null;!ae&&a.self&&a.self.location&&(ae=a.self.location.protocol.slice(0,-1)),W=!J6.test(ae?ae.toLowerCase():"")}$=W}if($)we(y,"complete"),we(y,"success");else{y.m=6;try{var pe=2<Ns(y)?y.g.statusText:""}catch{pe=""}y.l=pe+" ["+y.Z()+"]",Xf(y)}}finally{ni(y)}}}}function ni(y,N){if(y.g){Zf(y);const $=y.g,W=y.v[0]?()=>{}:null;y.g=null,y.v=null,N||we(y,"ready");try{$.onreadystatechange=W}catch{}}}function Zf(y){y.I&&(a.clearTimeout(y.I),y.I=null)}t.isActive=function(){return!!this.g};function Ns(y){return y.g?y.g.readyState:0}t.Z=function(){try{return 2<Ns(this)?this.g.status:-1}catch{return-1}},t.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},t.Oa=function(y){if(this.g){var N=this.g.responseText;return y&&N.indexOf(y)==0&&(N=N.substring(y.length)),nc(N)}};function s1(y){try{if(!y.g)return null;if("response"in y.g)return y.g.response;switch(y.H){case"":case"text":return y.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in y.g)return y.g.mozResponseArrayBuffer}return null}catch{return null}}function Jf(y){const N={};y=(y.g&&2<=Ns(y)&&y.g.getAllResponseHeaders()||"").split(`\r
1822`);for(let W=0;W<y.length;W++){if(P(y[W]))continue;var $=j(y[W]);const ae=$[0];if($=$[1],typeof $!="string")continue;$=$.trim();const pe=N[ae]||[];N[ae]=pe,pe.push($)}D(N,function(W){return W.join(", ")})}t.Ba=function(){return this.m},t.Ka=function(){return typeof this.l=="string"?this.l:String(this.l)};function Zo(y,N,$){return $&&$.internalChannelParams&&$.internalChannelParams[y]||N}function i1(y){this.Aa=0,this.i=[],this.j=new Wu,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Zo("failFast",!1,y),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Zo("baseRetryDelayMs",5e3,y),this.cb=Zo("retryDelaySeedMs",1e4,y),this.Wa=Zo("forwardChannelMaxRetries",2,y),this.wa=Zo("forwardChannelRequestTimeoutMs",2e4,y),this.pa=y&&y.xmlHttpFactory||void 0,this.Xa=y&&y.Tb||void 0,this.Ca=y&&y.useFetchStreams||!1,this.L=void 0,this.J=y&&y.supportsCrossDomainXhr||!1,this.K="",this.h=new Yu(y&&y.concurrentRequestLimit),this.Da=new Z6,this.P=y&&y.fastHandshake||!1,this.O=y&&y.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=y&&y.Rb||!1,y&&y.xa&&this.j.xa(),y&&y.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&y&&y.detectBufferingProxy||!1,this.ja=void 0,y&&y.longPollingTimeout&&0<y.longPollingTimeout&&(this.ja=y.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}t=i1.prototype,t.la=8,t.G=1,t.connect=function(y,N,$,W){tr(0),this.W=y,this.H=N||{},$&&W!==void 0&&(this.H.OSID=$,this.H.OAID=W),this.F=this.X,this.I=Lg(this,null,this.W),Jo(this)};function Vr(y){if(eh(y),y.G==3){var N=y.U++,$=ti(y.I);if(_n($,"SID",y.K),_n($,"RID",N),_n($,"TYPE","terminate"),Ga(y,$),N=new no(y,y.j,N),N.L=2,N.v=ac(ti($)),$=!1,a.navigator&&a.navigator.sendBeacon)try{$=a.navigator.sendBeacon(N.v.toString(),"")}catch{}!$&&a.Image&&(new Image().src=N.v,$=!0),$||(N.g=zg(N.j,null),N.g.ea(N.v)),N.F=Date.now(),bn(N)}jg(y)}function ao(y){y.g&&(o1(y),y.g.cancel(),y.g=null)}function eh(y){ao(y),y.u&&(a.clearTimeout(y.u),y.u=null),rh(y),y.h.cancel(),y.s&&(typeof y.s=="number"&&a.clearTimeout(y.s),y.s=null)}function Jo(y){if(!ei(y.h)&&!y.s){y.s=!0;var N=y.Ga;U||oe(),B||(U(),B=!0),ne.add(N,y),y.B=0}}function ex(y,N){return Tg(y.h)>=y.h.j-(y.s?1:0)?!1:y.s?(y.i=N.D.concat(y.i),!0):y.G==1||y.G==2||y.B>=(y.Va?0:y.Wa)?!1:(y.s=Ji(v(y.Ga,y,N),Fg(y,y.B)),y.B++,!0)}t.Ga=function(y){if(this.s)if(this.s=null,this.G==1){if(!y){this.U=Math.floor(1e5*Math.random()),y=this.U++;const ae=new no(this,this.j,y);let pe=this.o;if(this.S&&(pe?(pe=I(pe),k(pe,this.S)):pe=this.S),this.m!==null||this.O||(ae.H=pe,pe=null),this.P)e:{for(var N=0,$=0;$<this.i.length;$++){t:{var W=this.i[$];if("__data__"in W.map&&(W=W.map.__data__,typeof W=="string")){W=W.length;break t}W=void 0}if(W===void 0)break;if(N+=W,4096<N){N=$;break e}if(N===4096||$===this.i.length-1){N=$+1;break e}}N=1e3}else N=1e3;N=dc(this,ae,N),$=ti(this.I),_n($,"RID",y),_n($,"CVER",22),this.D&&_n($,"X-HTTP-Session-Id",this.D),Ga(this,$),pe&&(this.O?N="headers="+encodeURIComponent(String(qa(pe)))+"&"+N:this.m&&uc($,this.m,pe)),e1(this.h,ae),this.Ua&&_n($,"TYPE","init"),this.P?(_n($,"$req",N),_n($,"SID","null"),ae.T=!0,Gf(ae,$,null)):Gf(ae,$,N),this.G=2}}else this.G==3&&(y?th(this,y):this.i.length==0||ei(this.h)||th(this))};function th(y,N){var $;N?$=N.l:$=y.U++;const W=ti(y.I);_n(W,"SID",y.K),_n(W,"RID",$),_n(W,"AID",y.T),Ga(y,W),y.m&&y.o&&uc(W,y.m,y.o),$=new no(y,y.j,$,y.B+1),y.m===null&&($.H=y.o),N&&(y.i=N.D.concat(y.i)),N=dc(y,$,1e3),$.I=Math.round(.5*y.wa)+Math.round(.5*y.wa*Math.random()),e1(y.h,$),Gf($,W,N)}function Ga(y,N){y.H&&F(y.H,function($,W){_n(N,W,$)}),y.l&&sc({},function($,W){_n(N,W,$)})}function dc(y,N,$){$=Math.min(y.i.length,$);var W=y.l?v(y.l.Na,y.l,y):null;e:{var ae=y.i;let pe=-1;for(;;){const De=["count="+$];pe==-1?0<$?(pe=ae[0].g,De.push("ofs="+pe)):pe=0:De.push("ofs="+pe);let pn=!0;for(let vr=0;vr<$;vr++){let Zt=ae[vr].g;const Rr=ae[vr].map;if(Zt-=pe,0>Zt)pe=Math.max(0,ae[vr].g-100),pn=!1;else try{Dg(Rr,De,"req"+Zt+"_")}catch{W&&W(Rr)}}if(pn){W=De.join("&");break e}}}return y=y.i.splice(0,$),N.D=y,W}function ed(y){if(!y.g&&!y.u){y.Y=1;var N=y.Fa;U||oe(),B||(U(),B=!0),ne.add(N,y),y.v=0}}function nh(y){return y.g||y.u||3<=y.v?!1:(y.Y++,y.u=Ji(v(y.Fa,y),Fg(y,y.v)),y.v++,!0)}t.Fa=function(){if(this.u=null,$g(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var y=2*this.R;this.j.info("BP detection timer enabled: "+y),this.A=Ji(v(this.ab,this),y)}},t.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,tr(10),ao(this),$g(this))};function o1(y){y.A!=null&&(a.clearTimeout(y.A),y.A=null)}function $g(y){y.g=new no(y,y.j,"rpc",y.Y),y.m===null&&(y.g.H=y.o),y.g.O=0;var N=ti(y.qa);_n(N,"RID","rpc"),_n(N,"SID",y.K),_n(N,"AID",y.T),_n(N,"CI",y.F?"0":"1"),!y.F&&y.ja&&_n(N,"TO",y.ja),_n(N,"TYPE","xmlhttp"),Ga(y,N),y.m&&y.o&&uc(N,y.m,y.o),y.L&&(y.g.I=y.L);var $=y.g;y=y.ia,$.L=1,$.v=ac(ti(N)),$.m=null,$.P=!0,Zm($,y)}t.Za=function(){this.C!=null&&(this.C=null,ao(this),nh(this),tr(19))};function rh(y){y.C!=null&&(a.clearTimeout(y.C),y.C=null)}function sh(y,N){var $=null;if(y.g==N){rh(y),o1(y),y.g=null;var W=2}else if(hs(y.h,N))$=N.D,Ag(y.h,N),W=1;else return;if(y.G!=0){if(N.o)if(W==1){$=N.m?N.m.length:0,N=Date.now()-N.F;var ae=y.B;W=Uu(),we(W,new Hf(W,$)),Jo(y)}else ed(y);else if(ae=N.s,ae==3||ae==0&&0<N.X||!(W==1&&ex(y,N)||W==2&&nh(y)))switch($&&0<$.length&&(N=y.h,N.i=N.i.concat($)),ae){case 1:Ka(y,5);break;case 4:Ka(y,10);break;case 3:Ka(y,6);break;default:Ka(y,2)}}}function Fg(y,N){let $=y.Ta+Math.floor(Math.random()*y.cb);return y.isActive()||($*=2),$*N}function Ka(y,N){if(y.j.info("Error code "+N),N==2){var $=v(y.fb,y),W=y.Xa;const ae=!W;W=new Ua(W||"//www.google.com/images/cleardot.gif"),a.location&&a.location.protocol=="http"||Xu(W,"https"),ac(W),ae?X6(W.toString(),$):kg(W.toString(),$)}else tr(2);y.G=0,y.l&&y.l.sa(N),jg(y),eh(y)}t.fb=function(y){y?(this.j.info("Successfully pinged google.com"),tr(2)):(this.j.info("Failed to ping google.com"),tr(1))};function jg(y){if(y.G=0,y.ka=[],y.l){const N=Ig(y.h);(N.length!=0||y.i.length!=0)&&(b(y.ka,N),b(y.ka,y.i),y.h.i.length=0,C(y.i),y.i.length=0),y.l.ra()}}function Lg(y,N,$){var W=$ instanceof Ua?ti($):new Ua($);if(W.g!="")N&&(W.g=N+"."+W.g),ic(W,W.s);else{var ae=a.location;W=ae.protocol,N=N?N+"."+ae.hostname:ae.hostname,ae=+ae.port;var pe=new Ua(null);W&&Xu(pe,W),N&&(pe.g=N),ae&&ic(pe,ae),$&&(pe.l=$),W=pe}return $=y.D,N=y.ya,$&&N&&_n(W,$,N),_n(W,"VER",y.la),Ga(y,W),W}function zg(y,N,$){if(N&&!y.J)throw Error("Can't create secondary domain capable XhrIo object.");return N=y.Ca&&!y.pa?new Dn(new Wa({eb:$})):new Dn(y.pa),N.Ha(y.J),N}t.isActive=function(){return!!this.l&&this.l.isActive(this)};function a1(){}t=a1.prototype,t.ua=function(){},t.ta=function(){},t.sa=function(){},t.ra=function(){},t.isActive=function(){return!0},t.Na=function(){};function ih(){}ih.prototype.g=function(y,N){return new ps(y,N)};function ps(y,N){be.call(this),this.g=new i1(N),this.l=y,this.h=N&&N.messageUrlParams||null,y=N&&N.messageHeaders||null,N&&N.clientProtocolHeaderRequired&&(y?y["X-Client-Protocol"]="webchannel":y={"X-Client-Protocol":"webchannel"}),this.g.o=y,y=N&&N.initMessageHeaders||null,N&&N.messageContentType&&(y?y["X-WebChannel-Content-Type"]=N.messageContentType:y={"X-WebChannel-Content-Type":N.messageContentType}),N&&N.va&&(y?y["X-WebChannel-Client-Profile"]=N.va:y={"X-WebChannel-Client-Profile":N.va}),this.g.S=y,(y=N&&N.Sb)&&!P(y)&&(this.g.m=y),this.v=N&&N.supportsCrossDomainXhr||!1,this.u=N&&N.sendRawJson||!1,(N=N&&N.httpSessionIdParam)&&!P(N)&&(this.g.D=N,y=this.h,y!==null&&N in y&&(y=this.h,N in y&&delete y[N])),this.j=new ea(this)}E(ps,be),ps.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},ps.prototype.close=function(){Vr(this.g)},ps.prototype.o=function(y){var N=this.g;if(typeof y=="string"){var $={};$.__data__=y,y=$}else this.u&&($={},$.__data__=Bu(y),y=$);N.i.push(new Cg(N.Ya++,y)),N.G==3&&Jo(N)},ps.prototype.N=function(){this.g.l=null,delete this.j,Vr(this.g),delete this.g,ps.aa.N.call(this)};function Vg(y){Ko.call(this),y.__headers__&&(this.headers=y.__headers__,this.statusCode=y.__status__,delete y.__headers__,delete y.__status__);var N=y.__sm__;if(N){e:{for(const $ in N){y=$;break e}y=void 0}(this.i=y)&&(y=this.i,N=N!==null&&y in N?N[y]:void 0),this.data=N}else this.data=y}E(Vg,Ko);function Bg(){Bf.call(this),this.status=1}E(Bg,Bf);function ea(y){this.g=y}E(ea,a1),ea.prototype.ua=function(){we(this.g,"a")},ea.prototype.ta=function(y){we(this.g,new Vg(y))},ea.prototype.sa=function(y){we(this.g,new Bg)},ea.prototype.ra=function(){we(this.g,"b")},ih.prototype.createWebChannel=ih.prototype.g,ps.prototype.send=ps.prototype.o,ps.prototype.open=ps.prototype.m,ps.prototype.close=ps.prototype.close,TH=function(){return new ih},CH=function(){return Uu()},SH=Yo,L_={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},Wf.NO_ERROR=0,Wf.TIMEOUT=8,Wf.HTTP_ERROR=6,ty=Wf,_g.COMPLETE="complete",bH=_g,Vf.EventType=Ei,Ei.OPEN="a",Ei.CLOSE="b",Ei.ERROR="c",Ei.MESSAGE="d",be.prototype.listen=be.prototype.K,Q1=Vf,Dn.prototype.listenOnce=Dn.prototype.L,Dn.prototype.getLastError=Dn.prototype.Ka,Dn.prototype.getLastErrorCode=Dn.prototype.Ba,Dn.prototype.getStatus=Dn.prototype.Z,Dn.prototype.getResponseJson=Dn.prototype.Oa,Dn.prototype.getResponseText=Dn.prototype.oa,Dn.prototype.send=Dn.prototype.ea,Dn.prototype.setWithCredentials=Dn.prototype.Ha,EH=Dn}).apply(typeof p3<"u"?p3:typeof self<"u"?self:typeof window<"u"?window:{});const fM="@firebase/firestore",hM="4.7.11";/**
1823 * @license
1824 * Copyright 2017 Google LLC
1825 *
1826 * Licensed under the Apache License, Version 2.0 (the "License");
1827 * you may not use this file except in compliance with the License.
1828 * You may obtain a copy of the License at
1829 *
1830 *   http://www.apache.org/licenses/LICENSE-2.0
1831 *
1832 * Unless required by applicable law or agreed to in writing, software
1833 * distributed under the License is distributed on an "AS IS" BASIS,
1834 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1835 * See the License for the specific language governing permissions and
1836 * limitations under the License.
1837 */let as=class{constructor(e){this.uid=e}isAuthenticated(){return this.uid!=null}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}};as.UNAUTHENTICATED=new as(null),as.GOOGLE_CREDENTIALS=new as("google-credentials-uid"),as.FIRST_PARTY=new as("first-party-uid"),as.MOCK_USER=new as("mock-user");/**
1838 * @license
1839 * Copyright 2017 Google LLC
1840 *
1841 * Licensed under the Apache License, Version 2.0 (the "License");
1842 * you may not use this file except in compliance with the License.
1843 * You may obtain a copy of the License at
1844 *
1845 *   http://www.apache.org/licenses/LICENSE-2.0
1846 *
1847 * Unless required by applicable law or agreed to in writing, software
1848 * distributed under the License is distributed on an "AS IS" BASIS,
1849 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1850 * See the License for the specific language governing permissions and
1851 * limitations under the License.
1852 */let km="11.6.1";/**
1853 * @license
1854 * Copyright 2017 Google LLC
1855 *
1856 * Licensed under the Apache License, Version 2.0 (the "License");
1857 * you may not use this file except in compliance with the License.
1858 * You may obtain a copy of the License at
1859 *
1860 *   http://www.apache.org/licenses/LICENSE-2.0
1861 *
1862 * Unless required by applicable law or agreed to in writing, software
1863 * distributed under the License is distributed on an "AS IS" BASIS,
1864 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1865 * See the License for the specific language governing permissions and
1866 * limitations under the License.
1867 */const df=new aS("@firebase/firestore");function Lh(){return df.logLevel}function We(t,...e){if(df.logLevel<=Ut.DEBUG){const n=e.map(wS);df.debug(`Firestore (${km}): ${t}`,...n)}}function zl(t,...e){if(df.logLevel<=Ut.ERROR){const n=e.map(wS);df.error(`Firestore (${km}): ${t}`,...n)}}function Zp(t,...e){if(df.logLevel<=Ut.WARN){const n=e.map(wS);df.warn(`Firestore (${km}): ${t}`,...n)}}function wS(t){if(typeof t=="string")return t;try{/**
1868* @license
1869* Copyright 2020 Google LLC
1870*
1871* Licensed under the Apache License, Version 2.0 (the "License");
1872* you may not use this file except in compliance with the License.
1873* You may obtain a copy of the License at
1874*
1875*   http://www.apache.org/licenses/LICENSE-2.0
1876*
1877* Unless required by applicable law or agreed to in writing, software
1878* distributed under the License is distributed on an "AS IS" BASIS,
1879* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1880* See the License for the specific language governing permissions and
1881* limitations under the License.
1882*/return function(n){return JSON.stringify(n)}(t)}catch{return t}}/**
1883 * @license
1884 * Copyright 2017 Google LLC
1885 *
1886 * Licensed under the Apache License, Version 2.0 (the "License");
1887 * you may not use this file except in compliance with the License.
1888 * You may obtain a copy of the License at
1889 *
1890 *   http://www.apache.org/licenses/LICENSE-2.0
1891 *
1892 * Unless required by applicable law or agreed to in writing, software
1893 * distributed under the License is distributed on an "AS IS" BASIS,
1894 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1895 * See the License for the specific language governing permissions and
1896 * limitations under the License.
1897 */function gt(t,e,n){let r="Unexpected state";typeof e=="string"?r=e:n=e,AH(t,r,n)}function AH(t,e,n){let r=`FIRESTORE (${km}) INTERNAL ASSERTION FAILED: ${e} (ID: ${t.toString(16)})`;if(n!==void 0)try{r+=" CONTEXT: "+JSON.stringify(n)}catch{r+=" CONTEXT: "+n}throw zl(r),new Error(r)}function fn(t,e,n,r){let s="Unexpected state";typeof n=="string"?s=n:r=n,t||AH(e,s,r)}function At(t,e){return t}/**
1898 * @license
1899 * Copyright 2017 Google LLC
1900 *
1901 * Licensed under the Apache License, Version 2.0 (the "License");
1902 * you may not use this file except in compliance with the License.
1903 * You may obtain a copy of the License at
1904 *
1905 *   http://www.apache.org/licenses/LICENSE-2.0
1906 *
1907 * Unless required by applicable law or agreed to in writing, software
1908 * distributed under the License is distributed on an "AS IS" BASIS,
1909 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1910 * See the License for the specific language governing permissions and
1911 * limitations under the License.
1912 */const Te={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENT
1912ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class at extends Ql{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/**
1913 * @license
1914 * Copyright 2017 Google LLC
1915 *
1916 * Licensed under the Apache License, Version 2.0 (the "License");
1917 * you may not use this file except in compliance with the License.
1918 * You may obtain a copy of the License at
1919 *
1920 *   http://www.apache.org/licenses/LICENSE-2.0
1921 *
1922 * Unless required by applicable law or agreed to in writing, software
1923 * distributed under the License is distributed on an "AS IS" BASIS,
1924 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1925 * See the License for the specific language governing permissions and
1926 * limitations under the License.
1927 */class cu{constructor(){this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}}/**
1928 * @license
1929 * Copyright 2017 Google LLC
1930 *
1931 * Licensed under the Apache License, Version 2.0 (the "License");
1932 * you may not use this file except in compliance with the License.
1933 * You may obtain a copy of the License at
1934 *
1935 *   http://www.apache.org/licenses/LICENSE-2.0
1936 *
1937 * Unless required by applicable law or agreed to in writing, software
1938 * distributed under the License is distributed on an "AS IS" BASIS,
1939 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1940 * See the License for the specific language governing permissions and
1941 * limitations under the License.
1942 */class IH{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class q5e{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable(()=>n(as.UNAUTHENTICATED))}shutdown(){}}class G5e{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,n){this.changeListener=n,e.enqueueRetryable(()=>n(this.token.user))}shutdown(){this.changeListener=null}}class K5e{constructor(e){this.t=e,this.currentUser=as.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){fn(this.o===void 0,42304);let r=this.i;const s=c=>this.i!==r?(r=this.i,n(c)):Promise.resolve();let i=new cu;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new cu,e.enqueueRetryable(()=>s(this.currentUser))};const o=()=>{const c=i;e.enqueueRetryable(async()=>{await c.promise,await s(this.currentUser)})},a=c=>{We("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=c,this.o&&(this.auth.addAuthTokenListener(this.o),o())};this.t.onInit(c=>a(c)),setTimeout(()=>{if(!this.auth){const c=this.t.getImmediate({optional:!0});c?a(c):(We("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new cu)}},0),o()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(r=>this.i!==e?(We("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(fn(typeof r.accessToken=="string",31837,{l:r}),new IH(r.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const e=this.auth&&this.auth.getUid();return fn(e===null||typeof e=="string",2055,{h:e}),new as(e)}}class Y5e{constructor(e,n,r){this.P=e,this.T=n,this.I=r,this.type="FirstParty",this.user=as.FIRST_PARTY,this.A=new Map}R(){return this.I?this.I():null}get headers(){this.A.set("X-Goog-AuthUser",this.P);const e=this.R();return e&&this.A.set("Authorization",e),this.T&&this.A.set("X-Goog-Iam-Authorization-Token",this.T),this.A}}class Q5e{constructor(e,n,r){this.P=e,this.T=n,this.I=r}getToken(){return Promise.resolve(new Y5e(this.P,this.T,this.I))}start(e,n){e.enqueueRetryable(()=>n(as.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class pM{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class X5e{constructor(e,n){this.V=n,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,di(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,n){fn(this.o===void 0,3512);const r=i=>{i.error!=null&&We("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${i.error.message}`);const o=i.token!==this.m;return this.m=i.token,We("FirebaseAppCheckTokenProvider",`Received ${o?"new":"existing"} token.`),o?n(i.token):Promise.resolve()};this.o=i=>{e.enqueueRetryable(()=>r(i))};const s=i=>{We("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=i,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit(i=>s(i)),setTimeout(()=>{if(!this.appCheck){const i=this.V.getImmediate({optional:!0});i?s(i):We("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.p)return Promise.resolve(new pM(this.p));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(n=>n?(fn(typeof n.token=="string",44558,{tokenResult:n}),this.m=n.token,new pM(n.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}/**
1943 * @license
1944 * Copyright 2020 Google LLC
1945 *
1946 * Licensed under the Apache License, Version 2.0 (the "License");
1947 * you may not use this file except in compliance with the License.
1948 * You may obtain a copy of the License at
1949 *
1950 *   http://www.apache.org/licenses/LICENSE-2.0
1951 *
1952 * Unless required by applicable law or agreed to in writing, software
1953 * distributed under the License is distributed on an "AS IS" BASIS,
1954 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1955 * See the License for the specific language governing permissions and
1956 * limitations under the License.
1957 */function Z5e(t){const e=typeof self<"u"&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&typeof e.getRandomValues=="function")e.getRandomValues(n);else for(let r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}/**
1958 * @license
1959 * Copyright 2023 Google LLC
1960 *
1961 * Licensed under the Apache License, Version 2.0 (the "License");
1962 * you may not use this file except in compliance with the License.
1963 * You may obtain a copy of the License at
1964 *
1965 *   http://www.apache.org/licenses/LICENSE-2.0
1966 *
1967 * Unless required by applicable law or agreed to in writing, software
1968 * distributed under the License is distributed on an "AS IS" BASIS,
1969 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1970 * See the License for the specific language governing permissions and
1971 * limitations under the License.
1972 */function PH(){return new TextEncoder}/**
1973 * @license
1974 * Copyright 2017 Google LLC
1975 *
1976 * Licensed under the Apache License, Version 2.0 (the "License");
1977 * you may not use this file except in compliance with the License.
1978 * You may obtain a copy of the License at
1979 *
1980 *   http://www.apache.org/licenses/LICENSE-2.0
1981 *
1982 * Unless required by applicable law or agreed to in writing, software
1983 * distributed under the License is distributed on an "AS IS" BASIS,
1984 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1985 * See the License for the specific language governing permissions and
1986 * limitations under the License.
1987 */class RH{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=62*Math.floor(4.129032258064516);let r="";for(;r.length<20;){const s=Z5e(40);for(let i=0;i<s.length;++i)r.length<20&&s[i]<n&&(r+=e.charAt(s[i]%62))}return r}}function Lt(t,e){return t<e?-1:t>e?1:0}function z_(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=t.codePointAt(n),s=e.codePointAt(n);if(r!==s){if(r<128&&s<128)return Lt(r,s);{const i=PH(),o=J5e(i.encode(mM(t,n)),i.encode(mM(e,n)));return o!==0?o:Lt(r,s)}}n+=r>65535?2:1}return Lt(t.length,e.length)}function mM(t,e){return t.codePointAt(e)>65535?t.substring(e,e+2):t.substring(e,e+1)}function J5e(t,e){for(let n=0;n<t.length&&n<e.length;++n)if(t[n]!==e[n])return Lt(t[n],e[n]);return Lt(t.length,e.length)}function Jp(t,e,n){return t.length===e.length&&t.every((r,s)=>n(r,e[s]))}/**
1988 * @license
1989 * Copyright 2017 Google LLC
1990 *
1991 * Licensed under the Apache License, Version 2.0 (the "License");
1992 * you may not use this file except in compliance with the License.
1993 * You may obtain a copy of the License at
1994 *
1995 *   http://www.apache.org/licenses/LICENSE-2.0
1996 *
1997 * Unless required by applicable law or agreed to in writing, software
1998 * distributed under the License is distributed on an "AS IS" BASIS,
1999 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2000 * See the License for the specific language governing permissions and
2001 * limitations under the License.
2002 */const gM=-62135596800,vM=1e6;class Tr{static now(){return Tr.fromMillis(Date.now())}static fromDate(e){return Tr.fromMillis(e.getTime())}static fromMillis(e){const n=Math.floor(e/1e3),r=Math.floor((e-1e3*n)*vM);return new Tr(n,r)}constructor(e,n){if(this.seconds=e,this.nanoseconds=n,n<0)throw new at(Te.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new at(Te.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(e<gM)throw new at(Te.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new at(Te.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/vM}_compareTo(e){return this.seconds===e.seconds?Lt(this.nanoseconds,e.nanoseconds):Lt(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){const e=this.seconds-gM;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
vendor: 8,524 bytes, lines 2002-2081
2002}/**
2003 * @license
2004 * Copyright 2017 Google LLC
2005 *
2006 * Licensed under the Apache License, Version 2.0 (the "License");
2007 * you may not use this file except in compliance with the License.
2008 * You may obtain a copy of the License at
2009 *
2010 *   http://www.apache.org/licenses/LICENSE-2.0
2011 *
2012 * Unless required by applicable law or agreed to in writing, software
2013 * distributed under the License is distributed on an "AS IS" BASIS,
2014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2015 * See the License for the specific language governing permissions and
2016 * limitations under the License.
2017 */class St{static fromTimestamp(e){return new St(e)}static min(){return new St(new Tr(0,0))}static max(){return new St(new Tr(253402300799,999999999))}constructor(e){this.timestamp=e}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}/**
2018 * @license
2019 * Copyright 2017 Google LLC
2020 *
2021 * Licensed under the Apache License, Version 2.0 (the "License");
2022 * you may not use this file except in compliance with the License.
2023 * You may obtain a copy of the License at
2024 *
2025 *   http://www.apache.org/licenses/LICENSE-2.0
2026 *
2027 * Unless required by applicable law or agreed to in writing, software
2028 * distributed under the License is distributed on an "AS IS" BASIS,
2029 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2030 * See the License for the specific language governing permissions and
2031 * limitations under the License.
2032 */const yM="__name__";class la{constructor(e,n,r){n===void 0?n=0:n>e.length&&gt(637,{offset:n,range:e.length}),r===void 0?r=e.length-n:r>e.length-n&&gt(1746,{length:r,range:e.length-n}),this.segments=e,this.offset=n,this.len=r}get length(){return this.len}isEqual(e){return la.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof la?e.forEach(r=>{n.push(r)}):n.push(e),this.construct(n)}limit(){return this.offset+this.length}popFirst(e){return e=e===void 0?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return this.length===0}isPrefixOf(e){if(e.length<this.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}forEach(e){for(let n=this.offset,r=this.limit();n<r;n++)e(this.segments[n])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,n){const r=Math.min(e.length,n.length);for(let s=0;s<r;s++){const i=la.compareSegments(e.get(s),n.get(s));if(i!==0)return i}return Lt(e.length,n.length)}static compareSegments(e,n){const r=la.isNumericId(e),s=la.isNumericId(n);return r&&!s?-1:!r&&s?1:r&&s?la.extractNumericId(e).compare(la.extractNumericId(n)):z_(e,n)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return lu.fromString(e.substring(4,e.length-2))}}class Xn extends la{construct(e,n,r){return new Xn(e,n,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const n=[];for(const r of e){if(r.indexOf("//")>=0)throw new at(Te.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);n.push(...r.split("/").filter(s=>s.length>0))}return new Xn(n)}static emptyPath(){return new Xn([])}}const e6e=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Yr extends la{construct(e,n,r){return new Yr(e,n,r)}static isValidIdentifier(e){return e6e.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Yr.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)===yM}static keyField(){return new Yr([yM])}static fromServerFormat(e){const n=[];let r="",s=0;const i=()=>{if(r.length===0)throw new at(Te.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(r),r=""};let o=!1;for(;s<e.length;){const a=e[s];if(a==="\\"){if(s+1===e.length)throw new at(Te.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const c=e[s+1];if(c!=="\\"&&c!=="."&&c!=="`")throw new at(Te.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=c,s+=2}else a==="`"?(o=!o,s++):a!=="."||o?(r+=a,s++):(i(),s++)}if(i(),o)throw new at(Te.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new Yr(n)}static emptyPath(){return new Yr([])}}/**
2033 * @license
2034 * Copyright 2017 Google LLC
2035 *
2036 * Licensed under the Apache License, Version 2.0 (the "License");
2037 * you may not use this file except in compliance with the License.
2038 * You may obtain a copy of the License at
2039 *
2040 *   http://www.apache.org/licenses/LICENSE-2.0
2041 *
2042 * Unless required by applicable law or agreed to in writing, software
2043 * distributed under the License is distributed on an "AS IS" BASIS,
2044 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2045 * See the License for the specific language governing permissions and
2046 * limitations under the License.
2047 */class lt{constructor(e){this.path=e}static fromPath(e){return new lt(Xn.fromString(e))}static fromName(e){return new lt(Xn.fromString(e).popFirst(5))}static empty(){return new lt(Xn.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&&Xn.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return Xn.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new lt(new Xn(e.slice()))}}/**
2048 * @license
2049 * Copyright 2021 Google LLC
2050 *
2051 * Licensed under the Apache License, Version 2.0 (the "License");
2052 * you may not use this file except in compliance with the License.
2053 * You may obtain a copy of the License at
2054 *
2055 *   http://www.apache.org/licenses/LICENSE-2.0
2056 *
2057 * Unless required by applicable law or agreed to in writing, software
2058 * distributed under the License is distributed on an "AS IS" BASIS,
2059 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2060 * See the License for the specific language governing permissions and
2061 * limitations under the License.
2062 */const B0=-1;function t6e(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,s=St.fromTimestamp(r===1e9?new Tr(n+1,0):new Tr(n,r));return new vu(s,lt.empty(),e)}function n6e(t){return new vu(t.readTime,t.key,B0)}class vu{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new vu(St.min(),lt.empty(),B0)}static max(){return new vu(St.max(),lt.empty(),B0)}}function r6e(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=lt.comparator(t.documentKey,e.documentKey),n!==0?n:Lt(t.largestBatchId,e.largestBatchId))}/**
2063 * @license
2064 * Copyright 2020 Google LLC
2065 *
2066 * Licensed under the Apache License, Version 2.0 (the "License");
2067 * you may not use this file except in compliance with the License.
2068 * You may obtain a copy of the License at
2069 *
2070 *   http://www.apache.org/licenses/LICENSE-2.0
2071 *
2072 * Unless required by applicable law or agreed to in writing, software
2073 * distributed under the License is distributed on an "AS IS" BASIS,
2074 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2075 * See the License for the specific language governing permissions and
2076 * limitations under the License.
2077 */const s6e="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class i6e{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}/**
2078 * @license
2079 * Copyright 2017 Google LLC
2080 *
2081 * Licensed under the Apache License, Version 2.0 (the "License");
2082 * you may not use this file except in compliance with the License.
2083 * You may obtain a copy of the License at
2084 *
2085 *   http://www.apache.org/licenses/LICENSE-2.0
2086 *
2087 * Unless required by applicable law or agreed to in writing, software
2088 * distributed under the License is distributed on an "AS IS" BASIS,
2089 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2090 * See the License for the specific language governing permissions and
2091 * limitations under the License.
2092 */async function Dm(t){if(t.code!==Te.FAILED_PRECONDITION||t.message!==s6e)throw t;We("LocalStore","Unexpectedly lost primary lease")}/**
2093 * @license
2094 * Copyright 2017 Google LLC
2095 *
2096 * Licensed under the Apache License, Version 2.0 (the "License");
2097 * you may not use this file except in compliance with the License.
2098 * You may obtain a copy of the License at
2099 *
2100 *   http://www.apache.org/licenses/LICENSE-2.0
2101 *
2102 * Unless required by applicable law or agreed to in writing, software
2103 * distributed under the License is distributed on an "AS IS" BASIS,
2104 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2105 * See the License for the specific language governing permissions and
2106 * limitations under the License.
2107 */class ye{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(n=>{this.isDone=!0,this.result=n,this.nextCallback&&this.nextCallback(n)},n=>{this.isDone=!0,this.error=n,this.catchCallback&&this.catchCallback(n)})}catch(e){return this.next(void 0,e)}next(e,n){return this.callbackAttached&&gt(59440),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new ye((r,s)=>{this.nextCallback=i=>{this.wrapSuccess(e,i).next(r,s)},this.catchCallback=i=>{this.wrapFailure(n,i).next(r,s)}})}toPromise(){return new Promise((e,n)=>{this.next(e,n)})}wrapUserFunction(e){try{const n=e();return n instanceof ye?n:ye.resolve(n)}catch(n){return ye.reject(n)}}wrapSuccess(e,n){return e?this.wrapUserFunction(()=>e(n)):ye.resolve(n)}wrapFailure(e,n){return e?this.wrapUserFunction(()=>e(n)):ye.reject(n)}static resolve(e){return new ye((n,r)=>{n(e)})}static reject(e){return new ye((n,r)=>{r(e)})}static waitFor(e){return new ye((n,r)=>{let s=0,i=0,o=!1;e.forEach(a=>{++s,a.next(()=>{++i,o&&i===s&&n()},c=>r(c))}),o=!0,i===s&&n()})}static or(e){let n=ye.resolve(!1);for(const r of e)n=n.next(s=>s?ye.resolve(s):r());return n}static forEach(e,n){const r=[];return e.forEach((s,i)=>{r.push(n.call(this,s,i))}),this.waitFor(r)}static mapArray(e,n){return new ye((r,s)=>{const i=e.length,o=new Array(i);let a=0;for(let c=0;c<i;c++){const d=c;n(e[d]).next(p=>{o[d]=p,++a,a===i&&r(o)},p=>s(p))}})}static doWhile(e,n){return new ye((r,s)=>{const i=()=>{e()===!0?n().next(()=>{i()},s):r()};i()})}}function o6e(t){const e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)}function Om(t){return t.name==="IndexedDbTransactionError"}/**
2108 * @license
2109 * Copyright 2018 Google LLC
2110 *
2111 * Licensed under the Apache License, Version 2.0 (the "License");
2112 * you may not use this file except in compliance with the License.
2113 * You may obtain a copy of the License at
2114 *
2115 *   http://www.apache.org/licenses/LICENSE-2.0
2116 *
2117 * Unless required by applicable law or agreed to in writing, software
2118 * distributed under the License is distributed on an "AS IS" BASIS,
2119 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2120 * See the License for the specific language governing permissions and
2121 * limitations under the License.
2122 */class H5{constructor(e,n){this.previousValue=e,n&&(n.sequenceNumberHandler=r=>this.ue(r),this.ce=r=>n.writeSequenceNumber(r))}ue(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.ce&&this.ce(e),e}}H5.le=-1;/**
2123 * @license
2124 * Copyright 2017 Google LLC
2125 *
2126 * Licensed under the Apache License, Version 2.0 (the "License");
2127 * you may not use this file except in compliance with the License.
2128 * You may obtain a copy of the License at
2129 *
2130 *   http://www.apache.org/licenses/LICENSE-2.0
2131 *
2132 * Unless required by applicable law or agreed to in writing, softw
vendor: 7,585 bytes, lines 2132-2182
2132are
2133 * distributed under the License is distributed on an "AS IS" BASIS,
2134 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2135 * See the License for the specific language governing permissions and
2136 * limitations under the License.
2137 */const _S=-1;function U5(t){return t==null}function p4(t){return t===0&&1/t==-1/0}function a6e(t){return typeof t=="number"&&Number.isInteger(t)&&!p4(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}/**
2138 * @license
2139 * Copyright 2017 Google LLC
2140 *
2141 * Licensed under the Apache License, Version 2.0 (the "License");
2142 * you may not use this file except in compliance with the License.
2143 * You may obtain a copy of the License at
2144 *
2145 *   http://www.apache.org/licenses/LICENSE-2.0
2146 *
2147 * Unless required by applicable law or agreed to in writing, software
2148 * distributed under the License is distributed on an "AS IS" BASIS,
2149 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2150 * See the License for the specific language governing permissions and
2151 * limitations under the License.
2152 */const NH="�";function l6e(t){let e="";for(let n=0;n<t.length;n++)e.length>0&&(e=xM(e)),e=c6e(t.get(n),e);return xM(e)}function c6e(t,e){let n=e;const r=t.length;for(let s=0;s<r;s++){const i=t.charAt(s);switch(i){case"\0":n+="��";break;case NH:n+="��";break;default:n+=i}}return n}function xM(t){return t+NH+"�"}/**
2153 * @license
2154 * Copyright 2017 Google LLC
2155 *
2156 * Licensed under the Apache License, Version 2.0 (the "License");
2157 * you may not use this file except in compliance with the License.
2158 * You may obtain a copy of the License at
2159 *
2160 *   http://www.apache.org/licenses/LICENSE-2.0
2161 *
2162 * Unless required by applicable law or agreed to in writing, software
2163 * distributed under the License is distributed on an "AS IS" BASIS,
2164 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2165 * See the License for the specific language governing permissions and
2166 * limitations under the License.
2167 */function wM(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function Nf(t,e){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function MH(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}/**
2168 * @license
2169 * Copyright 2017 Google LLC
2170 *
2171 * Licensed under the Apache License, Version 2.0 (the "License");
2172 * you may not use this file except in compliance with the License.
2173 * You may obtain a copy of the License at
2174 *
2175 *   http://www.apache.org/licenses/LICENSE-2.0
2176 *
2177 * Unless required by applicable law or agreed to in writing, software
2178 * distributed under the License is distributed on an "AS IS" BASIS,
2179 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2180 * See the License for the specific language governing permissions and
2181 * limitations under the License.
2182 */class Wn{constructor(e,n){this.comparator=e,this.root=n||Kr.EMPTY}insert(e,n){return new Wn(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,Kr.BLACK,null,null))}remove(e){return new Wn(this.comparator,this.root.remove(e,this.comparator).copy(null,null,Kr.BLACK,null,null))}get(e){let n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(r===0)return n.value;r<0?n=n.left:r>0&&(n=n.right)}return null}indexOf(e){let n=0,r=this.root;for(;!r.isEmpty();){const s=this.comparator(e,r.key);if(s===0)return n+r.left.size;s<0?r=r.left:(n+=r.left.size+1,r=r.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((n,r)=>(e(n,r),!1))}toString(){const e=[];return this.inorderTraversal((n,r)=>(e.push(`${n}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new m3(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new m3(this.root,e,this.comparator,!1)}getReverseIterator(){return new m3(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new m3(this.root,e,this.comparator,!0)}}class m3{constructor(e,n,r,s){this.isReverse=s,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=n?r(e.key,n):1,n&&s&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(i===0){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const n={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return n}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class Kr{constructor(e,n,r,s,i){this.key=e,this.value=n,this.color=r??Kr.RED,this.left=s??Kr.EMPTY,this.right=i??Kr.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,r,s,i){return new Kr(e??this.key,n??this.value,r??this.color,s??this.left,i??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,n,r){let s=this;const i=r(e,s.key);return s=i<0?s.copy(null,null,null,s.left.insert(e,n,r),null):i===0?s.copy(null,n,null,null,null):s.copy(null,null,null,null,s.right.insert(e,n,r)),s.fixUp()}removeMin(){if(this.left.isEmpty())return Kr.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,n){let r,s=this;if(n(e,s.key)<0)s.left.isEmpty()||s.left.isRed()||s.left.left.isRed()||(s=s.moveRedLeft()),s=s.copy(null,null,null,s.left.remove(e,n),null);else{if(s.left.isRed()&&(s=s.rotateRight()),s.right.isEmpty()||s.right.isRed()||s.right.left.isRed()||(s=s.moveRedRight()),n(e,s.key)===0){if(s.right.isEmpty())return Kr.EMPTY;r=s.right.min(),s=s.copy(r.key,r.value,null,null,s.right.removeMin())}s=s.copy(null,null,null,null,s.right.remove(e,n))}return s.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,Kr.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,Kr.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,n)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw gt(43730,{key:this.key,value:this.value});if(this.right.isRed())throw gt(14113,{key:this.key,value:this.value});const e=this.left.check();if(e!==this.right.check())throw gt(27949);return e+(this.isRed()?0:1)}}Kr.EMPTY=null,Kr.RED=!0,Kr.BLACK=!1;
2182Kr.EMPTY=new class{constructor(){this.size=0}get key(){throw gt(57766)}get value(){throw gt(16141)}get color(){throw gt(16727)}get left(){throw gt(29726)}get right(){throw gt(36894)}copy(e,n,r,s,i){return this}insert(e,n,r){return new Kr(e,n)}remove(e,n){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};/**
2183 * @license
2184 * Copyright 2017 Google LLC
2185 *
2186 * Licensed under the Apache License, Version 2.0 (the "License");
2187 * you may not use this file except in compliance with the License.
2188 * You may obtain a copy of the License at
2189 *
2190 *   http://www.apache.org/licenses/LICENSE-2.0
2191 *
2192 * Unless required by applicable law or agreed to in writing, software
2193 * distributed under the License is distributed on an "AS IS" BASIS,
2194 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2195 * See the License for the specific language governing permissions and
2196 * limitations under the License.
2197 */class Ar{constructor(e){this.comparator=e,this.data=new Wn(this.comparator)}has(e){return this.data.get(e)!==null}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((n,r)=>(e(n),!1))}forEachInRange(e,n){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const s=r.getNext();if(this.comparator(s.key,e[1])>=0)return;n(s.key)}}forEachWhile(e,n){let r;for(r=n!==void 0?this.data.getIteratorFrom(n):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new _M(this.data.getIterator())}getIteratorFrom(e){return new _M(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let n=this;return n.size<e.size&&(n=e,e=this),e.forEach(r=>{n=n.add(r)}),n}isEqual(e){if(!(e instanceof Ar)||this.size!==e.size)return!1;const n=this.data.getIterator(),r=e.data.getIterator();for(;n.hasNext();){const s=n.getNext().key,i=r.getNext().key;if(this.comparator(s,i)!==0)return!1}return!0}toArray(){const e=[];return this.forEach(n=>{e.push(n)}),e}toString(){const e=[];return this.forEach(n=>e.push(n)),"SortedSet("+e.toString()+")"}copy(e){const n=new Ar(this.comparator);return n.data=e,n}}class _M{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}/**
2198 * @license
2199 * Copyright 2020 Google LLC
2200 *
2201 * Licensed under the Apache License, Version 2.0 (the "License");
2202 * you may not use this file except in compliance with the License.
2203 * You may obtain a copy of the License at
2204 *
2205 *   http://www.apache.org/licenses/LICENSE-2.0
2206 *
2207 * Unless required by applicable law or agreed to in writing, software
2208 * distributed under the License is distributed on an "AS IS" BASIS,
2209 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2210 * See the License for the specific language governing permissions and
2211 * limitations under the License.
2212 */class Ro{constructor(e){this.fields=e,e.sort(Yr.comparator)}static empty(){return new Ro([])}unionWith(e){let n=new Ar(Yr.comparator);for(const r of this.fields)n=n.add(r);for(const r of e)n=n.add(r);return new Ro(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return Jp(this.fields,e.fields,(n,r)=>n.isEqual(r))}}/**
2213 * @license
2214 * Copyright 2023 Google LLC
2215 *
2216 * Licensed under the Apache License, Version 2.0 (the "License");
2217 * you may not use this file except in compliance with the License.
2218 * You may obtain a copy of the License at
2219 *
2220 *   http://www.apache.org/licenses/LICENSE-2.0
2221 *
2222 * Unless required by applicable law or agreed to in writing, software
2223 * distributed under the License is distributed on an "AS IS" BASIS,
2224 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2225 * See the License for the specific language governing permissions and
2226 * limitations under the License.
2227 */class kH extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}/**
2228 * @license
2229 * Copyright 2020 Google LLC
2230 *
2231 * Licensed under the Apache License, Version 2.0 (the "License");
2232 * you may not use this file except in compliance with the License.
2233 * You may obtain a copy of the License at
2234 *
2235 *   http://www.apache.org/licenses/LICENSE-2.0
2236 *
2237 * Unless required by applicable law or agreed to in writing, software
2238 * distributed under the License is distributed on an "AS IS" BASIS,
2239 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2240 * See the License for the specific language governing permissions and
2241 * limitations under the License.
2242 */class Zr{constructor(e){this.binaryString=e}static fromBase64String(e){const n=function(s){try{return atob(s)}catch(i){throw typeof DOMException<"u"&&i instanceof DOMException?new kH("Invalid base64 string: "+i):i}}(e);return new Zr(n)}static fromUint8Array(e){const n=function(s){let i="";for(let o=0;o<s.length;++o)i+=String.fromCharCode(s[o]);return i}(e);return new Zr(n)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return function(n){return btoa(n)}(this.binaryString)}toUint8Array(){return function(n){const r=new Uint8Array(n.length);for(let s=0;s<n.length;s++)r[s]=n.charCodeAt(s);return r}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Lt(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Zr.EMPTY_BYTE_STRING=new Zr("");const u6e=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function yu(t){if(fn(!!t,39018),typeof t=="string"){let e=0;const n=u6e.exec(t);if(fn(!!n,46558,{timestamp:t}),n[1]){let s=n[1];s=(s+"000000000").substr(0,9),e=Number(s)}const r=new Date(t);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:ir(t.seconds),nanos:ir(t.nanos)}}function ir(t){return typeof t=="number"?t:typeof t=="string"?Number(t):0}function xu(t){return typeof t=="string"?Zr.fromBase64String(t):Zr.fromUint8Array(t)}/**
2243 * @license
2244 * Copyright 2020 Google LLC
2245 *
2246 * Licensed under the Apache License, Version 2.0 (the "License");
2247 * you may not use this file except in compliance with the License.
2248 * You may obtain a copy of the License at
2249 *
2250 *   http://www.apache.org/licenses/LICENSE-2.0
2251 *
2252 * Unless required by applicable law or agreed to in writing, software
2253 * distributed under the License is distributed on an "AS IS" BASIS,
2254 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2255 * See the License for the specific language governing permissions and
2256 * limitations under the License.
2257 */const DH="server_timestamp",OH="__type__",$H="__previous_value__",FH="__local_write_time__";function ES(t){var e,n;return((n=(((e=t?.mapValue)===null||e===void 0?void 0:e.fields)||{})[OH])===null||n===void 0?void 0:n.stringValue)===DH}function W5(t){const e=t.mapValue.fields[$H];return ES(e)?W5(e):e}function H0(t){const e=yu(t.mapValue.fields[FH].timestampValue);return new Tr(e.seconds,e.nanos)}/**
2258 * @license
2259 * Copyright 2017 Google LLC
2260 *
2261 * Licensed under the Apache License, Version 2.0 (the "License");
2262 * you may not use this file except in compliance with the License.
2263 * You may obtain a copy of the License at
2264 *
2265 *   http://www.apache.org/licenses/LICENSE-2.0
2266 *
2267 * Unless required by applicable law or agreed to in writing, software
2268 * distributed under the License is distributed on an "AS IS" BASIS,
2269 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2270 * See the License for the specific language governing permissions and
2271 * limitations under the License.
2272 */class d6e{constructor(e,n,r,s,i,o,a,c,d){this.databaseId=e,this.appId=n,this.persistenceKey=r,this.host=s,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=a,this.longPollingOptions=c,this.useFetchStreams=d}}const m4="(default)";class U0{constructor(e,n){this.projectId=e,this.database=n||m4}static empty(){return new U0("","")}get isDefaultDatabase(){return this.database===m4}isEqual(e){return e instanceof U0&&e.projectId===this.projectId&&e.database===this.database}}/**
2273 * @license
2274 * Copyright 2020 Google LLC
2275 *
2276 * Licensed under the Apache License, Version 2.0 (the "License");
2277 * you may not use this file except in compliance with the License.
2278 * You may obtain a copy of the License at
2279 *
2280 *   http://www.apache.org/licenses/LICENSE-2.0
2281 *
2282 * Unless required by applicable law or agreed to in writing, software
2283 * distributed under the License is distributed on an "AS IS" BASIS,
2284 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2285 * See the License for the specific language governing permissions and
2286 * limitations under the License.
2287 */const jH="__type__",f6e="__max__",g3={mapValue:{}},LH="__vector__",g4="value";function wu(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?ES(t)?4:p6e(t)?9007199254740991:h6e(t)?10:11:gt(28295,{value:t})}function Ma(t,e){if(t===e)return!0;const n=wu(t);if(n!==wu(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return H0(t).isEqual(H0(e));case 3:return function(s,i){if(typeof s.timestampValue=="string"&&typeof i.timestampValue=="string"&&s.timestampValue.length===i.timestampValue.length)return s.timestampValue===i.timestampValue;const o=yu(s.timestampValue),a=yu(i.timestampValue);return o.seconds===a.seconds&&o.nanos===a.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(s,i){return xu(s.bytesValue).isEqual(xu(i.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(s,i){return ir(s.geoPointValue.latitude)===ir(i.geoPointValue.latitude)&&ir(s.geoPointValue.longitude)===ir(i.geoPointValue.longitude)}(t,e);case 2:return function(s,i){if("integerValue"in s&&"integerValue"in i)return ir(s.integerValue)===ir(i.integerValue);if("doubleValue"in s&&"doubleValue"in i){const o=ir(s.doubleValue),a=ir(i.doubleValue);return o===a?p4(o)===p4(a):isNaN(o)&&isNaN(a)}return!1}(t,e);case 9:return Jp(t.arrayValue.values||[],e.arrayValue.values||[],Ma);case 10:case 11:return function(s,i){const o=s.mapValue.fields||{},a=i.mapValue.fields||{};if(wM(o)!==wM(a))return!1;for(const c in o)if(o.hasOwnProperty(c)&&(a[c]===void 0||!Ma(o[c],a[c])))return!1;return!0}(t,e);default:return gt(52216,{left:t})}}function W0(t,e){return(t.values||[]).find(n=>Ma(n,e))!==void 0}function em(t,e){if(t===e)return 0;const n=wu(t),r=wu(e);if(n!==r)return Lt(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Lt(t.booleanValue,e.booleanValue);case 2:return function(i,o){const a=ir(i.integerValue||i.doubleValue),c=ir(o.integerValue||o.doubleValue);return a<c?-1:a>c?1:a===c?0:isNaN(a)?isNaN(c)?0:-1:1}(t,e);case 3:return EM(t.timestampValue,e.timestampValue);case 4:return EM(H0(t),H0(e));case 5:return z_(t.stringValue,e.stringValue);case 6:return function(i,o){const a=xu(i),c=xu(o);return a.compareTo(c)}(t.bytesValue,e.bytesValue);case 7:return function(i,o){const a=i.split("/"),c=o.split("/");for(let d=0;d<a.length&&d<c.length;d++){const p=Lt(a[d],c[d]);if(p!==0)return p}return Lt(a.length,c.length)}(t.referenceValue,e.referenceValue);case 8:return function(i,o){const a=Lt(ir(i.latitude),ir(o.latitude));return a!==0?a:Lt(ir(i.longitude),ir(o.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return bM(t.arrayValue,e.arrayValue);case 10:return function(i,o){var a,c,d,p;const m=i.fields||{},v=o.fields||{},w=(a=m[g4])===null||a===void 0?void 0:a.arrayValue,E=(c=v[g4])===null||c===void 0?void 0:c.arrayValue,C=Lt(((d=w?.values)===null||d===void 0?void 0:d.length)||0,((p=E?.values)===null||p===void 0?void 0:p.length)||0);return C!==0?C:bM(w,E)}(t.mapValue,e.mapValue);case 11:return function(i,o){if(i===g3.mapValue&&o===g3.mapValue)return 0;if(i===g3.mapValue)return 1;if(o===g3.mapValue)return-1;const a=i.fields||{},c=Object.keys(a),d=o.fields||{},p=Object.keys(d);c.sort(),p.sort();for(let m=0;m<c.length&&m<p.length;++m){const v=z_(c[m],p[m]);if(v!==0)return v;const w=em(a[c[m]],d[p[m]]);if(w!==0)return w}return Lt(c.length,p.length)}(t.mapValue,e.mapValue);default:throw gt(23264,{Pe:n})}}function EM(t,e){if(typeof t=="string"&&typeof e=="string"&&t.length===e.length)return Lt(t,e);const n=yu(t),r=yu(e),s=Lt(n.seconds,r.seconds);return s!==0?s:Lt(n.nanos,r.nanos)}function bM(t,e){const n=t.values||[],r=e.values||[];for(let s=0;s<n.length&&s<r.length;++s){const i=em(n[s],r[s]);if(i)return i}return Lt(n.length,r.length)}function tm(t){return V_(t)}function V_(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?function(n){const r=yu(n);return`time(${r.seconds},${r.nanos})`}(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?function(n){return xu(n).toBase64()}(t.bytesValue):"referenceValue"in t?function(n){return lt.fromName(n).toString()}(t.referenceValue):"geoPointValue"in t?function(n){return`geo(${n.latitude},${n.longitude})`}(t.geoPointValue):"arrayValue"in t?function(n){let r="[",s=!0;for(const i of n.values||[])s?s=!1:r+=",",r+=V_(i);return r+"]"}(t.arrayValue):"mapValue"in t?function(n){const r=Object.keys(n.fields||{}).sort();let s="{",i=!0;for(const o of r)i?i=!1:s+=",",s+=`${o}:${V_(n.fields[o])}`;return s+"}"}(t.mapValue):gt(61005,{value:t})}function ny(t){switch(wu(t)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const e=W5(t);return e?16+ny(e):16;case 5:return 2*t.stringValue.length;case 6:return xu(t.bytesValue).approximateByteSize();case 7:return t.referenceValue.length;case 9:return function(r){return(r.values||[]).reduce((s,i)=>s+ny(i),0)}(t.arrayValue);case 10:case 11:return function(r){let s=0;return Nf(r.fields,(i,o)=>{s+=i.length+ny(o)}),s}(t.mapValue);default:throw gt(13486,{value:t})}}function B_(t){return!!t&&"integerValue"in t}function bS(t){return!!t&&"arrayValue"in t}function SM(t){return!!t&&"nullValue"in t}function CM(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function ry(t){return!!t&&"mapValue"in t}function h6e(t){var e,n;return((n=(((e=t?.mapValue)===null||e===void 0?void 0:e.fields)||{})[jH])===null||n===void 0?void 0:n.stringValue)===LH}function v0(t){if(t.geoPointValue)return{geoPointValue:Object.assign({},t.geoPointValue)};if(t.timestampValue&&typeof t.timestampValue=="object")return{timestampValue:Object.assign({},t.timestampValue)};if(t.mapValue){const e={mapValue:{fields:{}}};return Nf(t.mapValue.fields,(n,r)=>e.mapValue.fields[n]=v0(r)),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=v0(t.arrayValue.values[n]);return e}return Object.assign({},t)}function p6e(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue===f6e}/**
2288 * @license
2289 * Copyright 2017 Google LLC
2290 *
2291 * Licensed under the Apache License, Version 2.0 (the "License");
2292 * you may not use this file except in compliance with the License.
2293 * You may obtain a copy of the License at
2294 *
2295 *   http://www.apache.org/licenses/LICENSE-2.0
2296 *
2297 * Unless required by applicable law or agreed to in writing, software
2298 * distributed under the License is distributed on an "AS IS" BASIS,
2299 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2300 * See the License for the specific language governing permissions and
2301 * limitations under the License.
2302 */class Li{constructor(e){this.value=e}static empty(){return new Li({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let n=this.value;for(let r=0;r<e.length-1;++r)if(n=(n.mapValue.fields||{})[e.get(r)],!ry(n))return null;return n=(n.mapValue.fields||{})[e.lastSegment()],n||null}}set(e,n){this.getFieldsMap(e.popLast())[e.lastSegment()]=v0(n)}setAll(e){let n=Yr.emptyPath(),r={},s=[];e.forEach((o,a)=>{if(!n.isImmediateParentOf(a)){const c=this.getFieldsMap(n);this.applyChanges(c,r,s),r={},s=[],n=a.popLast()}o?r[a.lastSegment()]=v0(o):s.push(a.lastSegment())});const i=this.getFieldsMap(n);this.applyChanges(i,r,s)}delete(e){const n=this.field(e.popLast());ry(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return Ma(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let r=0;r<e.length;++r){let s=n.mapValue.fields[e.get(r)];ry(s)&&s.mapValue.fields||(s={mapValue:{fields:{}}},n.mapValue.fields[e.get(r)]=s),n=s}return n.mapValue.fields}applyChanges(e,n,r){Nf(n,(s,i)=>e[s]=i);for(const s of r)delete e[s]}clone(){return new Li(v0(this.value))}}function zH(t){const e=[];return Nf(t.fields,(n,r)=>{const s=new Yr([n]);if(ry(r)){const i=zH(r.mapValue).fields;
vendor: 4,180 bytes, lines 2302-2342
2302if(i.length===0)e.push(s);else for(const o of i)e.push(s.child(o))}else e.push(s)}),new Ro(e)}/**
2303 * @license
2304 * Copyright 2017 Google LLC
2305 *
2306 * Licensed under the Apache License, Version 2.0 (the "License");
2307 * you may not use this file except in compliance with the License.
2308 * You may obtain a copy of the License at
2309 *
2310 *   http://www.apache.org/licenses/LICENSE-2.0
2311 *
2312 * Unless required by applicable law or agreed to in writing, software
2313 * distributed under the License is distributed on an "AS IS" BASIS,
2314 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2315 * See the License for the specific language governing permissions and
2316 * limitations under the License.
2317 */class ls{constructor(e,n,r,s,i,o,a){this.key=e,this.documentType=n,this.version=r,this.readTime=s,this.createTime=i,this.data=o,this.documentState=a}static newInvalidDocument(e){return new ls(e,0,St.min(),St.min(),St.min(),Li.empty(),0)}static newFoundDocument(e,n,r,s){return new ls(e,1,n,St.min(),r,s,0)}static newNoDocument(e,n){return new ls(e,2,n,St.min(),St.min(),Li.empty(),0)}static newUnknownDocument(e,n){return new ls(e,3,n,St.min(),St.min(),Li.empty(),2)}convertToFoundDocument(e,n){return!this.createTime.isEqual(St.min())||this.documentType!==2&&this.documentType!==0||(this.createTime=e),this.version=e,this.documentType=1,this.data=n,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=Li.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=Li.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=St.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return this.documentState===1}get hasCommittedMutations(){return this.documentState===2}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return this.documentType!==0}isFoundDocument(){return this.documentType===1}isNoDocument(){return this.documentType===2}isUnknownDocument(){return this.documentType===3}isEqual(e){return e instanceof ls&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new ls(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}/**
2318 * @license
2319 * Copyright 2022 Google LLC
2320 *
2321 * Licensed under the Apache License, Version 2.0 (the "License");
2322 * you may not use this file except in compliance with the License.
2323 * You may obtain a copy of the License at
2324 *
2325 *   http://www.apache.org/licenses/LICENSE-2.0
2326 *
2327 * Unless required by applicable law or agreed to in writing, software
2328 * distributed under the License is distributed on an "AS IS" BASIS,
2329 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2330 * See the License for the specific language governing permissions and
2331 * limitations under the License.
2332 */class v4{constructor(e,n){this.position=e,this.inclusive=n}}function TM(t,e,n){let r=0;for(let s=0;s<t.position.length;s++){const i=e[s],o=t.position[s];if(i.field.isKeyField()?r=lt.comparator(lt.fromName(o.referenceValue),n.key):r=em(o,n.data.field(i.field)),i.dir==="desc"&&(r*=-1),r!==0)break}return r}function AM(t,e){if(t===null)return e===null;if(e===null||t.inclusive!==e.inclusive||t.position.length!==e.position.length)return!1;for(let n=0;n<t.position.length;n++)if(!Ma(t.position[n],e.position[n]))return!1;return!0}/**
2333 * @license
2334 * Copyright 2022 Google LLC
2335 *
2336 * Licensed under the Apache License, Version 2.0 (the "License");
2337 * you may not use this file except in compliance with the License.
2338 * You may obtain a copy of the License at
2339 *
2340 *   http://www.apache.org/licenses/LICENSE-2.0
2341 *
2342 * Unless required by applicable law or agreed to in writing, softw
2342are
2343 * distributed under the License is distributed on an "AS IS" BASIS,
2344 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2345 * See the License for the specific language governing permissions and
2346 * limitations under the License.
2347 */class y4{constructor(e,n="asc"){this.field=e,this.dir=n}}function m6e(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}/**
2348 * @license
2349 * Copyright 2022 Google LLC
2350 *
2351 * Licensed under the Apache License, Version 2.0 (the "License");
2352 * you may not use this file except in compliance with the License.
2353 * You may obtain a copy of the License at
2354 *
2355 *   http://www.apache.org/licenses/LICENSE-2.0
2356 *
2357 * Unless required by applicable law or agreed to in writing, software
2358 * distributed under the License is distributed on an "AS IS" BASIS,
2359 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2360 * See the License for the specific language governing permissions and
2361 * limitations under the License.
2362 */class VH{}class Sr extends VH{constructor(e,n,r){super(),this.field=e,this.op=n,this.value=r}static create(e,n,r){return e.isKeyField()?n==="in"||n==="not-in"?this.createKeyFieldInFilter(e,n,r):new v6e(e,n,r):n==="array-contains"?new w6e(e,r):n==="in"?new _6e(e,r):n==="not-in"?new E6e(e,r):n==="array-contains-any"?new b6e(e,r):new Sr(e,n,r)}static createKeyFieldInFilter(e,n,r){return n==="in"?new y6e(e,r):new x6e(e,r)}matches(e){const n=e.data.field(this.field);return this.op==="!="?n!==null&&n.nullValue===void 0&&this.matchesComparison(em(n,this.value)):n!==null&&wu(this.value)===wu(n)&&this.matchesComparison(em(n,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return e===0;case"!=":return e!==0;case">":return e>0;case">=":return e>=0;default:return gt(47266,{operator:this.op})}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class ka extends VH{constructor(e,n){super(),this.filters=e,this.op=n,this.Te=null}static create(e,n){return new ka(e,n)}matches(e){return BH(this)?this.filters.find(n=>!n.matches(e))===void 0:this.filters.find(n=>n.matches(e))!==void 0}getFlattenedFilters(){return this.Te!==null||(this.Te=this.filters.reduce((e,n)=>e.concat(n.getFlattenedFilters()),[])),this.Te}getFilters(){return Object.assign([],this.filters)}}function BH(t){return t.op==="and"}function HH(t){return g6e(t)&&BH(t)}function g6e(t){for(const e of t.filters)if(e instanceof ka)return!1;return!0}function H_(t){if(t instanceof Sr)return t.field.canonicalString()+t.op.toString()+tm(t.value);if(HH(t))return t.filters.map(e=>H_(e)).join(",");{const e=t.filters.map(n=>H_(n)).join(",");return`${t.op}(${e})`}}function UH(t,e){return t instanceof Sr?function(r,s){return s instanceof Sr&&r.op===s.op&&r.field.isEqual(s.field)&&Ma(r.value,s.value)}(t,e):t instanceof ka?function(r,s){return s instanceof ka&&r.op===s.op&&r.filters.length===s.filters.length?r.filters.reduce((i,o,a)=>i&&UH(o,s.filters[a]),!0):!1}(t,e):void gt(19439)}function WH(t){return t instanceof Sr?function(n){return`${n.field.canonicalString()} ${n.op} ${tm(n.value)}`}(t):t instanceof ka?function(n){return n.op.toString()+" {"+n.getFilters().map(WH).join(" ,")+"}"}(t):"Filter"}class v6e extends Sr{constructor(e,n,r){super(e,n,r),this.key=lt.fromName(r.referenceValue)}matches(e){const n=lt.comparator(e.key,this.key);return this.matchesComparison(n)}}class y6e extends Sr{constructor(e,n){super(e,"in",n),this.keys=qH("in",n)}matches(e){return this.keys.some(n=>n.isEqual(e.key))}}class x6e extends Sr{constructor(e,n){super(e,"not-in",n),this.keys=qH("not-in",n)}matches(e){return!this.keys.some(n=>n.isEqual(e.key))}}function qH(t,e){var n;return(((n=e.arrayValue)===null||n===void 0?void 0:n.values)||[]).map(r=>lt.fromName(r.referenceValue))}class w6e extends Sr{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return bS(n)&&W0(n.arrayValue,this.value)}}class _6e extends Sr{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&W0(this.value.arrayValue,n)}}class E6e extends Sr{constructor(e,n){super(e,"not-in",n)}matches(e){if(W0(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&n.nullValue===void 0&&!W0(this.value.arrayValue,n)}}class b6e extends Sr{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!bS(n)||!n.arrayValue.values)&&n.arrayValue.values.some(r=>
2362W0(this.value.arrayValue,r))}}/**
2363 * @license
2364 * Copyright 2019 Google LLC
2365 *
2366 * Licensed under the Apache License, Version 2.0 (the "License");
2367 * you may not use this file except in compliance with the License.
2368 * You may obtain a copy of the License at
2369 *
2370 *   http://www.apache.org/licenses/LICENSE-2.0
2371 *
2372 * Unless required by applicable law or agreed to in writing, software
2373 * distributed under the License is distributed on an "AS IS" BASIS,
2374 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2375 * See the License for the specific language governing permissions and
2376 * limitations under the License.
2377 */class S6e{constructor(e,n=null,r=[],s=[],i=null,o=null,a=null){this.path=e,this.collectionGroup=n,this.orderBy=r,this.filters=s,this.limit=i,this.startAt=o,this.endAt=a,this.Ie=null}}function IM(t,e=null,n=[],r=[],s=null,i=null,o=null){return new S6e(t,e,n,r,s,i,o)}function SS(t){const e=At(t);if(e.Ie===null){let n=e.path.canonicalString();e.collectionGroup!==null&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map(r=>H_(r)).join(","),n+="|ob:",n+=e.orderBy.map(r=>function(i){return i.field.canonicalString()+i.dir}(r)).join(","),U5(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map(r=>tm(r)).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map(r=>tm(r)).join(",")),e.Ie=n}return e.Ie}function CS(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(let n=0;n<t.orderBy.length;n++)if(!m6e(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(let n=0;n<t.filters.length;n++)if(!UH(t.filters[n],e.filters[n]))return!1;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!AM(t.startAt,e.startAt)&&AM(t.endAt,e.endAt)}function U_(t){return lt.isDocumentKey(t.path)&&t.collectionGroup===null&&t.filters.length===0}/**
2378 * @license
2379 * Copyright 2017 Google LLC
2380 *
2381 * Licensed under the Apache License, Version 2.0 (the "License");
2382 * you may not use this file except in compliance with the License.
2383 * You may obtain a copy of the License at
2384 *
2385 *   http://www.apache.org/licenses/LICENSE-2.0
2386 *
2387 * Unless required by applicable law or agreed to in writing, software
2388 * distributed under the License is distributed on an "AS IS" BASIS,
2389 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2390 * See the License for the specific language governing permissions and
2391 * limitations under the License.
2392 */class q5{constructor(e,n=null,r=[],s=[],i=null,o="F",a=null,c=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=s,this.limit=i,this.limitType=o,this.startAt=a,this.endAt=c,this.Ee=null,this.de=null,this.Ae=null,this.startAt,this.endAt}}function C6e(t,e,n,r,s,i,o,a){return new q5(t,e,n,r,s,i,o,a)}function TS(t){return new q5(t)}function PM(t){return t.filters.length===0&&t.limit===null&&t.startAt==null&&t.endAt==null&&(t.explicitOrderBy.length===0||t.explicitOrderBy.length===1&&t.explicitOrderBy[0].field.isKeyField())}function T6e(t){return t.collectionGroup!==null}function y0(t){const e=At(t);if(e.Ee===null){e.Ee=[];const n=new Set;for(const i of e.explicitOrderBy)e.Ee.push(i),n.add(i.field.canonicalString());const r=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(o){let a=new Ar(Yr.comparator);return o.filters.forEach(c=>{c.getFlattenedFilters().forEach(d=>{d.isInequality()&&(a=a.add(d.field))})}),a})(e).forEach(i=>{n.has(i.canonicalString())||i.isKeyField()||e.Ee.push(new y4(i,r))}),n.has(Yr.keyField().canonicalString())||e.Ee.push(new y4(Yr.keyField(),r))}return e.Ee}function Ea(t){const e=At(t);return e.de||(e.de=A6e(e,y0(t))),e.de}function A6e(t,e){if(t.limitType==="F")return IM(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map(s=>{const i=s.dir==="desc"?"asc":"desc";return new y4(s.field,i)});const n=t.endAt?new v4(t.endAt.position,t.endAt.inclusive):null,r=t.startAt?new v4(t.startAt.position,t.startAt.inclusive):null;return IM(t.path,t.collectionGroup,e,t.filters,t.limit,n,r)}}function W_(t,e,n){return new q5(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function G5(t,e){return CS(Ea(t),Ea(e))&&t.limitType===e.limitType}function GH(t){return`${SS(Ea(t))}|lt:${t.limitType}`}function zh(t){return`Query(target=${function(n){let r=n.path.canonicalString();return n.collectionGroup!==null&&(r+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(r+=`, filters: [${n.filters.map(s=>WH(s)).join(", ")}]`),U5(n.limit)||(r+=", limit: "+n.limit),n.orderBy.length>0&&(r+=`, orderBy: [${n.orderBy.map(s=>function(o){return`${o.field.canonicalString()} (${o.dir})`}(s)).join(", ")}]`),n.startAt&&(r+=", startAt: ",r+=n.startAt.inclusive?"b:":"a:",r+=n.startAt.position.map(s=>tm(s)).join(",")),n.endAt&&(r+=", endAt: ",r+=n.endAt.inclusive?"a:":"b:",r+=n.endAt.position.map(s=>tm(s)).join(",")),`Target(${r})`}(Ea(t))}; limitType=${t.limitType})`}function K5(t,e){return e.isFoundDocument()&&function(r,s){const i=s.key.path;return r.collectionGroup!==null?s.key.hasCollectionId(r.collectionGroup)&&r.path.isPrefixOf(i):lt.isDocumentKey(r.path)?r.path.isEqual(i):r.path.isImmediateParentOf(i)}(t,e)&&function(r,s){for(const i of y0(r))if(!i.field.isKeyField()&&s.data.field(i.field)===null)return!1;return!0}(t,e)&&function(r,s){for(const i of r.filters)if(!i.matches(s))return!1;return!0}(t,e)&&function(r,s){return!(r.startAt&&!function(o,a,c){const d=TM(o,a,c);return o.inclusive?d<=0:d<0}(r.startAt,y0(r),s)||r.endAt&&!function(o,a,c){const d=TM(o,a,c);return o.inclusive?d>=0:d>0}(r.endAt,y0(r),s))}(t,e)}function I6e(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}function KH(t){return(e,n)=>{let r=!1;for(const s of y0(t)){const i=P6e(s,e,n);if(i!==0)return i;r=r||s.field.isKeyField()}return 0}}function P6e(t,e,n){const r=t.field.isKeyField()?lt.comparator(e.key,n.key):function(i,o,a){const c=o.data.field(i),d=a.data.field(i);return c!==null&&d!==null?em(c,d):gt(42886)}
2392(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return gt(19790,{direction:t.dir})}}/**
2393 * @license
2394 * Copyright 2017 Google LLC
2395 *
2396 * Licensed under the Apache License, Version 2.0 (the "License");
2397 * you may not use this file except in compliance with the License.
2398 * You may obtain a copy of the License at
2399 *
2400 *   http://www.apache.org/licenses/LICENSE-2.0
2401 *
2402 * Unless required by applicable law or agreed to in writing, software
2403 * distributed under the License is distributed on an "AS IS" BASIS,
2404 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2405 * See the License for the specific language governing permissions and
2406 * limitations under the License.
2407 */class Mf{constructor(e,n){this.mapKeyFn=e,this.equalsFn=n,this.inner={},this.innerSize=0}get(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r!==void 0){for(const[s,i]of r)if(this.equalsFn(s,e))return i}}has(e){return this.get(e)!==void 0}set(e,n){const r=this.mapKeyFn(e),s=this.inner[r];if(s===void 0)return this.inner[r]=[[e,n]],void this.innerSize++;for(let i=0;i<s.length;i++)if(this.equalsFn(s[i][0],e))return void(s[i]=[e,n]);s.push([e,n]),this.innerSize++}delete(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r===void 0)return!1;for(let s=0;s<r.length;s++)if(this.equalsFn(r[s][0],e))return r.length===1?delete this.inner[n]:r.splice(s,1),this.innerSize--,!0;return!1}forEach(e){Nf(this.inner,(n,r)=>{for(const[s,i]of r)e(s,i)})}isEmpty(){return MH(this.inner)}size(){return this.innerSize}}/**
2408 * @license
2409 * Copyright 2017 Google LLC
2410 *
2411 * Licensed under the Apache License, Version 2.0 (the "License");
2412 * you may not use this file except in compliance with the License.
2413 * You may obtain a copy of the License at
2414 *
2415 *   http://www.apache.org/licenses/LICENSE-2.0
2416 *
2417 * Unless required by applicable law or agreed to in writing, software
2418 * distributed under the License is distributed on an "AS IS" BASIS,
2419 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2420 * See the License for the specific language governing permissions and
2421 * limitations under the License.
2422 */const R6e=new Wn(lt.comparator);function Vl(){return R6e}const YH=new Wn(lt.comparator);function X1(...t){let e=YH;for(const n of t)e=e.insert(n.key,n);return e}function QH(t){let e=YH;return t.forEach((n,r)=>e=e.insert(n,r.overlayedDocument)),e}function Pd(){return x0()}function XH(){return x0()}function x0(){return new Mf(t=>t.toString(),(t,e)=>t.isEqual(e))}const N6e=new Wn(lt.comparator),M6e=new Ar(lt.comparator);function Wt(...t){let e=M6e;for(const n of t)e=e.add(n);return e}const k6e=new Ar(Lt);function D6e(){return k6e}/**
2423 * @license
2424 * Copyright 2020 Google LLC
2425 *
2426 * Licensed under the Apache License, Version 2.0 (the "License");
2427 * you may not use this file except in compliance with the License.
2428 * You may obtain a copy of the License at
2429 *
2430 *   http://www.apache.org/licenses/LICENSE-2.0
2431 *
2432 * Unless required by applicable law or agreed to in writing, software
2433 * distributed under the License is distributed on an "AS IS" BASIS,
2434 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2435 * See the License for the specific language governing permissions and
2436 * limitations under the License.
2437 */function AS(t,e){if(t.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:p4(e)?"-0":e}}function ZH(t){return{integerValue:""+t}}function O6e(t,e){return a6e(e)?ZH(e):AS(t,e)}/**
2438 * @license
2439 * Copyright 2018 Google LLC
2440 *
2441 * Licensed under the Apache License, Version 2.0 (the "License");
2442 * you may not use this file except in compliance with the License.
2443 * You may obtain a copy of the License at
2444 *
2445 *   http://www.apache.org/licenses/LICENSE-2.0
2446 *
2447 * Unless required by applicable law or agreed to in writing, software
2448 * distributed under the License is distributed on an "AS IS" BASIS,
2449 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2450 * See the License for the specific language governing permissions and
2451 * limitations under the License.
2452 */class Y5{constructor(){this._=void 0}}function $6e(t,e,n){return t instanceof x4?function(s,i){const o={fields:{[OH]:{stringValue:DH},[FH]:{timestampValue:{seconds:s.seconds,nanos:s.nanoseconds}}}};return i&&ES(i)&&(i=W5(i)),i&&(o.fields[$H]=i),{mapValue:o}}(n,e):t instanceof q0?eU(t,e):t instanceof G0?tU(t,e):function(s,i){const o=JH(s,i),a=RM(o)+RM(s.Re);return B_(o)&&B_(s.Re)?ZH(a):AS(s.serializer,a)}(t,e)}function F6e(t,e,n){return t instanceof q0?eU(t,e):t instanceof G0?tU(t,e):n}function JH(t,e){return t instanceof w4?function(r){return B_(r)||function(i){return!!i&&"doubleValue"in i}(r)}(e)?e:{integerValue:0}:null}class x4 extends Y5{}class q0 extends Y5{constructor(e){super(),this.elements=e}}function eU(t,e){const n=nU(e);for(const r of t.elements)n.some(s=>Ma(s,r))||n.push(r);return{arrayValue:{values:n}}}class G0 extends Y5{constructor(e){super(),this.elements=e}}function tU(t,e){let n=nU(e);for(const r of t.elements)n=n.filter(s=>!Ma(s,r));return{arrayValue:{values:n}}}
2452class w4 extends Y5{constructor(e,n){super(),this.serializer=e,this.Re=n}}function RM(t){return ir(t.integerValue||t.doubleValue)}function nU(t){return bS(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}function j6e(t,e){return t.field.isEqual(e.field)&&function(r,s){return r instanceof q0&&s instanceof q0||r instanceof G0&&s instanceof G0?Jp(r.elements,s.elements,Ma):r instanceof w4&&s instanceof w4?Ma(r.Re,s.Re):r instanceof x4&&s instanceof x4}(t.transform,e.transform)}class L6e{constructor(e,n){this.version=e,this.transformResults=n}}class Tl{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new Tl}static exists(e){return new Tl(void 0,e)}static updateTime(e){return new Tl(e)}get isNone(){return this.updateTime===void 0&&this.exists===void 0}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function sy(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}class Q5{}function rU(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new iU(t.key,Tl.none()):new tg(t.key,t.data,Tl.none());{const n=t.data,r=Li.empty();let s=new Ar(Yr.comparator);for(let i of e.fields)if(!s.has(i)){let o=n.field(i);o===null&&i.length>1&&(i=i.popLast(),o=n.field(i)),o===null?r.delete(i):r.set(i,o),s=s.add(i)}return new kf(t.key,r,new Ro(s.toArray()),Tl.none())}}function z6e(t,e,n){t instanceof tg?function(s,i,o){const a=s.value.clone(),c=MM(s.fieldTransforms,i,o.transformResults);a.setAll(c),i.convertToFoundDocument(o.version,a).setHasCommittedMutations()}(t,e,n):t instanceof kf?function(s,i,o){if(!sy(s.precondition,i))return void i.convertToUnknownDocument(o.version);const a=MM(s.fieldTransforms,i,o.transformResults),c=i.data;c.setAll(sU(s)),c.setAll(a),i.convertToFoundDocument(o.version,c).setHasCommittedMutations()}(t,e,n):function(s,i,o){i.convertToNoDocument(o.version).setHasCommittedMutations()}(0,e,n)}function w0(t,e,n,r){return t instanceof tg?function(i,o,a,c){if(!sy(i.precondition,o))return a;const d=i.value.clone(),p=kM(i.fieldTransforms,c,o);return d.setAll(p),o.convertToFoundDocument(o.version,d).setHasLocalMutations(),null}(t,e,n,r):t instanceof kf?function(i,o,a,c){if(!sy(i.precondition,o))return a;const d=kM(i.fieldTransforms,c,o),p=o.data;return p.setAll(sU(i)),p.setAll(d),o.convertToFoundDocument(o.version,p).setHasLocalMutations(),a===null?null:a.unionWith(i.fieldMask.fields).unionWith(i.fieldTransforms.map(m=>m.field))}(t,e,n,r):function(i,o,a){return sy(i.precondition,o)?(o.convertToNoDocument(o.version).setHasLocalMutations(),null):a}(t,e,n)}function V6e(t,e){let n=null;for(const r of t.fieldTransforms){const s=e.data.field(r.field),i=JH(r.transform,s||null);i!=null&&(n===null&&(n=Li.empty()),n.set(r.field,i))}return n||null}function NM(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!function(r,s){return r===void 0&&s===void 0||!(!r||!s)&&Jp(r,s,(i,o)=>j6e(i,o))}(t.fieldTransforms,e.fieldTransforms)&&(t.type===0?t.value.isEqual(e.value):t.type!==1||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask))}class tg extends Q5{constructor(e,n,r,s=[]){super(),this.key=e,this.value=n,this.precondition=r,this.fieldTransforms=s,this.type=0}getFieldMask(){return null}}class kf extends Q5{constructor(e,n,r,s,i=[]){super(),this.key=e,this.data=n,this.fieldMask=r,this.precondition=s,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function sU(t){const e=new Map;return t.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const r=t.data.field(n);e.set(n,r)}}),e}function MM(t,e,n){const r=new Map;fn(t.length===n.length,32656,{Ve:n.length,me:t.length});for(let s=0;s<n.length;s++){const i=t[s],o=i.transform,a=e.data.field(i.field);r.set(i.field,F6e(o,a,n[s]))}return r}function kM(t,e,n){const r=new Map;for(const s of t){const i=s.transform,o=n.data.field(s.field);r.set(s.field,$6e(i,o,e))}return r}class iU extends Q5{constructor(e,n){super(),this.key=e,this.prec
2452ondition=n,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class B6e extends Q5{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}/**
2453 * @license
2454 * Copyright 2017 Google LLC
2455 *
2456 * Licensed under the Apache License, Version 2.0 (the "License");
2457 * you may not use this file except in compliance with the License.
2458 * You may obtain a copy of the License at
2459 *
2460 *   http://www.apache.org/licenses/LICENSE-2.0
2461 *
2462 * Unless required by applicable law or agreed to in writing, software
2463 * distributed under the License is distributed on an "AS IS" BASIS,
2464 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2465 * See the License for the specific language governing permissions and
2466 * limitations under the License.
2467 */class H6e{constructor(e,n,r,s){this.batchId=e,this.localWriteTime=n,this.baseMutations=r,this.mutations=s}applyToRemoteDocument(e,n){const r=n.mutationResults;for(let s=0;s<this.mutations.length;s++){const i=this.mutations[s];i.key.isEqual(e.key)&&z6e(i,e,r[s])}}applyToLocalView(e,n){for(const r of this.baseMutations)r.key.isEqual(e.key)&&(n=w0(r,e,n,this.localWriteTime));for(const r of this.mutations)r.key.isEqual(e.key)&&(n=w0(r,e,n,this.localWriteTime));return n}applyToLocalDocumentSet(e,n){const r=XH();return this.mutations.forEach(s=>{const i=e.get(s.key),o=i.overlayedDocument;let a=this.applyToLocalView(o,i.mutatedFields);a=n.has(s.key)?null:a;const c=rU(o,a);c!==null&&r.set(s.key,c),o.isValidDocument()||o.convertToNoDocument(St.min())}),r}keys(){return this.mutations.reduce((e,n)=>e.add(n.key),Wt())}isEqual(e){return this.batchId===e.batchId&&Jp(this.mutations,e.mutations,(n,r)=>NM(n,r))&&Jp(this.baseMutations,e.baseMutations,(n,r)=>NM(n,r))}}class IS{constructor(e,n,r,s){this.batch=e,this.commitVersion=n,this.mutationResults=r,this.docVersions=s}static from(e,n,r){fn(e.mutations.length===r.length,58842,{fe:e.mutations.length,ge:r.length});let s=function(){return N6e}();const i=e.mutations;for(let o=0;o<i.length;o++)s=s.insert(i[o].key,r[o].version);return new IS(e,n,r,s)}}/**
2468 * @license
2469 * Copyright 2022 Google LLC
2470 *
2471 * Licensed under the Apache License, Version 2.0 (the "License");
2472 * you may not use this file except in compliance with the License.
2473 * You may obtain a copy of the License at
2474 *
2475 *   http://www.apache.org/licenses/LICENSE-2.0
2476 *
2477 * Unless required by applicable law or agreed to in writing, software
2478 * distributed under the License is distributed on an "AS IS" BASIS,
2479 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2480 * See the License for the specific language governing permissions and
2481 * limitations under the License.
2482 */class U6e{constructor(e,n){this.largestBatchId=e,this.mutation=n}getKey(){return this.mutation.key}isEqual(e){return e!==null&&this.mutation===e.mutation}toString(){return`Overlay{
2483      largestBatchId: ${this.largestBatchId},
2484      mutation: ${this.mutation.toString()}
2485    }`}}/**
2486 * @license
2487 * Copyright 2017 Google LLC
2488 *
2489 * Licensed under the Apache License, Version 2.0 (the "License");
2490 * you may not use this file except in compliance with the License.
2491 * You may obtain a copy of the License at
2492 *
2493 *   http://www.apache.org/licenses/LICENSE-2.0
2494 *
2495 * Unless required by applicable law or agreed to in writing, software
2496 * distributed under the License is distributed on an "AS IS" BASIS,
2497 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2498 * See the License for the specific language governing permissions and
2499 * limitations under the License.
2500 */class W6e{constructor(e,n){this.count=e,this.unchangedNames=n}}/**
2501 * @license
2502 * Copyright 2017 Google LLC
2503 *
2504 * Licensed under the Apache License, Version 2.0 (the "License");
2505 * you may not use this file except in compliance with the License.
2506 * You may obtain a copy of the License at
2507 *
2508 *   http://www.apache.org/licenses/LICENSE-2.0
2509 *
2510 * Unless required by applicable law or agreed to in writing, software
2511 * distributed under the License is distributed on an "AS IS" BASIS,
2512 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2513 * See the License for the specific language governing permissions and
2514 * limitations under the License.
2515 */var pr,Jt;function q6e(t){switch(t){case Te.OK:return gt(64938);case Te.CANCELLED:case Te.UNKNOWN:case Te.DEADLINE_EXCEEDED:case Te.RESOURCE_EXHAUSTED:case Te.INTERNAL:case Te.UNAVAILABLE:case Te.UNAUTHENTICATED:return!1;case Te.INVALID_ARGUMENT:case Te.NOT_FOUND:case Te.ALREADY_EXISTS:case Te.PERMISSION_DENIED:case Te.FAILED_PRECONDITION:case Te.ABORTED:case Te.OUT_OF_RANGE:case Te.UNIMPLEMENT
vendor: 2,449 bytes, lines 2515-2530
2515ED:case Te.DATA_LOSS:return!0;default:return gt(15467,{code:t})}}function oU(t){if(t===void 0)return zl("GRPC error has no .code"),Te.UNKNOWN;switch(t){case pr.OK:return Te.OK;case pr.CANCELLED:return Te.CANCELLED;case pr.UNKNOWN:return Te.UNKNOWN;case pr.DEADLINE_EXCEEDED:return Te.DEADLINE_EXCEEDED;case pr.RESOURCE_EXHAUSTED:return Te.RESOURCE_EXHAUSTED;case pr.INTERNAL:return Te.INTERNAL;case pr.UNAVAILABLE:return Te.UNAVAILABLE;case pr.UNAUTHENTICATED:return Te.UNAUTHENTICATED;case pr.INVALID_ARGUMENT:return Te.INVALID_ARGUMENT;case pr.NOT_FOUND:return Te.NOT_FOUND;case pr.ALREADY_EXISTS:return Te.ALREADY_EXISTS;case pr.PERMISSION_DENIED:return Te.PERMISSION_DENIED;case pr.FAILED_PRECONDITION:return Te.FAILED_PRECONDITION;case pr.ABORTED:return Te.ABORTED;case pr.OUT_OF_RANGE:return Te.OUT_OF_RANGE;case pr.UNIMPLEMENTED:return Te.UNIMPLEMENTED;case pr.DATA_LOSS:return Te.DATA_LOSS;default:return gt(39323,{code:t})}}(Jt=pr||(pr={}))[Jt.OK=0]="OK",Jt[Jt.CANCELLED=1]="CANCELLED",Jt[Jt.UNKNOWN=2]="UNKNOWN",Jt[Jt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Jt[Jt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Jt[Jt.NOT_FOUND=5]="NOT_FOUND",Jt[Jt.ALREADY_EXISTS=6]="ALREADY_EXISTS",Jt[Jt.PERMISSION_DENIED=7]="PERMISSION_DENIED",Jt[Jt.UNAUTHENTICATED=16]="UNAUTHENTICATED",Jt[Jt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Jt[Jt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Jt[Jt.ABORTED=10]="ABORTED",Jt[Jt.OUT_OF_RANGE=11]="OUT_OF_RANGE",Jt[Jt.UNIMPLEMENTED=12]="UNIMPLEMENTED",Jt[Jt.INTERNAL=13]="INTERNAL",Jt[Jt.UNAVAILABLE=14]="UNAVAILABLE",Jt[Jt.DATA_LOSS=15]="DATA_LOSS";/**
2516 * @license
2517 * Copyright 2022 Google LLC
2518 *
2519 * Licensed under the Apache License, Version 2.0 (the "License");
2520 * you may not use this file except in compliance with the License.
2521 * You may obtain a copy of the License at
2522 *
2523 *   http://www.apache.org/licenses/LICENSE-2.0
2524 *
2525 * Unless required by applicable law or agreed to in writing, software
2526 * distributed under the License is distributed on an "AS IS" BASIS,
2527 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2528 * See the License for the specific language governing permissions and
2529 * limitations under the License.
2530 */const G6e=new lu([4294967295,4294967295],0);function DM(t){const e=PH().encode(t),n=new _H;return n.update(e),new Uint8Array(n.digest())}function OM(t){const e=new DataView(t.buffer),n=e.getUint32(0,!0),r=e.getUint32(4,!0),s=e.getUint32(8,!0),i=e.getUint32(12,!0);
vendor: 5,674 bytes, lines 2530-2560
2530return[new lu([n,r],0),new lu([s,i],0)]}class PS{constructor(e,n,r){if(this.bitmap=e,this.padding=n,this.hashCount=r,n<0||n>=8)throw new Z1(`Invalid padding: ${n}`);if(r<0)throw new Z1(`Invalid hash count: ${r}`);if(e.length>0&&this.hashCount===0)throw new Z1(`Invalid hash count: ${r}`);if(e.length===0&&n!==0)throw new Z1(`Invalid padding when bitmap length is 0: ${n}`);this.pe=8*e.length-n,this.ye=lu.fromNumber(this.pe)}we(e,n,r){let s=e.add(n.multiply(lu.fromNumber(r)));return s.compare(G6e)===1&&(s=new lu([s.getBits(0),s.getBits(1)],0)),s.modulo(this.ye).toNumber()}be(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(this.pe===0)return!1;const n=DM(e),[r,s]=OM(n);for(let i=0;i<this.hashCount;i++){const o=this.we(r,s,i);if(!this.be(o))return!1}return!0}static create(e,n,r){const s=e%8==0?0:8-e%8,i=new Uint8Array(Math.ceil(e/8)),o=new PS(i,s,n);return r.forEach(a=>o.insert(a)),o}insert(e){if(this.pe===0)return;const n=DM(e),[r,s]=OM(n);for(let i=0;i<this.hashCount;i++){const o=this.we(r,s,i);this.Se(o)}}Se(e){const n=Math.floor(e/8),r=e%8;this.bitmap[n]|=1<<r}}class Z1 extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}/**
2531 * @license
2532 * Copyright 2017 Google LLC
2533 *
2534 * Licensed under the Apache License, Version 2.0 (the "License");
2535 * you may not use this file except in compliance with the License.
2536 * You may obtain a copy of the License at
2537 *
2538 *   http://www.apache.org/licenses/LICENSE-2.0
2539 *
2540 * Unless required by applicable law or agreed to in writing, software
2541 * distributed under the License is distributed on an "AS IS" BASIS,
2542 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2543 * See the License for the specific language governing permissions and
2544 * limitations under the License.
2545 */class X5{constructor(e,n,r,s,i){this.snapshotVersion=e,this.targetChanges=n,this.targetMismatches=r,this.documentUpdates=s,this.resolvedLimboDocuments=i}static createSynthesizedRemoteEventForCurrentChange(e,n,r){const s=new Map;return s.set(e,ng.createSynthesizedTargetChangeForCurrentChange(e,n,r)),new X5(St.min(),s,new Wn(Lt),Vl(),Wt())}}class ng{constructor(e,n,r,s,i){this.resumeToken=e,this.current=n,this.addedDocuments=r,this.modifiedDocuments=s,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,n,r){return new ng(r,n,Wt(),Wt(),Wt())}}/**
2546 * @license
2547 * Copyright 2017 Google LLC
2548 *
2549 * Licensed under the Apache License, Version 2.0 (the "License");
2550 * you may not use this file except in compliance with the License.
2551 * You may obtain a copy of the License at
2552 *
2553 *   http://www.apache.org/licenses/LICENSE-2.0
2554 *
2555 * Unless required by applicable law or agreed to in writing, software
2556 * distributed under the License is distributed on an "AS IS" BASIS,
2557 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2558 * See the License for the specific language governing permissions and
2559 * limitations under the License.
2560 */class iy{constructor(e,n,r,s){this.De=e,this.removedTargetIds=n,this.key=r,this.ve=s}}class aU{constructor(e,n){this.targetId=e,this.Ce=n}}class lU{constructor(e,n,r=Zr.EMPTY_BYTE_STRING,s=null){this.state=e,this.targetIds=n,this.resumeToken=r,this.cause=s}}class $M{constructor(){this.Fe=0,this.Me=FM(),this.xe=Zr.EMPTY_BYTE_STRING,this.Oe=!1,this.Ne=!0}get current(){return this.Oe}get resumeToken(){return this.xe}get Be(){return this.Fe!==0}get Le(){return this.Ne}ke(e){e.approximateByteSize()>0&&(this.Ne=!0,this.xe=e)}qe(){let e=Wt(),n=Wt(),r=Wt();return this.Me.forEach((s,i)=>{switch(i){case 0:e=e.add(s);break;case 2:n=n.add(s);break;case 1:r=r.add(s);break;default:gt(38017,{changeType:i})}}),new ng(this.xe,this.Oe,e,n,r)}Qe(){this.Ne=!1,this.Me=FM()}$e(e,n){this.Ne=!0,this.Me=this.Me.insert(e,n)}Ue(e){this.Ne=!0,this.Me=this.Me.remove(e)}Ke(){this.Fe+=1}We(){this.Fe-=1,fn(this.Fe>=0,3241,{Fe:this.Fe})}Ge(){this.Ne=!0,this.Oe=!0}}class K6e{constructor(e){this.ze=e,this.je=new Map,this.He=Vl(),this.Je=v3(),this.Ye=v3(),this.Ze=new Wn(Lt)}Xe(e){for(const n of e.De)e.ve&&e.ve.isFoundDocument()?this.et(n,e.ve):this.tt(n,e.key,e.ve);for(const n of e.removedTargetIds)this.tt(n,e.key,e.ve)}nt(e){this.forEachTarget(e,n=>{const r=this.rt(n);switch(e.state){case 0:this.it(n)&&r.ke(e.resumeToken);break;case 1:r.We(),r.Be||r.Qe(),r.ke(e.resumeToken);break;case 2:r.We(),r.Be||this.removeTarget(n);break;case 3:this.it(n)&&(r.Ge(),r.ke(e.resumeToken));break;case 4:this.it(n)&&(this.st(n),r.ke(e.resumeToken));break;default:gt(56790,{state:e.state})}})}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.je.forEach((r,s)=>{this.it(s)&&n(s)})}ot(e){const n=e.targetId,r=e.Ce.count,s=this._t(n);if(s){const i=s.target;if(U_(i))if(r===0){const o=new lt(i.path);this.tt(n,o,ls.newNoDocument(o,St.min()))}else fn(r===1,20013,{expectedCount:r});else{const o=this.ut(n);if(o!==r){const a=this.ct(e),c=a?this.lt(a,e,o):1;if(c!==0){this.st(n);const d=c===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ze=this.Ze.insert(n,d)}}}}}ct(e){const n=e.Ce.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:r="",padding:s=0},hashCount:i=0}=n;let o,a;try{o=xu(r).toUint8Array()}catch(c){if(c instanceof kH)return Zp("Decoding the base64 bloom filter in existence filter failed ("+c.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw c}try{a=new PS(o,s,i)}catch(c){return Zp(c instanceof Z1?"BloomFilter error: ":"Applying bloom filter failed: ",c),null}return a.pe===0?null:a}lt(e,n,r){return n.Ce.count===r-this.Tt(e,n.targetId)?0:2}Tt(e,n){const r=this.ze.getRemoteKeysForTarget(n);let s=0;return r.forEach(i=>
2560{const o=this.ze.Pt(),a=`projects/${o.projectId}/databases/${o.database}/documents/${i.path.canonicalString()}`;e.mightContain(a)||(this.tt(n,i,null),s++)}),s}It(e){const n=new Map;this.je.forEach((i,o)=>{const a=this._t(o);if(a){if(i.current&&U_(a.target)){const c=new lt(a.target.path);this.Et(c).has(o)||this.dt(o,c)||this.tt(o,c,ls.newNoDocument(c,e))}i.Le&&(n.set(o,i.qe()),i.Qe())}});let r=Wt();this.Ye.forEach((i,o)=>{let a=!0;o.forEachWhile(c=>{const d=this._t(c);return!d||d.purpose==="TargetPurposeLimboResolution"||(a=!1,!1)}),a&&(r=r.add(i))}),this.He.forEach((i,o)=>o.setReadTime(e));const s=new X5(e,n,this.Ze,this.He,r);return this.He=Vl(),this.Je=v3(),this.Ye=v3(),this.Ze=new Wn(Lt),s}et(e,n){if(!this.it(e))return;const r=this.dt(e,n.key)?2:0;this.rt(e).$e(n.key,r),this.He=this.He.insert(n.key,n),this.Je=this.Je.insert(n.key,this.Et(n.key).add(e)),this.Ye=this.Ye.insert(n.key,this.At(n.key).add(e))}tt(e,n,r){if(!this.it(e))return;const s=this.rt(e);this.dt(e,n)?s.$e(n,1):s.Ue(n),this.Ye=this.Ye.insert(n,this.At(n).delete(e)),this.Ye=this.Ye.insert(n,this.At(n).add(e)),r&&(this.He=this.He.insert(n,r))}removeTarget(e){this.je.delete(e)}ut(e){const n=this.rt(e).qe();return this.ze.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}Ke(e){this.rt(e).Ke()}rt(e){let n=this.je.get(e);return n||(n=new $M,this.je.set(e,n)),n}At(e){let n=this.Ye.get(e);return n||(n=new Ar(Lt),this.Ye=this.Ye.insert(e,n)),n}Et(e){let n=this.Je.get(e);return n||(n=new Ar(Lt),this.Je=this.Je.insert(e,n)),n}it(e){const n=this._t(e)!==null;return n||We("WatchChangeAggregator","Detected inactive target",e),n}_t(e){const n=this.je.get(e);return n&&n.Be?null:this.ze.Rt(e)}st(e){this.je.set(e,new $M),this.ze.getRemoteKeysForTarget(e).forEach(n=>{this.tt(e,n,null)})}dt(e,n){return this.ze.getRemoteKeysForTarget(e).has(n)}}function v3(){return new Wn(lt.comparator)}function FM(){return new Wn(lt.comparator)}const Y6e={asc:"ASCENDING",desc:"DESCENDING"},Q6e={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},X6e={and:"AND",or:"OR"};class Z6e{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function q_(t,e){return t.useProto3Json||U5(e)?e:{value:e}}function _4(t,e){return t.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function cU(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function J6e(t,e){return _4(t,e.toTimestamp())}function ba(t){return fn(!!t,49232),St.fromTimestamp(function(n){const r=yu(n);return new Tr(r.seconds,r.nanos)}(t))}function RS(t,e){return G_(t,e).canonicalString()}function G_(t,e){const n=function(s){return new Xn(["projects",s.projectId,"databases",s.database])}(t).child("documents");return e===void 0?n:n.child(e)}function uU(t){const e=Xn.fromString(t);return fn(mU(e),10190,{key:e.toString()}),e}function K_(t,e){return RS(t.databaseId,e.path)}function D7(t,e){const n=uU(e);if(n.get(1)!==t.databaseId.projectId)throw new at(Te.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new at(Te.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new lt(fU(n))}function dU(t,e){return RS(t.databaseId,e)}function exe(t){const e=uU(t);return e.length===4?Xn.emptyPath():fU(e)}function Y_(t){return new Xn(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function fU(t){return fn(t.length>4&&t.get(4)==="documents",29091,{key:t.toString()}),t.popFirst(5)}function jM(t,e,n){return{name:K_(t,e),fields:n.value.mapValue.fields}}function txe(t,e){let n;if("targetChange"in e){e.targetChange;const r=function(d){return d==="NO_CHANGE"?0:d==="ADD"?1:d==="REMOVE"?2:d==="CURRENT"?3:d==="RESET"?4:gt(39313,{state:d})}(e.targetChange.targetChangeType||"NO_CHANGE"),s=e.targetChange.targetIds||[],i=function(d,p){return d.useProto3Json?(fn(p===void 0||typeof p=="string",58123),Zr.fromBase64String(p||"")):(fn(p===void 0||p instanceof Buffer||p instanceof Uint8Array,16193),Zr.fromUint8Array(p||new Uint8Array))}(t,e.targetChange.resumeToken),o=e.targetChange.cause,a=o&&function(d){const p=d.code===void 0?Te.UNKNOWN:oU(d.code);return new at(p,d.message||"")}(o);n=new lU(r,s,i,a||null)}else if("documentChange"in e){e.documentChange;const r=e.documentChange;r.document,r.document.name,r.document.updateTime;const s=D7(t,r.document.name),i=ba(r.document.updateTime),o=r.document.createTime?ba(r.document.createTime):St.min(),a=new Li({mapValue:{fields:r.document.fields}}),c=ls.newFoundDocument(s,i,o,a),d=r.targetIds||[],p=r.removedTargetIds||[];n=new iy(d,p,c.key,c)}else if("documentDelete"in e){e.documentDelete;const r=e.documentDelete;r.document;const s=D7(t,r.document),i=r.readTime?ba(r.readTime):St.min(),o=ls.newNoDocument(s,i),a=r.removedTargetIds||[];n=new iy([],a,o.key,o)}else if("documentRemove"in e){e.documentRemove;const r=e.documentRemove;r.document;const s=D7(t,r.document),i=r.removedTargetIds||[];n=new iy([],i,s,null)}else{if(!("filter"in e))return gt(11601,{Vt:e});{e.filter;const r=e.filter;r.targetId;const{count:s=0,unchangedNames:i}=r,o=new W6e(s,i),a=r.targetId;n=new aU(a,o)}}return n}function nxe(t,e){let n;if(e instanceof tg)n={update:jM(t,e.key,e.value)};else if(e instanceof iU)n={delete:K_(t,e.key)};else if(e instanceof kf)n={update:jM(t,e.key,e.data),updateMask:dxe(e.fieldMask)};
2560else{if(!(e instanceof B6e))return gt(16599,{ft:e.type});n={verify:K_(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(r=>function(i,o){const a=o.transform;if(a instanceof x4)return{fieldPath:o.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof q0)return{fieldPath:o.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof G0)return{fieldPath:o.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof w4)return{fieldPath:o.field.canonicalString(),increment:a.Re};throw gt(20930,{transform:o.transform})}(0,r))),e.precondition.isNone||(n.currentDocument=function(s,i){return i.updateTime!==void 0?{updateTime:J6e(s,i.updateTime)}:i.exists!==void 0?{exists:i.exists}:gt(27497)}(t,e.precondition)),n}function rxe(t,e){return t&&t.length>0?(fn(e!==void 0,14353),t.map(n=>function(s,i){let o=s.updateTime?ba(s.updateTime):ba(i);return o.isEqual(St.min())&&(o=ba(i)),new L6e(o,s.transformResults||[])}(n,e))):[]}function sxe(t,e){return{documents:[dU(t,e.path)]}}function ixe(t,e){const n={structuredQuery:{}},r=e.path;let s;e.collectionGroup!==null?(s=r,n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(s=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=dU(t,s);const i=function(d){if(d.length!==0)return pU(ka.create(d,"and"))}(e.filters);i&&(n.structuredQuery.where=i);const o=function(d){if(d.length!==0)return d.map(p=>function(v){return{field:Vh(v.field),direction:lxe(v.dir)}}(p))}(e.orderBy);o&&(n.structuredQuery.orderBy=o);const a=q_(t,e.limit);return a!==null&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=function(d){return{before:d.inclusive,values:d.position}}(e.startAt)),e.endAt&&(n.structuredQuery.endAt=function(d){return{before:!d.inclusive,values:d.position}}(e.endAt)),{gt:n,parent:s}}function oxe(t){let e=exe(t.parent);const n=t.structuredQuery,r=n.from?n.from.length:0;let s=null;if(r>0){fn(r===1,65062);const p=n.from[0];p.allDescendants?s=p.collectionId:e=e.child(p.collectionId)}let i=[];n.where&&(i=function(m){const v=hU(m);return v instanceof ka&&HH(v)?v.getFilters():[v]}(n.where));let o=[];n.orderBy&&(o=function(m){return m.map(v=>function(E){return new y4(Bh(E.field),function(b){switch(b){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(E.direction))}(v))}(n.orderBy));let a=null;n.limit&&(a=function(m){let v;return v=typeof m=="object"?m.value:m,U5(v)?null:v}(n.limit));let c=null;n.startAt&&(c=function(m){const v=!!m.before,w=m.values||[];return new v4(w,v)}(n.startAt));let d=null;return n.endAt&&(d=function(m){const v=!m.before,w=m.values||[];return new v4(w,v)}(n.endAt)),C6e(e,s,o,i,a,"F",c,d)}function axe(t,e){const n=function(s){switch(s){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return gt(28987,{purpose:s})}}(e.purpose);return n==null?null:{"goog-listen-tags":n}}function hU(t){return t.unaryFilter!==void 0?function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=Bh(n.unaryFilter.field);return Sr.create(r,"==",{doubleValue:NaN});case"IS_NULL":const s=Bh(n.unaryFilter.field);return Sr.create(s,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const i=Bh(n.unaryFilter.field);return Sr.create(i,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const o=Bh(n.unaryFilter.field);return Sr.create(o,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":return gt(61313);default:return gt(60726)}}(t):t.fieldFilter!==void 0?function(n){return Sr.create(Bh(n.fieldFilter.field),function(s){switch(s){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":return gt(58110);default:return gt(50506)}}(n.fieldFilter.op),n.fieldFilter.value)}(t):t.compositeFilter!==void 0?function(n){return ka.create(n.compositeFilter.filters.map(r=>hU(r)),function(s){switch(s){case"AND":return"and";case"OR":return"or";default:return gt(1026)}}(n.compositeFilter.op))}(t):gt(30097,{filter:t})}function lxe(t){return Y6e[t]}function cxe(t){return Q6e[t]}function uxe(t){return X6e[t]}function Vh(t){return{fieldPath:t.canonicalString()}}function Bh(t){return Yr.fromServerFormat(t.fieldPath)}function pU(t){return t instanceof Sr?function(n){if(n.op==="=="){if(CM(n.value))return{unaryFilter:{field:Vh(n.field),op:"IS_NAN"}};if(SM(n.value))return{unaryFilter:{field:Vh(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(CM(n.value))return{unaryFilter:{field:Vh(n.field),op:"IS_NOT_NA
2560N"}};if(SM(n.value))return{unaryFilter:{field:Vh(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Vh(n.field),op:cxe(n.op),value:n.value}}}(t):t instanceof ka?function(n){const r=n.getFilters().map(s=>pU(s));return r.length===1?r[0]:{compositeFilter:{op:uxe(n.op),filters:r}}}(t):gt(54877,{filter:t})}function dxe(t){const e=[];return t.fields.forEach(n=>e.push(n.canonicalString())),{fieldPaths:e}}function mU(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}/**
2561 * @license
2562 * Copyright 2017 Google LLC
2563 *
2564 * Licensed under the Apache License, Version 2.0 (the "License");
2565 * you may not use this file except in compliance with the License.
2566 * You may obtain a copy of the License at
2567 *
2568 *   http://www.apache.org/licenses/LICENSE-2.0
2569 *
2570 * Unless required by applicable law or agreed to in writing, software
2571 * distributed under the License is distributed on an "AS IS" BASIS,
2572 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2573 * See the License for the specific language governing permissions and
2574 * limitations under the License.
2575 */class eu{constructor(e,n,r,s,i=St.min(),o=St.min(),a=Zr.EMPTY_BYTE_STRING,c=null){this.target=e,this.targetId=n,this.purpose=r,this.sequenceNumber=s,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a,this.expectedCount=c}withSequenceNumber(e){return new eu(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new eu(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new eu(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new eu(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}/**
2576 * @license
2577 * Copyright 2017 Google LLC
2578 *
2579 * Licensed under the Apache License, Version 2.0 (the "License");
2580 * you may not use this file except in compliance with the License.
2581 * You may obtain a copy of the License at
2582 *
2583 *   http://www.apache.org/licenses/LICENSE-2.0
2584 *
2585 * Unless required by applicable law or agreed to in writing, software
2586 * distributed under the License is distributed on an "AS IS" BASIS,
2587 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2588 * See the License for the specific language governing permissions and
2589 * limitations under the License.
2590 */class fxe{constructor(e){this.wt=e}}function hxe(t){const e=oxe({parent:t.parent,structuredQuery:t.structuredQuery});return t.limitType==="LAST"?W_(e,e.limit,"L"):e}/**
2591 * @license
2592 * Copyright 2019 Google LLC
2593 *
2594 * Licensed under the Apache License, Version 2.0 (the "License");
2595 * you may not use this file except in compliance with the License.
2596 * You may obtain a copy of the License at
2597 *
2598 *   http://www.apache.org/licenses/LICENSE-2.0
2599 *
2600 * Unless required by applicable law or agreed to in writing, software
2601 * distributed under the License is distributed on an "AS IS" BASIS,
2602 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2603 * See the License for the specific language governing permissions and
2604 * limitations under the License.
2605 */class pxe{constructor(){this.yn=new mxe}addToCollectionParentIndex(e,n){return this.yn.add(n),ye.resolve()}getCollectionParents(e,n){return ye.resolve(this.yn.getEntries(n))}addFieldIndex(e,n){return ye.resolve()}deleteFieldIndex(e,n){return ye.resolve()}deleteAllFieldIndexes(e){return ye.resolve()}createTargetIndexes(e,n){return ye.resolve()}getDocumentsMatchingTarget(e,n){return ye.resolve(null)}getIndexType(e,n){return ye.resolve(0)}getFieldIndexes(e,n){return ye.resolve([])}getNextCollectionGroupToUpdate(e){return ye.resolve(null)}getMinOffset(e,n){return ye.resolve(vu.min())}getMinOffsetFromCollectionGroup(e,n){return ye.resolve(vu.min())}updateCollectionGroup(e,n,r){return ye.resolve()}updateIndexEntries(e,n){return ye.resolve()}}class mxe{constructor(){this.index={}}add(e){const n=e.lastSegment(),r=e.popLast(),s=this.index[n]||new Ar(Xn.comparator),i=!s.has(r);return this.index[n]=s.add(r),i}has(e){const n=e.lastSegment(),r=e.popLast(),s=this.index[n];return s&&s.has(r)}getEntries(e){return(this.index[e]||new Ar(Xn.comparator)).toArray()}}/**
2606 * @license
2607 * Copyright 2018 Google LLC
2608 *
2609 * Licensed under the Apache License, Version 2.0 (the "License");
2610 * you may not use this file except in compliance with the License.
2611 * You may obtain a copy of the License at
2612 *
2613 *   http://www.apache.org/licenses/LICENSE-2.0
2614 *
2615 * Unless required by applicable law or agreed to in writing, software
2616 * distributed under the License is distributed on an "AS IS" BASIS,
2617 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2618 * See the License for the specific language governing permissions and
2619 * limitations under the License.
2620 */const LM={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},gU=41943040;class Vs{static withCacheSize(e){return new Vs(e,Vs.DEFAULT_COLLECTION_PERCENTILE,Vs.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,n,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=r}}/**
2621 * @license
2622 * Copyright 2017 Google LLC
2623 *
2624 * Licensed under the Apache License, Version 2.0 (the "License");
2625 * you may not use this file except in compliance with the License.
2626 * You may obtain a copy of the License at
2627 *
2628 *   http://www.apache.org/licenses/LICENSE-2.0
2629 *
2630 * Unless required by applicable law or agreed to in writing, software
2631 * distributed under the License is distributed on an "AS IS" BASIS,
2632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2633 * See the License for the specific language governing permissions and
2634 * limitations under the License.
2635 */Vs.DEFAULT_COLLECTION_PERCENTILE=10,Vs.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Vs.DEFAULT=new Vs(gU,Vs.DEFAULT_COLLECTION_PERCENTILE,Vs.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Vs.DISABLED=new Vs(-1,0,0);/**
2636 * @license
2637 * Copyright 2017 Google LLC
2638 *
2639 * Licensed under the Apache License, Version 2.0 (the "License");
2640 * you may not use this file except in compliance with the License.
2641 * You may obtain a copy of the License at
2642 *
2643 *   http://www.apache.org/licenses/LICENSE-2.0
2644 *
2645 * Unless required by applicable law or agreed to in writing, software
2646 * distributed under the License is distributed on an "AS IS" BASIS,
2647 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2648 * See the License for the specific language governing permissions and
2649 * limitations under the License.
2650 */class nm{constructor(e){this.nr=e}next(){return this.nr+=2,this.nr}static rr(){return new nm(0)}static ir(){return new nm(-1)}}/**
2651 * @license
2652 * Copyright 2020 Google LLC
2653 *
2654 * Licensed under the Apache License, Version 2.0 (the "License");
2655 * you may not use this file except in compliance with the License.
2656 * You may obtain a copy of the License at
2657 *
2658 *   http://www.apache.org/licenses/LICENSE-2.0
2659 *
2660 * Unless required by applicable law or agreed to in writing, software
2661 * distributed under the License is distributed on an "AS IS" BASIS,
2662 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2663 * See the License for the specific language governing permissions and
2664 * limitations under the License.
2665 */const zM="LruGarbageCollector",gxe=1048576;function VM([t,e],[n,r]){const s=Lt(t,n);return s===0?Lt(e,r):s}class vxe{constructor(e){this.cr=e,this.buffer=new Ar(VM),this.lr=0}hr(){return++this.lr}Pr(e){const n=[e,this.hr()];if(this.buffer.size<this.cr)this.buffer=this.buffer.add(n);else{const r=this.buffer.last();VM(n,r)<0&&(this.buffer=this.buffer.delete(r).add(n))}}get maxValue(){return this.buffer.last()[0]}}class yxe{constructor(e,n,r){this.garbageCollector=e,this.asyncQueue=n,this.localStore=r,this.Tr=null}start(){this.garbageCollector.params.cacheSizeCollectionThreshold!==-1&&this.Ir(6e4)}stop(){this.Tr&&(this.Tr.cancel(),this.Tr=null)}get started(){return this.Tr!==null}Ir(e){We(zM,`Garbage collection scheduled in ${e}ms`),this.Tr=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,async()=>{this.Tr=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(n){Om(n)?We(zM,"Ignoring IndexedDB error during garbage collection: ",n):await Dm(n)}await this.Ir(3e5)})}}class xxe{constructor(e,n){this.Er=e,this.params=n}calculateTargetCount(e,n){return this.Er.dr(e).next(r=>Math.floor(n/100*r))}nthSequenceNumber(e,n){if(n===0)return ye.resolve(H5.le);const r=new vxe(n);return this.Er.forEachTarget(e,s=>r.Pr(s.sequenceNumber)).next(()=>this.Er.Ar(e,s=>r.Pr(s))).next(()=>r.maxValue)}removeTargets(e,n,r){return this.Er.removeTargets(e,n,r)}removeOrphanedDocuments(e,n){return this.Er.removeOrphanedDocuments(e,n)}collect(e,n){return this.params.cacheSizeCollectionThreshold===-1?(We("LruGarbageCollector","Garbage collection skipped; disabled"),ye.resolve(LM)):this.getCacheSize(e).next(r=>r<this.params.cacheSizeCollectionThreshold?(We("LruGarbageCollector",`Garbage collection skipped; Cache size ${r} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),LM):this.Rr(e,n))}getCacheSize(e){return this.Er.getCacheSize(e)}Rr(e,n){let r,s,i,o,a,c,d;const p=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(m=>(m>this.params.maximumSequenceNumbersToCollect?(We("LruGarbageCollector",`C
2665apping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${m}`),s=this.params.maximumSequenceNumbersToCollect):s=m,o=Date.now(),this.nthSequenceNumber(e,s))).next(m=>(r=m,a=Date.now(),this.removeTargets(e,r,n))).next(m=>(i=m,c=Date.now(),this.removeOrphanedDocuments(e,r))).next(m=>(d=Date.now(),Lh()<=Ut.DEBUG&&We("LruGarbageCollector",`LRU Garbage Collection
2666	Counted targets in ${o-p}ms
2667	Determined least recently used ${s} in `+(a-o)+`ms
2668	Removed ${i} targets in `+(c-a)+`ms
2669	Removed ${m} documents in `+(d-c)+`ms
2670Total Duration: ${d-p}ms`),ye.resolve({didRun:!0,sequenceNumbersCollected:s,targetsRemoved:i,documentsRemoved:m})))}}function wxe(t,e){return new xxe(t,e)}/**
2671 * @license
2672 * Copyright 2017 Google LLC
2673 *
2674 * Licensed under the Apache License, Version 2.0 (the "License");
2675 * you may not use this file except in compliance with the License.
2676 * You may obtain a copy of the License at
2677 *
2678 *   http://www.apache.org/licenses/LICENSE-2.0
2679 *
2680 * Unless required by applicable law or agreed to in writing, software
2681 * distributed under the License is distributed on an "AS IS" BASIS,
2682 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2683 * See the License for the specific language governing permissions and
2684 * limitations under the License.
2685 */class _xe{constructor(){this.changes=new Mf(e=>e.toString(),(e,n)=>e.isEqual(n)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,n){this.assertNotApplied(),this.changes.set(e,ls.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const r=this.changes.get(n);return r!==void 0?ye.resolve(r):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}/**
2686 * @license
2687 * Copyright 2017 Google LLC
2688 *
2689 * Licensed under the Apache License, Version 2.0 (the "License");
2690 * you may not use this file except in compliance with the License.
2691 * You may obtain a copy of the License at
2692 *
2693 *   http://www.apache.org/licenses/LICENSE-2.0
2694 *
2695 * Unless required by applicable law or agreed to in writing, software
2696 * distributed under the License is distributed on an "AS IS" BASIS,
2697 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2698 * See the License for the specific language governing permissions and
2699 * limitations under the License.
2700 *//**
2701 * @license
2702 * Copyright 2022 Google LLC
2703 *
2704 * Licensed under the Apache License, Version 2.0 (the "License");
2705 * you may not use this file except in compliance with the License.
2706 * You may obtain a copy of the License at
2707 *
2708 *   http://www.apache.org/licenses/LICENSE-2.0
2709 *
2710 * Unless required by applicable law or agreed to in writing, software
2711 * distributed under the License is distributed on an "AS IS" BASIS,
2712 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2713 * See the License for the specific language governing permissions and
2714 * limitations under the License.
2715 */class Exe{constructor(e,n){this.overlayedDocument=e,this.mutatedFields=n}}/**
2716 * @license
2717 * Copyright 2017 Google LLC
2718 *
2719 * Licensed under the Apache License, Version 2.0 (the "License");
2720 * you may not use this file except in compliance with the License.
2721 * You may obtain a copy of the License at
2722 *
2723 *   http://www.apache.org/licenses/LICENSE-2.0
2724 *
2725 * Unless required by applicable law or agreed to in writing, software
2726 * distributed under the License is distributed on an "AS IS" BASIS,
2727 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2728 * See the License for the specific language governing permissions and
2729 * limitations under the License.
2730 */class bxe{constructor(e,n,r,s){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=r,this.indexManager=s}getDocument(e,n){let r=null;return this.documentOverlayCache.getOverlay(e,n).next(s=>(r=s,this.remoteDocumentCache.getEntry(e,n))).next(s=>(r!==null&&w0(r.mutation,s,Ro.empty(),Tr.now()),s))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.getLocalViewOfDocuments(e,r,Wt()).next(()=>r))}getLocalViewOfDocuments(e,n,r=Wt()){const s=Pd();return this.populateOverlays(e,s,n).next(()=>this.computeViews(e,n,s,r).next(i=>{let o=X1();
vendor: 4,092 bytes, lines 2730-2744
2730return i.forEach((a,c)=>{o=o.insert(a,c.overlayedDocument)}),o}))}getOverlayedDocuments(e,n){const r=Pd();return this.populateOverlays(e,r,n).next(()=>this.computeViews(e,n,r,Wt()))}populateOverlays(e,n,r){const s=[];return r.forEach(i=>{n.has(i)||s.push(i)}),this.documentOverlayCache.getOverlays(e,s).next(i=>{i.forEach((o,a)=>{n.set(o,a)})})}computeViews(e,n,r,s){let i=Vl();const o=x0(),a=function(){return x0()}();return n.forEach((c,d)=>{const p=r.get(d.key);s.has(d.key)&&(p===void 0||p.mutation instanceof kf)?i=i.insert(d.key,d):p!==void 0?(o.set(d.key,p.mutation.getFieldMask()),w0(p.mutation,d,p.mutation.getFieldMask(),Tr.now())):o.set(d.key,Ro.empty())}),this.recalculateAndSaveOverlays(e,i).next(c=>(c.forEach((d,p)=>o.set(d,p)),n.forEach((d,p)=>{var m;return a.set(d,new Exe(p,(m=o.get(d))!==null&&m!==void 0?m:null))}),a))}recalculateAndSaveOverlays(e,n){const r=x0();let s=new Wn((o,a)=>o-a),i=Wt();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next(o=>{for(const a of o)a.keys().forEach(c=>{const d=n.get(c);if(d===null)return;let p=r.get(c)||Ro.empty();p=a.applyToLocalView(d,p),r.set(c,p);const m=(s.get(a.batchId)||Wt()).add(c);s=s.insert(a.batchId,m)})}).next(()=>{const o=[],a=s.getReverseIterator();for(;a.hasNext();){const c=a.getNext(),d=c.key,p=c.value,m=XH();p.forEach(v=>{if(!i.has(v)){const w=rU(n.get(v),r.get(v));w!==null&&m.set(v,w),i=i.add(v)}}),o.push(this.documentOverlayCache.saveOverlays(e,d,m))}return ye.waitFor(o)}).next(()=>r)}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.recalculateAndSaveOverlays(e,r))}getDocumentsMatchingQuery(e,n,r,s){return function(o){return lt.isDocumentKey(o.path)&&o.collectionGroup===null&&o.filters.length===0}(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):T6e(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,r,s):this.getDocumentsMatchingCollectionQuery(e,n,r,s)}getNextDocuments(e,n,r,s){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,r,s).next(i=>{const o=s-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,r.largestBatchId,s-i.size):ye.resolve(Pd());let a=B0,c=i;return o.next(d=>ye.forEach(d,(p,m)=>(a<m.largestBatchId&&(a=m.largestBatchId),i.get(p)?ye.resolve():this.remoteDocumentCache.getEntry(e,p).next(v=>{c=c.insert(p,v)}))).next(()=>this.populateOverlays(e,d,i)).next(()=>this.computeViews(e,c,d,Wt())).next(p=>({batchId:a,changes:QH(p)})))})}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new lt(n)).next(r=>{let s=X1();return r.isFoundDocument()&&(s=s.insert(r.key,r)),s})}getDocumentsMatchingCollectionGroupQuery(e,n,r,s){const i=n.collectionGroup;let o=X1();return this.indexManager.getCollectionParents(e,i).next(a=>ye.forEach(a,c=>{const d=function(m,v){return new q5(v,null,m.explicitOrderBy.slice(),m.filters.slice(),m.limit,m.limitType,m.startAt,m.endAt)}(n,c.child(i));return this.getDocumentsMatchingCollectionQuery(e,d,r,s).next(p=>{p.forEach((m,v)=>{o=o.insert(m,v)})})}).next(()=>o))}getDocumentsMatchingCollectionQuery(e,n,r,s){let i;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,r.largestBatchId).next(o=>(i=o,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,r,i,s))).next(o=>{i.forEach((c,d)=>{const p=d.getKey();o.get(p)===null&&(o=o.insert(p,ls.newInvalidDocument(p)))});let a=X1();return o.forEach((c,d)=>{const p=i.get(c);p!==void 0&&w0(p.mutation,d,Ro.empty(),Tr.now()),K5(n,d)&&(a=a.insert(c,d))}),a})}}/**
2731 * @license
2732 * Copyright 2020 Google LLC
2733 *
2734 * Licensed under the Apache License, Version 2.0 (the "License");
2735 * you may not use this file except in compliance with the License.
2736 * You may obtain a copy of the License at
2737 *
2738 *   http://www.apache.org/licenses/LICENSE-2.0
2739 *
2740 * Unless required by applicable law or agreed to in writing, software
2741 * distributed under the License is distributed on an "AS IS" BASIS,
2742 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2743 * See the License for the specific language governing permissions and
2744 * limitations under the License.
2745 */class Sxe{constructor(e){this.serializer=e,this.Fr=new Map,this.Mr=new Map}getBundleMetadata(e,n){return ye.resolve(this.Fr.get(n))}saveBundleMetadata(e,n){return this.Fr.set(n.id,function(s){return{id:s.id,version:s.version,createTime:ba(s.createTime)}}(n)),ye.resolve()}getNamedQuery(e,n){return ye.resolve(this.Mr.get(n))}saveNamedQuery(e,n){return this.Mr.set(n.name,function(s){return{name:s.name,query:hxe(s.bundledQuery),readTime:ba(s.readTime)}}(n)),ye.resolve()}}/**
2746 * @license
2747 * Copyright 2022 Google LLC
2748 *
2749 * Licensed under the Apache License, Version 2.0 (the "License");
2750 * you may not use this file except in compliance with the License.
2751 * You may obtain a copy of the License at
2752 *
2753 *   http://www.apache.org/licenses/LICENSE-2.0
2754 *
2755 * Unless required by applicable law or agreed to in writing, software
2756 * distributed under the License is distributed on an "AS IS" BASIS,
2757 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2758 * See the License for the specific language governing permissions and
2759 * limitations under the License.
2760 */class Cxe{constructor(){this.overlays=new Wn(lt.comparator),this.Or=new Map}getOverlay(e,n){return ye.resolve(this.overlays.get(n))}getOverlays(e,n){const r=Pd();return ye.forEach(n,s=>this.getOverlay(e,s).next(i=>{i!==null&&r.set(s,i)})).next(()=>r)}saveOverlays(e,n,r){return r.forEach((s,i)=>{this.St(e,n,i)}),ye.resolve()}removeOverlaysForBatchId(e,n,r){const s=this.Or.get(r);return s!==void 0&&(s.forEach(i=>this.overlays=this.overlays.remove(i)),this.Or.delete(r)),ye.resolve()}getOverlaysForCollection(e,n,r){const s=Pd(),i=n.length+1,o=new lt(n.child("")),a=this.overlays.getIteratorFrom(o);for(;a.hasNext();){const c=a.getNext().value,d=c.getKey();if(!n.isPrefixOf(d.path))break;d.path.length===i&&c.largestBatchId>r&&s.set(c.getKey(),c)}return ye.resolve(s)}getOverlaysForCollectionGroup(e,n,r,s){let i=new Wn((d,p)=>d-p);const o=this.overlays.getIterator();for(;o.hasNext();){const d=o.getNext().value;if(d.getKey().getCollectionGroup()===n&&d.largestBatchId>r){let p=i.get(d.largestBatchId);p===null&&(p=Pd(),i=i.insert(d.largestBatchId,p)),p.set(d.getKey(),d)}}const a=Pd(),c=i.getIterator();for(;c.hasNext()&&(c.getNext().value.forEach((d,p)=>a.set(d,p)),!(a.size()>=s)););return ye.resolve(a)}St(e,n,r){const s=this.overlays.get(r.key);if(s!==null){const o=this.Or.get(s.largestBatchId).delete(r.key);this.Or.set(s.largestBatchId,o)}this.overlays=this.overlays.insert(r.key,new U6e(n,r));let i=this.Or.get(n);i===void 0&&(i=Wt(),this.Or.set(n,i)),this.Or.set(n,i.add(r.key))}}/**
2761 * @license
2762 * Copyright 2024 Google LLC
2763 *
2764 * Licensed under the Apache License, Version 2.0 (the "License");
2765 * you may not use this file except in compliance with the License.
2766 * You may obtain a copy of the License at
2767 *
2768 *   http://www.apache.org/licenses/LICENSE-2.0
2769 *
2770 * Unless required by applicable law or agreed to in writing, software
2771 * distributed under the License is distributed on an "AS IS" BASIS,
2772 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2773 * See the License for the specific language governing permissions and
2774 * limitations under the License.
2775 */class Txe{constructor(){this.sessionToken=Zr.EMPTY_BYTE_STRING}getSessionToken(e){return ye.resolve(this.sessionToken)}setSessionToken(e,n){return this.sessionToken=n,ye.resolve()}}/**
2776 * @license
2777 * Copyright 2017 Google LLC
2778 *
2779 * Licensed under the Apache License, Version 2.0 (the "License");
2780 * you may not use this file except in compliance with the License.
2781 * You may obtain a copy of the License at
2782 *
2783 *   http://www.apache.org/licenses/LICENSE-2.0
2784 *
2785 * Unless required by applicable law or agreed to in writing, software
2786 * distributed under the License is distributed on an "AS IS" BASIS,
2787 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2788 * See the License for the specific language governing permissions and
2789 * limitations under the License.
2790 */class NS{constructor(){this.Nr=new Ar(Or.Br),this.Lr=new Ar(Or.kr)}isEmpty(){return this.Nr.isEmpty()}addReference(e,n){const r=new Or(e,n);this.Nr=this.Nr.add(r),this.Lr=this.Lr.add(r)}qr(e,n){e.forEach(r=>this.addReference(r,n))}removeReference(e,n){this.Qr(new Or(e,n))}$r(e,n){e.forEach(r=>this.removeReference(r,n))}Ur(e){const n=new lt(new Xn([])),r=new Or(n,e),s=new Or(n,e+1),i=[];return this.Lr.forEachInRange([r,s],o=>{this.Qr(o),i.push(o.key)}),i}
2790Kr(){this.Nr.forEach(e=>this.Qr(e))}Qr(e){this.Nr=this.Nr.delete(e),this.Lr=this.Lr.delete(e)}Wr(e){const n=new lt(new Xn([])),r=new Or(n,e),s=new Or(n,e+1);let i=Wt();return this.Lr.forEachInRange([r,s],o=>{i=i.add(o.key)}),i}containsKey(e){const n=new Or(e,0),r=this.Nr.firstAfterOrEqual(n);return r!==null&&e.isEqual(r.key)}}class Or{constructor(e,n){this.key=e,this.Gr=n}static Br(e,n){return lt.comparator(e.key,n.key)||Lt(e.Gr,n.Gr)}static kr(e,n){return Lt(e.Gr,n.Gr)||lt.comparator(e.key,n.key)}}/**
2791 * @license
2792 * Copyright 2017 Google LLC
2793 *
2794 * Licensed under the Apache License, Version 2.0 (the "License");
2795 * you may not use this file except in compliance with the License.
2796 * You may obtain a copy of the License at
2797 *
2798 *   http://www.apache.org/licenses/LICENSE-2.0
2799 *
2800 * Unless required by applicable law or agreed to in writing, software
2801 * distributed under the License is distributed on an "AS IS" BASIS,
2802 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2803 * See the License for the specific language governing permissions and
2804 * limitations under the License.
2805 */class Axe{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutationQueue=[],this.Jn=1,this.zr=new Ar(Or.Br)}checkEmpty(e){return ye.resolve(this.mutationQueue.length===0)}addMutationBatch(e,n,r,s){const i=this.Jn;this.Jn++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const o=new H6e(i,n,r,s);this.mutationQueue.push(o);for(const a of s)this.zr=this.zr.add(new Or(a.key,i)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return ye.resolve(o)}lookupMutationBatch(e,n){return ye.resolve(this.jr(n))}getNextMutationBatchAfterBatchId(e,n){const r=n+1,s=this.Hr(r),i=s<0?0:s;return ye.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return ye.resolve(this.mutationQueue.length===0?_S:this.Jn-1)}getAllMutationBatches(e){return ye.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const r=new Or(n,0),s=new Or(n,Number.POSITIVE_INFINITY),i=[];return this.zr.forEachInRange([r,s],o=>{const a=this.jr(o.Gr);i.push(a)}),ye.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,n){let r=new Ar(Lt);return n.forEach(s=>{const i=new Or(s,0),o=new Or(s,Number.POSITIVE_INFINITY);this.zr.forEachInRange([i,o],a=>{r=r.add(a.Gr)})}),ye.resolve(this.Jr(r))}getAllMutationBatchesAffectingQuery(e,n){const r=n.path,s=r.length+1;let i=r;lt.isDocumentKey(i)||(i=i.child(""));const o=new Or(new lt(i),0);let a=new Ar(Lt);return this.zr.forEachWhile(c=>{const d=c.key.path;return!!r.isPrefixOf(d)&&(d.length===s&&(a=a.add(c.Gr)),!0)},o),ye.resolve(this.Jr(a))}Jr(e){const n=[];return e.forEach(r=>{const s=this.jr(r);s!==null&&n.push(s)}),n}removeMutationBatch(e,n){fn(this.Yr(n.batchId,"removed")===0,55003),this.mutationQueue.shift();let r=this.zr;return ye.forEach(n.mutations,s=>{const i=new Or(s.key,n.batchId);return r=r.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,s.key)}).next(()=>{this.zr=r})}Xn(e){}containsKey(e,n){const r=new Or(n,0),s=this.zr.firstAfterOrEqual(r);return ye.resolve(n.isEqual(s&&s.key))}performConsistencyCheck(e){return this.mutationQueue.length,ye.resolve()}Yr(e,n){return this.Hr(e)}Hr(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}jr(e){const n=this.Hr(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}/**
2806 * @license
2807 * Copyright 2017 Google LLC
2808 *
2809 * Licensed under the Apache License, Version 2.0 (the "License");
2810 * you may not use this file except in compliance with the License.
2811 * You may obtain a copy of the License at
2812 *
2813 *   http://www.apache.org/licenses/LICENSE-2.0
2814 *
2815 * Unless required by applicable law or agreed to in writing, software
2816 * distributed under the License is distributed on an "AS IS" BASIS,
2817 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2818 * See the License for the specific language governing permissions and
2819 * limitations under the License.
2820 */class Ixe{constructor(e){this.Zr=e,this.docs=function(){return new Wn(lt.comparator)}(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const r=n.key,s=this.docs.get(r),i=s?s.size:0,o=this.Zr(n);return this.docs=this.docs.insert(r,{document:n.mutableCopy(),size:o}),this.size+=o-i,this.indexManager.addToCollectionParentIndex(e,r.path.popLast())}removeEntry(e){const n=this.docs.get(e);n&&(this.docs=this.docs.remove(e),this.size-=n.size)}getEntry(e,n){const r=this.docs.get(n);return ye.resolve(r?r.document.mutableCopy():ls.newInvalidDocument(n))}getEntries(e,n){let r=Vl();
vendor: 8,458 bytes, lines 2820-2860
2820return n.forEach(s=>{const i=this.docs.get(s);r=r.insert(s,i?i.document.mutableCopy():ls.newInvalidDocument(s))}),ye.resolve(r)}getDocumentsMatchingQuery(e,n,r,s){let i=Vl();const o=n.path,a=new lt(o.child("__id-9223372036854775808__")),c=this.docs.getIteratorFrom(a);for(;c.hasNext();){const{key:d,value:{document:p}}=c.getNext();if(!o.isPrefixOf(d.path))break;d.path.length>o.length+1||r6e(n6e(p),r)<=0||(s.has(p.key)||K5(n,p))&&(i=i.insert(p.key,p.mutableCopy()))}return ye.resolve(i)}getAllFromCollectionGroup(e,n,r,s){gt(9500)}Xr(e,n){return ye.forEach(this.docs,r=>n(r))}newChangeBuffer(e){return new Pxe(this)}getSize(e){return ye.resolve(this.size)}}class Pxe extends _xe{constructor(e){super(),this.vr=e}applyChanges(e){const n=[];return this.changes.forEach((r,s)=>{s.isValidDocument()?n.push(this.vr.addEntry(e,s)):this.vr.removeEntry(r)}),ye.waitFor(n)}getFromCache(e,n){return this.vr.getEntry(e,n)}getAllFromCache(e,n){return this.vr.getEntries(e,n)}}/**
2821 * @license
2822 * Copyright 2017 Google LLC
2823 *
2824 * Licensed under the Apache License, Version 2.0 (the "License");
2825 * you may not use this file except in compliance with the License.
2826 * You may obtain a copy of the License at
2827 *
2828 *   http://www.apache.org/licenses/LICENSE-2.0
2829 *
2830 * Unless required by applicable law or agreed to in writing, software
2831 * distributed under the License is distributed on an "AS IS" BASIS,
2832 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2833 * See the License for the specific language governing permissions and
2834 * limitations under the License.
2835 */class Rxe{constructor(e){this.persistence=e,this.ei=new Mf(n=>SS(n),CS),this.lastRemoteSnapshotVersion=St.min(),this.highestTargetId=0,this.ti=0,this.ni=new NS,this.targetCount=0,this.ri=nm.rr()}forEachTarget(e,n){return this.ei.forEach((r,s)=>n(s)),ye.resolve()}getLastRemoteSnapshotVersion(e){return ye.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return ye.resolve(this.ti)}allocateTargetId(e){return this.highestTargetId=this.ri.next(),ye.resolve(this.highestTargetId)}setTargetsMetadata(e,n,r){return r&&(this.lastRemoteSnapshotVersion=r),n>this.ti&&(this.ti=n),ye.resolve()}ar(e){this.ei.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.ri=new nm(n),this.highestTargetId=n),e.sequenceNumber>this.ti&&(this.ti=e.sequenceNumber)}addTargetData(e,n){return this.ar(n),this.targetCount+=1,ye.resolve()}updateTargetData(e,n){return this.ar(n),ye.resolve()}removeTargetData(e,n){return this.ei.delete(n.target),this.ni.Ur(n.targetId),this.targetCount-=1,ye.resolve()}removeTargets(e,n,r){let s=0;const i=[];return this.ei.forEach((o,a)=>{a.sequenceNumber<=n&&r.get(a.targetId)===null&&(this.ei.delete(o),i.push(this.removeMatchingKeysForTargetId(e,a.targetId)),s++)}),ye.waitFor(i).next(()=>s)}getTargetCount(e){return ye.resolve(this.targetCount)}getTargetData(e,n){const r=this.ei.get(n)||null;return ye.resolve(r)}addMatchingKeys(e,n,r){return this.ni.qr(n,r),ye.resolve()}removeMatchingKeys(e,n,r){this.ni.$r(n,r);const s=this.persistence.referenceDelegate,i=[];return s&&n.forEach(o=>{i.push(s.markPotentiallyOrphaned(e,o))}),ye.waitFor(i)}removeMatchingKeysForTargetId(e,n){return this.ni.Ur(n),ye.resolve()}getMatchingKeysForTargetId(e,n){const r=this.ni.Wr(n);return ye.resolve(r)}containsKey(e,n){return ye.resolve(this.ni.containsKey(n))}}/**
2836 * @license
2837 * Copyright 2017 Google LLC
2838 *
2839 * Licensed under the Apache License, Version 2.0 (the "License");
2840 * you may not use this file except in compliance with the License.
2841 * You may obtain a copy of the License at
2842 *
2843 *   http://www.apache.org/licenses/LICENSE-2.0
2844 *
2845 * Unless required by applicable law or agreed to in writing, software
2846 * distributed under the License is distributed on an "AS IS" BASIS,
2847 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2848 * See the License for the specific language governing permissions and
2849 * limitations under the License.
2850 */class vU{constructor(e,n){this.ii={},this.overlays={},this.si=new H5(0),this.oi=!1,this.oi=!0,this._i=new Txe,this.referenceDelegate=e(this),this.ai=new Rxe(this),this.indexManager=new pxe,this.remoteDocumentCache=function(s){return new Ixe(s)}(r=>this.referenceDelegate.ui(r)),this.serializer=new fxe(n),this.ci=new Sxe(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.oi=!1,Promise.resolve()}get started(){return this.oi}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new Cxe,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let r=this.ii[e.toKey()];return r||(r=new Axe(n,this.referenceDelegate),this.ii[e.toKey()]=r),r}getGlobalsCache(){return this._i}getTargetCache(){return this.ai}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.ci}runTransaction(e,n,r){We("MemoryPersistence","Starting transaction:",e);const s=new Nxe(this.si.next());return this.referenceDelegate.li(),r(s).next(i=>this.referenceDelegate.hi(s).next(()=>i)).toPromise().then(i=>(s.raiseOnCommittedEvent(),i))}Pi(e,n){return ye.or(Object.values(this.ii).map(r=>()=>r.containsKey(e,n)))}}class Nxe extends i6e{constructor(e){super(),this.currentSequenceNumber=e}}class MS{constructor(e){this.persistence=e,this.Ti=new NS,this.Ii=null}static Ei(e){return new MS(e)}get di(){if(this.Ii)return this.Ii;throw gt(60996)}addReference(e,n,r){return this.Ti.addReference(r,n),this.di.delete(r.toString()),ye.resolve()}removeReference(e,n,r){return this.Ti.removeReference(r,n),this.di.add(r.toString()),ye.resolve()}markPotentiallyOrphaned(e,n){return this.di.add(n.toString()),ye.resolve()}removeTarget(e,n){this.Ti.Ur(n.targetId).forEach(s=>this.di.add(s.toString()));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,n.targetId).next(s=>{s.forEach(i=>this.di.add(i.toString()))}).next(()=>r.removeTargetData(e,n))}li(){this.Ii=new Set}hi(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ye.forEach(this.di,r=>{const s=lt.fromPath(r);return this.Ai(e,s).next(i=>{i||n.removeEntry(s,St.min())})}).next(()=>(this.Ii=null,n.apply(e)))}updateLimboDocument(e,n){return this.Ai(e,n).next(r=>{r?this.di.delete(n.toString()):this.di.add(n.toString())})}ui(e){return 0}Ai(e,n){return ye.or([()=>ye.resolve(this.Ti.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.Pi(e,n)])}}class E4{constructor(e,n){this.persistence=e,this.Ri=new Mf(r=>l6e(r.path),(r,s)=>r.isEqual(s)),this.garbageCollector=wxe(this,n)}static Ei(e,n){return new E4(e,n)}li(){}hi(e){return ye.resolve()}forEachTarget(e,n){return this.persistence.getTargetCache().forEachTarget(e,n)}dr(e){const n=this.Vr(e);return this.persistence.getTargetCache().getTargetCount(e).next(r=>n.next(s=>r+s))}Vr(e){let n=0;return this.Ar(e,r=>{n++}).next(()=>n)}Ar(e,n){return ye.forEach(this.Ri,(r,s)=>this.gr(e,r,s).next(i=>i?ye.resolve():n(s)))}removeTargets(e,n,r){return this.persistence.getTargetCache().removeTargets(e,n,r)}removeOrphanedDocuments(e,n){let r=0;const s=this.persistence.getRemoteDocumentCache(),i=s.newChangeBuffer();return s.Xr(e,o=>this.gr(e,o,n).next(a=>{a||(r++,i.removeEntry(o,St.min()))})).next(()=>i.apply(e)).next(()=>r)}markPotentiallyOrphaned(e,n){return this.Ri.set(n,e.currentSequenceNumber),ye.resolve()}removeTarget(e,n){const r=n.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,r)}addReference(e,n,r){return this.Ri.set(r,e.currentSequenceNumber),ye.resolve()}removeReference(e,n,r){return this.Ri.set(r,e.currentSequenceNumber),ye.resolve()}updateLimboDocument(e,n){return this.Ri.set(n,e.currentSequenceNumber),ye.resolve()}ui(e){let n=e.key.toString().length;return e.isFoundDocument()&&(n+=ny(e.data.value)),n}gr(e,n,r){return ye.or([()=>this.persistence.Pi(e,n),()=>this.persistence.getTargetCache().containsKey(e,n),()=>{const s=this.Ri.get(n);return ye.resolve(s!==void 0&&s>r)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}/**
2851 * @license
2852 * Copyright 2017 Google LLC
2853 *
2854 * Licensed under the Apache License, Version 2.0 (the "License");
2855 * you may not use this file except in compliance with the License.
2856 * You may obtain a copy of the License at
2857 *
2858 *   http://www.apache.org/licenses/LICENSE-2.0
2859 *
2860 * Unless required by applicable law or agreed to in writing, softw
2860are
2861 * distributed under the License is distributed on an "AS IS" BASIS,
2862 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2863 * See the License for the specific language governing permissions and
2864 * limitations under the License.
2865 */class kS{constructor(e,n,r,s){this.targetId=e,this.fromCache=n,this.ls=r,this.hs=s}static Ps(e,n){let r=Wt(),s=Wt();for(const i of n.docChanges)switch(i.type){case 0:r=r.add(i.doc.key);break;case 1:s=s.add(i.doc.key)}return new kS(e,n.fromCache,r,s)}}/**
2866 * @license
2867 * Copyright 2023 Google LLC
2868 *
2869 * Licensed under the Apache License, Version 2.0 (the "License");
2870 * you may not use this file except in compliance with the License.
2871 * You may obtain a copy of the License at
2872 *
2873 *   http://www.apache.org/licenses/LICENSE-2.0
2874 *
2875 * Unless required by applicable law or agreed to in writing, software
2876 * distributed under the License is distributed on an "AS IS" BASIS,
2877 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2878 * See the License for the specific language governing permissions and
2879 * limitations under the License.
2880 */class Mxe{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}/**
2881 * @license
2882 * Copyright 2019 Google LLC
2883 *
2884 * Licensed under the Apache License, Version 2.0 (the "License");
2885 * you may not use this file except in compliance with the License.
2886 * You may obtain a copy of the License at
2887 *
2888 *   http://www.apache.org/licenses/LICENSE-2.0
2889 *
2890 * Unless required by applicable law or agreed to in writing, software
2891 * distributed under the License is distributed on an "AS IS" BASIS,
2892 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2893 * See the License for the specific language governing permissions and
2894 * limitations under the License.
2895 */class kxe{constructor(){this.Ts=!1,this.Is=!1,this.Es=100,this.ds=function(){return s3e()?8:o6e(ds())>0?6:4}()}initialize(e,n){this.As=e,this.indexManager=n,this.Ts=!0}getDocumentsMatchingQuery(e,n,r,s){const i={result:null};return this.Rs(e,n).next(o=>{i.result=o}).next(()=>{if(!i.result)return this.Vs(e,n,s,r).next(o=>{i.result=o})}).next(()=>{if(i.result)return;const o=new Mxe;return this.fs(e,n,o).next(a=>{if(i.result=a,this.Is)return this.gs(e,n,o,a.size)})}).next(()=>i.result)}gs(e,n,r,s){return r.documentReadCount<this.Es?(Lh()<=Ut.DEBUG&&We("QueryEngine","SDK will not create cache indexes for query:",zh(n),"since it only creates cache indexes for collection contains","more than or equal to",this.Es,"documents"),ye.resolve()):(Lh()<=Ut.DEBUG&&We("QueryEngine","Query:",zh(n),"scans",r.documentReadCount,"local documents and returns",s,"documents as results."),r.documentReadCount>this.ds*s?(Lh()<=Ut.DEBUG&&We("QueryEngine","The SDK decides to create cache indexes for query:",zh(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,Ea(n))):ye.resolve())}Rs(e,n){if(PM(n))return ye.resolve(null);let r=Ea(n);return this.indexManager.getIndexType(e,r).next(s=>s===0?null:(n.limit!==null&&s===1&&(n=W_(n,null,"F"),r=Ea(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next(i=>{const o=Wt(...i);return this.As.getDocuments(e,o).next(a=>this.indexManager.getMinOffset(e,r).next(c=>{const d=this.ps(n,a);return this.ys(n,d,o,c.readTime)?this.Rs(e,W_(n,null,"F")):this.ws(e,d,n,c)}))})))}Vs(e,n,r,s){return PM(n)||s.isEqual(St.min())?ye.resolve(null):this.As.getDocuments(e,r).next(i=>{const o=this.ps(n,i);return this.ys(n,o,r,s)?ye.resolve(null):(Lh()<=Ut.DEBUG&&We("QueryEngine","Re-using previous result from %s to execute query: %s",s.toString(),zh(n)),this.ws(e,o,n,t6e(s,B0)).next(a=>a))})}ps(e,n){let r=new Ar(KH(e));return n.forEach((s,i)=>{K5(e,i)&&(r=r.add(i))}),r}ys(e,n,r,s){if(e.limit===null)return!1;if(r.size!==n.size)return!0;const i=e.limitType==="F"?n.last():n.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(s)>0)}fs(e,n,r){return Lh()<=Ut.DEBUG&&We("QueryEngine","Using full collection scan to execute query:",zh(n)),this.As.getDocumentsMatchingQuery(e,n,vu.min(),r)}
2895ws(e,n,r,s){return this.As.getDocumentsMatchingQuery(e,r,s).next(i=>(n.forEach(o=>{i=i.insert(o.key,o)}),i))}}/**
2896 * @license
2897 * Copyright 2020 Google LLC
2898 *
2899 * Licensed under the Apache License, Version 2.0 (the "License");
2900 * you may not use this file except in compliance with the License.
2901 * You may obtain a copy of the License at
2902 *
2903 *   http://www.apache.org/licenses/LICENSE-2.0
2904 *
2905 * Unless required by applicable law or agreed to in writing, software
2906 * distributed under the License is distributed on an "AS IS" BASIS,
2907 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2908 * See the License for the specific language governing permissions and
2909 * limitations under the License.
2910 */const DS="LocalStore",Dxe=3e8;class Oxe{constructor(e,n,r,s){this.persistence=e,this.bs=n,this.serializer=s,this.Ss=new Wn(Lt),this.Ds=new Mf(i=>SS(i),CS),this.vs=new Map,this.Cs=e.getRemoteDocumentCache(),this.ai=e.getTargetCache(),this.ci=e.getBundleCache(),this.Fs(r)}Fs(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new bxe(this.Cs,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Cs.setIndexManager(this.indexManager),this.bs.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",n=>e.collect(n,this.Ss))}}function $xe(t,e,n,r){return new Oxe(t,e,n,r)}async function yU(t,e){const n=At(t);return await n.persistence.runTransaction("Handle user change","readonly",r=>{let s;
2910return n.mutationQueue.getAllMutationBatches(r).next(i=>(s=i,n.Fs(e),n.mutationQueue.getAllMutationBatches(r))).next(i=>{const o=[],a=[];let c=Wt();for(const d of s){o.push(d.batchId);for(const p of d.mutations)c=c.add(p.key)}for(const d of i){a.push(d.batchId);for(const p of d.mutations)c=c.add(p.key)}return n.localDocuments.getDocuments(r,c).next(d=>({Ms:d,removedBatchIds:o,addedBatchIds:a}))})})}function Fxe(t,e){const n=At(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",r=>{const s=e.batch.keys(),i=n.Cs.newChangeBuffer({trackRemovals:!0});return function(a,c,d,p){const m=d.batch,v=m.keys();let w=ye.resolve();return v.forEach(E=>{w=w.next(()=>p.getEntry(c,E)).next(C=>{const b=d.docVersions.get(E);fn(b!==null,48541),C.version.compareTo(b)<0&&(m.applyToRemoteDocument(C,d),C.isValidDocument()&&(C.setReadTime(d.commitVersion),p.addEntry(C)))})}),w.next(()=>a.mutationQueue.removeMutationBatch(c,m))}(n,r,e,i).next(()=>i.apply(r)).next(()=>n.mutationQueue.performConsistencyCheck(r)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(r,s,e.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,function(a){let c=Wt();for(let d=0;d<a.mutationResults.length;++d)a.mutationResults[d].transformResults.length>0&&(c=c.add(a.batch.mutations[d].key));return c}(e))).next(()=>n.localDocuments.getDocuments(r,s))})}function xU(t){const e=At(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",n=>e.ai.getLastRemoteSnapshotVersion(n))}function jxe(t,e){const n=At(t),r=e.snapshotVersion;let s=n.Ss;return n.persistence.runTransaction("Apply remote event","readwrite-primary",i=>{const o=n.Cs.newChangeBuffer({trackRemovals:!0});s=n.Ss;const a=[];
vendor: 4,419 bytes, lines 2910-2914
2910e.targetChanges.forEach((p,m)=>{const v=s.get(m);if(!v)return;a.push(n.ai.removeMatchingKeys(i,p.removedDocuments,m).next(()=>n.ai.addMatchingKeys(i,p.addedDocuments,m)));let w=v.withSequenceNumber(i.currentSequenceNumber);e.targetMismatches.get(m)!==null?w=w.withResumeToken(Zr.EMPTY_BYTE_STRING,St.min()).withLastLimboFreeSnapshotVersion(St.min()):p.resumeToken.approximateByteSize()>0&&(w=w.withResumeToken(p.resumeToken,r)),s=s.insert(m,w),function(C,b,S){return C.resumeToken.approximateByteSize()===0||b.snapshotVersion.toMicroseconds()-C.snapshotVersion.toMicroseconds()>=Dxe?!0:S.addedDocuments.size+S.modifiedDocuments.size+S.removedDocuments.size>0}(v,w,p)&&a.push(n.ai.updateTargetData(i,w))});let c=Vl(),d=Wt();if(e.documentUpdates.forEach(p=>{e.resolvedLimboDocuments.has(p)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(i,p))}),a.push(Lxe(i,o,e.documentUpdates).next(p=>{c=p.xs,d=p.Os})),!r.isEqual(St.min())){const p=n.ai.getLastRemoteSnapshotVersion(i).next(m=>n.ai.setTargetsMetadata(i,i.currentSequenceNumber,r));a.push(p)}return ye.waitFor(a).next(()=>o.apply(i)).next(()=>n.localDocuments.getLocalViewOfDocuments(i,c,d)).next(()=>c)}).then(i=>(n.Ss=s,i))}function Lxe(t,e,n){let r=Wt(),s=Wt();return n.forEach(i=>r=r.add(i)),e.getEntries(t,r).next(i=>{let o=Vl();return n.forEach((a,c)=>{const d=i.get(a);c.isFoundDocument()!==d.isFoundDocument()&&(s=s.add(a)),c.isNoDocument()&&c.version.isEqual(St.min())?(e.removeEntry(a,c.readTime),o=o.insert(a,c)):!d.isValidDocument()||c.version.compareTo(d.version)>0||c.version.compareTo(d.version)===0&&d.hasPendingWrites?(e.addEntry(c),o=o.insert(a,c)):We(DS,"Ignoring outdated watch update for ",a,". Current version:",d.version," Watch version:",c.version)}),{xs:o,Os:s}})}function zxe(t,e){const n=At(t);return n.persistence.runTransaction("Get next mutation batch","readonly",r=>(e===void 0&&(e=_S),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e)))}function Vxe(t,e){const n=At(t);return n.persistence.runTransaction("Allocate target","readwrite",r=>{let s;return n.ai.getTargetData(r,e).next(i=>i?(s=i,ye.resolve(s)):n.ai.allocateTargetId(r).next(o=>(s=new eu(e,o,"TargetPurposeListen",r.currentSequenceNumber),n.ai.addTargetData(r,s).next(()=>s))))}).then(r=>{const s=n.Ss.get(r.targetId);return(s===null||r.snapshotVersion.compareTo(s.snapshotVersion)>0)&&(n.Ss=n.Ss.insert(r.targetId,r),n.Ds.set(e,r.targetId)),r})}async function Q_(t,e,n){const r=At(t),s=r.Ss.get(e),i=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",i,o=>r.persistence.referenceDelegate.removeTarget(o,s))}catch(o){if(!Om(o))throw o;We(DS,`Failed to update sequence numbers for target ${e}: ${o}`)}r.Ss=r.Ss.remove(e),r.Ds.delete(s.target)}function BM(t,e,n){const r=At(t);let s=St.min(),i=Wt();return r.persistence.runTransaction("Execute query","readwrite",o=>function(c,d,p){const m=At(c),v=m.Ds.get(p);return v!==void 0?ye.resolve(m.Ss.get(v)):m.ai.getTargetData(d,p)}(r,o,Ea(e)).next(a=>{if(a)return s=a.lastLimboFreeSnapshotVersion,r.ai.getMatchingKeysForTargetId(o,a.targetId).next(c=>{i=c})}).next(()=>r.bs.getDocumentsMatchingQuery(o,e,n?s:St.min(),n?i:Wt())).next(a=>(Bxe(r,I6e(e),a),{documents:a,Ns:i})))}function Bxe(t,e,n){let r=t.vs.get(e)||St.min();n.forEach((s,i)=>{i.readTime.compareTo(r)>0&&(r=i.readTime)}),t.vs.set(e,r)}class HM{constructor(){this.activeTargetIds=D6e()}$s(e){this.activeTargetIds=this.activeTargetIds.add(e)}Us(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Qs(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class Hxe{constructor(){this.So=new HM,this.Do={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e,n=!0){return n&&this.So.$s(e),this.Do[e]||"not-current"}updateQueryState(e,n,r){this.Do[e]=n}removeLocalQueryTarget(e){this.So.Us(e)}isLocalQueryTarget(e){return this.So.activeTargetIds.has(e)}clearQueryState(e){delete this.Do[e]}getAllActiveQueryTargets(){return this.So.activeTargetIds}isActiveQueryTarget(e){return this.So.activeTargetIds.has(e)}start(){return this.So=new HM,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/**
2911 * @license
2912 * Copyright 2019 Google LLC
2913 *
2914 * Licensed under the Apache License, Version 2.0 (the "License");
2915 * you may not use this file except in compliance with the License.
2916 * You may obtain a copy of the License at
2917 *
2918 *   http://www.apache.org/licenses/LICENSE-2.0
2919 *
2920 * Unless required by applicable law or agreed to in writing, software
2921 * distributed under the License is distributed on an "AS IS" BASIS,
2922 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2923 * See the License for the specific language governing permissions and
2924 * limitations under the License.
2925 */class Uxe{vo(e){}shutdown(){}}/**
2926 * @license
2927 * Copyright 2019 Google LLC
2928 *
2929 * Licensed under the Apache License, Version 2.0 (the "License");
2930 * you may not use this file except in compliance with the License.
2931 * You may obtain a copy of the License at
2932 *
2933 *   http://www.apache.org/licenses/LICENSE-2.0
2934 *
2935 * Unless required by applicable law or agreed to in writing, software
2936 * distributed under the License is distributed on an "AS IS" BASIS,
2937 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2938 * See the License for the specific language governing permissions and
2939 * limitations under the License.
2940 */const UM="ConnectivityMonitor";class WM{constructor(){this.Co=()=>this.Fo(),this.Mo=()=>this.xo(),this.Oo=[],this.No()}vo(e){this.Oo.push(e)}shutdown(){window.removeEventListener("online",this.Co),window.removeEventListener("offline",this.Mo)}No(){window.addEventListener("online",this.Co),window.addEventListener("offline",this.Mo)}Fo(){We(UM,"Network connectivity changed: AVAILABLE");for(const e of this.Oo)e(0)}xo(){We(UM,"Network connectivity changed: UNAVAILABLE");for(const e of this.Oo)e(1)}static C(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}/**
2941 * @license
2942 * Copyright 2023 Google LLC
2943 *
2944 * Licensed under the Apache License, Version 2.0 (the "License");
2945 * you may not use this file except in compliance with the License.
2946 * You may obtain a copy of the License at
2947 *
2948 *   http://www.apache.org/licenses/LICENSE-2.0
2949 *
2950 * Unless required by applicable law or agreed to in writing, software
2951 * distributed under the License is distributed on an "AS IS" BASIS,
2952 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2953 * See the License for the specific language governing permissions and
2954 * limitations under the License.
2955 */let y3=null;function X_(){return y3===null?y3=function(){return 268435456+Math.round(2147483648*Math.random())}():y3++,"0x"+y3.toString(16)}/**
2956 * @license
2957 * Copyright 2020 Google LLC
2958 *
2959 * Licensed under the Apache License, Version 2.0 (the "License");
2960 * you may not use this file except in compliance with the License.
2961 * You may obtain a copy of the License at
2962 *
2963 *   http://www.apache.org/licenses/LICENSE-2.0
2964 *
2965 * Unless required by applicable law or agreed to in writing, software
2966 * distributed under the License is distributed on an "AS IS" BASIS,
2967 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2968 * See the License for the specific language governing permissions and
2969 * limitations under the License.
2970 */const O7="RestConnection",Wxe={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class qxe{get Bo(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const n=e.ssl?"https":"http",r=encodeURIComponent(this.databaseId.projectId),s=encodeURIComponent(this.databaseId.database);this.Lo=n+"://"+e.host,this.ko=`projects/${r}/databases/${s}`,this.qo=this.databaseId.database===m4?`project_id=${r}`:`project_id=${r}&database_id=${s}`}Qo(e,n,r,s,i){const o=X_(),a=this.$o(e,n.toUriEncodedString());We(O7,`Sending RPC '${e}' ${o}:`,a,r);const c={"google-cloud-resource-prefix":this.ko,"x-goog-request-params":this.qo};return this.Uo(c,s,i),this.Ko(e,a,c,r).then(d=>(We(O7,`Received RPC '${e}' ${o}: `,d),d),d=>{throw Zp(O7,`RPC '${e}' ${o} failed with error: `,d,"url: ",a,"request:",r),d})}Wo(e,n,r,s,i,o){return this.Qo(e,n,r,s,i)}Uo(e,n,r){e["X-Goog-Api-Client"]=function(){return"gl-js/ fire/"+km}(),e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),n&&n.headers.forEac
2970h((s,i)=>e[i]=s),r&&r.headers.forEach((s,i)=>e[i]=s)}$o(e,n){const r=Wxe[e];return`${this.Lo}/v1/${n}:${r}`}terminate(){}}/**
2971 * @license
2972 * Copyright 2017 Google LLC
2973 *
2974 * Licensed under the Apache License, Version 2.0 (the "License");
2975 * you may not use this file except in compliance with the License.
2976 * You may obtain a copy of the License at
2977 *
2978 *   http://www.apache.org/licenses/LICENSE-2.0
2979 *
2980 * Unless required by applicable law or agreed to in writing, software
2981 * distributed under the License is distributed on an "AS IS" BASIS,
2982 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2983 * See the License for the specific language governing permissions and
2984 * limitations under the License.
2985 */class Gxe{constructor(e){this.Go=e.Go,this.zo=e.zo}jo(e){this.Ho=e}Jo(e){this.Yo=e}Zo(e){this.Xo=e}onMessage(e){this.e_=e}close(){this.zo()}send(e){this.Go(e)}t_(){this.Ho()}n_(){this.Yo()}r_(e){this.Xo(e)}i_(e){this.e_(e)}}/**
2986 * @license
2987 * Copyright 2017 Google LLC
2988 *
2989 * Licensed under the Apache License, Version 2.0 (the "License");
2990 * you may not use this file except in compliance with the License.
2991 * You may obtain a copy of the License at
2992 *
2993 *   http://www.apache.org/licenses/LICENSE-2.0
2994 *
2995 * Unless required by applicable law or agreed to in writing, software
2996 * distributed under the License is distributed on an "AS IS" BASIS,
2997 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2998 * See the License for the specific language governing permissions and
2999 * limitations under the License.
3000 */const ss="WebChannelConnection";class Kxe extends qxe{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Ko(e,n,r,s){const i=X_();return new Promise((o,a)=>{const c=new EH;c.setWithCredentials(!0),c.listenOnce(bH.COMPLETE,()=>{try{switch(c.getLastErrorCode()){case ty.NO_ERROR:const p=c.getResponseJson();We(ss,`XHR for RPC '${e}' ${i} received:`,JSON.stringify(p)),o(p);break;case ty.TIMEOUT:We(ss,`RPC '${e}' ${i} timed out`),a(new at(Te.DEADLINE_EXCEEDED,"Request time out"));break;case ty.HTTP_ERROR:const m=c.getStatus();if(We(ss,`RPC '${e}' ${i} failed with status:`,m,"response text:",c.getResponseText()),m>0){let v=c.getResponseJson();Array.isArray(v)&&(v=v[0]);const w=v?.error;if(w&&w.status&&w.message){const E=function(b){const S=b.toLowerCase().replace(/_/g,"-");return Object.values(Te).indexOf(S)>=0?S:Te.UNKNOWN}(w.status);a(new at(E,w.message))}else a(new at(Te.UNKNOWN,"Server responded with status "+c.getStatus()))}else a(new at(Te.UNAVAILABLE,"Connection failed."));break;default:gt(9055,{s_:e,streamId:i,o_:c.getLastErrorCode(),__:c.getLastError()})}}finally{We(ss,`RPC '${e}' ${i} completed.`)}});const d=JSON.stringify(s);We(ss,`RPC '${e}' ${i} sending request:`,s),c.send(n,"POST",d,r,15)})}a_(e,n,r){const s=X_(),i=[this.Lo,"/","google.firestore.v1.Firestore","/",e,"/channel"],o=TH(),a=CH(),c={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},d=this.longPollingOptions.timeoutSeconds;d!==void 0&&(c.longPollingTimeout=Math.round(1e3*d)),this.useFetchStreams&&(c.useFetchStreams=!0),this.Uo(c.initMessageHeaders,n,r),c.encodeInitMessageHeaders=!0;const p=i.join("");We(ss,`Creating RPC '${e}' stream ${s}: ${p}`,c);const m=o.createWebChannel(p,c);let v=!1,w=!1;const E=new Gxe({Go:b=>{w?We(ss,`Not sending because RPC '${e}' stream ${s} is closed:`,b):(v||(We(ss,`Opening RPC '${e}' stream ${s} transport.`),m.open(),v=!0),We(ss,`RPC '${e}' stream ${s} sending:`,b),m.send(b))},zo:()=>m.close()}),C=(b,S,P)=>{b.listen(S,R=>{try{P(R)}catch(z){setTimeout(()=>{throw z},0)}})};return C(m,Q1.EventType.OPEN,()=>{w||(We(ss,`RPC '${e}' stream ${s} transport opened.`),E.t_())}),C(m,Q1.EventType.CLOSE,()=>{w||(w=!0,We(ss,`RPC '${e}' stream ${s}
3000 transport closed`),E.r_())}),C(m,Q1.EventType.ERROR,b=>{w||(w=!0,Zp(ss,`RPC '${e}' stream ${s} transport errored. Name:`,b.name,"Message:",b.message),E.r_(new at(Te.UNAVAILABLE,"The operation could not be completed")))}),C(m,Q1.EventType.MESSAGE,b=>{var S;if(!w){const P=b.data[0];fn(!!P,16349);const R=P,z=R?.error||((S=R[0])===null||S===void 0?void 0:S.error);if(z){We(ss,`RPC '${e}' stream ${s} received error:`,z);const O=z.status;let F=function(T){const k=pr[T];if(k!==void 0)return oU(k)}(O),D=z.message;F===void 0&&(F=Te.INTERNAL,D="Unknown error status: "+O+" with message "+z.message),w=!0,E.r_(new at(F,D)),m.close()}else We(ss,`RPC '${e}' stream ${s} received:`,P),E.i_(P)}}),C(a,SH.STAT_EVENT,b=>{b.stat===L_.PROXY?We(ss,`RPC '${e}' stream ${s} detected buffering proxy`):b.stat===L_.NOPROXY&&We(ss,`RPC '${e}' stream ${s} detected no buffering proxy`)}),setTimeout(()=>{E.n_()},0),E}}function $7(){return typeof document<"u"?document:null}/**
3001 * @license
3002 * Copyright 2020 Google LLC
3003 *
3004 * Licensed under the Apache License, Version 2.0 (the "License");
3005 * you may not use this file except in compliance with the License.
3006 * You may obtain a copy of the License at
3007 *
3008 *   http://www.apache.org/licenses/LICENSE-2.0
3009 *
3010 * Unless required by applicable law or agreed to in writing, software
3011 * distributed under the License is distributed on an "AS IS" BASIS,
3012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3013 * See the License for the specific language governing permissions and
3014 * limitations under the License.
3015 */function Z5(t){return new Z6e(t,!0)}/**
3016 * @license
3017 * Copyright 2017 Google LLC
3018 *
3019 * Licensed under the Apache License, Version 2.0 (the "License");
3020 * you may not use this file except in compliance with the License.
3021 * You may obtain a copy of the License at
3022 *
3023 *   http://www.apache.org/licenses/LICENSE-2.0
3024 *
3025 * Unless required by applicable law or agreed to in writing, software
3026 * distributed under the License is distributed on an "AS IS" BASIS,
3027 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3028 * See the License for the specific language governing permissions and
3029 * limitations under the License.
3030 */class wU{constructor(e,n,r=1e3,s=1.5,i=6e4){this.bi=e,this.timerId=n,this.u_=r,this.c_=s,this.l_=i,this.h_=0,this.P_=null,this.T_=Date.now(),this.reset()}reset(){this.h_=0}I_(){this.h_=this.l_}E_(e){this.cancel();const n=Math.floor(this.h_+this.d_()),r=Math.max(0,Date.now()-this.T_),s=Math.max(0,n-r);s>0&&We("ExponentialBackoff",`Backing off for ${s} ms (base delay: ${this.h_} ms, delay with jitter: ${n} ms, last attempt: ${r} ms ago)`),this.P_=this.bi.enqueueAfterDelay(this.timerId,s,()=>(this.T_=Date.now(),e())),this.h_*=this.c_,this.h_<this.u_&&(this.h_=this.u_),this.h_>this.l_&&(this.h_=this.l_)}A_(){this.P_!==null&&(this.P_.skipDelay(),this.P_=null)}cancel(){this.P_!==null&&(this.P_.cancel(),this.P_=null)}d_(){return(Math.random()-.5)*this.h_}}/**
3031 * @license
3032 * Copyright 2017 Google LLC
3033 *
3034 * Licensed under the Apache License, Version 2.0 (the "License");
3035 * you may not use this file except in compliance with the License.
3036 * You may obtain a copy of the License at
3037 *
3038 *   http://www.apache.org/licenses/LICENSE-2.0
3039 *
3040 * Unless required by applicable law or agreed to in writing, software
3041 * distributed under the License is distributed on an "AS IS" BASIS,
3042 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3043 * See the License for the specific language governing permissions and
3044 * limitations under the License.
3045 */const qM="PersistentStream";class _U{constructor(e,n,r,s,i,o,a,c){this.bi=e,this.R_=r,this.V_=s,this.connection=i,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=a,this.listener=c,this.state=0,this.m_=0,this.f_=null,this.g_=null,this.stream=null,this.p_=0,this.y_=new wU(e,n)}w_(){return this.state===1||this.state===5||this.b_()}b_(){return this.state===2||this.state===3}start(){this.p_=0,this.state!==4?this.auth():this.S_()}async stop(){this.w_()&&await this.close(0)}D_(){this.state=0,this.y_.reset()}v_(){this.b_()&&this.f_===null&&(this.f_=this.bi.enqueueAfterDelay(this.R_,6e4,()=>this.C_()))}F_(e){this.M_(),this.stream.send(e)}
3045async C_(){if(this.b_())return this.close(0)}M_(){this.f_&&(this.f_.cancel(),this.f_=null)}x_(){this.g_&&(this.g_.cancel(),this.g_=null)}async close(e,n){this.M_(),this.x_(),this.y_.cancel(),this.m_++,e!==4?this.y_.reset():n&&n.code===Te.RESOURCE_EXHAUSTED?(zl(n.toString()),zl("Using maximum backoff delay to prevent overloading the backend."),this.y_.I_()):n&&n.code===Te.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.O_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.Zo(n)}O_(){}auth(){this.state=1;const e=this.N_(this.m_),n=this.m_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([r,s])=>{this.m_===n&&this.B_(r,s)},r=>{e(()=>{const s=new at(Te.UNKNOWN,"Fetching auth token failed: "+r.message);return this.L_(s)})})}B_(e,n){const r=this.N_(this.m_);this.stream=this.k_(e,n),this.stream.jo(()=>{r(()=>this.listener.jo())}),this.stream.Jo(()=>{r(()=>(this.state=2,this.g_=this.bi.enqueueAfterDelay(this.V_,1e4,()=>(this.b_()&&(this.state=3),Promise.resolve())),this.listener.Jo()))}),this.stream.Zo(s=>{r(()=>this.L_(s))}),this.stream.onMessage(s=>{r(()=>++this.p_==1?this.q_(s):this.onNext(s))})}S_(){this.state=5,this.y_.E_(async()=>{this.state=0,this.start()})}L_(e){return We(qM,`close with error: ${e}`),this.stream=null,this.close(4,e)}N_(e){return n=>{this.bi.enqueueAndForget(()=>this.m_===e?n():(We(qM,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class Yxe extends _U{constructor(e,n,r,s,i,o){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,r,s,o),this.serializer=i}k_(e,n){return this.connection.a_("Listen",e,n)}q_(e){return this.onNext(e)}onNext(e){this.y_.reset();const n=txe(this.serializer,e),r=function(i){if(!("targetChange"in i))return St.min();const o=i.targetChange;return o.targetIds&&o.targetIds.length?St.min():o.readTime?ba(o.readTime):St.min()}(e);return this.listener.Q_(n,r)}U_(e){const n={};n.database=Y_(this.serializer),n.addTarget=function(i,o){let a;const c=o.target;if(a=U_(c)?{documents:sxe(i,c)}:{query:ixe(i,c).gt},a.targetId=o.targetId,o.resumeToken.approximateByteSize()>0){a.resumeToken=cU(i,o.resumeToken);const d=q_(i,o.expectedCount);d!==null&&(a.expectedCount=d)}else if(o.snapshotVersion.compareTo(St.min())>0){a.readTime=_4(i,o.snapshotVersion.toTimestamp());const d=q_(i,o.expectedCount);d!==null&&(a.expectedCount=d)}return a}(this.serializer,e);const r=axe(this.serializer,e);r&&(n.labels=r),this.F_(n)}K_(e){const n={};n.database=Y_(this.serializer),n.removeTarget=e,this.F_(n)}}class Qxe extends _U{constructor(e,n,r,s,i,o){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,r,s,o),this.serializer=i}get W_(){return this.p_>0}start(){this.lastStreamToken=void 0,super.start()}O_(){this.W_&&this.G_([])}k_(e,n){return this.connection.a_("Write",e,n)}q_(e){return fn(!!e.streamToken,31322),this.lastStreamToken=e.streamToken,fn(!e.writeResults||e.writeResults.length===0,55816),this.listener.z_()}onNext(e){fn(!!e.streamToken,12678),this.lastStreamToken=e.streamToken,this.y_.reset();const n=rxe(e.writeResults,e.commitTime),r=ba(e.commitTime);return this.listener.j_(r,n)}H_(){const e={};e.database=Y_(this.serializer),this.F_(e)}G_(e){const n={streamToken:this.lastStreamToken,writes:e.map(r=>nxe(this.serializer,r))};this.F_(n)}}/**
3046 * @license
3047 * Copyright 2017 Google LLC
3048 *
3049 * Licensed under the Apache License, Version 2.0 (the "License");
3050 * you may not use this file except in compliance with the License.
3051 * You may obtain a copy of the License at
3052 *
3053 *   http://www.apache.org/licenses/LICENSE-2.0
3054 *
3055 * Unless required by applicable law or agreed to in writing, software
3056 * distributed under the License is distributed on an "AS IS" BASIS,
3057 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3058 * See the License for the specific language governing permissions and
3059 * limitations under the License.
3060 */class Xxe{}class Zxe extends Xxe{constructor(e,n,r,s){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=r,this.serializer
3060=s,this.J_=!1}Y_(){if(this.J_)throw new at(Te.FAILED_PRECONDITION,"The client has already been terminated.")}Qo(e,n,r,s){return this.Y_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([i,o])=>this.connection.Qo(e,G_(n,r),s,i,o)).catch(i=>{throw i.name==="FirebaseError"?(i.code===Te.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),i):new at(Te.UNKNOWN,i.toString())})}Wo(e,n,r,s,i){return this.Y_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([o,a])=>this.connection.Wo(e,G_(n,r),s,o,a,i)).catch(o=>{throw o.name==="FirebaseError"?(o.code===Te.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new at(Te.UNKNOWN,o.toString())})}terminate(){this.J_=!0,this.connection.terminate()}}class Jxe{constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.Z_=0,this.X_=null,this.ea=!0}ta(){this.Z_===0&&(this.na("Unknown"),this.X_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.X_=null,this.ra("Backend didn't respond within 10 seconds."),this.na("Offline"),Promise.resolve())))}ia(e){this.state==="Online"?this.na("Unknown"):(this.Z_++,this.Z_>=1&&(this.sa(),this.ra(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.na("Offline")))}set(e){this.sa(),this.Z_=0,e==="Online"&&(this.ea=!1),this.na(e)}na(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}ra(e){const n=`Could not reach Cloud Firestore backend. ${e}
3061This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.ea?(zl(n),this.ea=!1):We("OnlineStateTracker",n)}sa(){this.X_!==null&&(this.X_.cancel(),this.X_=null)}}/**
3062 * @license
3063 * Copyright 2017 Google LLC
3064 *
3065 * Licensed under the Apache License, Version 2.0 (the "License");
3066 * you may not use this file except in compliance with the License.
3067 * You may obtain a copy of the License at
3068 *
3069 *   http://www.apache.org/licenses/LICENSE-2.0
3070 *
3071 * Unless required by applicable law or agreed to in writing, software
3072 * distributed under the License is distributed on an "AS IS" BASIS,
3073 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3074 * See the License for the specific language governing permissions and
3075 * limitations under the License.
3076 */const ff="RemoteStore";class ewe{constructor(e,n,r,s,i){this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.oa=[],this._a=new Map,this.aa=new Set,this.ua=[],this.ca=i,this.ca.vo(o=>{r.enqueueAndForget(async()=>{Df(this)&&(We(ff,"Restarting streams for network reachability change."),await async function(c){const d=At(c);d.aa.add(4),await rg(d),d.la.set("Unknown"),d.aa.delete(4),await J5(d)}(this))})}),this.la=new Jxe(r,s)}}async function J5(t){if(Df(t))for(const e of t.ua)await e(!0)}async function rg(t){for(const e of t.ua)await e(!1)}function EU(t,e){const n=At(t);n._a.has(e.targetId)||(n._a.set(e.targetId,e),jS(n)?FS(n):$m(n).b_()&&$S(n,e))}function OS(t,e){const n=At(t),r=$m(n);n._a.delete(e),r.b_()&&bU(n,e),n._a.size===0&&(r.b_()?r.v_():Df(n)&&n.la.set("Unknown"))}function $S(t,e){if(t.ha.Ke(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(St.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}$m(t).U_(e)}function bU(t,e){t.ha.Ke(e),$m(t).K_(e)}function FS(t){t.ha=new K6e({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),Rt:e=>t._a.get(e)||null,Pt:()=>t.datastore.serializer.databaseId}),$m(t).start(),t.la.ta()}function jS(t){return Df(t)&&!$m(t).w_()&&t._a.size>0}function Df(t){return At(t).aa.size===0}function SU(t){t.ha=void 0}async function twe(t){t.la.set("Online")}async function nwe(t){t._a.forEach((e,n)=>{$S(t,e)})}async function rwe(t,e){SU(t),jS(t)?(t.la.ia(e),FS(t)):t.la.set("Unknown")}async function swe(t,e,n){if(t.la.set("Online"),e instanceof lU&&e.state===2&&e.cause)try{await async function(s,i){const o=i.cause;for(const a of i.targetIds)s._a.has(a)&&(await s.remoteSyncer.rejectListen(a,o),s._a.delete(a),s.ha.removeTarget(a))}(t,e)}catch(r){We(ff,"Failed to remove targets %s: %s ",e.targetIds.join(","),r),await b4(t,r)}else if(e instanceof iy?t.ha.Xe(e):e instanceof aU?t.ha.ot(e):t.ha.nt(e),!n.isEqual(St.min()))try{const r=await xU(t.localStore);n.compareTo(r)>=0&&await function(i,o){const a=i.ha.It(o);
3076return a.targetChanges.forEach((c,d)=>{if(c.resumeToken.approximateByteSize()>0){const p=i._a.get(d);p&&i._a.set(d,p.withResumeToken(c.resumeToken,o))}}),a.targetMismatches.forEach((c,d)=>{const p=i._a.get(c);if(!p)return;i._a.set(c,p.withResumeToken(Zr.EMPTY_BYTE_STRING,p.snapshotVersion)),bU(i,c);const m=new eu(p.target,c,d,p.sequenceNumber);$S(i,m)}),i.remoteSyncer.applyRemoteEvent(a)}(t,n)}catch(r){We(ff,"Failed to raise snapshot:",r),await b4(t,r)}}async function b4(t,e,n){if(!Om(e))throw e;t.aa.add(1),await rg(t),t.la.set("Offline"),n||(n=()=>xU(t.localStore)),t.asyncQueue.enqueueRetryable(async()=>{We(ff,"Retrying IndexedDB access"),await n(),t.aa.delete(1),await J5(t)})}function CU(t,e){return e().catch(n=>b4(t,n,e))}async function e6(t){const e=At(t),n=_u(e);let r=e.oa.length>0?e.oa[e.oa.length-1].batchId:_S;for(;iwe(e);)try{const s=await zxe(e.localStore,r);if(s===null){e.oa.length===0&&n.v_();break}r=s.batchId,owe(e,s)}catch(s){await b4(e,s)}TU(e)&&AU(e)}function iwe(t){return Df(t)&&t.oa.length<10}function owe(t,e){t.oa.push(e);const n=_u(t);n.b_()&&n.W_&&n.G_(e.mutations)}function TU(t){return Df(t)&&!_u(t).w_()&&t.oa.length>0}function AU(t){_u(t).start()}async function awe(t){_u(t).H_()}async function lwe(t){const e=_u(t);for(const n of t.oa)e.G_(n.mutations)}async function cwe(t,e,n){const r=t.oa.shift(),s=IS.from(r,e,n);await CU(t,()=>t.remoteSyncer.applySuccessfulWrite(s)),await e6(t)}async function uwe(t,e){e&&_u(t).W_&&await async function(r,s){if(function(o){return q6e(o)&&o!==Te.ABORTED}(s.code)){const i=r.oa.shift();_u(r).D_(),await CU(r,()=>r.remoteSyncer.rejectFailedWrite(i.batchId,s)),await e6(r)}}(t,e),TU(t)&&AU(t)}async function GM(t,e){const n=At(t);n.asyncQueue.verifyOperationInProgress(),We(ff,"RemoteStore received new credentials");const r=Df(n);n.aa.add(3),await rg(n),r&&n.la.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.aa.delete(3),await J5(n)}async function dwe(t,e){const n=At(t);e?(n.aa.delete(2),await J5(n)):e||(n.aa.add(2),await rg(n),n.la.set("Unknown"))}function $m(t){return t.Pa||(t.Pa=function(n,r,s){const i=At(n);return i.Y_(),new Yxe(r,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,s)}(t.datastore,t.asyncQueue,{jo:twe.bind(null,t),Jo:nwe.bind(null,t),Zo:rwe.bind(null,t),Q_:swe.bind(null,t)}),t.ua.push(async e=>{e?(t.Pa.D_(),jS(t)?FS(t):t.la.set("Unknown")):(await t.Pa.stop(),SU(t))})),t.Pa}function _u(t){return t.Ta||(t.Ta=function(n,r,s){const i=At(n);return i.Y_(),new Qxe(r,i.connection,i.authCredentials,i.appCheckCredentials,i.serializer,s)}(t.datastore,t.asyncQueue,{jo:()=>Promise.resolve(),Jo:awe.bind(null,t),Zo:uwe.bind(null,t),z_:lwe.bind(null,t),j_:cwe.bind(null,t)}),t.ua.push(async e=>{e?(t.Ta.D_(),await e6(t)):(await t.Ta.stop(),t.oa.length>0&&(We(ff,`Stopping write stream with ${t.oa.length} pending writes`),t.oa=[]))})),t.Ta}/**
3077 * @license
3078 * Copyright 2017 Google LLC
3079 *
3080 * Licensed under the Apache License, Version 2.0 (the "License");
3081 * you may not use this file except in compliance with the License.
3082 * You may obtain a copy of the License at
3083 *
3084 *   http://www.apache.org/licenses/LICENSE-2.0
3085 *
3086 * Unless required by applicable law or agreed to in writing, software
3087 * distributed under the License is distributed on an "AS IS" BASIS,
3088 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3089 * See the License for the specific language governing permissions and
3090 * limitations under the License.
3091 */class LS{constructor(e,n,r,s,i){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=r,this.op=s,this.removalCallback=i,this.deferred=new cu,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(o=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,n,r,s,i){const o=Date.now()+r,a=new LS(e,n,o,s,i);return a.start(r),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new at(Te.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function zS(t,e){if(zl("AsyncQueue",`${e}: ${t}`),Om(t))return new at(Te.UNAVAILABLE,`${e}: ${t}`);throw t}/**
3092 * @license
3093 * Copyright 2017 Google LLC
3094 *
3095 * Licensed under the Apache License, Version 2.0 (the "License");
3096 * you may not use this file except in compliance with the License.
3097 * You may obtain a copy of the License at
3098 *
3099 *   http://www.apache.org/licenses/LICENSE-2.0
3100 *
3101 * Unless required by applicable law or agreed to in writing, software
3102 * distributed under the License is distributed on an "AS IS" BASIS,
3103 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3104 * See the License for the specific language governing permissions and
3105 * limitations under the License.
3106 */class vp{static emptySet(e){return new vp(e.comparator)}constructor(e){this.comparator=e?(n,r)=>e(n,r)||lt.comparator(n.key,r.key):(n,r)=>lt.comparator(n.key,r.key),this.keyedMap=X1(),this.sortedSet=new Wn(this.comparator)}has(e){return this.keyedMap.get(e)!=null}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const n=this.keyedMap.get(e);return n?this.sortedSet.indexOf(n):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((n,r)=>(e(n),!1))}add(e){const n=this.delete(e.key);return n.copy(n.keyedMap.insert(e.key,e),n.sortedSet.insert(e,null))}delete(e){const n=this.get(e);return n?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(n)):this}isEqual(e){if(!(e instanceof vp)||this.size!==e.size)return!1;const n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();for(;n.hasNext();){const s=n.getNext().key,i=r.getNext().key;if(!s.isEqual(i))return!1}return!0}toString(){const e=[];return this.forEach(n=>{e.push(n.toString())}),e.length===0?"DocumentSet ()":`DocumentSet (
3107  `+e.join(`  
3108`)+`
3109)`}copy(e,n){const r=new vp;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r}}/**
3110 * @license
3111 * Copyright 2017 Google LLC
3112 *
3113 * Licensed under the Apache License, Version 2.0 (the "License");
3114 * you may not use this file except in compliance with the License.
3115 * You may obtain a copy of the License at
3116 *
3117 *   http://www.apache.org/licenses/LICENSE-2.0
3118 *
3119 * Unless required by applicable law or agreed to in writing, software
3120 * distributed under the License is distributed on an "AS IS" BASIS,
3121 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3122 * See the License for the specific language governing permissions and
3123 * limitations under the License.
3124 */class KM{constructor(){this.Ia=new Wn(lt.comparator)}track(e){const n=e.doc.key,r=this.Ia.get(n);r?e.type!==0&&r.type===3?this.Ia=this.Ia.insert(n,e):e.type===3&&r.type!==1?this.Ia=this.Ia.insert(n,{type:r.type,doc:e.doc}):e.type===2&&r.type===2?this.Ia=this.Ia.insert(n,{type:2,doc:e.doc}):e.type===2&&r.type===0?this.Ia=this.Ia.insert(n,{type:0,doc:e.doc}):e.type===1&&r.type===0?this.Ia=this.Ia.remove(n):e.type===1&&r.type===2?this.Ia=this.Ia.insert(n,{type:1,doc:r.doc}):e.type===0&&r.type===1?this.Ia=this.Ia.insert(n,{type:2,doc:e.doc}):gt(63341,{Vt:e,Ea:r}):this.Ia=this.Ia.insert(n,e)}da(){const e=[];return this.Ia.inorderTraversal((n,r)=>{e.push(r)}),e}}class rm{constructor(e,n,r,s,i,o,a,c,d){this.query=e,this.docs=n,this.oldDocs=r,this.docChanges=s,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=c,this.hasCachedResults=d}static fromInitialDocuments(e,n,r,s,i){const o=[];return n.forEach(a=>{o.push({type:0,doc:a})}),new rm(e,n,vp.emptySet(n),o,r,s,!0,!1,i)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&G5(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const n=this.docChanges,r=e.docChanges;if(n.length!==r.length)return!1;for(let s=0;s<n.length;s++)if(n[s].type!==r[s].type||!n[s].doc.isEqual(r[s].doc))return!1;return!0}}/**
3125 * @license
3126 * Copyright 2017 Google LLC
3127 *
3128 * Licensed under the Apache License, Version 2.0 (the "License");
3129 * you may not use this file except in compliance with the License.
3130 * You may obtain a copy of the License at
3131 *
3132 *   http://www.apache.org/licenses/LICENSE-2.0
3133 *
3134 * Unless required by applicable law or agreed to in writing, softw
3134are
3135 * distributed under the License is distributed on an "AS IS" BASIS,
3136 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3137 * See the License for the specific language governing permissions and
3138 * limitations under the License.
3139 */class fwe{constructor(){this.Aa=void 0,this.Ra=[]}Va(){return this.Ra.some(e=>e.ma())}}class hwe{constructor(){this.queries=YM(),this.onlineState="Unknown",this.fa=new Set}terminate(){(function(n,r){const s=At(n),i=s.queries;s.queries=YM(),i.forEach((o,a)=>{for(const c of a.Ra)c.onError(r)})})(this,new at(Te.ABORTED,"Firestore shutting down"))}}function YM(){return new Mf(t=>GH(t),G5)}async function pwe(t,e){const n=At(t);let r=3;const s=e.query;let i=n.queries.get(s);i?!i.Va()&&e.ma()&&(r=2):(i=new fwe,r=e.ma()?0:1);try{switch(r){case 0:i.Aa=await n.onListen(s,!0);break;case 1:i.Aa=await n.onListen(s,!1);break;case 2:await n.onFirstRemoteStoreListen(s)}}catch(o){const a=zS(o,`Initialization of query '${zh(e.query)}' failed`);return void e.onError(a)}n.queries.set(s,i),i.Ra.push(e),e.ga(n.onlineState),i.Aa&&e.pa(i.Aa)&&VS(n)}async function mwe(t,e){const n=At(t),r=e.query;let s=3;const i=n.queries.get(r);if(i){const o=i.Ra.indexOf(e);o>=0&&(i.Ra.splice(o,1),i.Ra.length===0?s=e.ma()?0:1:!i.Va()&&e.ma()&&(s=2))}switch(s){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function gwe(t,e){const n=At(t);let r=!1;for(const s of e){const i=s.query,o=n.queries.get(i);if(o){for(const a of o.Ra)a.pa(s)&&(r=!0);o.Aa=s}}r&&VS(n)}function vwe(t,e,n){const r=At(t),s=r.queries.get(e);if(s)for(const i of s.Ra)i.onError(n);r.queries.delete(e)}function VS(t){t.fa.forEach(e=>{e.next()})}var Z_,QM;(QM=Z_||(Z_={})).ya="default",QM.Cache="cache";class ywe{constructor(e,n,r){this.query=e,this.wa=n,this.ba=!1,this.Sa=null,this.onlineState="Unknown",this.options=r||{}}pa(e){if(!this.options.includeMetadataChanges){const r=[];for(const s of e.docChanges)s.type!==3&&r.push(s);e=new rm(e.query,e.docs,e.oldDocs,r,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.ba?this.Da(e)&&(this.wa.next(e),n=!0):this.va(e,this.onlineState)&&(this.Ca(e),n=!0),this.Sa=e,n}onError(e){this.wa.error(e)}ga(e){this.onlineState=e;let n=!1;return this.Sa&&!this.ba&&this.va(this.Sa,e)&&(this.Ca(this.Sa),n=!0),n}va(e,n){if(!e.fromCache||!this.ma())return!0;const r=n!=="Offline";return(!this.options.Fa||!r)&&(!e.docs.isEmpty()||e.hasCachedResults||n==="Offline")}Da(e){if(e.docChanges.length>0)return!0;const n=this.Sa&&this.Sa.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!n)&&this.options.includeMetadataChanges===!0}Ca(e){e=rm.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.ba=!0,this.wa.next(e)}ma(){return this.options.source!==Z_.Cache}}/**
3140 * @license
3141 * Copyright 2017 Google LLC
3142 *
3143 * Licensed under the Apache License, Version 2.0 (the "License");
3144 * you may not use this file except in compliance with the License.
3145 * You may obtain a copy of the License at
3146 *
3147 *   http://www.apache.org/licenses/LICENSE-2.0
3148 *
3149 * Unless required by applicable law or agreed to in writing, software
3150 * distributed under the License is distributed on an "AS IS" BASIS,
3151 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3152 * See the License for the specific language governing permissions and
3153 * limitations under the License.
3154 */class IU{constructor(e){this.key=e}}class PU{constructor(e){this.key=e}}class xwe{constructor(e,n){this.query=e,this.qa=n,this.Qa=null,this.hasCachedResults=!1,this.current=!1,this.$a=Wt(),this.mutatedKeys=Wt(),this.Ua=KH(e),this.Ka=new vp(this.Ua)}get Wa(){return this.qa}Ga(e,n){const r=n?n.za:new KM,s=n?n.Ka:this.Ka;let i=n?n.mutatedKeys:this.mutatedKeys,o=s,a=!1;const c=this.query.limitType==="F"&&s.size===this.query.limit?s.last():null,d=this.query.limitType==="L"&&s.size===this.query.limit?s.first():null;if(e.inorderTraversal((p,m)=>{const v=s.get(p),w=K5(this.query,m)?m:null,E=!!v&&this.mutatedKeys.has(v.key),C=!!w&&(w.hasLocalMutations||this.mutatedKeys.has(w.key)&&w.hasCommittedMutations);let b=!1;v&&w?v.data.isEqual(w.data)?E!==C&&(r.track({type:3,doc:w}),b=!0):this.ja(v,w)||(r.track({type:2,doc:w}),b=!0,(c&&this.Ua(w,c)>0||d&&this.Ua(w,d)<0)&&(a=!0)):!v&&w?(r.track({type:0,doc:w}),b=!0):v&&!w&&(r.track({type:1,doc:v}),b=!0,(c||d)&&(a=!0)),b&&(w?(o=o.add(w),i=C?i.add(p):i.delete(p)):(o=o.delete(p),i=i.delete(p)))}),this.query.limit!==null)for(;o.size>this.query.limit;){const p=this.query.limitType==="F"?o.last():o.first();o=o.delete(p.key),i=i.delete(p.key),r.track({type:1,doc:p})}return{Ka:o,za:r,ys:a,mutatedKeys:i}}ja(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}
3154applyChanges(e,n,r,s){const i=this.Ka;this.Ka=e.Ka,this.mutatedKeys=e.mutatedKeys;const o=e.za.da();o.sort((p,m)=>function(w,E){const C=b=>{switch(b){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return gt(20277,{Vt:b})}};return C(w)-C(E)}(p.type,m.type)||this.Ua(p.doc,m.doc)),this.Ha(r),s=s!=null&&s;const a=n&&!s?this.Ja():[],c=this.$a.size===0&&this.current&&!s?1:0,d=c!==this.Qa;return this.Qa=c,o.length!==0||d?{snapshot:new rm(this.query,e.Ka,i,o,e.mutatedKeys,c===0,d,!1,!!r&&r.resumeToken.approximateByteSize()>0),Ya:a}:{Ya:a}}ga(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({Ka:this.Ka,za:new KM,mutatedKeys:this.mutatedKeys,ys:!1},!1)):{Ya:[]}}Za(e){return!this.qa.has(e)&&!!this.Ka.has(e)&&!this.Ka.get(e).hasLocalMutations}Ha(e){e&&(e.addedDocuments.forEach(n=>this.qa=this.qa.add(n)),e.modifiedDocuments.forEach(n=>{}),e.removedDocuments.forEach(n=>this.qa=this.qa.delete(n)),this.current=e.current)}Ja(){if(!this.current)return[];const e=this.$a;this.$a=Wt(),this.Ka.forEach(r=>{this.Za(r.key)&&(this.$a=this.$a.add(r.key))});const n=[];return e.forEach(r=>{this.$a.has(r)||n.push(new PU(r))}),this.$a.forEach(r=>{e.has(r)||n.push(new IU(r))}),n}Xa(e){this.qa=e.Ns,this.$a=Wt();const n=this.Ga(e.documents);return this.applyChanges(n,!0)}eu(){return rm.fromInitialDocuments(this.query,this.Ka,this.mutatedKeys,this.Qa===0,this.hasCachedResults)}}const BS="SyncEngine";class wwe{constructor(e,n,r){this.query=e,this.targetId=n,this.view=r}}class _we{constructor(e){this.key=e,this.tu=!1}}class Ewe{constructor(e,n,r,s,i,o){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=s,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.nu={},this.ru=new Mf(a=>GH(a),G5),this.iu=new Map,this.su=new Set,this.ou=new Wn(lt.comparator),this._u=new Map,this.au=new NS,this.uu={},this.cu=new Map,this.lu=nm.ir(),this.onlineState="Unknown",this.hu=void 0}get isPrimaryClient(){return this.hu===!0}}async function bwe(t,e,n=!0){const r=OU(t);let s;const i=r.ru.get(e);return i?(r.sharedClientState.addLocalQueryTarget(i.targetId),s=i.view.eu()):s=await RU(r,e,n,!0),s}async function Swe(t,e){const n=OU(t);await RU(n,e,!0,!1)}async function RU(t,e,n,r){const s=await Vxe(t.localStore,Ea(e)),i=s.targetId,o=t.sharedClientState.addLocalQueryTarget(i,n);let a;return r&&(a=await Cwe(t,e,i,o==="current",s.resumeToken)),t.isPrimaryClient&&n&&EU(t.remoteStore,s),a}async function Cwe(t,e,n,r,s){t.Pu=(m,v,w)=>async function(C,b,S,P){let R=b.view.Ga(S);R.ys&&(R=await BM(C.localStore,b.query,!1).then(({documents:D})=>b.view.Ga(D,R)));const z=P&&P.targetChanges.get(b.targetId),O=P&&P.targetMismatches.get(b.targetId)!=null,F=b.view.applyChanges(R,C.isPrimaryClient,z,O);return ZM(C,b.targetId,F.Ya),F.snapshot}(t,m,v,w);const i=await BM(t.localStore,e,!0),o=new xwe(e,i.Ns),a=o.Ga(i.documents),c=ng.createSynthesizedTargetChangeForCurrentChange(n,r&&t.onlineState!=="Offline",s),d=o.applyChanges(a,t.isPrimaryClient,c);ZM(t,n,d.Ya);const p=new wwe(e,n,o);return t.ru.set(e,p),t.iu.has(n)?t.iu.get(n).push(e):t.iu.set(n,[e]),d.snapshot}async function Twe(t,e,n){const r=At(t),s=r.ru.get(e),i=r.iu.get(s.targetId);if(i.length>1)return r.iu.set(s.targetId,i.filter(o=>!G5(o,e))),void r.ru.delete(e);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(s.targetId),r.sharedCl
3154ientState.isActiveQueryTarget(s.targetId)||await Q_(r.localStore,s.targetId,!1).then(()=>{r.sharedClientState.clearQueryState(s.targetId),n&&OS(r.remoteStore,s.targetId),J_(r,s.targetId)}).catch(Dm)):(J_(r,s.targetId),await Q_(r.localStore,s.targetId,!0))}async function Awe(t,e){const n=At(t),r=n.ru.get(e),s=n.iu.get(r.targetId);n.isPrimaryClient&&s.length===1&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),OS(n.remoteStore,r.targetId))}async function Iwe(t,e,n){const r=Owe(t);try{const s=await function(o,a){const c=At(o),d=Tr.now(),p=a.reduce((w,E)=>w.add(E.key),Wt());let m,v;return c.persistence.runTransaction("Locally write mutations","readwrite",w=>{let E=Vl(),C=Wt();return c.Cs.getEntries(w,p).next(b=>{E=b,E.forEach((S,P)=>{P.isValidDocument()||(C=C.add(S))})}).next(()=>c.localDocuments.getOverlayedDocuments(w,E)).next(b=>{m=b;const S=[];for(const P of a){const R=V6e(P,m.get(P.key).overlayedDocument);R!=null&&S.push(new kf(P.key,R,zH(R.value.mapValue),Tl.exists(!0)))}return c.mutationQueue.addMutationBatch(w,d,S,a)}).next(b=>{v=b;const S=b.applyToLocalDocumentSet(m,C);return c.documentOverlayCache.saveOverlays(w,b.batchId,S)})}).then(()=>({batchId:v.batchId,changes:QH(m)}))}(r.localStore,e);r.sharedClientState.addPendingMutation(s.batchId),function(o,a,c){let d=o.uu[o.currentUser.toKey()];d||(d=new Wn(Lt)),d=d.insert(a,c),o.uu[o.currentUser.toKey()]=d}(r,s.batchId,n),await sg(r,s.changes),await e6(r.remoteStore)}catch(s){const i=zS(s,"Failed to persist write");n.reject(i)}}async function NU(t,e){const n=At(t);try{const r=await jxe(n.localStore,e);
3154e.targetChanges.forEach((s,i)=>{const o=n._u.get(i);o&&(fn(s.addedDocuments.size+s.modifiedDocuments.size+s.removedDocuments.size<=1,22616),s.addedDocuments.size>0?o.tu=!0:s.modifiedDocuments.size>0?fn(o.tu,14607):s.removedDocuments.size>0&&(fn(o.tu,42227),o.tu=!1))}),await sg(n,r,e)}catch(r){await Dm(r)}}function XM(t,e,n){const r=At(t);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){const s=[];r.ru.forEach((i,o)=>{const a=o.view.ga(e);a.snapshot&&s.push(a.snapshot)}),function(o,a){const c=At(o);c.onlineState=a;let d=!1;c.queries.forEach((p,m)=>{for(const v of m.Ra)v.ga(a)&&(d=!0)}),d&&VS(c)}(r.eventManager,e),s.length&&r.nu.Q_(s),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}async function Pwe(t,e,n){const r=At(t);r.sharedClientState.updateQueryState(e,"rejected",n);const s=r._u.get(e),i=s&&s.key;if(i){let o=new Wn(lt.comparator);o=o.insert(i,ls.newNoDocument(i,St.min()));const a=Wt().add(i),c=new X5(St.min(),new Map,new Wn(Lt),o,a);await NU(r,c),r.ou=r.ou.remove(i),r._u.delete(e),HS(r)}else await Q_(r.localStore,e,!1).then(()=>J_(r,e,n)).catch(Dm)}async function Rwe(t,e){const n=At(t),r=e.batch.batchId;try{const s=await Fxe(n.localStore,e);kU(n,r,null),MU(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await sg(n,s)}catch(s){await Dm(s)}}async function Nwe(t,e,n){const r=At(t);try{const s=await function(o,a){const c=At(o);return c.persistence.runTransaction("Reject batch","readwrite-primary",d=>{let p;return c.mutationQueue.lookupMutationBatch(d,a).next(m=>
3154(fn(m!==null,37113),p=m.keys(),c.mutationQueue.removeMutationBatch(d,m))).next(()=>c.mutationQueue.performConsistencyCheck(d)).next(()=>c.documentOverlayCache.removeOverlaysForBatchId(d,p,a)).next(()=>c.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(d,p)).next(()=>c.localDocuments.getDocuments(d,p))})}(r.localStore,e);kU(r,e,n),MU(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),await sg(r,s)}catch(s){await Dm(s)}}function MU(t,e){(t.cu.get(e)||[]).forEach(n=>{n.resolve()}),t.cu.delete(e)}function kU(t,e,n){const r=At(t);let s=r.uu[r.currentUser.toKey()];if(s){const i=s.get(e);i&&(n?i.reject(n):i.resolve(),s=s.remove(e)),r.uu[r.currentUser.toKey()]=s}}function J_(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const r of t.iu.get(e))t.ru.delete(r),n&&t.nu.Tu(r,n);t.iu.delete(e),t.isPrimaryClient&&t.au.Ur(e).forEach(r=>{t.au.containsKey(r)||DU(t,r)})}function DU(t,e){t.su.delete(e.path.canonicalString());const n=t.ou.get(e);n!==null&&(OS(t.remoteStore,n),t.ou=t.ou.remove(e),t._u.delete(n),HS(t))}function ZM(t,e,n){for(const r of n)r instanceof IU?(t.au.addReference(r.key,e),Mwe(t,r)):r instanceof PU?(We(BS,"Document no longer in limbo: "+r.key),t.au.removeReference(r.key,e),t.au.containsKey(r.key)||DU(t,r.key)):gt(19791,{Iu:r})}function Mwe(t,e){const n=e.key,r=n.path.canonicalString();t.ou.get(n)||t.su.has(r)||(We(BS,"New document in limbo: "+n),t.su.add(r),HS(t))}function HS(t){for(;t.su.size>0&&t.ou.size<t.maxConcurrentLimboResolutions;){const e=t.su.values().next().value;t.su.delete(e);const n=new lt(Xn.fromString(e)),r=t.lu.next();t._u.set(r,new _we(n)),t.ou=t.ou.insert(n,r),EU(t.remoteStore,new eu(Ea(TS(n.path)),r,"TargetPurposeLimboResolution",H5.le))}}async function sg(t,e,n){const r=At(t),s=[],i=[],o=[];r.ru.isEmpty()||(r.ru.forEach((a,c)=>{o.push(r.Pu(c,e,n).then(d=>{var p;if((d||n)&&r.isPrimaryClient){const m=d?!d.fromCache:(p=n?.targetChanges.get(c.targetId))===null||p===void 0?void 0:p.current;
3154r.sharedClientState.updateQueryState(c.targetId,m?"current":"not-current")}if(d){s.push(d);const m=kS.Ps(c.targetId,d);i.push(m)}}))}),await Promise.all(o),r.nu.Q_(s),await async function(c,d){const p=At(c);try{await p.persistence.runTransaction("notifyLocalViewChanges","readwrite",m=>ye.forEach(d,v=>ye.forEach(v.ls,w=>p.persistence.referenceDelegate.addReference(m,v.targetId,w)).next(()=>ye.forEach(v.hs,w=>p.persistence.referenceDelegate.removeReference(m,v.targetId,w)))))}catch(m){if(!Om(m))throw m;We(DS,"Failed to update sequence numbers: "+m)}for(const m of d){const v=m.targetId;if(!m.fromCache){const w=p.Ss.get(v),E=w.snapshotVersion,C=w.withLastLimboFreeSnapshotVersion(E);p.Ss=p.Ss.insert(v,C)}}}(r.localStore,i))}async function kwe(t,e){const n=At(t);if(!n.currentUser.isEqual(e)){We(BS,"User change. New user:",e.toKey());const r=await yU(n.localStore,e);n.currentUser=e,function(i,o){i.cu.forEach(a=>{a.forEach(c=>{c.reject(new at(Te.CANCELLED,o))})}),i.cu.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),await sg(n,r.Ms)}}function Dwe(t,e){const n=At(t),r=n._u.get(e);if(r&&r.tu)return Wt().add(r.key);{let s=Wt();const i=n.iu.get(e);if(!i)return s;for(const o of i){const a=n.ru.get(o);s=s.unionWith(a.view.Wa)}return s}}function OU(t){const e=At(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=NU.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=Dwe.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=Pwe.bind(null,e),e.nu.Q_=gwe.bind(null,e.eventManager),e.nu.Tu=vwe.bind(null,e.eventManager),e}function Owe(t){const e=At(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=Rwe.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=Nwe.bind(null,e),e}class S4{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=Z5(e.databaseInfo.databaseId),this.sharedClientState=this.Au(e),this.persistence=this.Ru(e),await this.persistence.start(),this.localStore=this.Vu(e),this.gcScheduler=this.mu(e,this.localStore),this.indexBackfillerScheduler=this.fu(e,this.localStore)}mu(e,n){return null}fu(e,n){return null}Vu(e){return $xe(this.persistence,new kxe,e.initialUser,this.serializer)}Ru(e){return new vU(MS.Ei,this.serializer)}Au(e){return new Hxe}async terminate(){var e,n;(e=this.gcScheduler)===null||e===void 0||e.stop(),(n=this.indexBackfillerScheduler)===null||n===void 0||n.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}S4.provider={build:()=>new S4};class $we extends S4{constructor(e){super(),this.cacheSizeBytes=e}mu(e,n){fn(this.persistence.referenceDelegate instanceof E4,46915);const r=this.persistence.referenceDelegate.garbageCollector;return new yxe(r,e.asyncQueue,n)}Ru(e){const n=this.cacheSizeBytes!==void 0?Vs.withCacheSize(this.cacheSizeBytes):Vs.DEFAULT;return new vU(r=>E4.Ei(r,n),this.serializer)}}class eE{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=r=>XM(this.syncEngine,r,1),this.remoteStore.remoteSyncer.handleCredentialChange=kwe.bind(null,this.syncEngine),await dwe(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return function(){return new hwe}()}createDatastore(e){const n=Z5(e.databaseInfo.databaseId),r=function(i){return new Kxe(i)}(e.databaseInfo);return function(i,o,a,c){return new Zxe(i,o,a,c)}(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return function(r,s,i,o,a){return new ewe(r,s,i,o,a)}(this.localStore,this.datastore,e.asyncQueue,n=>XM(this.syncEngine,n,0),function(){return WM.C()?new WM:new Uxe}())}createSyncEngine(e,n){return function(s,i,o,a,c,d,p){const m=new Ewe(s,i,o,a,c,d);return p&&(m.hu=!0),m}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}async terminate(){var e,n;await async function(s){const i=At(s);We(ff,"RemoteStore shutting down."),i.aa.add(5),await rg(i),i.ca.shutdown(),i.la.set("Unknown")}(this.remoteStore),(e=this.datastore)===null||e===void 0||e.terminate(),(n=this.eventManager)===null||n===void 0||n.terminate()}}eE.provider={build:()=>new eE};/**
3155 * @license
3156 * Copyright 2020 Google LLC
3157 *
3158 * Licensed under the Apache License, Version 2.0 (the "License");
3159 * you may not use this file except in compliance with the License.
3160 * You may obtain a copy of the License at
3161 *
3162 *   http://www.apache.org/licenses/LICENSE-2.0
3163 *
3164 * Unless required by applicable law or agreed to in writing, software
3165 * distributed under the License is distributed on an "AS IS" BASIS,
3166 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3167 * See the License for the specific language governing permissions and
3168 * limitations under the License.
3169 *//**
3170 * @license
3171 * Copyright 2017 Google LLC
3172 *
3173 * Licensed under the Apache License, Version 2.0 (the "License");
3174 * you may not use this file except in compliance with the License.
3175 * You may obtain a copy of the License at
3176 *
3177 *   http://www.apache.org/licenses/LICENSE-2.0
3178 *
3179 * Unless required by applicable law or agreed to in writing, software
3180 * distributed under the License is distributed on an "AS IS" BASIS,
3181 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3182 * See the License for the specific language governing permissions and
3183 * limitations under the License.
3184 */class Fwe{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.pu(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.pu(this.observer.error,e):zl("Uncaught Error in snapshot listener:",e.toString()))}yu(){this.muted=!0}pu(e,n){setTimeout(()=>{this.muted||e(n)},0)}}/**
3185 * @license
3186 * Copyright 2017 Google LLC
3187 *
3188 * Licensed under the Apache License, Version 2.0 (the "License");
3189 * you may not use this file except in compliance with the License.
3190 * You may obtain a copy of the License at
3191 *
3192 *   http://www.apache.org/licenses/LICENSE-2.0
3193 *
3194 * Unless required by applicable law or agreed to in writing, software
3195 * distributed under the License is distributed on an "AS IS" BASIS,
3196 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3197 * See the License for the specific language governing permissions and
3198 * limitations under the License.
3199 */const Eu="FirestoreClient";class jwe{constructor(e,n,r,s,i){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=s,this.user=as.UNAUTHENTICATED,this.clientId=RH.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=i,this.authCredentials.start(r,async o=>{We(Eu,"Received user=",o.uid),await this.authCredentialListener(o),this.user=o}),this.appCheckCredentials.start(r,o=>(We(Eu,"Received new app check token=",o),this.appCheckCredentialListener(o,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();const e=new cu;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(n){const r=zS(n,"Failed to shutdown persistence");e.reject(r)}}),e.promise}}async function F7(t,e){t.asyncQueue.verifyOperationInProgress(),We(Eu,"Initializing OfflineComponentProvider");const n=t.configuration;await e.initialize(n);let r=n.initialUser;t.setCredentialChangeListener(async s=>{r.isEqual(s)||(await yU(e.localStore,s),r=s)}),e.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=e}async function JM(t,e){t.asyncQueue.verifyOperationInProgress();const n=await Lwe(t);We(Eu,"Initializing OnlineComponentProvider"),await e.initialize(n,t.configuration),t.setCredentialChangeListener(r=>GM(e.remoteStore,r)),t.setAppCheckTokenChangeListener((r,s)=>GM(e.remoteStore,s)),t._onlineComponents=e}async function Lwe(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){We(Eu,"Using user provided OfflineComponentProvider");try{await F7(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!function(s){return s.name==="FirebaseError"?s.code===Te.FAILED_PRECONDITION||s.code===Te.UNIMPLEMENT
3199ED:!(typeof DOMException<"u"&&s instanceof DOMException)||s.code===22||s.code===20||s.code===11}(n))throw n;Zp("Error using user provided cache. Falling back to memory cache: "+n),await F7(t,new S4)}}else We(Eu,"Using default OfflineComponentProvider"),await F7(t,new $we(void 0));return t._offlineComponents}async function $U(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(We(Eu,"Using user provided OnlineComponentProvider"),await JM(t,t._uninitializedComponentsProvider._online)):(We(Eu,"Using default OnlineComponentProvider"),await JM(t,new eE))),t._onlineComponents}function zwe(t){return $U(t).then(e=>e.syncEngine)}async function Vwe(t){const e=await $U(t),n=e.eventManager;return n.onListen=bwe.bind(null,e.syncEngine),n.onUnlisten=Twe.bind(null,e.syncEngine),n.onFirstRemoteStoreListen=Swe.bind(null,e.syncEngine),n.onLastRemoteStoreUnlisten=Awe.bind(null,e.syncEngine),n}function Bwe(t,e,n={}){const r=new cu;return t.asyncQueue.enqueueAndForget(async()=>function(i,o,a,c,d){const p=new Fwe({next:v=>{p.yu(),o.enqueueAndForget(()=>mwe(i,m));const w=v.docs.has(a);!w&&v.fromCache?d.reject(new at(Te.UNAVAILABLE,"Failed to get document because the client is offline.")):w&&v.fromCache&&c&&c.source==="server"?d.reject(new at(Te.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):d.resolve(v)},error:v=>d.reject(v)}),m=new ywe(TS(a.path),p,{includeMetadataChanges:!0,Fa:!0});return pwe(i,m)}(await Vwe(t),t.asyncQueue,e,n,r)),r.promise}/**
3200 * @license
3201 * Copyright 2023 Google LLC
3202 *
3203 * Licensed under the Apache License, Version 2.0 (the "License");
3204 * you may not use this file except in compliance with the License.
3205 * You may obtain a copy of the License at
3206 *
3207 *   http://www.apache.org/licenses/LICENSE-2.0
3208 *
3209 * Unless required by applicable law or agreed to in writing, software
3210 * distributed under the License is distributed on an "AS IS" BASIS,
3211 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3212 * See the License for the specific language governing permissions and
3213 * limitations under the License.
3214 */function FU(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}/**
3215 * @license
3216 * Copyright 2020 Google LLC
3217 *
3218 * Licensed under the Apache License, Version 2.0 (the "License");
3219 * you may not use this file except in compliance with the License.
3220 * You may obtain a copy of the License at
3221 *
3222 *   http://www.apache.org/licenses/LICENSE-2.0
3223 *
3224 * Unless required by applicable law or agreed to in writing, software
3225 * distributed under the License is distributed on an "AS IS" BASIS,
3226 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3227 * See the License for the specific language governing permissions and
3228 * limitations under the License.
3229 */const ek=new Map;/**
3230 * @license
3231 * Copyright 2017 Google LLC
3232 *
3233 * Licensed under the Apache License, Version 2.0 (the "License");
3234 * you may not use this file except in compliance with the License.
3235 * You may obtain a copy of the License at
3236 *
3237 *   http://www.apache.org/licenses/LICENSE-2.0
3238 *
3239 * Unless required by applicable law or agreed to in writing, software
3240 * distributed under the License is distributed on an "AS IS" BASIS,
3241 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3242 * See the License for the specific language governing permissions and
3243 * limitations under the License.
3244 */function Hwe(t,e,n){if(!n)throw new at(Te.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function Uwe(t,e,n,r){if(e===!0&&r===!0)throw new at(Te.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function tk(t){if(!lt.isDocumentKey(t))throw new at(Te.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function US(t){if(t===void 0)return"undefined";if(t===null)return"null";if(typeof t=="string")return t.length>20&&(t=`${t.substring(0,20)}...`),JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return""+t;if(typeof t=="object"){if(t instanceof Array)return"an array";{const e=function(r){return r.constructor?r.constructor.name:null}(t);return e?`a custom ${e} object`:"an object"}}return typeof t=="function"?"a function":gt(12329,{type:typeof t})}function K0(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new at(Te.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=US(t);throw new at(Te.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}/**
3245 * @license
3246 * Copyright 2020 Google LLC
3247 *
3248 * Licensed under the Apache License, Version 2.0 (the "License");
3249 * you may not use this file except in compliance with the License.
3250 * You may obtain a copy of the License at
3251 *
3252 *   http://www.apache.org/licenses/LICENSE-2.0
3253 *
3254 * Unless required by applicable law or agreed to in writing, software
3255 * distributed under the License is distributed on an "AS IS" BASIS,
3256 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3257 * See the License for the specific language governing permissions and
3258 * limitations under the License.
3259 */const jU="firestore.googleapis.com",nk=!0;class rk{constructor(e){var n,r;if(e.host===void 0){if(e.ssl!==void 0)throw new at(Te.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=jU,this.ssl=nk}else this.host=e.host,this.ssl=(n=e.ssl)!==null&&n!==void 0?n:nk;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=gU;else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<gxe)throw new at(Te.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}Uwe("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:e.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=FU((r=e.experimentalLongPollingOptions)!==null&&r!==void 0?r:{}),function(i){if(i.timeoutSeconds!==void 0){if(isNaN(i.timeoutSeconds))throw new at(Te.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (must not be NaN)`);if(i.timeoutSeconds<5)throw new at(Te.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (minimum allowed value is 5)`);if(i.timeoutSeconds>30)throw new at(Te.INVALID_ARGUMENT,`invalid long polling timeout: ${i.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(r,s){return r.timeoutSeconds===s.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class WS{constructor(e,n,r,s){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=r,this._app=s,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new rk({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new at(Te.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return this._terminateTask!=="notTerminated"}_setSettings(e){if(this._settingsFrozen)throw new at(Te.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new rk(e),this._emulatorOptions=e.emulatorOptions||{},e.credentials!==void 0&&(this._authCredentials=function(r){if(!r)return new q5e;switch(r.type){case"firstParty":return new Q5e(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new at(Te.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask==="notTerminated"&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){this._terminateTask==="notTerminated"?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(n){const r=ek.get(n);r&&(We("ComponentProvider","Removing Datastore"),ek.delete(n),r.terminate())}(this),Promise.resolve()}}function Wwe(t,e,n,r={}){var s;const i=(t=K0(t,WS))._getSettings(),o=Object.assign(Object.assign({},i),{emulatorOptions:t._getEmulatorOptions()}),a=`${e}:${n}`;i.host!==jU&&i.host!==a&&Zp("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");const c=Object.assign(Object.assign({},i),{host:a,ssl:!1,emulatorOptions:r});if(!af(c,o)&&(t._setSettings(c),r.mockUserToken)){let d,p;
3259if(typeof r.mockUserToken=="string")d=r.mockUserToken,p=as.MOCK_USER;else{d=Xve(r.mockUserToken,(s=t._app)===null||s===void 0?void 0:s.options.projectId);const m=r.mockUserToken.sub||r.mockUserToken.user_id;if(!m)throw new at(Te.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");p=new as(m)}t._authCredentials=new G5e(new IH(d,p))}}/**
3260 * @license
3261 * Copyright 2020 Google LLC
3262 *
3263 * Licensed under the Apache License, Version 2.0 (the "License");
3264 * you may not use this file except in compliance with the License.
3265 * You may obtain a copy of the License at
3266 *
3267 *   http://www.apache.org/licenses/LICENSE-2.0
3268 *
3269 * Unless required by applicable law or agreed to in writing, software
3270 * distributed under the License is distributed on an "AS IS" BASIS,
3271 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3272 * See the License for the specific language governing permissions and
3273 * limitations under the License.
3274 */class qS{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new qS(this.firestore,e,this._query)}}class Hi{constructor(e,n,r){this.converter=n,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Y0(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new Hi(this.firestore,e,this._key)}}class Y0 extends qS{constructor(e,n,r){super(e,n,TS(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new Hi(this.firestore,null,new lt(e))}withConverter(e){return new Y0(this.firestore,e,this._path)}}function GS(t,e,...n){if(t=Xs(t),arguments.length===1&&(e=RH.newId()),Hwe("doc","path",e),t instanceof WS){const r=Xn.fromString(e,...n);return tk(r),new Hi(t,null,new lt(r))}{if(!(t instanceof Hi||t instanceof Y0))throw new at(Te.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(Xn.fromString(e,...n));return tk(r),new Hi(t.firestore,t instanceof Y0?t.converter:null,new lt(r))}}/**
3275 * @license
3276 * Copyright 2020 Google LLC
3277 *
3278 * Licensed under the Apache License, Version 2.0 (the "License");
3279 * you may not use this file except in compliance with the License.
3280 * You may obtain a copy of the License at
3281 *
3282 *   http://www.apache.org/licenses/LICENSE-2.0
3283 *
3284 * Unless required by applicable law or agreed to in writing, software
3285 * distributed under the License is distributed on an "AS IS" BASIS,
3286 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3287 * See the License for the specific language governing permissions and
3288 * limitations under the License.
3289 */const sk="AsyncQueue";class ik{constructor(e=Promise.resolve()){this.Qu=[],this.$u=!1,this.Uu=[],this.Ku=null,this.Wu=!1,this.Gu=!1,this.zu=[],this.y_=new wU(this,"async_queue_retry"),this.ju=()=>{const r=$7();r&&We(sk,"Visibility state changed to "+r.visibilityState),this.y_.A_()},this.Hu=e;const n=$7();n&&typeof n.addEventListener=="function"&&n.addEventListener("visibilitychange",this.ju)}get isShuttingDown(){return this.$u}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Ju(),this.Yu(e)}enterRestrictedMode(e){if(!this.$u){this.$u=!0,this.Gu=e||!1;const n=$7();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this.ju)}}enqueue(e){if(this.Ju(),this.$u)return new Promise(()=>{});const n=new cu;return this.Yu(()=>this.$u&&this.Gu?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)).then(()=>n.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Qu.push(e),this.Zu()))}async Zu(){if(this.Qu.length!==0){try{await this.Qu[0](),this.Qu.shift(),this.y_.reset()}catch(e){if(!Om(e))throw e;We(sk,"Operation failed with retryable error: "+e)}this.Qu.length>0&&this.y_.E_(()=>this.Zu())}}Yu(e){const n=this.Hu.then(()=>(this.Wu=!0,e().catch(r=>{throw this.Ku=r,this.Wu=!1,zl("INTERNAL UNHANDLED ERROR: ",ok(r)),r}).then(r=>(this.Wu=!1,r))));return this.Hu=n,n}enqueueAfterDelay(e,n,r){this.Ju(),this.zu.indexOf(e)>-1&&(n=0);const s=LS.createAndSchedule(this,e,n,r,i=>this.Xu(i));return this.Uu.push(s),s}Ju(){this.Ku&&gt(47125,{ec:ok(this.Ku)})}verifyOperationInProgress(){}async tc(){let e;do e=this.Hu,await e;while(e!==this.Hu)}nc(e){for(const n of this.Uu)if(n.timerId===e)return!0;return!1}rc(e){return this.tc().then(()=>{this.Uu.sort((n,r)=>n.targetTimeMs-r.targetTimeMs);for(const n of this.Uu)if(n.skipDelay(),e!=="all"&&n.timerId===e)break;return this.tc()})}sc(e){this.zu.push(e)}Xu(e){const n=this.Uu.indexOf(e);this.Uu.splice(n,1)}}function ok(t){let e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+`
3290`+t.stack),e}class KS extends WS{constructor(e,n,r,s){super(e,n,r,s),this.type="firestore",this._queue=new ik,this._persistenceKey=s?.name||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new ik(e),this._firestoreClient=void 0,await e}}}function qwe(t,e){const n=typeof t=="object"?t:OB(),r=typeof t=="string"?t:m4,s=cS(n,"firestore").getImmediate({identifier:r});if(!s._initialized){const i=Yve("firestore");i&&Wwe(s,...i)}return s}function LU(t){if(t._terminated)throw new at(Te.FAILED_PRECONDITION,"The client has already been terminated.");return t._firestoreClient||Gwe(t),t._firestoreClient}function Gwe(t){var e,n,r;const s=t._freezeSettings(),i=function(a,c,d,p){return new d6e(a,c,d,p.host,p.ssl,p.experimentalForceLongPolling,p.experimentalAutoDetectLongPolling,FU(p.experimentalLongPollingOptions),p.useFetchStreams)}(t._databaseId,((e=t._app)===null||e===void 0?void 0:e.options.appId)||"",t._persistenceKey,s);t._componentsProvider||!((n=s.localCache)===null||n===void 0)&&n._offlineComponentProvider&&(!((r=s.localCache)===null||r===void 0)&&r._onlineComponentProvider)&&(t._componentsProvider={_offline:s.localCache._offlineComponentProvider,_online:s.localCache._onlineComponentProvider}),t._firestoreClient=new jwe(t._authCredentials,t._appCheckCredentials,t._queue,i,t._componentsProvider&&function(a){const c=a?._online.build();return{_offline:a?._offline.build(c),_online:c}}(t._componentsProvider))}/**
3291 * @license
3292 * Copyright 2020 Google LLC
3293 *
3294 * Licensed under the Apache License, Version 2.0 (the "License");
3295 * you may not use this file except in compliance with the License.
3296 * You may obtain a copy of the License at
3297 *
3298 *   http://www.apache.org/licenses/LICENSE-2.0
3299 *
3300 * Unless required by applicable law or agreed to in writing, software
3301 * distributed under the License is distributed on an "AS IS" BASIS,
3302 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3303 * See the License for the specific language governing permissions and
3304 * limitations under the License.
3305 */class sm{constructor(e){this._byteString=e}static fromBase64String(e){try{return new sm(Zr.fromBase64String(e))}catch(n){throw new at(Te.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new sm(Zr.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}/**
3306 * @license
3307 * Copyright 2020 Google LLC
3308 *
3309 * Licensed under the Apache License, Version 2.0 (the "License");
3310 * you may not use this file except in compliance with the License.
3311 * You may obtain a copy of the License at
3312 *
3313 *   http://www.apache.org/licenses/LICENSE-2.0
3314 *
3315 * Unless required by applicable law or agreed to in writing, software
3316 * distributed under the License is distributed on an "AS IS" BASIS,
3317 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3318 * See the License for the specific language governing permissions and
3319 * limitations under the License.
3320 */class YS{constructor(...e){for(let n=0;n<e.length;++n)if(e[n].length===0)throw new at(Te.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Yr(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}/**
3321 * @license
3322 * Copyright 2020 Google LLC
3323 *
3324 * Licensed under the Apache License, Version 2.0 (the "License");
3325 * you may not use this file except in compliance with the License.
3326 * You may obtain a copy of the License at
3327 *
3328 *   http://www.apache.org/licenses/LICENSE-2.0
3329 *
3330 * Unless required by applicable law or agreed to in writing, software
3331 * distributed under the License is distributed on an "AS IS" BASIS,
3332 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3333 * See the License for the specific language governing permissions and
3334 * limitations under the License.
3335 */class zU{constructor(e){this._methodName=e}}/**
3336 * @license
3337 * Copyright 2017 Google LLC
3338 *
3339 * Licensed under the Apache License, Version 2.0 (the "License");
3340 * you may not use this file except in compliance with the License.
3341 * You may obtain a copy of the License at
3342 *
3343 *   http://www.apache.org/licenses/LICENSE-2.0
3344 *
3345 * Unless required by applicable law or agreed to in writing, software
3346 * distributed under the License is distributed on an "AS IS" BASIS,
3347 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3348 * See the License for the specific language governing permissions and
3349 * limitations under the License.
3350 */class QS{constructor(e,n){if(!isFinite(e)||e<-90||e>90)throw new at(Te.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(n)||n<-180||n>180)throw new at(Te.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+n);this._lat=e,this._long=n}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return Lt(this._lat,e._lat)||Lt(this._long,e._long)}}/**
3351 * @license
3352 * Copyright 2024 Google LLC
3353 *
3354 * Licensed under the Apache License, Version 2.0 (the "License");
3355 * you may not use this file except in compliance with the License.
3356 * You may obtain a copy of the License at
3357 *
3358 *   http://www.apache.org/licenses/LICENSE-2.0
3359 *
3360 * Unless required by applicable law or agreed to in writing, software
3361 * distributed under the License is distributed on an "AS IS" BASIS,
3362 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3363 * See the License for the specific language governing permissions and
3364 * limitations under the License.
3365 */class XS{constructor(e){this._values=(e||[]).map(n=>n)}toArray(){return this._values.map(e=>e)}isEqual(e){return function(r,s){if(r.length!==s.length)return!1;for(let i=0;i<r.length;++i)if(r[i]!==s[i])return!1;return!0}(this._values,e._values)}}/**
3366 * @license
3367 * Copyright 2017 Google LLC
3368 *
3369 * Licensed under the Apache License, Version 2.0 (the "License");
3370 * you may not use this file except in compliance with the License.
3371 * You may obtain a copy of the License at
3372 *
3373 *   http://www.apache.org/licenses/LICENSE-2.0
3374 *
3375 * Unless required by applicable law or agreed to in writing, software
3376 * distributed under the License is distributed on an "AS IS" BASIS,
3377 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3378 * See the License for the specific language governing permissions and
3379 * limitations under the License.
3380 */const Kwe=/^__.*__$/;class Ywe{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return this.fieldMask!==null?new kf(e,this.data,this.fieldMask,n,this.fieldTransforms):new tg(e,this.data,n,this.fieldTransforms)}}function VU(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw gt(40011,{oc:t})}}class ZS{constructor(e,n,r,s,i,o){this.settings=e,this.databaseId=n,this.serializer=r,this.ignoreUndefinedProperties=s,i===void 0&&this._c(),this.fieldTransforms=i||[],this.fieldMask=o||[]}get path(){return this.settings.path}get oc(){return this.settings.oc}ac(e){return new ZS(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}uc(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),s=this.ac({path:r,cc:!1});return s.lc(e),s}hc(e){var n;const r=(n=this.path)===null||n===void 0?void 0:n.child(e),s=this.ac({path:r,cc:!1});return s._c(),s}Pc(e){return this.ac({path:void 0,cc:!0})}Tc(e){return C4(e,this.settings.methodName,this.settings.Ic||!1,this.path,this.settings.Ec)}contains(e){return this.fieldMask.find(n=>e.isPrefixOf(n))!==void 0||this.fieldTransforms.find(n=>e.isPrefixOf(n.field))!==void 0}_c(){if(this.path)for(let e=0;e<this.path.length;e++)this.lc(this.path.get(e))}lc(e){if(e.length===0)throw this.Tc("Document fields must not be empty");if(VU(this.oc)&&Kwe.test(e))throw this.Tc('Document fields cannot begin and end with "__"')}}class Qwe{constructor(e,n,r){this.databaseId=e,this.ignoreUndefinedProperties=n,this.serializer=r||Z5(e)}dc(e,n,r,s=!1){return new ZS({oc:e,methodName:n,Ec:r,path:Yr.emptyPath(),cc:!1,Ic:s},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function Xwe(t){const e=t._freezeSettings(),n=Z5(t._databaseId);return new Qwe(t._databaseId,!!e.ignoreUndefinedProperties,n)}function Zwe(t,e,n,r,s,i={}){const o=t.dc(i.merge||i.mergeFields?2:0,e,n,s);WU("Data must be an object, but it was:",o,r);const a=HU(r,o);let c,d;if(i.merge)c=new Ro(o.fieldMask),d=o.fieldTransforms;else if(i.mergeFields){const p=[];for(const m of i.mergeFields){const v=Jwe(e,m,n);if(!o.contains(v))throw new at(Te.INVALID_ARGUMENT,`Field '${v}' is specified in your field mask but missing from your input data.`);t7e(p,v)||p.push(v)}c=new Ro(p),d=o.fieldTransforms.filter(m=>c.covers(m.field))}else c=null,d=o.fieldTransforms;return new Ywe(new Li(a),c,d)}function BU(t,e){if(UU(t=Xs(t)))return WU("Unsupported field value:",e,t),HU(t,e);if(t instanceof zU)return function(r,s){if(!VU(s.oc))throw s.Tc(`${r._methodName}() can only be used with update() and set()`);if(!s.path)throw s.Tc(`${r._methodName}() is not currently supported inside arrays`);const i=r._toFieldTransform(s);i&&s.fieldTransforms.push(i)}(t,e),null;if(t===void 0&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.cc&&e.oc!==4)throw e.Tc("Nested arrays are not supported");return function(r,s){const i=[];let o=0;for(const a of r){let c=BU(a,s.Pc(o));c==null&&(c={nullValue:"NULL_VALUE"}),i.push(c),o++}return{arrayValue:{values:i}}}(t,e)}return function(r,s){if((r=Xs(r))===null)return{nullValue:"NULL_VALUE"};if(typeof r=="number")return O6e(s.serializer,r);if(typeof r=="boolean")return{booleanValue:r};if(typeof r=="string")return{stringValue:r};if(r instanceof Date){const i=Tr.fromDate(r);return{timestampValue:_4(s.serializer,i)}}if(r instanceof Tr){const i=new Tr(r.seconds,1e3*Math.floor(r.nanoseconds/1e3));return{timestampValue:_4(s.serializer,i)}}if(r instanceof QS)return{geoPointValue:{latitude:r.latitude,longitude:r.longitude}};if(r instanceof sm)return{bytesValue:cU(s.serializer,r._byteString)};if(r instanceof Hi){const i=s.databaseId,o=r.firestore._databaseId;if(!o.isEqual(i))throw s.Tc(`Document reference is for database ${o.projectId}/${o.database} but should be for database ${i.projectId}/${i.database}`);return{referenceValue:RS(r.firestore._databaseId||s.databaseId,r._key.path)}}if(r instanceof XS)return function(o,a){return{mapValue:{fields:{[jH]:{stringValue:LH},[g4]:{arrayValue:{values:o.toArray().map(d=>{if(typeof d!="number")throw a.Tc("VectorValues must only contain numeric values.");return AS(a.serializer,d)})}}}}}}(r,s);throw s.Tc(`Unsupported field value: ${US(r)}`)}(t,e)}function HU(t,e){const n={};return MH(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):Nf(t,(r,s)=>{const i=BU(s,e.uc(r));i!=null&&(n[r]=i)}),{mapValue:{fields:n}}}function UU(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof Tr||t instanceof QS||t instanceof sm||t instanceof Hi||t instanceof zU||t instanceof XS)}
3380function WU(t,e,n){if(!UU(n)||!function(s){return typeof s=="object"&&s!==null&&(Object.getPrototypeOf(s)===Object.prototype||Object.getPrototypeOf(s)===null)}(n)){const r=US(n);throw r==="an object"?e.Tc(t+" a custom object"):e.Tc(t+" "+r)}}function Jwe(t,e,n){if((e=Xs(e))instanceof YS)return e._internalPath;if(typeof e=="string")return qU(t,e);throw C4("Field path arguments must be of type string or ",t,!1,void 0,n)}const e7e=new RegExp("[~\\*/\\[\\]]");function qU(t,e,n){if(e.search(e7e)>=0)throw C4(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new YS(...e.split("."))._internalPath}catch{throw C4(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function C4(t,e,n,r,s){const i=r&&!r.isEmpty(),o=s!==void 0;let a=`Function ${e}() called with invalid data`;n&&(a+=" (via `toFirestore()`)"),a+=". ";let c="";return(i||o)&&(c+=" (found",i&&(c+=` in field ${r}`),o&&(c+=` in document ${s}`),c+=")"),new at(Te.INVALID_ARGUMENT,a+t+c)}function t7e(t,e){return t.some(n=>n.isEqual(e))}/**
3381 * @license
3382 * Copyright 2020 Google LLC
3383 *
3384 * Licensed under the Apache License, Version 2.0 (the "License");
3385 * you may not use this file except in compliance with the License.
3386 * You may obtain a copy of the License at
3387 *
3388 *   http://www.apache.org/licenses/LICENSE-2.0
3389 *
3390 * Unless required by applicable law or agreed to in writing, software
3391 * distributed under the License is distributed on an "AS IS" BASIS,
3392 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3393 * See the License for the specific language governing permissions and
3394 * limitations under the License.
3395 */class GU{constructor(e,n,r,s,i){this._firestore=e,this._userDataWriter=n,this._key=r,this._document=s,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new Hi(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const e=new n7e(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const n=this._document.data.field(KU("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n)}}}class n7e extends GU{data(){return super.data()}}function KU(t,e){return typeof e=="string"?qU(t,e):e instanceof YS?e._internalPath:e._delegate._internalPath}class r7e{convertValue(e,n="none"){switch(wu(e)){case 0:return null;case 1:return e.booleanValue;case 2:return ir(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,n);case 5:return e.stringValue;case 6:return this.convertBytes(xu(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,n);case 11:return this.convertObject(e.mapValue,n);case 10:return this.convertVectorValue(e.mapValue);default:throw gt(62114,{value:e})}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const r={};return Nf(e,(s,i)=>{r[s]=this.convertValue(i,n)}),r}convertVectorValue(e){var n,r,s;const i=(s=(r=(n=e.fields)===null||n===void 0?void 0:n[g4].arrayValue)===null||r===void 0?void 0:r.values)===null||s===void 0?void 0:s.map(o=>ir(o.doubleValue));return new XS(i)}convertGeoPoint(e){return new QS(ir(e.latitude),ir(e.longitude))}convertArray(e,n){return(e.values||[]).map(r=>this.convertValue(r,n))}convertServerTimestamp(e,n){switch(n){case"previous":const r=W5(e);return r==null?null:this.convertValue(r,n);case"estimate":return this.convertTimestamp(H0(e));default:return null}}convertTimestamp(e){const n=yu(e);return new Tr(n.seconds,n.nanos)}convertDocumentKey(e,n){const r=Xn.fromString(e);fn(mU(r),9688,{name:e});const s=new U0(r.get(1),r.get(3)),i=new lt(r.popFirst(5));return s.isEqual(n)||zl(`Document ${i} contains a document reference within a different database (${s.projectId}/${s.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),i}}/**
3396 * @license
3397 * Copyright 2020 Google LLC
3398 *
3399 * Licensed under the Apache License, Version 2.0 (the "License");
3400 * you may not use this file except in compliance with the License.
3401 * You may obtain a copy of the License at
3402 *
3403 *   http://www.apache.org/licenses/LICENSE-2.0
3404 *
3405 * Unless required by applicable law or agreed to in writing, software
3406 * distributed under the License is distributed on an "AS IS" BASIS,
3407 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3408 * See the License for the specific language governing permissions and
3409 * limitations under the License.
3410 */function s7e(t,e,n){let r;return r=t?t.toFirestore(e):e,r}/**
3411 * @license
3412 * Copyright 2020 Google LLC
3413 *
3414 * Licensed under the Apache License, Version 2.0 (the "License");
3415 * you may not use this file except in compliance with the License.
3416 * You may obtain a copy of the License at
3417 *
3418 *   http://www.apache.org/licenses/LICENSE-2.0
3419 *
3420 * Unless required by applicable law or agreed to in writing, software
3421 * distributed under the License is distributed on an "AS IS" BASIS,
3422 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3423 * See the License for the specific language governing permissions and
3424 * limitations under the License.
3425 */class i7e{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class YU extends GU{constructor(e,n,r,s,i,o){super(e,n,r,s,o),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new o7e(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(n,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,n={}){if(this._document){const r=this._document.data.field(KU("DocumentSnapshot.get",e));if(r!==null)return this._userDataWriter.convertValue(r,n.serverTimestamps)}}}class o7e extends YU{data(e={}){return super.data(e)}}/**
3426 * @license
3427 * Copyright 2020 Google LLC
3428 *
3429 * Licensed under the Apache License, Version 2.0 (the "License");
3430 * you may not use this file except in compliance with the License.
3431 * You may obtain a copy of the License at
3432 *
3433 *   http://www.apache.org/licenses/LICENSE-2.0
3434 *
3435 * Unless required by applicable law or agreed to in writing, software
3436 * distributed under the License is distributed on an "AS IS" BASIS,
3437 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3438 * See the License for the specific language governing permissions and
3439 * limitations under the License.
3440 */function QU(t){t=K0(t,Hi);const e=K0(t.firestore,KS);return Bwe(LU(e),t._key).then(n=>u7e(e,t,n))}class a7e extends r7e{constructor(e){super(),this.firestore=e}convertBytes(e){return new sm(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new Hi(this.firestore,null,n)}}function l7e(t,e,n){t=K0(t,Hi);const r=K0(t.firestore,KS),s=s7e(t.converter,e);return c7e(r,[Zwe(Xwe(r),"setDoc",t._key,s,t.converter!==null,n).toMutation(t._key,Tl.none())])}function c7e(t,e){return function(r,s){const i=new cu;return r.asyncQueue.enqueueAndForget(async()=>Iwe(await zwe(r),s,i)),i.promise}(LU(t),e)}function u7e(t,e,n){const r=n.docs.get(e._key),s=new a7e(t);return new YU(t,s,e._key,r,new i7e(n.hasPendingWrites,n.fromCache),e.converter)}(function(e,n=!0){(function(s){km=s})(Nm),Xp(new lf("firestore",(r,{instanceIdentifier:s,options:i})=>{const o=r.getProvider("app").getImmediate(),a=new KS(new K5e(r.getProvider("auth-internal")),new X5e(o,r.getProvider("app-check-internal")),function(d,p){if(!Object.prototype.hasOwnProperty.apply(d.options,["projectId"]))throw new at(Te.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new U0(d.options.projectId,p)}(o,s),o);return i=Object.assign({useFetchStreams:n},i),a._setSettings(i),a},"PUBLIC").setMultipleInstances(!0)),au(fM,hM,e),au(fM,hM,"esm2017")})();const d7e={apiKey:"AIzaSyCPuZek1oPQRh37rBIRrkaWtjjnuv9MVJ8",authDomain:"maifud-dde84.firebaseapp.com",projectId:"maifud-dde84",storageBucket:"maifud-dde84.appspot.com",messagingSenderId:"260188908096",appId:"1:260188908096:web:233ad452236ea3f6520da5",measurementId:"G-7ML9B4BH53"},XU=DB(d7e),Bl=wH(XU),JS=qwe(XU),eC=new vl;eC.setCustomParameters({prompt:"select_account"});const t6=()=>{const[t,e]=_.useState(!0),[n,r]=_.useState(null);return _.useEffect(()=>{aH(Bl,s=>{r(s),e(!1)},()=>{throw new Error("Couldn´t get user status from firebase")},()=>{e(!1)})},[]),{user:n,isLoading:t}},ig=()=>new Promise(t=>{const e=wH(),n=aH(e,r=>{n(),t(r)})}),f7e=async(t,e)=>{try{return(await T4e(Bl,t,e)).user}catch(n){throw Error(n.message)}},ZU=async t=>(await QU(GS(JS,"users",t))).exists(),h7e=async()=>{try{const t=await yH(Bl,eC);if(!await ZU(t.user.uid))throw M4e(t)?.isNewUser?await O4e(t.user):await vS(Bl),Error("auth/google-account-not-registered");return t.user}catch(t){throw Error(t.message)}},tC=async()=>{try{localStorage.setItem(gi.REGISTER_LOCALSTORAGE_KEY,"")}catch(t){hu(t)}return vS(Bl)},JU=async(t,e)=>{const n=Lve(t,e);return l7e(GS(JS,"users",t),n)},p7e=async({registryData:t})=>{let e=!1;try{const r=(await yH(Bl,eC)).user;if(e=!0,await ZU(r.uid))throw Error("auth/google-account-already-registered");if(!r.email)throw Error("auth/google-email-required");return JU(r.uid,{...t,email:r.email,display_name:t.display_name||r.displayName||""})}catch(n){throw e&&await vS(Bl),Error(n.message)}},m7e=async({email:t,password:e,registryData:n})=>C4e(Bl,t,e).then(r=>{const s=r.user.uid;return JU(s,n)}),g7e=async()=>{const t=await ig();if(t){const e=await QU(GS(JS,"users",t.uid));return e.exists()?zve(e.data()):{}}return{}},v7e=async t=>S4e(Bl,t),Ht=async()=>{const t=await ig();let e="";return t&&(e=await t.getIdToken()),e},y7e=async()=>{const t=await ig();let e="";return t&&(e=t.uid),e},It=()=>{const t=new URLSearchParams(window.location.search);return t.get("uid")!==null?{uid:t.get("uid"),new_frontend:!0}:{new_frontend:!0}};function eW(t,e){return function(){return t.apply(e,arguments)}}const{toString:x7e}=Object.prototype,{getPrototypeOf:nC}=Object,{iterator:n6,toStringTag:tW}=Symbol,r6=(t=>e=>{const n=x7e.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Wo=t=>(t=t.toLowerCase(),e=>r6(e)===t),s6=t=>e=>typeof e===t,{isArray:Fm}=Array,Q0=s6("undefined");function w7e(t){return t!==null&&!Q0(t)&&t.constructor!==null&&!Q0(t.constructor)&&Ks(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const nW=Wo("ArrayBuffer");function _7e(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&nW(t.buffer),e}const E7e=s6("string"),Ks=s6("function"),rW=s6("number"),i6=t=>t!==null&&typeof t=="object",b7e=t=>t===!0||t===!1,oy=t=>{if(r6(t)!=="object")return!1;const e=nC(t);
vendor: 4,449 bytes, line 3440
3440return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(tW in t)&&!(n6 in t)},S7e=Wo("Date"),C7e=Wo("File"),T7e=Wo("Blob"),A7e=Wo("FileList"),I7e=t=>i6(t)&&Ks(t.pipe),P7e=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ks(t.append)&&((e=r6(t))==="formdata"||e==="object"&&Ks(t.toString)&&t.toString()==="[object FormData]"))},R7e=Wo("URLSearchParams"),[N7e,M7e,k7e,D7e]=["ReadableStream","Request","Response","Headers"].map(Wo),O7e=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function og(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),Fm(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}function sW(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const Rd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,iW=t=>!Q0(t)&&t!==Rd;function tE(){const{caseless:t}=iW(this)&&this||{},e={},n=(r,s)=>{const i=t&&sW(e,s)||s;oy(e[i])&&oy(r)?e[i]=tE(e[i],r):oy(r)?e[i]=tE({},r):Fm(r)?e[i]=r.slice():e[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&og(arguments[r],n);return e}const $7e=(t,e,n,{allOwnKeys:r}={})=>(og(e,(s,i)=>{n&&Ks(s)?t[i]=eW(s,n):t[i]=s},{allOwnKeys:r}),t),F7e=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),j7e=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},L7e=(t,e,n,r)=>{let s,i,o;const a={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)o=s[i],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&nC(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},z7e=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},V7e=t=>{if(!t)return null;if(Fm(t))return t;let e=t.length;if(!rW(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},B7e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&nC(Uint8Array)),H7e=(t,e)=>{const r=(t&&t[n6]).call(t);let s;for(;(s=r.next())&&!s.done;){const i=s.value;e.call(t,i[0],i[1])}},U7e=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},W7e=Wo("HTMLFormElement"),q7e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),ak=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),G7e=Wo("RegExp"),oW=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};og(n,(s,i)=>{let o;(o=e(s,i,t))!==!1&&(r[i]=o||s)}),Object.defineProperties(t,r)},K7e=t=>{oW(t,(e,n)=>{if(Ks(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Ks(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Y7e=(t,e)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Fm(t)?r(t):r(String(t).split(e)),n},Q7e=()=>{},X7e=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Z7e(t){return!!(t&&Ks(t.append)&&t[tW]==="FormData"&&t[n6])}const J7e=t=>{const e=new Array(10),n=(r,s)=>{if(i6(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const i=Fm(r)?[]:{};return og(r,(o,a)=>{const c=n(o,s+1);!Q0(c)&&(i[a]=c)}),e[s]=void 0,i}}return r};return n(t,0)},e8e=Wo("AsyncFunction"),t8e=t=>t&&(i6(t)||Ks(t))&&Ks(t.then)&&Ks(t.catch),aW=((t,e)=>t?setImmediate:e?((n,r)=>(Rd.addEventListener("message",({source:s,data:i})=>{s===Rd&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Rd.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ks(Rd.postMessage)),n8e=typeof queueMicrotask<"u"?queueMicrotask.bind(Rd):typeof process<"u"&&process.nextTick||aW,r8e=t=>t!=null&&Ks(t[n6]),me={isArray:Fm,isArrayBuffer:nW,isBuffer:w7e,isFormData:P7e,isArrayBufferView:_7e,isString:E7e,isNumber:rW,isBoolean:b7e,isObject:i6,isPlainObject:oy,isReadableStream:N7e,isRequest:M7e,isResponse:k7e,isHeaders:D7e,isUndefined:Q0,isDate:S7e,isFile:C7e,isBlob:T7e,isRegExp:G7e,isFunction:Ks,isStream:I7e,isURLSearchParams:R7e,isTypedArray:B7e,isFileList:A7e,forEach:og,merge:tE,extend:$7e,trim:O7e,stripBOM:F7e,inherits:j7e,toFlatObject:L7e,kindOf:r6,kindOfTest:Wo,endsWith:z7e,toArray:V7e,forEachEntry:H7e,matchAll:U7e,isHTMLF
vendor: 3,295 bytes, line 3440
3440orm:W7e,hasOwnProperty:ak,hasOwnProp:ak,reduceDescriptors:oW,freezeMethods:K7e,toObjectSet:Y7e,toCamelCase:q7e,noop:Q7e,toFiniteNumber:X7e,findKey:sW,global:Rd,isContextDefined:iW,isSpecCompliantForm:Z7e,toJSONObject:J7e,isAsyncFn:e8e,isThenable:t8e,setImmediate:aW,asap:n8e,isIterable:r8e};function Mt(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}me.inherits(Mt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:me.toJSONObject(this.config),code:this.code,status:this.status}}});const lW=Mt.prototype,cW={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{cW[t]={value:t}});Object.defineProperties(Mt,cW);Object.defineProperty(lW,"isAxiosError",{value:!0});Mt.from=(t,e,n,r,s,i)=>{const o=Object.create(lW);return me.toFlatObject(t,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),Mt.call(o,t.message,e,n,r,s),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const s8e=null;function nE(t){return me.isPlainObject(t)||me.isArray(t)}function uW(t){return me.endsWith(t,"[]")?t.slice(0,-2):t}function lk(t,e,n){return t?t.concat(e).map(function(s,i){return s=uW(s),!n&&i?"["+s+"]":s}).join(n?".":""):e}function i8e(t){return me.isArray(t)&&!t.some(nE)}const o8e=me.toFlatObject(me,{},null,function(e){return/^is[A-Z]/.test(e)});function o6(t,e,n){if(!me.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=me.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,b){return!me.isUndefined(b[C])});const r=n.metaTokens,s=n.visitor||p,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&me.isSpecCompliantForm(e);if(!me.isFunction(s))throw new TypeError("visitor must be a function");function d(E){if(E===null)return"";if(me.isDate(E))return E.toISOString();if(!c&&me.isBlob(E))throw new Mt("Blob is not supported. Use a Buffer instead.");return me.isArrayBuffer(E)||me.isTypedArray(E)?c&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function p(E,C,b){let S=E;if(E&&!b&&typeof E=="object"){if(me.endsWith(C,"{}"))C=r?C:C.slice(0,-2),E=JSON.stringify(E);else if(me.isArray(E)&&i8e(E)||(me.isFileList(E)||me.endsWith(C,"[]"))&&(S=me.toArray(E)))return C=uW(C),S.forEach(function(R,z){!(me.isUndefined(R)||R===null)&&e.append(o===!0?lk([C],z,i):o===null?C:C+"[]",d(R))}),!1}return nE(E)?!0:(e.append(lk(b,C,i),d(E)),!1)}const m=[],v=Object.assign(o8e,{defaultVisitor:p,convertValue:d,isVisitable:nE});function w(E,C){if(!me.isUndefined(E)){if(m.indexOf(E)!==-1)throw Error("Circular reference detected in "+C.join("."));m.push(E),me.forEach(E,function(S,P){(!(me.isUndefined(S)||S===null)&&s.call(e,S,me.isString(P)?P.trim():P,C,v))===!0&&w(S,C?C.concat(P):[P])}),m.pop()}}if(!me.isObject(t))throw new TypeError("data must be an object");return w(t),e}
vendor: 5,473 bytes, lines 3440-3441
3440function ck(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function rC(t,e){this._pairs=[],t&&o6(t,this,e)}const dW=rC.prototype;dW.append=function(e,n){this._pairs.push([e,n])};dW.toString=function(e){const n=e?function(r){return e.call(this,r,ck)}:ck;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function a8e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function fW(t,e,n){if(!e)return t;const r=n&&n.encode||a8e;me.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(e,n):i=me.isURLSearchParams(e)?e.toString():new rC(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class uk{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){me.forEach(this.handlers,function(r){r!==null&&e(r)})}}const hW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},l8e=typeof URLSearchParams<"u"?URLSearchParams:rC,c8e=typeof FormData<"u"?FormData:null,u8e=typeof Blob<"u"?Blob:null,d8e={isBrowser:!0,classes:{URLSearchParams:l8e,FormData:c8e,Blob:u8e},protocols:["http","https","file","blob","url","data"]},sC=typeof window<"u"&&typeof document<"u",rE=typeof navigator=="object"&&navigator||void 0,f8e=sC&&(!rE||["ReactNative","NativeScript","NS"].indexOf(rE.product)<0),h8e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",p8e=sC&&window.location.href||"http://localhost",m8e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:sC,hasStandardBrowserEnv:f8e,hasStandardBrowserWebWorkerEnv:h8e,navigator:rE,origin:p8e},Symbol.toStringTag,{value:"Module"})),cs={...m8e,...d8e};function g8e(t,e){return o6(t,new cs.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return cs.isNode&&me.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function v8e(t){return me.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function y8e(t){const e={},n=Object.keys(t);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],e[i]=t[i];return e}function pW(t){function e(n,r,s,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=i>=n.length;return o=!o&&me.isArray(s)?s.length:o,c?(me.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!me.isObject(s[o]))&&(s[o]=[]),e(n,r,s[o],i)&&me.isArray(s[o])&&(s[o]=y8e(s[o])),!a)}if(me.isFormData(t)&&me.isFunction(t.entries)){const n={};return me.forEachEntry(t,(r,s)=>{e(v8e(r),s,n,0)}),n}return null}function x8e(t,e,n){if(me.isString(t))try{return(e||JSON.parse)(t),me.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const ag={transitional:hW,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=me.isObject(e);if(i&&me.isHTMLForm(e)&&(e=new FormData(e)),me.isFormData(e))return s?JSON.stringify(pW(e)):e;if(me.isArrayBuffer(e)||me.isBuffer(e)||me.isStream(e)||me.isFile(e)||me.isBlob(e)||me.isReadableStream(e))return e;if(me.isArrayBufferView(e))return e.buffer;if(me.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return g8e(e,this.formSerializer).toString();if((a=me.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return o6(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),x8e(e)):e}],transformResponse:[function(e){const n=this.transitional||ag.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(me.isResponse(e)||me.isReadableStream(e))return e;if(e&&me.isString(e)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(a){if(o)throw a.name==="SyntaxError"?Mt.from(a,Mt.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:cs.classes.FormData,Blob:cs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};me.forEach(["delete","get","head","post","put","patch"],t=>{ag.headers[t]={}});const w8e=me.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_8e=t=>{const e={};let n,r,s;return t&&t.split(`
3441`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||e[n]&&w8e[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},dk=Symbol("internals");function F1(t){return t&&String(t).trim().toLowerCase()}function ay(t){return t===!1||t==null?t:me.isArray(t)?t.map(ay):String(t)}function E8e(t){const e=Object.create(null),n=/([^\s,;
3441=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const b8e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function j7(t,e,n,r,s){if(me.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!me.isString(e)){if(me.isString(r))return e.indexOf(r)!==-1;if(me.isRegExp(r))return r.test(e)}}function S8e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function C8e(t,e){const n=me.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,i,o){return this[r].call(this,e,s,i,o)},configurable:!0})})}let Ys=class{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function i(a,c,d){const p=F1(c);if(!p)throw new Error("header name must be a non-empty string");const m=me.findKey(s,p);(!m||s[m]===void 0||d===!0||d===void 0&&s[m]!==!1)&&(s[m||c]=ay(a))}const o=(a,c)=>me.forEach(a,(d,p)=>i(d,p,c));if(me.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(me.isString(e)&&(e=e.trim())&&!b8e(e))o(_8e(e),n);else if(me.isObject(e)&&me.isIterable(e)){let a={},c,d;for(const p of e){if(!me.isArray(p))throw TypeError("Object iterator must return a key-value pair");a[d=p[0]]=(c=a[d])?me.isArray(c)?[...c,p[1]]:[c,p[1]]:p[1]}o(a,n)}else e!=null&&i(n,e,r);return this}get(e,n){if(e=F1(e),e){const r=me.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return E8e(s);if(me.isFunction(n))return n.call(this,s,r);if(me.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=F1(e),e){const r=me.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||j7(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function i(o){if(o=F1(o),o){const a=me.findKey(r,o);a&&(!n||j7(r,r[a],a,n))&&(delete r[a],s=!0)}}return me.isArray(e)?e.forEach(i):i(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!e||j7(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const n=this,r={};return me.forEach(this,(s,i)=>{const o=me.findKey(r,i);if(o){n[o]=ay(s),delete n[i];return}const a=e?S8e(i):String(i).trim();a!==i&&delete n[i],n[a]=ay(s),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return me.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&me.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
3442`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[dk]=this[dk]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=F1(o);r[a]||(C8e(s,o),r[a]=!0)}return me.isArray(e)?e.forEach(i):i(e),this}};Ys.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);me.reduceDescriptors(Ys.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});me.freezeMethods(Ys);function L7(t,e){const n=this||ag,r=e||n,s=Ys.from(r.headers);let i=r.data;return me.forEach(t,function(a){i=a.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function mW(t){return!!(t&&t.__CANCEL__)}function jm(t,e,n){Mt.call(this,t??"canceled",Mt.ERR_CANCELED,e,n),this.name="CanceledError"}me.inherits(jm,Mt,{__CANCEL__:!0});function gW(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Mt("Request failed with status code "+n.status,[Mt.ERR_BAD_REQUEST,Mt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function T8e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function A8e(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,i=0,o;return e=e!==void 0?e:1e3,function(c){const d=Date.now(),p=r[i];o||(o=d),n[s]=c,r[s]=d;let m=i,v=0;for(;m!==s;)v+=n[m++],m=m%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),d-o<e)return;const w=p&&d-p;return w?Math.round(v*1e3/w):void 0}}function I8e(t,e){let n=0,r=1e3/e,s,i;const o=(d,p=Date.now())=>{n=p,s=null,i&&(clearTimeout(i),i=null),t.apply(null,d)};return[(...d)=>{const p=Date.now(),m=p-n;m>=r?o(d,p):(s=d,i||(i=setTimeout(()=>{i=null,o(s)},r-m)))},()=>s&&o(s)]}const T4=(t,e,n=3)=>{let r=0;const s=A8e(50,250);return I8e(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,c=o-r,d=s(c),p=o<=a;r=o;const m={loaded:o,total:a,progress:a?o/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a&&p?(a-o)/d:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(m)},n)},fk=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},hk=t=>(...e)=>me.asap(()=>t(...e)),P8e=cs.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,cs.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(cs.origin),cs.navigator&&/(msie|trident)/i.test(cs.navigator.userAgent)):()=>!0,R8e=cs.hasStandardBrowserEnv?{write(t,e,n,r,s,i){const o=[t+"="+encodeURIComponent(e)];me.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),me.
vendor: 4,715 bytes, line 3442
3442isString(r)&&o.push("path="+r),me.isString(s)&&o.push("domain="+s),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function N8e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function M8e(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function vW(t,e,n){let r=!N8e(e);return t&&(r||n==!1)?M8e(t,e):e}const pk=t=>t instanceof Ys?{...t}:t;function hf(t,e){e=e||{};const n={};function r(d,p,m,v){return me.isPlainObject(d)&&me.isPlainObject(p)?me.merge.call({caseless:v},d,p):me.isPlainObject(p)?me.merge({},p):me.isArray(p)?p.slice():p}function s(d,p,m,v){if(me.isUndefined(p)){if(!me.isUndefined(d))return r(void 0,d,m,v)}else return r(d,p,m,v)}function i(d,p){if(!me.isUndefined(p))return r(void 0,p)}function o(d,p){if(me.isUndefined(p)){if(!me.isUndefined(d))return r(void 0,d)}else return r(void 0,p)}function a(d,p,m){if(m in e)return r(d,p);if(m in t)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(d,p,m)=>s(pk(d),pk(p),m,!0)};return me.forEach(Object.keys(Object.assign({},t,e)),function(p){const m=c[p]||s,v=m(t[p],e[p],p);me.isUndefined(v)&&m!==a||(n[p]=v)}),n}const yW=t=>{const e=hf({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=e;e.headers=o=Ys.from(o),e.url=fW(vW(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(me.isFormData(n)){if(cs.hasStandardBrowserEnv||cs.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((c=o.getContentType())!==!1){const[d,...p]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];o.setContentType([d||"multipart/form-data",...p].join("; "))}}if(cs.hasStandardBrowserEnv&&(r&&me.isFunction(r)&&(r=r(e)),r||r!==!1&&P8e(e.url))){const d=s&&i&&R8e.read(i);d&&o.set(s,d)}return e},k8e=typeof XMLHttpRequest<"u",D8e=k8e&&function(t){return new Promise(function(n,r){const s=yW(t);let i=s.data;const o=Ys.from(s.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:d}=s,p,m,v,w,E;function C(){w&&w(),E&&E(),s.cancelToken&&s.cancelToken.unsubscribe(p),s.signal&&s.signal.removeEventListener("abort",p)}let b=new XMLHttpRequest;b.open(s.method.toUpperCase(),s.url,!0),b.timeout=s.timeout;function S(){if(!b)return;const R=Ys.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),O={data:!a||a==="text"||a==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:R,config:t,request:b};gW(function(D){n(D),C()},function(D){r(D),C()},O),b=null}"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(S)},b.onabort=function(){b&&(r(new Mt("Request aborted",Mt.ECONNABORTED,t,b)),b=null)},b.onerror=function(){r(new Mt("Network Error",Mt.ERR_NETWORK,t,b)),b=null},b.ontimeout=function(){let z=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const O=s.transitional||hW;s.timeoutErrorMessage&&(z=s.timeoutErrorMessage),r(new Mt(z,O.clarifyTimeoutError?Mt.ETIMEDOUT:Mt.ECONNABORTED,t,b)),b=null},i===void 0&&o.setContentType(null),"setRequestHeader"in b&&me.forEach(o.toJSON(),function(z,O){b.setRequestHeader(O,z)}),me.isUndefined(s.withCredentials)||(b.withCredentials=!!s.withCredentials),a&&a!=="json"&&(b.responseType=s.responseType),d&&([v,E]=T4(d,!0),b.addEventListener("progress",v)),c&&b.upload&&([m,w]=T4(c),b.upload.addEventListener("progress",m),b.upload.addEventListener("loadend",w)),(s.cancelToken||s.signal)&&(p=R=>{b&&(r(!R||R.type?new jm(null,t,b):R),b.abort(),b=null)},s.cancelToken&&s.cancelToken.subscribe(p),s.signal&&(s.signal.aborted?p():s.signal.addEventListener("abort",p)));const P=T8e(s.url);if(P&&cs.protocols.indexOf(P)===-1){r(new Mt("Unsupported protocol "+P+":",Mt.ERR_BAD_REQUEST,t));return}b.send(i||null)})},O8e=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const i=function(d){if(!s){s=!0,a();const p=d instanceof Error?d:this.reason;r.abort(p instanceof Mt?p:new jm(p instanceof Error?p.message:p)
vendor: 5,476 bytes, lines 3442-3444
3442)}};let o=e&&setTimeout(()=>{o=null,i(new Mt(`timeout ${e} of ms exceeded`,Mt.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),t=null)};t.forEach(d=>d.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>me.asap(a),c}},$8e=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},F8e=async function*(t,e){for await(const n of j8e(t))yield*$8e(n,e)},j8e=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},mk=(t,e,n,r)=>{const s=F8e(t,e);let i=0,o,a=c=>{o||(o=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:p}=await s.next();if(d){a(),c.close();return}let m=p.byteLength;if(n){let v=i+=m;n(v)}c.enqueue(new Uint8Array(p))}catch(d){throw a(d),d}},cancel(c){return a(c),s.return()}},{highWaterMark:2})},a6=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xW=a6&&typeof ReadableStream=="function",L8e=a6&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),wW=(t,...e)=>{try{return!!t(...e)}catch{return!1}},z8e=xW&&wW(()=>{let t=!1;const e=new Request(cs.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),gk=64*1024,sE=xW&&wW(()=>me.isReadableStream(new Response("").body)),A4={stream:sE&&(t=>t.body)};a6&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!A4[e]&&(A4[e]=me.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new Mt(`Response type '${e}' is not supported`,Mt.ERR_NOT_SUPPORT,r)})})})(new Response);const V8e=async t=>{if(t==null)return 0;if(me.isBlob(t))return t.size;if(me.isSpecCompliantForm(t))return(await new Request(cs.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(me.isArrayBufferView(t)||me.isArrayBuffer(t))return t.byteLength;if(me.isURLSearchParams(t)&&(t=t+""),me.isString(t))return(await L8e(t)).byteLength},B8e=async(t,e)=>{const n=me.toFiniteNumber(t.getContentLength());return n??V8e(e)},H8e=a6&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:i,timeout:o,onDownloadProgress:a,onUploadProgress:c,responseType:d,headers:p,withCredentials:m="same-origin",fetchOptions:v}=yW(t);d=d?(d+"").toLowerCase():"text";let w=O8e([s,i&&i.toAbortSignal()],o),E;const C=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let b;try{if(c&&z8e&&n!=="get"&&n!=="head"&&(b=await B8e(p,r))!==0){let O=new Request(e,{method:"POST",body:r,duplex:"half"}),F;if(me.isFormData(r)&&(F=O.headers.get("content-type"))&&p.setContentType(F),O.body){const[D,I]=fk(b,T4(hk(c)));r=mk(O.body,gk,D,I)}}me.isString(m)||(m=m?"include":"omit");const S="credentials"in Request.prototype;E=new Request(e,{...v,signal:w,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:S?m:void 0});let P=await fetch(E);const R=sE&&(d==="stream"||d==="response");if(sE&&(a||R&&C)){const O={};["status","statusText","headers"].forEach(T=>{O[T]=P[T]});const F=me.toFiniteNumber(P.headers.get("content-length")),[D,I]=a&&fk(F,T4(hk(a),!0))||[];P=new Response(mk(P.body,gk,D,()=>{I&&I(),C&&C()}),O)}d=d||"text";let z=await A4[me.findKey(A4,d)||"text"](P,t);return!R&&C&&C(),await new Promise((O,F)=>{gW(O,F,{data:z,headers:Ys.from(P.headers),status:P.status,statusText:P.statusText,config:t,request:E})})}catch(S){throw C&&C(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new Mt("Network Error",Mt.ERR_NETWORK,t,E),{cause:S.cause||S}):Mt.from(S,S&&S.code,t,E)}}),iE={http:s8e,xhr:D8e,fetch:H8e};me.forEach(iE,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const vk=t=>`- ${t}`,U8e=t=>me.isFunction(t)||t===null||t===!1,_W={getAdapter:t=>{t=me.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let i=0;i<e;i++){n=t[i];let o;if(r=n,!U8e(n)&&(r=iE[(o=String(n)).toLowerCase()],r===void 0))throw new Mt(`Unknown adapter '${o}'`);if(r)break;s[o||"#"+i]=r}if(!r){const i=Object.entries(s).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since :
3443`+i.map(vk).join(`
3444`):" "+vk(i[0]):"as no adapter specified";throw new Mt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:iE};function z7(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new jm(null,t)}function yk(t){return z7(t),t.headers=Ys.from(t.headers),t.data=L7.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),_W.getAdapter(t.adapter||ag.adapter)(t).then(function(r){return z7(t),r.data=L7.call(t,t.transformResponse,r),r.headers=Ys.from(r.headers),r},function(r){return mW(r)||(z7(t),r&&r.response&&(r.response.data=L7.call(t,t.transformResponse,r.response),r.response.headers=Ys.from(r.response.headers))),Promise.reject(r)})}const EW="1.9.0",l6={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{l6[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const xk={};l6.transitional=function(e,n,r){function s(i,o){return"[Axios v"+EW+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>
vendor: 4,476 bytes, lines 3444-3445
3444{if(e===!1)throw new Mt(s(o," has been removed"+(n?" in "+n:"")),Mt.ERR_DEPRECATED);return n&&!xk[o]&&(xk[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,a):!0}};l6.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function W8e(t,e,n){if(typeof t!="object")throw new Mt("options must be an object",Mt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const i=r[s],o=e[i];if(o){const a=t[i],c=a===void 0||o(a,i,t);if(c!==!0)throw new Mt("option "+i+" must be "+c,Mt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Mt("Unknown option "+i,Mt.ERR_BAD_OPTION)}}const ly={assertOptions:W8e,validators:l6},oa=ly.validators;let qd=class{constructor(e){this.defaults=e||{},this.interceptors={request:new uk,response:new uk}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
3445`+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=hf(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&ly.assertOptions(r,{silentJSONParsing:oa.transitional(oa.boolean),forcedJSONParsing:oa.transitional(oa.boolean),clarifyTimeoutError:oa.transitional(oa.boolean)},!1),s!=null&&(me.isFunction(s)?n.paramsSerializer={serialize:s}:ly.assertOptions(s,{encode:oa.function,serialize:oa.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ly.assertOptions(n,{baseUrl:oa.spelling("baseURL"),withXsrfToken:oa.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&me.merge(i.common,i[n.method]);i&&me.forEach(["delete","get","head","post","put","patch","common"],E=>{delete i[E]}),n.headers=Ys.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(n)===!1||(c=c&&C.synchronous,a.unshift(C.fulfilled,C.rejected))});const d=[];this.interceptors.response.forEach(function(C){d.push(C.fulfilled,C.rejected)});let p,m=0,v;if(!c){const E=[yk.bind(this),void 0];for(E.unshift.apply(E,a),E.push.apply(E,d),v=E.length,p=Promise.resolve(n);m<v;)p=p.then(E[m++],E[m++]);return p}v=a.length;let w=n;for(m=0;m<v;){const E=a[m++],C=a[m++];try{w=E(w)}catch(b){C.call(this,b);break}}try{p=yk.call(this,w)}catch(E){return Promise.reject(E)}for(m=0,v=d.length;m<v;)p=p.then(d[m++],d[m++]);return p}getUri(e){e=hf(this.defaults,e);const n=vW(e.baseURL,e.url,e.allowAbsoluteUrls);return fW(n,e.params,e.paramsSerializer)}};me.forEach(["delete","get","head","options"],function(e){qd.prototype[e]=function(n,r){return this.request(hf(r||{},{method:e,url:n,data:(r||{}).data}))}});me.forEach(["post","put","patch"],function(e){function n(r){return function(i,o,a){return this.request(hf(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}qd.prototype[e]=n(),qd.prototype[e+"Form"]=n(!0)});let q8e=class bW{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},e(function(i,o,a){r.reason||(r.reason=new jm(i,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new bW(function(s){e=s}),cancel:e}}};function G8e(t){return function(n){return t.apply(null,n)}}function K8e(t){return me.isObject(t)&&t.isAxiosError===!0}const oE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
3445setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oE).forEach(([t,e])=>{oE[e]=t});function SW(t){const e=new qd(t),n=eW(qd.prototype.request,e);return me.extend(n,qd.prototype,e,{allOwnKeys:!0}),me.extend(n,e,null,{allOwnKeys:!0}
3445),n.create=function(s){return SW(hf(t,s))},n}const Ge=SW(ag);Ge.Axios=qd;Ge.CanceledError=jm;Ge.CancelToken=q8e;Ge.isCancel=mW;Ge.VERSION=EW;Ge.toFormData=o6;Ge.AxiosError=Mt;Ge.Cancel=Ge.CanceledError;Ge.all=function(e){return Promise.all(e)};Ge.spread=G8e;Ge.isAxiosError=K8e;Ge.mergeConfig=hf;Ge.AxiosHeaders=Ys;Ge.formToJSON=t=>pW(me.isHTMLForm(t)?new FormData(t):t);Ge.getAdapter=_W.getAdapter;Ge.HttpStatusCode=oE;Ge.default=Ge;const{Axios:AQe,AxiosError:IQe,CanceledError:PQe,isCancel:RQe,CancelToken:NQe,VERSION:MQe,all:kQe,Cancel:DQe,isAxiosError:OQe,spread:$Qe,toFormData:FQe,AxiosHeaders:jQe,HttpStatusCode:LQe,formToJSON:zQe,getAdapter:VQe,mergeConfig:BQe}=Ge,Gt=gi?.BACKEND_URL,Y8e=t=>Ge.get(`${Gt}/api/v1/initial_wizard/address${t?`?ref=${t}`:""}`),Q8e=async()=>{const t=await Ht();return Ge.get(`${Gt}/api/v1/preferences/user_profile`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},X8e=async t=>{const e=await Ht();return Ge.post(`${Gt}/api/v1/preferences/user_profile`,t,{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},Z8e=({promo_code:t,referrer_code:e,partnership_data:n})=>Ge.get(`${Gt}/api/v1/initial_wizard/subscriptions`,{params:{promo_code:t,referrer_code:e,partnership_data:n,...It()}}),J8e=async t=>Ge.post(`${Gt}/api/v1/initial_wizard/frecuency`,{...t},{params:{...It()}}),e_e=async()=>{const t=await Ht();return Ge.get(`${Gt}/api/v1/frontpages/home`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},t_e=async()=>Ge.get(`${Gt}/api/v1/frontpages/subscriptions`,{params:{...It()}}),n_e=async()=>{const t=await Ht();return Ge.get(`${Gt}/api/v1/preferences/user_payment_methods/list`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},r_e=async t=>{const e=await Ht();return Ge.post(`${Gt}/api/v1/preferences/user_payment_methods/update`,{payment_method_id:t},{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},s_e=async t=>{const e=await Ht();return Ge.post(`${Gt}/api/v1/preferences/user_payment_methods/delete`,{payment_method_id:t},{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},i_e=async t=>{const e=await Ht();return Ge.get(`${Gt}/api/v1/initial_wizard/checkoutV2`,{headers:{Authorization:`Bearer ${e}`},params:{...t,...It()}})},o_e=async t=>{const e=await Ht();return Ge.get(`${Gt}/api/v1/resume_wizard/checkout`,{headers:{Authorization:`Bearer ${e}`},params:{...t,...It()}})},a_e=async t=>{const e=await Ht();return Ge.post(`${Gt}/api/v1/resume_wizard/update_register_data`,t,{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},l_e=async t=>{const e=await Ht();return Ge.get(`${Gt}/api/v1/products`,{headers:{Authorization:`Bearer ${e}`},params:{search:t,...It()}})},c_e=async()=>{const t=await Ht();return Ge.get(`${Gt}/api/v1/products/all`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},u_e=async()=>{const t=await Ht();return Ge.get(`${Gt}/api/v1/products/user`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},d_e=async()=>{const t=await Ht();return Ge.get(`${Gt}/api/v1/products/best_seller`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},f_e=async()=>{const t=await Ht();return Ge.get(`${Gt}/api/v1/preferences/menu`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},h_e=async()=>{const t=await Ht();return Ge.get(`${Gt}/b/box_suggestion/`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},p_e=async t=>{const e=await Ht();return Ge.post(`${Gt}/b/box_suggestion/`,{user_input:t},{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},m_e=t=>Ge.get(`${Gt}/m/user_referral/?referral_code=${t}`,{params:{...It()}}),g_e=async t=>{const e=await Ht();return Ge.post(`${Gt}/api/v1/preferences/cancel_subscription`,t,{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},v_e=async()=>{const t=await Ht();return Ge.get(`${Gt}/s/user_subscription_address/`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},y_e=async t=>{const e=await Ht();return Ge.post(`${Gt}/s/user_subscription_address/`,t,{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},x_e=async()=>{const t=await Ht(),e=await y7e(),n=It();return Ge.post(`${Gt}/api/v1/preferences/user_payment_methods/retry_payment`,{user_uid:n.uid?n.uid:e},{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},w_e=async t=>{const e=await Ht(),n=t?.productlessResponse;return Ge.get(`${Gt}/api/v1/boxes/latest`,{headers:{Authorization:`Bearer ${e}`},params:{...It(),productless_response:n}})},__e=async()=>{const t=await Ht();return Ge.post(`${Gt}/b/box_reset/`,void 0,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},E_e=async t=>{const e=await Ht();return Ge.post(`${Gt}/b/box_confirmation/`,t,{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},b_e=async()=>{const t=await Ht();return Ge.get(`${Gt}/api/v1/orders/v2`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},S_e=async t=>{const e=await Ht();return Ge.get(`${Gt}/api/v1/orders/v2/${t}/products`,{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},C_e=async t=>{const e=await Ht();return Ge.get(`${Gt}/api/v1/orders/v2/${t}/details`,{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},T_e=async()=>{const t=await Ht();return Ge.get(`${Gt}/api/v1/discounts/`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},A_e=async t=>Ge.post(`${Gt}/p/check/`,{partnership_data:t},{params:{...It()}}),I_e=async t=>Ge.post(`${Gt}/p/verify_email/`,t,{params:{...It()}}),P_e=async t=>Ge.post(`${Gt}/p/verify_code/`,t,{params:{...It()}}),R_e=async()=>{const t=await Ht();return Ge.get(`${Gt}/api/v1/subscriptions/status`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},iC=t=>[t,It().uid??"self"],lg=t=>vn({queryKey:["adress",t],queryFn:()=>Y8e(t)}),N_e=()=>vn({queryKey:["personal-data"],queryFn:Q8e}),CW=()=>dr({mutationFn:X8e}),M_e=()=>vn({queryKey:["subscriptions"],queryFn:t_e}),c6=({promo_code:t,referrer_code:e,partnership_data:n})=>vn({queryKey:["subscriptions-registry"],queryFn:()=>Z8e({promo_code:t,referrer_code:e,partnership_data:n})}),k_e=t=>vn({queryKey:["frecuency",JSON.stringify(t)],queryFn:()=>J8e(t)}),D_e=()=>dr({mutationFn:m7e}),O_e=()=>dr({mutationFn:p7e}),$_e=()=>dr({mutationFn:v7e}),F_e=()=>vn({queryKey:iC("user-home-data"),queryFn:e_e}),j_e=()=>vn({queryKey:["user-registry-data"],queryFn:g7e}),HQe=()=>vn({queryKey:["payment-methods"],queryFn:n_e}),L_e=t=>vn({queryKey:["checkout"],queryFn:()=>i_e(t)}),z_e=t=>vn({queryKey:["resume-checkout"],queryFn:()=>o_e(t)}),u6=()=>{const t=Zs();return dr({mutationFn:a_e,onSuccess:()=>{t.invalidateQueries({queryKey:["resume-checkout"]})}})},UQe=t=>vn({queryKey:["products",t],queryFn:()=>l_e(t),enabled:t!==void 0&&t!==""}),WQe=()=>vn({queryKey:["all","products"],queryFn:()=>c_e()}),qQe=()=>vn({queryKey:["user","products"],queryFn:()=>u_e()}),GQe=()=>vn({queryKey:["best-seller","products"],queryFn:()=>d_e()}),KQe=()=>
3445vn({queryKey:iC("user-subscription-data"),queryFn:f_e}),YQe=()=>vn({queryKey:["box-content"],queryFn:h_e}),QQe=()=>dr({mutationFn:t=>p_e(t)}),V_e=t=>vn({queryKey:["referral"],queryFn:()=>m_e(t)}),B_e=()=>dr({mutationFn:t=>g_e(t),onSuccess:()=>{}}),H_e=()=>vn({queryKey:["user-shipping-data"],queryFn:()=>v_e()}),U_e=()=>{const t=Zs();return dr({mutationFn:e=>y_e(e),onSuccess:()=>{t.invalidateQueries({queryKey:["user-shipping-data"]}),t.invalidateQueries({queryKey:["subscription-wizard-data"]})}})},XQe=()=>dr({mutationFn:x_e}),ZQe=()=>{const t=Zs();return dr({mutationFn:r_e,onSuccess:()=>{t.invalidateQueries({queryKey:["payment-methods"]})}})},JQe=()=>{const t=Zs();return dr({mutationFn:s_e,onSuccess:()=>{t.invalidateQueries({queryKey:["payment-methods"]})}})},eXe=t=>vn({queryKey:["latest-box-content",JSON.stringify(t)],queryFn:()=>w_e(t)}),tXe=()=>{const t=Zs();return dr({mutationFn:__e,onSuccess:()=>{t.invalidateQueries({queryKey:["box-content"]}),t.invalidateQueries({queryKey:["user-home-data"]}),t.invalidateQueries({queryKey:["subscription-status"]})}})},nXe=()=>{const t=Zs();return dr({mutationFn:E_e,onSuccess:()=>{t.invalidateQueries({queryKey:["box-content","user-home-data"]})}})},rXe=()=>vn({queryKey:["orders"],queryFn:b_e}),sXe=(t,e=!0)=>vn({queryKey:["orders",t],queryFn:()=>S_e(t),enabled:t!==void 0&&e}),iXe=(t,e=!0)=>vn({queryKey:["orders","details",t],queryFn:()=>C_e(t),enabled:t!==void 0&&e}),oXe=()=>vn({queryKey:["discounts"],queryFn:T_e}),aXe=()=>dr({mutationFn:A_e}),lXe=()=>dr({mutationFn:I_e}),cXe=()=>dr({mutationFn:P_e}),W_e=()=>vn({queryKey:iC("subscription-status"),queryFn:R_e}),TW=_.createContext(null),$u=()=>{const t=_.useContext(TW);if(!t)throw new Error("useRegister can't be used outside RegisterProvider");return t},AW=({children:t,saveInLocalStorage:e=!0})=>{let n="{}";try{n=localStorage.getItem(gi.REGISTER_LOCALSTORAGE_KEY)||"{}"}catch(o){hu(o)}const[r,s]=_.useState(JSON.parse(n||"{}")),i=j_e();return _.useEffect(()=>{i.data?.subscription_status&&s(i.data)},[i.data]),_.useEffect(()=>{if(e)try{localStorage.setItem(gi.REGISTER_LOCALSTORAGE_KEY,JSON.stringify(r))}catch(o){hu(o)}},[r,e]),u.jsx(TW.Provider,{value:{registryData:r,setRegistryData:s},children:i.isLoading?u.jsx("div",{className:"h-screen flex flex-col items-center justify-center",children:u.jsx(er,{message:"🍊 Cargando Maifud..."})}):t})};var tn;(function(t){t.assertEqual=s=>s;function e(s){}t.assertIs=e;function n(s){throw new Error}t.assertNever=n,t.arrayToEnum=s=>{const i={};for(const o of s)i[o]=o;return i},t.getValidEnumValues=s=>{const i=t.objectKeys(s).filter(a=>typeof s[s[a]]!="number"),o={};for(const a of i)o[a]=s[a];return t.objectValues(o)},t.objectValues=s=>t.objectKeys(s).map(function(i){return s[i]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const o in s)Object.prototype.hasOwnProperty.call(s,o)&&i.push(o);return i},t.find=(s,i)=>{for(const o of s)if(i(o))return o},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}t.joinValues=r,t.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})(tn||(tn={}));var aE;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(aE||(aE={}));const He=tn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),hl=t=>{switch(typeof t){case"undefined":return He.undefined;case"string":return He.string;case"number":return isNaN(t)?He.nan:He.number;case"boolean":return He.boolean;case"function":return He.function;case"bigint":return He.bigint;case"symbol":return He.symbol;case"object":return Array.isArray(t)?He.array:t===null?He.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?He.promise:typeof Map<"u"&&t instanceof Map?He.map:typeof Set<"u"&&t instanceof Set?He.set:typeof Date<"u"&&t instanceof Date?He.date:He.object;default:return He.unknown}}
vendor: 12,248 bytes, line 3445
3445,Se=tn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),q_e=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:");class mi extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(i){return i.message},r={_errors:[]},s=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(s);else if(o.code==="invalid_return_type")s(o.returnTypeError);else if(o.code==="invalid_arguments")s(o.argumentsError);else if(o.path.length===0)r._errors.push(n(o));else{let a=r,c=0;for(;c<o.path.length;){const d=o.path[c];c===o.path.length-1?(a[d]=a[d]||{_errors:[]},a[d]._errors.push(n(o))):a[d]=a[d]||{_errors:[]},a=a[d],c++}}};return s(this),r}static assert(e){if(!(e instanceof mi))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,tn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const s of this.issues)s.path.length>0?(n[s.path[0]]=n[s.path[0]]||[],n[s.path[0]].push(e(s))):r.push(e(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}mi.create=t=>new mi(t);const im=(t,e)=>{let n;switch(t.code){case Se.invalid_type:t.received===He.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case Se.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,tn.jsonStringifyReplacer)}`;break;case Se.unrecognized_keys:n=`Unrecognized key(s) in object: ${tn.joinValues(t.keys,", ")}`;break;case Se.invalid_union:n="Invalid input";break;case Se.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${tn.joinValues(t.options)}`;break;case Se.invalid_enum_value:n=`Invalid enum value. Expected ${tn.joinValues(t.options)}, received '${t.received}'`;break;case Se.invalid_arguments:n="Invalid function arguments";break;case Se.invalid_return_type:n="Invalid function return type";break;case Se.invalid_date:n="Invalid date";break;case Se.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:tn.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case Se.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case Se.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case Se.custom:n="Invalid input";break;case Se.invalid_intersection_types:n="Intersection results could not be merged";break;case Se.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case Se.not_finite:n="Number must be finite";break;default:n=e.defaultError,tn.assertNever(t)}return{message:n}};let IW=im;function G_e(t){IW=t}function I4(){return IW}const P4=t=>{const{data:e,path:n,errorMaps:r,issueData:s}=t,i=[...n,...s.path||[]],o={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let a="";const c=r.filter(d=>!!d).slice().reverse();for(const d of c)a=d(o,{data:e,defaultError:a}).message;return{...s,path:i,message:a}},K_e=[];function $e(t,e){const n=I4(),r=P4({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===im?void 0:im].filter(s=>!!s)});t.common.issues.push(r)}class fs{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const s of n){if(s.status==="aborted")return vt;s.status==="dirty"&&e.dirty(),r.push(s.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const s of n){const i=await s.key,o=await s.value;r.push({key:i,value:o})}return fs.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const s of n){const{key:i,value:o}=s;if(i.status==="aborted"||o.status==="aborted")return vt;i.status==="dirty"&&e.dirty(),o.status==="dirty"&&e.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||s.alwaysSet)&&(r[i.value]=o.value)}return{status:e.value,value:r}}}const vt=Object.freeze({status:"aborted"}),Qh=t=>({status:"dirty",value:t}),Is=t=>({status:"valid",value:t}),lE=t=>t.status==="aborted",cE=t=>t.status==="dirty",pf=t=>t.status==="valid",X0=t=>typeof Promise<"u"&&t instanceof Promise;function R4(t,e,n,r){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e.get(t)}function PW(t,e,n,r,s){if(typeof e=="function"?t!==e||!0:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,n),n}var et;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(et||(et={}));var J1,e0;class Da{constructor(e,n,r,s){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const wk=(t,e)=>{if(pf(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new mi(t.common.issues);return this._error=n,this._error}}};function kt(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:s}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(o,a)=>{var c,d;const{message:p}=t;return o.code==="invalid_enum_value"?{message:p??a.defaultError}:typeof a.data>"u"?{message:(c=p??r)!==null&&c!==void 0?c:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(d=p??n)!==null&&d!==void 0?d:a.defaultError}},description:s}}class $t{get description(){return this._def.description}_getType(e){return hl(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:hl(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new fs,ctx:{common:e.parent.common,data:e.data,parsedType:hl(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(X0(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){var r;const s={common:{issues:[],async:(r=n?.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:hl(e)},i=this._parseSync({data:e,path:s.path,parent:s});return wk(s,i)}"~validate"(e){var n,r;const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:hl(e)};if(!this["~standard"].async)try{const i=this._parseSync({data:e,path:[],parent:s});return pf(i)?{value:i.value}:{issues:s.common.issues}}catch(i){!((r=(n=i?.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:s}).then(i=>pf(i)?{value:i.value}:{issues:s.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:hl(e)},s=this._parse({data:e,path:r.path,parent:r}),i=await(X0(s)?s:Promise.resolve(s));return wk(r,i)}refine(e,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const o=e(s),a=()=>i.addIssue({code:Se.custom,...r(s)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(e,n){return this._refinement((r,s)=>e(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(e){return new Vo({schema:this,typeName:ht.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Sa.create(this,this._def)}nullable(){return Tu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ko.create(this)}promise(){return am.create(this,this._def)}or(e){return t2.create([this,e],this._def)}and(e){return n2.create(this,e,this._def)}transform(e){return new Vo({...kt(this._def),schema:this,typeName:ht.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new a2({...kt(this._def),innerType:this,defaultValue:n,typeName:ht.ZodDefault})}brand(){return new oC({typeName:ht.ZodBranded,type:this,...kt(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new l2({...kt(this._def),innerType:this,catchValue:n,typeName:ht.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return cg.create(this,e)}readonly(){return c2.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Y_e=/^c[^\s-]{8,}
vendor: 4,627 bytes, line 3445
3445$/i,Q_e=/^[0-9a-z]+$/,X_e=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Z_e=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,J_e=/^[a-z0-9_-]{21}$/i,eEe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,tEe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,nEe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,rEe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let V7;const sEe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iEe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,oEe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,aEe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,lEe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,cEe=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,RW="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",uEe=new RegExp(`^${RW}$`);function NW(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function dEe(t){return new RegExp(`^${NW(t)}$`)}function MW(t){let e=`${RW}T${NW(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function fEe(t,e){return!!((e==="v4"||!e)&&sEe.test(t)||(e==="v6"||!e)&&oEe.test(t))}function hEe(t,e){if(!eEe.test(t))return!1;try{const[n]=t.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||!s.typ||!s.alg||e&&s.alg!==e)}catch{return!1}}function pEe(t,e){return!!((e==="v4"||!e)&&iEe.test(t)||(e==="v6"||!e)&&aEe.test(t))}class No extends $t{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==He.string){const i=this._getOrReturnCtx(e);return $e(i,{code:Se.invalid_type,expected:He.string,received:i.parsedType}),vt}const r=new fs;let s;for(const i of this._def.checks)if(i.kind==="min")e.data.length<i.value&&(s=this._getOrReturnCtx(e,s),$e(s,{code:Se.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")e.data.length>i.value&&(s=this._getOrReturnCtx(e,s),$e(s,{code:Se.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const o=e.data.length>i.value,a=e.data.length<i.value;(o||a)&&(s=this._getOrReturnCtx(e,s),o?$e(s,{code:Se.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&$e(s,{code:Se.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")nEe.test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"email",code:Se.invalid_string,message:i.message}),r.dirty());
vendor: 5,912 bytes, line 3445
3445else if(i.kind==="emoji")V7||(V7=new RegExp(rEe,"u")),V7.test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"emoji",code:Se.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")Z_e.test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"uuid",code:Se.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")J_e.test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"nanoid",code:Se.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")Y_e.test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"cuid",code:Se.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")Q_e.test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"cuid2",code:Se.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")X_e.test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"ulid",code:Se.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),$e(s,{validation:"url",code:Se.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"regex",code:Se.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?e.data=e.data.trim():i.kind==="includes"?e.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(e,s),$e(s,{code:Se.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?e.data=e.data.toLowerCase():i.kind==="toUpperCase"?e.data=e.data.toUpperCase():i.kind==="startsWith"?e.data.startsWith(i.value)||(s=this._getOrReturnCtx(e,s),$e(s,{code:Se.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?e.data.endsWith(i.value)||(s=this._getOrReturnCtx(e,s),$e(s,{code:Se.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?MW(i).test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{code:Se.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?uEe.test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{code:Se.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?dEe(i).test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{code:Se.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?tEe.test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"duration",code:Se.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?fEe(e.data,i.version)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"ip",code:Se.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?hEe(e.data,i.alg)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"jwt",code:Se.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?pEe(e.data,i.version)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"cidr",code:Se.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?lEe.test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"base64",code:Se.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?cEe.test(e.data)||(s=this._getOrReturnCtx(e,s),$e(s,{validation:"base64url",code:Se.invalid_string,message:i.message}),r.dirty()):tn.assertNever(i);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(s=>e.test(s),{validation:n,code:Se.invalid_string,...et.errToObj(r)})}_addCheck(e){return new No({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...et.errToObj(e)})}url(e){return this._addCheck({kind:"url",...et.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...et.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...et.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...et.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...et.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...et.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...et.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...et.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...et.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...et.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...et.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...et.errToObj(e)})}datetime(e){var n,r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(n=e?.offset)!==null&&n!==void 0?n:!1,local:(r=e?.local)!==null&&r!==void 0?r:!1,...et.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...et.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...et.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...et.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...et.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...et.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...et.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...et.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...et.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...et.errToObj(n)})}nonempty(e){return this.min(1,et.errToObj(e))}trim(){return new No({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new No({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new No({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}
vendor: 30,409 bytes, line 3445
3445get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}No.create=t=>{var e;return new No({checks:[],typeName:ht.ZodString,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...kt(t)})};function mEe(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,s=n>r?n:r,i=parseInt(t.toFixed(s).replace(".","")),o=parseInt(e.toFixed(s).replace(".",""));return i%o/Math.pow(10,s)}class bu extends $t{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==He.number){const i=this._getOrReturnCtx(e);return $e(i,{code:Se.invalid_type,expected:He.number,received:i.parsedType}),vt}let r;const s=new fs;for(const i of this._def.checks)i.kind==="int"?tn.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),$e(r,{code:Se.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),$e(r,{code:Se.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),$e(r,{code:Se.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?mEe(e.data,i.value)!==0&&(r=this._getOrReturnCtx(e,r),$e(r,{code:Se.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),$e(r,{code:Se.not_finite,message:i.message}),s.dirty()):tn.assertNever(i);return{status:s.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,et.toString(n))}gt(e,n){return this.setLimit("min",e,!1,et.toString(n))}lte(e,n){return this.setLimit("max",e,!0,et.toString(n))}lt(e,n){return this.setLimit("max",e,!1,et.toString(n))}setLimit(e,n,r,s){return new bu({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:et.toString(s)}]})}_addCheck(e){return new bu({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:et.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:et.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:et.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:et.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:et.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:et.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:et.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:et.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:et.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&tn.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}bu.create=t=>new bu({checks:[],typeName:ht.ZodNumber,coerce:t?.coerce||!1,...kt(t)});class Su extends $t{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==He.bigint)return this._getInvalidInput(e);let r;const s=new fs;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?e.data<i.value:e.data<=i.value)&&(r=this._getOrReturnCtx(e,r),$e(r,{code:Se.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?e.data>i.value:e.data>=i.value)&&(r=this._getOrReturnCtx(e,r),$e(r,{code:Se.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),$e(r,{code:Se.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):tn.assertNever(i);return{status:s.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return $e(n,{code:Se.invalid_type,expected:He.bigint,received:n.parsedType}),vt}gte(e,n){return this.setLimit("min",e,!0,et.toString(n))}gt(e,n){return this.setLimit("min",e,!1,et.toString(n))}lte(e,n){return this.setLimit("max",e,!0,et.toString(n))}lt(e,n){return this.setLimit("max",e,!1,et.toString(n))}setLimit(e,n,r,s){return new Su({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:et.toString(s)}]})}_addCheck(e){return new Su({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:et.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:et.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:et.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:et.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:et.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}Su.create=t=>{var e;return new Su({checks:[],typeName:ht.ZodBigInt,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...kt(t)})};class Z0 extends $t{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==He.boolean){const r=this._getOrReturnCtx(e);return $e(r,{code:Se.invalid_type,expected:He.boolean,received:r.parsedType}),vt}return Is(e.data)}}Z0.create=t=>new Z0({typeName:ht.ZodBoolean,coerce:t?.coerce||!1,...kt(t)});class mf extends $t{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==He.date){const i=this._getOrReturnCtx(e);return $e(i,{code:Se.invalid_type,expected:He.date,received:i.parsedType}),vt}if(isNaN(e.data.getTime())){const i=this._getOrReturnCtx(e);return $e(i,{code:Se.invalid_date}),vt}const r=new fs;let s;for(const i of this._def.checks)i.kind==="min"?e.data.getTime()<i.value&&(s=this._getOrReturnCtx(e,s),$e(s,{code:Se.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?e.data.getTime()>i.value&&(s=this._getOrReturnCtx(e,s),$e(s,{code:Se.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):tn.assertNever(i);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new mf({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:et.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:et.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}mf.create=t=>new mf({checks:[],coerce:t?.coerce||!1,typeName:ht.ZodDate,...kt(t)});class N4 extends $t{_parse(e){if(this._getType(e)!==He.symbol){const r=this._getOrReturnCtx(e);return $e(r,{code:Se.invalid_type,expected:He.symbol,received:r.parsedType}),vt}return Is(e.data)}}N4.create=t=>new N4({typeName:ht.ZodSymbol,...kt(t)});class J0 extends $t{_parse(e){if(this._getType(e)!==He.undefined){const r=this._getOrReturnCtx(e);return $e(r,{code:Se.invalid_type,expected:He.undefined,received:r.parsedType}),vt}return Is(e.data)}}J0.create=t=>new J0({typeName:ht.ZodUndefined,...kt(t)});class e2 extends $t{_parse(e){if(this._getType(e)!==He.null){const r=this._getOrReturnCtx(e);return $e(r,{code:Se.invalid_type,expected:He.null,received:r.parsedType}),vt}return Is(e.data)}}e2.create=t=>new e2({typeName:ht.ZodNull,...kt(t)});class om extends $t{constructor(){super(...arguments),this._any=!0}_parse(e){return Is(e.data)}}om.create=t=>new om({typeName:ht.ZodAny,...kt(t)});class Gd extends $t{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Is(e.data)}}Gd.create=t=>new Gd({typeName:ht.ZodUnknown,...kt(t)});class Hl extends $t{_parse(e){const n=this._getOrReturnCtx(e);return $e(n,{code:Se.invalid_type,expected:He.never,received:n.parsedType}),vt}}Hl.create=t=>new Hl({typeName:ht.ZodNever,...kt(t)});class M4 extends $t{_parse(e){if(this._getType(e)!==He.undefined){const r=this._getOrReturnCtx(e);return $e(r,{code:Se.invalid_type,expected:He.void,received:r.parsedType}),vt}return Is(e.data)}}M4.create=t=>new M4({typeName:ht.ZodVoid,...kt(t)});class ko extends $t{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),s=this._def;if(n.parsedType!==He.array)return $e(n,{code:Se.invalid_type,expected:He.array,received:n.parsedType}),vt;if(s.exactLength!==null){const o=n.data.length>s.exactLength.value,a=n.data.length<s.exactLength.value;(o||a)&&($e(n,{code:o?Se.too_big:Se.too_small,minimum:a?s.exactLength.value:void 0,maximum:o?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&($e(n,{code:Se.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&($e(n,{code:Se.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>s.type._parseAsync(new Da(n,o,n.path,a)))).then(o=>fs.mergeArray(r,o));const i=[...n.data].map((o,a)=>s.type._parseSync(new Da(n,o,n.path,a)));return fs.mergeArray(r,i)}get element(){return this._def.type}min(e,n){return new ko({...this._def,minLength:{value:e,message:et.toString(n)}})}max(e,n){return new ko({...this._def,maxLength:{value:e,message:et.toString(n)}})}length(e,n){return new ko({...this._def,exactLength:{value:e,message:et.toString(n)}})}nonempty(e){return this.min(1,e)}}ko.create=(t,e)=>new ko({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ht.ZodArray,...kt(e)});function Hh(t){if(t instanceof zn){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=Sa.create(Hh(r))}return new zn({...t._def,shape:()=>e})}else return t instanceof ko?new ko({...t._def,type:Hh(t.element)}):t instanceof Sa?Sa.create(Hh(t.unwrap())):t instanceof Tu?Tu.create(Hh(t.unwrap())):t instanceof Oa?Oa.create(t.items.map(e=>Hh(e))):t}class zn extends $t{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=tn.objectKeys(e);return this._cached={shape:e,keys:n}}_parse(e){if(this._getType(e)!==He.object){const d=this._getOrReturnCtx(e);return $e(d,{code:Se.invalid_type,expected:He.object,received:d.parsedType}),vt}const{status:r,ctx:s}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof Hl&&this._def.unknownKeys==="strip"))for(const d in s.data)o.includes(d)||a.push(d);const c=[];for(const d of o){const p=i[d],m=s.data[d];c.push({key:{status:"valid",value:d},value:p._parse(new Da(s,m,s.path,d)),alwaysSet:d in s.data})}if(this._def.catchall instanceof Hl){const d=this._def.unknownKeys;if(d==="passthrough")for(const p of a)c.push({key:{status:"valid",value:p},value:{status:"valid",value:s.data[p]}});else if(d==="strict")a.length>0&&($e(s,{code:Se.unrecognized_keys,keys:a}),r.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const p of a){const m=s.data[p];c.push({key:{status:"valid",value:p},value:d._parse(new Da(s,m,s.path,p)),alwaysSet:p in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const d=[];for(const p of c){const m=await p.key,v=await p.value;d.push({key:m,value:v,alwaysSet:p.alwaysSet})}return d}).then(d=>fs.mergeObjectSync(r,d)):fs.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(e){return et.errToObj,new zn({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{var s,i,o,a;const c=(o=(i=(s=this._def).errorMap)===null||i===void 0?void 0:i.call(s,n,r).message)!==null&&o!==void 0?o:r.defaultError;return n.code==="unrecognized_keys"?{message:(a=et.errToObj(e).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new zn({...this._def,unknownKeys:"strip"})}passthrough(){return new zn({...this._def,unknownKeys:"passthrough"})}extend(e){return new zn({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new zn({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ht.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new zn({...this._def,catchall:e})}pick(e){const n={};return tn.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new zn({...this._def,shape:()=>n})}omit(e){const n={};return tn.objectKeys(this.shape).forEach(r=>{e[r]||(n[r]=this.shape[r])}),new zn({...this._def,shape:()=>n})}deepPartial(){return Hh(this)}partial(e){const n={};return tn.objectKeys(this.shape).forEach(r=>{const s=this.shape[r];e&&!e[r]?n[r]=s:n[r]=s.optional()}),new zn({...this._def,shape:()=>n})}required(e){const n={};return tn.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Sa;)i=i._def.innerType;n[r]=i}}),new zn({...this._def,shape:()=>n})}keyof(){return kW(tn.objectKeys(this.shape))}}zn.create=(t,e)=>new zn({shape:()=>t,unknownKeys:"strip",catchall:Hl.create(),typeName:ht.ZodObject,...kt(e)});zn.strictCreate=(t,e)=>new zn({shape:()=>t,unknownKeys:"strict",catchall:Hl.create(),typeName:ht.ZodObject,...kt(e)});zn.lazycreate=(t,e)=>new zn({shape:t,unknownKeys:"strip",catchall:Hl.create(),typeName:ht.ZodObject,...kt(e)});class t2 extends $t{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function s(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new mi(a.ctx.common.issues));return $e(n,{code:Se.invalid_union,unionErrors:o}),vt}if(n.common.async)return Promise.all(r.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(s);{let i;const o=[];for(const c of r){const d={...n,common:{...n.common,issues:[]},parent:null},p=c._parseSync({data:n.data,path:n.path,parent:d});if(p.status==="valid")return p;p.status==="dirty"&&!i&&(i={result:p,ctx:d}),d.common.issues.length&&o.push(d.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(c=>new mi(c));return $e(n,{code:Se.invalid_union,unionErrors:a}),vt}}get options(){return this._def.options}}t2.create=(t,e)=>new t2({options:t,typeName:ht.ZodUnion,...kt(e)});const ul=t=>t instanceof s2?ul(t.schema):t instanceof Vo?ul(t.innerType()):t instanceof i2?[t.value]:t instanceof Cu?t.options:t instanceof o2?tn.objectValues(t.enum):t instanceof a2?ul(t._def.innerType):t instanceof J0?[void 0]:t instanceof e2?[null]:t instanceof Sa?[void 0,...ul(t.unwrap())]:t instanceof Tu?[null,...ul(t.unwrap())]:t instanceof oC||t instanceof c2?ul(t.unwrap()):t instanceof l2?ul(t._def.innerType):[];class d6 extends $t{_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==He.object)return $e(n,{code:Se.invalid_type,expected:He.object,received:n.parsedType}),vt;const r=this.discriminator,s=n.data[r],i=this.optionsMap.get(s);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):($e(n,{code:Se.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),vt)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,n,r){const s=new Map;for(const i of n){const o=ul(i.shape[e]);if(!o.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of o){if(s.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);s.set(a,i)}}return new d6({typeName:ht.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:s,...kt(r)})}}function uE(t,e){const n=hl(t),r=hl(e);if(t===e)return{valid:!0,data:t};if(n===He.object&&r===He.object){const s=tn.objectKeys(e),i=tn.objectKeys(t).filter(a=>s.indexOf(a)!==-1),o={...t,...e};for(const a of i){const c=uE(t[a],e[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===He.array&&r===He.array){if(t.length!==e.length)return{valid:!1};const s=[];for(let i=0;i<t.length;i++){const o=t[i],a=e[i],c=uE(o,a);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return n===He.date&&r===He.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class n2 extends $t{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=(i,o)=>{if(lE(i)||lE(o))return vt;const a=uE(i.value,o.value);return a.valid?((cE(i)||cE(o))&&n.dirty(),{status:n.value,value:a.data}):($e(r,{code:Se.invalid_intersection_types}),vt)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,o])=>s(i,o)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}n2.create=(t,e,n)=>new n2({left:t,right:e,typeName:ht.ZodIntersection,...kt(n)});class Oa extends $t{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==He.array)return $e(r,{code:Se.invalid_type,expected:He.array,received:r.parsedType}),vt;if(r.data.length<this._def.items.length)return $e(r,{code:Se.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),vt;!this._def.rest&&r.data.length>this._def.items.length&&($e(r,{code:Se.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new Da(r,o,r.path,a)):null}).filter(o=>!!o);return r.common.async?Promise.all(i).then(o=>fs.mergeArray(n,o)):fs.mergeArray(n,i)}get items(){return this._def.items}rest(e){return new Oa({...this._def,rest:e})}}Oa.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Oa({items:t,typeName:ht.ZodTuple,rest:null,...kt(e)})};class r2 extends $t{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==He.object)return $e(r,{code:Se.invalid_type,expected:He.object,received:r.parsedType}),vt;const s=[],i=this._def.keyType,o=this._def.valueType;for(const a in r.data)s.push({key:i._parse(new Da(r,a,r.path,a)),value:o._parse(new Da(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?fs.mergeObjectAsync(n,s):fs.mergeObjectSync(n,s)}get element(){return this._def.valueType}static create(e,n,r){return n instanceof $t?new r2({keyType:e,valueType:n,typeName:ht.ZodRecord,...kt(r)}):new r2({keyType:No.create(),valueType:e,typeName:ht.ZodRecord,...kt(n)})}}class k4 extends $t{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==He.map)return $e(r,{code:Se.invalid_type,expected:He.map,received:r.parsedType}),vt;const s=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([a,c],d)=>({key:s._parse(new Da(r,a,r.path,[d,"key"])),value:i._parse(new Da(r,c,r.path,[d,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of o){const d=await c.key,p=await c.value;if(d.status==="aborted"||p.status==="aborted")return vt;(d.status==="dirty"||p.status==="dirty")&&n.dirty(),a.set(d.value,p.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of o){const d=c.key,p=c.value;if(d.status==="aborted"||p.status==="aborted")return vt;(d.status==="dirty"||p.status==="dirty")&&n.dirty(),a.set(d.value,p.value)}return{status:n.value,value:a}}}}k4.create=(t,e,n)=>new k4({valueType:e,keyType:t,typeName:ht.ZodMap,...kt(n)});class gf extends $t{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==He.set)return $e(r,{code:Se.invalid_type,expected:He.set,received:r.parsedType}),vt;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&($e(r,{code:Se.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&($e(r,{code:Se.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const d=new Set;for(const p of c){if(p.status==="aborted")return vt;p.status==="dirty"&&n.dirty(),d.add(p.value)}return{status:n.value,value:d}}const a=[...r.data.values()].map((c,d)=>i._parse(new Da(r,c,r.path,d)));return r.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(e,n){return new gf({...this._def,minSize:{value:e,message:et.toString(n)}})}max(e,n){return new gf({...this._def,maxSize:{value:e,message:et.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}gf.create=(t,e)=>new gf({valueType:t,minSize:null,maxSize:null,typeName:ht.ZodSet,...kt(e)});class yp extends $t{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==He.function)return $e(n,{code:Se.invalid_type,expected:He.function,received:n.parsedType}),vt;function r(a,c){return P4({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,I4(),im].filter(d=>!!d),issueData:{code:Se.invalid_arguments,argumentsError:c}})}function s(a,c){return P4({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,I4(),im].filter(d=>!!d),issueData:{code:Se.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof am){const a=this;return Is(async function(...c){const d=new mi([]),p=await a._def.args.parseAsync(c,i).catch(w=>{throw d.addIssue(r(c,w)),d}),m=await Reflect.apply(o,this,p);return await a._def.returns._def.type.parseAsync(m,i).catch(w=>{throw d.addIssue(s(m,w)),d})})}else{const a=this;return Is(function(...c){const d=a._def.args.safeParse(c,i);if(!d.success)throw new mi([r(c,d.error)]);const p=Reflect.apply(o,this,d.data),m=a._def.returns.safeParse(p,i);if(!m.success)throw new mi([s(p,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new yp({...this._def,args:Oa.create(e).rest(Gd.create())})}returns(e){return new yp({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,n,r){return new yp({args:e||Oa.create([]).rest(Gd.create()),returns:n||Gd.create(),typeName:ht.ZodFunction,...kt(r)})}}class s2 extends $t{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}s2.create=(t,e)=>new s2({getter:t,typeName:ht.ZodLazy,...kt(e)});class i2 extends $t{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return $e(n,{received:n.data,code:Se.invalid_literal,expected:this._def.value}),vt}return{status:"valid",value:e.data}}get value(){return this._def.value}}i2.create=(t,e)=>new i2({value:t,typeName:ht.ZodLiteral,...kt(e)});function kW(t,e){return new Cu({values:t,typeName:ht.ZodEnum,...kt(e)})}class Cu extends $t{constructor(){super(...arguments),J1.set(this,void 0)}_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return $e(n,{expected:tn.joinValues(r),received:n.parsedType,code:Se.invalid_type}),vt}if(R4(this,J1)||PW(this,J1,new Set(this._def.values)),!R4(this,J1).has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return $e(n,{received:n.data,code:Se.invalid_enum_value,options:r}),vt}return Is(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return Cu.create(e,{...this._def,...n})}exclude(e,n=this._def){return Cu.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}J1=new WeakMap;Cu.create=kW;class o2 extends $t{constructor(){super(...arguments),e0.set(this,void 0)}_parse(e){const n=tn.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==He.string&&r.parsedType!==He.number){const s=tn.objectValues(n);return $e(r,{expected:tn.joinValues(s),received:r.parsedType,code:Se.invalid_type}),vt}if(R4(this,e0)||PW(this,e0,new Set(tn.getValidEnumValues(this._def.values))),!R4(this,e0).has(e.data)){const s=tn.objectValues(n);return $e(r,{received:r.data,code:Se.invalid_enum_value,options:s}),vt}return Is(e.data)}get enum(){return this._def.values}}e0=new WeakMap;o2.create=(t,e)=>new o2({values:t,typeName:ht.ZodNativeEnum,...kt(e)});class am extends $t{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==He.promise&&n.common.async===!1)return $e(n,{code:Se.invalid_type,expected:He.promise,received:n.parsedType}),vt;const r=n.parsedType===He.promise?n.data:Promise.resolve(n.data);return Is(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}am.create=(t,e)=>new am({type:t,typeName:ht.ZodPromise,...kt(e)});class Vo extends $t{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ht.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),s=this._def.effect||null,i={addIssue:o=>{$e(r,o),o.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const o=s.transform(r.data,i);if(r.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return vt;const c=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return c.status==="aborted"?vt:c.status==="dirty"||n.value==="dirty"?Qh(c.value):c});{if(n.value==="aborted")return vt;const a=this._def.schema._parseSync({data:o,path:r.path,parent:r});return a.status==="aborted"?vt:a.status==="dirty"||n.value==="dirty"?Qh(a.value):a}}if(s.type==="refinement"){const o=a=>{const c=s.refinement(a,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?vt:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?vt:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(s.type==="transform")if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!pf(o))return o;const a=s.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>pf(o)?Promise.resolve(s.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);tn.assertNever(s)}}Vo.create=(t,e,n)=>new Vo({schema:t,typeName:ht.ZodEffects,effect:e,...kt(n)});Vo.createWithPreprocess=(t,e,n)=>new Vo({schema:e,effect:{type:"preprocess",transform:t},typeName:ht.ZodEffects,...kt(n)});class Sa extends $t{_parse(e){return this._getType(e)===He.undefined?Is(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Sa.create=(t,e)=>new Sa({innerType:t,typeName:ht.ZodOptional,...kt(e)});class Tu extends $t{_parse(e){return this._getType(e)===He.null?Is(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Tu.create=(t,e)=>new Tu({innerType:t,typeName:ht.ZodNullable,...kt(e)});class a2 extends $t{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;
vendor: 4,139 bytes, line 3445
3445return n.parsedType===He.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}a2.create=(t,e)=>new a2({innerType:t,typeName:ht.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...kt(e)});class l2 extends $t{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return X0(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new mi(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new mi(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}l2.create=(t,e)=>new l2({innerType:t,typeName:ht.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...kt(e)});class D4 extends $t{_parse(e){if(this._getType(e)!==He.nan){const r=this._getOrReturnCtx(e);return $e(r,{code:Se.invalid_type,expected:He.nan,received:r.parsedType}),vt}return{status:"valid",value:e.data}}}D4.create=t=>new D4({typeName:ht.ZodNaN,...kt(t)});const gEe=Symbol("zod_brand");class oC extends $t{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class cg extends $t{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?vt:i.status==="dirty"?(n.dirty(),Qh(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?vt:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(e,n){return new cg({in:e,out:n,typeName:ht.ZodPipeline})}}class c2 extends $t{_parse(e){const n=this._def.innerType._parse(e),r=s=>(pf(s)&&(s.value=Object.freeze(s.value)),s);return X0(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}c2.create=(t,e)=>new c2({innerType:t,typeName:ht.ZodReadonly,...kt(e)});function _k(t,e){const n=typeof t=="function"?t(e):typeof t=="string"?{message:t}:t;return typeof n=="string"?{message:n}:n}function DW(t,e={},n){return t?om.create().superRefine((r,s)=>{var i,o;const a=t(r);if(a instanceof Promise)return a.then(c=>{var d,p;if(!c){const m=_k(e,r),v=(p=(d=m.fatal)!==null&&d!==void 0?d:n)!==null&&p!==void 0?p:!0;s.addIssue({code:"custom",...m,fatal:v})}});if(!a){const c=_k(e,r),d=(o=(i=c.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0;s.addIssue({code:"custom",...c,fatal:d})}}):om.create()}const vEe={object:zn.lazycreate};var ht;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ht||(ht={}));const yEe=(t,e={message:`Input not instance of ${t.name}`})=>DW(n=>n instanceof t,e),st=No.create,u2=bu.create,xEe=D4.create,wEe=Su.create,OW=Z0.create,$W=mf.create,_Ee=N4.create,EEe=J0.create,bEe=e2.create,SEe=om.create,CEe=Gd.create,TEe=Hl.create,AEe=M4.create,Lm=ko.create,wn=zn.create,IEe=zn.strictCreate,PEe=t2.create,REe=d6.create,NEe=n2.create,MEe
3445=Oa.create,FW=r2.create,kEe=k4.create,DEe=gf.create,OEe=yp.create,$Ee=s2.create,FEe=i2.create,dE=Cu.create,jEe=o2.create,LEe=am.create,Ek=Vo.create,zi=Sa.create,zEe=Tu.create,VEe=Vo.createWithPreprocess,BEe=cg.create,HEe=()=>st().optional(),UEe=()=>u2().optional(),WEe=()=>OW().optional(),qEe={string:t=>No.create({...t,coerce:!0}),number:t=>bu.create({...t,coerce:!0}),boolean:t=>Z0.create({...t,coerce:!0}),bigint:t=>Su.create({...t,coerce:!0}),date:t=>mf.create({...t,coerce:!0})},GEe=vt;var uXe=Object.freeze({__proto__:null,defaultErrorMap:im,setErrorMap:G_e,getErrorMap:I4,makeIssue:P4,EMPTY_PATH:K_e,addIssueToContext:$e,ParseStatus:fs,INVALID:vt,DIRTY:Qh,OK:Is,isAborted:lE,isDirty:cE,isValid:pf,isAsync:X0,get util(){return tn},get objectUtil(){return aE},ZodParsedType:He,getParsedType:hl,ZodType:$t,datetimeRegex:MW,ZodString:No,ZodNumber:bu,ZodBigInt:Su,ZodBoolean:Z0,ZodDate:mf,ZodSymbol:N4,ZodUndefined:J0,ZodNull:e2,ZodAny:om,ZodUnknown:Gd,ZodNever:Hl,ZodVoid:M4,ZodArray:ko,ZodObject:zn,ZodUnion:t2,ZodDiscriminatedUnion:d6,ZodIntersection:n2,ZodTuple:Oa,ZodRecord:r2,ZodMap:k4,ZodSet:gf,ZodFunction:yp,ZodLazy:s2,ZodLiteral:i2,ZodEnum:Cu,ZodNativeEnum:o2,ZodPromise:am,ZodEffects:Vo,ZodTransformer:Vo,ZodOptional:Sa,ZodNullable:Tu,ZodDefault:a2,ZodCatch:l2,ZodNaN:D4,BRAND:gEe,ZodBranded:oC,ZodPipeline:cg,ZodReadonly:c2,custom:DW,Schema:$t,ZodSchema:$t,late:vEe,get ZodFirstPartyTypeKind(){return ht},coerce:qEe,any:SEe,array:Lm,bigint:wEe,boolean:OW,date:$W,discriminatedUnion:REe,effect:Ek,enum:dE,function:OEe,instanceof:yEe,intersection:NEe,lazy:$Ee,literal:FEe,map:kEe,nan:xEe,nativeEnum:jEe,never:TEe,null:bEe,nullable:zEe,number:u2,object:wn,oboolean:WEe,onumber:UEe,optional:zi,ostring:HEe,pipeline:BEe,preprocess:VEe,promise:LEe,record:FW,set:DEe,strictObject:IEe,string:st,symbol:_Ee,transformer:Ek,tuple:MEe,undefined:EEe,union:PEe,unknown:CEe,void:AEe,NEVER:GEe,ZodIssueCode:Se,quotelessJson:q_e,ZodError:mi});const KEe=wn({shipping_first_delivery_date:$W({required_error:"La fecha de envío es obligatoria."})}),YEe=({frecuency:t,onSubmit:e})=>{const{registryData:n}=$u(),r=Jr();if(n===null)return u.jsx(Kl,{to:"/register/subscriptions"});const s=xi({resolver:_i(KEe)});_.useEffect(()=>{n.shipping_frecuency&&s.resetField("shipping_first_delivery_date")},[n.shipping_frecuency,s]);function i({shipping_first_delivery_date:v}){e({shipping_first_delivery_date:v})}const{data:o,isLoading:a,isError:c,error:d,refetch:p}=k_e({shipping_type:n.shipping_type||"DELIVERY",pickup_name:n.pickup_name,district_name:(n.shipping_type||"DELIVERY")==="DELIVERY"?n.delivery_district:n.pickup_district}),m=o?.data;if(a)return u.jsx(er,{message:"🔍 Buscando frecuencias de envío..."});if(c)return u.jsx(Hn,{title:"No se pudo obtener la información de las frecuencias de envío.",message:d.message,retry:p,error:d});if(m){const{shipping_first_delivery_date:v}=s.watch(),{dates:w}=m,E=v;return u.jsx("div",{className:"flex flex-col gap-8",children:u.jsx(wi,{...s,children:u.jsxs("form",{onSubmit:s.handleSubmit(i),className:"space-y-8",children:[u.jsx(cn,{control:s.control,name:"shipping_first_delivery_date",render:({field:C})=>{const b=S=>{S&&C.onChange(S)};return u.jsx(kve,{field:C,onChange:b,availableDates:w})}}),E&&u.jsx(QEe,{frecuency:t,delivery_date:v}),u.jsxs("div",{className:"flex justify-between py-4 gap-4",children:[u.jsx(tt,{type:"button",variant:"outline",className:"w-full sm:w-fit",onClick:()=>r({to:"/register/shipping-methods"}),children:"Volver"}),u.jsx(tt,{type:"submit",className:"w-full sm:w-fit",children:"Siguiente"})]})]})})})}},QEe=({frecuency:t,delivery_date:e})=>{let n="WEEKLY";t==="quincenal"&&(n="BIWEEKLY");const r=Mve(e,n);return u.jsx(y6,{title:u.jsxs("p",{className:"text-base",children:[u.jsx("span",{children:"🔔"})," Así vas a recibir tus cajas"]}),message:u.jsxs(u.Fragment,{children:[u.jsxs("p",{className:"text-muted-foreground",children:["- Tu primera entrega será el dia"," ",u.jsx("strong",{className:"text-primary",children:bs(e)})," ","y luego"," ",{semanal:" cada semana",quincenal:" cada 14 días"}[t],", los días"," ",u.jsx("strong",{className:"text-primary",children:Nve(e)}),"."]}),u.jsx("p",{className:"text-muted-foreground",children:"- Podrás pausar o cancelar tu suscripción en cualquier momento."}),u.jsxs("div",{className:"flex flex-col items-center justify-center py-4",children:[u.jsx(Am,{mode:"multiple",className:"bg-white rounded-md font-sans",ISOWeek:!0,selected:r,disabled:s=>!r.includes(s),fromDate:e,toDate:r.at(-1),locale:Uo}),u.jsx("p",{className:"pt-2 text-center",children:"Este es un ejemplo de cuando serian tus próximos 4 envíos"})]})]})})},Qr=_.forwardRef(({className:t,type:e,...n},r)=>u.jsx("input",{type:e,className:ve("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:r,...n}));Qr.displayName="Input";function fE(t,[e,n]){return Math.min(n,Math.max(e,t))}var XEe=_.createContext(void 0);function Of(t){const e=_.useContext(XEe);return t||e||"ltr"}function f6(t){const e=_.useRef({value:t,previous:t});return _.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var ZEe=[" ","Enter","ArrowUp","ArrowDown"],JEe=[" ","Enter"],vf="Select",[h6,p6,e9e]=Em(vf),[zm,dXe]=jr(vf,[e9e,Rm]),m6=Rm(),[t9e,Fu]=zm(vf),[n9e,r9e]=zm(vf),jW=t=>{const{__scopeSelect:e,children:n,open:r,defaultOpen:s,onOpenChange:i,value:o,defaultValue:a,onValueChange:c,dir:d,name:p,autoComplete:m,disabled:v,required:w,form:E}=t,C=m6(e),[b,S]=_.useState(null),[P,R]=_.useState(null),[z,O]=_.useState(!1),F=Of(d
vendor: 18,940 bytes, line 3445
3445),[D,I]=As({prop:r,defaultProp:s??!1,onChange:i,caller:vf}),[T,k]=As({prop:o,defaultProp:a,onChange:c,caller:vf}),j=_.useRef(null),L=b?E||!!b.closest("form"):!0,[V,Y]=_.useState(new Set),G=Array.from(V).map(q=>q.props.value).join(";");return u.jsx(tS,{...C,children:u.jsxs(t9e,{required:w,scope:e,trigger:b,onTriggerChange:S,valueNode:P,onValueNodeChange:R,valueNodeHasChildren:z,onValueNodeHasChildrenChange:O,contentId:qs(),value:T,onValueChange:k,open:D,onOpenChange:I,dir:F,triggerPointerDownPosRef:j,disabled:v,children:[u.jsx(h6.Provider,{scope:e,children:u.jsx(n9e,{scope:t.__scopeSelect,onNativeOptionAdd:_.useCallback(q=>{Y(U=>new Set(U).add(q))},[]),onNativeOptionRemove:_.useCallback(q=>{Y(U=>{const B=new Set(U);return B.delete(q),B})},[]),children:n})}),L?u.jsxs(lq,{"aria-hidden":!0,required:w,tabIndex:-1,name:p,autoComplete:m,value:T,onChange:q=>k(q.target.value),disabled:v,form:E,children:[T===void 0?u.jsx("option",{value:""}):null,Array.from(V)]},G):null]})})};jW.displayName=vf;var LW="SelectTrigger",zW=_.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:r=!1,...s}=t,i=m6(n),o=Fu(LW,n),a=o.disabled||r,c=yt(e,o.onTriggerChange),d=p6(n),p=_.useRef("touch"),[m,v,w]=uq(C=>{const b=d().filter(R=>!R.disabled),S=b.find(R=>R.value===o.value),P=dq(b,C,S);P!==void 0&&o.onValueChange(P.value)}),E=C=>{a||(o.onOpenChange(!0),w()),C&&(o.triggerPointerDownPosRef.current={x:Math.round(C.pageX),y:Math.round(C.pageY)})};return u.jsx($5,{asChild:!0,...i,children:u.jsx(Le.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":cq(o.value)?"":void 0,...s,ref:c,onClick:ke(s.onClick,C=>{C.currentTarget.focus(),p.current!=="mouse"&&E(C)}),onPointerDown:ke(s.onPointerDown,C=>{p.current=C.pointerType;const b=C.target;b.hasPointerCapture(C.pointerId)&&b.releasePointerCapture(C.pointerId),C.button===0&&C.ctrlKey===!1&&C.pointerType==="mouse"&&(E(C),C.preventDefault())}),onKeyDown:ke(s.onKeyDown,C=>{const b=m.current!=="";!(C.ctrlKey||C.altKey||C.metaKey)&&C.key.length===1&&v(C.key),!(b&&C.key===" ")&&ZEe.includes(C.key)&&(E(),C.preventDefault())})})})});zW.displayName=LW;var VW="SelectValue",BW=_.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:s,children:i,placeholder:o="",...a}=t,c=Fu(VW,n),{onValueNodeHasChildrenChange:d}=c,p=i!==void 0,m=yt(e,c.onValueNodeChange);return Zn(()=>{d(p)},[d,p]),u.jsx(Le.span,{...a,ref:m,style:{pointerEvents:"none"},children:cq(c.value)?u.jsx(u.Fragment,{children:o}):i})});BW.displayName=VW;var s9e="SelectIcon",HW=_.forwardRef((t,e)=>{const{__scopeSelect:n,children:r,...s}=t;return u.jsx(Le.span,{"aria-hidden":!0,...s,ref:e,children:r||"▼"})});HW.displayName=s9e;var i9e="SelectPortal",UW=t=>u.jsx(bm,{asChild:!0,...t});UW.displayName=i9e;var yf="SelectContent",WW=_.forwardRef((t,e)=>{const n=Fu(yf,t.__scopeSelect),[r,s]=_.useState();if(Zn(()=>{s(new DocumentFragment)},[]),!n.open){const i=r;return i?Tf.createPortal(u.jsx(qW,{scope:t.__scopeSelect,children:u.jsx(h6.Slot,{scope:t.__scopeSelect,children:u.jsx("div",{children:t.children})})}),i):null}return u.jsx(GW,{...t,ref:e})});WW.displayName=yf;var vo=10,[qW,ju]=zm(yf),o9e="SelectContentImpl",a9e=tf("SelectContent.RemoveScroll"),GW=_.forwardRef((t,e)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:a,sideOffset:c,align:d,alignOffset:p,arrowPadding:m,collisionBoundary:v,collisionPadding:w,sticky:E,hideWhenDetached:C,avoidCollisions:b,...S}=t,P=Fu(yf,n),[R,z]=_.useState(null),[O,F]=_.useState(null),D=yt(e,he=>z(he)),[I,T]=_.useState(null),[k,j]=_.useState(null),L=p6(n),[V,Y]=_.useState(!1),G=_.useRef(!1);_.useEffect(()=>{if(R)return lb(R)},[R]),ab();const q=_.useCallback(he=>{const[xe,...Ne]=L().map(ut=>ut.ref.current),[ze]=Ne.slice(-1),Ze=document.activeElement;for(const ut of he)if(ut===Ze||(ut?.scrollIntoView({block:"nearest"}),ut===xe&&O&&(O.scrollTop=0),ut===ze&&O&&(O.scrollTop=O.scrollHeight),ut?.focus(),document.activeElement!==Ze))return},[L,O]),U=_.useCallback(()=>q([I,R]),[q,I,R]);_.useEffect(()=>{V&&U()},[V,U]);const{onOpenChange:B,triggerPointerDownPosRef:ne}=P;_.useEffect(()=>{if(R){let he={x:0,y:0};const xe=ze=>{he={x:Math.abs(Math.round(ze.pageX)-(ne.current?.x??0)),y:Math.abs(Math.round(ze.pageY)-(ne.current?.y??0))}},Ne=ze=>{he.x<=10&&he.y<=10?ze.preventDefault():R.contains(ze.target)||B(!1),document.removeEventListener("pointermove",xe),ne.current=null};return ne.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",Ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",Ne,{capture:!0})}}},[R,B,ne]),_.useEffect(()=>{const he=()=>B(!1);return window.addEventListener("blur",he),window.addEventListener("resize",he),()=>{window.removeEventListener("blur",he),window.removeEventListener("resize",he)}},[B]);const[oe,Q]=uq(he=>{const xe=L().filter(Ze=>!Ze.disabled),Ne=xe.find(Ze=>Ze.ref.current===document.activeElement),ze=dq(xe,he,Ne);ze&&setTimeout(()=>ze.ref.current.focus())}),ie=_.useCallback((he,xe,Ne)=>{const ze=!G.current&&!Ne;(P.value!==void 0&&P.value===xe||ze)&&(T(he),ze&&(G.current=!0))},[P.value]),ue=_.useCallback(()=>R?.focus(),[R]),ge=_.useCallback((he,xe,Ne)=>{const ze=!G.current&&!Ne;(P.value!==void 0&&P.value===xe||ze)&&j(he)},[P.value]),Ae=r==="popper"?hE:KW,Pe=Ae===hE?{side:a,sideOffset:c,align:d,alignOffset:p,arrowPadding:m,collisionBoundary:v,collisionPadding:w,sticky:E,hideWhenDetached:C,avoidCollisions:b}:{};return u.jsx(qW,{scope:n,content:R,viewport:O,onViewportChange:F,itemRefCallback:ie,selectedItem:I,onItemLeave:ue,itemTextRefCallback:ge,focusSelectedItem:U,selectedItemText:k,position:r,isPositioned:V,searchRef:oe,children:u.jsx(T5,{as:a9e,allowPinchZoom:!0,children:u.jsx(S5,{asChild:!0,trapped:P.open,onMountAutoFocus:he=>{he.preventDefault()},onUnmountAutoFocus:ke(s,he=>{P.trigger?.focus({preventScroll:!0}),he.preventDefault()}),children:u.jsx(Af,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:he=>he.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:u.jsx(Ae,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:he=>he.preventDefault(),...S,...Pe,onPlaced:()=>Y(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:ke(S.onKeyDown,he=>{const xe=he.ctrlKey||he.altKey||he.metaKey;if(he.key==="Tab"&&he.preventDefault(),!xe&&he.key.length===1&&Q(he.key),["ArrowUp","ArrowDown","Home","End"].includes(he.key)){let ze=L().filter(Ze=>!Ze.disabled).map(Ze=>Ze.ref.current);if(["ArrowUp","End"].includes(he.key)&&(ze=ze.slice().reverse()),["ArrowUp","ArrowDown"].includes(he.key)){const Ze=he.target,ut=ze.indexOf(Ze);ze=ze.slice(ut+1)}setTimeout(()=>q(ze)),he.preventDefault()}})})})})})})});GW.displayName=o9e;var l9e="SelectItemAlignedPosition",KW=_.forwardRef((t,e)=>{const{__scopeSelect:n,onPlaced:r,...s}=t,i=Fu(yf,n),o=ju(yf,n),[a,c]=_.useState(null),[d,p]=_.useState(null),m=yt(e,D=>p(D)),v=p6(n),w=_.useRef(!1),E=_.useRef(!0),{viewport:C,selectedItem:b,selectedItemText:S,focusSelectedItem:P}=o,R=_.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&d&&C&&b&&S){const D=i.trigger.getBoundingClientRect(),I=d.getBoundingClientRect(),T=i.valueNode.getBoundingClientRect(),k=S.getBoundingClientRect();if(i.dir!=="rtl"){const Ze=k.left-I.left,ut=T.left-Ze,Pt=D.left-ut,Rt=D.width+Pt,Tt=Math.max(Rt,I.width),on=window.innerWidth-vo,Xt=fE(ut,[vo,Math.max(vo,on-Tt)]);a.style.minWidth=Rt+"px",a.style.left=Xt+"px"}else{const Ze=I.right-k.right,ut=window.innerWidth-T.right-Ze,Pt=window.innerWidth-D.right-ut,Rt=D.width+Pt,Tt=Math.max(Rt,I.width),on=window.innerWidth-vo,Xt=fE(ut,[vo,Math.max(vo,on-Tt)]);a.style.minWidth=Rt+"px",a.style.right=Xt+"px"}const j=v(),L=window.innerHeight-vo*2,V=C.scrollHeight,Y=window.getComputedStyle(d),G=parseInt(Y.borderTopWidth,10),q=parseInt(Y.paddingTop,10),U=parseInt(Y.borderBottomWidth,10),B=parseInt(Y.paddingBottom,10),ne=G+q+V+B+U,oe=Math.min(b.offsetHeight*5,ne),Q=window.getComputedStyle(C),ie=parseInt(Q.paddingTop,10),ue=parseInt(Q.paddingBottom,10),ge=D.top+D.height/2-vo,Ae=L-ge,Pe=b.offsetHeight/2,he=b.offsetTop+Pe,xe=G+q+he,Ne=ne-xe;if(xe<=ge){const Ze=j.length>0&&b===j[j.length-1].ref.current;a.style.bottom="0px";const ut=d.clientHeight-C.offsetTop-C.offsetHeight,Pt=Math.max(Ae,Pe+(Ze?ue:0)+ut+U),Rt=xe+Pt;a.style.height=Rt+"px"}else{const Ze=j.length>0&&b===j[0].ref.current;a.style.top="0px";const Pt=Math.max(ge,G+C.offsetTop+(Ze?ie:0)+Pe)+Ne;a.style.height=Pt+"px",C.scrollTop=xe-ge+C.offsetTop}a.style.margin=`${vo}px 0`,a.style.minHeight=oe+"px",a.style.maxHeight=L+"px",r?.(),requestAnimationFrame(()=>w.current=!0)}},[v,i.trigger,i.valueNode,a,d,C,b,S,i.dir,r]);Zn(()=>R(),[R]);const[z,O]=_.useState();Zn(()=>{d&&O(window.getComputedStyle(d).zIndex)},[d]);const F=_.useCallback(D=>{D&&E.current===!0&&(R(),P?.(),E.current=!1)},[R,P]);return u.jsx(u9e,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:w,onScrollButtonChange:F,children:u.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:u.jsx(Le.div,{...s,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});KW.displayName=l9e;var c9e="SelectPopperPosition",hE=_.forwardRef((t,e)=>{const{__scopeSelect:n,align:r="start",collisionPadding:s=vo,...i}=t,o=m6(n);return u.jsx(nS,{...o,...i,ref:e,align:r,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});hE.displayName=c9e;var[u9e,aC]=zm(yf,{}),pE="SelectViewport",YW=_.forwardRef((t,e)=>{const{__scopeSelect:n,nonce:r,...s}=t,i=ju(pE,n),o=aC(pE,n),a=yt(e,i.onViewportChange),c=_.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),u.jsx(h6.Slot,{scope:n,children:u.jsx(Le.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ke(s.onScroll,d=>{const p=d.currentTarget,{contentWrapper:m,shouldExpandOnScrollRef:v}=o;if(v?.current&&m){const w=Math.abs(c.current-p.scrollTop);if(w>0){const E=window.innerHeight-vo*2,C=parseFloat(m.style.minHeight),b=parseFloat(m.style.height),S=Math.max(C,b);if(S<E){const P=S+w,R=Math.min(E,P),z=P-R;m.style.height=R+"px",m.style.bottom==="0px"&&(p.scrollTop=z>0?z:0,m.style.justifyContent="flex-end")}}}c.current=p.scrollTop})})})]})});YW.displayName=pE;var QW="SelectGroup",[d9e,f9e]=zm(QW),h9e=_.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,s=qs();return u.jsx(d9e,{scope:n,id:s,children:u.jsx(Le.div,{role:"group","aria-labelledby":s,...r,ref:e})})});h9e.displayName=QW;var XW="SelectLabel",ZW=_.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,s=f9e(XW,n);return u.jsx(Le.div,{id:s.id,...r,ref:e})});ZW.displayName=XW;var O4="SelectItem",[p9e,JW]=zm(O4),eq=_.forwardRef((t,e)=>{const{__scopeSelect:n,value:r,disabled:s=!1,textValue:i,...o}=t,a=Fu(O4,n),c=ju(O4,n),d=a.value===r,[p,m]=_.useState(i??""),[v,w]=_.useState(!1),E=yt(e,P=>c.itemRefCallback?.(P,r,s)),C=qs(),b=_.useRef("touch"),S=()=>{s||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(p9e,{scope:n,value:r,disabled:s,textId:C,isSelected:d,onItemTextChange:_.useCallback(P=>{m(R=>R||(P?.textContent??"").trim())},[]),children:u.jsx(h6.ItemSlot,{scope:n,value:r,disabled:s,textValue:p,children:u.jsx(Le.div,{role:"option","aria-labelledby":C,"data-highlighted":v?"":void 0,"aria-selected":d&&v,"data-state":d?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:E,onFocus:ke(o.onFocus,()=>w(!0)),onBlur:ke(o.onBlur,()=>w(!1)),onClick:ke(o.onClick,()=>{b.current!=="mouse"&&S()}),onPointerUp:ke(o.onPointerUp,()=>{b.current==="mouse"&&S()}),onPointerDown:ke(o.onPointerDown,P=>{b.current=P.pointerType}),onPointerMove:ke(o.onPointerMove,P=>{b.current=P.pointerType,s?c.onItemLeave?.():b.current==="mouse"&&P.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ke(o.onPointerLeave,P=>{P.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:ke(o.onKeyDown,P=>{c.searchRef?.current!==""&&P.key===" "||(JEe.includes(P.key)&&S(),P.key===" "&&P.preventDefault())})})})})});eq.displayName=O4;var t0="SelectItemText",tq=_.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:s,...i}=t,o=Fu(t0,n),a=ju(t0,n),c=JW(t0,n),d=r9e(t0,n),[p,m]=_.useState(null),v=yt(e,S=>m(S),c.onItemTextChange,S=>a.itemTextRefCallback?.(S,c.value,c.disabled)),w=p?.textContent,E=_.useMemo(()=>u.jsx("option",{value:c.value,disabled:c.disabled,children:w},c.value),[c.disabled,c.value,w]),{onNativeOptionAdd:C,onNativeOptionRemove:b}=d;return Zn(()=>(C(E),()=>b(E)),[C,b,E]),u.jsxs(u.Fragment,{children:[u.jsx(Le.span,{id:c.textId,...i,ref:v}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Tf.createPortal(i.children,o.valueNode):null]})});tq.displayName=t0;var nq="SelectItemIndicator",rq=_.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return JW(nq,n).isSelected?u.jsx(Le.span,{"aria-hidden":!0,...r,ref:e}):null});rq.displayName=nq;var mE="SelectScrollUpButton",sq=_.forwardRef((t,e)=>{const n=ju(mE,t.__scopeSelect),r=aC(mE,t.__scopeSelect),[s,i]=_.useState(!1),o=yt(e,r.onScrollButtonChange);return Zn(()=>{if(n.viewport&&n.isPositioned){let a=function(){const d=c.scrollTop>0;i(d)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?u.jsx(oq,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});sq.displayName=mE;var gE="SelectScrollDownButton",iq=_.forwardRef((t,e)=>{const n=ju(gE,t.__scopeSelect),r=aC(gE,t.__scopeSelect),[s,i]=_.useState(!1),o=yt(e,r.onScrollButtonChange);return Zn(()=>{if(n.viewport&&n.isPositioned){let a=function(){const d=c.scrollHeight-c.clientHeight,p=Math.ceil(c.scrollTop)<d;i(p)};const c=n.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),s?u.jsx(oq,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=n;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});iq.displayName=gE;var oq=_.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:r,...s}=t,i=ju("SelectScrollButton",n),o=_.useRef(null),a=p6(n),c=_.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return _.useEffect(()=>()=>c(),[c]),Zn(()=>{a().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),u.jsx(Le.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:ke(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:ke(s.onPointerMove,()=>{i.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:ke(s.onPointerLeave,()=>{c()})})}),m9e="SelectSeparator",aq=_.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return u.jsx(Le.div,{"aria-hidden":!0,...r,ref:e})});aq.displayName=m9e;var vE="SelectArrow",g9e=_.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,s=m6(n),i=Fu(vE,n),o=ju(vE,n);return i.open&&o.position==="popper"?u.jsx(rS,{...s,...r,ref:e}):null});g9e.displayName=vE;var v9e="SelectBubbleInput",lq=_.forwardRef(({__scopeSelect:t,value:e,...n},r)=>{const s=_.useRef(null),i=yt(r,s),o=f6(e);return _.useEffect(()=>{const a=s.current;if(!a)return;const c=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==e&&p){const m=new Event("change",{bubbles:!0});p.call(a,e),a.dispatchEvent(m)}},[o,e]),u.jsx(Le.select,{...n,style:{...xL,...n.style},ref:i,defaultValue:e})});lq.displayName=v9e;function cq(t){return t===""||t===void 0}function uq(t){const e=An(t),n=_.useRef(""),r=_.useRef(0),s=_.useCallback(o=>{const a=n.current+o;e(a),function c(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(a)},[e]),i=_.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,s,i]}function dq(t,e,n){const s=e.length>1&&Array.from(e).every(d=>d===e[0])?e[0]:e,i=n?t.indexOf(n):-1;let o=y9e(t,Math.max(i,0));s.length===1&&(o=o.filter(d=>d!==n));const c=o.find(d=>d.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==n?c:void 0}function y9e(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var x9e=jW,fq=zW,w9e=BW,_9e=HW,E9e=UW,hq=WW,b9e=YW,pq=ZW,mq=eq,S9e=tq,C9e=rq,gq=sq,vq=iq,yq=aq;const Do=x9e,Oo=w9e,Ui=_.forwardRef(({className:t,children:e,...n},r)=>u.jsxs(fq,{ref:r,className:ve("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...n,children:[e,u.jsx(_9e,{asChild:!0,children:u.jsx(_5,{className:"h-4 w-4 opacity-50"})})]}));Ui.displayName=fq.displayName;const xq=_.forwardRef(({className:t,...e},n)=>u.jsx(gq,{ref:n,className:ve("flex cursor-default items-center justify-center py-1",t),...e,children:u.jsx(uue,{className:"h-4 w-4"})}));xq.displayName=gq.displayName;const wq=_.forwardRef(({className:t,...e},n)=>u.jsx(vq,{ref:n,className:ve("flex cursor-default items-center justify-center py-1",t),...e,children:u.jsx(_5,{className:"h-4 w-4"})}));wq.displayName=vq.displayName;const Wi=_.forwardRef(({className:t,children:e,position:n="popper",...r},s)=>u.jsx(E9e,{children:u.jsxs(hq,{ref:s,className:ve("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
3445de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:n,...r,children:[u.jsx(xq,{}),u.jsx(b9e,{className:ve("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),u.jsx(wq,{})]})}));Wi.displayName=hq.displayName;const T9e=_.forwardRef(({className:t,...e},n)=>u.jsx(pq,{ref:n,className:ve("px-2 py-1.5 text-sm font-semibold",t),...e}));T9e.displayName=pq.displayName;const qi=_.forwardRef(({className:t,children:e,...n},r)=>u.jsxs(mq,{ref:r,className:ve("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[u.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(C9e,{children:u.jsx(rue,{className:"h-4 w-4"})})}),u.jsx(S9e,{children:e})]}));qi.displayName=mq.displayName;const A9e=_.forwardRef(({className:t,...e},n)=>u.jsx(yq,{ref:n,className:ve("-mx-1 my-1 h-px bg-muted",t),...e}));A9e.displayName=yq.displayName;const I9e=wn({address:st({required_error:"⚠️ Necesitamos tu dirección para enviar tus cajas"}),address_dpto:st().optional(),delivery_district:st({required_error:"⚠️ Necesitamos tu comuna para enviar tus cajas"}),aditional_notes:st().optional()}),P9e=({onSubmit:t,companyRef:e,initialData:n})=>{const{setRegistryData:r}=$u(),s=Jr(),i=xi({resolver:_i(I9e),defaultValues:n??{}}),{data:o,isLoading:a,isError:c,error:d,refetch:p}=lg(e),m=o?.data;function v(w){t(w)}if(a)return u.jsx(er,{message:"🔍 Buscando información de comunas..."});if(c)return u.jsx(Hn,{title:"No se pudo obtener la información de las comunas.",message:d.message,retry:p,error:d});if(m){const{district_names:w,districts:E}=m;return u.jsx(wi,{...i,children:u.jsxs("form",{onSubmit:i.handleSubmit(v),className:"space-y-6",children:[u.jsx(cn,{control:i.control,name:"delivery_district",render:({field:C})=>{const b=C.value&&m.districts.find(S=>S.name===C.value);return u.jsxs(un,{children:[u.jsx(gn,{children:"Comuna"}),u.jsxs(Do,{onValueChange:S=>{C.onChange(S),r(P=>({...P,district:S,shipping_entity_id:E.find(R=>R.district_name===S)?.id}))},defaultValue:C.value,children:[u.jsx(En,{children:u.jsx(Ui,{children:u.jsx(Oo,{placeholder:"Selecciona una comuna"})})}),u.jsx(Wi,{children:[...new Set(w)].map(S=>u.jsx(qi,{value:S,children:S},S))})]}),b&&u.jsx(Ra,{children:u.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["Envío:"," ",u.jsx("span",{className:"font-sans",children:b.delivery_price})," ","-"," ",b.humanized_shipping_days]})}),u.jsx(Ot,{})]})}}),u.jsx(cn,{control:i.control,name:"address",render:({field:C})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Dirección"}),u.jsx(En,{children:u.jsx(Qr,{autoComplete:"address",onChange:b=>{C.onChange(b),r(S=>({...S,address:b.target.value}))},value:C.value})}),u.jsx(Ot,{})]})}),u.jsx(cn,{control:i.control,name:"address_dpto",render:({field:C})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Número depto / Casa"}),u.jsx(En,{children:u.jsx(Qr,{onChange:b=>{C.onChange(b),r(S=>({...S,address_dpto:b.target.value}))},value:C.value,maxLength:80})}),u.jsx(Ot,{})]})}),u.jsx(cn,{control:i.control,name:"aditional_notes",render:({field:C})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Información adicional"}),u.jsx(En,{children:u.jsx(Pf,{onChange:b=>{C.onChange(b),r(S=>({...S,aditional_notes:b.target.value}))},value:C.value,className:"text-base md:text-sm"})}),u.jsx(Ra,{children:"¿Alguna información extra que nos ayude a entregar tu pedido más facil y rápido?"}),u.jsx(Ot,{})]})}),u.jsxs("div",{className:"flex justify-between py-4 gap-4",children:[u.jsx(tt,{type:"button",variant:"outline",className:"w-full sm:w-fit",onClick:()=>s({to:"/register/subscriptions"}),children:"Volver"}),u.jsx(tt,{type:"submit",className:"w-full sm:w-fit",children:"Siguiente"})]})]})})}},R9e=If("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{churn:"bg-background text-foreground",default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),g6=_.forwardRef(({className:t,variant:e,...n},r)=>u.jsx("div",{ref:r,role:"alert",className:ve(R9e({variant:e}),t),...n}));g6.displayName="Alert";const lC=_.forwardRef(({className:t,...e},n)=>u.jsx("h5",{ref:n,className:ve("mb-1 font-medium leading-none tracking-tight",t),...e}));lC.displayName="AlertTitle";const v6=_.forwardRef(({className:t,...e},n)=>u.jsx("div",{ref:n,className:ve("text-sm [&_p]:leading-relaxed",t),...e}));v6.displayName="AlertDescription";const y6=({title:t,message:e,variant:n="default"})=>u.jsxs(g6,{variant:n,className:n==="default"?"bg-primary/10 border-primary":"bg-red-500/10",children:[u.jsx(lC,{children:t}),u.jsx(v6,{children:e})]}),N9e="/assets/carrot.BOZ2yMq1.png",M9e="/assets/corn.C4asiuE6.png",k9e="/assets/tomato.Dp28bh5Q.png",D9e=[N9e,M9e,k9e],er=({message:t,size:e="normal"})=>{const[n,r]=_.useState(!1),[s,i]=_.useState(!1);_.useEffect(()=>{const a=setTimeout(()=>{r(!0)},1e4);return()=>clearTimeout(a)},[]),_.useEffect(()=>{const a=setTimeout(()=>{i(!0)},2e4);return()=>clearTimeout(a)},[]);const o=a=>{if(!Array.isArray(a)||a.length===0)throw new Error("The provided input is not a non-empty array.");const c=Math.floor(Math.random()*a.length);return a[c]};return u.jsxs(u.Fragment,{children:[!s&&u.jsx("div",{className:"flex justify-center p-4",children:u.jsx("div",{className:ve("animate-spin",e==="normal"&&"w-20 h-20",e==="small"&&"w-10 h-10"),children:u.jsx("img",{className:"w-full",src:o(D9e),alt:"Imagen de una verdura girando"})})}),t&&!n&&!s&&u.jsx("p",{className:"text-center text-muted-foreground",children:t}),n&&!s&&u.jsx("div",{children:u.jsx("div",{className:"text-center text-muted-foreground",children:"🤔 Está tomando más tiempo del esperado."})}),s&&u.jsxs("div",{children:[u.jsx("div",{className:"text-center text-muted-foreground",children:"💥 Parece que algo salio mal. ¿Podrias intentar recargar la página?"}),u.jsx("div",{className:"flex justify-center py-2",children:u.jsx(tt,{onClick:()=>location.reload(),children:"Recargar"})})]})]})},_q=_.createContext(void 0),O9e=({children:t})=>{const[e,n]=_.useState(!1);return u.jsx(_q.Provider,{value:{isOpen:e,setMenu:n},children:t})},$9e=()=>{const t=_.useContext(_q);if(t===void 0)throw new Error("useMobileMenu debe ser usado dentro de un MobileMenuProvider");return t},Eq=()=>{const{isOpen:t,setMenu:e}=$9e();return{isOpen:t,openMenu:()=>e(!0),closeMenu:()=>e(!1),toggleMenu:()=>e(!t)}},x6=[{title:"Inicio",href:"/user/home",icon:Afe,group:"Inicio",mobilePrimary:!0},{title:"Tienda",href:"/user/store",icon:Ufe,group:"Compras",mobilePrimary:!0},{title:"Suscripción",href:"/user/subscription",icon:c7,group:"Suscripción",mobilePrimary:!0},{title:"Pedidos",href:"/user/orders",icon:zfe,group:"Compras",mobilePrimary:!0},{title:"Personaliza tu caja",href:"/user/subscription/box",icon:c7,group:"Suscripción"},{title:"Editar suscripción",href:"/user/subscription/edit",icon:c7,group:"Suscripción"},{title:"Métodos de pago",href:"/user/payment-methods",icon:vfe,group:"Cuenta"},{title:"Perfil",href:"/user/account",icon:Yfe,group:"Cuenta"},{title:"Direcciones",href:"/user/shipping/edit",icon:Ofe,group:"Cuenta"},{title:"Cupones",href:"/user/discounts",icon:Gfe,group:"Promociones"},{title:"Invita y gana",href:"/user/referral",icon:Cfe,group:"Promociones"},{title:"Cerrar sesión",href:"/logout",icon:kfe,group:"Sesión"}],F9e=x6.filter(t=>t.mobilePrimary),j9e=x6.filter(t=>!t.mobilePrimary),bq=t=>x6.filter(n=>t===n.href||t.startsWith(`${n.href}/`)).sort((n,r)=>r.href.length-n.href.length)[0]?.href,L9e=["Inicio","Suscripción","Compras","Cuenta","Promociones","Sesión"],Sq=()=>{const{closeMenu:t}=Eq(),e=$r({select:r=>r.location.pathname}),n=bq(e);return u.jsx("nav",{className:"mt-4 space-y-5","aria-label":"Navegación de usuario",children:L9e.map(r=>{const s=x6.filter(i=>i.group===r);return s.length===0?null:u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"px-3 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:r}),u.jsx("ul",{className:"space-y-1",children:s.map(i=>{const o=i.icon,a=n===i.href;return u.jsx("li",{children:u.jsxs(Bs,{to:i.href,onClick:t,className:ve("flex min-h-11 items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors","text-muted-foreground hover:bg-primary/10 hover:text-primary",a&&"bg-primary/10 text-primary"),children:[u.jsx(o,{className:"h-5 w-5 shrink-0"}),u.jsx("span",{children:i.title})]})},i.href)})})]},r)})})},z9e=()=>
vendor: 4,098 bytes, line 3445
3445u.jsx("nav",{className:ve("hidden lg:flex","sticky top-6 max-w-full flex-col space-x-0 space-y-1 rounded-lg border bg-white/85 p-3 shadow-sm backdrop-blur"),children:u.jsx(Sq,{})});function V9e(t,e){return _.useReducer((n,r)=>e[n][r]??n,t)}var cC="ScrollArea",[Cq,fXe]=jr(cC),[B9e,Xi]=Cq(cC),Tq=_.forwardRef((t,e)=>{const{__scopeScrollArea:n,type:r="hover",dir:s,scrollHideDelay:i=600,...o}=t,[a,c]=_.useState(null),[d,p]=_.useState(null),[m,v]=_.useState(null),[w,E]=_.useState(null),[C,b]=_.useState(null),[S,P]=_.useState(0),[R,z]=_.useState(0),[O,F]=_.useState(!1),[D,I]=_.useState(!1),T=yt(e,j=>c(j)),k=Of(s);return u.jsx(B9e,{scope:n,type:r,dir:k,scrollHideDelay:i,scrollArea:a,viewport:d,onViewportChange:p,content:m,onContentChange:v,scrollbarX:w,onScrollbarXChange:E,scrollbarXEnabled:O,onScrollbarXEnabledChange:F,scrollbarY:C,onScrollbarYChange:b,scrollbarYEnabled:D,onScrollbarYEnabledChange:I,onCornerWidthChange:P,onCornerHeightChange:z,children:u.jsx(Le.div,{dir:k,...o,ref:T,style:{position:"relative","--radix-scroll-area-corner-width":S+"px","--radix-scroll-area-corner-height":R+"px",...t.style}})})});Tq.displayName=cC;var Aq="ScrollAreaViewport",Iq=_.forwardRef((t,e)=>{const{__scopeScrollArea:n,children:r,nonce:s,...i}=t,o=Xi(Aq,n),a=_.useRef(null),c=yt(e,a,o.onViewportChange);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),u.jsx(Le.div,{"data-radix-scroll-area-viewport":"",...i,ref:c,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...t.style},children:u.jsx("div",{ref:o.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});Iq.displayName=Aq;var Fa="ScrollAreaScrollbar",uC=_.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Xi(Fa,t.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:o}=s,a=t.orientation==="horizontal";return _.useEffect(()=>(a?i(!0):o(!0),()=>{a?i(!1):o(!1)}),[a,i,o]),s.type==="hover"?u.jsx(H9e,{...r,ref:e,forceMount:n}):s.type==="scroll"?u.jsx(U9e,{...r,ref:e,forceMount:n}):s.type==="auto"?u.jsx(Pq,{...r,ref:e,forceMount:n}):s.type==="always"?u.jsx(dC,{...r,ref:e}):null});uC.displayName=Fa;var H9e=_.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Xi(Fa,t.__scopeScrollArea),[i,o]=_.useState(!1);return _.useEffect(()=>{const a=s.scrollArea;let c=0;if(a){const d=()=>{window.clearTimeout(c),o(!0)},p=()=>{c=window.setTimeout(()=>o(!1),s.scrollHideDelay)};return a.addEventListener("pointerenter",d),a.addEventListener("pointerleave",p),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",d),a.removeEventListener("pointerleave",p)}}},[s.scrollArea,s.scrollHideDelay]),u.jsx(gr,{present:n||i,children:u.jsx(Pq,{"data-state":i?"visible":"hidden",...r,ref:e})})}),U9e=_.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Xi(Fa,t.__scopeScrollArea),i=t.orientation==="horizontal",o=_6(()=>c("SCROLL_END"),100),[a,c]=V9e("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return _.useEffect(()=>{if(a==="idle"){const d=window.setTimeout(()=>c("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(d)}},[a,s.scrollHideDelay,c]),_.useEffect(()=>{const d=s.viewport,p=i?"scrollLeft":"scrollTop";if(d){let m=d[p];const v=()=>{const w=d[p];m!==w&&(c("SCROLL"),o()),m=w};return d.addEventListener("scroll",v),()=>d.removeEventListener("scroll",v)}},[s.viewport,i,c,o]),u.jsx(gr,{present:n||a!=="hidden",children:u.jsx(dC,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:e,onPointerEnter:ke(t.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:ke(t.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Pq=_.forwardRef((t,e)=>{const n=Xi(Fa,t.__scopeScrollArea),{forceMount:r,...s}=t,[i,o]=_.useState(!1),a=t.orientation==="horizontal",c=_6(()=>
vendor: 6,012 bytes, line 3445
3445{if(n.viewport){const d=n.viewport.offsetWidth<n.viewport.scrollWidth,p=n.viewport.offsetHeight<n.viewport.scrollHeight;o(a?d:p)}},10);return lm(n.viewport,c),lm(n.content,c),u.jsx(gr,{present:r||i,children:u.jsx(dC,{"data-state":i?"visible":"hidden",...s,ref:e})})}),dC=_.forwardRef((t,e)=>{const{orientation:n="vertical",...r}=t,s=Xi(Fa,t.__scopeScrollArea),i=_.useRef(null),o=_.useRef(0),[a,c]=_.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Dq(a.viewport,a.content),p={...r,sizes:a,onSizesChange:c,hasThumb:d>0&&d<1,onThumbChange:v=>i.current=v,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:v=>o.current=v};function m(v,w){return Q9e(v,o.current,a,w)}return n==="horizontal"?u.jsx(W9e,{...p,ref:e,onThumbPositionChange:()=>{if(s.viewport&&i.current){const v=s.viewport.scrollLeft,w=bk(v,a,s.dir);i.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:v=>{s.viewport&&(s.viewport.scrollLeft=v)},onDragScroll:v=>{s.viewport&&(s.viewport.scrollLeft=m(v,s.dir))}}):n==="vertical"?u.jsx(q9e,{...p,ref:e,onThumbPositionChange:()=>{if(s.viewport&&i.current){const v=s.viewport.scrollTop,w=bk(v,a);i.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:v=>{s.viewport&&(s.viewport.scrollTop=v)},onDragScroll:v=>{s.viewport&&(s.viewport.scrollTop=m(v))}}):null}),W9e=_.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,...s}=t,i=Xi(Fa,t.__scopeScrollArea),[o,a]=_.useState(),c=_.useRef(null),d=yt(e,c,i.onScrollbarXChange);return _.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),u.jsx(Nq,{"data-orientation":"horizontal",...s,ref:d,sizes:n,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":w6(n)+"px",...t.style},onThumbPointerDown:p=>t.onThumbPointerDown(p.x),onDragScroll:p=>t.onDragScroll(p.x),onWheelScroll:(p,m)=>{if(i.viewport){const v=i.viewport.scrollLeft+p.deltaX;t.onWheelScroll(v),$q(v,m)&&p.preventDefault()}},onResize:()=>{c.current&&i.viewport&&o&&r({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:F4(o.paddingLeft),paddingEnd:F4(o.paddingRight)}})}})}),q9e=_.forwardRef((t,e)=>{const{sizes:n,onSizesChange:r,...s}=t,i=Xi(Fa,t.__scopeScrollArea),[o,a]=_.useState(),c=_.useRef(null),d=yt(e,c,i.onScrollbarYChange);return _.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),u.jsx(Nq,{"data-orientation":"vertical",...s,ref:d,sizes:n,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":w6(n)+"px",...t.style},onThumbPointerDown:p=>t.onThumbPointerDown(p.y),onDragScroll:p=>t.onDragScroll(p.y),onWheelScroll:(p,m)=>{if(i.viewport){const v=i.viewport.scrollTop+p.deltaY;t.onWheelScroll(v),$q(v,m)&&p.preventDefault()}},onResize:()=>{c.current&&i.viewport&&o&&r({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:F4(o.paddingTop),paddingEnd:F4(o.paddingBottom)}})}})}),[G9e,Rq]=Cq(Fa),Nq=_.forwardRef((t,e)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:s,onThumbChange:i,onThumbPointerUp:o,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:d,onWheelScroll:p,onResize:m,...v}=t,w=Xi(Fa,n),[E,C]=_.useState(null),b=yt(e,T=>C(T)),S=_.useRef(null),P=_.useRef(""),R=w.viewport,z=r.content-r.viewport,O=An(p),F=An(c),D=_6(m,10);function I(T){if(S.current){const k=T.clientX-S.current.left,j=T.clientY-S.current.top;d({x:k,y:j})}}return _.useEffect(()=>{const T=k=>{const j=k.target;E?.contains(j)&&O(k,z)};return document.addEventListener("wheel",T,{passive:!1}),()=>document.removeEventListener("wheel",T,{passive:!1})},[R,E,z,O]),_.useEffect(F,[r,F]),lm(E,D),lm(w.content,D),u.jsx(G9e,{scope:n,scrollbar:E,hasThumb:s,onThumbChange:An(i),onThumbPointerUp:An(o),onThumbPositionChange:F,onThumbPointerDown:An(a),children:u.jsx(Le.div,{...v,ref:b,style:{position:"absolute",...v.style},onPointerDown:ke(t.onPointerDown,T=>{T.button===0&&(T.target.setPointerCapture(T.pointerId),S.current=E.getBoundingClientRect(),P.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),I(T))}),onPointerMove:ke(t.onPointerMove,I),onPointerUp:ke(t.onPointerUp,T=>{const k=T.target;k.hasPointerCapture(T.pointerId)&&k.releasePointerCapture(T.pointerId),document.body.style.webkitUserSelect=P.current,w.viewport&&(w.viewport.style.scrollBehavior=""),S.current=null})})})}),$4="ScrollAreaThumb",Mq=_.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Rq($4,t.__scopeScrollArea);return u.jsx(gr,{present:n||s.hasThumb,children:u.jsx(K9e,{ref:e,...r})})}),K9e=_.forwardRef((t,e)=>{const{__scopeScrollArea:n,style:r,...s}=t,i=Xi($4,n),o=Rq($4,n),{onThumbPositionChange:a}=o,c=yt(e,m=>o.onThumbChange(m)),d=_.useRef(void 0),p=_6(()=>{d.current&&(d.current(),d.current=void 0)},100);return _.useEffect(()=>{const m=i.viewport;if(m){const v=()=>{if(p(),!d.current){const w=X9e(m,a);d.current=w,a()}};return a(),m.addEventListener("scroll",v),()=>m.removeEventListener("scroll",v)}},[i.viewport,p,a]),u.jsx(Le.div,{"data-state":o.hasThumb?"visible":"hidden",...s,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ke(t.onPointerDownCapture,m=>{const w=m.target.getBoundingClientRect(),E=m.clientX-w.left,C=m.clientY-w.top;o.onThumbPointerDown({x:E,y:C})}),onPointerUp:ke(t.onPointerUp,o.onThumbPointerUp)})});Mq.displayName=$4;var fC="ScrollAreaCorner",kq=_.forwardRef((t,e)=>{const n=Xi(fC,t.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?u.jsx(Y9e,{...t,ref:e}):null});kq.displayName=fC;var Y9e=_.forwardRef((t,e)=>{const{__scopeScrollArea:n,...r}=t,s=Xi(fC,n),[i,o]=_.useState(0),[a,c]=_.useState(0),d=!!(i&&a);return lm(s.scrollbarX,()=>{const p=s.scrollbarX?.offsetHeight||0;
3445s.onCornerHeightChange(p),c(p)}),lm(s.scrollbarY,()=>{const p=s.scrollbarY?.offsetWidth||0;s.onCornerWidthChange(p),o(p)}),d?u.jsx(Le.div,{...r,ref:e,style:{width:i,height:a,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function F4(t){return t?parseInt(t,10):0}function Dq(t,e){const n=t/e;return isNaN(n)?0:n}function w6(t){const e=Dq(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function Q9e(t,e,n,r="ltr"){const s=w6(n),i=s/2,o=e||i,a=s-o,c=n.scrollbar.paddingStart+o,d=n.scrollbar.size-n.scrollbar.paddingEnd-a,p=n.content-n.viewport,m=r==="ltr"?[0,p]:[p*-1,0];return Oq([c,d],m)(t)}function bk(t,e,n="ltr"){const r=w6(e),s=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=e.scrollbar.size-s,o=e.content-e.viewport,a=i-r,c=n==="ltr"?[0,o]:[o*-1,0],d=fE(t,c);return Oq([0,o],[0,a])(d)}function Oq(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function $q(t,e){return t>0&&t<e}var X9e=(t,e=()=>{})=>{let n={left:t.scrollLeft,top:t.scrollTop},r=0;return function s(){const i={left:t.scrollLeft,top:t.scrollTop},o=n.left!==i.left,a=n.top!==i.top;(o||a)&&e(),n=i,r=window.requestAnimationFrame(s)}(),()=>window.cancelAnimationFrame(r)};function _6(t,e){const n=An(t),r=_.useRef(0);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),_.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,e)},[n,e])}function lm(t,e){const n=An(e);Zn(()=>{let r=0;if(t){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return s.observe(t),()=>{window.cancelAnimationFrame(r),s.unobserve(t)}}},[t,n])}var Fq=Tq,Z9e=Iq,J9e=kq;const E6=_.forwardRef(({className:t,children:e,...n},r)=>u.jsxs(Fq,{ref:r,className:ve("relative overflow-hidden",t),...n,children:[u.jsx(Z9e,{className:"h-full w-full rounded-[inherit]",children:e}),u.jsx(jq,{}),u.jsx(J9e,{})]}));E6.displayName=Fq.displayName;const jq=_.forwardRef(({className:t,orientation:e="vertical",...n},r)=>u.jsx(uC,{ref:r,orientation:e,className:ve("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...n,children:u.jsx(Mq,{className:"relative flex-1 rounded-full bg-border"})}));jq.displayName=uC.displayName;const Lq=_.forwardRef(({className:t,...e},n)=>u.jsx("div",{className:"relative w-full overflow-auto",children:u.jsx("table",{ref:n,className:ve("w-full caption-bottom text-sm",t),...e})}));Lq.displayName="Table";const zq=_.forwardRef(({className:t,...e},n)=>u.jsx("thead",{ref:n,className:ve("[&_tr]:border-b",t),...e}));zq.displayName="TableHeader";const Vq=_.forwardRef(({className:t,...e},n)=>u.jsx("tbody",{ref:n,className:ve("[&_tr:last-child]:border-0",t),...e}));Vq.displayName="TableBody";const ebe=_.forwardRef(({className:t,...e},n)=>u.jsx("tfoot",{ref:n,className:ve("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",t),...e}));ebe.displayName="TableFooter";const cy=_.forwardRef(({className:t,...e},n)=>u.jsx("tr",{ref:n,className:ve("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t),...e}));cy.displayName="TableRow";const uy=_.forwardRef(({className:t,...e},n)=>u.jsx("th",{ref:n,className:ve("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e}));uy.displayName="TableHead";const n0=_.forwardRef(({className:t,...e},n)=>u.jsx("td",{ref:n,className:ve("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e}));n0.displayName="TableCell";const tbe=_.forwardRef(({className:t,...e},n)=>u.jsx("caption",{ref:n,className:ve("mt-4 text-sm text-muted-foreground",t),...e}));tbe.displayName="TableCaption";const Ul=(t,e="CLP",n="es-CL")=>new Intl.NumberFormat(n,{style:"currency",currency:e}).format(t),j1=(t,e="CLP",n="es-CL")=>{if(!t.includes("$"))return`$${t}`;const[r,s]=t.split("$"),i=Number(s);return(t.includes("-")?"-":"")+Ul(i,e,n)};var[b6,hXe]=jr("Tooltip",[Rm]),S6=Rm(),Bq="TooltipProvider",nbe=700,yE="tooltip.open",[rbe,hC]=b6(Bq),Hq=t=>{const{__scopeTooltip:e,delayDuration:n=nbe,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=t,o=_.useRef(!0),a=_.useRef(!1),c=_.useRef(0);return _.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),u.jsx(rbe,{scope:e,isOpenDelayedRef:o,delayDuration:n,onOpen:_.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:_.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>
vendor: 6,959 bytes, line 3445
3445o.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:_.useCallback(d=>{a.current=d},[]),disableHoverableContent:s,children:i})};Hq.displayName=Bq;var d2="Tooltip",[sbe,ug]=b6(d2),Uq=t=>{const{__scopeTooltip:e,children:n,open:r,defaultOpen:s,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=t,c=hC(d2,t.__scopeTooltip),d=S6(e),[p,m]=_.useState(null),v=qs(),w=_.useRef(0),E=o??c.disableHoverableContent,C=a??c.delayDuration,b=_.useRef(!1),[S,P]=As({prop:r,defaultProp:s??!1,onChange:D=>{D?(c.onOpen(),document.dispatchEvent(new CustomEvent(yE))):c.onClose(),i?.(D)},caller:d2}),R=_.useMemo(()=>S?b.current?"delayed-open":"instant-open":"closed",[S]),z=_.useCallback(()=>{window.clearTimeout(w.current),w.current=0,b.current=!1,P(!0)},[P]),O=_.useCallback(()=>{window.clearTimeout(w.current),w.current=0,P(!1)},[P]),F=_.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{b.current=!0,P(!0),w.current=0},C)},[C,P]);return _.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),u.jsx(tS,{...d,children:u.jsx(sbe,{scope:e,contentId:v,open:S,stateAttribute:R,trigger:p,onTriggerChange:m,onTriggerEnter:_.useCallback(()=>{c.isOpenDelayedRef.current?F():z()},[c.isOpenDelayedRef,F,z]),onTriggerLeave:_.useCallback(()=>{E?O():(window.clearTimeout(w.current),w.current=0)},[O,E]),onOpen:z,onClose:O,disableHoverableContent:E,children:n})})};Uq.displayName=d2;var xE="TooltipTrigger",Wq=_.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=ug(xE,n),i=hC(xE,n),o=S6(n),a=_.useRef(null),c=yt(e,a,s.onTriggerChange),d=_.useRef(!1),p=_.useRef(!1),m=_.useCallback(()=>d.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),u.jsx($5,{asChild:!0,...o,children:u.jsx(Le.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:ke(t.onPointerMove,v=>{v.pointerType!=="touch"&&!p.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),p.current=!0)}),onPointerLeave:ke(t.onPointerLeave,()=>{s.onTriggerLeave(),p.current=!1}),onPointerDown:ke(t.onPointerDown,()=>{s.open&&s.onClose(),d.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:ke(t.onFocus,()=>{d.current||s.onOpen()}),onBlur:ke(t.onBlur,s.onClose),onClick:ke(t.onClick,s.onClose)})})});Wq.displayName=xE;var pC="TooltipPortal",[ibe,obe]=b6(pC,{forceMount:void 0}),qq=t=>{const{__scopeTooltip:e,forceMount:n,children:r,container:s}=t,i=ug(pC,e);return u.jsx(ibe,{scope:e,forceMount:n,children:u.jsx(gr,{present:n||i.open,children:u.jsx(bm,{asChild:!0,container:s,children:r})})})};qq.displayName=pC;var cm="TooltipContent",Gq=_.forwardRef((t,e)=>{const n=obe(cm,t.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=t,o=ug(cm,t.__scopeTooltip);return u.jsx(gr,{present:r||o.open,children:o.disableHoverableContent?u.jsx(Kq,{side:s,...i,ref:e}):u.jsx(abe,{side:s,...i,ref:e})})}),abe=_.forwardRef((t,e)=>{const n=ug(cm,t.__scopeTooltip),r=hC(cm,t.__scopeTooltip),s=_.useRef(null),i=yt(e,s),[o,a]=_.useState(null),{trigger:c,onClose:d}=n,p=s.current,{onPointerInTransitChange:m}=r,v=_.useCallback(()=>{a(null),m(!1)},[m]),w=_.useCallback((E,C)=>{const b=E.currentTarget,S={x:E.clientX,y:E.clientY},P=fbe(S,b.getBoundingClientRect()),R=hbe(S,P),z=pbe(C.getBoundingClientRect()),O=gbe([...R,...z]);a(O),m(!0)},[m]);return _.useEffect(()=>()=>v(),[v]),_.useEffect(()=>{if(c&&p){const E=b=>w(b,p),C=b=>w(b,c);return c.addEventListener("pointerleave",E),p.addEventListener("pointerleave",C),()=>{c.removeEventListener("pointerleave",E),p.removeEventListener("pointerleave",C)}}},[c,p,w,v]),_.useEffect(()=>{if(o){const E=C=>{const b=C.target,S={x:C.clientX,y:C.clientY},P=c?.contains(b)||p?.contains(b),R=!mbe(S,o);P?v():R&&(v(),d())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[c,p,o,d,v]),u.jsx(Kq,{...t,ref:i})}),[lbe,cbe]=b6(d2,{isInside:!1}),ube=mL("TooltipContent"),Kq=_.forwardRef((t,e)=>{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,c=ug(cm,n),d=S6(n),{onClose:p}=c;return _.useEffect(()=>(document.addEventListener(yE,p),()=>document.removeEventListener(yE,p)),[p]),_.useEffect(()=>{if(c.trigger){const m=v=>{v.target?.contains(c.trigger)&&p()};return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[c.trigger,p]),u.jsx(Af,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:m=>m.preventDefault(),onDismiss:p,children:u.jsxs(nS,{"data-state":c.stateAttribute,...d,...a,ref:e,style:{...a.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:[u.jsx(ube,{children:r}),u.jsx(lbe,{scope:n,isInside:!0,children:u.jsx(wL,{id:c.contentId,role:"tooltip",children:s||r})})]})})});Gq.displayName=cm;var Yq="TooltipArrow",dbe=_.forwardRef((t,e)=>{const{__scopeTooltip:n,...r}=t,s=S6(n);return cbe(Yq,n).isInside?null:u.jsx(rS,{...s,...r,ref:e})});dbe.displayName=Yq;function fbe(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.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 hbe(t,e,n=5){const r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n});break}return r}function pbe(t){const{top:e,right:n,bottom:r,left:s}=t;return[{x:s,y:e},{x:n,y:e},{x:n,y:r},{x:s,y:r}]}function mbe(t,e){const{x:n,y:r}=t;let s=!1;for(let i=0,o=e.length-1;i<e.length;o=i++){const a=e[i],c=e[o],d=a.x,p=a.y,m=c.x,v=c.y;p>r!=v>r&&n<(m-d)*(r-p)/(v-p)+d&&(s=!s)}return s}function gbe(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),vbe(e)}function vbe(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const s=t[r];for(;e.length>=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const s=t[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(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}var ybe=Hq,xbe=Uq,wbe=Wq,_be=qq,Qq=Gq;const pXe=ybe,mXe=xbe,gXe=wbe,Ebe=_.forwardRef(({className:t,sideOffset:e=4,...n},r)=>
3445u.jsx(_be,{children:u.jsx(Qq,{ref:r,sideOffset:e,className:ve("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground 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 origin-[--radix-tooltip-content-transform-origin]",t),...n})}));Ebe.displayName=Qq.displayName;const bbe=wn({pickup_name:st({required_error:"⚠️ Necesitamos la comuna para saber que puntos de retiro mostrarte"}),pickup_district:st({required_error:"⚠️ Necesitamos el punto de retiro para saber a donde enviar tus cajas"})}),Sbe=({onSubmit:t,companyRef:e,initialData:n})=>{const{setRegistryData:r}=$u(),s=Jr(),[i,o]=_.useState(n?.pickup_district),[a,c]=_.useState(n?.pickup_name),{data:d,isLoading:p,isError:m,error:v,refetch:w}=lg(e),E=d?.data,C=xi({resolver:_i(bbe),defaultValues:n??{}});function b(S){t(S)}if(p)return u.jsx(er,{message:"🔍 Buscando información puntos de retiro..."});if(m)return u.jsx(Hn,{title:"No se pudo obtener la información de los puntos de retiro.",message:v.message,retry:w,error:v});if(E){const{pickup_point_district_names:S,pickup_points:P,districts:R}=E,z=P.filter(F=>F.district_name===i),O=z.find(F=>F.name===a);return u.jsx(wi,{...C,children:u.jsxs("form",{onSubmit:C.handleSubmit(b),className:"space-y-6",children:[u.jsx(cn,{control:C.control,name:"pickup_district",render:({field:F})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Comuna"}),u.jsxs(Do,{onValueChange:D=>{F.onChange(D),o(D),r(I=>({...I,pickup_district:D,shipping_entity_id:R.find(T=>T.district_name===D)?.id}))},defaultValue:F.value,children:[u.jsx(En,{children:u.jsx(Ui,{children:u.jsx(Oo,{placeholder:"Selecciona una comuna"})})}),u.jsx(Wi,{children:S.map(D=>u.jsx(qi,{value:D,children:D},D))})]}),u.jsx(Ot,{})]})}),u.jsx(cn,{control:C.control,name:"pickup_name",render:({field:F})=>{const D=E.pickup_points.find(I=>I.name===F.value);return u.jsxs(un,{children:[u.jsx(gn,{children:"Punto de retiro"}),u.jsxs(Do,{onValueChange:I=>{F.onChange(I),c(I),r(T=>({...T,pickup_name:I}))},defaultValue:F.value,disabled:i===void 0,children:[u.jsx(En,{children:u.jsx(Ui,{children:u.jsx(Oo,{placeholder:"Selecciona un punto de retiro"})})}),u.jsx(Wi,{children:z.map(I=>u.jsx(qi,{value:I.name,children:I.name},I.name))})]}),D&&u.jsxs(Ra,{children:["Costo de envío:"," ",D.pickup_price]}),u.jsx(Ot,{})]})}}),O&&u.jsx("div",{className:"mt-4",children:u.jsx(y6,{title:u.jsxs("p",{className:"text-base",children:["📍",a]}),message:u.jsxs("div",{className:"w-full",children:[u.jsxs("div",{className:"mb-2",children:[u.jsxs("a",{className:"underline decoration-orange-500 text-primary font-semibold",href:`https://maps.google.com/maps?hl=es&q=${O?.address} - ${i}`,children:[O?.address," -"," ",i]}),u.jsxs("p",{children:["Horario de atención:"," ",u.jsxs("strong",{className:"text-primary",children:[O?.humanized_shipping_days," ","|"," ",O?.opening_hours]})]})]}),u.jsx("iframe",{width:"100%",height:"300",title:`Mapa de ubicación de ${O?.address}`,src:`https://maps.google.com/maps?width=400&height=400&hl=es&q=${O?.address} - ${O.district_name}&t=&z=14&ie=UTF8&iwloc=B&output=embed`})]})})}),u.jsxs("div",{className:"flex justify-between py-4 gap-4",children:[u.jsx(tt,{type:"button",variant:"outline",className:"w-full sm:w-fit",onClick:()=>s({to:"/register/subscriptions"}),children:"Volver"}),u.jsx(tt,{type:"submit",className:"w-full sm:w-fit",children:"Siguiente"})]})]})})}},Hn=({title:t,message:e,retry:n,error:r})=>(_.useEffect(()=>{r&&hu(r)},[r]),u.jsxs(g6,{variant:"default",className:"bg-red-100/50 flex flex-col items-center",children:[u.jsx(lC,{className:"text-base text-center",children:t}),u.jsx(v6,{children:e}),n&&u.jsx(tt,{className:"mt-4",variant:"outline",onClick:n,children:"Reintentar"})]})),$f=_.forwardRef(({className:t,...e},n)=>u.jsx("div",{ref:n,className:ve("rounded-xl border bg-card text-card-foreground shadow",t),...e}));
vendor: 6,980 bytes, line 3445
3445$f.displayName="Card";const dg=_.forwardRef(({className:t,...e},n)=>u.jsx("div",{ref:n,className:ve("flex flex-col space-y-1.5 p-6",t),...e}));dg.displayName="CardHeader";const fg=_.forwardRef(({className:t,...e},n)=>u.jsx("div",{ref:n,className:ve("font-semibold leading-none tracking-tight",t),...e}));fg.displayName="CardTitle";const hg=_.forwardRef(({className:t,...e},n)=>u.jsx("div",{ref:n,className:ve("text-sm text-muted-foreground",t),...e}));hg.displayName="CardDescription";const Ff=_.forwardRef(({className:t,...e},n)=>u.jsx("div",{ref:n,className:ve("p-6 pt-0",t),...e}));Ff.displayName="CardContent";const C6=_.forwardRef(({className:t,...e},n)=>u.jsx("div",{ref:n,className:ve("flex items-center p-6 pt-0",t),...e}));C6.displayName="CardFooter";var B7="rovingFocusGroup.onEntryFocus",Cbe={bubbles:!1,cancelable:!0},pg="RovingFocusGroup",[wE,Xq,Tbe]=Em(pg),[Abe,T6]=jr(pg,[Tbe]),[Ibe,Pbe]=Abe(pg),Zq=_.forwardRef((t,e)=>u.jsx(wE.Provider,{scope:t.__scopeRovingFocusGroup,children:u.jsx(wE.Slot,{scope:t.__scopeRovingFocusGroup,children:u.jsx(Rbe,{...t,ref:e})})}));Zq.displayName=pg;var Rbe=_.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:p=!1,...m}=t,v=_.useRef(null),w=yt(e,v),E=Of(i),[C,b]=As({prop:o,defaultProp:a??null,onChange:c,caller:pg}),[S,P]=_.useState(!1),R=An(d),z=Xq(n),O=_.useRef(!1),[F,D]=_.useState(0);return _.useEffect(()=>{const I=v.current;if(I)return I.addEventListener(B7,R),()=>I.removeEventListener(B7,R)},[R]),u.jsx(Ibe,{scope:n,orientation:r,dir:E,loop:s,currentTabStopId:C,onItemFocus:_.useCallback(I=>b(I),[b]),onItemShiftTab:_.useCallback(()=>P(!0),[]),onFocusableItemAdd:_.useCallback(()=>D(I=>I+1),[]),onFocusableItemRemove:_.useCallback(()=>D(I=>I-1),[]),children:u.jsx(Le.div,{tabIndex:S||F===0?-1:0,"data-orientation":r,...m,ref:w,style:{outline:"none",...t.style},onMouseDown:ke(t.onMouseDown,()=>{O.current=!0}),onFocus:ke(t.onFocus,I=>{const T=!O.current;if(I.target===I.currentTarget&&T&&!S){const k=new CustomEvent(B7,Cbe);if(I.currentTarget.dispatchEvent(k),!k.defaultPrevented){const j=z().filter(q=>q.focusable),L=j.find(q=>q.active),V=j.find(q=>q.id===C),G=[L,V,...j].filter(Boolean).map(q=>q.ref.current);tG(G,p)}}O.current=!1}),onBlur:ke(t.onBlur,()=>P(!1))})})}),Jq="RovingFocusGroupItem",eG=_.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:s=!1,tabStopId:i,children:o,...a}=t,c=qs(),d=i||c,p=Pbe(Jq,n),m=p.currentTabStopId===d,v=Xq(n),{onFocusableItemAdd:w,onFocusableItemRemove:E,currentTabStopId:C}=p;return _.useEffect(()=>{if(r)return w(),()=>E()},[r,w,E]),u.jsx(wE.ItemSlot,{scope:n,id:d,focusable:r,active:s,children:u.jsx(Le.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...a,ref:e,onMouseDown:ke(t.onMouseDown,b=>{r?p.onItemFocus(d):b.preventDefault()}),onFocus:ke(t.onFocus,()=>p.onItemFocus(d)),onKeyDown:ke(t.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const S=kbe(b,p.orientation,p.dir);if(S!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let R=v().filter(z=>z.focusable).map(z=>z.ref.current);if(S==="last")R.reverse();else if(S==="prev"||S==="next"){S==="prev"&&R.reverse();const z=R.indexOf(b.currentTarget);R=p.loop?Dbe(R,z+1):R.slice(z+1)}setTimeout(()=>tG(R))}}),children:typeof o=="function"?o({isCurrentTabStop:m,hasTabStop:C!=null}):o})})});eG.displayName=Jq;var Nbe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mbe(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function kbe(t,e,n){const r=Mbe(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Nbe[r]}function tG(t,e=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}function Dbe(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var nG=Zq,rG=eG,mC="Radio",[Obe,sG]=jr(mC),[$be,Fbe]=Obe(mC),iG=_.forwardRef((t,e)=>{const{__scopeRadio:n,name:r,checked:s=!1,required:i,disabled:o,value:a="on",onCheck:c,form:d,...p}=t,[m,v]=_.useState(null),w=yt(e,b=>v(b)),E=_.useRef(!1),C=m?d||!!m.closest("form"):!0;return u.jsxs($be,{scope:n,checked:s,disabled:o,children:[u.jsx(Le.button,{type:"button",role:"radio","aria-checked":s,"data-state":cG(s),"data-disabled":o?"":void 0,disabled:o,value:a,...p,ref:w,onClick:ke(t.onClick,b=>{s||c?.(),C&&(E.current=b.isPropagationStopped(),E.current||b.stopPropagation())})}),C&&u.jsx(lG,{control:m,bubbles:!E.current,name:r,value:a,checked:s,required:i,disabled:o,form:d,style:{transform:"translateX(-100%)"}})]})});iG.displayName=mC;var oG="RadioIndicator",aG=_.forwardRef((t,e)=>{const{__scopeRadio:n,forceMount:r,...s}=t,i=Fbe(oG,n);return u.jsx(gr,{present:r||i.checked,children:u.jsx(Le.span,{"data-state":cG(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e})})});aG.displayName=oG;var jbe="RadioBubbleInput",lG=_.forwardRef(({__scopeRadio:t,control:e,checked:n,bubbles:r=!0,...s},i)=>{const o=_.useRef(null),a=yt(o,i),c=f6(n),d=Zb(e);return _.useEffect(()=>{const p=o.current;if(!p)return;const m=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(m,"checked").set;if(c!==n&&w){const E=new Event("click",{bubbles:r});w.call(p,n),p.dispatchEvent(E)}},[c,n,r]),u.jsx(Le.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:a,style:{...s.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});lG.displayName=jbe;function cG(t){return t?"checked":"unchecked"}var Lbe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],A6="RadioGroup",[zbe,vXe]=jr(A6,[T6,sG]),uG=T6(),dG=sG(),[Vbe,Bbe]=zbe(A6),fG=_.forwardRef((t,e)=>{const{__scopeRadioGroup:n,name:r,defaultValue:s,value:i,required:o=!1,disabled:a=!1,orientation:c,dir:d,loop:p=!0,onValueChange:m,...v}=t,w=uG(n),E=Of(d),[C,b]=As({prop:i,defaultProp:s??"",onChange:m,caller:A6});return u.jsx(Vbe,{scope:n,name:r,required:o,disabled:a,value:C,onValueChange:b,children:u.jsx(nG,{asChild:!0,...w,orientation:c,dir:E,loop:p,children:u.jsx(Le.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":a?"":void 0,dir:E,...v,ref:e})})})});fG.displayName=A6;var hG="RadioGroupItem",pG=_.forwardRef((t,e)=>{const{__scopeRadioGroup:n,disabled:r,...s}=t,i=Bbe(hG,n),o=i.disabled||r,a=uG(n),c=dG(n),d=_.useRef(null),p=yt(e,d),m=i.value===s.value,v=_.useRef(!1);return _.useEffect(()=>{const w=C=>{Lbe.includes(C.key)&&(v.current=!0)},E=()=>v.current=!1;return document.addEventListener("keydown",w),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",w),document.removeEventListener("keyup",E)}},[]),u.jsx(rG,{asChild:!0,...a,focusable:!o,active:m,children:u.jsx(iG,{disabled:o,required:i.required,
3445checked:m,...c,...s,name:i.name,ref:p,onCheck:()=>i.onValueChange(s.value),onKeyDown:ke(w=>{w.key==="Enter"&&w.preventDefault()}),onFocus:ke(s.onFocus,()=>{v.current&&d.current?.click()})})})});pG.displayName=hG;var Hbe="RadioGroupIndicator",mG=_.forwardRef((t,e)=>{const{__scopeRadioGroup:n,...r}=t,s=dG(n);return u.jsx(aG,{...s,...r,ref:e})});mG.displayName=Hbe;var gG=fG,vG=pG,Ube=mG;const mg=_.forwardRef(({className:t,...e},n)=>u.jsx(gG,{className:ve("grid gap-2",t),...e,ref:n}));mg.displayName=gG.displayName;const Au=_.forwardRef(({className:t,...e},n)=>u.jsx(vG,{ref:n,className:ve("aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:u.jsx(Ube,{className:"flex items-center justify-center",children:u.jsx(hue,{className:"h-3.5 w-3.5 fill-primary"})})}));Au.displayName=vG.displayName;const Wbe=wn({selected_delivery_address:st({required_error:"⚠️ Necesitamos tu dirección para enviar tus cajas"}),selected_delivery_address_dpto:st().optional(),selected_delivery_district_name:st({required_error:"⚠️ Necesitamos tu comuna para enviar tus cajas"}),selected_delivery_additional_data:st().optional()}),qbe=({onSubmit:t,initialData:e,isLoading:n,isError:r,error:s,onGoBack:i})=>{const[o,a]=_.useState(),{selected_delivery_address:c,selected_delivery_address_dpto:d,selected_delivery_district_name:p,selected_delivery_additional_data:m,selected_delivery_address_number:v}=e,w=xi({resolver:_i(Wbe),defaultValues:{selected_delivery_address:c!==""?c:void 0,selected_delivery_address_dpto:d||v,selected_delivery_district_name:p!==""?p:void 0,selected_delivery_additional_data:m!==""?m:void 0}}),{data:E,isLoading:C,isError:b,error:S,refetch:P}=lg(),R=E?.data;function z(O){t({...O,selected_shipping_type_humanized:"Entrega a domicilio",selected_delivery_address_number:""},o||"")}if(C)return u.jsx(er,{message:"🔍 Buscando información de las comunas..."});if(b)return u.jsx(Hn,{title:"No se pudo obtener la información de las comunas.",message:S.message,retry:P,error:S});if(R){const{district_names:O}=R;return u.jsx(wi,{...w,children:u.jsxs("form",{onSubmit:w.handleSubmit(z),className:"space-y-6",children:[u.jsx(cn,{control:w.control,name:"selected_delivery_district_name",render:({field:F})=>{const D=F.value?R.districts.find(I=>I.name===F.value):void 0;return D&&a(String(D.delivery_price)),u.jsxs(un,{children:[u.jsx(gn,{children:"Comuna"}),u.jsxs(Do,{onValueChange:I=>{F.onChange(I)},defaultValue:F.value,disabled:n,children:[u.jsx(En,{children:u.jsx(Ui,{children:u.jsx(Oo,{placeholder:"Selecciona una comuna"})})}),u.jsx(Wi,{children:[...new Set(O)].map(I=>u.jsx(qi,{value:I,children:I},I))})]}),D&&u.jsx(Ra,{children:u.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["Envío:"," ",u.jsx("span",{className:"font-sans",children:D.delivery_price})," ","-"," ",D.humanized_shipping_days]})}),u.jsx(Ot,{})]})}}),u.jsx(cn,{control:w.control,name:"selected_delivery_address",render:({field:F})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Dirección"}),u.jsx(En,{children:u.jsx(Qr,{autoComplete:"address",onChange:D=>{F.onChange(D)},value:F.value,disabled:n})}),u.jsx(Ot,{})]})}),u.jsx(cn,{control:w.control,name:"selected_delivery_address_dpto",render:({field:F})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Número depto / Casa"}),u.jsx(En,{children:u.jsx(Qr,{onChange:D=>{F.onChange(D)},value:F.value,maxLength:80,disabled:n})}),u.jsx(Ot,{})]})}),u.jsx(cn,{control:w.control,name:"selected_delivery_additional_data",render:({field:F})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Información adicional"}),u.jsx(En,{children:u.jsx(Pf,{onChange:D=>{F.onChange(D)},value:F.value,className:"text-base md:text-sm",disabled:n})}),u.jsx(Ra,{children:"¿Alguna información extra que nos ayude a entregar tu pedido más facil y rápido?"}),u.jsx(Ot,{})]})}),r&&u.jsx(Ot,{className:"text-right",children:s?.message||"Hubo un error inesperado"}),u.jsxs("div",{className:"flex justify-between pb-4 gap-4",children:[i?u.jsx(tt,{type:"button",variant:"outline",className:"w-full sm:w-fit",disabled:n,onClick:i,children:"Volver"}):u.jsx(rf,{to:"/user/home",variant:"outline",children:"Volver"}),e.selected_shipping_type!=="DELIVERY"?u.jsx(tt,{type:"submit",className:"w-full sm:w-fit",disabled:n,children:n?"Cambiando":"Usar este método"}):u.jsx(tt,{type:"submit",className:"w-full sm:w-fit",disabled:n,children:n?"Guardando":"Guardar"})]})]})})}},Gbe=wn({selected_pickup_district_name:st({required_error:"⚠️ Necesitamos la comuna para saber que puntos de retiro mostrarte"}),selected_pickup_point_name:st({required_error:"⚠️ Necesitamos el punto de retiro para saber a donde enviar tus cajas"})}),Kbe=({onSubmit:t,initialData:e,isLoading:n,isError:r,error:s,onGoBack:i})=>{const[o,a]=_.useState(),[c,d]=_.useState(e.selected_pickup_district_name),[p,m]=_.useState(e.selected_pickup_point_name),{data:v,isLoading:w,isError:E,error:C,refetch:b}=lg(),S=v?.data,{selected_pickup_district_name:P,selected_pickup_point_name:R}=e,z=xi({resolver:_i(Gbe),defaultValues:{selected_pickup_district_name:P!==""?P:void 0,selected_pickup_point_name:R!==""?R:void 0}});function O(F){t({...F,selected_shipping_type_humanized:"Retiro en tiendas"},o||"")}
3445if(w)return u.jsx(er,{message:"🔍 Buscando puntos de retiro..."});if(E)return u.jsx(Hn,{title:"No se pudo obtener la información de los puntos de retiro.",message:C.message,retry:b,error:C});if(S){const{pickup_point_district_names:F,pickup_points:D}=S,I=D.filter(k=>k.district_name===c),T=I.find(k=>k.name===p);return u.jsx(wi,{...z,children:u.jsxs("form",{onSubmit:z.handleSubmit(O),className:"space-y-6",children:[u.jsx(cn,{control:z.control,name:"selected_pickup_district_name",render:({field:k})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Comuna"}),u.jsxs(Do,{onValueChange:j=>{k.onChange(j),d(j)},defaultValue:k.value,disabled:n,children:[u.jsx(En,{children:u.jsx(Ui,{children:u.jsx(Oo,{placeholder:"Selecciona una comuna"})})}),u.jsx(Wi,{children:F.map(j=>u.jsx(qi,{value:j,children:j},j))})]}),u.jsx(Ot,{})]})}),u.jsx(cn,{control:z.control,name:"selected_pickup_point_name",render:({field:k})=>{const j=S.pickup_points.find(L=>L.name===k.value);return T&&a(String(T.pickup_price)),u.jsxs(un,{children:[u.jsx(gn,{children:"Punto de retiro"}),u.jsxs(Do,{onValueChange:L=>{k.onChange(L),m(L)},defaultValue:k.value,disabled:c===void 0||n,children:[u.jsx(En,{children:u.jsx(Ui,{children:u.jsx(Oo,{placeholder:"Selecciona un punto de retiro"})})}),u.jsx(Wi,{children:I.map(L=>u.jsx(qi,{value:L.name,children:L.name},L.name))})]}),j&&u.jsxs(Ra,{children:["Costo de envío:"," ",j.pickup_price]}),u.jsx(Ot,{})]})}}),T&&u.jsx("div",{className:"mt-4",children:u.jsx(y6,{title:u.jsxs("p",{className:"text-base",children:["📍",p]}),message:u.jsxs("div",{className:"w-full",children:[u.jsxs("div",{className:"mb-2",children:[u.jsxs("a",{className:"underline decoration-orange-500 text-primary font-semibold",href:`https://maps.google.com/maps?hl=es&q=${T?.address} - ${c}`,children:[T?.address," -"," ",c]}),u.jsxs("p",{children:["Dias:"," ",u.jsx("strong",{className:"text-primary",children:T?.humanized_shipping_days})]}),u.jsxs("p",{children:["Horario de atención:"," ",u.jsxs("strong",{className:"text-primary",children:[T?.humanized_shipping_days," ","|"," ",T?.opening_hours]})]})]}),u.jsx("iframe",{width:"100%",height:"300",title:`Mapa de ubicación de ${p}`,src:`https://maps.google.com/maps?width=400&height=400&hl=es&q=${T?.address} - ${T.district_name}&t=&z=14&ie=UTF8&iwloc=B&output=embed`})]})})}),r&&u.jsx(Ot,{className:"text-right",children:s?.message||"Hubo un error inesperado"}),u.jsxs("div",{className:"flex justify-between pb-4 gap-4",children:[i?u.jsx(tt,{onClick:i,type:"button",variant:"outline",className:"w-full sm:w-fit",disabled:n,children:"Volver"}):u.jsx(rf,{to:"/user/home",variant:"outline",children:"Volver"}),e.selected_shipping_type!=="PICKUP"?u.jsx(tt,{type:"submit",className:"w-full sm:w-fit",disabled:n,children:n?"Cambiando":"Usar este método"}):u.jsx(tt,{type:"submit",className:"w-full sm:w-fit",disabled:n,children:n?"Guardando":"Guardar"})]})]})})}},Ybe=({initialData:t,handleSubmitHomeDeliveryForm:e,handleSubmitPickUpForm:n,isLoading:r,isError:s,onGoBack:i,error:o})=>{const[a,c]=_.useState(t.selected_shipping_type),d=()=>a?u.jsxs("div",{children:[a==="DELIVERY"&&u.jsx(qbe,{onSubmit:e,initialData:t,isLoading:r,isError:s,error:o,onGoBack:i}),a==="PICKUP"&&u.jsx(Kbe,{onSubmit:n,initialData:t,isLoading:r,isError:s,error:o,onGoBack:i})]}):null;return u.jsxs("div",{className:"flex flex-col space-y-4",children:[u.jsx("div",{className:"flex flex-col space-y-2",children:u.jsxs(mg,{defaultValue:a,onValueChange:p=>c(p),className:"grid grid-cols-2 gap-4",disabled:r,children:[u.jsxs("div",{children:[u.jsx(Au,{value:"DELIVERY",id:"DELIVERY",className:"peer sr-only"}),u.jsxs(Qn,{htmlFor:"DELIVERY",className:ve("flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-orange-100/50 peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary",a==="DELIVERY"&&"bg-orange-100/50"),children:[u.jsx("div",{className:"w-full pb-2 text-center",children:"🚚"}),u.jsx("p",{className:"text-center",children:"Entrega a domicilio"})]})]}),u.jsxs("div",{children:[u.jsx(Au,{value:"PICKUP",id:"PICKUP",className:"peer sr-only"}),u.jsxs(Qn,{htmlFor:"PICKUP",className:ve("flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-orange-100/50 peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary",a==="PICKUP"&&"bg-orange-100/50"),children:[u.jsx("div",{className:"w-full pb-2 text-center",children:"🏬"}),u.jsx("p",{className:"text-center",children:"Punto de retiro"})]})]})]})}),d()]})},x3="/assets/newcaja_verdura.D0-fQdqm.png",L1="/assets/big.Dcj-vUFa.webp",w3="/assets/fruits.C72mlm7a.webp",_3="/assets/medium.DGz7lPfx.webp",z1="/assets/small.Dv4KWqJs.webp",Qbe={1:_3,2:L1,3:z1,4:w3,5:x3,BIG:L1,LARGE:L1,GRANDE:L1,CG001:L1,MEDIUM:_3,MEDIANA:_3,CM001:_3,SMALL:z1,CHICA:z1,CP001:z1,CS001:z1,FRUITS:w3,FRUTAS:w3,CF001:w3,VEGETABLES:x3,VERDURAS:x3,CV001:x3},Xbe=t=>t==null?"":Qbe[String(t).toUpperCase()]||"",I6=t=>{if(!t)return"";const e=t.name?.toUpperCase()??"",n=[t.code,t.box_size,t.id,e.includes("VERDURA")?"VEGETABLES":void 0,e.includes("FRUTA")?"FRUITS":void 0,e.includes("GRANDE")?"BIG":void 0,e.includes("MEDIANA")?"MEDIUM":void 0,e.includes("CHICA")||e.includes("PEQUE")?"SMALL":void 0];for(const r of n){const s=Xbe(r);if(s)return s}return""},Zbe={small:{people:"1-2",quantity:"10-12",weight:"5-6",productKind:"frutas y verduras",description:"Ideal para 1-2 personas. 10-12 variedades de frutas y verduras de temporada. Peso aprox. 5-6 Kg."},medium:{people:"2-4",quantity:"12-14",weight:"7-8",productKind:"frutas y verduras",description:"Ideal para 2-4 personas. 12-14 variedades de frutas y verduras de temporada. Peso aprox. 7-8 Kg."},large:{people:"4-6",quantity:"14-16",weight:"11-12",productKind:"frutas y verduras",description:"Ideal para 4-6 personas. 14-16 variedades de frutas y verduras de temporada. Peso aprox. 11-12 Kg."},fruits:{people:"1-2",quantity:"5-7",weight:"5-6",productKind:"frutas",description:"Ideal para 1-2 personas. 5-7 variedades de frutas de temporada. Peso aprox. 5-6 Kg."},vegetables:{people:"2-4",quantity:"14-16",weight:"7-8",productKind:"verduras",description:"Ideal para 2-4 personas. 14-16 variedades de verduras de temporada. Peso aprox. 7-8 Kg."}},Jbe=t=>{if(!t)return;const e=String(t.id??""),n=t.code?.toUpperCase()??"",r=t.box_size?.toUpperCase()??"",s=t.name?.toUpperCase()??"",i=[n,r,s].join(" ");if(e==="5"||i.includes("VEGETABLE")||i.includes("VERDURA")||n==="CV001")return"vegetables";if(e==="4"||i.includes("FRUIT")||i.includes("FRUTA")||n==="CF001")return"fruits";if(e==="2"||i.includes("BIG")||i.includes("LARGE")||i.includes("GRANDE"))return"large";if(e==="1"||i.includes("MEDIUM")||i.includes("MEDIANA"))return"medium";if(e==="3"||i.includes("SMALL")||i.includes("CHICA")||i.includes("PEQUE"))return"small"},P6=t=>{const e=Jbe(t);return e?Zbe[e]:{people:t?.aprox_people??"",quantity:t?.aprox_quantity??"",weight:t?.aprox_weight??"",productKind:"frutas y verduras",description:t?.description??""}},Sk=t=>t==="DELIVERY"?"Entrega a domicilio":t==="PICKUP"?"Retiro en tiendas":t??"",yXe=t=>t==="WEEKLY"?"Semanal":t==="BIWEEKLY"?"Quincenal":t??"";function eSe({subscription:t}){const{id:e,name:n,price_incl_tax:r,discount:s,price_with_discount:i}=t,o=String(e),a=P6(t);return u.jsxs("div",{className:"group hover:cursor-pointer",children:[u.jsx(Au,{value:o,id:o,className:"peer sr-only"}),u.jsxs(Qn,{htmlFor:o,className:"flex h-full min-h-[360px] flex-col items-center justify-between gap-2 rounded-md border-2 border-muted bg-popover px-2 py-4 text-center md:hover:bg-orange-100/50 lg:py-6 peer-data-[state=checked]:border-primary peer-data-[state=checked]:bg-orange-100/50 [&:has([data-state=checked])]:border-primary [&:has([data-state=checked])]:bg-orange-100/50",children:[u.jsx("h4",{className:"text-base font-semibold leading-tight lg:text-lg",children:n}),u.jsx("figure",{className:"flex aspect-square w-full max-w-32 justify-center overflow-hidden transition-transform transform sm:max-w-40",children:u.jsx("img",{className:"h-full w-full object-contain",src:I6(t),alt:`Imagen de la suscripción ${n}`})}),u.jsx("div",{className:"my-1 flex flex-col space-y-1",children:u.jsxs("ul",{className:"text-xs text-muted-foreground space-y-1",children:[u.jsx("li",{className:"flex space-x-1 items-center justify-center",children:u.jsxs("span",{children:[u.jsx("strong",{className:"font-sans",children:a.people})," ","personas"]})}),u.jsx("li",{className:"flex space-x-1 items-center text-center",children:u.jsxs("span",{children:[u.jsx("strong",{className:"font-sans",children:a.quantity})," ","variedades de ",a.productKind," de temporada"]})}),u.jsx("li",{className:"flex space-x-1 items-center justify-center",children:u.jsxs("span",{children:[u.jsx("strong",{className:"font-sans",children:a.weight})," ","kgs de peso"]})})]})}),u.jsx(Bi,{}),u.jsxs("div",{className:"text-center",children:[u.jsxs("div",{className:"text-xs text-muted-foreground",children:[u.jsx("strong",{className:"text-sm font-semibold",children:u.jsx("span",{className:"font-sans",children:`${s}%`})})," ","dto primera caja"]}),u.jsx("h5",{className:"font-sans text-xl font-bold text-primary lg:text-2xl",children:Ul(i)}),u.jsxs("div",{className:"text-xs text-muted-foreground",children:["y luego"," ",u.
3445jsx("strong",{className:"text-sm font-semibold font-sans",children:Ul(r)})," "]}),u.jsx("div",{className:"text-xs text-muted-foreground",children:"+ envío"})]})]})]})}wn({selected_subscription_size_humanized:st(),selected_shipping_frecuency_humanized:st(),selected_next_weekday_humanized:st(),selected_next_weekday:st().optional()});const $n=({title:t,content:e,isImportant:n,variant:r})=>u.jsxs("div",{className:ve(" bg-orange-100 p-2 px-4 flex justify-between items-center border-b border-b-orange-200",r==="simple"&&"bg-white"),children:[u.jsx("div",{className:"text-sm text-muted-foreground leading-none",children:t}),u.jsx("div",{className:ve("text-base font-normal text-right",n&&"text-base font-semibold text-primary"),children:u.jsx("span",{className:"font-sans",children:e})})]}),tSe={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
34456-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,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\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])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[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}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-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","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-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|[24-689])\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,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-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\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","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],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|50|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]|33|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-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-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","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],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{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[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[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}
3445)","$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]|91"]],["(\\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-389]|94[0-4
vendor: 26,245 bytes, line 3445
3445])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-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]|31)"],"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,"528[89]"],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,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\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","(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|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","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{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"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","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,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-489]\\d|55)\\d{6}",[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","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|83)|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]|8[124-6])\\d|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",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[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,10}|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",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|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[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["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","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|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",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-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",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"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",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{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","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|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
34450[0135-9]"],"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-7]|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","(?:[245]\\d|33|77|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",["2(?:[0367]|4[3-8])"]],["(\\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",["2(?:[0367]|4[3-8])"]],["(\\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]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|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{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[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}"]]],MC:["377","00","(?:[3489]|6\\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",["6"],"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","(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],0,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",["[12]1"],"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","(?:596\\d|7091)\\d{5}|(?:69|[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","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\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}
3445(?:\\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",["(?: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","(?: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","[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"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","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,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",["[26]1|3[289]|4[1246-8]|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[16]|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,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["(?: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,"3[04-689]|[489]",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","92\\d{7}|(?:[15]|8\\d)\\d{8}",[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{3,4})","$1 $2 $3",["81"],"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]|68|[78]\\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-8]"]]]],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","[267]\\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",["[267]"]],["(\\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|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-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{8}",[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}
3445)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],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-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|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{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?: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,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|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-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|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-47-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-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|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-389]|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]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\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","7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?: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}
3445)","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\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})|50\\d{3})\\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}"]]]}};var H7={exports:{}},U7,Ck;function nSe(){if(Ck)return U7;Ck=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return U7=t,U7}var W7,Tk;function rSe(){if(Tk)return W7;Tk=1;var t=nSe();function e(){}function n(){}return n.resetWarningCache=e,W7=function(){function r(o,a,c,d,p,m){if(m!==t){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function s(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:s,element:r,elementType:r,instanceOf:s,node:r,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i},W7}var Ak;function sSe(){return Ak||(Ak=1,H7.exports=rSe()()),H7.exports}var iSe=sSe();const Ie=xf(iSe);var q7={exports:{}};/*!
3446	Copyright (c) 2018 Jed Watson.
3447	Licensed under the MIT License (MIT), see
3448	http://jedwatson.github.io/classnames
3449*/var Ik;function oSe(){return Ik||(Ik=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var i="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(i=s(i,r(a)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var a in i)e.call(i,a)&&i[a]&&(o=s(o,a));return o}function s(i,o){return o?i?i+" "+o:i+o:i}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(q7)),q7.exports}var aSe=oSe();const j4=xf(aSe);function lSe(t,e,n){switch(n){case"Backspace":e>0&&(t=t.slice(0,e-1)+t.slice(e),e--);break;case"Delete":t=t.slice(0,e)+t.slice(e+1);break}return{value:t,caret:e}}function cSe(t,e,n){for(var r={},s="",i=0,o=0;o<t.length;){var a=n(t[o],s,r);a!==void 0&&(s+=a,e!==void 0&&(e===o?i=s.length-1:e>o&&(i=s.length))),o++}e===void 0&&(i=s.length);var c={value:s,caret:i};return c}function uSe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=dSe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3450In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dSe(t,e){if(t){if(typeof t=="string")return Pk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pk(t,e)}}function Pk(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _E(t,e){for(var n=0,r=uSe(e.split("")),s;!(s=r()).done;){var i=s.value;i===t&&n++}return n}function fSe(t,e){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",s=t.length,i=_E("(",t),o=_E(")",t),a=i-o;a>0&&s<e.length;)t+=e[s].replace(n,r),e[s]===")"&&a--,s++;return t}function hSe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=pSe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3451In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pSe(t,e){if(t){if(typeof t=="string")return Rk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rk(t,e)}}function Rk(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function mSe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!t)return function(s){return{text:s}};var r=_E(e,t);return function(s){if(!s)return{text:"",template:t};for(var i=0,o="",a=hSe(t.split("")),c;!(c=a()).done;){var d=c.value;if(d!==e){o+=d;continue}if(o+=s[i],i++,i===s.length&&s.length<r)break}return n&&(o=fSe(o,t)),{text:o,template:t}}}function gSe(t,e,n){typeof n=="string"&&(n=mSe(n));var r=n(t)||{},s=r.text,i=r.template;if(s===void 0&&(s=t),i)if(e===void 0)e=s.length;else{for(var o=0,a=!1,c=-1;o<s.length&&o<i.length;){if(s[o]!==i[o]){if(e===0){a=!0,e=o;break}c=o,e--}o++}a||(e=c+1)}return{text:s,caret:e}}function vSe(t){return t.hasAttribute("readonly")}function ySe(t){if(t.selectionStart!==t.selectionEnd)return{start:t.selectionStart,end:t.selectionEnd}}var Nk={Backspace:8,Delete:46};function xSe(t){switch(t.keyCode){case Nk.Backspace:return"Backspace";case Nk.Delete:return"Delete"}}function wSe(t){return t.selectionStart}function yG(t,e){e!==void 0&&(_Se()?setTimeout(function(){return t.setSelectionRange(e,e)},0):t.setSelectionRange(e,e))}
3451function _Se(){if(typeof navigator<"u")return ESe.test(navigator.userAgent)}var ESe=/Android/i;function bSe(t,e,n,r,s){EE(e,n,r,void 0,s)}function SSe(t,e,n,r,s){if(!vSe(e)){var i=xSe(t);switch(i){case"Delete":case"Backspace":t.preventDefault();var o=ySe(e);return o?(CSe(e,o),EE(e,n,r,void 0,s)):EE(e,n,r,i,s)}}}function CSe(t,e){var n=t.value;n=n.slice(0,e.start)+n.slice(e.end),t.value=n,yG(t,e.start)}function EE(t,e,n,r,s){var i=cSe(t.value,wSe(t),e),o=i.value,a=i.caret;if(r){var c=lSe(o,a,r);o=c.value,a=c.caret}var d=gSe(o,a,n),p=d.text;a=d.caret,t.value=p,yG(t,a),s&&s(o)}var TSe=["ref","parse","format","value","defaultValue","controlled","onChange","onKeyDown"];function Mk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Dh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Mk(Object(n),!0).forEach(function(r){ASe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ASe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ISe(t,e){if(t==null)return{};var n=PSe(t,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function PSe(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function RSe(t){var e=t.ref,n=t.parse,r=t.format,s=t.value,i=t.defaultValue,o=t.controlled,a=o===void 0?!0:o,c=t.onChange,d=t.onKeyDown,p=ISe(t,TSe),m=_.useRef(),v=_.useCallback(function(b){m.current=b,e&&(typeof e=="function"?e(b):e.current=b)},[e]),w=_.useCallback(function(b){return bSe(b,m.current,n,r,c)},[m,n,r,c]),E=_.useCallback(function(b){if(d&&d(b),!b.defaultPrevented)return SSe(b,m.current,n,r,c)},[m,n,r,c,d]),C=Dh(Dh({},p),{},{ref:v,onChange:w,onKeyDown:E});return a?Dh(Dh({},C),{},{value:r(kk(s)?"":s).text}):Dh(Dh({},C),{},{defaultValue:r(kk(i)?"":i).text})}function kk(t){return t==null}var NSe=["inputComponent","parse","format","value","defaultValue","onChange","controlled","onKeyDown","type"];function Dk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function MSe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dk(Object(n),!0).forEach(function(r){kSe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kSe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function DSe(t,e){if(t==null)return{};var n=OSe(t,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function OSe(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function L4(t,e){var n=t.inputComponent,r=n===void 0?"input":n,s=t.parse,i=t.format,o=t.value,a=t.defaultValue,c=t.onChange,d=t.controlled,p=t.onKeyDown,m=t.type,v=m===void 0?"text":m,w=DSe(t,NSe),E=RSe(MSe({ref:e,parse:s,format:i,value:o,defaultValue:a,onChange:c,controlled:d,onKeyDown:p,type:v},w));return h.createElement(r,E)}L4=h.forwardRef(L4);L4.propTypes={parse:Ie.func.isRequired,format:Ie.func.isRequired,inputComponent:Ie.elementType,type:Ie.string,value:Ie.string,defaultValue:Ie.string,onChange:Ie.func,controlled:Ie.bool,onKeyDown:Ie.func,onCut:Ie.func,onPaste:Ie.func};function Ok(t,e){t=t.split("-"),e=e.split("-");for(var n=t[0].split("."),r=e[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 t[1]&&e[1]?t[1]>e[1]?1:t[1]<e[1]?-1:0:!t[1]&&e[1]?1:t[1]&&!e[1]?-1:0}var $Se={}.constructor;function Kd(t){return t!=null&&t.constructor===$Se}function bE(t){"@babel/helpers - typeof";return bE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bE(t)}function R6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FSe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function N6(t,e,n){return e&&FSe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var jSe="1.2.0",LSe="1.7.35",$k=" ext. ",zSe=/^\d+$/,Ir=function(){function t(e){R6(this,t),xG(e),this.metadata=e,_G.call(this,e)}return N6(t,[{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;
vendor: 6,300 bytes, line 3451
3451if(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&&zSe.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new Fk(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new Fk(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}}]),t}(),Fk=function(){function t(e,n){R6(this,t),this.globalMetadataObject=n,this.metadata=e,_G.call(this,n.metadata)}return N6(t,[{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 VSe(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()&&jk(this.types(),n))return new HSe(jk(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?$k:this.metadata[13]||$k}}]),t}(),VSe=function(){function t(e,n){R6(this,t),this._format=e,this.metadata=n}return N6(t,[{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()&&!BSe.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),t}(),BSe=/^\(?\$1\)?$/,HSe=function(){function t(e,n){R6(this,t),this.type=e,this.metadata=n}return N6(t,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
vendor: 4,455 bytes, lines 3451-3452
3451ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),t}();function jk(t,e){switch(e){case"FIXED_LINE":return t[0];case"MOBILE":return t[1];case"TOLL_FREE":return t[2];case"PREMIUM_RATE":return t[3];case"PERSONAL_NUMBER":return t[4];case"VOICEMAIL":return t[5];case"UAN":return t[6];case"PAGER":return t[7];case"VOIP":return t[8];case"SHARED_COST":return t[9]}}function xG(t){if(!t)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Kd(t)||!Kd(t.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(Kd(t)?"an object of shape: { "+Object.keys(t).join(", ")+" }":"a "+USe(t)+": "+t,"."))}var USe=function(e){return bE(e)};function Lu(t,e){if(e=new Ir(e),e.hasCountry(t))return e.country(t).countryCallingCode();throw new Error("Unknown country: ".concat(t))}function wG(t,e){return e.countries.hasOwnProperty(t)}function _G(t){var e=t.version;typeof e=="number"?(this.v1=e===1,this.v2=e===2,this.v3=e===3,this.v4=e===4):e?Ok(e,jSe)===-1?this.v2=!0:Ok(e,LSe)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function M6(t,e){return WSe(t,void 0,e)}function WSe(t,e,n){var r=n.type(e),s=r&&r.possibleLengths()||n.possibleLengths();if(!s)return"IS_POSSIBLE";var i=t.length,o=s[0];return o===i?"IS_POSSIBLE":o>i?"TOO_SHORT":s[s.length-1]<i?"TOO_LONG":s.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function qSe(t,e,n){if(e===void 0&&(e={}),n=new Ir(n),e.v2){if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}else{if(!t.phone)return!1;if(t.country){if(!n.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));n.country(t.country)}else{if(!t.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(t.countryCallingCode)}}if(n.possibleLengths())return EG(t.phone||t.nationalNumber,n);if(t.countryCallingCode&&n.isNonGeographicCallingCode(t.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function EG(t,e){switch(M6(t,e)){case"IS_POSSIBLE":return!0;default:return!1}}function Wl(t,e){return t=t||"",new RegExp("^(?:"+e+")$").test(t)}function GSe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=KSe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3452In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KSe(t,e){if(t){if(typeof t=="string")return Lk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lk(t,e)}}function Lk(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var YSe=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function gC(t,e,n){if(e=e||{},!(!t.country&&!t.countryCallingCode)){n=new Ir(n),n.selectNumberingPlan(t.country,t.countryCallingCode);var r=e.v2?t.nationalNumber:t.phone;if(Wl(r,n.nationalNumberPattern())){if(G7(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||G7(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var s=GSe(YSe),i;!(i=s()).done;){var o=i.value;if(G7(r,o,n))return o}}}}function G7(t,e,n){return e=n.type(e),!e||!e.pattern()||e.possibleLengths()&&e.possibleLengths().indexOf(t.length)<0?!1:Wl(t,e.pattern())}function QSe(t,e,n){if(e=e||{},n=new Ir(n),n.selectNumberingPlan(t.country,t.countryCallingCode),n.hasTypes())return gC(t,e,n.metadata)!==void 0;var r=e.v2?t.nationalNumber:t.phone;return Wl(r,n.nationalNumberPattern())}function XSe(t,e,n){var r=new Ir(n),s=r.getCountryCodesForCallingCode(t);return s?s.filter(function(i){return ZSe(e,i,n)}):[]}function ZSe(t,e,n){var r=new Ir(n);return r.selectNumberingPlan(e),r.numberingPlan.possibleLengths().indexOf(t.length)>=0}var vC=2,JSe=17,eCe=3,Ps="0-90-9٠-Ù©Û°-Û¹",tCe="-‐-―−ー-",nCe="//",rCe="..",sCe="  ­â€
3452‹â ã€€",iCe="()()[]\\[\\]",oCe="~⁓∼~",$o="".concat(tCe).concat(nCe).concat(rCe).concat(sCe).concat(iCe).concat(oCe),k6="++",aCe=new RegExp("(["+Ps+"])");function bG(t,e,n,r){if(e){var s=new Ir(r);s.selectNumberingPlan(e,n);var i=new RegExp(s.IDDPrefix());if(t.search(i)===0){t=t.slice(t.match(i)[0].length);var o=t.match(aCe);if(!(o&&o[1]!=null&&o[1].length>0&&o[1]==="0"))return t}}}function SE(t,e){if(t&&e.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+e.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(t);if(r){var s,i,o=r.length-1,a=o>0&&r[o];if(e.nationalPrefixTransformRule()&&a)s=t.replace(n,e.nationalPrefixTransformRule()),o>1&&(i=r[1]);else{var c=r[0];s=t.slice(c.length),a&&(i=r[1])}var d;if(a){var p=t.indexOf(r[1]),m=t.slice(0,p);m===e.numberingPlan.nationalPrefix()&&(d=e.numberingPlan.nationalPrefix())}else d=r[0];return{nationalNumber:s,nationalPrefix:d,carrierCode:i}}}return{nationalNumber:t}}function CE(t,e){var n=SE(t,e),r=n.carrierCode,s=n.nationalNumber;if(s!==t){if(!lCe(t,s,e))return{nationalNumber:t};if(e.possibleLengths()&&!cCe(s,e))return{nationalNumber:t}}return{nationalNumber:s,carrierCode:r}}function lCe(t,e,n){return!(Wl(t,n.nationalNumberPattern())&&!Wl(e,n.nationalNumberPattern()))}function cCe(t,e){switch(M6(t,e)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function SG(t,e,n,r){var s=e?Lu(e,r):n;if(t.indexOf(s)===0){r=new Ir(r),r.selectNumberingPlan(e,n);var i=t.slice(s.length),o=CE(i,r),a=o.nationalNumber,c=CE(t,r),d=c.nationalNumber;if(!Wl(d,r.nationalNumberPattern())&&Wl(a,r.nationalNumberPattern())||M6(d,r)==="TOO_LONG")return{countryCallingCode:s,number:i}}return{number:t}}function yC(t,e,n,r){if(!t)return{};var s;if(t[0]!=="+"){var i=bG(t,e,n,r);if(i&&i!==t)s=!0,t="+"+i;else{if(e||n){var o=SG(t,e,n,r),a=o.countryCallingCode,c=o.number;if(a)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:a,number:c}}return{number:t}}}if(t[1]==="0")return{};r=new Ir(r);for(var d=2;d-1<=eCe&&d<=t.length;){var p=t.slice(1,d);if(r.hasCallingCode(p))return r.selectNumberingPlan(p),{countryCallingCodeSource:s?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:p,number:t.slice(d)};d++}return{}}function CG(t){return t.replace(new RegExp("[".concat($o,"]+"),"g")," ").trim()}var TG=/(\$\d)/;function AG(t,e,n){var r=n.useInternationalFormat,s=n.withNationalPrefix;n.carrierCode,n.metadata;var i=t.replace(new RegExp(e.pattern()),r?e.internationalFormat():s&&e.nationalPrefixFormattingRule()?e.format().replace(TG,e.nationalPrefixFormattingRule()):e.format());return r?CG(i):i}var uCe=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function dCe(t,e,n){var r=new Ir(n);if(r.selectNumberingPlan(t,e),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(uCe.test(r.IDDPrefix()))return r.IDDPrefix()}var fCe=";ext=",Oh=function(e){return"([".concat(Ps,"]{1,").concat(e,"})")};function IG(t){var e="20",n="15",r="9",s="6",i="[  \\t,]*",o="[:\\..]?[  \\t,-]*",a="#?",c="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",d="(?:[xx##~~]|int|int)",p="[- ]+",m="[  \\t]*",v="(?:,{2}|;)",w=fCe+Oh(e),E=i+c+o+Oh(e)+a,C=i+d+o+Oh(r)+a,b=p+Oh(s)+"#",S=m+v+o+Oh(n)+a,P=m+"(?:,)+"+o+Oh(r)+a;return w+"|"+E+"|"+C+"|"+b+"|"+S+"|"+P}var hCe="["+Ps+"]{"+vC+"}",pCe="["+k6+"]{0,1}(?:["+$o+"]*["+Ps+"]){3,}["+$o+Ps+"]*",mCe=new RegExp("^["+k6+"]{0,1}(?:["+$o+"]*["+Ps+"]){1,2}$","i"),gCe=pCe+"(?:"+IG()+")?",vCe=new RegExp("^"+hCe+"$|^"+gCe+"$","i");function yCe(t){return t.length>=vC&&vCe.test(t)}function xCe(t){return mCe.test(t)}function wCe(t){var e=t.number,n=t.ext;if(!e)return"";if(e[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(e).concat(n?";ext="+n:"")}function _Ce(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=ECe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3453In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ECe(t,e){if(t){if(typeof t=="string")return zk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zk(t,e)}}function zk(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Vk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Bk(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
vendor: 17,180 bytes, lines 3453-3457
3453e%2?Vk(Object(n),!0).forEach(function(r){bCe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hk={formatExtension:function(e,n,r){return"".concat(e).concat(r.ext()).concat(n)}};function SCe(t,e,n,r){if(n?n=Bk(Bk({},Hk),n):n=Hk,r=new Ir(r),t.country&&t.country!=="001"){if(!r.hasCountry(t.country))throw new Error("Unknown country: ".concat(t.country));r.country(t.country)}else if(t.countryCallingCode)r.selectNumberingPlan(t.countryCallingCode);else return t.phone||"";var s=r.countryCallingCode(),i=n.v2?t.nationalNumber:t.phone,o;switch(e){case"NATIONAL":return i?(o=z4(i,t.carrierCode,"NATIONAL",r,n),K7(o,t.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return i?(o=z4(i,null,"INTERNATIONAL",r,n),o="+".concat(s," ").concat(o),K7(o,t.ext,r,n.formatExtension)):"+".concat(s);case"E.164":return"+".concat(s).concat(i);case"RFC3966":return wCe({number:"+".concat(s).concat(i),ext:t.ext});case"IDD":if(!n.fromCountry)return;var a=TCe(i,t.carrierCode,s,n.fromCountry,r);return K7(a,t.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e,'"'))}}function z4(t,e,n,r,s){var i=CCe(r.formats(),t);return i?AG(t,i,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&s&&s.nationalPrefix===!1),carrierCode:e,metadata:r}):t}function CCe(t,e){for(var n=_Ce(t),r;!(r=n()).done;){var s=r.value;if(s.leadingDigitsPatterns().length>0){var i=s.leadingDigitsPatterns()[s.leadingDigitsPatterns().length-1];if(e.search(i)!==0)continue}if(Wl(e,s.pattern()))return s}}function K7(t,e,n,r){return e?r(t,e,n):t}function TCe(t,e,n,r,s){var i=Lu(r,s.metadata);if(i===n){var o=z4(t,e,"NATIONAL",s);return n==="1"?n+" "+o:o}var a=dCe(r,void 0,s.metadata);if(a)return"".concat(a," ").concat(n," ").concat(z4(t,null,"INTERNATIONAL",s))}function Uk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Wk(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Uk(Object(n),!0).forEach(function(r){ACe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Uk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ACe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ICe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PCe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function RCe(t,e,n){return e&&PCe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var PG=function(){function t(e,n,r){if(ICe(this,t),!e)throw new TypeError("First argument is required");if(typeof e!="string")throw new TypeError("First argument must be a string");if(typeof e=="string"){if(e[0]==="+"&&!n)throw new TypeError("`metadata` argument not passed");if(Kd(n)&&Kd(n.countries)){r=n;var s=e;if(!kCe.test(s))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var i=yC(s,void 0,void 0,r),o=i.countryCallingCode,a=i.number;if(n=a,e=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");xG(r);var c=MCe(e,r),d=c.country,p=c.countryCallingCode;this.country=d,this.countryCallingCode=p,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return RCe(t,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:XSe(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return qSe(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return QSe(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new Ir(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 gC(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return SCe(this,n,r?Wk(Wk({},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)}}]),t}(),NCe=function(e){return/^[A-Z]{2}$/.test(e)};function MCe(t,e){var n,r,s=new Ir(e);return NCe(t)?(n=t,s.selectNumberingPlan(n),r=s.countryCallingCode()):r=t,{country:n,countryCallingCode:r}}var kCe=/^\+\d+$/;function TE(t){"@babel/helpers - typeof";return TE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TE(t)}function DCe(t,e,n){return Object.defineProperty(t,"prototype",{writable:!1}),t}function OCe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $Ce(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f2(t,e)}function FCe(t){var e=NG();return function(){var r=h2(t),s;if(e){var i=h2(this).constructor;s=Reflect.construct(r,arguments,i)}else s=r.apply(this,arguments);return jCe(this,s)}}function jCe(t,e){if(e&&(TE(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RG(t)}function RG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function AE(t){var e=typeof Map=="function"?new Map:void 0;return AE=function(r){if(r===null||!LCe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,s)}function s(){return dy(r,arguments,h2(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f2(s,r)},AE(t)}function dy(t,e,n){return NG()?dy=Reflect.construct:dy=function(s,i,o){var a=[null];a.push.apply(a,i);var c=Function.bind.apply(s,a),d=new c;return o&&f2(d,o.prototype),d},dy.apply(null,arguments)}function NG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function LCe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function f2(t,e){return f2=Object.setPrototypeOf||function(r,s){return r.__proto__=s,r},f2(t,e)}function h2(t){return h2=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},h2(t)}var pl=function(t){$Ce(n,t);var e=FCe(n);function n(r){var s;return OCe(this,n),s=e.call(this,r),Object.setPrototypeOf(RG(s),n.prototype),s.name=s.constructor.name,s}return DCe(n)}(AE(Error)),qk=new RegExp("(?:"+IG()+")$","i");function zCe(t){var e=t.search(qk);if(e<0)return{};for(var n=t.slice(0,e),r=t.match(qk),s=1;s<r.length;){if(r[s])return{number:n,ext:r[s]};s++}}function VCe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=BCe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3454In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BCe(t,e){if(t){if(typeof t=="string")return Gk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gk(t,e)}}function Gk(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var HCe={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","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"};function MG(t){return HCe[t]}function V4(t){for(var e="",n=VCe(t.split("")),r;!(r=n()).done;){var s=r.value,i=MG(s);i&&(e+=i)}return e}function UCe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=WCe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3455In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WCe(t,e){if(t){if(typeof t=="string")return Kk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kk(t,e)}}function Kk(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function IE(t){for(var e="",n=UCe(t.split("")),r;!(r=n()).done;){var s=r.value;e+=kG(s,e)||""}return e}function kG(t,e,n){if(t==="+"){if(e){typeof n=="function"&&n("end");return}return"+"}return MG(t)}function qCe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=GCe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3456In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GCe(t,e){if(t){if(typeof t=="string")return Yk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yk(t,e)}}function Yk(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function DG(t,e){var n=e.countries;e.defaultCountry;var r=e.metadata;r=new Ir(r);for(var s=qCe(n),i;!(i=s()).done;){var o=i.value;if(r.country(o),r.leadingDigits()){if(t&&t.search(r.leadingDigits())===0)return o}else if(gC({phone:t,country:o},void 0,r.metadata))return o}}function OG(t,e){var n=e.nationalNumber,r=e.defaultCountry,s=e.metadata,i=s.getCountryCodesForCallingCode(t);if(i)return i.length===1?i[0]:DG(n,{countries:i,defaultCountry:r,metadata:s.metadata})}var $G="+",KCe="[\\-\\.\\(\\)]?",Qk="(["+Ps+"]|"+KCe+")",YCe="^\\"+$G+Qk+"*["+Ps+"]"+Qk+"*$",QCe=new RegExp(YCe,"g"),PE=Ps,XCe="["+PE+"]+((\\-)*["+PE+"])*",ZCe="a-zA-Z",JCe="["+ZCe+"]+((\\-)*["+PE+"])*",eTe="^("+XCe+"\\.)*"+JCe+"\\.?$",tTe=new RegExp(eTe,"g"),Xk="tel:",RE=";phone-context=",nTe=";isub=";function rTe(t){var e=t.indexOf(RE);if(e<0)return null;var n=e+RE.length;if(n>=t.length)return"";var r=t.indexOf(";",n);return r>=0?t.substring(n,r):t.substring(n)}function sTe(t){return t===null?!0:t.length===0?!1:QCe.test(t)||tTe.test(t)}function iTe(t,e){var n=e.extractFormattedPhoneNumber,r=rTe(t);if(!sTe(r))throw new pl("NOT_A_NUMBER");var s;if(r===null)s=n(t)||"";else{s="",r.charAt(0)===$G&&(s+=r);var i=t.indexOf(Xk),o;i>=0?o=i+Xk.length:o=0;var a=t.indexOf(RE);s+=t.substring(o,a)}var c=s.indexOf(nTe);if(c>0&&(s=s.substring(0,c)),s!=="")return s}var oTe=250,aTe=new RegExp("["+k6+Ps+"]"),lTe=new RegExp("[^"+Ps+"#]+$");function cTe(t,e,n){if(e=e||{},n=new Ir(n),e.defaultCountry&&!n.hasCountry(e.defaultCountry))throw e.v2?new pl("INVALID_COUNTRY"):new Error("Unknown country: ".concat(e.defaultCountry));var r=dTe(t,e.v2,e.extract),s=r.number,i=r.ext,o=r.error;if(!s){if(e.v2)throw o==="TOO_SHORT"?new pl("TOO_SHORT"):new pl("NOT_A_NUMBER");return{}}var a=hTe(s,e.defaultCountry,e.defaultCallingCode,n),c=a.country,d=a.nationalNumber,p=a.countryCallingCode,m=a.countryCallingCodeSource,v=a.carrierCode;if(!n.hasSelectedNumberingPlan()){if(e.v2)throw new pl("INVALID_COUNTRY");return{}}if(!d||d.length<vC){if(e.v2)throw new pl("TOO_SHORT");return{}}if(d.length>JSe){if(e.v2)throw new pl("TOO_LONG");return{}}if(e.v2){var w=new PG(p,d,n.metadata);return c&&(w.country=c),v&&(w.carrierCode=v),i&&(w.ext=i),w.__countryCallingCodeSource=m,w}var E=(e.extended?n.hasSelectedNumberingPlan():c)?Wl(d,n.nationalNumberPattern()):!1;return e.extended?{country:c,countryCallingCode:p,carrierCode:v,valid:E,possible:E?!0:!!(e.extended===!0&&n.possibleLengths()&&EG(d,n)),phone:d,ext:i}:E?fTe(c,d,i):{}}function uTe(t,e,n){if(t){if(t.length>oTe){if(n)throw new pl("TOO_LONG");return}if(e===!1)return t;var r=t.search(aTe);if(!(r<0))return t.slice(r).replace(lTe,"")}}function dTe(t,e,n){var r=iTe(t,{extractFormattedPhoneNumber:function(o){return uTe(o,n,e)}});if(!r)return{};if(!yCe(r))return xCe(r)?{error:"TOO_SHORT"}:{};var s=zCe(r);return s.ext?s:{number:r}}function fTe(t,e,n){var r={country:t,phone:e};return n&&(r.ext=n),r}function hTe(t,e,n,r){var s=yC(IE(t),e,n,r.metadata),i=s.countryCallingCodeSource,o=s.countryCallingCode,a=s.number,c;if(o)r.selectNumberingPlan(o);else if(a&&(e||n))r.selectNumberingPlan(e,n),e&&(c=e),o=n||Lu(e,r.metadata);else return{};if(!a)return{countryCallingCodeSource:i,countryCallingCode:o};var d=CE(IE(a),r),p=d.nationalNumber,m=d.carrierCode,v=OG(o,{nationalNumber:p,defaultCountry:e,metadata:r});return v&&(c=v,v==="001"||r.country(c)),{country:c,countryCallingCode:o,countryCallingCodeSource:i,nationalNumber:p,carrierCode:m}}function Zk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function Jk(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zk(Object(n),!0).forEach(function(r){pTe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zk(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function pTe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mTe(t,e,n){return cTe(t,Jk(Jk({},e),{},{v2:!0}),n)}function eD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function gTe(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eD(Object(n),!0).forEach(function(r){vTe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eD(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vTe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yTe(t,e){return ETe(t)||_Te(t,e)||wTe(t,e)||xTe()}function xTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3457In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wTe(t,e){if(t){if(typeof t=="string")return tD(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tD(t,e)}}function tD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _Te(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(t);!(s=(o=n.next()).done)&&(r.push(o.value),!(e&&r.length===e));s=!0);}catch(c){i=!0,a=c}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function ETe(t){if(Array.isArray(t))return t}function bTe(t){var e=Array.prototype.slice.call(t),n=yTe(e,4),r=n[0],s=n[1],i=n[2],o=n[3],a,c,d;
vendor: 7,489 bytes, lines 3457-3458
3457if(typeof r=="string")a=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=gTe({defaultCountry:s},c));else if(Kd(s))i?(c=s,d=i):d=s;else throw new Error("Invalid second argument: ".concat(s));return{text:a,options:c,metadata:d}}function nD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function rD(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nD(Object(n),!0).forEach(function(r){STe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nD(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function STe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function CTe(t,e,n){e&&e.defaultCountry&&!wG(e.defaultCountry,n)&&(e=rD(rD({},e),{},{defaultCountry:void 0}));try{return mTe(t,e,n)}catch(r){if(!(r instanceof pl))throw r}}function TTe(){var t=bTe(arguments),e=t.text,n=t.options,r=t.metadata;return CTe(e,n,r)}function ATe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ITe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function PTe(t,e,n){return e&&ITe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var RTe=function(){function t(e){var n=e.onCountryChange,r=e.onCallingCodeChange;ATe(this,t),this.onCountryChange=n,this.onCallingCodeChange=r}return PTe(t,[{key:"reset",value:function(n){var r=n.country,s=n.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(r,s)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(n){for(var r=0,s=Object.keys(n);r<s.length;r++){var i=s[r];this[i]=n[i]}}},{key:"initCountryAndCallingCode",value:function(n,r){this.setCountry(n),this.setCallingCode(r)}},{key:"setCountry",value:function(n){this.country=n,this.onCountryChange(n)}},{key:"setCallingCode",value:function(n){this.callingCode=n,this.onCallingCodeChange(n,this.country)}},{key:"startInternationalNumber",value:function(n,r){this.international=!0,this.initCountryAndCallingCode(n,r)}},{key:"appendDigits",value:function(n){this.digits+=n}},{key:"appendNationalSignificantNumberDigits",value:function(n){this.nationalSignificantNumber+=n}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}]),t}();function NTe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=MTe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3458In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MTe(t,e){if(t){if(typeof t=="string")return sD(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sD(t,e)}}function sD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var yo="x",Y7=new RegExp(yo);function fy(t,e){if(e<1)return"";for(var n="";e>1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function iD(t,e){return t[e]===")"&&e++,kTe(t.slice(0,e))}function kTe(t){for(var e=[],n=0;n<t.length;)t[n]==="("?e.push(n):t[n]===")"&&e.pop(),n++;var r=0,s="";e.push(t.length);for(var i=0,o=e;i<o.length;i++){var a=o[i];s+=t.slice(r,a),r=a+1}return s}function DTe(t,e,n){for(var r=NTe(n.split("")),s;!(s=r()).done;){var i=s.value;if(t.slice(e+1).search(Y7)<0)return;e=t.search(Y7),t=t.replace(Y7,i)}return[t,e]}function OTe(t,e,n){var r=n.metadata,s=n.shouldTryNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix,o=new RegExp("^(?:".concat(e.pattern(),")$"));if(o.test(t.nationalSignificantNumber))return FTe(t,e,{metadata:r,shouldTryNationalPrefixFormattingRule:s,getSeparatorAfterNationalPrefix:i})}function $Te(t,e){return M6(t,e)==="IS_POSSIBLE"}function FTe(t,e,n){var r=n.metadata,s=n.shouldTryNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix;if(t.nationalSignificantNumber,t.international,t.nationalPrefix,t.carrierCode,s(e)){var o=oD(t,e,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:i,metadata:r});if(o)return o}return oD(t,e,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:i,metadata:r})}function oD(t,e,n){var r=n.metadata,s=n.useNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix,o=AG(t.nationalSignificantNumber,e,{carrierCode:t.carrierCode,useInternationalFormat:t.international,withNationalPrefix:s,metadata:r});if(s||(t.nationalPrefix?o=t.nationalPrefix+i(e)+o:t.complexPrefixBeforeNationalSignificantNumber&&(o=t.complexPrefixBeforeNationalSignificantNumber+" "+o)),jTe(o,t))return o}function jTe(t,e){return V4(t)===e.getNationalDigits()}function LTe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zTe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function VTe(t,e,n){return e&&zTe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var BTe=function(){function t(){LTe(this,t)}return VTe(t,[{key:"parse",value:function(n){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(n),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var r=this.context[0],s=r.branches,i=r.instructions;if(s)return{op:"|",args:s.concat([Q7(i)])};if(i.length===0)throw new Error("Pattern is required");return i.length===1?i[0]:i}},{key:"startContext",value:function(n){this.context.push(n)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(n){if(!n)throw new Error("Pattern is required");var r=n.match(WTe);if(!r){if(UTe.test(n))throw new Error("Illegal characters found in a pattern: ".concat(n));this.getContext().instructions=this.getContext().instructions.concat(n.split(""));return}var s=r[1],i=n.slice(0,r.index),o=n.slice(r.index+s.length);switch(s){case"(?:":i&&this.parsePattern(i),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(i&&this.parsePattern(i),this.getContext().instructions.length===0)throw new Error('No instructions foun
3458d after "|" operator in an "or" group');var a=this.getContext(),c=a.branches;c.push(Q7(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:c});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(i&&this.parsePattern(i),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(Q7(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":i&&this.parsePattern(i),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:HTe(i)});break;default:throw new Error("Unknown operator: ".concat(s))}o&&this.parsePattern(o)}}]),t}();function HTe(t){for(var e=[],n=0;n<t.length;){if(t[n]==="-"){if(n===0||n===t.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(t));for(var r=t[n-1].charCodeAt(0)+1,s=t[n+1].charCodeAt(0)-1,i=r;i<=s;)e.push(String.fromCharCode(i)),i++}else e.push(t[n]);n++}return e}var UTe=/[\(\)\[\]\?\:\|]/,WTe=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function Q7(t){return t.length===1?t[0]:t}function aD(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=qTe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3459In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qTe(t,e){if(t){if(typeof t=="string")return lD(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lD(t,e)}}function lD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function GTe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KTe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function YTe(t,e,n){return e&&KTe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var QTe=function(){function t(e){GTe(this,t),this.matchTree=new BTe().parse(e)}return YTe(t,[{key:"match",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=r.allowOverflow;if(!n)throw new Error("String is required");var i=NE(n.split(""),this.matchTree,!0);if(i&&i.match&&delete i.matchedChars,!(i&&i.overflow&&!s))return i}}]),t}();function NE(t,e,n){if(typeof e=="string"){var r=t.join("");return e.indexOf(r)===0?t.length===e.length?{match:!0,matchedChars:t}:{partialMatch:!0}:r.indexOf(e)===0?n&&t.length>e.length?{overflow:!0}:{match:!0,matchedChars:t.slice(0,e.length)}:void 0}if(Array.isArray(e)){for(var s=t.slice(),i=0;i<e.length;){var o=e[i],a=NE(s,o,n&&i===e.length-1);if(a){if(a.overflow)return a;if(a.match){if(s=s.slice(a.matchedChars.length),s.length===0)return i===e.length-1?{match:!0,matchedChars:t}:{partialMatch:!0}}else{if(a.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
3460`.concat(JSON.stringify(a,null,2)))}}else return;i++}return n?{overflow:!0}:{match:!0,matchedChars:t.slice(0,t.length-s.length)}}switch(e.op){case"|":for(var c,d=aD(e.args),p;!(p=d()).done;){var m=p.value,v=NE(t,m,n);if(v){if(v.overflow)return v;if(v.match)return{match:!0,matchedChars:v.matchedChars};if(v.partialMatch)c=!0;else throw new Error(`Unsupported match result:
3461`.concat(JSON.stringify(v,null,2)))}}return c?{partialMatch:!0}:void 0;case"[]":for(var w=aD(e.args),E;!(E=w()).done;){var C=E.value;if(t[0]===C)return t.length===1?{match:!0,matchedChars:t}:n?{overflow:!0}:{match:!0,matchedChars:[C]}}return;default:throw new Error("Unsupported instruction tree: ".concat(e))}}function cD(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=XTe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3462In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XTe(t,e){if(t){if(typeof t=="string")return uD(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uD(t,e)}}function uD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ZTe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JTe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function eAe(t,e,n){return e&&JTe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var ME="9",tAe=15,nAe=fy(ME,tAe),rAe=/[- ]/,sAe=function(){return/\[([^\[\]])*\]/g},iAe=function(){return/\d(?=[^,}][^,}])/g},oAe=new RegExp("["+$o+"]*\\$1["+$o+"]*(\\$\\d["+$o+"]*)*$"),dD=3,aAe=function(){function t(e){e.state;var n=e.metadata;ZTe(this,t),this.metadata=n,this.resetFormat()}return eAe(t,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(n,r){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,r){var s=this;if($Te(r.nationalSignificantNumber,this.metadata))for(var i=cD(this.matchingFormats),o;!(o=i()).done;){var a=o.value,c=OTe(r,a,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(p){return s.shouldTryNationalPrefixFormattingRule(p,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(p){return s.getSeparatorAfterNationalPrefix(p)}});if(c)return this.resetFormat(),this.chosenFormat=a,this.setNationalNumberTemplate(c.replace(/\d/g,yo),r),this.populatedNationalNumberTemplate=c,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(yo),c}return this.formatNationalNumberWithNextDigits(n,r)}},{key:"formatNationalNumberWithNextDigits",value:function(n,r){var s=this.chosenFormat,i=this.chooseFormat(r);if(i)return i===s?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var r=this,s=n.nationalSignificantNumber,i=n.nationalPrefix,o=n.international,a=s,c=a.length-dD;c<0&&(c=0),this.matchingFormats=this.matchingFormats.filter(function(d){return r.formatSuits(d,o,i)&&r.formatMatches(d,a,c)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,r,s){return!(s&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!s&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,r,s){var i=n.leadingDigitsPatterns().length;if(i===0)return!0;s=Math.min(s,i-1);var o=n.leadingDigitsPatterns()[s];if(r.length<dD)try{return new QTe(o).match(r,{allowOverflow:!0})!==void 0}catch(a){return console.error(a),!0}return new RegExp("^(".concat(o,")")).test(r)}},{key:"getFormatFormat",value:function(n,r){return r?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var r=this,s=function(){var d=o.value;return r.chosenFormat===d?"break":oAe.test(r.getFormatFormat(d,n.international))?r.createTemplateForFormat(d,n)?(r.chosenFormat=d,"break"):(r.matchingFormats=r.matchingFormats.filter(function(p){return p!==d}),"continue"):"continue"},i=cD(this.matchingFormats.slice()),o;!(o=i()).done;){var a=s();if(a==="break")break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,r){if(!(n.pattern().indexOf("|")>=0)){var s=this.getTemplateForFormat(n,r);if(s)return this.setNationalNumberTemplate(s,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&rAe.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var s=n.IDDPrefix,i=n.missingPlus;return s?r&&r.spacing===!1?s:s+" ":i?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,s=0,i=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";s<i.length+n.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(yo,r+1),s++;return iD(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(n,r){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,yo)+fy(yo,r.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,r){var s=r.nationalSignificantNumber,i=r.international,o=r.nationalPrefix,a=r.complexPrefixBeforeNationalSignificantNumber,c=n.pattern();c=c.replace(sAe(),"\\d").replace(iAe(),"\\d");var d=nAe.match(c)[0];if(!(s.length>d.length)){var p=new RegExp("^"+c+"$"),m=s.replace(/\d/g,ME);p.test(m)&&(d=m);var v=this.getFormatFormat(n,i),w;if(this.shouldTryNationalPrefixFormattingRule(n,{international:i,nationalPrefix:o})){var E=v.replace(TG,n.nationalPrefixFormattingRule());if(V4(n.nationalPrefixFormattingRule())===(o||"")+V4("$1")&&(v=E,w=!0,o))for(var C=o.length;C>0;)v=v.replace(/\d/,yo),C--}var b=d.replace(new RegExp(c),v).replace(new RegExp(ME,"g"),yo);return w||(a?b=fy(yo,a.length)+" "+b:o&&(b=fy(yo,o.length)+this.getSeparatorAfterNationalPrefix(n)+b)),i&&(b=CG(b)),b}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=DTe(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],iD(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var s=r.international,i=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var o=n.usesNationalPrefix();if(o&&i||!o&&!s)return!0}}}]),t}();function FG(t,e){return dAe(t)||uAe(t,e)||cAe(t,e)||lAe()}
vendor: 10,148 bytes, lines 3462-3464
3462function lAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3463In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cAe(t,e){if(t){if(typeof t=="string")return fD(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fD(t,e)}}function fD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function uAe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(t);!(s=(o=n.next()).done)&&(r.push(o.value),!(e&&r.length===e));s=!0);}catch(c){i=!0,a=c}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function dAe(t){if(Array.isArray(t))return t}function fAe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hAe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function pAe(t,e,n){return e&&hAe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var mAe="["+$o+Ps+"]+",gAe=new RegExp("^"+mAe+"$","i"),vAe="(?:["+k6+"]["+$o+Ps+"]*|["+$o+Ps+"]+)",yAe=new RegExp("[^"+$o+Ps+"]+.*$"),xAe=/[^\d\[\]]/,wAe=function(){function t(e){var n=e.defaultCountry,r=e.defaultCallingCode,s=e.metadata,i=e.onNationalSignificantNumberChange;fAe(this,t),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=s,this.onNationalSignificantNumberChange=i}return pAe(t,[{key:"input",value:function(n,r){var s=bAe(n),i=FG(s,2),o=i[0],a=i[1],c=V4(o),d;return a&&(r.digits||(r.startInternationalNumber(),c||(d=!0))),c&&this.inputDigits(c,r),{digits:c,justLeadingPlus:d}}},{key:"inputDigits",value:function(n,r){var s=r.digits,i=s.length<3&&s.length+n.length>=3;if(r.appendDigits(n),i&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(o){return r.update(o)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,s=n.callingCode;return r&&!s}},{key:"extractCountryCallingCode",value:function(n){var r=yC("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),s=r.countryCallingCode,i=r.number;if(s)return n.setCallingCode(s),n.update({nationalSignificantNumber:i}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&xAe.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var s=SE(n,this.metadata),i=s.nationalPrefix,o=s.nationalNumber,a=s.carrierCode;if(o!==n)return this.onExtractedNationalNumber(i,a,o,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,s){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,s);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var i=SE(n,this.metadata),o=i.nationalPrefix,a=i.nationalNumber,c=i.carrierCode;if(a!==r)return this.onExtractedNationalNumber(o,c,a,n,s),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,s,i,o){var a,c,d=i.lastIndexOf(s);if(d>=0&&d===i.length-s.length){c=!0;var p=i.slice(0,d);p!==n&&(a=p)}o({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:s,nationalSignificantNumberMatchesInput:c,complexPrefixBeforeNationalSignificantNumber:a}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,s=n.IDDPrefix,i=n.digits;if(n.nationalSignificantNumber,!(r||s)){var o=bG(i,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(o!==void 0&&o!==i)return n.update({IDDPrefix:i.slice(0,i.length-o.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=SG(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),s=r.countryCallingCode;if(r.number,s)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:s}),!0}}},{key:"startInternationalNumber",value:function(n,r){var s=r.country,i=r.callingCode;n.startInternationalNumber(s,i),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),t}();function _Ae(t){var e=t.search(vAe);if(!(e<0)){t=t.slice(e);var n;return t[0]==="+"&&(n=!0,t=t.slice(1)),t=t.replace(yAe,""),n&&(t="+"+t),t}}function EAe(t){var e=_Ae(t)||"";return e[0]==="+"?[e.slice(1),!0]:[e]}function bAe(t){var e=EAe(t),n=FG(e,2),r=n[0],s=n[1];return gAe.test(r)||(r=""),[r,s]}function SAe(t,e){return IAe(t)||AAe(t,e)||TAe(t,e)||CAe()}function CAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3464In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TAe(t,e){if(t){if(typeof t=="string")return hD(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hD(t,e)}}function hD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function AAe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(t);!(s=(o=n.next()).done)&&(r.push(o.value),!(e&&r.length===e));s=!0);}catch(c){i=!0,a=c}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function IAe(t){if(Array.isArray(t))return t}function PAe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RAe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function NAe(t,e,n){return e&&RAe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}var Vm=function(){function t(e,n){PAe(this,t),this.metadata=new Ir(n);var r=this.getCountryAndCallingCode(e),s=SAe(r,2),i=s[0],o=s[1];this.defaultCountry=i,this.defaultCallingCode=o,this.reset()}return NAe(t,[{key:"getCountryAndCallingCode",value:function(n){var r,s;return n&&(Kd(n)?(r=n.defaultCountry,s=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,s]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),s=r.digits,i=r.justLeadingPlus;if(i)this.formattedOutput="+";else if(s){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var o;if(this.metadata.hasSelectedNumberingPlan()&&(o=this.formatter.format(s,this.state)),o===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var a=this.state.getNationalDigits();a&&(o=this.formatter.format(a,this.state))}this.formattedOutput=o?this.getFullNumber(o):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new RTe({onCountryChange:function(s){n.country=s},onCallingCodeChange:function(s,i){n.metadata.selectNumberingPlan(i,s),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new aAe({state:this.state,metadata:this.metadata}),this.parser=new wAe({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var s=function(a){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!a})+a},i=this.state.callingCode;return s(i?n?"".concat(i," ").concat(n):i:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,s=n.complexPrefixBeforeNationalSignificantNumber,i=n.nationalPrefix,o=r,a=s||i;return a&&(o=a+o),o}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberMatchesInput;
3464return this.getFullNumber(n?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,yo)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(OG(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,s=n.callingCode,i=n.country,o=n.nationalSignificantNumber;if(r){if(this.isInternational())return s?"+"+s+o:"+"+r;if(i||s){var a=i?this.metadata.countryCallingCode():s;return"+"+a+o}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,s=n.carrierCode,i=n.callingCode,o=this._getCountry();if(r&&!(!o&&!i)){if(o&&o===this.defaultCountry){var a=new Ir(this.metadata.metadata);a.selectNumberingPlan(o);var c=a.numberingPlan.callingCode(),d=this.metadata.getCountryCodesForCallingCode(c);if(d.length>1){var p=DG(r,{countries:d,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});p&&(o=p)}}var m=new PG(o||i,r,this.metadata.metadata);return s&&(m.carrierCode=s),m}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),t}();function pD(t){return new Ir(t).getCountries()}function MAe(t,e,n){return n||(n=e,e=void 0),new Vm(e,n).input(t)}function jG(t){var e=t.inputFormat,n=t.country,r=t.metadata;return e==="NATIONAL_PART_OF_INTERNATIONAL"?"+".concat(Lu(n,r)):""}function kE(t,e){return e&&(t=t.slice(e.length),t[0]===" "&&(t=t.slice(1))),t}function kAe(t,e,n){if(!(n&&n.ignoreRest)){var r=function(i){if(n)switch(i){case"end":n.ignoreRest=!0;break}};return kG(t,e,r)}}function LG(t){var e=t.onKeyDown,n=t.inputFormat;return _.useCallback(function(r){if(r.keyCode===OAe&&n==="INTERNATIONAL"&&r.target instanceof HTMLInputElement&&DAe(r.target)===$Ae.length){r.preventDefault();return}e&&e(r)},[e,n])}function DAe(t){return t.selectionStart}var OAe=8,$Ae="+",FAe=["onKeyDown","country","inputFormat","metadata","international","withCountryCallingCode"];function DE(){return DE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},DE.apply(this,arguments)}function jAe(t,e){if(t==null)return{};var n=LAe(t,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function LAe(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function zAe(t){function e(n,r){var s=n.onKeyDown,i=n.country,o=n.inputFormat,a=n.metadata,c=a===void 0?t:a;n.international,n.withCountryCallingCode;var d=jAe(n,FAe),p=_.useCallback(function(v){var w=new Vm(i,c),E=jG({inputFormat:o,country:i,metadata:c}),C=w.input(E+v),b=w.getTemplate();return E&&(C=kE(C,E),b&&(b=kE(b,E))),{text:C,template:b}},[i,c]),m=LG({onKeyDown:s,inputFormat:o});return h.createElement(L4,DE({},d,{ref:r,parse:kAe,format:p,onKeyDown:m}))}return e=h.forwardRef(e),e.propTypes={value:Ie.string.isRequired,onChange:Ie.func.isRequired,onKeyDown:Ie.func,country:Ie.string,inputFormat:Ie.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Ie.object},e}const VAe=zAe();var BAe=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent","international","withCountryCallingCode"];function OE(){return OE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},OE.apply(this,arguments)}function HAe(t,e){if(t==null)return{};var n=UAe(t,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function UAe(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function WAe(t){function e(n,r){var s=n.value,i=n.onChange,o=n.onKeyDown,a=n.country,c=n.inputFormat,d=n.metadata,p=d===void 0?t:d,m=n.inputComponent,v=m===void 0?"input":m;n.international,n.withCountryCallingCode;var w=HAe(n,BAe),E=jG({inputFormat:c,country:a,metadata:p}),C=_.useCallback(function(S){var P=IE(S.target.value);if(P===s){var R=mD(E,P,a,p);R.indexOf(S.target.value)===0&&(P=P.slice(0,-1))}i(P)},[E,s,i,a,p]),b=LG({onKeyDown:o,inputFormat:c});return h.createElement(v,OE({},w,{ref:r,value:mD(E,s,a,p),onChange:C,onKeyDown:b}))}return e=h.forwardRef(e),e.propTypes={value:Ie.string.isRequired,onChange:Ie.func.isRequired,onKeyDown:Ie.func,country:Ie.string,inputFormat:Ie.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:Ie.object,inputComponent:Ie.elementType},e}const qAe=WAe();function mD(t,e,n,r){return kE(MAe(t+e,n,r),t)}function GAe(t){return gD(t[0])+gD(t[1])}function gD(t){return String.fromCodePoint(127397+t.toUpperCase().charCo
3464deAt(0))}var KAe=["value","onChange","options","disabled","readOnly"],YAe=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function QAe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=XAe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3465In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XAe(t,e){if(t){if(typeof t=="string")return vD(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vD(t,e)}}function vD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function B4(){return B4=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},B4.apply(this,arguments)}function zG(t,e){if(t==null)return{};var n=ZAe(t,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function ZAe(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function VG(t){var e=t.value,n=t.onChange,r=t.options,s=t.disabled,i=t.readOnly,o=zG(t,KAe),a=_.useCallback(function(c){var d=c.target.value;n(d==="ZZ"?void 0:d)},[n]);return _.useMemo(function(){return HG(r,e)},[r,e]),h.createElement("select",B4({},o,{disabled:s||i,readOnly:i,value:e||"ZZ",onChange:a}),r.map(function(c){var d=c.value,p=c.label,m=c.divider;return h.createElement("option",{key:m?"|":d||"ZZ",value:m?"|":d||"ZZ",disabled:!!m,style:m?JAe:void 0},p)}))}VG.propTypes={value:Ie.string,onChange:Ie.func.isRequired,options:Ie.arrayOf(Ie.shape({value:Ie.string,label:Ie.string,divider:Ie.bool})).isRequired,disabled:Ie.bool,readOnly:Ie.bool};var JAe={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function BG(t){var e=t.value,n=t.options,r=t.className,s=t.iconComponent;t.getIconAspectRatio;var i=t.arrowComponent,o=i===void 0?eIe:i,a=t.unicodeFlags,c=zG(t,YAe),d=_.useMemo(function(){return HG(n,e)},[n,e]);return h.createElement("div",{className:"PhoneInputCountry"},h.createElement(VG,B4({},c,{value:e,options:n,className:j4("PhoneInputCountrySelect",r)})),d&&(a&&e?h.createElement("div",{className:"PhoneInputCountryIconUnicode"},GAe(e)):h.createElement(s,{"aria-hidden":!0,country:e,label:d.label,aspectRatio:a?1:void 0})),h.createElement(o,null))}BG.propTypes={iconComponent:Ie.elementType,arrowComponent:Ie.elementType,unicodeFlags:Ie.bool};function eIe(){return h.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function HG(t,e){for(var n=QAe(t),r;!(r=n()).done;){var s=r.value;if(!s.divider&&tIe(s.value,e))return s}}function tIe(t,e){return t==null?e==null:t===e}var nIe=["country","countryName","flags","flagUrl"];function $E(){return $E=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$E.apply(this,arguments)}function rIe(t,e){if(t==null)return{};var n=sIe(t,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function sIe(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function xC(t){var e=t.country,n=t.countryName,r=t.flags,s=t.flagUrl,i=rIe(t,nIe);return r&&r[e]?r[e]({title:n}):h.createElement("img",$E({},i,{alt:n,role:n?void 0:"presentation",src:s.replace("{XX}",e).replace("{xx}",e.toLowerCase())}))}xC.propTypes={country:Ie.string.isRequired,countryName:Ie.string.isRequired,flags:Ie.objectOf(Ie.elementType),flagUrl:Ie.string.isRequired};var iIe=["aspectRatio"],oIe=["title"],aIe=["title"];function H4(){return H4=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},H4.apply(this,arguments)}function wC(t,e){if(t==null)return{};var n=lIe(t,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function lIe(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function D6(t){var e=t.aspectRatio,n=wC(t,iIe);return e===1?h.createElement(WG,n):h.createElement(UG,n)}D6.propTypes={title:Ie.string.isRequired,aspectRatio:Ie.number};function UG(t){var e=t.title,n=wC(t,oIe);return h.createElement("svg",H4({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),h.createElement("title",null,e),h.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"}
3465,h.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),h.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),h.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),h.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),h.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),h.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),h.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}UG.propTypes={title:Ie.string.isRequired};function WG(t){var e=t.title,n=wC(t,aIe);return h.createElement("svg",H4({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),h.createElement("title",null,e),h.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},h.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),h.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),h.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),h.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),h.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),h.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),h.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}WG.propTypes={title:Ie.string.isRequired};function cIe(t){if(t.length<2||t[0]!=="+")return!1;for(var e=1;e<t.length;){var n=t.charCodeAt(e);if(!(n>=48&&n<=57))return!1;e++}return!0}function qG(t){cIe(t)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",t)}function uIe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=dIe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3466In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dIe(t,e){if(t){if(typeof t=="string")return yD(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yD(t,e)}}function yD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fIe(t,e){if(!e)return t;for(var n=[],r=[],s=n,i=function(){var d=a.value;if(d==="|")s.push({divider:!0});else if(d==="..."||d==="…")s=r;else{var p;d==="🌐"?p=void 0:p=d;var m=t.indexOf(t.filter(function(w){return w.value===p})[0]),v=t[m];t.splice(m,1),s.push(v)}},o=uIe(e),a;!(a=o()).done;)i();return n.concat(t).concat(r)}function hIe(t,e){if(t&&(t=t.filter(function(n){switch(n){case"🌐":case"|":case"...":case"…":return!0;default:return O6(n,e)}}),t.length>0))return t}function O6(t,e){return wG(t,e)?!0:(console.error("Country not found: ".concat(t)),!1)}function GG(t,e){return t&&(t=t.filter(function(n){return O6(n,e)}),t.length===0&&(t=void 0)),t}
3466var pIe=["country","label","aspectRatio"];function FE(){return FE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},FE.apply(this,arguments)}function mIe(t,e){if(t==null)return{};var n=gIe(t,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function gIe(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function KG(t){var e=t.flags,n=t.flagUrl,r=t.flagComponent,s=t.internationalIcon;function i(o){var a=o.country,c=o.label,d=o.aspectRatio,p=mIe(o,pIe),m=s===D6?d:void 0;return h.createElement("div",FE({},p,{className:j4("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":m===1,"PhoneInputCountryIcon--border":a})}),a?h.createElement(r,{country:a,countryName:c,flags:e,flagUrl:n,className:"PhoneInputCountryIconImg"}):h.createElement(s,{title:c,aspectRatio:m,className:"PhoneInputCountryIconImg"}))}return i.propTypes={country:Ie.string,label:Ie.string.isRequired,aspectRatio:Ie.number},i}KG({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:xC,internationalIcon:D6});function vIe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=yIe(t))||e){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3467In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yIe(t,e){if(t){if(typeof t=="string")return xD(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xD(t,e)}}function xD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function xIe(t,e){for(var n=vIe(t),r;!(r=n()).done;){var s=r.value;s&&wIe(s,e)}}function wIe(t,e){typeof t=="function"?t(e):t.current=e}var YG=Ie.shape({country_calling_codes:Ie.object.isRequired,countries:Ie.object.isRequired}),QG=Ie.objectOf(Ie.string);function Al(t,e){var n="+"+Lu(t,e);return n}function _Ie(t){var e=t.value,n=t.phoneNumber,r=t.defaultCountry,s=t.getAnyCountry,i=t.countries,o=t.required,a=t.metadata,c;return n&&n.country?c=n.country:r&&(!e||xp(e,r,a))&&(c=r),i&&i.indexOf(c)<0&&(c=void 0),!c&&o&&i&&i.length>0&&(c=s()),c}function EIe(t){var e=t.countries,n=t.countryNames,r=t.addInternationalOption,s=t.compareStringsLocales,i=t.compareStrings;i||(i=PIe);var o=e.map(function(a){return{value:a,label:n[a]||a}});return o.sort(function(a,c){return i(a.label,c.label,s)}),r&&o.unshift({label:n.ZZ}),o}function XG(t,e){return TTe(t||"",e)}function bIe(t){return t.formatNational().replace(/\D/g,"")}function SIe(t,e){var n=e.prevCountry,r=e.newCountry,s=e.metadata,i=e.useNationalFormat;if(n===r)return t;if(!t)return i?"":r?Al(r,s):"";if(r){if(t[0]==="+"){if(i)return t.indexOf("+"+Lu(r,s))===0?RIe(t,r,s):"";if(n){var o=Al(r,s);return t.indexOf(o)===0?t:o}else{var a=Al(r,s);return t.indexOf(a)===0?t:a}}}else if(t[0]!=="+")return Xh(t,n,s)||"";return t}function Xh(t,e,n){if(t){if(t[0]==="+"){if(t==="+")return;var r=new Vm(e,n);return r.input(t),r.getNumberValue()}if(e){var s=JG(t,e,n);return"+".concat(Lu(e,n)).concat(s||"")}}}function CIe(t,e,n){var r=JG(t,e,n);if(r){var s=r.length-TIe(e,n);if(s>0)return t.slice(0,t.length-s)}return t}function TIe(t,e){return e=new Ir(e),e.selectNumberingPlan(t),e.numberingPlan.possibleLengths()[e.numberingPlan.possibleLengths().length-1]}function ZG(t,e){var n=e.country,r=e.countries,s=e.defaultCountry,i=e.latestCountrySelectedByUser,o=e.required,a=e.metadata;if(t==="+")return n;var c=IIe(t,a);if(c)return!r||r.indexOf(c)>=0?c:void 0;if(n){if(xp(t,n,a)){if(i&&xp(t,i,a))return i;if(s&&xp(t,s,a))return s;if(!o)return}else if(!o)return}return n}function AIe(t,e){var n=e.prevPhoneDigits,r=e.country,s=e.defaultCountry,i=e.latestCountrySelectedByUser,o=e.countryRequired,a=e.getAnyCountry,c=e.countries,d=e.international,p=e.limitMaxLength,m=e.countryCallingCodeEditable,v=e.metadata;if(d&&m===!1&&r){var w=Al(r,v);if(t.indexOf(w)!==0){var E,C=t&&t[0]!=="+";return C?(t=w+t,E=Xh(t,r,v)):t=w,{phoneDigits:t,value:E,country:r}}}d===!1&&r&&t&&t[0]==="+"&&(t=wD(t,r,v)),t&&r&&p&&(t=CIe(t,r,v)),t&&t[0]!=="+"&&(!r||d)&&(t="+"+t),!t&&n&&n[0]==="+"&&(d?r=void 0:r=s),t==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var b;
3467return t&&(t[0]==="+"&&(t==="+"||r&&Al(r,v).indexOf(t)===0)?b=void 0:b=Xh(t,r,v)),b&&(r=ZG(b,{country:r,countries:c,defaultCountry:s,latestCountrySelectedByUser:i,required:!1,metadata:v}),d===!1&&r&&t&&t[0]==="+"&&(t=wD(t,r,v),b=Xh(t,r,v))),!r&&o&&(r=s||a()),{phoneDigits:t,country:r,value:b}}function wD(t,e,n){if(t.indexOf(Al(e,n))===0){var r=new Vm(e,n);r.input(t);var s=r.getNumber();return s?s.formatNational().replace(/\D/g,""):""}else return t.replace(/\D/g,"")}function IIe(t,e){var n=new Vm(null,e);return n.input(t),n.getCountry()}function PIe(t,e,n){return String.prototype.localeCompare?t.localeCompare(e,n):t<e?-1:t>e?1:0}function RIe(t,e,n){if(e){var r="+"+Lu(e,n);if(t.length<r.length){if(r.indexOf(t)===0)return""}else if(t.indexOf(r)===0)return t.slice(r.length)}for(var s=0,i=Object.keys(n.country_calling_codes);s<i.length;s++){var o=i[s];if(t.indexOf(o)===1)return t.slice(1+o.length)}return""}function JG(t,e,n){var r=new Vm(e,n);r.input(t);var s=r.getNumber();return s&&s.nationalNumber}function xp(t,e,n){for(var r=Al(e,n),s=0;s<t.length&&s<r.length;){if(t[s]!==r[s])return!1;s++}return!0}function eK(t){var e=t.value,n=t.phoneNumber,r=t.defaultCountry,s=t.international,i=t.useNationalFormat,o=t.metadata;return(s===!1||i)&&n&&n.country?bIe(n):!e&&s&&r?Al(r,o):e}function p2(t){"@babel/helpers - typeof";return p2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p2(t)}function _D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function E3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_D(Object(n),!0).forEach(function(r){NIe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_D(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function NIe(t,e,n){return e=MIe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function MIe(t){var e=kIe(t,"string");return p2(e)=="symbol"?e:e+""}function kIe(t,e){if(p2(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(p2(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function DIe(t,e,n){var r=t.metadata,s=t.countries,i=t.defaultCountry,o=t.value,a=t.reset,c=t.international,d=t.displayInitialValueAsLocalNumber,p=t.initialValueFormat,m=e.defaultCountry,v=e.value,w=e.reset;n.country;var E=n.value,C=n.hasUserSelectedACountry,b=n.latestCountrySelectedByUser,S=function(j){return eK(E3(E3({},j),{},{international:c,useNationalFormat:d||p==="national",metadata:r}))};if(a!==w)return{phoneDigits:S({value:void 0,defaultCountry:i}),value:void 0,country:i,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(i!==m){var P=!i||O6(i,r),R=!E||c&&E===S({value:void 0,defaultCountry:m}),z=!o&&R;if(!C&&P&&z)return{country:i,phoneDigits:S({value:void 0,defaultCountry:i}),value:void 0}}if(!ED(o,v)&&!ED(o,E)){var O,F;if(o){o&&qG(o),O=XG(o,r);var D=GG(s,r);O&&O.country?(!D||D.indexOf(O.country)>=0)&&(F=O.country):(F=ZG(o,{country:void 0,countries:D,metadata:r}),F||i&&o.indexOf(Al(i,r))===0&&(F=i))}var I;if(o){if(b){var T=F?b===F:xp(o,b,r);T?F||(F=b):I={latestCountrySelectedByUser:void 0}}}else I={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};return E3(E3({},I),{},{phoneDigits:S({phoneNumber:O,value:o,defaultCountry:i}),value:o,country:o?F:i})}}function ED(t,e){return t===null&&(t=void 0),e===null&&(e=void 0),t===e}var OIe=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function um(t){"@babel/helpers - typeof";return um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},um(t)}function bD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function tK(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
3467e%2?bD(Object(n),!0).forEach(function(r){go(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bD(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function wp(){return wp=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},wp.apply(this,arguments)}function $Ie(t,e){if(t==null)return{};var n=FIe(t,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function FIe(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function jIe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function SD(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,rK(r.key),r)}}function LIe(t,e,n){return e&&SD(t.prototype,e),n&&SD(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function zIe(t,e,n){return e=U4(e),VIe(t,nK()?Reflect.construct(e,n||[],U4(t).constructor):e.apply(t,n))}function VIe(t,e){if(e&&(um(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BIe(t)}function BIe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nK(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nK=function(){return!!t})()}function U4(t){return U4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},U4(t)}function HIe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jE(t,e)}function jE(t,e){return jE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,s){return r.__proto__=s,r},jE(t,e)}function go(t,e,n){return e=rK(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rK(t){var e=UIe(t,"string");return um(e)=="symbol"?e:e+""}function UIe(t,e){if(um(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(um(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var WIe=function(t){function e(n){var r;jIe(this,e),r=zIe(this,e,[n]),go(r,"setInputRef",function(b){xIe([r.props.inputRef,r.inputRef],b)}),go(r,"isCountrySupportedWithError",function(b){var S=r.props.metadata;return O6(b,S)}),go(r,"onCountryChange",function(b){var S=r.props,P=S.international,R=S.metadata,z=S.onChange,O=S.focusInputOnCountrySelection,F=r.state,D=F.phoneDigits,I=F.country,T=SIe(D,{prevCountry:I,newCountry:b,metadata:R,useNationalFormat:!P}),k=Xh(T,b,R);O&&r.inputRef.current.focus(),r.setState({country:b,latestCountrySelectedByUser:b,hasUserSelectedACountry:!0,phoneDigits:T,value:k},function(){z(k)})}),go(r,"onChange",function(b){var S=r.props,P=S.defaultCountry,R=S.onChange,z=S.addInternationalOption,O=S.international,F=S.limitMaxLength,D=S.countryCallingCodeEditable,I=S.metadata,T=r.state,k=T.countries,j=T.phoneDigits,L=T.country,V=T.latestCountrySelectedByUser,Y=AIe(b,{prevPhoneDigits:j,country:L,countryRequired:!z,defaultCountry:P,latestCountrySelectedByUser:V,getAnyCountry:function(){return r.getFirstSupportedCountry({countries:k})},countries:k,international:O,limitMaxLength:F,countryCallingCodeEditable:D,metadata:I}),G=Y.phoneDigits,q=Y.country,U=Y.value,B={phoneDigits:G,value:U,country:q};V&&U&&!xp(U,V,I)&&(B.latestCountrySelectedByUser=void 0),D===!1&&!U&&G===r.state.phoneDigits&&(B.forceRerender={}),r.setState(B,function(){return R(U)})}),go(r,"_onFocus",function(){return r.setState({isFocused:!0})}),go(r,"_onBlur",function(){return r.setState({isFocused:!1})}),go(r,"onFocus",function(b){r._onFocus();var S=r.props.onFocus;S&&S(b)}),go(r,"onBlur",function(b){var S=r.props.onBlur;r._onBlur(),S&&S(b)}),go(r,"onCountryFocus",function(b){r._onFocus();var S=r.props.countrySelectProps;if(S){var P=S.onFocus;P&&P(b)}}),go(r,"onCountryBlur",function(b){r._onBlur();var S=r.props.countrySelectProps;if(S){var P=S.onBlur;P&&P(b)}}),r.inputRef=h.createRef();var s=r.props,i=s.value;s.labels;var o=s.international,a=s.addInternationalOption,c=s.displayInitialValueAsLocalNumber,d=s.initialValueFormat,p=s.metadata,m=r.props,v=m.defaultCountry,w=m.countries;v&&(r.isCountrySupportedWithError(v)||(v=void 0)),i&&qG(i),w=GG(w,p);var E=XG(i,p);r.CountryIcon=KG(r.props);var C=_Ie({value:i,phoneNumber:E,defaultCountry:v,required:!a,countries:w||pD(p),getAnyCountry:function(){return r.getFirstSupportedCountry({countries:w})},metadata:p});return r.state={props:r.props,country:C,countries:w,phoneDigits:eK({value:i,phoneNumber:E,defaultCountry:v,international:o,useNationalFormat:c||d==="national",metadata:p}),value:i},r}
3467return HIe(e,t),LIe(e,[{key:"componentDidMount",value:function(){var r=this.props.onCountryChange,s=this.props.defaultCountry,i=this.state.country;r&&(s&&(this.isCountrySupportedWithError(s)||(s=void 0)),i!==s&&r(i))}},{key:"componentDidUpdate",value:function(r,s){var i=this.props.onCountryChange,o=this.state.country;i&&o!==s.country&&i(o)}},{key:"getCountrySelectOptions",value:function(r){var s=r.countries,i=this.props,o=i.international,a=i.countryCallingCodeEditable,c=i.countryOptionsOrder,d=i.addInternationalOption,p=i.labels,m=i.locales,v=i.metadata;return this.useMemoCountrySelectOptions(function(){return fIe(EIe({countries:s||pD(v),countryNames:p,addInternationalOption:o&&a===!1?!1:d,compareStringsLocales:m}),hIe(c,v))},[s,c,d,p,v])}},{key:"useMemoCountrySelectOptions",value:function(r,s){return(!this.countrySelectOptionsMemoDependencies||!GIe(s,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=r(),this.countrySelectOptionsMemoDependencies=s),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(r){var s=r.countries,i=this.getCountrySelectOptions({countries:s});return i[0].value}},{key:"render",value:function(){var r=this.props,s=r.name,i=r.disabled,o=r.readOnly,a=r.autoComplete,c=r.style,d=r.className;r.inputRef;var p=r.inputComponent,m=r.numberInputProps,v=r.smartCaret,w=r.countrySelectComponent,E=r.countrySelectProps,C=r.containerComponent,b=r.containerComponentProps;r.defaultCountry,r.countries,r.countryOptionsOrder;var S=r.labels;r.flags,r.flagComponent,r.flagUrl,r.addInternationalOption,r.internationalIcon,r.displayInitialValueAsLocalNumber,r.initialValueFormat,r.onCountryChange,r.limitMaxLength,r.countryCallingCodeEditable,r.focusInputOnCountrySelection,r.reset;var P=r.metadata,R=r.international;r.locales;var z=$Ie(r,OIe),O=this.state,F=O.country,D=O.countries,I=O.phoneDigits,T=O.isFocused,k=v?VAe:qAe,j=this.getCountrySelectOptions({countries:D});return h.createElement(C,wp({style:c,className:j4(d,"PhoneInput",{"PhoneInput--focus":T,"PhoneInput--disabled":i,"PhoneInput--readOnly":o})},b),h.createElement(w,wp({name:s?"".concat(s,"Country"):void 0,"aria-label":S.country},E,{value:F,options:j,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:i||E&&E.disabled,readOnly:o||E&&E.readOnly,iconComponent:this.CountryIcon})),h.createElement(k,wp({ref:this.setInputRef,type:"tel",autoComplete:a},m,z,{inputFormat:R===!0?"INTERNATIONAL":R===!1?"NATIONAL":"INTERNATIONAL_OR_NATIONAL",international:R?!0:void 0,withCountryCallingCode:R?!0:void 0,name:s,metadata:P,country:F,value:I||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:i,readOnly:o,inputComponent:p,className:j4("PhoneInputInput",m&&m.className,z.className)})))}}],[{key:"getDerivedStateFromProps",value:function(r,s){return tK({props:r},DIe(r,s.props,s))}}])}(h.PureComponent),sK=h.forwardRef(function(t,e){return h.createElement(WIe,wp({},qIe(t),{inputRef:e}))});sK.propTypes={value:Ie.string,onChange:Ie.func.isRequired,onFocus:Ie.func,onBlur:Ie.func,disabled:Ie.bool,readOnly:Ie.bool,autoComplete:Ie.string,initialValueFormat:Ie.oneOf(["national"]),displayInitialValueAsLocalNumber:Ie.bool,defaultCountry:Ie.string,countries:Ie.arrayOf(Ie.string),labels:QG,locales:Ie.oneOfType([Ie.string,Ie.arrayOf(Ie.string)]),flagUrl:Ie.string,flags:Ie.objectOf(Ie.elementType),flagComponent:Ie.elementType,addInternationalOption:Ie.bool,internationalIcon:Ie.elementType,countryOptionsOrder:Ie.arrayOf(Ie.string),style:Ie.object,className:Ie.string,countrySelectComponent:Ie.elementType,countrySelectProps:Ie.object,inputComponent:Ie.elementType,numberInputProps:Ie.object,containerComponent:Ie.elementType,containerComponentProps:Ie.object,smartCaret:Ie.bool,international:Ie.bool,limitMaxLength:Ie.bool,countryCallingCodeEditable:Ie.bool,metadata:YG,onCountryChange:Ie.func,focusInputOnCountrySelection:Ie.bool};var CD={autoComplete:"tel",countrySelectComponent:BG,flagComponent:xC,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:D6,inputComponent:"input",containerComponent:"div",reset:Ie.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0}
3467;function qIe(t){t=tK({},t);for(var e in CD)t[e]===void 0&&(t[e]=CD[e]);return t}function GIe(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;){if(t[n]!==e[n])return!1;n++}return!0}const KIe={ext:"ext.",country:"Phone number country",phone:"Phone",AB:"Abkhazia",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",OS:"South Ossetia",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var YIe=["metadata","labels"];function LE(){return LE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},LE.apply(this,arguments)}function QIe(t,e){if(t==null)return{};var n=XIe(t,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function XIe(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function iK(t){var e=h.forwardRef(function(n,r){var s=n.metadata,i=s===void 0?t:s,o=n.labels,a=o===void 0?KIe:o,c=QIe(n,YIe);return h.createElement(sK,LE({},c,{ref:r,metadata:i,labels:a}))});return e.propTypes={metadata:YG,labels:QG},e}iK();const ZIe=iK(tSe);var JIe=["title"],ePe=["title"],tPe=["title"],nPe=["title"],rPe=["title"],sPe=["title"],iPe=["title"],oPe=["title"],aPe=["title"],lPe=["title"],cPe=["title"],uPe=["title"],dPe=["title"],fPe=["title"],hPe=["title"],pPe=["title"],mPe=["title"],gPe=["title"],vPe=["title"],yPe=["title"],xPe=["title"],wPe=["title"],_Pe=["title"],EPe=["title"],bPe=["title"],SPe=["title"],CPe=["title"],TPe=["title"],APe=["title"],IPe=["title"],PPe=["title"],RPe=["title"],NPe=["title"],MPe=["title"],kPe=["title"],DPe=["title"],OPe=["title"],$Pe=["title"],FPe=["title"],jPe=["title"],LPe=["title"],zPe=["title"],VPe=["title"],BPe=["title"],HPe=["title"],UPe=["title"],WPe=["title"],qPe=["title"],GPe=["title"],KPe=["title"],YPe=["title"],QPe=["title"],XPe=["title"],ZPe=["title"],JPe=["title"],eRe=["title"],tRe=["title"],nRe=["title"],rRe=["title"],sRe=["title"],iRe=["title"],oRe=["title"],aRe=["title"],lRe=["title"],cRe=["title"],uRe=["title"],dRe=["title"],fRe=["title"],hRe=["title"],pRe=["title"],mRe=["title"],gRe=["title"],vRe=["title"],yRe=["title"],xRe=["title"],wRe=["title"],_Re=["title"],ERe=["title"],bRe=["title"],SRe=["title"],CRe=["title"],TRe=["title"],ARe=["title"],IRe=["title"],PRe=["title"],RRe=["title"],NRe=["title"],MRe=["title"],kRe=["title"],DRe=["title"],ORe=["title"],$Re=["title"],FRe=["title"],jRe=["title"],LRe=["title"],zRe=["title"],VRe=["title"],BRe=["title"],HRe=["title"],URe=["title"],WRe=["title"],qRe=["title"],GRe=["title"],KRe=["title"],YRe=["title"],QRe=["title"],XRe=["title"],ZRe=["title"],JRe=["title"],eNe=["title"],tNe=["title"],nNe=["title"],rNe=["title"],sNe=["title"],iNe=["title"],oNe=["title"],aNe=["title"],lNe=["title"],cNe=["title"],uNe=["title"],dNe=["title"],fNe=["title"],hNe=["title"],pNe=["title"],mNe=["title"],gNe=["title"],vNe=["title"],yNe=["title"],xNe=["title"],wNe=["title"],_Ne=["title"],ENe=["title"],bNe=["title"],SNe=["title"],CNe=["title"],TNe=["title"],ANe=["title"],INe=["title"],PNe=["title"],RNe=["title"],NNe=["title"],MNe=["title"],kNe=["title"],DNe=["title"],ONe=["title"],$Ne=["title"],FNe=["title"],jNe=["title"],LNe=["title"],zNe=["title"],VNe=["title"],BNe=["title"],HNe=["title"],UNe=["title"],WNe=["title"],qNe=["title"],GNe=["title"],KNe=["title"],YNe=["title"],QNe=["title"],XNe=["title"],ZNe=["title"],JNe=["title"],eMe=["title"],tMe=["title"],nMe=["title"],rMe=["title"],sMe=["title"],iMe=["title"],oMe=["title"],aMe=["title"],lMe=["title"],cMe=["title"],uMe=["title"],dMe=["title"],fMe=["title"],hMe=["title"],pMe=["title"],mMe=["title"],gMe=["title"],vMe=["title"],yMe=["title"],xMe=["title"],wMe=["title"],_Me=["title"],EMe=["title"],bMe=["title"],SMe=["title"],CMe=["title"],TMe=["title"],AMe=["title"],IMe=["title"],PMe=["title"],RMe=["title"],NMe=["title"],MMe=["title"],kMe=["title"],DMe=["title"],OMe=["title"],$Me=["title"],FMe=["title"],jMe=["title"],LMe=["title"],zMe=["title"],VMe=["title"],BMe=["title"],HMe=["title"],U
3467Me=["title"],WMe=["title"],qMe=["title"],GMe=["title"],KMe=["title"],YMe=["title"],QMe=["title"],XMe=["title"],ZMe=["title"],JMe=["title"],eke=["title"],tke=["title"],nke=["title"],rke=["title"],ske=["title"],ike=["title"],oke=["title"],ake=["title"],lke=["title"],cke=["title"],uke=["title"],dke=["title"],fke=["title"],hke=["title"],pke=["title"],mke=["title"],gke=["title"],vke=["title"],yke=["title"],xke=["title"],wke=["title"],_ke=["title"],Eke=["title"],bke=["title"],Ske=["title"],Cke=["title"],Tke=["title"],Ake=["title"],Ike=["title"],Pke=["title"],Rke=["title"],Nke=["title"],Mke=["title"],kke=["title"],Dke=["title"],Oke=["title"],$ke=["title"];function X(){return X=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},X.apply(this,arguments)}function Z(t,e){if(t==null)return{};var n=Fke(t,e),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)r=i[s],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Fke(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}var jke=function(e){var n=e.title,r=Z(e,JIe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M440.1 181.1c-.1 39.2-6.4 81.4-57.4 101.5-51.1-20.1-57.3-62.3-57.4-101.5h114.8z"}),h.createElement("path",{fill:"#29DBFF",d:"M439.6 197.7c-2.8 34.9-12.4 67.4-57 85-44.4-17.6-54.5-51.2-56.9-84.9"}),h.createElement("path",{fill:"#FFF",d:"M437.8 214.1c-3.2 24.3-16.7 53.5-55.1 68.6-38.4-15.1-50.5-42.5-55.1-68.4"}),h.createElement("path",{fill:"#29DBFF",d:"M434.2 230.3c-5.7 17.7-19.3 39.4-51.3 52.8-32-12.6-45.2-33.8-51.4-53"}),h.createElement("path",{fill:"#FFF",d:"M426.7 246.9c-6.5 11.3-17.7 25.4-44 35.9-27.5-11.5-37.4-25.3-44-36.1"}),h.createElement("path",{fill:"#29DBFF",d:"M412.4 265.1c-8.1 7.2-12 11.2-29.6 17.9-20.1-7.9-22.6-11.6-29.2-17.5"}),h.createElement("path",{fill:"#5CC85C",d:"M383.3 231.6c-.2-.2-27.9 35.7-27.9 35.7-1.8-1.3-10-9.5-13.3-15l41.3-50.1 40.2 49.7c-3.9 6.5-11.4 13.6-13.2 15M382.6 85.3l-26.5 45h53z"}),h.createElement("ellipse",{transform:"rotate(-82.3 291.431 225.686)",fill:"#F7A226",cx:291.4,cy:225.7,rx:48.7,ry:15.7}),h.createElement("ellipse",{transform:"rotate(-68.099 303.087 164.67)",fill:"#DDC7AB",cx:303.1,cy:164.7,rx:11.7,ry:7.2}),h.createElement("ellipse",{transform:"rotate(-81.738 291.697 271.697)",fill:"#DDC7AB",cx:291.7,cy:271.7,rx:11.4,ry:3.3}),h.createElement("ellipse",{transform:"matrix(.9986 -.05353 .05353 .9986 -13.992 16.424)",fill:"#DDC7AB",cx:299.6,cy:269.4,rx:3.3,ry:11}),h.createElement("ellipse",{transform:"rotate(-21.518 314.54 201.06)",fill:"#DDC7AB",cx:314.5,cy:201.1,rx:4.1,ry:13.7}),h.createElement("ellipse",{transform:"rotate(-21.518 317.511 178.077)",fill:"#DDC7AB",cx:317.5,cy:178.1,rx:13.7,ry:4.1}),h.createElement("ellipse",{transform:"rotate(-7.7 473.781 225.857)",fill:"#F7A226",cx:473.6,cy:225.9,rx:15.7,ry:48.7}),h.createElement("ellipse",{transform:"rotate(-21.901 462.057 164.866)",fill:"#DDC7AB",cx:462,cy:164.9,rx:7.2,ry:11.7}),h.createElement("ellipse",{transform:"rotate(-8.27 473.27 271.908)",fill:"#DDC7AB",cx:473.4,cy:271.9,rx:3.3,ry:11.4}),h.createElement("ellipse",{transform:"matrix(.05353 -.9986 .9986 .05353 171.34 719.998)",fill:"#DDC7AB",cx:465.5,cy:269.6,rx:11,ry:3.3}),h.createElement("ellipse",{transform:"rotate(-68.482 450.552 201.247)",fill:"#DDC7AB",cx:450.6,cy:201.2,rx:13.7,ry:4.1}),h.createElement("ellipse",{transform:"rotate(-68.482 447.58 178.265)",fill:"#DDC7AB",cx:447.6,cy:178.3,rx:4.1,ry:13.7}),h.createElement("path",{fill:"#B0C6CC",d:"M373.3 130.3 356.1 155l17.8 26.1H396l4.7-25.4-5.4-25.4z"}),h.createElement("path",{fill:"#FFF",d:"M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 
34670z"}),h.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),h.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),h.createElement("path",{fill:"#D80027",d:"M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6-77.8-53.3h22.6l62.5 42.3v11z"}))},Lke=function(e){var n=e.title,r=Z(e,ePe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 0h171v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342zM198.9 113.6H256v64.8h-57.1z"}),h.createElement("path",{d:"M267.6 113.6v64.7m16.6-64.7v64.7m16.6-64.7v64.7",stroke:"#D80027",strokeWidth:7}),h.createElement("path",{d:"M247.4 178.4v64.7m-13.3-64.7v64.7m-13.3-64.6v53.9m-13.7-53.9v47.1",stroke:"#D80027",strokeWidth:5}),h.createElement("path",{fill:"#FFDA44",d:"m199.9 146 27.6-32.4 28.5 32.3-28.1 32.4z"}),h.createElement("path",{fill:"#BC8B00",d:"M182.2 95.9v92.2c0 34.3 27.3 54.2 48.6 64.5-.8 1.4 25.1 8.3 25.1 8.3s25.9-6.9 25.1-8.3c21.4-10.3 48.6-30.1 48.6-64.5V95.9H182.2zm129.9 92.2c0 16.9-10 29.4-32.8 43.9-8.6 5.5-17.5 9-23.3 11-5.8-2-14.7-5.5-23.3-11-22.8-14.5-32.8-28-32.8-43.9v-74.5h112.2v74.5z"}),h.createElement("path",{fill:"#D80027",d:"M264.4 188.9h29.5v8.6h-29.5zm0 17.6h29.5v8.6h-29.5z"}))},zke=function(e){var n=e.title,r=Z(e,tPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#009e49",d:"M0 0h513v114H0z"}),h.createElement("path",{d:"M0 228h513v114H0z"}),h.createElement("path",{fill:"#ce1126",d:"M0 0h171v342H0z"}))},Vke=function(e){var n=e.title,r=Z(e,nPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#DB3E00",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#479900",d:"M331 0h182v342H331z"}),h.createElement("path",{d:"M0 0h181.8v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M256 126.7c-19.4 0-35.2 15.8-35.2 35.2v52.8h70.4v-52.8c0-19.5-15.8-35.2-35.2-35.2z"}),h.createElement("path",{fill:"#FFF",d:"M256 84.3c-47.7 0-86.4 38.7-86.4 86.4S208.3 257 256 257s86.4-38.7 86.4-86.4-38.7-86.3-86.4-86.3zm0 157.7c-39.4 0-71.4-32-71.4-71.4 0-39.4 32-71.4 71.4-71.4 39.4 0 71.4 32 71.4 71.4 0 39.5-32 71.4-71.4 71.4z"}))},Bke=function(e){var n=e.title,r=Z(e,rPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#0072c6",d:"M88.8 136.5c-2.2 12.9-3.4 26.2-3.4 39.8 0 13.6 1.2 27 3.4 39.8L256 228.3l167.2-12.1c2.2-12.9 3.4-26.2 3.4-39.8s-1.2-27-3.4-39.8"}),h.createElement("path",{fill:"#FFF",d:"M423.2 219H88.8c15.8 69.8 84.7 122.3 167.2 122.3S407.4 288.8 423.2 219z"}),h.createElement("path",{fill:"#FFDA44",d:"M365.9 136.5H146.1l44.9-21.1-23.9-43.5 48.8 9.4L222 32l34 36.2L290 32l6.1 49.3 48.8-9.4-23.9 43.5z"}),h.createElement("g",{fill:"#ce1126"},h.createElement("path",{d:"M256.5 342 0 0v342z"}),h.createElement("path",{d:"M513 342V0L256 342z"})))},Hke=function(e){var n=e.title,r=Z(e,sPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#00318b",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M454.8 265.38c7.94-10.93 13.24-24.27 13.24-40.42V104.89a59.754 59.754 0 0 1-36.02 12.01c-19.64 0-37.07-9.43-48.03-24.01-10.95 14.58-28.39 24.01-48.03 24.01-13.52 0-25.99-4.47-36.02-12v120.06c0 16.16 5.3 29.5 13.24 40.42H454.8z"}),h.createElement("path",{fill:"#8DCCFF",d:"M310.23 260.98C332.65 296.96 384 309 384 309s51.35-12.04 73.77-48.02H310.23z"}),h.createElement("path",{fill:"#D87B00",d:"M396.66 172.21c.32 1.42 8.72 10.17 17.56 20.15 1.39 1.57-8.74 12.63-6.91 12.59 4.75-.12 19.27-17.26 19.34 6.65.05 15.94-30 27.51-30 27.51h17.47l.65 14.96s4.97-13.34 7.59-16.57c8.1-9.97 20.18-30.07 34.59-27.1 14.41 2.97-13.66-13.92-13.66-13.92s-5.2-15.19-16.63-16.97c-10.06-1.57-14.29-2.51-26.64-7.3-1.68-.65-3.88-2.32-3.36 0z"}),h.createElement("path",{fill:"#D87B00",d:"M359.69 198.69c1.07-.99 4.46-12.63 8.69-25.28.67-1.99 15.31 1.27 14.35-.3-2.47-4.06-24.58-8.08-3.9-20.08 13.79-8 38.82 12.27 38.82 12.27l-8.72-15.14 12.64-8.03s-14.05 2.35-18.14 1.69c-12.68
3467-2.04-36.13-2.48-40.75-16.45-4.62-13.97-5.25 18.79-5.25 18.79s-10.56 12.08-6.4 22.88c3.66 9.5 4.96 13.64 6.97 26.73.29 1.79-.06 4.53 1.69 2.92z"}),h.createElement("path",{fill:"#D87B00",d:"M395.67 219.87c-1.39-.43-13.16 2.49-26.22 5.18-2.06.42-6.59-13.88-7.47-12.26-2.27 4.17 5.36 25.31-15.41 13.45-13.84-7.91-8.89-39.73-8.89-39.73l-8.71 15.14-13.29-6.9s9.09 10.96 10.57 14.84c4.6 11.99 16 32.49 6.24 43.49-9.76 11.01 18.88-4.9 18.88-4.9s15.76 3.07 23-5.96c6.38-7.94 9.3-11.14 19.61-19.45 1.43-1.12 3.97-2.19 1.69-2.9z"}),h.createElement("path",{fill:"#FFF",d:"M256.5 0h-23.1L160 48.9V0H96v48.9L22.6 0H0v22.7l46.1 30.7H0v64h46.1L0 148.1V171h22.6L96 121.8V171h64v-49.2l73.4 49.2h23.1v-22.9l-46.6-30.7h46.6v-64h-46.6l46.6-30.7z"}),h.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.4H0v32h112V171h32v-69.6h112.5v-32H144z"}),h.createElement("path",{fill:"#D80027",d:"M0 171v-11.3l62.5-42.3h22.6L7.3 171zM7.3.1l77.8 53.2H62.5L0 11.1V.1zm249.2 0v11l-63 42.3h-22.6L248.7.1zM248.7 171l-77.8-53.6h22.6l63 42.3V171z"}))},Uke=function(e){var n=e.title,r=Z(e,iPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 60"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#ED2024",d:"M0 0h90v60H0z"}),h.createElement("path",{fill:"#212121",d:"M32.5 12.2v16l7.1 2.5-5 4.9 2.4 3 5.3-5.5 1.2 2.3-3 4.9 3.6 5.6-1.8 2.6 2.8 3.6 2.7-3.7-1.5-2.6 3-5.8-2.7-4.6 1.2-2.3 5.2 5.5 2.5-2.9-5.2-5.1 7.2-2.6V12.2l-5.2 1.9-.1 3.8-3.3.3v-2.6l1.7-2.3 5.6-2.2-2.3-.4 1.4-1.2.9.4-.8-1.4L54 9l-1-1.1L47.5 9l1.4 1.1-3.8 4.9-3.8-4.8 1.3-1.1-5-1.2L36.2 9l-1.5-.4-.8 1.4.9-.6 1.6 1.1-2.3.5 5.5 2 1.6 2.3v2.9l-3.3-.3v-3.6z"}),h.createElement("path",{d:"M26.2 25h6.4v2.5h-6.4zm0-4.1h6.4v2.7h-6.4zm0-4.2h6.4v2.6h-6.4zm0-4h6.4v2.5h-6.4zM57.4 25h6.4v2.5h-6.4zm0-4.1h6.4v2.7h-6.4zm0-4.2h6.4v2.6h-6.4zm0-4h6.4v2.5h-6.4zM53.4 36.1h6.4V38h-6.4zm-23.2 0h6.4V38h-6.4z",fill:"#212121"}))},Wke=function(e){var n=e.title,r=Z(e,oPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#FF9811",d:"M0 228h513v114H0z"}))},qke=function(e){var n=e.title,r=Z(e,aPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{d:"M0 171h513v171H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 0h513v171H0z"}),h.createElement("g",{fill:"#FFDA44"},h.createElement("path",{d:"m332.7 135.6 17.5-8.6-7.4-19-18.7 6.2zm-45.6-56 5.5-18.8-19.1-7.2-8 18zm29.4 23.2 12.2-15.3-14.9-13.9-14.2 13.6zm19.4 68.9 19.5-.8v-21.3l-22.9.2zm-12.6 38.1 18.8 5.5 7.3-19-18-8zm-29 32.4 14.9 12.7 14.4-14.4-13.1-14.7zm-47-147.7 9.8 19.9 21.9 3.3-15.9 15.5 3.6 21.9-19.6-10.4-19.7 10.2 3.8-21.9-15.8-15.5 22-3.1z"}),h.createElement("path",{d:"m250.8 61.3-2.7 18.3c43.1 3.2 77 39.2 77 83.1 0 46-37.3 82.9-83.4 83.4-29.2.3-51.3-14.8-67-33.7l-13.9 12.3c15 19 40.8 39.9 80.9 39.9 56.3 0 101.9-45.6 101.9-101.9.1-53.2-40.7-96.9-92.8-101.4z"}),h.createElement("path",{fill:"#000",d:"m291.9 223.4-11.8 14s51.9 38.9 53.6 40.4c1.7 1.5 5.2 2 9.1-2.7 3.7-4.5 2.8-8.1.9-9.7-2-1.5-51.8-42-51.8-42z"}),h.createElement("path",{d:"M206.1 157.2c-7.7 10.3-7.5 23.1 2.8 30.9 0 0 135.2 101.5 136.9 103 1.7 1.5 5.2 2 9.1-2.7 3.7-4.5 2.8-8.1.9-9.7-1.9-1.5-149.7-121.5-149.7-121.5zm47.7 99.1 7.3 18.2 19.5-6-4.8-19.1zm-40.4-3.7-2 19.5 20.1 3.6 4.5-19.1zm-35.7-21.2L167.4 248l16.4 12.1 12.5-15.2z"})))},Gke=function(e){var n=e.title,r=Z(e,lPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 744 496"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#3A7DCE",d:"M0 0h744v496H0V0z"}),h.createElement("path",{fill:"#fff",d:"m120 125 90 63 54-14 23-81 61-36 92 14 105 55 6 90 34 12v92l-65 115-78 24-72-17 18-30-8-32-10 9-162-25-49-85 20-46-49-62z"}))},Kke=function(e){var n=e.title,r=Z(e,cPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),h.createElement("path",{fill:"#338AF3",d:"M0 0h512v114H0zm0 228h512v114H0z"}),h.createElement("circle",{fill:"#FFDA44",stroke:"#d6ab00",strokeWidth:5,cx:256.5,cy:171,r:40}))},Yke=function(e){var n=e.title,r=Z(e,uPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#10338c",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M513 33 95.3 171 513 310.76V342L0 171 513 0z"}),h.createElement("path",{fill:"#FFF",d:"M513 287.18v24.58L81.72 171 513 30v24.16"}),h.createElement("path",{fill:"#A2001D",d:"m476.98 140.21-21.89 10.68-3.18-15.32 31.19-29.77s-9.42-40.65-13.75-44.98l-112.32 55.82-6.84 36.76-31.9 28.59-.4 34.2 34.29-22.76 67.23-2.66-1.51 38.11h22.23l11.9-44.64 31.55-24.61-6.6-19.42z"}),h.createElement("path",{fill:"#EFC100",stroke:"#231F20",strokeMiterlimit:10,d:"m317.89 238.41-22.24-11.11 22.24-11.11h144.46v22.22z"}))},Qke=function(e){var n=e.title,r=Z(e,dPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0zm0 228h513v114H0z"}))},Xke=function(e){var n=e.title,r=Z(e,fPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#10338c",d:"M0 0h513v342H0z"}),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"M222.2 170.7c.3-.3.5-.6.8-.9-.2.3-.5.6-.8.9zM188 212.6l11 22.9 24.7-5.7-11 22.8 19.9 15.8-24.8 5.6.1 25.4-19.9-15.9-19.8 15.9.1-25.4-24.8-5.6 19.9-15.8-11.1-22.8 24.8 5.7zm197.9 28.5 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6v12.2l-9.4-7.6-9.5 7.6.1-12.2-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zm-48.6-116 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.9-2.7 9.5-7.5-5.3-10.9L332 136zm48.6-66.2 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.8-2.7 9.5-7.5-5.3-10.9 11.8 2.7zm42.5 49.7 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6V1
346750l-9.4-7.6-9.5 7.6v-12.2l-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zM398 166.5l4.1 12.7h13.3l-10.8 7.8 4.2 12.7-10.8-7.9-10.8 7.9 4.1-12.7-10.7-7.8h13.3z"}),h.createElement("path",{d:"M254.8 0v30.6l-45.1 25.1h45.1V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9H99v-48.6l-87.4 48.6H-1.2v-30.6L44 115H-1.2V55.7h59.1L-1.2 22.8V0h26.7L99 40.8V0h55.6v48.6L242.1 0z"})),h.createElement("path",{fill:"#D80027",d:"M142.8 0h-32v69.3h-112v32h112v69.4h32v-69.4h112v-32h-112z"}),h.createElement("path",{fill:"#0052B4",d:"m154.6 115 100.2 55.7v-15.8L183 115z"}),h.createElement("path",{fill:"#FFF",d:"m154.6 115 100.2 55.7v-15.8L183 115z"}),h.createElement("path",{d:"m154.6 115 100.2 55.7v-15.8L183 115zm-83.9 0-71.9 39.9v15.8L99 115z",fill:"#D80027"}),h.createElement("path",{fill:"#0052B4",d:"M99 55.7-1.2 0v15.7l71.9 40z"}),h.createElement("path",{fill:"#FFF",d:"M99 55.7-1.2 0v15.7l71.9 40z"}),h.createElement("path",{d:"M99 55.7-1.2 0v15.7l71.9 40zm84 0 71.8-40V0L154.6 55.7z",fill:"#D80027"}))},Zke=function(e){var n=e.title,r=Z(e,hPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 363 242"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#338AF3",d:"M0 0h363v242H0z"}),h.createElement("path",{fill:"#FFF",d:"M57 96.9 14.7 78.2 57 59.6l18.6-42.2 18.6 42.2 42.3 18.6-42.3 18.7-18.6 42.2z"}),h.createElement("path",{fill:"#f30028",d:"m75.6 40.6 11.5 26.1 26.1 11.5-26.1 11.5-11.5 26.1-11.5-26.1L38 78.2l26.1-11.5z"}),h.createElement("path",{d:"M0 152.2h363v15.7H0zm0 31.4h363v15.7H0z",fill:"#FFDA44"}))},Jke=function(e){var n=e.title,r=Z(e,pPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M513 210.9H202.2V342h-79.8V210.9H0v-79.8h122.4V0h79.8v131.1H513v61.2z"}),h.createElement("path",{fill:"#D80027",d:"M513 149.7v42.6H183.7V342H141V192.3H0v-42.6h141V0h42.7v149.7z"}))},eDe=function(e){var n=e.title,r=Z(e,mPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#ef3340",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#00b5e2",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#509e2f",d:"M0 228h513v114H0z"}),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"M265.6 212.6c-23 0-41.6-18.6-41.6-41.6s18.6-41.6 41.6-41.6c7.2 0 13.9 1.8 19.8 5-9.2-9-21.9-14.6-35.8-14.6-28.3 0-51.2 22.9-51.2 51.2s22.9 51.2 51.2 51.2c13.9 0 26.6-5.6 35.8-14.6-5.9 3.2-12.6 5-19.8 5z"}),h.createElement("path",{d:"m297.6 142.2 5.5 15.5 14.9-7.1-7.1 14.9 15.5 5.5-15.5 5.5 7.1 14.9-14.9-7.1-5.5 15.5-5.5-15.5-14.9 7.1 7.1-14.9-15.5-5.5 15.5-5.5-7.1-14.9 14.9 7.1z"})))},tDe=function(e){var n=e.title,r=Z(e,gPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#10338C",d:"M0 0h513.1v342H0z"}),h.createElement("path",{fill:"#F6C500",d:"M99.9 0h342v342"}),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"M19.9 21.1 40.3 6.2 60.9 21 54 0H26.7z"}),h.createElement("path",{d:"M92.3 25.5 84.4 1.3l-7.8 24.2H51.3l20.5 14.8-7.8 24 20.4-14.8L105 64.3l-7.9-24 20.5-14.9z"}),h.createElement("path",{d:"m136.3 69.2-7.8-24-7.8 24H95.5l20.4 14.9-7.8 24 20.4-14.8 20.6 14.8-7.8-24 20.4-14.9z"}),h.createElement("path",{d:"m179.4 112.3-7.8-24.1-7.8 24.1h-25.3l20.5 14.9-7.8 24 20.4-14.8 20.6 14.8-7.9-24 20.5-15z"}),h.createElement("path",{d:"m222.5 155.3-7.8-24-7.8 24h-25.4l20.6 15-7.8 24 20.4-14.9 20.4 14.9-7.8-24 20.6-15z"}),h.createElement("path",{d:"m265.6 198.4-7.8-24-7.8 24h-25.4l20.6 14.9-7.8 24.1 20.4-14.9 20.4 14.9-7.8-24.2 20.5-14.8z"}),h.createElement("path",{d:"m308.7 241.5-7.9-24-7.8 24h-25.3l20.5 14.8-7.9 24.2 20.6-14.9 20.4 14.8-7.8-24.1 20.5-14.8z"}),h.createElement("path",{d:"m351.7 284.6-7.8-24.2-7.8 24.2h-25.3l20.4 14.8-7.8 24.1 20.5-14.9 20.5 14.9-7.8-24.1 20.4-14.8z"}),h.createElement("path",{d:"m387 303.5-7.9 24.1-25.3.1 19.8 14.3h26.6l19.9-14.4h-25.3z"})))},nDe=function(e){var n=e.title,r=Z(e,vPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#ffc726",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342z",fill:"#00267f"}),h.createElement("path",{d:"m325.74 101.02-31.97 12.4c-.68 1.35-5.79 7.54-8.18 53.06h-17.05v-60.42L256 78.68l-12.54 27v60.8H226.4c-2.39-45.53-7.8-52.48-8.47-53.84l-31.68-11.63c.15.31 15.4 31.34 15.4 78.01v12.54h41.81v71.07h25.08v-71.07h41.81v-12.54c0-24.13 4.17-44.02 7.68-56.46 3.82-13.57 7.7-21.49 7.74-21.57l-.03.03z"}))},rDe=function(e){var n=e.title,r=Z(e,yPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#2d6e41",d:"M0 85.331h513v342H0z"}),h.createElement("circle",{fill:"#F40B32",cx:218.902,cy:256.5,r:115}))},sDe=function(e){var n=e.title,r=Z(e,xPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#fdda25",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h171v342H0z"}),h.createElement("path",{fill:"#ef3340",d:"M342 0h171v342H342z"}))},iDe=function(e){var n=e.title,r=Z(e,wPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#3d944f",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#ef2b2d",d:"M0 0h513v171H0z"}),h.createElement("path",{fill:"#FFDA44",d:"m256 102.6 16.9 52h54.7l-44.2 32.2 16.8 52-44.2-32.1-44.2 32.1 16.8-52-44.2-32.2h54.7z"}))},oDe=function(e){var n=e.title,r=Z(e,_Pe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#00966e",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#d62612",d:"M0 228h513v114H0z"}))},aDe=function(e){var n=e.title,r=Z(e,EPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"m222.8 34.3-85.2 34.2 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.1 85.2 34.1-85.2 34.8H0V0h137.6z"}))},lDe=function(e){var n=e.title,r=Z(e,bPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M215.9 170.7 0 314.6V26.8zM513 26.8v287.8L297.1 170.7z",fill:"#47a644"}),h.createElement("path",{fill:"#0052B4",d:"M513 26.8 296.1 170.7 513 314.6V342h-41.1L256 197.4 40.1 342H0v-27.4l215.9-143.9L0 26.8V0h40.1L256 143.9 471.9 0H513z"}),h.createElement("path",{fill:"#FFF",d:"M513 26.8 297.1 170.7 513 314.6V342h-40L256 197.4 39 342H0v-27.4l215.9-143.9L0 26.8V0h40.1L256 143.9 471.9 0H513z"}
3467),h.createElement("circle",{fill:"#FFF",cx:251.6,cy:170.7,r:100.2}),h.createElement("path",{d:"m251.4 103.6 7.4 12.9h14.8l-7.4 12.8 7.4 12.8h-14.8l-7.4 12.9-7.4-12.9h-14.8l7.4-12.8-7.4-12.8H244zm38.8 66.7 7.4 12.9h14.8L305 196l7.4 12.8h-14.8l-7.4 12.9-7.4-12.9h-14.9l7.4-12.8-7.4-12.8h14.9zm-77.2 0 7.4 12.9h14.9l-7.4 12.8 7.4 12.8h-14.9l-7.4 12.9-7.4-12.9h-14.8l7.4-12.8-7.4-12.8h14.8z",fill:"#D80027",stroke:"#47a644",strokeWidth:3}))},cDe=function(e){var n=e.title,r=Z(e,SPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#008751",d:"M0 85.333h513v342H0z"}),h.createElement("path",{fill:"#fcd116",d:"M196.666 85.333H513v171H196.666z"}),h.createElement("path",{fill:"#e8112d",d:"M196.666 256H513v171H196.666z"}))},uDe=function(e){var n=e.title,r=Z(e,CPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#E6BC00",d:"M157.31 199.76s-9.04 43.93-19.31 40.39c-10.62-3.54-17.53-18.76-17.53-18.76l-14.52 21.24s38.18 8.48 41.01 5.47c1.22-1.14 8.21-15.1 10.34-26.05v-22.29zm-56.13 60.57s-2.48 20.18-1.06 22.66c1.24 2.3 39.48 11.33 39.48 11.33s-24.96 16.46-29.74 20.54L91.8 284.94l-.71-24.61h10.09zm11.33-165.69s39.65 41.6 40.36 45.5c.71 3.72-4.25 3.19-4.25 3.19s-44.79-37.53-49.92-41.07c-5.31-3.55 13.81-7.62 13.81-7.62z"}),h.createElement("path",{fill:"#ADADAD",d:"M99.41 104.73s16.99-.71 16.64-11.51c-.35-10.62-11.15-14.87-19.12-12.39-7.97 2.3-23.01 13.45-13.63 35.05 9.38 21.42 23.37 29.39 26.2 47.8 0 0-5.46 9.86-19.12.35-16.9-11.77-6.2-38.24-10.44-44.96-4.25-7.08-40.95-38.92-40.95-38.92s-30.24 39.37-18 74.92c16.95 49.21 51.74 31.98 64.61 36.76 0 0-42.13 61.96-49.57 67.09 0 0 24.08 8.32 47.8-18.76 0 0 5.84 9.74 7.08 20.18h10.27c4.78-26.2 51.51-64.26 49.92-82.32-1.77-21.25-49.21-49.39-51.69-73.29z"}),h.createElement("path",{fill:"#E6BC00",d:"M359.17 201.27s8.96 42.43 19.23 38.89c10.62-3.54 17.53-18.76 17.53-18.76l14.52 21.24s-37 8.48-39.83 5.47c-1.21-1.14-9.32-13.79-11.52-24.66l.07-22.18zm56.05 59.06s2.48 20.18 1.06 22.66c-1.24 2.3-39.48 11.33-39.48 11.33s24.96 16.46 29.74 20.54l18.06-29.92.71-24.61h-10.09zM403.89 94.64s-39.65 41.6-40.36 45.5c-.71 3.72 4.25 3.19 4.25 3.19s44.79-37.53 49.92-41.07c5.14-3.55-13.81-7.62-13.81-7.62z"}),h.createElement("path",{fill:"#125ECC",d:"M157.31 87.06H359.1v145.46c0 16.06-9.69 21.39-21.91 31.85l-45.92 39.41c-18.25 15.62-47.91 15.57-66.07 0l-46.01-39.43c-12.08-10.35-21.88-15.71-21.88-31.82V87.06z"}),h.createElement("path",{fill:"#FFE600",d:"M200.55 147.71c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm57.65-3c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm57.65 3c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zM214.96 274.43c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41c.01 7.96-6.45 14.41-14.41 14.41zm43.24 14.42c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41c0 7.95-6.45 14.41-14.41 14.41zm43.24-14.42c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41z"}),h.createElement("path",{fill:"#D60537",d:"M157.31 175.36H359.1v57.65H157.31v-57.65z"}),h.createElement("path",{fill:"#EACE00",d:"M142.9 43.82s57.65-14.41 115.31-14.41 115.31 14.41 115.31 14.41l-14.41 57.65s-50.45-14.41-100.89-14.41-100.89 14.41-100.89 14.41L142.9 43.82z"}),h.createElement("path",{fill:"#7A6920",d:"M258.2 72.65c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm57.65 5c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41zm-115.3 0c-7.96 0-14.41-6.45-14.41-14.41s6.45-14.41 14.41-14.41 14.41 6.45 14.41 14.41-6.45 14.41-14.41 14.41z"}),h.createElement("path",{fill:"#ADADAD",d:"M365.08 178.02c-1.59 18.06 45.14 56.12 49.92 82.32h10.27c1.24-10.44 7.08-20.18 7.08-20.18 23.72 27.09 47.8 18.76 47.8 18.76-7.44-5.13-49.57-67.09-49.57-67.09 12.88-4.78 47.67 12.45 64.61-36.76 12.24-35.55-18-74.92-18-74.92s-36.7 31.84-40.95 38.92c-4.25 6.73 6.46 33.2-10.44 44.96-13.66 9.51-19.12-.35-19.12-.35 2.83-18.41 16.82-26.38 26.2-47.8 9.38-21.6-5.66-32.75-13.63-35.05-7.97-2.48-18.76 1.77-19.12 12.39-.35 10.8 16.64 11.51 16.64 11.51-2.48 23.9-49.92 52.04-51.69 73.29z"}
vendor: 8,508 bytes, line 3467
3467),h.createElement("circle",{fill:"#FFF",cx:258.2,cy:204.19,r:16.93}))},dDe=function(e){var n=e.title,r=Z(e,TPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#c8102e",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#012169",d:"M0 .1h256.5v171H0z"}),h.createElement("path",{fill:"#FFF",d:"M256 0h-22.6L160 48.9V0H96v48.9L22.6 0H0v22.7l46.1 30.7H0v64h46.1L0 148.1v22.6h22.6L96 121.8v48.9h64v-48.9l73.4 48.9H256v-22.6l-46.1-30.7H256v-64h-46.1L256 22.7z"}),h.createElement("path",{fill:"#c8102e",d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),h.createElement("path",{fill:"#c8102e",d:"M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6-77.8-53.3h22.6l62.5 42.3v11z"}),h.createElement("g",{transform:"translate(13 5)"},h.createElement("path",{fill:"#fff",d:"M303.9 94.94v99.69c0 59.81 79.75 99.69 79.75 99.69s79.75-39.88 79.75-99.69V94.94H303.9z"}),h.createElement("path",{fill:"#2F8F22",d:"M436.37 254.44H330.93c23.13 25.08 52.72 39.88 52.72 39.88s29.59-14.8 52.72-39.88z"}),h.createElement("circle",{fill:"#65B5D2",cx:383.65,cy:214.56,r:39.88}),h.createElement("circle",{fill:"#c8102e",cx:343.77,cy:194.63,r:19.94}),h.createElement("circle",{fill:"#c8102e",cx:423.52,cy:194.63,r:19.94}),h.createElement("circle",{fill:"#c8102e",cx:383.65,cy:154.75,r:19.94})))},fDe=function(e){var n=e.title,r=Z(e,APe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"m0 193.74 513 127.19V214.26L0 97.08z"}),h.createElement("path",{fill:"#FFF",d:"M513 234.26v-86.67L0 20.41v86.67"}),h.createElement("g",{fill:"#D80027",stroke:"#231F20",strokeWidth:3,strokeMiterlimit:10},h.createElement("path",{d:"M306.4 134.01a50.28 50.28 0 0 1 6.07 24.02c0 21.55-13.51 39.94-32.52 47.19v-59.51c5.7-1.19 10-6.37 10-12.59 6.9 0 12.5-5.75 12.5-12.85h-.42c6.9 0 12.91-5.75 12.91-12.85h-34.99V76.58l-14.99-27.71-15 27.71v30.84h-34.99c0 7.1 6.01 12.85 12.91 12.85h-.42c0 7.1 5.6 12.85 12.5 12.85 0 6.22 4.29 11.4 9.99 12.59v61.37c-22.09-5.39-38.48-25.3-38.48-49.05 0-8.7 2.2-16.88 6.07-24.02-10.96 11.21-17.72 26.53-17.72 43.44 0 34.32 27.82 62.15 62.15 62.15s62.15-27.83 62.15-62.15c0-16.91-6.77-32.24-17.72-43.44z"}),h.createElement("path",{d:"M198.46 226.81s20.69 27.71 66.5 27.71 66.5-27.71 66.5-27.71l13.47 28.37s-21.03 27.71-79.97 27.71-79.97-27.71-79.97-27.71l13.47-28.37zm-69.22-93.63h20.88l24.93 27.26v73.45h-26.28v-68.37zm270.76 0h-20.88l-24.93 27.26v73.45h26.27v-68.37z"})))},hDe=function(e){var n=e.title,r=Z(e,IPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#d52b1e",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#f9e300",d:"M0 114h513v114H0z"}),h.createElement("path",{fill:"#007934",d:"M0 228h513v114H0z"}))},pDe=function(e){var n=e.title,r=Z(e,PPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#012a87",d:"M0 342h513V0z"}),h.createElement("path",{fill:"#f9d90f",d:"M250.4 0H0v166.9z"}),h.createElement("path",{fill:"#dc171d",d:"m140.4 118.3 12.2 21.2h24.5l-12.3 21.1 12.3 21.2h-24.5L140.4 203l-12.2-21.2h-24.5l12.3-21.2-12.3-21.1h24.5z"}),h.createElement("circle",{fill:"none",stroke:"#000",strokeWidth:9,strokeMiterlimit:10,cx:140.4,cy:160.6,r:57.7}))},mDe=function(e){var n=e.title,r=Z(e,RPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#009b3a",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#fedf00",d:"m256.5 19.3 204.9 151.4L256.5 322 50.6 170.7z"}),h.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:80.4}),h.createElement("path",{fill:"#002776",d:"M215.9 165.7c-13.9 0-27.4 2.1-40.1 6 .6 43.9 36.3 79.3 80.3 79.3 27.2 0 51.3-13.6 65.8-34.3-24.9-31-63.2-51-106-51zm119 20.3c.9-5 1.5-10.1 1.5-15.4 0-44.4-36-80.4-80.4-80.4-33.1 0-61.5 20.1-73.9 48.6 10.9-2.2 22.1-3.4 33.6-3.4 46.8.1 89 19.5 119.2 50.6z"}))},gDe=function(e){var n=e.title,r=Z(e,NPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#ffc72c",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0z",fill:"#00778b"}),h.createElement("path",{d:"M256 171 0 342V0z"}))},vDe=function(e){var n=e.title,r=Z(e,MPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FF7415",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M513 0H0v342"}),h.createElement("path",{fill:"none",stroke:"#FFF",strokeWidth:42,strokeMiterlimit:10,d:"M128.7 255.5s35 54 67.3 32.4c56.9-37.9-68.9-108.6-2.9-152.6 58.3-38.8 76.6 103.5 137.6 62.8 59-39.3-64.7-111.4-9.2-148.4 33.4-22.2 67.1 32.6 67.1 32.6"}))},yDe=function(e){var n=e.title,r=Z(e,kPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 33.333 1100 733.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#ef2b2d",d:"M0 0h1100v800H0z"}),h.createElement("path",{fill:"#fff",d:"M300 0h200v800H300z"}),h.createElement("path",{fill:"#fff",d:"M0 300h1100v200H0z"}),h.createElement("path",{fill:"#002868",d:"M350 0h100v800H350z"}),h.createElement("path",{fill:"#002868",d:"M0 350h1100v100H0z"}))},xDe=function(e){var n=e.title,r=Z(e,DPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 238h513v104H0zM0 0h513v104H0z",fill:"#6da9d2"}),h.createElement("path",{d:"M0 125.5h513v89.656H0z"}))},wDe=function(e){var n=e.title,r=Z(e,OPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#007C30",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#CE1720",d:"M0 230h513V0H0"}),h.createElement("path",{fill:"#FFF",d:"M100 230V0H0v342h513-413z"}),h.createElement("path",{d:"M28 159.6 8.6 128.2 28 97.4l19.3 30.8zm44.6 0-19.3-31.4 19.3-30.8L92 128.2zM28 241.2 8.6 209.8 28 179l19.3 30.8zm44.6 0-19.3-31.4L72.6 179 92 209.8z",fill:"#CE1720"}),h.createElement("path",{d:"m28 73.8-16.1-26L28 22.2l16 25.6zm44.6 0-16-26 16-25.6 16.1 25.6zM28 318l-16.1-26.1L28 266.3l16 25.6zm44.6 0-16-26.1 16-25.6 16.1 25.6z",fill:"none",stroke:"#CE1720",strokeWidth:7}))},_De=function(e){var n=e.title,r=Z(e,$Pe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#003e87",d:"M0 0h513v342H0z"}),h.createElement("circle",{fill:"#FFF",cx:260.9,cy:170.9,r:118.9}),h.createElement("circle",{fill:"none",stroke:"#6DA544",strokeWidth:18,strokeMiterlimit:10,cx:261.9,cy:173.1,r:94.5}),h.createElement("g",{stroke:"#000"},h.createElement("path",{fill:"#003e87",d:"m261.9 151.5-50.6 23.4v20c0 11.8 6.1 22.8 16.2 28.9L262 239l34.5-15.2c10-6.2 16.2-17.1 16.2-28.9v-20l-50.8-23.4z"}),h.createElement("path",{fill:"#FFDA44",d:"M211.3 128.1h101.3v46.7H211.3z"})),h.createElement("path",{d:"M0 0h513v35H0zm0 306h513v35H0z",fill:"#ce1127"}))},EDe=function(e){var n=e.title,r=Z(e,FPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h142v342H0zm371 0h142v342H371zm-64.5 206 50.4-25.2-25.2-12.6V143l-50.4 25.2 25.2-50.4h-25.2L256.1 80l-25.2 37.8h-25.2l25.2 50.4-50.4-25.2v25.2l-25.2 12.6 50.4 25.2-12.6 25.2h50.4V269h25.2v-37.8h50.4z",fill:"red"}))},bDe=function(e){var n=e.title,r=Z(e,jPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"green",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"m422.7 252.4 6.2 12.8 13.8-3.2-6.2 12.8 11.2 8.8-13.9 3.2V301l-11.1-8.9-11.1 8.9v-14.2l-13.8-3.2 11.1-8.8-6.2-12.8 13.9 3.2zm-46.6-136.3 6.2 
346712.9 13.8-3.2-6.2 12.8 11.2 8.8-13.9 3.1v14.3l-11.1-8.9-11.1 8.9.1-14.3-13.9-3.1 11.1-8.8-6.2-12.8L370 129zm37-77.8 6.2 12.8 13.8-3.2-6.2 12.8 11.2 8.9-13.9 3.1v14.2L413.1 78 402 86.9l.1-14.2-13.9-3.1 11.1-8.9-6.2-12.8 13.9 3.2zm51.8 58.4 6.2 12.8 13.9-3.2-6.3 12.8 11.2 8.9-13.9 3.1.1 14.2-11.2-8.9-11.1 8.9.1-14.2L440 128l11.2-8.9-6.3-12.8 13.9 3.2zm-28 68.1 4.9 14.8h15.6l-12.6 9.2 4.8 14.9-12.7-9.2-12.6 9.2 4.8-14.9-12.6-9.2h15.6zM306.8 254.7c-49.2 0-89.1-39.9-89.1-89.1s39.9-89.1 89.1-89.1c15.3 0 29.8 3.9 42.4 10.7C329.4 67.9 302.3 56 272.5 56c-60.5 0-109.6 49.1-109.6 109.6S212 275.3 272.5 275.3c29.8 0 56.9-11.9 76.6-31.3-12.6 6.8-27 10.7-42.3 10.7zM140.4 59.5C129.7 41 109.7 28.6 86.8 28.6S44 41 33.3 59.5h107.1zm.2.4-53.8 53.8-53.7-53.8C28 68.9 25 79.3 25 90.5c0 34.2 27.7 61.9 61.9 61.9s61.9-27.7 61.9-61.9c-.1-11.2-3.1-21.6-8.2-30.6z",fill:"#FFDA44"}),h.createElement("path",{fill:"#A2001D",d:"M71.4 98.2v52.2c4.9 1.3 10.1 1.9 15.5 1.9s10.5-.7 15.5-1.9V98.2h-31z"}))},SDe=function(e){var n=e.title,r=Z(e,LPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#338AF3",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M513 66.9V0H411.7L0 274.4V342h100.3z"}),h.createElement("path",{fill:"#D80027",d:"M513 0v40.1L60.2 342H0v-40.8L451.8 0z"}),h.createElement("path",{fill:"#FFDA44",d:"m93.6 31.2 16.3 50.4H163l-42.9 31.2 16.4 50.5-42.9-31.2-43 31.2L67 112.8 24.1 81.6h53.1z"}))},CDe=function(e){var n=e.title,r=Z(e,zPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#d21034",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 171h211.5v85.3H0zm300.5 0H512v85.3H300.5z",fill:"#3a9927"}),h.createElement("path",{fill:"#003082",d:"M0 0v85.3h211.5V0h89v85.3H513V0z"}),h.createElement("path",{d:"M300.5 85.3H512v85.3H300.5zM0 85.3h211.5v85.3H0z",fill:"#FFF"}),h.createElement("path",{d:"M300.5 342h-89v-86H0v86h513v-86H300.5zM105.7 8.6l8.6 26.2h27.5L119.5 51l8.6 26.2L105.7 61 83.4 77.2 91.9 51 69.6 34.8h27.6z",fill:"#ffce00"}))},TDe=function(e){var n=e.title,r=Z(e,VPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#da1a35",d:"M0 85.331h513v342H0z"}),h.createElement("path",{fill:"#009543",d:"M443.726 85.331 102.4 426.657H0V85.331z"}),h.createElement("path",{fill:"#fbde4a",d:"M500.124 85.331 158.798 426.657H11.876L353.202 85.331z"}))},ADe=function(e){var n=e.title,r=Z(e,BPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"red",d:"M0 85.337h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M356.174 222.609h-66.783v-66.783h-66.782v66.783h-66.783v66.782h66.783v66.783h66.782v-66.783h66.783z"}))},IDe=function(e){var n=e.title,r=Z(e,HPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#009e60",d:"M342 0h171v342H342z"}),h.createElement("path",{fill:"#f77f00",d:"M0 0h171v342H0z"}))},PDe=function(e){var n=e.title,r=Z(e,UPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#01237a",d:"M0 85.332h513v342H0z"}),h.createElement("path",{d:"m384 156.705 5.283 16.254h17.089l-13.826 10.045 5.281 16.254L384 189.211l-13.825 10.047 5.28-16.254-13.825-10.045h17.089zm-70.209 29.081 15.228 7.758 12.084-12.083-2.673 16.879 15.227 7.759-16.879 2.673-2.674 16.88-7.76-15.227-16.878 2.673 12.086-12.084zm-29.081 70.209 16.254-5.281.001-17.089 10.044 13.825 16.254-5.282-10.046 13.827 10.046 13.826-16.254-5.28-10.044 13.825v-17.09zm29.081 70.209 7.759-15.229-12.084-12.084 16.881 2.674 7.757-15.227 2.674 16.879 16.879 2.672-15.227 7.759 2.673 16.882-12.084
3467-12.087zM384 355.284l-5.281-16.253h-17.091l13.827-10.045-5.28-16.254L384 322.776l13.827-10.044-5.281 16.254 13.826 10.045h-17.089zm70.209-29.08-15.229-7.758-12.083 12.084 2.673-16.882-15.227-7.756 16.879-2.675 2.675-16.879 7.756 15.227 16.881-2.674-12.086 12.085zm29.081-70.209-16.254 5.281v17.09l-10.045-13.826-16.254 5.281 10.046-13.826-10.046-13.827 16.254 5.282 10.045-13.825v17.089zm-29.081-70.207-7.757 15.226 12.082 12.084-16.881-2.673-7.756 15.227-2.675-16.88-16.879-2.675 15.227-7.757-2.673-16.878 12.084 12.082zM0 186.665v16h46.069L0 233.377v7.539l57.377-38.252H80L0 255.998h112v-69.334H0zm96 69.331H22.628L96 207.083v48.913zm80-117.331 80-53.334H144v69.334h112v-16h-46.069L256 107.951v-7.539l-57.377 38.251H176v.002zm-16-53.332h73.372L160 134.246V85.333zm-16 170.665h112l-80-53.334h22.623L256 240.917v-7.539l-46.069-30.713H256v-16H144v69.333zm16-48.915 73.372 48.913H160v-48.913zM112 85.331H0l80 53.334H57.377L0 100.413v7.539l46.069 30.712H0v16h112V85.331zm-16 48.915L22.628 85.333H96v48.913z",fill:"#FFF"}),h.createElement("g",{fill:"#D80027"},h.createElement("path",{d:"M144 85.331h-32v69.334H0v32h112v69.333h32v-69.333h112v-32H144z"}),h.createElement("path",{d:"M80 138.665 0 85.331v15.082l57.377 38.252zm96 0h22.623L256 100.413V85.331zm-118.623 64L0 240.917v15.081l80-53.333zm118.623 0 80 53.333v-15.081l-57.377-38.252z"})))},RDe=function(e){var n=e.title,r=Z(e,WPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M196 0h317v171H196z"}),h.createElement("path",{fill:"#0037A1",d:"M0 0h196v171H0z"}),h.createElement("path",{fill:"#FFF",d:"M98 24.5 113.1 71H162l-39.6 28.7 15.2 46.5L98 117.5l-39.6 28.7 15.2-46.5L34 71h48.9z"}))},NDe=function(e){var n=e.title,r=Z(e,qPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#ce1126",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#007a5e",d:"M0 0h171v342H0z"}),h.createElement("path",{d:"M342 0h171v342H342zm-86 102.2 17.2 53H329L283.9 188l17.2 53-45.1-32.7-45.1 32.7 17.2-53-45.1-32.8h55.8z",fill:"#fcd116"}))},MDe=function(e){var n=e.title,r=Z(e,GPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"m226.8 239.2-9.7-15.6-17.9 4.4 11.9-14.1-9.7-15.6 17.1 6.9 11.8-14.1-1.3 18.4 17.1 6.9-17.9 4.4zM290.6 82l-10.1 15.4 11.6 14.3-17.7-4.8-10.1 15.5-1-18.4-17.7-4.8 17.2-6.6-1-18.4 11.6 14.3zm-54.4-56.6-2 18.3 16.8 7.6-18 3.8-2 18.3-9.2-16-17.9 3.8 12.3-13.7-9.2-15.9 16.8 7.5zm56.6 136.4-14.9 10.9 5.8 17.5-14.9-10.8-14.9 11 5.6-17.6-14.9-10.7 18.4-.1 5.6-17.6 5.8 17.5zM115 46.3l17.3 53.5h56.2l-45.4 32.9 17.3 53.5-45.4-33-45.5 33 17.4-53.5-45.5-32.9h56.3z",fill:"#FFDA44"}))},kDe=function(e){var n=e.title,r=Z(e,KPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 256.5h513V342H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 171h513v85.5H0z"}))},DDe=function(e){var n=e.title,r=Z(e,YPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 114h513v114H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 285h513v57H0zM0 0h513v57H0z"}))},ODe=function(e){var n=e.title,r=Z(e,QPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FF9811",d:"M0-40.8v422.9-211.4z"}),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h513v68.3H0zm0 136.5h513v68.3H0zm0 136.6h513v68.3H0z",fill:"#0052B4"}),h.createElement("path",{fill:"#D80027",d:"M256 170.7 0 342V0z"}),h.createElement("path",{fill:"#FFF",d:"m86.5 111.4 12.7 39.2h41.3l-33.4 24.2 12.8 39.3-33.4-24.2-33.4 24.2 12.8-39.3-33.4-24.2h41.2z"}))},$De=function(e){var n=e.title,r=Z(e,XPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#003893",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#cf2027",d:"M0 182.2h513v41.4H0z"}),h.createElement("path",{fill:"#FFF",d:"M0 140.8h513v41.4H0zm0 82.8h513V265H0z"}),h.createElement("path",{d:"m150.4 70 6.9 21.1h22.2l-18 13.1 6.9 21.1-18-13.1-17.9 13.1 6.8-21.1-17.9-13.1h22.2zm0 209.7 6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-17.9-13h22.2zm-97.6-70.9 6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-17.9-13H46zM90.1 91l6.9 21.1h22.2l-18 13 6.9 21.2-18-13.1-17.9 13.1 6.8-21.2-18-13h22.3zm-66.3 71H46l6.8-21.1 6.9 21.1h22.2l-18 13.1 6.9 21.1-18-13-17.9 13 6.8-21.1zm48.4 148.9 6.8-21.1-18-13h22.3l6.8-21.2 6.9 21.2h22.2l-18 13 6.9 21.1-18-13zM248 208.8l-6.9 21.1h-22.2l18 13-6.9 21.2 18-13.1 18 13.1-6.9-21.2 18-13h-22.2zM210.7 91l-6.8 21.1h-22.2l17.9 13-6.8 21.2 17.9-13.1 18 13.1-6.9-21.2 18-13h-22.2zm66.4 71h-22.2l-6.9-21.1-6.9 21.1h-22.2l18 13.1-6.9 21.1 18-13 18 13-6.9-21.1zm-48.4 148.9-6.9-21.1 18-13h-22.2l-6.9-21.2-6.8 21.2h-22.2l17.9 13-6.8 21.1 17.9-13z",fill:"#f7d116",stroke:"#000"}))},FDe=function(e){var n=e.title,r=Z(e,ZPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#002b7f",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#f9e814",d:"M0 233.5h513v51H0z"}),h.createElement("path",{d:"m168.7 86.5 12.9 39.8h41.8l-33.8 24.5 12.9 39.7-33.8-24.5-33.8 24.5 12.9-39.7-33.8-24.5h41.8zm-83.3-54 7.8 23.9h25L97.9 71.1l7.8 23.8-20.3-14.7-20.3 14.7 7.8-23.8-20.3-14.7h25.1z",fill:"#FFF"}))},jDe=function(e){var n=e.title,r=Z(e,JPe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0021ad",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#1c8a42",d:"M0 0h513v342"}),h.createElement("path",{d:"m77.6 272 5.7 11.9 12.8-3-5.7 11.9 10.3 8.1-12.8 2.9V317l-10.3-8.3-10.2 8.3v-13.2l-12.8-2.9 10.3-8.1-5.8-11.9 12.9 3zm-37.1-98.9 5.7 11.9 12.8-3-5.7 11.8 10.3 8.2-12.9 2.9.1 13.2-10.3-8.3-10.3 8.3.1-13.2-12.9-2.9 10.4-8.2L22 182l12.8 3zm37.1-80.9 5.7 11.8 12.8-2.9-5.7 11.8 10.3 8.2-12.8 2.9v13.1l-10.3-8.2-10.2 8.2V124l-12.8-2.9 10.3-8.2-5.8-11.8L72 104zm46.1 62.9 5.7 11.9 12.8-3-5.7 11.9 10.3 8.1-12.8 2.9v13.2l-10.3-8.2-10.2 8.2v-13.2l-12.8-2.9 10.3-8.1-5.7-11.9 12.8 3zm-32.9 54 4.4 13.7h14.5L98 231.3l4.5 13.7-11.7-8.4-11.7 8.4 4.5-13.7-11.7-8.5h14.4z",fill:"#FFF"}),h.createElement("circle",{fill:"#ffc639",cx:267.1,cy:170.7,r:74.5}),h.createElement("path",{fill:"#1c8a42",d:"M267.1 220.3h24.8s10.8-19 0-37.2l24.8-24.8-12.4-24.8h-12.4s-6.2 18.6-31 18.6-31-18.6-31-18.6h-12.4l12.4 24.8-12.4 24.8 12.4 12.4s12.4-24.8 37.2-12.4c0 0 10.5 15.5 0 37.2z"}),h.createElement("path",{fill:"#ffc639",d:"M464.4 92.2c.6-2.9-.2-17.6-.2-20.7 0-21.3-13.9-39.4-33.2-45.7 5.9 12 9.2 25.4 9.2 39.7 0 4.8-.4 9.5-1.1 14.1-2.9-4.7-6.6-8.9-11.2-12.6-17.1-13.6-40.6-14-57.9-2.5 13.4 2.9 26.3 8.9 37.7 18 9 7.1 16.2 16.8 21.7 26.1 0 0-17.8 10.9-31 15.1s-42.3 7.9-42.3 7.9c72 12 132-36 132-36-6.5-13.4-15.8-4-23.7-3.4z"}))},LDe=function(e){var n=e.title,r=Z(e,eRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#DB7D00",d:"M141.7 154.7s.2 67.1 74.7 65.3l4.5 13.9h8.9s-7.4-41.1 60.1-41.5c0 0 0-27.6 27.6-27.6H359s-66-51.8 58.9-118l1.8-13.1s-129.9 71-198.9 57.2c0 0 10.7 42.5-10.8 42.5-10.8 0-9.7-8.1-32.3-8.1-18.7 0-17.3 19.7-26.3 19.5-8.9-.2-18.8-12.3-19.6-10.2-.7 2.1 9.9 20.1 9.9 20.1z"}),h.createElement("g",{fill:"#006651"}
3467,h.createElement("path",{d:"M237.2 308.1c6.9-5 13-6.6 22.4-8.3s19.4-4.4 24.6-5.8-17.7 6.6-23.5 8.3c-5.8 1.6-23.5 5.8-23.5 5.8zm37.9-14.7c-1.9-11.9 2.8-24.3 13.5-29.3 2.5 8.6-5.2 23.2-13.5 29.3zm18.2-6.2c-5.8-9.8 4-22.6 11.1-28.8 3.3 6-2.5 23.7-11.1 28.8zm16.9-7.6c-6.2-8.4 1.1-23.2 8.8-29 3.1 8.2.1 23.2-8.8 29zm16.9-10.6c-5.6-8-1.7-20.4 6.3-28.4 5.8 6.6.9 21-6.3 28.4zm13.5-10.7c-4.7-7.5 1.1-25.4 8.6-30.4 3.3 6.6.8 25.4-8.6 30.4zm10.8-2.8c-1.4-10.8 17.4-22.7 25.2-22.4-.9 8.9-8.9 18.6-25.2 22.4zm-10.5 12.2c8.8-9.1 26-9.1 32.1-7.2-1.7 5.3-21.9 16.9-32.1 7.2z"}),h.createElement("path",{d:"M328.7 276.8c12.4-3.3 20.5-6.1 27.9 1.7-5.2 6.6-25.4 4.7-27.9-1.7zm-17.7 8c11.9-6.4 26.3 3 28.5 8.6-13.3 5.5-28.7-7.2-28.5-8.6zm-16.3 9.2c10.8-4.1 23.2 1.4 28.2 7.5-5.8 2.7-21 5.7-28.2-7.5zm-14.9 4.7c12.4-1.4 24.4 8 27 13.4-15.9 1.5-22-3.2-27-13.4zm-4 9.4c-6.9-5-13-6.6-22.4-8.3-9.4-1.7-19.4-4.4-24.6-5.8-5.3-1.4 17.7 6.6 23.5 8.3 5.8 1.6 23.5 5.8 23.5 5.8zm-37.9-14.7c1.9-11.9-2.8-24.3-13.5-29.3-2.5 8.6 5.2 23.2 13.5 29.3zm-18.2-6.2c5.8-9.8-4-22.6-11.1-28.8-3.3 6 2.5 23.7 11.1 28.8zm-16.9-7.6c6.2-8.4-1.1-23.2-8.8-29-3.1 8.2-.1 23.2 8.8 29zM185.9 269c5.6-8 1.7-20.4-6.3-28.4-5.8 6.6-.9 21 6.3 28.4zm-13.5-10.7c4.7-7.5-1.1-25.4-8.6-30.4-3.3 6.6-.8 25.4 8.6 30.4zm-10.8-2.8c1.4-10.8-17.4-22.7-25.2-22.4.9 8.9 8.9 18.6 25.2 22.4zm10.5 12.2c-8.8-9.1-26-9.1-32.1-7.2 1.7 5.3 21.9 16.9 32.1 7.2z"}),h.createElement("path",{d:"M184.3 276.8c-12.4-3.3-20.5-6.1-27.9 1.7 5.2 6.6 25.4 4.7 27.9-1.7zm17.7 8c-11.9-6.4-26.3 3-28.5 8.6 13.3 5.5 28.7-7.2 28.5-8.6zm16.3 9.2c-10.8-4.1-23.2 1.4-28.2 7.5 5.8 2.7 21 5.7 28.2-7.5zm14.9 4.7c-12.4-1.4-24.4 8-27 13.4 15.9 1.5 22-3.2 27-13.4z"})))},zDe=function(e){var n=e.title,r=Z(e,tRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#11457e",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#d7141a",d:"M513 171v171H0l256.5-171z"}),h.createElement("path",{fill:"#FFF",d:"M513 0v171H256.5L0 0z"}))},VDe=function(e){var n=e.title,r=Z(e,nRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M0 228h513v114H0z"}))},BDe=function(e){var n=e.title,r=Z(e,rRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#12ad2b",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#6ab2e7",d:"M513 0v166.7L0 170.8V0z"}),h.createElement("path",{fill:"#FFF",d:"M256 170.7 0 342V0z"}),h.createElement("path",{fill:"#d7141a",d:"m89.8 92.5 17 52.4H162l-44.6 32.5 17 52.4-44.6-32.4-44.6 32.4 17-52.4-44.6-32.5h55.2z"}))},HDe=function(e){var n=e.title,r=Z(e,sRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#c60c30",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M190 0h-60v140H0v60h130v142h60V200h323v-60H190z"}))}
3467,UDe=function(e){var n=e.title,r=Z(e,iRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#496E2D",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 110.7v120h513v-120z"}),h.createElement("path",{fill:"#FFDA44",d:"M0 110.7h513v40H0z"}),h.createElement("path",{fill:"#FFF",d:"M0 190.7h513v40H0z"}),h.createElement("path",{d:"M196 0h120v342H196z"}),h.createElement("path",{fill:"#FFDA44",d:"M196 0h40v342h-40z"}),h.createElement("path",{fill:"#FFF",d:"M274.7 0h40v342h-40z"}),h.createElement("circle",{fill:"#D80027",cx:256,cy:170.7,r:123.1}),h.createElement("path",{d:"m256 58.6 4.6 14.2h15l-12.1 8.9 4.6 14.2-12.1-8.8-12.1 8.8 4.6-14.2-12.1-8.9h15zM190.1 80l12.2 8.8 12.1-8.8-4.6 14.3 12.1 8.8h-15l-4.6 14.2-4.7-14.2h-15l12.1-8.8zm-40.7 56h15l4.6-14.2 4.7 14.2h15l-12.2 8.8 4.7 14.3-12.2-8.8-12.1 8.8 4.6-14.3zm0 69.3 12.1-8.8-4.6-14.3L169 191l12.2-8.8-4.7 14.3 12.2 8.8h-15l-4.7 14.3-4.6-14.3zm40.7 56.1 4.6-14.3-12.1-8.8h15l4.7-14.3 4.6 14.3h15l-12.1 8.8 4.6 14.3-12.1-8.9zm65.9 21.4-4.6-14.3h-15l12.1-8.8-4.6-14.3 12.1 8.8 12.1-8.8-4.6 14.3 12.1 8.8h-15zm65.9-21.4-12.2-8.9-12.1 8.9 4.6-14.3-12.1-8.8h15l4.6-14.3 4.7 14.3h15l-12.1 8.8zm40.7-56.1h-15l-4.6 14.3-4.7-14.3h-15l12.2-8.8-4.7-14.3L343 191l12.1-8.8-4.6 14.3zm0-69.3-12.1 8.8 4.6 14.3-12.1-8.8-12.2 8.8 4.7-14.3-12.2-8.8h15l4.7-14.2 4.6 14.2zm-40.7-56-4.6 14.3 12.1 8.8h-15l-4.7 14.2-4.6-14.2h-15l12.1-8.8-4.6-14.3 12.1 8.8zM279.3 168.7c-11-21.1-14.5-25.1-14.5-25.1s.4-9.7.4-15.6c0-8.8-7.4-15.8-16.5-15.8-8.6 0-15.7 2.9-16.5 11-4.2.9-8.6 4.1-8.6 10.7 0 4.8 1 7.3 5.2 9.3 2.1-4.6 4.3-4.8 9.3-6.4.8.6 1.7 3 2.6 3.4l.3 1s-13.3 6.6-13.3 30.9c0 29.5 22 45.4 22 45.4l-1.8.3-1.9 7.1h22v-7.2l11 17.5c.3-.3 10.2-47.6.3-66.5z",fill:"#496E2D"}))},WDe=function(e){var n=e.title,r=Z(e,oRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 215.2h211.5v126.1H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 0h211.5v126.2H0z"}),h.createElement("path",{fill:"#D80027",d:"M300.5 0H512v126.2H300.5z"}),h.createElement("path",{fill:"#0052B4",d:"M300.5 215.2H512v126.1H300.5z"}),h.createElement("g",{stroke:"#FFF",strokeWidth:5,strokeMiterlimit:10},h.createElement("path",{fill:"#0052B4",d:"M256 130h-49.9v49.4s19.5 6 49.9 6V130z"}),h.createElement("path",{fill:"#D80027",d:"M206.1 179.4v6c0 27.5 22.3 49.9 49.9 49.9v-49.9c-30.4 0-49.9-6-49.9-6z"}),h.createElement("path",{fill:"#0052B4",d:"M256 235.3c27.5 0 49.9-22.3 49.9-49.9v-6s-19.5 6-49.9 6v49.9z"}),h.createElement("path",{fill:"#D80027",d:"M256 130v55.4c30.4 0 49.9-6 49.9-6V130H256z"})))},qDe=function(e){var n=e.title,r=Z(e,aRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#41662E",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M256.5 0H513v342H256.5z"}),h.createElement("g",{fill:"#D80027"},h.createElement("path",{d:"m341.5 105.3-29.4 40.4-47.5-15.4 29.4 40.4-29.4 40.4 47.5-15.4 29.4 40.4v-50l47.5-15.5-47.5-15.4z"}),h.createElement("path",{d:"M309.9 276.7c-58.5 0-106-47.5-106-106s47.5-106 106-106c18.3 0 35.4 4.6 50.4 12.7-23.5-23-55.7-37.2-91.2-37.2-72 0-130.4 58.4-130.4 130.4S197.1 301 269.1 301c35.5 0 67.7-14.2 91.2-37.2-14.9 8.2-32.1 12.9-50.4 12.9z"})))},GDe=function(e){var n=e.title,r=Z(e,lRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 170.7h513V256H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 256h513v85.3H0z"}),h.createElement("circle",{fill:"#FFDA44",cx:256,cy:171,r:60}),h.createElement("path",{fill:"#4C1F00",d:"M369.2 79.9s-27.2-13.8-33.9-16c-6.7-2.2-49.1-13.2-49.1-7 0 10.3-13.5 12-15.5 12s-2-5.3-14.8-5.3-13.7 4.8-15.8 4.8c-2.2 0-14.5-1-14.5-11.5 0-5.2-42.9 4-49.1 7-6.1 3.1-33.9 16-33.9 16s45.8 2.7 53.9 6.2 43.8 16.5 43.8 16.5l-2.8 13.3h37.8l-3.8-13.3s35.1-12.7 43.8-16.5 53.9-6.2 53.9-6.2z"}),h.createElement("path",{fill:"#57BA17",d:"M217.7 171.7c0 21.1 17.2 38.3 38.3 38.3 21.1 0 38.3-17.2 38.3-38.3v-11.5h-76.5v11.5z"}),h.createElement("path",{fill:"#338AF3",d:"M256 110.5c-21.1 0-38.3 17.2-38.3 38.3v11.5h76.5v-11.5c.1-21.1-17.1-38.3-38.2-38.3z"}))},KDe=function(e){var n=e.title,r=Z(e,cRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#111",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#368FD8",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#FFF",d:"M0 228h513v114H0z"}))},YDe=function(e){var n=e.title,r=Z(e,uRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),h.createElement("path",{d:"M0 228h513v114H0z"}),h.createElement("path",{fill:"#C09300",d:"M220.3 204.4s0-58.4 4.5-64.7c3.1-4.3 16.8 5.2 22.7 4.5 0 0 4.2-7.5 4.5-12 .3-4.6-1.1-7.6-4.9-6.2 0 0-1.2-2.1.5-3.3 1.6-1.2 5.6.1 5.6.1s-.5-1 1.6-.9c2.9.2 7.2 1.4 7.4 5.6.2 3.1.3 7.7.4 8.7.7 6.8 2.7 8.7 2.7 8.7s18.4-9.2 22-5.2c3.3 3.8 4.5 64.7 4.5 64.7l-18.1-16.8 12.1 29.5s-14.4 2.4-28.9 2.4c-14.5 0-31.1-4.2-31.1-4.2l13.8-28.2-19.3 17.3z"}))},QDe=function(e){var n=e.title,r=Z(e,dRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#428823",d:"M0 228h513v114H0z"}),h.createElement("g",{fill:"#D80027"}
vendor: 3,660 bytes, line 3467
3467,h.createElement("path",{d:"M256 171 0 342V0zm53.1 0c0-22.9 13.1-42.1 34.6-46.8-3.3-.7-6.7-1.1-10.3-1.1-26.4 0-47.9 21.4-47.9 47.9s21.4 47.9 47.9 47.9c3.5 0 7-.4 10.3-1.1-21.5-5.1-34.6-24.2-34.6-46.8z"}),h.createElement("path",{d:"m365 129.2 10.3 31.7h33.3l-27 19.6 10.3 31.7-26.9-19.6-27 19.6 10.3-31.7-27-19.6h33.4z"})))},XDe=function(e){var n=e.title,r=Z(e,fRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#338AF3",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#56AF35",d:"M0 0h513v171H0z"}),h.createElement("path",{fill:"#D80027",d:"m0 342 513-171L0 0v342z"}),h.createElement("g",{fill:"#ffc945"},h.createElement("path",{d:"M134.7 231.5c33.6 0 60.8-27.2 60.8-60.8s-27.2-60.8-60.8-60.8-60.8 27.2-60.8 60.8 27.2 60.8 60.8 60.8zm0 24.3c-47 0-85.2-38.1-85.2-85.2s38.1-85.2 85.2-85.2 85.2 38.1 85.2 85.2-38.2 85.2-85.2 85.2z"}),h.createElement("circle",{cx:119.5,cy:148.3,r:17.5}),h.createElement("circle",{cx:148.9,cy:158.5,r:17.5}),h.createElement("circle",{cx:134.7,cy:135.2,r:17.5}),h.createElement("circle",{cx:119.5,cy:172.7,r:17.5}),h.createElement("circle",{cx:149.9,cy:182.8,r:17.5}),h.createElement("circle",{cx:122.5,cy:198,r:17.5}),h.createElement("circle",{cx:145.9,cy:205.2,r:17.5})))},ZDe=function(e){var n=e.title,r=Z(e,hRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h22.5v15H0V0z"}),h.createElement("path",{fill:"#D03433",d:"M0 0h22.5v4H0V0zm0 11h22.5v4H0v-4z"}),h.createElement("path",{fill:"#FBCA46",d:"M0 4h22.5v7H0V4z"}),h.createElement("path",{fill:"#FFF",d:"M7.8 7h1v.5h-1V7z"}),h.createElement("path",{fill:"#A41517",d:"M7.2 8.5c0 .3.3.5.6.5s.6-.2.6-.5L8.5 7H7.1l.1 1.5zM6.6 7c0-.3.2-.5.4-.5h1.5c.3 0 .5.2.5.4V7l-.1 1.5c-.1.6-.5 1-1.1 1-.6 0-1-.4-1.1-1L6.6 7z"}),h.createElement("path",{fill:"#A41517",d:"M6.8 7.5h2V8h-.5l-.5 1-.5-1h-.5v-.5zM5.3 6h1v3.5h-1V6zm4 0h1v3.5h-1V6zm-2.5-.5c0-.3.2-.5.5-.5h1c.3 0 .5.2.5.5v.2c0 .2-.1.3-.3.3H7c-.1 0-.2-.1-.2-.2v-.3z"}))},JDe=function(e){var n=e.title,r=Z(e,pRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#20AA46",d:"M0 0h22.5v5H0V0z"}),h.createElement("path",{fill:"#E92F3B",d:"M0 10h22.5v5H0v-5z"}),h.createElement("path",{fill:"#FADF50",d:"M0 5h22.5v5H0V5z"}),h.createElement("circle",{fill:"#205CCA",cx:11.3,cy:7.5,r:5.2}),h.createElement("g",{stroke:"#FFDB3D",fill:"none"},h.createElement("path",{d:"m11.3 8.8-2.1 1.5.8-2.4-2-1.5h2.5l.8-2.3.8 2.3h2.6l-2.1 1.5.8 2.4-2.1-1.5zm-1-2.4h1.9M9.9 7.8l1.3 1m.8-2.6.7 1.8M10 7.9l.6-1.8M11 9l1.6-1.1",strokeWidth:.5}),h.createElement("path",{d:"m8.7 3.9 1.1 1.6m4-1.7-1 1.6m-1.5 4.7V12M8.9 8.3 7.1 9m8.4 0-1.8-.7",strokeWidth:.25})))},eOe=function(e){var n=e.title,r=Z(e,mRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 810 540"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#039",d:"M0 0h810v540H0z"}),h.createElement("path",{fill:"#FC0",d:"m404.951 59.865 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-90 24 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-66 66 6.735 20.718h21.894l-17.633 12.812 6.638 20.74-17.634-12.812-17.634 12.812 6.736-20.729-17.633-12.812h21.796zm-24 89.999 6.735 20.719h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm24 9
34670.001 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm66 66 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm180-312 6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm66 66 6.735 20.718h21.894l-17.633 12.812 6.637 20.74-17.633-12.812-17.635 12.812 6.737-20.729-17.633-12.812h21.795zm24 90 6.735 20.718h21.894l-17.633 12.813 6.638 20.74-17.634-12.813-17.634 12.813 6.736-20.731-17.633-12.811h21.796zm-24 90 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm-156 90 6.735 20.719h21.894l-17.633 12.811 6.638 20.74-17.634-12.811-17.634 12.811 6.736-20.729-17.633-12.812h21.796zm90-24.001 6.735 20.719h21.894l-17.633 12.812 6.639 20.74-17.635-12.812-17.633 12.812 6.735-20.73-17.633-12.811h21.797z"}))},tOe=function(e){var n=e.title,r=Z(e,gRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#2E52B2",d:"M513 129.3V212H203.7v130H121V212H0v-82.7h121V0h82.7v129.3z"}))},nOe=function(e){var n=e.title,r=Z(e,vRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#62B5E5",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#F3F3F3",d:"M307.1 127.1v92c0 61.6 80.5 80.5 80.5 80.5s80.4-19 80.4-80.6v-92l-80.5-23-80.4 23.1z"}),h.createElement("path",{fill:"#D80027",d:"M468 132.8V98.3H307.1v34.5h69v69h-69v23h69V296c6.9 2.5 11.5 3.5 11.5 3.5s4.6-1.1 11.5-3.5v-71.2h69v-23h-69v-69H468z"}),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"M0 0h256.5v170.6H0V0z"}),h.createElement("path",{d:"m155.9 115 100.6 55.6v-15.8L184.6 115h-28.7zm-55.7-59.3L0 0v15.8l71.8 39.9h28.4z"})),h.createElement("path",{d:"m196.9 115 59.6 32.9V115h-59.6zm-41 0 100.6 55.6v-15.8L184.6 115h-28.7zm73.4 55.6-73.5-40.9v40.9h73.5zM45.2 115 0 140.1V115h45.2zm55 7.1v48.6H12.8l87.4-48.6zM59.1 55.7 0 22.8v32.8s59.1 0 59.1.1zm41.1 0L0 0v15.8l71.8 39.9h28.4zM26.7 0l73.5 40.8V0H26.7zm184.2 55.7 45.6-25.1v25.1h-45.6zm-55-7.2V0h87.4l-87.4 48.5z",fill:"#0052B4"}),h.createElement("g",{fill:"#D80027"},h.createElement("path",{d:"M144.3-.2h-32.1v69.5H0v32.1h112.2v69.5h32.1v-69.5h112.2V69.3H144.3V-.2z"}),h.createElement("path",{d:"m155.9 115 100.6 55.6v-15.8L184.6 115h-28.7zm-84.1 0L0 154.9v15.8L100.2 115H71.8zm28.4-59.3L0 0v15.8l71.8 39.9h28.4zm83.9 0 72.4-39.9V0L155.9 55.7h28.2z"})))},rOe=function(e){var n=e.title,r=Z(e,yRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M256 0v30.6l-45.2 25.1H256V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9h-55.6v-48.6l-87.5 48.6H0v-30.6L45.2 115H0V55.7h59.1L0 22.8V0h26.7l73.5 40.8V0h55.6v48.6L243.3 0z"}),h.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z"}),h.createElement("path",{fill:"#0052B4",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),h.createElement("path",{fill:"#FFF",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),h.createElement("path",{d:"M155.8 115 256 170.7v-15.8L184.2 115zm-84 0L0 154.9v15.8L100.2 115z",fill:"#D80027"}),h.createElement("path",{fill:"#0052B4",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),h.createElement("path",{fill:"#FFF",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),h.createElement("path",{d:"M100.2 55.6 0 0v15.7l71.8 39.9zm84 0L256 15.7V0L155.8 55.6z",fill:"#D80027"}),h.createElement("path",{fill:"#1F8BDE",d:"M312.2 194.2v-90c0-8.5 6.5-15.3 15-15.3h120.5c8.3 0 15 6.8 15 15.3v90c0 75.2-75.2 105.3-75.2 105.3s-75.3-30.1-75.3-105.3z"}),h.createElement("path",{fill:"#FFF",d:"M312.2 194.2v-90c0-8.5 6.5-15.3 15-15.3h120.5c8.3 0 15 6.8 15 15.3v90c0 75.2-75.2 105.3-75.2 105.3s-75.3-30.1-75.3-105.3zm79.6 86.3c7.9-4.5 15.9-10 23.2-16.7 20.5-18.5 32.6-41.4 32.6-69.7v-90c0-.3-120.4-.3-120.4-.3v90.3c0 28.3 12.1 51.2 32.6 69.7 8.3 7.5 17.6 13.9 27.6 19 1.4-.6 2.8-1.4 4.4-2.3z"}),h.createElement("path",{fill:"#187536",d:"M347.1 193.4c-2.6-7.9 1.7-14.3 10.1-14.3h60.5c8.2 0 12.8 6.3 10.1 14.3l-5.5 16.5c-2.6 7.9-8.9 9.2-15.8 4 0 0 2.6-4.8-19.1-4.8-21.7 0-19.1 4.8-19.1 4.8-6.1 5.7-13.1 4-15.8-4 .1.1-5.4-16.5-5.4-16.5z"}),h.createElement("path",{fill:"#FFF",d:"M357.4 179.1c8.1 1.6 17.8-15 30.1-15 13.1 0 21.8 17.1 30.1 15 7.4-1.8 15-22.2 15-30.1 0-16.6-20.2-30.1-45.1-30.1-24.9 0-45.1 13.5-45.1 30.1-.1 8.5 6.6 28.5 15 30.1zm-1.4 9
34671.6c6.2.4 12.5-1.8 17.2-6.5l9-9c2.9-2.9 7.5-2.9 10.4 0l9 9c4.7 4.7 11 6.9 17.1 6.5 5.3-.3 32.5-33.5 25.7-32.6-4.6.6-9.1 2.8-12.7 6.3l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-8.7-8.8-22.9-8.8-31.7-.1l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-3.5-3.5-7.8-5.6-12.3-6.3-6.7-1.1 20.1 32.2 25.3 32.5zM322.1 210c2.9-2.9 7.5-2.9 10.4 0l9 9c8.8 8.7 22.9 8.7 31.7 0l9-9c2.9-2.9 7.5-2.9 10.4 0l9 9c8.8 8.7 22.9 8.7 31.7 0l9-9c2.9-2.9 7.5-2.9 10.4 0 0 0 5.5-14.8 2.5-15.9-7.9-2.9-17.2-1.2-23.5 5.2l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-8.7-8.8-22.9-8.8-31.7-.1l-.1.1-9 9c-2.9 2.9-7.5 2.9-10.4 0l-9-9c-6.2-6.2-15.1-8-22.8-5.5-3.1 1.1 1.9 16.1 1.9 16.1z"}))},sOe=function(e){var n=e.title,r=Z(e,xRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#338AF3",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"m256 37.9 10.1 31.2H299l-26.6 19.3 10.2 31.2-26.6-19.3-26.6 19.3 10.2-31.2L213 69.1h32.9zM123.2 170.7l31.2-10.2v-32.8l19.3 26.6 31.2-10.2-19.3 26.6 19.3 26.5-31.2-10.1-19.3 26.5v-32.8zM256 303.5l-10.1-31.2H213l26.6-19.3-10.2-31.3L256 241l26.6-19.3-10.2 31.3 26.6 19.3h-32.9zm132.8-132.8-31.2 10.1v32.8l-19.3-26.5-31.2 10.1 19.3-26.5-19.3-26.6 31.2 10.2 19.3-26.6v32.8z",fill:"#FFF"}))},iOe=function(e){var n=e.title,r=Z(e,wRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#0F61A5",d:"M513 214.5H206.2V342h-87.8V214.5H0v-87.7h118.4V0h87.8v126.8H513V192z"}),h.createElement("path",{fill:"#E50E3D",d:"M513 149.3V192H183.7v150H141V192H0v-42.7h141V0h42.7v149.3z"}))},oOe=function(e){var n=e.title,r=Z(e,_Re);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},aOe=function(e){var n=e.title,r=Z(e,ERe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 228h513v114H0z"}))},lOe=function(e){var n=e.title,r=Z(e,bRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"M0 0h513v341.3H0V0z"}),h.createElement("path",{d:"M311.7 230 513 341.3v-31.5L369.3 230h-57.6zM200.3 111.3 0 0v31.5l143.7 79.8h56.6z"})),h.createElement("path",{d:"M393.8 230 513 295.7V230H393.8zm-82.1 0L513 341.3v-31.5L369.3 230h-57.6zm146.9 111.3-147-81.7v81.7h147zM90.3 230 0 280.2V230h90.3zm110 14.2v97.2H25.5l174.8-97.2zm-82.1-132.9L0 45.6v65.7h118.2zm82.1 0L0 0v31.5l143.7 79.8h56.6zM53.4 0l147 81.7V0h-147zm368.3 111.3L513 61.1v50.2h-91.3zm-110-14.2V0h174.9L311.7 97.1z",fill:"#0052B4"}),h.createElement("g",{fill:"#D80027"},h.createElement("path",{d:"M288 0h-64v138.7H0v64h224v138.7h64V202.7h224v-64H288V0z"}),h.createElement("path",{d:"M311.7 230 513 341.3v-31.5L369.3 230h-57.6zm-168 0L0 309.9v31.5L200.3 230h-56.6zm56.6-118.7L0 0v31.5l143.7 79.8h56.6zm168 0L513 31.5V0L311.7 111.3h56.6z"})))},cOe=function(e){var n=e.title,r=Z(e,SRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#c60a0a",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#3E8446",d:"m256.5 170.7-212 126.1V44.5z"}),h.createElement("path",{d:"m256.5 170.7 211 126.1h-423zm211-126.2-211 126.2-212-126.2z",fill:"#FFDA44"}),h.createElement("path",{fill:"#3E8446",d:"M467.5 44.5v252.3l-211-126.1z"}),h.createElement("path",{d:"m256.5 10.4 2.8 10.2H270l-8.6 6.3 3.3 10.2-8.2-6.3-9.2 6.3 3.3-10.2-8.6-6.3h10.7zm-86.4 0 3.3 10.2h10.7l-8.6 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm171.8 0 3.3 10.2H356l-8.7 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm-85.4 293.8 2.8 10.2H270l-8.6 6.3 3.3 10.2-8.2-6.3-9.2 6.3 3.3-10.2-8.6-6.3h10.7zm-86.4 0 3.3 10.2h10.7l-8.6 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7zm171.8 0 3.3 10.2H356l-8.7 6.3 3.3 10.2-8.7-6.3-8.7 6.3 3.3-10.2-8.6-6.3h10.7z",fill:"#FFDA44"}
3467),h.createElement("circle",{fill:"#c60a0a",cx:244.5,cy:170.7,r:76.2}),h.createElement("path",{fill:"#FFDA44",d:"m244.5 110.1 13.6 41.8h44l-35.6 25.8 13.6 41.8-35.6-25.8-35.5 25.8 13.6-41.8-35.6-25.8h44zm-136.8 57.7c4.4 6.9 2.3 16.1-4.6 20.5s-16.1 2.3-20.5-4.6c-7.9-12.5-3.3-33-3.3-33s20.4 4.6 28.4 17.1z"}),h.createElement("circle",{fill:"#A2001D",cx:99.1,cy:182.1,r:7.4}))},uOe=function(e){var n=e.title,r=Z(e,CRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M.8 0h21v15H.8V0z"}),h.createElement("path",{fill:"#eb000e",d:"M9.8 6H0v3h9.8v6h3V9h9.8V6h-9.8V0h-3v6z"}),h.createElement("path",{fill:"#eb000e",d:"m17.3 2.7-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm-12.7 0-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm0 9-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2zm12.7 0-.2-1.2h1l-.2 1.2 1.2-.2v1l-1.2-.2.2 1.2h-1l.2-1.2-1.2.2v-1l1.2.2z"}))},dOe=function(e){var n=e.title,r=Z(e,TRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 60"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FDEB01",d:"m0 0 90 60H0z"}),h.createElement("path",{fill:"#58A846",d:"M90 0v60L0 0z"}),h.createElement("path",{fill:"#ED3D24",d:"m50.7 33.3 9.3-6.7H48.5L45 15.7l-3.5 10.9H30l9.3 6.7-3.6 11 9.3-6.7 9.3 6.7z"}))},fOe=function(e){var n=e.title,r=Z(e,ARe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M308 0H204v118.7H0v104h204V342h104V222.7h205v-104H308z"}),h.createElement("path",{fill:"#FFDA44",d:"m368.6 188 26 17.3V136l-26 17.3h-95.3V58.1l17.3-26h-69.2l17.3 26v95.2h-95.3l-26-17.3v69.3l26-17.3h95.3v95.2l-17.3 26h69.2l-17.3-26V188z"}))},hOe=function(e){var n=e.title,r=Z(e,IRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#496E2D",d:"M0 228h513v114H0z"}),h.createElement("path",{d:"m255.9 113.8 14.1 43.4 40.4 3.2-37 26.9 19.5 40.3-37-26.9-37 26.9 14.1-43.5-36.9-26.9h45.7z"}))},pOe=function(e){var n=e.title,r=Z(e,PRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 230h513v112H0z"}),h.createElement("path",{fill:"#D80027",stroke:"#000",strokeMiterlimit:10,d:"M363.1 131.8V99.1H374V77.3h-21.9v10.9h-21.8V77.3h-21.8v21.8h10.9v32.7h-21.8V55.5h10.9V33.7h-21.8v10.9h-10.9V33.7H254v10.9h-10.9V33.7h-21.8v21.8h10.9v76.3h-21.8V99.1h10.9V77.3h-21.8v10.9h-21.8V77.3h-21.8v21.8h10.9v32.7H145V219h239.9v-87.2z"}),h.createElement("path",{fill:"#FFDA44",stroke:"#000",strokeMiterlimit:10,d:"m264.9 235.5-24.2 18.2 19.1 14.3v31.3h-23.2v9h23v7.9h-23v9.3H270V268l19.1-14.3-24.2-18.2zm0 25.3-10.1-7.1 10.1-7.1 10.1 7.1-10.1 7.1z"}),h.createElement("path",{d:"M239.6 209.7v-27.9s.1-22.3 25-22.3c24.8 0 25.7 22 25.7 22v28.2h-50.7zm-69.1 0v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8z"}),h.createElement("path",{d:"M169.1 209.7v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8zm151.8 0v-24.3s.1-18.7 19.6-18.7 20.2 18.4 20.2 18.4v24.5h-39.8zm8.4-77.7v-15.7s.1-12.1 11.3-12.1c11.3 0 11.7 11.9 11.7 11.9V132h-23zm-78.8 0v-23.7s.1-18.3 14.3-18.3c14.2 0 14.7 18 14.7 18v24h-29zm-73 0v-15.7s.1-12.1 11.3-12.1 11.7 11.9 11.7 11.9V132h-23z"}))},mOe=function(e){var n=e.title,r=Z(e,RRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M513 0v171H0V0z"}),h.createElement("circle",{fill:"#FFF",cx:185.8,cy:171.2,r:117.8}),h.createElement("path",{fill:"#D80027",d:"M68 171c0-65.1 52.8-117.8 117.8-117.8 65.1 0 117.8 52.8 117.8 117.8"}))}
vendor: 10,483 bytes, line 3467
3467,gOe=function(e){var n=e.title,r=Z(e,NRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#cf0d19",d:"M0 0h513v100H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 121h513v100H0z"}),h.createElement("path",{fill:"#1a7e25",d:"M0 242h513v100H0z"}))},vOe=function(e){var n=e.title,r=Z(e,MRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 0h512v342H0z"}),h.createElement("path",{fill:"#6DA544",d:"M342 0h171v342H342z"}),h.createElement("path",{fill:"#D80027",d:"M0 0h171v342H0z"}))},yOe=function(e){var n=e.title,r=Z(e,kRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},xOe=function(e){var n=e.title,r=Z(e,DRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 0h513v113.8H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 227.6h513V342H0z"}),h.createElement("path",{fill:"#0070C8",d:"M126 171 0 342V0z"}),h.createElement("path",{fill:"none",stroke:"#000",strokeMiterlimit:10,d:"M233.8 139.4v40.4c0 35.6 35.6 35.6 35.6 35.6s35.6 0 35.6-35.6v-40.4h-71.2z"}),h.createElement("path",{fill:"#786145",d:"M264.5 179.8h9.8l4 25.8h-17.8z"}),h.createElement("path",{fill:"#6DA544",d:"M287.2 162c0-9.8-8-14.8-17.8-14.8s-17.8 5-17.8 14.8c-4.9 0-8.9 4-8.9 8.9s4 8.9 8.9 8.9h35.6c4.9 0 8.9-4 8.9-8.9s-4-8.9-8.9-8.9z"}),h.createElement("path",{d:"m230.7 120 1.9 3.3h3.8l-1.9 3.3 1.9 3.2h-3.8l-1.9 3.3-1.9-3.3H225l1.9-3.2-1.9-3.3h3.8zm15.3 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2h-3.7l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8zm15.3 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2h-3.7l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8zm15.8 0 1.9 3.3h3.8l-1.9 3.3 1.9 3.2H279l-1.9 3.3-1.9-3.3h-3.7l1.8-3.2-1.8-3.3h3.7zm16 0 1.9 3.3h3.8l-1.9 3.3 1.9 3.2H295l-1.9 3.3-1.9-3.3h-3.7l1.8-3.2-1.8-3.3h3.7zm15 0 1.9 3.3h3.7l-1.9 3.3 1.9 3.2H310l-1.9 3.3-1.9-3.3h-3.8l1.9-3.2-1.9-3.3h3.8z",fill:"#FFDA00",stroke:"#000",strokeMiterlimit:10}))},wOe=function(e){var n=e.title,r=Z(e,ORe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("g",{fill:"#0d5eaf"},h.createElement("path",{d:"M0 0h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0z"}),h.createElement("path",{d:"M0 0h190v190H0z"})),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"M0 76h190v38H0z"}),h.createElement("path",{d:"M76 0h38v190H76z"})))},_Oe=function(e){var n=e.title,r=Z(e,$Re);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),h.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),h.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),h.createElement("path",{fill:"#D80027",d:"M0 170.7v-11l62.5-42.3h22.6L7.3 170.7zM7.3.1l77.8 53.2H62.5L0 11.1V.1zM256 .1v11l-62.5 42.3h-22.6L248.7.1zm-7.3 170.6-77.8-53.3h22.6l62.5 42.3v11z"}),h.createElement("ellipse",{fill:"#FFF",cx:443.4,cy:233.6,rx:29,ry:43.5}),h.createElement("ellipse",{fill:"#FFCE00",cx:406.9,cy:317.7,rx:22,ry:9.3}),h.createElement("ellipse",{fill:"#FFCE00",cx:364,cy:317.7,rx:22,ry:9.3}),h.createElement("path",{fill:"#39B200",d:"m342 190.1 43.4 86.9 43.5-86.9z"}),h.createElement("ellipse",{fill:"#9B9B9B",cx:327.5,cy:233.6,rx:29,ry:43.5}),h.createElement("path",{fill:"#757575",d:"m371 175.6-14.5 14.5h57.9l-14.5-14.5 14.5-43.5s-13-29-29-29-29 29-29 29l14.6 43.5z"}),h.createElement("circle",{fill:"#C6B56F",cx:385.4,cy:67,r:29}),h.createElement("circle",{fill:"#A54A00",cx:386,cy:88.7,r:29}),h.createElement("circle",{fill:"#FFF",cx:443.4,cy:117.7,r:29}),h.createElement("circle",{fill:"#0049FF",cx:342.2,cy:146.7,r:29}),h.createElement("circle",{fill:"#0041F9",cx:429.8,cy:146.7,r:29}),h.createElement("circle",{fill:"#F7D71E",cx:386,cy:233.6,r:29}),h.createElement("circle",{fill:"#CEC851",cx:457.9,cy:190.1,r:29}),h.createElement("circle",{fill:"#FFF",cx:385.4,cy:289.5,r:29}),h.createElement("path",{fill:"#7C0B29",d:"m371 135.7 14.5-3.5 14.5 3.5c0 7.5-14.5 11-14.5 11s-14.5-3.5-14.5-11z"}),h.createElement("circle",{fill:"#FFF",cx:327.5,cy:117.4,r:29}))},EOe=function(e){var n=e.title,r=Z(e,FRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h171v342H0zm342 0h171v342H342z",fill:"#338AF3"}),h.createElement("circle",{fill:"#DCC26D",cx:256,cy:155.8,r:25.5}),h.createElement("path",{fill:"#628A40",d:"M194.2 155.9c0 22.1 11.8 42.5 30.8 53.5 5.9 3.4 13.5 1.4 16.9-4.5 3.4-5.9 1.4-13.5-4.5-16.9-11.5-6.6-18.5-18.9-18.5-32.1 0-6.8-5.5-12.4-12.4-12.4s-12.3 5.5-12.3 12.4zm95.1 52.1c17.8-11.4 28.6-31 28.5-52.1 0-6.8-5.5-12.4-12.4-12.4-6.8 0-12.4 5.5-12.4 12.4 0 12.7-6.5 24.5-17.1 31.3-5.8 3.6-7.7 11.2-4.1 17 3.6 5.8 11.2 7.7 17 4.1.2-.1.3-.2.5-.3z"}))},bOe=function(e){var n=e.title,r=Z(e,jRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#0052B4",d:"M11.1 11.1h489.7v319.1H11.1z"}),h.createElement("path",{fill:"#7DBEF1",d:"M256 285.3s76.4-51.3 76.4-114.6S256 56 256 56s-76.4 51.3-76.4 114.6S256 285.3 256 285.3z"}),h.createElement("path",{fill:"#1C8AE6",d:"M179.8 180.7h152.6l-29.3 64.9h-95.2z"}),h.createElement("path",{fill:"#FFF042",d:"M192.3 205.9s40.5 38.2 51 38.2c12.4 0 12.6-18.4 25.5-25.5 20.2-11.1 51-12.7 51-12.7L297 248.7l-41 36.6-46.8-39.7-16.9-39.7z"}),h.createElement("path",{fill:"#259C7B",d:"m256 157.5-22.5 15.6 7.9-26.2-21.8-16.5 27.4-.5 9-25.9 9 25.9 27.4.5-21.8 16.6 7.9 26.2-22.5-15.7z"}),h.createElement("path",{fill:"#8E5715",d:"M249.7 144.6c-.9 9.2-1.5 18.4-1.7 27.6-.3 11.9.3 20.7 2 26 2.2 6.6 7.2 12.9 14.2 18.9 5.3 4.6 10.6 8.1 14.2 10.1 3.1 1.7 7 .6 8.7-2.4 1.7-3.1.6-7-2.4-8.7-4.3-2.5-8.4-5.4-12.2-8.7-5.4-4.6-9.1-9.2-10.4-13.3-1.1-3.4-1.6-11.3-1.4-21.7.2-8.9.8-17.8 1.7-26.6.4-3.5-2.2-6.6-5.7-7-3.6-.3-6.7 2.3-7 5.8z"}),h.createElement("path",{fill:"#FFF",d:"m217.8 170.7 25.5 38.2h-25.5v-38.2z"}),h.createElement("path",{fill:"none",stroke:"#D80027",strokeWidth:12,strokeMiterlimit:10,d:"M256 285.3s76.4-51.3 76.4-114.6S256 56 256 56s-76.4 51.3-76.4 114.6S256 285.3 256 285.3z"}))},SOe=function(e){var n=e.title,r=Z(e,LRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#6DA544",d:"M0 0h512v342H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M0 0h512v171H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 0h182v342H0z"}),h.createElement("path",{d:"m98.3 109.8 15.1 46.5h48.9L122.8 185l15.1 46.5-39.6-28.7-39.5 28.7L73.9 185l-39.6-28.7h48.9z"}))},COe=function(e){var n=e.title,r=Z(e,zRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#009E49",d:"M0 0h900v600H0V0z"}),h.createElement("path",{fill:"#FFF",d:"m0 0 947 300L0 600V0z"}),h.createElement("path",{fill:"#FFD00D",d:"M0 26.1 870 300 0 573.9V26.1z"}),h.createElement("path",{fill:"#2D2D2D",d:"m0 0 450 300L0 600V0z"}),h.createElement("path",{fill:"#D3132F",d:"m0 35 397.5 265L0 565V35z"}))},TOe=function(e){var n=e.title,r=Z(e,VRe);return h.createElement("svg",X({viewBox:"0 0.5 21 14",xmlns:"http://www.w3.org/2000/svg"},r),n&&h.createElement("title",null,n),h.createElement("g",{fill:"none",fillRule:"evenodd"},h.createElement("path",{fill:"#FFF",d:"M0 0h21v15H0z"}),h.createElement("path",{fill:"#ee1c25",d:"M0 0h21v15H0z"}),h.createElement("path",{d:"M12 7.19c-.798-.5-1 .409-1 0 0-.828.895-1.5 2-1.5s2 .672 2 1.5c-.949 0-1.044.5-1.5.5-.56 0-.702 0-1.5-.5zM13.25 7a.25.25 0 1 0 0-.5.25.25 0 0 0 0 .5zm-1.81 1.962c.228-.913-.698-.824-.31-.95.788-.257 1.703.387 2.045 1.438.341 1.05-.021 2.11-.809 2.366-.293-.903-.798-.838-.939-1.272-.173-.533-.217-.668.012-1.582zm.566 1.13a.25.25 0 1 0 .476-.154.25.25 0 0 0-.476.154zM9.58 8.977c.94-.065.57-.919.81-.588.486.67.157 1.74-.737 2.389-.894.65-2.013.632-2.5-.038.768-.558.55-1.018.92-1.286.453-.33.568-.413 1.507-.477zm-.899.888a.25.25 0 1 0 .294.405.25.25 0 0 0-.294-.405zm.312-2.652c.351.874 1.049.258.809.588-.487.67-1.606.687-2.5.038-.894-.65-1.223-1.719-.736-2.39.767.559 1.138.21 1.507.478.453.33.568.413.92 1.286zm-1.124-.58a.25.25 0 1 0-.293.404.25.25 0 0 0 .293-.404zm2.619-.524c-.722.605.08 1.078-.309.951-.788-.256-1.15-1.315-.809-2.365.342-1.05 1.257-1.695 2.045-1.439-.293.903.153 1.147.012 1.581-.173.533-.217.668-.939 1.272zm.205-1.247a.25.25 0 1 0-.475-.155.25.25 0 0 0 .475.155z",fill:"#FFF"})))},AOe=function(e){var n=e.title,r=Z(e,BRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"M223.4 170.7c.3-.3.5-.6.8-.9-.3.3-.5.6-.8.9zm-34.2 41.9 11 22.9 24.7-5.7-11.1 22.8 19.9 15.8L209 274v25.4l-19.8-15.9-19.8 15.9.1-25.4-24.8-5.6 19.9-15.8-11.1-22.8 24.8 5.7zm197.9 28.5 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6v12.2l-9.4-7.6-9.5 7.6.1-12.2-11.9-2.6 9.5-7.5-5.3-10.9 11.9 2.7zm-48.6-116 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6v-12.1l-11.8-2.7 9.5-7.5-5.3-10.9 11.8 2.7zm48.6-66.2 5.2 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.7v12.1l-9.4-7.6-9.5 7.6.1-12.1-11.9-2.7 9.5-7.5-5.3-10.9 11.9 2.7zm42.4 49.7 5.3 10.9 11.8-2.7-5.3 10.9 9.5 7.5-11.8 2.6V1
346750l-9.5-7.6-9.4 7.6v-12.2l-11.8-2.6 9.5-7.5-5.3-10.9 11.8 2.7zm-30.3 57.9 4.1 12.7h13.3l-10.8 7.8 4.1 12.6-10.7-7.8-10.8 7.8 4.1-12.6-10.7-7.8h13.3z"}),h.createElement("path",{d:"M256 0v30.6l-45.2 25.1H256V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9h-55.6v-48.6l-87.5 48.6H0v-30.6L45.2 115H0V55.7h59.1L0 22.8V0h26.7l73.5 40.8V0h55.6v48.6L243.3 0z"})),h.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z"}),h.createElement("path",{fill:"#0052B4",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),h.createElement("path",{fill:"#FFF",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),h.createElement("path",{d:"M155.8 115 256 170.7v-15.8L184.2 115zm-84 0L0 154.9v15.8L100.2 115z",fill:"#D80027"}),h.createElement("path",{fill:"#0052B4",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),h.createElement("path",{fill:"#FFF",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),h.createElement("path",{d:"M100.2 55.6 0 0v15.7l71.8 39.9zm84 0L256 15.7V0L155.8 55.6z",fill:"#D80027"}))},IOe=function(e){var n=e.title,r=Z(e,HRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0zm203.5-110.1 6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zm105 0 6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zM256 147.6l6.7 16.6 17.6 1-14 10.9 4.7 17.7-15-9.9-15 9.9 4.7-17.7-14-10.9 17.6-1zm-52.5 29.7 6.7 16.6 17.6 1-14 10.9 4.7 17.6-15-9.9-15 9.9 4.7-17.6-14-10.9 17.6-1zm105 0 6.7 16.6 17.6 1-14 10.9 4.7 17.6-15-9.9-15 9.9 4.7-17.6-14-10.9 17.6-1z",fill:"#338AF3"}))},POe=function(e){var n=e.title,r=Z(e,URe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 228h513v114H0z"}),h.createElement("path",{d:"M309.3 113.2v-44l17.5-14.4 17.7 14.4v44zm-105.6 0v-44l-17.3-14.4-17.9 14.4v44zm35.2 0v-44l17.6-14.4 17.6 14.4v44z",fill:"#338AF3"}),h.createElement("path",{d:"M309.3 113.2h-35.2v-44l17.5-14.4 17.7 14.4zm-70.4 0h-35.2v-44l17.5-14.4 17.7 14.4z",fill:"#0052B4"}),h.createElement("path",{stroke:"#D80027",fill:"#FFF",d:"M168.5 113.2v101.9c0 24.3 14.4 46.2 35.4 59.4 21.3 13.4 42.1 14.7 52.6 14.7s31.4-1.7 52.6-14.8c21-13 35.4-35.1 35.4-59.3V113.2h-176z"}),h.createElement("path",{d:"M168.5 113.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-105.6 35.2h35.2v35.2h-35.2zm35.2 35.2h35.2V254h-35.2zm35.2-35.2h35.2v35.2h-35.2zm70.4 0h35.2v35.2h-35.2zm-35.2 35.2h35.2V254h-35.2zm35.2 55.5c8.6-5.4 16.2-12.3 22-20.3h-22v20.3zM181.7 254c5.8 8 13.3 14.9 22 20.4V254h-22zm57.2 0v33.7c7.2 1.2 13.3 1.5 17.6 1.5 4.3 0 10.4-.3 17.6-1.6V254h-35.2z",fill:"#D80027"}))},ROe=function(e){var n=e.title,r=Z(e,WRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#A2001D",d:"M0 0h513v172H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 172h513v172H0z"}),h.createElement("path",{fill:"#FFF",d:"m381.4 251.5-110.7-13.8-110.8 13.8V85.4h221.5z"}),h.createElement("circle",{fill:"#0052B4",cx:270.7,cy:182.3,r:55.4}),h.createElement("circle",{fill:"#A2001D",cx:270.7,cy:182.3,r:27.7}),h.createElement("path",{fill:"#6DA544",d:"M229.1 113.1h83.1l-41.5 41.5z"}),h.createElement("path",{fill:"#FFDA44",d:"M256.8 140.8h27.7v83h-27.7z"}),h.createElement("path",{fill:"#6DA544",d:"M314.9 215.5h-88.5l-66.5 36h221.5z"}))},NOe=function(e){var n=e.title,r=Z(e,qRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 228h513v114H0z"}))},MOe=function(e){var n=e.title,r=Z(e,GRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 300 200"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#fc0",d:"M0 0h300v200H0z"}),h.createElement("path",{fill:"#0768a9",d:"M0 0h200v200H0z"}),h.createElement("path",{fill:"#fff",d:"M0 0h100v200H0z"}))},kOe=function(e){var n=e.title,r=Z(e,KRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#E00",d:"M0 0h513v171H0z"}))},DOe=function(e){var n=e.title,r=Z(e,YRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 0h171v342H0z"}),h.createElement("path",{fill:"#FF9811",d:"M342 0h171v342H342z"}))},OOe=function(e){var n=e.title,r=Z(e,QRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M340.6 122.4h-56.1l-28-48.6-28 48.6h-56.1l28 48.6-28 48.6h56.1l28 48.6 28-48.6h56.1l-28-48.6 28-48.6zM293.2 171 276 204.2h-38.9L219.8 171l17.2-33.2h38.9l17.3 33.2zm-36.7-71.8 11.9 23.3h-23.9l12-23.3zm-58.3 38.6h23.9l-10.8 21-13.1-21zm0 66.4 13-22.1 11.9 22.1h-24.9zm58.3 37.5-11.9-22.1h23.9l-12 22.1zm59.4-37.5h-25l11.9-22.1 13.1 22.1zm-26.1-66.4h26.1l-13 22.1-13.1-22.1zM0 21.3h512V64H0zm0 256h512V320H0z",fill:"#2E52B2"}))},$Oe=function(e){var n=e.title,r=Z(e,XRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#E52D42",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M393.3 68.2h-45.8l-33.8 80.2-34.4-22.9s-24.7-59.1-34.4-68.2c-9.7-9.7-18.7-.6-48.9 7.8-29.6 8.4-30.8 18.7-42.2 18.7-4.8 0-19.9-17.5-27.7-22.3-12.1-7.8-16.9-4.2-13.9 7.2 1.2 4.8 10.9 10.9 16.9 19.9 7.8 11.5 12.7 25.9 12.7 25.9s10.9-10.3 16.9-12.1c9-2.4 19.3 1.8 31.4 0 15.1-2.4 31.4-10.9 31.4-10.9l4.2 43.4s-54.3 50.7-49.5 70.6 56.1 44.6 68.2 62.7c12.1 17.5-7.2 24.1-7.2 32.6s-1.8 19.9 7.2 16.3c9-3.6 10.3-18.1 18.7-31.4 6-9 10.3-13.9 11.5-17.5 1.8-9-23.5-32-37.4-48.9-6.6-7.8-19.9-18.7-19.9-18.7l39.2-29.6s67.6 27.7 82.6 18.7c15.1-9 19.3-98.3 19.3-98.3l47-11.5-12.1-11.7z"}),h.createElement("path",{fill:"#F8DD4E",d:"M279.3 262.4c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm45.8-182.8c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm0 91.1c-6 0-11.5-4.8-11.5-11.5 0-6 4.8-11.5 11.5-11.5 6 0 11.5 4.8 11.5 11.5-.6 6.7-5.5 11.5-11.5 11.5zm-136.9 45.8c-6 0-11.5-4.8-11.5-11.5 0-6 4.8-11.5 11.5-11.5 6.6 0 11.5 4.8 11.5 11.5s-5.5 11.5-11.5 11.5zm45.2-136.9c-6 0-11.5-4.8-11.5-11.5s4.8-11.5 11.5-11.5c6 0 11.5 4.8 11.5 11.5s-4.8 11.5-11.5 11.5zm22.9 91.1c-6 0-11.5-10.3-11.5-22.9s4.8-22.9 11.5-22.9c6 0 11.5 10.3 11.5 22.9s-4.8 22.9-11.5 22.9zm-114-45.2c-6 0-11.5-4.8-11.5-11.5 0-6.6 4.8-11.5 11.5-11.5 6.6 0 11.5 4.8 11.5 11.5 0 6.6-4.8 11.5-11.5 11.5z"}))},FOe=function(e){var n=e.title,r=Z(e,ZRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#F93",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#fff",d:"M0 114h513v114H0z"}),h.createElement("path",{fill:"#138808",d:"M0 228h513v114H0z"}),h.createElement("circle",{cx:256.5,cy:171,r:34.2,stroke:"navy",strokeWidth:4,fill:"none"}),h.createElement("circle",{cx:256.5,cy:171,r:3.42,fill:"navy"}),h.createElement("path",{d:"m265.3 138.159-17.6 65.682m17.6-65.682-17.6 65.682m25.8-62.286-34 58.89m41.042
3467-53.487-48.084 48.084M285.945 154l-58.89 34m62.286-25.8-65.682 17.6M290.5 171h-68m66.841 8.8-65.682-17.6m62.286 25.8-58.89-34m53.487 41.042-48.084-48.084m41.042 53.487-34-58.89m25.8 62.286-17.6-65.682M256.5 205v-68m-8.8 66.841 17.6-65.682m-25.8 62.286 34-58.89m-41.042 53.487 48.084-48.084M227.055 188l58.89-34m-62.286 25.8 65.682-17.6M222.5 171h68m-66.841-8.8 65.682 17.6M227.055 154l58.89 34m-53.487-41.042 48.084 48.084M239.5 141.555l34 58.89m-25.8-62.286 17.6 65.682",stroke:"navy",strokeWidth:2}))},jOe=function(e){var n=e.title,r=Z(e,JRe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0-.3h513V342H0V-.3z"}),h.createElement("path",{fill:"#0052B4",d:"M462.9 198.1c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 10c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-10 20-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-10 21-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 21 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 20 10c11 6 22 12 32.1 12s20-6 31.1-12l19-10v-22c-10 0-20 6-30.1 12-7 4-16 9-20 9zM0 31.7l19 10c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-10 20-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-10 21-10s13 6 20 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 21 10c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-10 20-10s14 6 20 10c11 6 22 12 32.1 12s20-6 31.1-12l19-10v-22c-10 1-20 6-30.1 12-7 4-16 9-20 9s-14-5-21-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-11-30.1-12v22zm462.9 55.2c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 9c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12l19-9v-22c-10 0-20 6-30.1 12-7 3.9-16 9-20 9zm50.1 34c-10 1-20 6-30.1 12-7 4-16 10-20 10s-14-6-21-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-14-6-20-10c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-13-6-20-10c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 10-20 10s-13-6-20-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 10-21 10s-13-6-20-10c-10-6-20-11-30.1-12v23c4 1 13 5 19 9 11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12c6-4 15-8 19-9v-23zm-50.1 133.3c-4 0-14-5-21-9-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 9-20 9s-14-5-20-9c-11-6-22-12-32.1-12-9 0-20 6-31.1 12-7 4-16 9-20 9s-13-5-20-9c-11-6-22-12-31.1-12-10 0-21 6-32.1 12-6 4-16 9-20 9s-13-5-20-9c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 9-21 9s-13-5-20-9c-10-6-20-12-30.1-12v22l19 9c11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12l19-9v-22c-10 0-20 6-30.1 12-7 4-16 9-20 9zm50.1 34c-10 1-20 6-30.1 12-7 4-16 10-20 10s-14-6-21-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-14-6-20-10c-11-6-22-12-32.1-12s-20 6-31.1 12c-7 4-16 10-20 10s-13-6-20-10c-11-6-22-12-31.1-12s-21 6-32.1 12c-6 4-16 10-20 10s-13-6-20-10c-11-6-21-12-31.1-12s-20 6-31.1 12c-7 4-17 10-21 10s-13-6-20-10c-10-6-20-11-30.1-12v23
3467c4 0 13 5 19 9 11 6 21 12 31.1 12s21-6 32.1-12c6-4 16-9 20-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 17-9 21-9s13 5 20 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 21 9c11 6 21 12 31.1 12s20-6 31.1-12c7-4 16-9 20-9s14 5 20 9c11 6 22 12 32.1 12s20-6 31.1-12c6-4 15-9 19-9v-23z"}),h.createElement("path",{fill:"#FFF",d:"M0-.3h256v171H0V-.3z"}),h.createElement("path",{d:"M389.8 119.9H408v78.8h-18.3l.1-78.8zm0 117.8H408v75.1h-18.3l.1-75.1z",fill:"#A2001D"}),h.createElement("g",{fill:"#D80027"},h.createElement("path",{d:"M144-.3h-32v70H0v32h112v69h32v-69h112v-32H144v-70z"}),h.createElement("path",{d:"M0-.3v15l57 39h23L0-.3zm256 0v15l-57 39h-23l80-54z"}),h.createElement("path",{d:"M0-.3v15l57 39h23L0-.3zm256 0v15l-57 39h-23l80-54zM0 170.7v-15l57-38h23l-80 53zm256 0v-15l-57-38h-23l80 53z"})),h.createElement("g",{fill:"#2E52B2"},h.createElement("path",{d:"M0 22.7v31h46l-46-31zm96-23v49L23-.3h73zm160 23v31h-46l46-31zm-96-23v49l73-49h-73z"}),h.createElement("path",{d:"M0 22.7v31h46l-46-31zm96-23v49L23-.3h73zm160 23v31h-46l46-31zm-96-23v49l73-49h-73zM0 147.7v-30h46l-46 30zm96 23v-49l-73 49h73zm160-23v-30h-46l46 30zm-96 23v-49l73 49h-73z"})),h.createElement("path",{fill:"#5DA51E",stroke:"#45602C",strokeWidth:4,strokeMiterlimit:10,d:"M462.8 91.5h-29.1l25.7-25.7c4.5-4.4 4.5-11.4 0-15.8l-3.4-3.4c-4.4-4.4-11.4-4.4-15.8 0l-25.9 25.9V37.4c0-6.2-5.1-11.3-11.3-11.3h-4.7c-6.2 0-11.3 5.1-11.3 11.3v31.7l-23.5-23.8c-4.7-4.7-12.2-4.7-16.9 0l-3.6 3.6c-4.7 4.7-4.7 12.4 0 17.2l25 25.4h-30.6c-6 0-10.9 4.9-10.9 10.9v4.6c0 6 4.9 10.9 10.9 10.9H369l-20.7 20.7c-4.4 4.4-4.4 11.4 0 15.8l3.4 3.4c4.4 4.4 11.4 4.4 15.8 0l19.6-19.6V167c0 6.1 5.1 11.1 11.3 11.3h4.7c6.2 0 11.3-5.1 11.3-11.3v-28.3l22.2 22.6c4.7 4.7 12.4 4.7 17.1 0l3.6-3.6c4.7-4.7 4.7-12.4 0-17.2L435.2 118h27.6c5.9 0 10.7-4.9 10.9-10.9v-4.6c0-6.1-4.9-11-10.9-11z"}),h.createElement("path",{fill:"#E2DD24",stroke:"#525625",strokeWidth:4,strokeMiterlimit:10,d:"M439.2 249.1h-79.8s-.9-13.4-6-21.8c-6.2-10.4-13.9-28.1-1.4-36.7 15.9-10.9 33.7.8 48.2.8 11.8.1 26.9-14 45-.8 12.2 8.9 3.9 28.2-1.3 36.7-7 11.5-4.7 21.8-4.7 21.8z"}))},LOe=function(e){var n=e.title,r=Z(e,eNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#CE1126",d:"M0 0h513v114H0z"}),h.createElement("path",{d:"M0 228h513v114H0z"}),h.createElement("path",{d:"M219.2 160.7h-29.3c1.5-5.7 6.6-9.9 12.8-9.9v-19.9c-18.3 0-33.1 14.9-33.1 33.1v16.5h49.6c1.8 0 3.3 1.5 3.3 3.3v6.6h-66.2v19.9h86.1v-26.5c0-12.7-10.4-23.1-23.2-23.1zm49.6 29.8v-59.6H249v79.5h33.1v-19.9zm66.2 0v-59.6h-19.8v59.6h-6.6v-19.8h-19.9v39.7h59.6v-19.9z",fill:"#547C31"}))},zOe=function(e){var n=e.title,r=Z(e,tNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 0h513v114H0z"}),h.createElement("path",{d:"M0 227.9h513v114H0zm278.8-93.1c.1 2 8.7 26.2 4.4 39.4-6.6 20.3-15.8 21.8-19.8 24.5V134l-6.9-4.2-6.9 4.2v64.7c-4-2.7-12.4-2.4-19.8-24.5-4.3-12.7 5.7-37.3 5.8-39.2 0 0-9.5 8.1-15.8 24-5.9 14.8 1.9 49.6 29.5 54.8 2.3.4 4.7 5.6 7.2 5.6 2.1 0 4.1-5.2 6-5.5 28.4-4.6 35-41.7 29.9-55.6-5.4-14.6-13.6-23.5-13.6-23.5z",fill:"#D80027"}),h.createElement("path",{d:"M44.6 98.9h22.3v24.4H44.6zM0 98.9h22.3v24.4H0zm89.2 0h22.3v24.4H89.2zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4H223zm44.7 0H290v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0h22.3v24.4h-22.3zm44.6 0H513v24.4h-22.3zm-446.1 118h22.3v25.5H44.6zm-44.6 0h22.3v25.5H0zm89.2 0h22.3v25.5H89.2zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5H223zm44.7 0H290v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0h22.3v25.5h-22.3zm44.6 0H513v25.5h-22.3z",fill:"#FFF",opacity:.5}))},VOe=function(e){var n=e.title,r=Z(e,nNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M513 210.6H202.2v130.7h-79.8V210.6H0v-79.8h122.4V0h79.8v130.8H513v18.5l-1 42.7z"}),h.createElement("path",{fill:"#D80027",d:"M513 149.3V192H183.7v149.3H141V192H0v-42.7h141V0h42.7v149.3z"}))},BOe=function(e){var n=e.title,r=Z(e,rNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#F4F5F0",d:"M342 0H0v341.3h512V0z"}),h.createElement("path",{fill:"#008C45",d:"M0 0h171v342H0z"}),h.createElement("path",{fill:"#CD212A",d:"M342 0h171v342H342z"}))},HOe=function(e){var n=e.title,r=Z(e,sNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M301.8 171 513 30.2V0h-45.3L256.5 140.8 45.3 0H0v30.2L211.2 171 0 311.8V342h45.3l211.2-140.8L467.7 342H513v-30.2z"}),h.createElement("path",{fill:"#FFDA44",d:"m233.7 44.6 22.3 5.6 22.3-5.6 4-2
34670.9-14.9 6.5L256 14.8l-11.4 15.4-14.9-6.5z"}),h.createElement("path",{fill:"#D80027",d:"M233.7 44.6s-4 12.9-4 29.9c0 27.9 26.3 41.3 26.3 41.3s26.3-15.5 26.3-41.3c0-15.4-4-29.9-4-29.9s-8.1-5-22.3-5-22.3 5-22.3 5z"}))},UOe=function(e){var n=e.title,r=Z(e,iNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#6DA544",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M215.9 171 0 314.6V26.8zM513 26.8v287.8L296.1 171z"}),h.createElement("path",{fill:"#0052B4",d:"M513 26.8 296.1 171 513 314.6V342h-41.1L256 197.4 40.1 342H0v-27.4L215.9 171 0 26.8V0h40.1L256 143.9 471.9 0H513z"}),h.createElement("path",{fill:"#FFDA44",d:"M513 26.8 296.1 171 513 314.6V342h-41.1L256 197.4 40.1 342H0v-27.4L215.9 171 0 26.8V0h40.1L256 143.9 471.9 0H513z"}))},WOe=function(e){var n=e.title,r=Z(e,oNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 228h513v114H0z"}),h.createElement("path",{fill:"#D80027",d:"M256.5 170.7 0 341.3V0z"}),h.createElement("path",{fill:"#FFF",d:"m77.9 139.5 7.9 16.4 17.8-4.1-8 16.5 14.3 11.3-17.8 4 .1 18.3-14.3-11.5-14.2 11.5v-18.3l-17.8-4 14.3-11.3-7.9-16.5 17.7 4.1z"}))},qOe=function(e){var n=e.title,r=Z(e,aNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h512v342H0z"}),h.createElement("circle",{fill:"#D80027",cx:256.5,cy:171,r:96}))},GOe=function(e){var n=e.title,r=Z(e,lNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h512v90.579H0z"}),h.createElement("path",{fill:"#496E2D",d:"M0 251h513v91H0z"}),h.createElement("path",{fill:"#A2001D",d:"M0 114h513v114H0z"}),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"m323.3 54.5-25.6-11.8L256 137l-41.7-94.3-25.6 11.8 51.8 116.2-51.8 116.2 25.6 11.8 41.7-94.4 41.7 94.4 25.6-11.8-51.8-116.2z"}),h.createElement("path",{d:"M273.4 65.6c-9.9-10.8-17.4-17-17.4-17s-7.5 6.2-17.4 17v210.1c9.9 10.8 17.4 17 17.4 17s7.5-6.2 17.4-17V65.6z"})),h.createElement("path",{d:"M209 105.9v129.5c10.5 18.5 23.3 33.7 32.9 43.8V62.1c-9.6 10.1-22.4 25.3-32.9 43.8zm94 0c-10.5-18.5-23.3-33.7-32.9-43.8v217.2c9.6-10.1 22.4-25.3 32.9-43.8V105.9z",fill:"#A2001D"}),h.createElement("path",{d:"M303 105.9v129.5c10.6-18.8 18.8-41 18.8-64.8s-8.2-45.9-18.8-64.7zm-94 0v129.5c-10.6-18.8-18.8-41-18.8-64.8s8.2-45.9 18.8-64.7z"}))},KOe=function(e){var n=e.title,r=Z(e,cNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 342"},r),n&&h.createElement("title",null,n),h.createElement("g",{fill:"#D80027"},h.createElement("path",{d:"M0 0h513v342H0z"}),h.createElement("circle",{cx:256,cy:170.7,r:170.7})),h.createElement("path",{fill:"#FFDA44",d:"M382.4 170.7 330.8 195l27.5 50-56.1-10.7-7.1 56.6-39.1-41.7-39.1 41.7-7.1-56.6-56.1 10.7 27.5-50-51.6-24.3 51.6-24.3-27.5-50.1 56.1 10.8 7.1-56.7L256 92.1l39.1-41.7 7.1 56.7 56.1-10.8-27.5 50.1z"}),h.createElement("circle",{fill:"#D80027",cx:257.4,cy:170.7,r:71.6}),h.createElement("path",{d:"M214.2 170.7c-2.1 0-4.1.1-6.2.3.1 12 4.4 22.9 11.6 31.5 3.8-10.3 9.5-19.6 16.7-27.7-6.9-2.7-14.3-4.1-22.1-4.1zm26.6 46.5c5.2 1.9 10.8 2.9 16.6 2.9 5.8 0 11.4-1 16.6-2.9-2.8-11.1-8.7-21-16.6-28.8-7.9 7.8-13.8 17.7-16.6 28.8zm59.4-71.2c-8.5-14.8-24.5-24.7-42.8-24.7-18.3 0-34.2 9.9-42.8 24.7 15.6.1 30.2 4.3 42.8 11.6 12.6-7.3 27.2-11.6 42.8-11.6zm-21.7 28.8c7.2 8 12.9 17.4 16.7 27.7 7.2-8.5 11.5-19.5 11.6-31.5-2-.2-4.1-.3-6.2-.3-7.7 0-15.2 1.4-22.1 4.1z",fill:"#FFDA44"}))},YOe=function(e){var n=e.title,r=Z(e,uNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h513v114H0zm0 228h513v114H0z",fill:"#0052B4"}),h.createElement("path",{fill:"#FFF",d:"M303.5 196.6v-17.8h-11.9v-23.7l-11.9-11.9-11.8 11.9v-23.8L256 119.5l-11.9 11.8v23.8l-11.8-11.9-11.9 11.9v23.7h-11.9v17.8h-11.9v17.8h118.8v-17.8z"}))},QOe=function(e){var n=e.title,r=Z(e,dNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 450 300"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#CE1126",d:"M0 0h450v300H0V0z"}),h.createElement("g",{fill:"#FCD116"},h.createElement("circle",{cx:227.6,cy:161.2,r:56.2}),h.createElement("path",{d:"m254.1 73.4-23.7 26 28.6 6.5zm-51.5.2-4.8 33.1 28.5-8zm94.3 26.7-34.7 8.5 20.1 23.7zm-138.3-1.8 15.5 32.7 20.2-22.7zm159 45.3-34.4-9.9 5.6 29.5zm-182-2.6 31.9 19.8 5.2-27.7z"})),h.createElement("path",{fill:"#003F87",d:"M0 175h450v125H0V175z"}),h.createElement("path",{fill:"#FFF",d:"M0 267c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21zm0-43c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21zm0-43c15 0 30 13 45 13s30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13 30 13 45 13 30-13 45-13v-21c-15 0-30 13-45 13s-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13-30 13-45 13-30-13-45-13v21z"}),h.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"#FCD116",d:"m183.2 48.3-1.1-5.3 22.4-3.7s-30.1-7.1-40-10.7c-14.3-5.1-16.3-12.1-16.3-12.1s44.7 11 64.8 11c4.3 0 12.8 10.7 12.8 10.7s14.8-14.9 21.9-15.4c32.1-2.3 66.6-6.4 66.6-6.4s-10 6.7-16 8.5c-16.2 4.9-50.6 11.7-50.6 11.7l-4.8 7.5H277l-14.4 4.3 7.4 6.9s-7.8-4.1-18.1-2.1c-7.1 1.3-15.4 6-22.9 8-18.7 4.8-29.9-12.8-29.9-12.8l-15.9-.1z"}))},XOe=function(e){var n=e.title,r=Z(e,fNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M0 0h513v85.5H0z"}),h.createElement("path",{fill:"#FFF",d:"M0 85.5h513V171H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 171h513v85.5H0z"}),h.createElement("path",{fill:"#6DA544",d:"M256.5 171 0 342V0z"}),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"M68.6 170.7c0-24.9 17.5-45.6 40.8-50.7-3.6-.8-7.3-1.2-11.1-1.2-28.7 0-51.9 23.3-51.9 51.9s23.3 51.9 51.9 51.9c3.8 0 7.5-.4 11.1-1.2-23.3-5.1-40.8-25.9-40.8-50.7z"}),h.createElement("path",{d:"m108.9 126.1 2.7 8.5h9l-7.3 5.3 2.8 8.5-7.2-5.2-7.3 5.2 2.8-8.5-7.2
3467-5.3h8.9zm0 22.3 2.7 8.5h9l-7.3 5.3 2.8 8.5-7.2-5.3-7.3 5.3 2.8-8.5-7.2-5.3h8.9z"}),h.createElement("path",{d:"m108.9 170.7 2.7 8.5h9l-7.3 5.2 2.8 8.5-7.2-5.2-7.3 5.2 2.8-8.5-7.2-5.2h8.9zm0 22.2 2.7 8.5h9l-7.3 5.3 2.8 8.5-7.2-5.3-7.3 5.3 2.8-8.5-7.2-5.3h8.9z"})))},ZOe=function(e){var n=e.title,r=Z(e,hNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#6DA544",d:"M512 0H0v342"}),h.createElement("path",{fill:"#FFDA44",d:"M307.7 0 0 194.5V342h206.9L513 148.5V0z"}),h.createElement("path",{d:"M513 0H385.2L0 249.4V341l126.2 1L513 91.6z"}),h.createElement("path",{d:"m141.1 187 31.2 24 32.3-22.2-13.1 37 31.1 23.9-39.2-1.1-13.2 37-11.1-37.6-39.2-1.1 32.3-22.2zM310.6 70.8l31.2 23.9 32.3-22.2-13.1 37 31.1 23.9-39.2-1.1-13.2 37-11.1-37.6-39.2-1.1 32.4-22.2z",fill:"#FFF"}))},JOe=function(e){var n=e.title,r=Z(e,pNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#91DC5A",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h513v57.188H0zm0 284.1h513v57.177H0z",fill:"#0052B4"}),h.createElement("path",{fill:"#D80027",d:"M0 79.9h513v181.582H0z"}),h.createElement("circle",{fill:"#FFF",cx:190.33,cy:171,r:65.668}),h.createElement("path",{fill:"#D80027",d:"m190.3 105 14.8 45.3h47.7l-38.6 28.1 14.8 45.5-38.7-28.2-38.6 28.1 14.8-45.4-38.6-28.1h47.7z"}))},e$e=function(e){var n=e.title,r=Z(e,mNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h900v600H0z"}),h.createElement("g",{transform:"rotate(-56.31)"},h.createElement("path",{d:"M-75 228.3H75m-150 37.5H75m-150 37.5H75m-150 475H75m-150 37.5H75m-150 37.5H75",stroke:"#000",strokeWidth:25}),h.createElement("path",{stroke:"#FFF",strokeWidth:12.5,d:"M0 753.3v125"}),h.createElement("circle",{fill:"#ca163a",cy:540.8,r:150}),h.createElement("path",{fill:"#0e4896",d:"M0 390.8c-41.4 0-75 33.6-75 75s33.6 75 75 75 75 33.6 75 75-33.6 75-75 75c-82.8 0-150-67.2-150-150s67.2-150 150-150z"})),h.createElement("path",{d:"m231.56 535.73-83.205-124.808M262.76 514.928l-83.205-124.807m114.407 104.006-83.205-124.808m478.43-138.675-83.205-124.807M720.39 209.843 637.184 85.036m114.407 104.006L668.386 64.234",stroke:"#000",strokeWidth:25}),h.createElement("path",{stroke:"#FFF",strokeWidth:12.5,d:"m205.6 462.897 31.202-20.8m389.981-259.989 36.444-24.296m31.202-20.801 31.202-20.801"}))},t$e=function(e){var n=e.title,r=Z(e,gNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 228h513v114H0z"}),h.createElement("path",{d:"M167 227.6 0 341.3V0l167 113.8z"}))},n$e=function(e){var n=e.title,r=Z(e,vNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),h.createElement("circle",{fill:"#6DA544",cx:384,cy:96.5,r:29.7}),h.createElement("path",{fill:"#D80027",d:"M332.1 89H436v44.5H332.1z"}),h.createElement("path",{fill:"#496E2D",d:"M435.9 170.7z"}),h.createElement("path",{fill:"#FFDA44",d:"M332.1 200.3V230h15.6c9.4 9.2 22.2 14.8 36.3 14.8 14.1 0 27-5.7 36.3-14.8h15.6v-29.7H332.1z"}),h.createElement("path",{fill:"#338AF3",d:"M332.1 126.1v44.5c0 39.8 51.9 51.9 51.9 51.9s51.9-12.2 51.9-51.9v-44.5H332.1z"}),h.createElement("path",{d:"M384 149.9c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9v20.8c13 0 13 11.9 26 11.9s13-11.9 26-11.9 13 11.9 26 11.9 13-11.9 26-11.9v-20.8c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9zm0-41.6c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9v20.8c13 0 13 11.9 26 11.9s13-11.9 26-11.9 13 11.9 26 11.9 13-11.9 26-11.9v-20.8c-13 0-13 11.9-26 11.9s-13-11.9-26-11.9z",fill:"#F3F3F3"}),h.createElement("path",{fill:"#FFF",d:"M256 0v22.6l-46.1 30.7H256v64h-46.1L256 148v22.7h-22.6l-73.4-49v49H96v-49l-73.4 49H0V148l46.1-30.7H0v-64h46.1L0 22.6V0h22.6L96 48.9V0
3467h64v48.9L233.4 0z"}),h.createElement("g",{fill:"#D80027"},h.createElement("path",{d:"M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z"}),h.createElement("path",{d:"M0 0v15.1l57.4 38.2H80zm256 0v15.1l-57.4 38.2H176z"}),h.createElement("path",{d:"M0 0v15.1l57.4 38.2H80zm256 0v15.1l-57.4 38.2H176zM0 170.7v-15.1l57.4-38.3H80zm256 0v-15.1l-57.4-38.3H176z"})))},r$e=function(e){var n=e.title,r=Z(e,yNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#36B6CC",d:"M0 0h513v342H0V0z"}),h.createElement("circle",{fill:"#FFD400",cx:256.5,cy:170.9,r:68.4}),h.createElement("path",{fill:"#FFD400",d:"m256.5 251.5-27.9 41.7-7.1-49.7-43.2 25.5 15.2-47.8-50 4.2 34.4-36.5-46.9-18 46.8-18-34.4-36.5 50 4.2-15.2-47.8 43.2 25.4 7.1-49.7 27.9 41.7 27.9-41.7 7.1 49.7 43.2-25.4-15.2 47.8 50-4.2-34.3 36.6 46.8 17.9-46.8 18 34.4 36.5-50-4.2 15.2 47.8-43.2-25.4-7.1 49.7c0-.1-27.9-41.8-27.9-41.8zm0-.8c44.1 0 79.9-35.8 79.9-79.9S300.6 91 256.5 91s-79.9 35.8-79.9 79.9 35.8 79.8 79.9 79.8zM22.8 28.3c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V28.3zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6V74zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0 45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H28.5c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm22.8-22.8c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7V245c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.7c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V188zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6v-11.4zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V96.8zm0-45.6c0-3.2 2.4-5.7 5.7-5.7h11.3c3.2 0 5.7 2.4 5.7 5.7v11.3c.1 3.1-2.4 5.7-5.6 5.7H51.3c-3.1 0-5.7-2.5-5.7-5.6V51.2z"}))},s$e=function(e){var n=e.title,r=Z(e,xNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 .1h513v90.7H0zm0 251.2h513V342H0z",fill:"#D80027"}),h.createElement("circle",{fill:"#FFF",cx:256.5,cy:171,r:65.9}))},i$e=function(e){var n=e.title,r=Z(e,wNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 .2h513v90.7H0zm.5 251.1H513V342H.5z",fill:"#D80027"}),h.createElement("path",{fill:"#6DA544",d:"M290.3 193.5 256 130.7l-34.3 62.8h25.7v17.2h17.2v-17.2z"}),h.createElement("path",{fill:"#14AF5A",d:"M241.3 213.1c4.4-4.4 4.4-11.6-.1-16l4.7 4.7c-5.2-4.7-12.2-6.6-19.1-5.3l-23.5 5.9c-6.1 1.5-6.8-.4-1.8-4.2l27.1-20.3c5.1-3.8 4.2-6.9-2.3-6.9h-11c-6.4 0-7-2.3-1.5-5.1l25.3-12.7c5.6-2.8 5.1-5.1-1.5-5.1h-11c-6.4 0-7.4-3.1-2.3-6.9l27.1-20.3c5.6-3.8 12.9-3.8 18.5 0l27.1 20.3c5.1 3.8 4.2 6.9-2.3 6.9h-11c-6.4 0-7 2.3-1.5 5.1l25.3 12.7c5.6 2.8 5.1 5.1-1.5 5.1h-11c-6.4 0-7.4 3.1-2.3 6.9l27.1 20.3c5.1 3.8 4.4 5.7-1.8 4.2l-23.5-5.9c-6.8-1.3-13.9.6-19.1 5.3l4.7-4.7c-4.4 4.4-4.5 11.5-.1 16l6.8 6.8c4.4 4.4 3.1 8-3.3 8h-45.8c-6.2 0-7.7-3.6-3.3-8 .1.1 6.9-6.8 6.9-6.8z"}))},o$e=function(e){var n=e.title,r=Z(e,_Ne);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#55B2FF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#F3F3F3",d:"M148.5 298.1h216l-108-254.2z"}),h.createElement("path",{fill:"#333",d:"m186 272.7 70.5-160.3L327 272.7z"}),h.createElement("path",{fill:"#FFDA44",d:"M148.5 298.1h216l-108-101.7z"}))},a$e=function(e){var n=e.title,r=Z(e,ENe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 0h513v171H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M149.3 98.1c0-14-11.3-25.3-25.3-25.3-6.5 0-12.4 2.4
3467-16.9 6.4V64.4h8.4V47.5h-8.4v-8.4H90.3v8.4h-8.4v16.9h8.4v14.9c-4.5-4-10.4-6.4-16.9-6.4-14 0-25.3 11.3-25.3 25.3 0 7.5 3.3 14.2 8.4 18.8v14.9h84.3V117c5.3-4.7 8.5-11.5 8.5-18.9z"}))},l$e=function(e){var n=e.title,r=Z(e,bNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#A2001D",d:"M222.6 22.3h267.1v296.8H222.6z"}),h.createElement("path",{fill:"#D80027",d:"M22.3 22.3h200.3v296.8H22.3z"}),h.createElement("path",{fill:"#FFDA44",d:"M200.3 0h22.3v342h-22.3z"}),h.createElement("path",{fill:"#6DA544",d:"M22.3 22.3h89v296.8h-89z"}),h.createElement("path",{fill:"#FF9811",d:"M111.3 22.3h89v296.8h-89z"}),h.createElement("path",{fill:"#FFDA44",d:"M368.2 156.8c-1.4-2 0-37.9 0-37.9.9-7.4.1-8.4 1-11.4.9-2.9 5.4-11.6 5.4-11.6s-6-2.3-10.3-.6c-4.3 1.7-24.7-7.5-31.2 3.4-4.4 7-23.6 16.2-24.6 14-1-2.2-5.9-5-6.9-2.9s-.7 13.9 0 16c.8 2.6 9.8 2 12.3 3.1 3.7 1.8 12.2 8.2 11.9 10.7-.3 2.5-22.5-6-24.2-4.5-1.4 1.2-1.9 13.2-.4 15 1.8 2.1 23.4 5.6 25 7.5 1.6 1.9-13.1 7.4-12.3 25 .7 14.7 8 17.4 8 17.4s-2.4 3.6-7.8 3.1c-6.2-.6-27.4-17.7-27.4-17.7s-3.5-109 3.6-121.4c4.9-8.5-22.7 10.1-22.7 50.8V151c0 6.6-1.4 22.4 2.6 34 0 0-.4 46.9 1.5 49.6s12.7 2.2 14.8 0 0-30 0-30c7.7.2 18.3 17.5 32.5 16.4 20.6-1.6 28.7-9.9 34.3-5 8.1 7.1 5.5 23.2.4 31.5-2.2 3.5-14.3 4.7-15.7 7.6-1.4 2.9.5 5.4.5 5.4h29.7s1.4-20.5 2.7-26.1c1.3-5.7-.6-10.7 5.9-10.4 23.5 1.1 39.8-15.3 45.5-8 3.2 4.1 5.6 29.9 3.3 33.3-2.2 3.4-13.8 2.8-15.2 6.7-1.4 4 .8 4.4.8 4.4h29.7s-.4-21.2 2.5-27.7 4.9-10.4 9.3-17.2c4.4-6.8 11.3-15.7 11.3-36.2 0-14.2-8.1-22.8-8.1-22.8H417c-14.1.2-47.4 2.3-48.8.3zm-136-124.5c10.7-10.6 20.2-2.7 22.2 2.1 1.9 4.8 2.1 8.2 2.8 13.6.9 6.9 4.9 14 4.9 14s-7.1-3.8-14.7-4.2c-4.7-.3-9-.6-13.6-2.5-5.7-2.3-11.7-12.9-1.6-23zm248.4-.1c10.7 10.6 2.8 20.2-2 22.2s-8.2 2.1-13.6 2.8c-6.9.9-14 5-14 5s3.7-7.1 4.2-14.7c.3-4.7.6-9.1 2.4-13.6 2.2-5.7 12.8-11.8 23-1.7zm.1 276.9c-10.7 10.6-20.2 2.6-22.2-2.2-1.9-4.8-2.1-8.2-2.7-13.6-.8-6.9-4.9-14.1-4.9-14.1s7 3.8 14.7 4.3c4.7.3 9 .6 13.6 2.5 5.7 2.4 11.7 13.1 1.5 23.1zm-248.2-.1c-10.6-10.7-2.7-20.2 2.1-22.2 4.8-1.9 8.2-2.1 13.6-2.8 6.9-.9 14-4.9 14-4.9s-3.8 7.1-4.2 14.7c-.3 4.7-.6 9-2.5 13.6-2.3 5.7-12.9 11.8-23 1.6z"}),h.createElement("path",{fill:"none",stroke:"#FFDA44",strokeWidth:6,strokeMiterlimit:10,d:"M446.9 162.4s7.5-2.6 8.4-16.1c.6-8.6-19.8-16-39-11.5-19.7 4.6-34-3.1-34-14.6 0-22.9 29.7-16.2 38.9-11.3 9.1 4.9 29.7 23.5 35.1 9.4"}))},c$e=function(e){var n=e.title,r=Z(e,SNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h513v31.1H0zm0 62.2h513v31.1H0zm0 62.3h513v31.1H0zm0 62.3h513v31.1H0zm0 62.5h513v31.1H0zm0 61.6h513V342H0z",fill:"#bf0a30"}),h.createElement("path",{fill:"#002868",d:"M0 0h155.6v155.6H0z"}),h.createElement("path",{fill:"#FFF",d:"m77.8 30.2 10.7 32.9h34.6l-28 20.4 10.7 32.9-28-20.3-28 20.3 10.7-32.9-28-20.4h34.6z"}))},u$e=function(e){var n=e.title,r=Z(e,CNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 227.6h513v114H0z"}),h.createElement("path",{d:"m245.2 171 7.7-23.1c2-5.9 5.1-6 7.1 0l7.7 23.1 19.4 29.1c1.7 2.6 1.3 6.3-1.2 8 0 0-6.9 8-29.5 8s-29.5-8-29.5-8c-2.4-2-2.9-5.4-1.2-8l19.5-29.1z"}),h.createElement("path",{d:"M256.5 171c-12.5 0-22.6-10.1-22.6-22.6 0-12.5 10.1-22.6 22.6-22.6s22.6 10.1 22.6 22.6c0 12.5-10.2 22.6-22.6 22.6zm0 0c6.2 0 11.3-16.3 11.3-22.6 0-6.2-5.1-11.3-11.3-11.3-6.2 0-11.3 5.1-11.3 11.3 0 6.3 5 22.6 11.3 22.6z"}))},d$e=function(e){var n=e.title,r=Z(e,TNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#6DA544",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 228h513v114H0z"}))},f$e=function(e){var n=e.title,r=Z(e,ANe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#338AF3",d:"M0 228h513v114H0z"}))},h$e=function(e){var n=e.title,r=Z(e,INe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{className:"prefix__st1",d:"M0 0h513v127.6H0zm0 214.4h513V342H0z",fill:"#A2001D"}))},p$e=function(e){var n=e.title,r=Z(e,PNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#496E2D",d:"M0 228h513v114H0z"}),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"m281.4 150.7 9 12.3 14.5-4.7-9 12.4 9 12.3-14.5-4.7-9 12.3v-15.2l-14.5-4.7 14.5-4.7z"}),h.createElement("path",{d:"M257 201.5c-17 0-30.9-13.8-30.9-30.9s13.8-30.9 30.9-30.9c5.3 0 10.3 1.3 14.7 3.7-6.9-6.7-16.2-10.8-26.6-10.8-21 0-38 17-38 38s17 38 38 38c10.3 0 19.7-4.1 26.6-10.8-4.4 2.4
3467-9.4 3.7-14.7 3.7z"})))},m$e=function(e){var n=e.title,r=Z(e,RNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 .3V342h513V.3z"}),h.createElement("path",{fill:"#20661B",d:"M359.8 148.9h-73.3l-22.7-69.7-22.7 69.7h-73.3l59.3 43.1-22.7 69.7 59.3-43.1 59.3 43.1-22.5-69.7 59.3-43.1zm-116.1 37.7 7.7-23.6h24.8l7.7 23.6-20.1 14.6-20.1-14.6zm27.9-37.7H256l7.8-24 7.8 24zm24.3 29-4.8-14.9h25.3l-20.5 14.9zM236.6 163l-4.8 14.9-20.5-14.9h25.3zm-5.3 61.8 7.8-24 12.6 9.2-20.4 14.8zm44.5-14.9 12.6-9.2 7.8 24-20.4-14.8z"}))},g$e=function(e){var n=e.title,r=Z(e,NNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.333h512v341.333H0z"}),h.createElement("path",{fill:"#c70000",d:"M0 85.333h512V256H0z"}))},v$e=function(e){var n=e.title,r=Z(e,MNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}),h.createElement("path",{fill:"#0052B4",d:"M0 0h171v342H0z"}),h.createElement("path",{fill:"#AF7F59",d:"M206.2 129.1h33.2L256 79.3l16.6 49.8h33.2v99.6L256 262l-49.8-33.2v-99.7zm33.2 33.3v49.8h33.2v-49.8h-33.2z"}))},y$e=function(e){var n=e.title,r=Z(e,kNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#E6BE53",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#E01D24",d:"M20 20h473v302H20z"}),h.createElement("path",{fill:"#E6BE53",d:"M248.5 112.9c4.4 4.4 11.6 4.4 16 0l-4.7 4.7 22.7-22.7c4.9-4.5 12.1-5.6 18.2-2.8l2.1 1c5.7 2.9 6.7 8.7 2.3 13.1l4.7-4.7-22.8 22.8c-4.5 4.9-5.6 12.1-2.8 18.2l1 2.1c2.9 5.7 5.1 15.4 5.1 21.6v-11.3c0 6.2 4.4 9.1 10.2 6.2l2.1-1c5.7-2.9 6.7-8.7 2.3-13.1l4.7 4.7c-4.4-4.4-4.4-11.6 0-16l-4.7 4.7c5.2-5.5 9.6-11.6 13.1-18.2l1-2.1c2.9-5.7 6.3-15.1 7.9-21.2l5.8-23.3c1.5-6 5.9-6.8 9.6-1.8l20.2 26.9c3.8 5.1 6.9 14 6.9 20.6v22.4c0 6.3-2.2 15.8-5.1 21.7l-1 2.1c-3.5 6.6-7.9 12.7-13.1 18.2l-6.8 6.8c-5.4 5.2-11.5 9.6-18.2 13.1l-2.1 1c-5.7 2.9-15.5 5.1-21.6 5.1-6.2 0-6.9 2.2-1.1 5.1l2.1 1c5.7 2.9 13.8 8.7 18.2 13.1l-4.7-4.7c4.4 4.4 11.6 4.4 16 0l-4.7 4.7c4.4-4.4 11.6-4.4 16 0L339 226c4.6 4.9 5.7 12.1 2.9 18.2l-1 2.1c-2.9 5.7-10.4 10.2-16.4 10.2-7.5-.3-14.8-2-21.6-5.1l-2.1-1c-6.5-3.6-11.8-8.9-15.4-15.4l-1-2.1c-2.9-5.7-8.7-6.7-13.1-2.3l4.7-4.7c-4.4 4.7-5.2 11.8-1.8 17.3l10.3 15.4c3.4 5.1 2 12.1-3.1 15.5L266 284.4c-5.7 3.4-12.8 3.4-18.6 0L232 274.1c-5.1-3.4-6.5-10.3-3.1-15.5l10.3-15.4c3.4-5.5 2.6-12.6-1.8-17.3l4.7 4.7c-4.4-4.4-10.2-3.6-13.1 2.3l-1 2.1c-2.9 5.7-9.5 12.4-15.4 15.4l-2.1 1c-5.7 2.9-15.5 5.1-21.6 5.1-6.9-.3-13.1-4.2-16.4-10.2l-1-2.1c-2.8-6.1-1.6-13.3 2.9-18.2l-4.7 4.7c4.4-4.4 11.6-4.4 16 0L181 226c4.4 4.4 11.6 4.4 16 0l-4.7 4.7c5.5-5.2 11.6-9.6 18.2-13.1l2.1-1c5.7-2.9 5-5.1-1.1-5.1-7.5-.3-14.8-2-21.6-5.1l-2.1-1c-6.6-3.5-12.7-7.9-18.2-13.1l-6.8-6.8c-5.2-5.4-9.6-11.5-13.1-18.2l-1-2.1c-3.1-6.8-4.9-14.2-5.1-21.7V121c0-6.3 3.1-15.6 6.9-20.6l20.2-26.9c3.8-5.1 8.1-4.3 9.6 1.8l5.8 23.3c2 7.3 4.6 14.4 7.9 21.2l1 2.1c2.9 5.7 8.7 13.8 13.1 18.2l-4.7-4.7c4.4 4.4 4.4 11.6 0 16l4.7-4.7c-4.4 4.4-3.6 10.2 2.3 13.1l2.1 1c5.7 2.9 10.2 0 10.2-6.2v11.3c0-6.2 2.2-15.7 5.1-21.6l1-2.1c2.8-6.1 1.7-13.2-2.8-18.2l-22.7-22.7 4.7 4.7c-4.4-4.4-3.6-10.2 2.3-13.1l2.1-1c6.1-2.8 13.2-1.7 18.2 2.8l22.7 22.7-4.8-4.5zm-18-40.7c-4.4-4.4-3.2-9.5 2.8-11.5l12.4-4.2c6-2 15.5-2 21.5 0l12.4 4.2c6 2 7.2 7.1 2.8 11.5l-6.8 6.8c-5.3 4.7-12.1 7.5-19.2 7.9-6.2 0-14.8-3.5-19.2-7.9.1 0-6.7-6.8-6.7-6.8z"}),h.createElement("path",{fill:"#215F90",d:"M233.9 200.2c0 6.2 1.7 6.4 4.2.5 0 0 7.1-23.2 18.4-23.2 11.3 0 18.6 23.6 18.6 23.6 2.2 5.7 4 5.3 4-1.1v-11.2c0-18.7-10.1-33.9-22.6-33.9-12.5 0-22.6 15.2-22.6 33.9v11.4z"}))},x$e=function(e){var n=e.title,r=Z(e,DNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 108 72"},r),n&&h.createElement("title",null,n),h.createElement("path",{d:"M0 0h108v72H0z",fill:"#003787"}),h.createElement("path",{d:"M0 0h108L60 48v24H48V48z",fill:"#fff"}
vendor: 4,320 bytes, line 3467
3467),h.createElement("circle",{cx:54,cy:30,r:8,fill:"#f9d90f"}),h.createElement("path",{d:"M44 30h20L54 48z",fill:"#fff"}),h.createElement("path",{d:"M54 48 38 33h32z",fill:"#cf142b"}))},w$e=function(e){var n=e.title,r=Z(e,ONe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#6DA544",d:"M512 426.666V85.329H0v341.337h512z"}),h.createElement("path",{fill:"#D80027",d:"M512 85.331H0v170.666h512V85.331z"}),h.createElement("path",{fill:"#FFF",d:"M0 85.334h181.793v341.337H0z"}))},_$e=function(e){var n=e.title,r=Z(e,$Ne);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#1E509C",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M513 176.1V81.3L0 342l513-165.9z"}),h.createElement("path",{fill:"#F18D36",d:"M513 0v81.3L0 342 513 0z"}),h.createElement("path",{fill:"#FFF",d:"m126.7 99.3-7.8-54.1-7.7 54.1-20.8-23.7 10.7 31.6-31.5-10.7 23.6 20.8-54.1 7.7 54.1 7.7-23.6 20.8 31.5-10.7-10.7 31.6 20.8-23.7 7.7 54.1 7.8-54.1 20.7 23.7-10.6-31.6 31.5 10.7-23.6-20.8 54-7.7-54-7.7 23.6-20.8-31.5 10.7 10.6-31.6z"}))},E$e=function(e){var n=e.title,r=Z(e,FNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 85.333h512V426.67H0z"}),h.createElement("g",{fill:"#D80027"},h.createElement("path",{d:"M383.875 426.662 256 252.286l26.827 174.376zM133.565 85.33 256 252.286 230.314 85.33zm95.606 341.332L256 252.286 128.124 426.662zM0 85.33V212.9l256 39.386L28.333 85.33zm0 341.332h18.212L256 252.286 0 291.67zm256-174.376L512 212.9V85.33h-28.331zM281.686 85.33 256 252.286 378.434 85.33zM512 426.662V291.671l-256-39.385 237.787 174.376z"}),h.createElement("circle",{cx:256,cy:252.29,r:59.359})),h.createElement("circle",{fill:"#FFDA44",cx:256,cy:252.29,r:44.522}))},b$e=function(e){var n=e.title,r=Z(e,jNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.337H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 85.331h170.663v341.337H0z"}),h.createElement("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"}))},S$e=function(e){var n=e.title,r=Z(e,LNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#6DA544",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v113.775H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 312.888h512v113.775H0z"}),h.createElement("path",{fill:"#FFF",d:"M384 227.261h-97.783L256 134.265l-30.217 92.997H128l79.108 57.475-30.217 92.998L256 320.925l79.108 56.81-30.217-92.998L384 227.261z"}))},C$e=function(e){var n=e.title,r=Z(e,zNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#095FAD",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M342 0h171v342H342zM0 0h171v342H0z",fill:"#BE1229"}),h.createElement("g",{fill:"#FFDA44"},h.createElement("path",{d:"M108.3 166.3h14.8v74.2h-14.8zm-59.4 0h14.8v74.2H48.9z"}),h.createElement("circle",{cx:86,cy:203.4,r:14.8}),h.createElement("path",{d:"M71.2 225.7h29.7v14.8H71.2zm0-59.4h29.7v14.8H71.2z"}),h.createElement("circle",{cx:86,cy:144,r:14.8}),h.createElement("path",{d:"M76.3 123.9h19.5L86 108.3z"})))},T$e=function(e){var n=e.title,r=Z(e,VNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#00745a",d:"M0 85.331h512v341.337H0z"}),h.createElement("path",{fill:"#FFF",d:"M285.682 248.878c-4.19 0-8.166.836-11.861 2.164 2.023-4.509 3.379-9.527 3.379-14.885 0-21.201-21.201-37.101-21.201-37.101s-21.201 15.901-21.201 37.101c0 5.357 1.356 10.375 3.379 14.885-3.693-1.328-7.671-2.164-11.861-2.164-21.201 0-37.101 21.201-37.101 21.201s15.901 21.201 37.101 21.201c12.429 0 23.031-7.286 29.682-13.315 6.65 6.03 17.251 13.315 29.682 13.315 21.201 0 37.
3467101-21.201 37.101-21.201s-15.899-21.201-37.099-21.201z"}),h.createElement("path",{d:"m256 152.111 4.38 13.476h14.171l-11.464 8.332 4.376 13.476-11.463-8.33-11.463 8.33 4.376-13.476-11.464-8.332h14.171zm-53.888 23.572 8.425 7.585 9.818-5.667-4.61 10.355 8.423 7.588-11.274-1.185-4.611 10.355-2.358-11.088-11.275-1.185 9.818-5.669zm-39.45 39.449 11.09 2.358 5.668-9.818 1.186 11.274 11.089 2.358-10.357 4.61 1.186 11.274-7.587-8.423-10.357 4.61 5.669-9.818zm147.227-39.449-8.425 7.585-9.818-5.667 4.611 10.355-8.425 7.588 11.275-1.185 4.61 10.355 2.359-11.088 11.275-1.185-9.818-5.669zm39.449 39.449-11.089 2.358-5.669-9.818-1.186 11.274-11.088 2.358 10.357 4.61-1.185 11.274 7.586-8.423 10.357 4.61-5.669-9.818z",fill:"#FFDA44"}),h.createElement("path",{d:"M256 350.642c16.84 0 32.363-5.619 44.816-15.073h-89.63c12.451 9.454 27.974 15.073 44.814 15.073zm-68.023-44.522a74.138 74.138 0 0 0 8.85 15.073h118.345a74.13 74.13 0 0 0 8.85-15.073H187.977z",fill:"#FFF"}))},A$e=function(e){var n=e.title,r=Z(e,BNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 750 500"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0071BC",d:"M0 0h750v500H0V0z"}),h.createElement("g",{fill:"#FFF",stroke:"#000",strokeWidth:1.9},h.createElement("circle",{cx:375,cy:245,r:225,fill:"#fff"}),h.createElement("circle",{cx:375,cy:245,r:165,fill:"#0071BC"})),h.createElement("g",{stroke:"#000"},h.createElement("path",{fill:"#8C8A8C",strokeWidth:1.9,d:"M444.7 450c.7 11-7.8 20-18.8 20H323.6c-11 0-19.5-9-19-20l16.7-325c.6-11 10-20 21-20h61.4c11 0 20.5 9 21.2 20l19.8 325z"}),h.createElement("path",{fill:"#FFF",strokeWidth:2,strokeLinejoin:"round",d:"m373 114 30 93h97l-78 56 29 92-78-56-78 57 30-93-79-57h97l30-92z"})))},I$e=function(e){var n=e.title,r=Z(e,HNe);return h.createElement("svg",X({viewBox:"0 0 900 600",xmlns:"http://www.w3.org/2000/svg"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#231f1e",d:"M0 0h900v600H0z"}),h.createElement("path",{fill:"#00a650",d:"M0 0h900v300H0z"}),h.createElement("path",{fill:"#ef1923",d:"m0 0 450 300L0 600z"}))},P$e=function(e){var n=e.title,r=Z(e,UNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 100 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#006233",d:"M0 100h513v342H0z"}),h.createElement("path",{fill:"#cd2a3e",d:"M0 100h513v46H0zm0 296h513v46H0z"}),h.createElement("path",{fill:"#ffc400",d:"M256 298.851c-45.956 0-84.348-32.298-93.767-75.429A96.288 96.288 0 0 0 160 243.994c0 53.02 42.979 96 96 96s96-42.98 96-96c0-7.066-.785-13.942-2.233-20.572-9.419 43.131-47.811 75.429-93.767 75.429z"}),h.createElement("path",{fill:"#ffc400",d:"m255.999 171.994 8.935 27.502h28.918l-23.394 16.996 8.936 27.503-23.395-16.998-23.394 16.998 8.937-27.503-23.394-16.996h28.915z"}))},R$e=function(e){var n=e.title,r=Z(e,WNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#1B4991",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#00A2B8",stroke:"#FFF",strokeWidth:3,d:"M318.2 106.7v106.5c0 51.9 67.8 67.8 67.8 67.8s67.8-15.9 67.8-67.8V106.7H318.2z"}),h.createElement("path",{fill:"#A35023",d:"M319.7 212.7c0 50.8 66.3 66.3 66.3 66.3s66.3-15.6 66.3-66.3H319.7z"}),h.createElement("path",{d:"M415.1 155.1h-19.4v-19.4h-19.4v19.4H357v19.4h19.3v58.1h19.4v-58.1h19.4z"}),h.createElement("path",{fill:"#FFF",d:"M256 0v30.6l-45.2 25.1H256V115h-59.1l59.1 32.8v22.9h-26.7l-73.5-40.9v40.9h-55.6v-48.6l-87.5 48.6H0v-30.6L45.2 115H0V55.7h59.1L0 22.8V0h26.7l73.5 40.8V0h55.6v48.6L243.3 0z"}),h.createElement("path",{fill:"#D80027",d:"M144 0h-32v69.3H0v32h112v69.4h32v-69.4h112v-32H144z"}),h.createElement("path",{fill:"#0052B4",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),h.createElement("path",{fill:"#FFF",d:"M155.8 115 256 170.7v-15.8L184.2 115z"}),h.createElement("path",{fill:"#D80027",d:"M155.8 115 256 170.7v-15.8L184.2 115zm-84 0L0 154.9v15.8L100.2 115z"}),h.createElement("path",{fill:"#0052B4",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),h.createElement("path",{fill:"#FFF",d:"M100.2 55.6 0 0v15.7l71.8 39.9z"}),h.createElement("path",{fill:"#D80027",d:"M100.2 55.6 0 0v15.7l71.8 39.9zm84 0L256 15.7V0L155.8 55.6z"}))},N$e=function(e){var n=e.title,r=Z(e,qNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#C31B28",d:"M256 0h256.5v342H256z"}),h.createElement("path",{fill:"#ACABB1",stroke:"#C31B28",strokeWidth:2,d:"M101.2 68.2V33H66v35.2H30.8v35.2H66v35.2h35.2v-35.2h35.2V68.2z"}))},M$e=function(e){var n=e.title,r=Z(e,GNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#f7ce00",d:"M0 85.331h512v341.326H0z"}),h.createElement("path",{fill:"#e32737",d:"M0 85.331h512v85.337H0z"}),h.createElement("path",{fill:"#191f6a",d:"M0 170.657h512v85.337H0z"}),h.createElement("path",{fill:"#00a04e",d:"M0 341.331h512v85.337H0z"}))},k$e=function(e){var n=e.title,r=Z(e,KNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#d01920",d:"M0 85.331h512v341.333H0z"}),h.createElement("path",{fill:"#017c3b",d:"M144.696 174.375h222.609v163.25H144.696z"}),h.createElement("path",{fill:"#FFF",d:"M283.484 304.226c-26.637 0-48.232-21.594-48.232-48.232s21.594-48.232 48.232-48.232c8.306 0 16.12 2.1 22.943 5.797-10.703-10.467-25.341-16.927-41.494-16.927-32.784 0-59.362 26.577-59.362 59.362s26.578 59.362 59.362 59.362c16.154 0 30.791-6.461 41.494-16.927-6.822 3.698-14.636 5.797-22.943 5.797z"}))},D$e=function(e){var n=e.title,r=Z(e,YNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#272727",d:"M0 0h512v114H0z"}),h.createElement("path",{fill:"#e40112",d:"M0 114h512v114H0z"}),h.createElement("path",{fill:"#07893f",d:"M0 228h512v114H0z"}),h.createElement("circle",{fill:"#e40112",cx:256,cy:125,r:95}))},O$e=function(e){var n=e.title,r=Z(e,QNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#dc2339",d:"M342 0H0v341.3h513V0z"}),h.createElement("path",{fill:"#11865d",d:"M0 0h171v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M171 0h171v342H171z"}),h.createElement("path",{fill:"#8C9157",d:"M195.8 171.2c0 21.6 11.5 41.7 30.3 52.5 5.8 3.4 13.2 1.4 16.6-4.4 3.4-5.8 1.4-13.2-4.4-16.6-11.3-6.5-18.2-18.5-18.2-31.5 0-6.7-5.4-12.1-12.1-12.1-6.7 0-12.2 5.4-12.2 12.1zm93.4 51.1c17.5-11.1 28-30.4 28-51.1 0-6.7-5.4-12.1-12.1-12.1s-12.1 5.4-12.1 12.1c0 12.4-6.3 24-16.8 30.7-5.7 3.5-7.5 10.9-4.1 16.7s10.9 7.5 16.7 4.1c0-.2.2-.3.4-.4z"}),h.createElement("ellipse",{fill:"#C59262",cx:256.5,cy:159.1,rx:24.3,ry:36.4}))},$$e=function(e){var n=e.title,r=Z(e,XNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0zm0 48.9h513V171H0zm0 48.8h513v24.4H0zm0 48.9h513v24.4H0zm0 48.8h513v24.4H0z",fill:"#c00"}),h.createElement("path",{fill:"#006",d:"M0 0h256.5v195.4H0z"}),h.createElement("path",{d:"M153.3 42.1C122.6 30.7 88.5 46.3 77.1 77s4.2 64.8 34.9 76.2c13.3 5 28 5 41.4 0-30.7 24.5-75.4 19.6-100-11.1s-19.6-75.4 11.1-100c26-20.7 62.9-20.7 88.8 0zm26.7 75-20.6 23.3 5.4-30.6-31-1.6 27.3-14.9L143 68l28.6 12 8.4-29.9 8.4 29.9L217 68l-18 25.4 27.3 14.9-31 1.6 5.4 30.6-20.7-23.4z",fill:"#fc0"}))},F$e=function(e){var n=e.title,r=Z(e,ZNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.333h513v342H0z"}),h.createElement("path",{fill:"#f4d900",d:"M0 323.333h513v104H0z"}),h.createElement("path",{fill:"#006d66",d:"M0 85.333h513v104H0z"}),h.createElement("path",{d:"M0 204.333h513v104H0z"}),h.createElement("path",{fill:"#cb0f31",d:"M256 256.006 0 426.668V85.331z"}),h.createElement("path",{fill:"#f4d900",d:"m83.477 195.132 15.107 46.498h48.894l-39.554 28.739 15.107 46.499-39.554-28.738-39.555 28.738 15.11-46.499-39.554-28.739H68.37z"}))},j$e=function(e){var n=e.title,r=Z(e,JNe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#496E2D",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 426.663V85.337h512"}),h.createElement("path",{fill:"#FFF",d:"M512 152.222V85.337H411.67L0 359.778v66.885h100.33z"}),h.createElement("path",{fill:"#A2001D",d:"M512 85.337v40.125L60.193 426.663H0v-40.125L451.807 85.337z"}),h.createElement("path",{fill:"#FFDA44",d:"m187.737 189.212-22.741 10.696 12.11 22.024-24.693-4.724-3.129 24.945-17.199-18.347-17.2 
346718.347-3.129-24.945-24.693 4.723 12.109-22.023-22.739-10.696 22.74-10.697-12.11-22.022 24.693 4.722 3.13-24.944 17.199 18.347 17.2-18.347 3.128 24.944 24.693-4.722-12.108 22.024z"}))},L$e=function(e){var n=e.title,r=Z(e,eMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 426.7"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#009543",d:"M0 293h640v133.7H0V293z"}),h.createElement("path",{fill:"#ED4135",d:"M0 132h640v161.3H0V132z"}),h.createElement("path",{fill:"#0035AD",d:"M0 0h640v133.3H0V0z"}),h.createElement("circle",{fill:"#FAE600",stroke:"#000",strokeWidth:5.3,cx:240,cy:213.3,r:157.3}),h.createElement("path",{d:"m307.9 354.5-31.8 12-36.1 4.2-37.8-2.4-35.9-15.5s28.6-29.3 40.7-33.5c8.6-3 22.4-3.7 22.4-3.7V122l-.3-66H246l-.5 67.5v191.7s15.3 1.2 22.1 4.1c11.3 4.9 40.3 35.2 40.3 35.2z"}),h.createElement("path",{d:"m212.727 102.375 42.955-21.418 5.577 11.187-42.955 21.417z"}),h.createElement("ellipse",{cx:237.8,cy:280.5,rx:16.8,ry:26.5}),h.createElement("circle",{cx:237.4,cy:143.4,r:20.9}),h.createElement("ellipse",{cx:238.4,cy:211.1,rx:19.9,ry:12.1}),h.createElement("path",{d:"M213.8 177h47v10h-47zm0 57h47v10h-47z"}))},z$e=function(e){var n=e.title,r=Z(e,tMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#e05206",d:"M0 85.337h512v113.775H0z"}),h.createElement("path",{fill:"#0db02b",d:"M0 312.888h512v113.775H0z"}),h.createElement("circle",{fill:"#e05206",cx:256,cy:256,r:32}))},V$e=function(e){var n=e.title,r=Z(e,nMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.5 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.5h513v342H0z"}),h.createElement("path",{d:"M0 85.5h171v342H0zm342 0h171v342H342zm-38 226.495-48-152.001-48 152.001h36v39.999h24v-39.999z",fill:"#007b23"}))},B$e=function(e){var n=e.title,r=Z(e,rMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.5 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.5h513v342H0z"}),h.createElement("path",{d:"M0 85.5h171v342H0zm342 0h171v342H342z",fill:"#007b23"}))},H$e=function(e){var n=e.title,r=Z(e,sMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#338AF3"}),h.createElement("path",{fill:"#FFDA44",d:"M256 214.447c-22.949 0-41.553 18.603-41.553 41.553S233.05 297.553 256 297.553c22.949 0 41.553-18.603 41.553-41.553S278.949 214.447 256 214.447zm0 65.298c-13.114 0-23.745-10.631-23.745-23.745s10.631-23.745 23.745-23.745 23.745 10.631 23.745 23.745-10.631 23.745-23.745 23.745z"}),h.createElement("path",{fill:"#0052B4",d:"M276.563 261.936 256 256l-20.563 5.936-6.855 11.873h54.836z"}),h.createElement("path",{fill:"#338AF3",d:"m256 226.32-13.709 23.744L256 256l13.709-5.936z"}),h.createElement("path",{fill:"#6DA544",d:"M235.437 261.936h41.126l-6.854-11.872h-27.418z"}))},U$e=function(e){var n=e.title,r=Z(e,iMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 114h513v114H0z"}),h.createElement("path",{fill:"#cd1f2a",d:"M0 0h513v114H0z"}),h.createElement("path",{fill:"#1d4185",d:"M0 228h513v114H0z"}))},W$e=function(e){var n=e.title,r=Z(e,oMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 85.334h512v341.337H0z"}),h.createElement("path",{fill:"#FFF",d:"M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z"}),h.createElement("path",{fill:"#2E52B2",d:"M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z"}))},q$e=function(e){var n=e.title,r=Z(e,aMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 426.663V85.337l280.419 174.75H87.61l183.576 166.576z"}),h.createElement("path",{fill:"#D80027",d:"M244.769 249.888 10.199 103.71v312.754h234.57L61.193 249.888z"}),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"m98.003 324.433-14.589-6.863 7.77-14.13-15.844 3.03-2.008-16.005-11.035 11.772-11.036-11.772-2.008 16.005-15.843-3.031 7.77 14.131-14.591 6.863 14.591 6.862-7.77 14.13 15.844-3.029 2.007 16.004 11.036-11.772L73.332 358.4l2.008-16.004 15.843 3.03-7.769-14.13zm-9.735-132.771-10.612-4.991 5.651-10.278-11.523 2.205-1.461-11.641-8.026 8.561-8.026-8.561-1.46 11.641-11.525-2.205 5.652 10.278-10.613 4.991 25.972 5.194z"}),h.createElement("path",{d:"M93.462 191.662c0 17.212-13.953 31.165-31.165 31.165s-31.165-13.953-31.165-31.165"})))},G$e=function(e){var n=e.title,r=Z(e,lMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M0 239.994h512v32H0z"}),h.createElement("path",{fill:"#FFF",d:"m174.802 341.329-19.124 8.996 10.184 18.521-20.767-3.973-2.631 20.978L128 370.422l-14.465 15.429-2.63-20.978-20.767 3.973 10.183-18.521-19.123-8.996 19.124-8.995-10.184-18.52 20.766 3.971 2.632-20.978L128 312.236l14.465-15.429 2.63 20.978 20.767-3.971-10.183 18.521z"}))},K$e=function(e){var n=e.title,r=Z(e,cMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 85.334h512v341.337H0z"}),h.createElement("path",{fill:"#FFF",d:"M0 85.334h256v170.663H0z"}),h.createElement("g",{fill:"#D80027"}
3467,h.createElement("path",{d:"M144 85.33h-32v69.333H0v32h112v69.334h32v-69.334h112v-32H144z"}),h.createElement("path",{d:"M0 85.329v15.083l57.377 38.251H80z"})),h.createElement("path",{d:"M0 107.951v30.712h46.069zm96-22.62v48.913L22.628 85.331z",fill:"#2E52B2"}),h.createElement("path",{fill:"#D80027",d:"M256 85.329v15.083l-57.377 38.251H176z"}),h.createElement("path",{d:"M256 107.951v30.712h-46.069zm-96-22.62v48.913l73.372-48.913z",fill:"#2E52B2"}),h.createElement("path",{fill:"#D80027",d:"M0 85.329v15.083l57.377 38.251H80z"}),h.createElement("path",{d:"M0 107.951v30.712h46.069zm96-22.62v48.913L22.628 85.331z",fill:"#2E52B2"}),h.createElement("path",{fill:"#D80027",d:"M256 85.329v15.083l-57.377 38.251H176z"}),h.createElement("path",{d:"M256 107.951v30.712h-46.069zm-96-22.62v48.913l73.372-48.913z",fill:"#2E52B2"}),h.createElement("path",{fill:"#D80027",d:"M0 255.997v-15.082l57.377-38.252H80z"}),h.createElement("path",{d:"M0 233.376v-30.713h46.069zm96 22.618v-48.912l-73.372 48.912z",fill:"#2E52B2"}),h.createElement("path",{fill:"#D80027",d:"M256 255.997v-15.082l-57.377-38.252H176z"}),h.createElement("g",{fill:"#2E52B2"},h.createElement("path",{d:"M256 233.376v-30.713h-46.069zm-96 22.618v-48.912l73.372 48.912z"}),h.createElement("circle",{cx:128,cy:170.66,r:22.627})),h.createElement("path",{d:"m128 154.663 3.97 12.222h12.854l-10.398 7.556 3.971 12.222L128 179.109l-10.398 7.554 3.972-12.222-10.398-7.556h12.853zm0 65.14 2.364 7.278h7.653l-6.19 4.498 2.364 7.278-6.191-4.498-6.191 4.498 2.364-7.278-6.19-4.498h7.652zm0-117.334 2.364 7.278h7.653l-6.19 4.498 2.364 7.278-6.191-4.498-6.191 4.498 2.364-7.278-6.19-4.498h7.652zm69.931 58.667 2.365 7.277h7.653l-6.192 4.499 2.365 7.279-6.191-4.498-6.191 4.498 2.365-7.279-6.191-4.499h7.652zm-139.862 0 2.364 7.277h7.653l-6.191 4.499 2.364 7.279-6.19-4.498-6.191 4.498 2.365-7.279-6.192-4.499h7.653z",fill:"#FFDA44"}))},Y$e=function(e){var n=e.title,r=Z(e,uMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 85.334h512v341.337H0z"}),h.createElement("path",{d:"m425.301 233.745 3.388 10.428h10.963l-8.87 6.444 3.388 10.427-8.869-6.444-8.871 6.444 3.388-10.427-8.87-6.444h10.963zm-39.194 75.072 5.083 15.642h16.445l-13.305 9.667 5.082 15.64-13.305-9.667-13.305 9.667 5.083-15.64-13.305-9.667h16.445zm1.481-122.846 4.236 13.036h13.704l-11.088 8.054 4.235 13.034-11.087-8.056-11.088 8.056 4.235-13.034-11.087-8.054h13.704zm-37.712 47.32 5.082 15.641h16.446l-13.306 9.666 5.084 15.641-13.306-9.666-13.305 9.666 5.082-15.641-13.305-9.666h16.445z",fill:"#D80027"}),h.createElement("path",{fill:"#FFF",d:"M256.003 85.329v30.564l-45.178 25.088h45.178v59.359H196.89l59.113 32.846v22.806h-26.69l-73.484-40.826v40.826h-55.652v-48.573l-87.429 48.573H.003v-30.553l45.168-25.099H.003v-59.359h59.103L.003 108.147V85.329h26.68l73.494 40.838V85.329h55.652v48.573l87.43-48.573z"}),h.createElement("path",{fill:"#D80027",d:"M144 85.33h-32v69.334H0v32h112v69.334h32v-69.334h112v-32H144z"}),h.createElement("path",{fill:"#0052B4",d:"M155.826 200.344 256 255.998v-15.739l-71.847-39.915z"}),h.createElement("path",{fill:"#FFF",d:"M155.826 200.344 256 255.998v-15.739l-71.847-39.915z"}),h.createElement("path",{d:"M155.826 200.344 256 255.998v-15.739l-71.847-39.915zm-83.98 0L0 240.259v15.739l100.174-55.654z",fill:"#D80027"}),h.createElement("path",{fill:"#0052B4",d:"M100.174 140.983 0 85.33v15.738l71.847 39.915z"}),h.createElement("path",{fill:"#FFF",d:"M100.174 140.983 0 85.33v15.738l71.847 39.915z"}),h.createElement("path",{d:"M100.174 140.983 0 85.33v15.738l71.847 39.915zm83.98 0L256 101.068V85.33l-100.174 55.653z",fill:"#D80027"}))},Q$e=function(e){var n=e.title,r=Z(e,dMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M138 0h377v114H138z"}),h.createElement("path",{fill:"#4A7C3A",d:"M138 230h377v114H138z"}),h.createElement("g",{fill:"none",stroke:"#FFF",strokeWidth:10,strokeMiterlimit:2},h.createElement("path",{d:"M40.3 35.2s37.1 48 50.8 54.5c13.7 6.5 17.1 5.7 17.1 5.7"}),h.createElement("path",{d:"M100 35.2S62.9 80.6 53.3 87.6c-9.6 7-18.7 7.8-18.7 7.8m17.1-30.1h37.9M70.7 35.2v30.1"})))},X$e=function(e){var n=e.title,r=Z(e,fMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#0052B4",d:"M256 256v170.663H0V256h256z"}),h.createElement("path",{fill:"#D80027",d:"M512 85.337V256H256V85.337h256z"}),h.createElement("path",{fill:"#0052B4",d:"m128 123.034 11.824 36.389h38.263l-30.955 22.491 11.823 36.389L128 195.813l-30.955 22.49 11.823-36.389-30.955-22.491h38.263z"}),h.createElement("path",{fill:"#D80027",d:"m384 293.697 11.824 36.389h38.263l-30.955 22.491 11.823 36.389L384 366.476l-30.955 22.49 11.823-36.389-30.955-22.491h38.263z"}))},Z$e=function(e){var n=e.title,r=Z(e,hMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.326H0z"}),h.createElement("path",{d:"M0 85.331h170.663v341.337H0zm341.337 0H512v341.337H341.337z",f
3467ill:"#D80027"}))},J$e=function(e){var n=e.title,r=Z(e,pMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#D80027"}),h.createElement("path",{fill:"#FFDA44",d:"M293.991 256c0 20.982-17.01 33.243-37.992 33.243S218.008 276.982 218.008 256s17.01-37.992 37.992-37.992 37.991 17.01 37.991 37.992z"}),h.createElement("path",{fill:"#0052B4",d:"M293.991 256c0 20.982-17.01 37.992-37.992 37.992s-37.992-17.01-37.992-37.992"}),h.createElement("path",{d:"M232.259 246.506h9.498v19h-9.498zm37.988 0h9.498v19h-9.498zm-19-14.247h9.498v33.243h-9.498z",fill:"#D80027"}))},eFe=function(e){var n=e.title,r=Z(e,mMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{d:"M0 85.333h512V426.67H0z"}),h.createElement("path",{fill:"#A2001D",d:"M0 85.33h512v341.332"}),h.createElement("path",{d:"m204.631 326.488 2.762 8.504h8.941l-7.233 5.255 2.763 8.502-7.233-5.254-7.233 5.254 2.762-8.502-7.233-5.255h8.94zm-22.834-81.622 4.605 14.172h14.901l-12.056 8.757 4.605 14.172-12.055-8.759-12.055 8.759 4.606-14.172-12.056-8.757h14.901zm0 103.883 4.604 14.173h14.902l-12.057 8.757 4.606 14.173-12.055-8.759-12.055 8.759 4.604-14.173-12.054-8.757h14.899zm43.566-66.782 4.606 14.172h14.901l-12.056 8.758 4.605 14.172-12.056-8.759-12.054 8.759 4.606-14.172-12.056-8.758h14.901zm-87.133 0 4.606 14.172h14.899l-12.054 8.758 4.603 14.172-12.054-8.759-12.055 8.759 4.605-14.172-12.055-8.758h14.9z",fill:"#FFF"}),h.createElement("path",{fill:"#FFDA44",d:"M376.526 204.163c-7.628-7.628-17.538-12.133-28.189-12.908l31.88-24.795c-12.698-12.698-29.714-18.431-46.319-17.218a44.31 44.31 0 0 0-11.396-19.511l-12.593 25.186a18.47 18.47 0 0 0-3.148-4.197c-7.245-7.245-18.991-7.244-26.234 0s-7.245 18.99 0 26.234a18.536 18.536 0 0 0 4.197 3.148l-25.186 12.593a44.303 44.303 0 0 0 19.519 11.399c-1.217 16.606 4.511 33.619 17.209 46.317L324.12 214.6a11.053 11.053 0 0 1 7.807-3.202c2.973 0 5.768 1.158 7.87 3.26a11.055 11.055 0 0 1 3.26 7.87c0 2.974-1.158 5.768-3.26 7.87l10.494 10.494c4.905-4.905 7.607-11.428 7.607-18.364 0-5.675-1.81-11.071-5.153-15.534a29.492 29.492 0 0 1 13.288 7.662c11.573 11.572 11.573 30.403 0 41.975l10.494 10.494c8.409-8.409 13.039-19.59 13.039-31.481-.001-11.892-4.632-23.072-13.04-31.481z"}))},tFe=function(e){var n=e.title,r=Z(e,gMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#0052B4",d:"M512 85.337V256H256L0 85.337z"}),h.createElement("path",{fill:"#D80027",d:"M512 256v170.663H0L256 256z"}),h.createElement("path",{d:"m161.908 256-27.288-12.835 14.532-26.428-29.632 5.668-3.755-29.933-20.64 22.015-20.639-22.015-3.755 29.933-29.631-5.669 14.531 26.428L28.343 256l27.288 12.835L41.1 295.263l29.633-5.668 3.753 29.933 20.639-22.015 20.64 22.015 3.755-29.933 29.631 5.669-14.532-26.427zM21.789 117.607l9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.694-14.809-4.932-9.268 12.559.117-15.608-14.809-4.934 14.88-4.712zm0 235.923 9.081 12.696 14.879-4.714-9.268 12.56 9.081 12.695-14.809-4.933-9.268 12.558.117-15.607-14.809-4.934 14.88-4.712zm188.606-117.961-9.081 12.695-14.879-4.713 9.268 12.559-9.081 12.696 14.809-4.933 9.268 12.558-.11
34677-15.607 14.809-4.934-14.88-4.713z",fill:"#FFDA44"}))},nFe=function(e){var n=e.title,r=Z(e,vMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"m393.508 170.516 17.512 18.875 23.363-10.821-12.541 22.487 17.513 18.876-25.263-4.978-12.539 22.488-3.073-25.564-25.263-4.978 23.363-10.82z"}),h.createElement("path",{d:"M0 85.343h512v341.326H0z"})),h.createElement("path",{fill:"#01411c",d:"M128 85.331h384v341.337H128z"}),h.createElement("path",{d:"M361.909 298.793c-31.037 22.426-74.378 15.446-96.804-15.592-22.427-31.038-15.446-74.379 15.593-96.804 9.677-6.992 20.55-11.125 31.613-12.563-21.283-3.183-43.777 1.613-62.598 15.211-38.2 27.602-46.792 80.944-19.191 119.145 27.601 38.199 80.944 46.792 119.145 19.189 18.82-13.598 30.436-33.448 34.096-54.655-4.839 10.05-12.176 19.076-21.854 26.069zm-1.329-125.904 17.484 18.842 23.322-10.802-12.519 22.447 17.483 18.844-25.219-4.968-12.519 22.45-3.067-25.521-25.22-4.969 23.323-10.802z",fill:"#FFF"}))},rFe=function(e){var n=e.title,r=Z(e,yMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{d:"M0 85.337h512V256H0z"})),h.createElement("path",{fill:"#D80027",d:"M0 256h512v170.663H0z"}))},sFe=function(e){var n=e.title,r=Z(e,xMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},iFe=function(e){var n=e.title,r=Z(e,wMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),h.createElement("path",{fill:"#ACABB1",d:"M400.696 219.822 384 225.387l-16.696-5.565-5.565-13.913 5.565-13.913h33.392l-5.566 13.913z"}),h.createElement("path",{fill:"#338AF3",d:"M345.043 219.822v61.217c0 29.821 38.957 38.957 38.957 38.957s38.957-9.137 38.957-38.957v-61.217h-77.914z"}),h.createElement("path",{fill:"#6DA544",d:"M348.555 295.541C358.131 313.927 384 319.996 384 319.996s25.869-6.069 35.445-24.455L384 236.518l-35.445 59.023z"}),h.createElement("path",{fill:"#FFDA44",d:"M422.957 280.421 384 219.822l-38.957 60.599v.618c0 5.518 1.337 10.328 3.512 14.503L384 240.405l35.445 55.137c2.175-4.175 3.512-8.983 3.512-14.503v-.618z"}),h.createElement("path",{fill:"#FFF",d:"M256 85.333v30.553l-45.167 25.099H256v59.359h-59.103L256 233.179v22.817h-26.68l-73.494-40.826v40.826h-55.652v-48.573l-87.43 48.573H0v-30.554l45.167-25.098H0v-59.359h59.103L0 108.139V85.333h26.68l73.494 40.825V85.333h55.652v48.572l87.43-48.572z"}),h.createElement("path",{fill:"#D80027",d:"M144 85.33h-32v69.332H0v32h112v69.334h32v-69.334h112v-32H144z"}),h.createElement("path",{fill:"#0052B4",d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915z"}),h.createElement("path",{fill:"#FFF",d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915z"}),h.createElement("path",{d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915zm-83.98 0L0 240.259v15.737l100.174-55.652z",fill:"#D80027"}),h.createElement("path",{fill:"#0052B4",d:"M100.174 140.982 0 85.33v15.737l71.847 39.915z"}),h.createElement("path",{fill:"#FFF",d:"M100.174 140.982 0 85.33v15.737l71.847 39.915z"}),h.createElement("path",{d:"M100.174 140.982 0 85.33v15.737l71.847 39.915zm83.98 0L256 101.067V85.33l-100.174 55.652z",fill:"#D80027"}))},oFe=function(e){var n=e.title,r=Z(e,_Me);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{d:"M0 85.337h512V153.6H0zm0 136.526h512v68.263H0zM0 358.4h512v68.263H0z",fill:"#D80027"}),h.createElement("path",{fill:"#0052B4",d:"M256 256.006 0 426.668V85.331z"}),h.createElement("path",{fill:"#FFF",d:"m83.477 195.132 15.107 46.498h48.894l-39.554 28.739 15.107 46.499-39.554-28.738-39.555 28.738 15.11-46.499-39.554-28.739H68.37z"}))},aFe=function(e){var n=e.title,r=Z(e,EMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{d:"M0 85.337h512v113.775H0z"}),h.createElement("path",{fill:"#268024",d:"M0 312.888h512v113.775H0z"}),h.createElement("path",{fill:"#e4312b",d:"M256 256.006 0 426.668V85.331z"}))},lFe=function(e){var n=e.title,r=Z(e,bMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#6DA544",d:"M196.641 85.337v341.326H0V85.337z"}),h.createElement("circle",{fill:"#FFDA44",cx:196.641,cy:256,r:64}),h.createElement("path",{fill:"#D80027",d:"M160.638 224v40.001c0 19.882 16.118 36 36 36s36-16.118 36-36V224h-72z"}),h.createElement("path",{fill:"#FFF",d:"M196.638 276c-6.617 0-12-5.383-12-12v-16h24.001v16c-.001 6.616-5.385 12-12.001 12z"}))},cFe=function(e){var n=e.title,r=Z(e,SMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#338AF3",d:"M0 85.331h512v341.337H0z"}),h.createElement("circle",{fill:"#FFDA44",cx:218.902,cy:255.994,r:74.207}))},uFe=function(e){var n=e.title,r=Z(e,CMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 312.888h512v113.775H0z"}),h.createElement("path",{fill:"#6DA544",d:"m289.579 216.738-12.592 12.592c5.37 5.372 8.693 12.792 8.693 20.988 0 16.392-13.289 29.68-29.68 29.68-16.392 0-29.68-13.289-29.68-29.68 0-8.195 3.322-15.616 8.693-20.988l-12.592-12.592c-8.594 8.594-13.91 20.466-13.91 33.579 0 26.228 21.261 47.489 47.489 47.489s47.489-21.261 47.489-47.489c0-13.112-5.316-24.985-13.91-33.579z"}),h.createElement("path",{fill:"#FFDA44",d:"m256 232.51 4.421 13.605h14.304l-11.573 8.408 4.421 13.604L256 259.719l-11.573 8.408 4.421-13.604-11.573-8.408h14.304z"}))},dFe=function(e){var n=e.title,r=Z(e,TMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#751A46",d:"M0 0h512v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M0 0v342h150.3l37.7-19.6-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19 37.7-18.9-37.7-19 37.7-19-37.7-18.9 37.7-19-37.7-18.9 37.7-19-37.7-19L188 57l-37.7-19L188 19.1 150.3 0z"}))},fFe=function(e){var n=e.title,r=Z(e,AMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#00318A",d:"M0 0h171v342H0z"}),h.createElement("path",{fill:"#D80027",d:"M342 0h171v342H342z"}))},hFe=function(e){var n=e.title,r=Z(e,IMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 85.331h170.663v341.337H0z"}),h.createElement("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"}))},pFe=function(e){var n=e.title,r=Z(e,PMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 85.331h512v341.337H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 85.331h512v113.775H0z"}),h.createElement("path",{fill:"#FFF",d:"M0 312.882h512v113.775H0z"}),h.createElement("path",{fill:"#D80027",d:"M129.468 181.793v85.136c0 48.429 63.267 63.267 63.267 63.267S256 315.356 256 266.929v-85.136H129.468z"}),h.createElement("path",{d:"M155.634 196.634h74.201v-29.681l-14.841 7.42-22.261-22.26-22.259 22.26-14.84-7.42zm85.526 82.148-48.231-48.231-48.231 48.231 15.741 15.74 32.49-32.49 32.49 32.49z",fill:"#FFDA44"}),h.createElement("path",{fill:"#FFF",d:"M241.16 233.734h-22.504a14.74 14.74 0 0 0 2.001-7.418c0-8.196-6.645-14.84-14.84-14.84-5.663 0-10.581 3.172-13.083 7.836-2.502-4.663-7.421-7.836-13.083-7.836-8.195 0-14.84 6.644-14.84 14.84 0 2.706.736 5.235 2.001 7.418h-22.114c0 8.196 7.139 14.84 15.334 14.84h-.494c0 8.196 6.644 14.84 14.84 14.84 0 7.257 5.211 13.286 12.094 14.576l-11.694 26.401a48.075 48.075 0 0 0 18.149 3.544 48.079 48.079 0 0 0 18.149-3.544l-11.694-26.401c6.883-1.29 12.094-7.319 12.094-14.576 8.196 0 14.84-6.644 14.84-14.84h-.494c8.199 0 15.338-6.644 15.338-14.84z"}))},mFe=function(e){var n=e.title,r=Z(e,RMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.33v341.332h512V85.33z"}),h.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),h.createElement("path",{fill:"#FFF",d:"M0 85.333h512v113.775H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 312.884h512v113.775H0z"}))}
3467,gFe=function(e){var n=e.title,r=Z(e,NMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#338AF3",d:"M0 85.331h512v341.337H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M0 255.994h512v81.619H0z"}),h.createElement("path",{fill:"#496E2D",d:"M0 337.614h512v89.043H0z"}),h.createElement("path",{fill:"#FFDA44",d:"m278.261 185.209 20.844 9.804-11.099 20.186 22.632-4.33 2.868 22.865 15.765-16.816 15.766 16.816 2.867-22.865 22.633 4.33-11.099-20.186 20.843-9.804-20.844-9.805 11.1-20.185-22.633 4.329-2.868-22.864-15.765 16.816-15.766-16.816-2.867 22.864-22.634-4.329 11.1 20.187z"}))},vFe=function(e){var n=e.title,r=Z(e,MMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#055e1c",d:"M0 85.333h512v341.333H0z"}),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"M183.548 289.386c0 12.295 9.731 22.261 21.736 22.261h65.208c0 10.244 8.11 18.551 18.114 18.551h21.736c10.004 0 18.114-8.306 18.114-18.551v-22.261H183.548zm146.716-107.595v51.942c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942h-21.735zm-155.773 51.943c0 8.183-6.5 14.84-14.491 14.84v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.942H174.49v51.942z"}),h.createElement("path",{d:"M297.661 181.788h21.736v51.942h-21.736zm-32.604 29.685c0 2.046-1.625 3.71-3.623 3.71-1.998 0-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 2.046-1.625 3.71-3.623 3.71s-3.623-1.664-3.623-3.71v-29.682h-21.736v29.682c0 14.32 11.376 25.971 25.358 25.971 5.385 0 10.38-1.733 14.491-4.677 4.11 2.944 9.106 4.677 14.491 4.677 1.084 0 2.15-.078 3.2-.215-1.54 6.499-7.255 11.345-14.068 11.345v22.261c19.976 0 36.226-16.643 36.226-37.101v-51.943h-21.736l.002 29.682z"}),h.createElement("path",{d:"M207.093 248.57h32.601v22.261h-32.601z"})))},yFe=function(e){var n=e.title,r=Z(e,kMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#496E2D",d:"M0 85.334h512v341.337H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 426.663V85.329h512"}),h.createElement("path",{fill:"#FFDA44",d:"M0 396.494v30.169h45.255L512 115.499v-30.17h-45.255z"}),h.createElement("path",{d:"m85.688 108.787 5.12 15.756h16.566l-13.403 9.737 5.12 15.757-13.403-9.738-13.405 9.738 5.12-15.757L64 124.543h16.567zm84.624 0 5.121 15.756H192l-13.403 9.737 5.12 15.757-13.405-9.738-13.403 9.738 5.12-15.757-13.403-9.737h16.566zm-84.624 82.502 5.12 15.756h16.566l-13.403 9.738 5.12 15.757-13.403-9.739-13.405 9.739 5.12-15.757L64 207.045h16.567zm84.624 0 5.121 15.756H192l-13.403 9.738 5.12 15.757-13.405-9.739-13.403 9.739 5.12-15.757-13.403-9.738h16.566zM128 150.037l5.12 15.756h16.568l-13.405 9.738 5.12 15.758L128 181.55l-13.403 9.739 5.12-15.758-13.405-9.738h16.568z",fill:"#FFF"}))},xFe=function(e){var n=e.title,r=Z(e,DMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M235.454 85.337 0 426.663 427.345 85.337z"}),h.createElement("path",{fill:"#6DA544",d:"M512 329.393 0 426.663h512z"}),h.createElement("path",{fill:"#D80027",d:"M512 85.337h-84.655L0 426.663l512-204.512z"}),h.createElement("path",{fill:"#0052B4",d:"M0 85.337v341.326L235.454 85.337z"}))},wFe=function(e){var n=e.title,r=Z(e,OMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),h.createElement("path",{d:"M0 312.888h512v113.775H0z"}),h.createElement("path",{fill:"#496E2D",d:"M0 426.668V85.331l256 170.675z"}))},_Fe=function(e){var n=e.title,r=Z(e,$Me);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M192 85.33h-64v138.666H0v64h128v138.666h64V287.996h320v-64H192z"}))},EFe=function(e){var n=e.title,r=Z(e,FMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 85.337h512V256H0z"}),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"M83.478 170.666c0-24.865 17.476-45.637 40.812-50.734a52.059 52.059 0 0 0-11.13-1.208c-28.688 0-51.942 23.254-51.942 51.941s23.255 51.942 51.942 51.942c3.822 0 7.543-.425 11.13-1.208-23.336-5.095-40.812-25.867-40.812-50.733zm66.783-48.231 3.684 11.337h11.921l-9.645 7.007 3.684 11.337-9.644-7.006-9.645 7.006 3.685-11.337-9.645-7.007h11.921z"}),h.createElement("path",{d:"m121.344 144.696 3.683 11.337h11.921l-9.645 7.007 3.684 11.337-9.643-7.006-9.645 7.006 3.685-11.337-9.645-7.007h11.921zm57.834 0 3.684 11.337h11.921l-9.645 7.007 3.684 11.337-9.644-7.006-9.644 7.006 3.685-11.337-9.645-7.007h11.921zm-11.131 33.391 3.684 11.337h11.921l-9.644 7.007 3.684 11.337-9.645-7.006-9.643 7.006 3.684
3467-11.337-9.644-7.007h11.92zm-35.573 0 3.683 11.337h11.921l-9.644 7.007 3.684 11.337-9.644-7.006-9.644 7.006 3.684-11.337-9.644-7.007h11.92z"})))},bFe=function(e){var n=e.title,r=Z(e,jMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h512v341.3H0z"}),h.createElement("path",{fill:"#FFF",d:"M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),h.createElement("g",{fill:"#D80027"},h.createElement("path",{d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),h.createElement("path",{d:"M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z"})),h.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),h.createElement("path",{d:"M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z",fill:"#D80027"}),h.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),h.createElement("path",{d:"M0 170.7v-15.1l57.4-38.2H80zm256 0v-15.1l-57.4-38.2H176z",fill:"#D80027"}),h.createElement("path",{fill:"#29DBFF",d:"M449 139.7c-.1 44.4-7.2 92.1-65 114.9-57.8-22.8-64.9-70.5-65-114.9h130z"}),h.createElement("path",{fill:"#ffda44",d:"M449 139.7c0-16.7-.9-32.9-.5-47.1C426.9 83 398.4 81 383.9 81s-42.9 2-64.6 11.6c.4 14.2-.5 30.4-.5 47.1H449z"}),h.createElement("path",{fill:"#BF521B",d:"m369.5 204.5.3 10.3-12.8.2 4.9 13.2h-17.3c-18-20.2-23.4-42.4-24.9-68.1l9.1-9.7 8.3 14.3 10.8-12.8 7 7.8.8 15.7 13.8 29.1z"}),h.createElement("path",{fill:"#474747",d:"m436.6 192.5-8.6 18.3h-47l-29.2-19.5 25.7 10.5h25.1l3.7-6.5 7.2.2 2-3z"}))},SFe=function(e){var n=e.title,r=Z(e,LMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 199.112h512v113.775H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 312.888h512v113.775H0z"}),h.createElement("path",{fill:"#FFF",d:"M233.606 196.639v14.837c0 34.081-44.522 44.522-44.522 44.522s-44.522-10.44-44.522-44.522v-14.837l-.145-44.188 89.043-.266.146 44.454z"}),h.createElement("path",{fill:"#0052B4",d:"M233.606 196.639v14.837c0 34.081-44.522 44.522-44.522 44.522s-44.522-10.44-44.522-44.522v-14.837l-.145-44.188 89.043-.266.146 44.454z"}),h.createElement("path",{fill:"#FFF",d:"M233.606 196.639v14.837c0 34.081-44.522 44.522-44.522 44.522s-44.522-10.44-44.522-44.522v-14.837l14.848 14.837 29.674-22.261 29.685 22.261 14.837-14.837z"}))},CFe=function(e){var n=e.title,r=Z(e,zMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 85.334h512v341.337H0z"}),h.createElement("path",{fill:"#FFF",d:"M512 295.883H202.195v130.783h-79.76V295.883H0v-79.772h122.435V85.329h79.76v130.782H512v61.218z"}),h.createElement("path",{fill:"#2E52B2",d:"M512 234.666v42.663H183.652v149.337h-42.674V277.329H0v-42.663h140.978V85.329h42.674v149.337z"}))},TFe=function(e){var n=e.title,r=Z(e,VMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 196.641h512v118.717H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 315.359h512v111.304H0z"}),h.createElement("path",{fill:"#FFF",d:"M129.468 181.799v85.136c0 48.429 63.267 63.267 63.267 63.267S256 315.362 256 266.935v-85.136H129.468z"}),h.createElement("path",{fill:"#D80027",d:"M146.126 184.294v81.941c0 5.472 1.215 10.64 3.623 15.485h85.97c2.408-4.844 3.623-10.012 3.623-15.485v-81.941h-93.216z"}),h.createElement("path",{fill:"#FFF",d:"M221.301 241.427h-21.425v-14.283h14.284v-14.283h-14.284v-14.284h-14.283v14.284h-14.282v14.283h14.282v14.283h-21.426v14.284h21.426v14.283h14.283v-14.283h21.425z"}),h.createElement("path",{fill:"#0052B4",d:"M169.232 301.658c9.204 5.783 18.66 9.143 23.502 10.636 4.842-1.494 14.298-4.852 23.502-10.636 9.282-5.833 15.79-12.506 19.484-19.939a24.878 24.878 0 0 0-14.418-4.583c-1.956 0-3.856.232-5.682.657-3.871-8.796-12.658-14.94-22.884-14.94-10.227 0-19.013 6.144-22.884 14.94a25.048 25.048 0 0 0-5.682-.657 24.88 24.88 0 0 0-14.418 4.583c3.691 7.433 10.198 14.106 19.48 19.939z"}))},AFe=function(e){var n=e.title,r=Z(e,BMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 85.337h512v113.775H0z"}),h.createElement("path",{fill:"#338AF3",d:"M0 312.888h512v113.775H0z"}))},IFe=function(e){var n=e.title,r=Z(e,HMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#338AF3",d:"M0 85.34h512v341.326H0z"}),h.createElement("path",{fill:"#FFF",d:"M512 85.334v166.69L0 256.175V85.334z"}),h.createElement("path",{fill:"#6DA544",d:"M323.744 203.099 256 270.843l-67.744-67.744a81.156 81.156 0 0 0-13.879 45.483v22.261c0 35.744 23.097 66.193 55.148 77.213-4.277 8.385-3.556 18.848 2.712 26.671l24.258-19.439 24.258 19.439c6.342-7.915 7.011-18.534 2.564-26.968 31.614-11.261 54.308-41.485 54.308-76.916v-22.261a81.174 81.174 0 0 0-13.881-45.483z"}),h.createElement("path",{fill:"#FFDA44",d:"M256 330.206c-32.732 0-59.362-26.63-59.362-59.362v-22.261c0-32.733 26.63-59.363 59.362-59.363s59.362 26.63 59.362 59.362v22.261c0 32.733-26.63 59.363-59.362 59.363z"}),h.createElement("path",{fill:"#338AF3",d:"M293.101 270.843v-22.261c0-20.458-16.
3467643-37.101-37.101-37.101s-37.101 16.643-37.101 37.101v22.261L256 278.264l37.101-7.421z"}),h.createElement("path",{fill:"#6DA544",d:"M218.899 270.843c0 20.458 16.643 37.101 37.101 37.101s37.101-16.643 37.101-37.101h-74.202z"}),h.createElement("path",{fill:"#FFDA44",d:"M300.522 189.22c0-12.295-9.966-22.261-22.261-22.261a22.173 22.173 0 0 0-14.84 5.672v-13.093h7.421v-14.84h-7.421v-7.421h-14.84v7.421h-7.421v14.84h7.421v13.093a22.177 22.177 0 0 0-14.841-5.672c-12.295 0-22.261 9.966-22.261 22.261 0 6.591 2.867 12.512 7.421 16.589v13.093h74.203v-13.093c4.552-4.077 7.419-9.997 7.419-16.589z"}))},PFe=function(e){var n=e.title,r=Z(e,UMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),h.createElement("path",{fill:"#D80027",d:"M330.207 85.331H512v341.337H330.207z"}),h.createElement("path",{d:"M0 85.331h181.793v341.337H0zm255.999 111.301 14.733 45.347h47.685l-38.576 28.029 14.734 45.348-38.576-28.026-38.577 28.026 14.737-45.348-38.576-28.029h47.681z",fill:"#496E2D"}))},RFe=function(e){var n=e.title,r=Z(e,WMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#338AF3",d:"M0 85.331h512v341.337H0z"}),h.createElement("path",{fill:"#FFF",d:"m256 157.273 22.663 69.748H352l-59.332 43.106 22.664 69.749L256 296.769l-59.332 43.107 22.664-69.749L160 227.021h73.337z"}))},NFe=function(e){var n=e.title,r=Z(e,qMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.331h512v341.337H0z"}),h.createElement("path",{fill:"#A2001D",d:"M0 196.636h512v118.728H0z"}),h.createElement("path",{d:"M0 352.462h512v74.207H0zM0 85.331h512v74.207H0z",fill:"#6DA544"}),h.createElement("path",{fill:"#FFDA44",d:"m256.742 218.003 9.43 29.021h30.518L272 264.963l9.431 29.023-24.689-17.937-24.689 17.937 9.431-29.023-24.69-17.939h30.518z"}))},MFe=function(e){var n=e.title,r=Z(e,GMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#496E2D",d:"M0 322.783h512v103.88H0z"}),h.createElement("path",{d:"M0 85.337h512v104.515H0z"}),h.createElement("path",{fill:"#A2001D",d:"M0 210.877h512v89.656H0z"}),h.createElement("path",{fill:"#0052B4",d:"M256 256.006 0 426.668V85.331z"}),h.createElement("path",{fill:"#FFDA44",d:"m73.178 209.188 20.831 29.067 34.084-10.83-21.207 28.795 20.83 29.069-33.939-11.271-21.208 28.794.234-35.762-33.94-11.273 34.083-10.83z"}))},kFe=function(e){var n=e.title,r=Z(e,KMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#6DA544"}),h.createElement("path",{fill:"#D80027",d:"M256 256.006 0 426.668V85.331z"}),h.createElement("path",{d:"m302.049 226.318 7.368 22.674h23.842l-19.288 14.016 7.366 22.674-19.288-14.015-19.287 14.015 7.366-22.674-19.288-14.016h23.842zm74.203 0 7.367 22.674h23.842l-19.288 14.016 7.367 22.674-19.288-14.015-19.288 14.015 7.367-22.674-19.288-14.016h23.842z"}))},DFe=function(e){var n=e.title,r=Z(e,YMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{d:"M0 85.337h512v113.775H0zm0 227.551h512v113.775H0z",fill:"#0052B4"}),h.createElement("path",{fill:"#FFDA44",d:"M228.582 261.936 256 214.447l27.418 47.489z"}),h.createElement("path",{fill:"#6DA544",d:"M291.616 277.616 256 295.425l-35.616-17.809v-23.744h71.232z"}),h.createElement("path",{fill:"#FFDA44",d:"m289.579 216.485-12.592 12.592c5.37 5.372 8.693 12.791 8.693 20.988 0 16.392-13.289 29.68-29.68 29.68-16.392 0-29.68-13.289-29.68-29.68 0-8.195 3.322-15.616 8.693-20.988l-12.592-12.592c-8.594 8.594-13.91 20.466-13.91 33.579 0 26.228 21.261 47.489 47.489 47.489s47.489-21.261 47.489-47.489c0-13.114-5.316-24.987-13.91-33.579z"}))},OFe=function(e){var n=e.title,r=Z(e,QMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#D80027",d:"M512 85.331v166.69L0 256.173V85.331z"}),h.createElement("path",{fill:"#FFF",d:"M256 256.006 0 426.668V85.331z"}),h.createElement("g",{fill:"#FFDA44"},h.createElement("path",{d:"M59.621 256a59.546 59.546 0 0 0-.193 4.57c0 32.821 26.607 59.429 59.429 59.429s59.429-26.607 59.429-59.429c0-1.539-.078-3.061-.193-4.57H59.621z"}),h.createElement("circle",{cx:118.862,cy:210.287,r:18.286}
3467)),h.createElement("path",{fill:"#D80027",d:"M77.715 205.714v59.429c0 31.494 41.144 41.143 41.144 41.143s41.144-9.649 41.144-41.143v-59.429H77.715z"}),h.createElement("path",{fill:"#338AF3",d:"M118.877 287.148c-7.632-2.746-22.876-9.767-22.876-22.006v-41.144h45.715v41.144c-.001 12.28-15.244 19.283-22.839 22.006z"}),h.createElement("path",{fill:"#F3F3F3",d:"M128.001 246.856v-9.142l-9.144-4.571-9.142 4.571v9.142l-4.571 4.573v18.285h27.428v-18.285z"}))},$Fe=function(e){var n=e.title,r=Z(e,XMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&h.createElement("title",null,n),h.createElement("path",{d:"M0 0h900v600H0z",fill:"#0f0f0f"}),h.createElement("path",{d:"M0 0h900v400H0z",fill:"#fff"}),h.createElement("path",{d:"M0 0h900v200H0z",fill:"#047a3f"}),h.createElement("path",{d:"m176.26 375 48.738-150 48.738 150-127.6-92.705h157.72M626.256 375l48.738-150 48.738 150-127.6-92.705h157.72M401.252 375l48.738-150 48.738 150-127.6-92.705h157.72",fill:"#ce1126"}))},FFe=function(e){var n=e.title,r=Z(e,ZMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#2B5DEA",d:"M0 0h900v600H0V0z"}),h.createElement("path",{fill:"#FFDF29",d:"M0 100h900v400H0V100z"}),h.createElement("path",{fill:"#D70000",d:"M0 150h900v300H0V150z"}),h.createElement("path",{fill:"#FFF",d:"M450 171.4v257.2c114.3 0 171.4-85.7 214.3-128.6-42.9-42.9-100-128.6-214.3-128.6z"}),h.createElement("path",{d:"M450 171.4c-100 0-171.4 85.7-214.3 128.6C278.6 342.9 350 428.6 450 428.6V171.4z"}),h.createElement("path",{fill:"#FFF",d:"M346.3 254.3h21v91.3h-21zm51.9 0h21v91.3h-21z"}),h.createElement("path",{d:"M477.8 254.3h21v91.3h-21zm51.9 0h21v91.3h-21z"}))},jFe=function(e){var n=e.title,r=Z(e,JMe);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h512v341.3H0z"}),h.createElement("path",{fill:"#FFF",d:"M256 0v117.4h-46.1l46.1 30.7v22.6h-22.6L160 121.8v48.9H96v-48.9l-73.4 48.9H0v-22.6l46.1-30.7H0v-64h46.1L0 22.7V0h22.6L96 48.9V0h64v48.9L233.4 0z"}),h.createElement("g",{fill:"#D80027"},h.createElement("path",{d:"M144 0h-32v69.4H0v32h112v69.3h32v-69.3h112v-32H144z"}),h.createElement("path",{d:"M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z"})),h.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),h.createElement("path",{d:"M0 0v15.1l57.4 38.3H80zm256 0v15.1l-57.4 38.3H176z",fill:"#D80027"}),h.createElement("path",{fill:"#2E52B2",d:"M256 22.7v30.7h-46.1z"}),h.createElement("path",{d:"M0 170.7v-15.1l57.4-38.2H80zm256 0v-15.1l-57.4-38.2H176z",fill:"#D80027"}),h.createElement("path",{fill:"#29DBFF",d:"M448.9 169.5c0 9.6-.3 29.6-1.4 39.2-4.1 34.9-23.5 68.8-62.1 85.9-45.3-17.9-60.8-51-64.9-85.9-1.1-9.6-1.5-19.4-1.5-29l.3-47.1h129.2l.4 36.9z"}),h.createElement("path",{fill:"#FFF",d:"M447.5 208.7c-.2 1.6-.4 3.3-.6 4.9-4.8 33.1-22.9 65.4-61.5 81-43.2-17-59.4-47.9-64.2-81-.2-1.6-.4-3.2-.6-4.9"}),h.createElement("path",{fill:"#29DBFF",d:"m385.4 251.7-22.9-43h45.8z"}),h.createElement("path",{fill:"#FFF",d:"m385.4 165.8-22.9 42.9h45.8z"}),h.createElement("ellipse",{fill:"#FFBE57",cx:474.8,cy:236.8,rx:16.8,ry:43.3}),h.createElement("ellipse",{fill:"#FFBE57",cx:295.3,cy:236.8,rx:16.8,ry:43.3}),h.createElement("path",{fill:"#FFF",d:"m385.4 31.5-33.4 44h68.5zM315.5 280s33.8 29.5 69.9 29.5 67.1-29.5 67.1-29.5l8.5 14.6S439.2 326 385.4 326 307 294.6 307 294.6l8.5-14.6z"}),h.createElement("ellipse",{fill:"#A5A5A5",cx:386.3,cy:104.3,rx:34.3,ry:23.3}))},LFe=function(e){var n=e.title,r=Z(e,eke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 85.333h512V426.67H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M332.058 191.996v78.221c0 38.103 51.942 49.779 51.942 49.779s51.942-11.675 51.942-49.779v-78.221H332.058z"}),h.createElement("path",{fill:"#FF9811",d:"M376.579 220.44c0 7.855-6.644 28.445-14.84 28.445s-14.84-20.589-14.84-28.445c0-
34677.856 14.84-14.222 14.84-14.222s14.84 6.367 14.84 14.222z"}),h.createElement("path",{fill:"#A2001D",d:"M415.961 235.93c2.394-5.6 4.257-13.785 4.257-17.86 0-6.546-8.904-11.852-8.904-11.852s-8.904 5.306-8.904 11.852c0 4.075 1.862 12.26 4.257 17.86l-5.141 11.123a26.898 26.898 0 0 0 9.788 1.831c3.463 0 6.766-.654 9.788-1.831l-5.141-11.123z"}),h.createElement("path",{fill:"#6DA544",d:"M372.87 270.217s-7.421 14.222-7.421 28.445h37.101c0-14.222-7.421-28.445-7.421-28.445l-11.13-7.111-11.129 7.111z"}),h.createElement("path",{fill:"#D80027",d:"M395.13 270.217v-3.555c0-5.891-4.983-10.666-11.13-10.666-6.147 0-11.13 4.776-11.13 10.666v3.555h22.26z"}),h.createElement("path",{fill:"#FFF",d:"M256 85.333v30.553l-45.167 25.099H256v59.359h-59.103L256 233.179v22.817h-26.68l-73.494-40.826v40.826h-55.652v-48.573l-87.43 48.573H0v-30.554l45.167-25.098H0v-59.359h59.103L0 108.139V85.333h26.68l73.494 40.825V85.333h55.652v48.572l87.43-48.572z"}),h.createElement("path",{fill:"#D80027",d:"M144 85.33h-32v69.332H0v32h112v69.334h32v-69.334h112v-32H144z"}),h.createElement("path",{fill:"#0052B4",d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915z"}),h.createElement("path",{fill:"#FFF",d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915z"}),h.createElement("path",{d:"M155.826 200.344 256 255.996v-15.737l-71.847-39.915zm-83.98 0L0 240.259v15.737l100.174-55.652z",fill:"#D80027"}),h.createElement("path",{fill:"#0052B4",d:"M100.174 140.982 0 85.33v15.737l71.847 39.915z"}),h.createElement("path",{fill:"#FFF",d:"M100.174 140.982 0 85.33v15.737l71.847 39.915z"}),h.createElement("path",{d:"M100.174 140.982 0 85.33v15.737l71.847 39.915zm83.98 0L256 101.067V85.33l-100.174 55.652z",fill:"#D80027"}))},zFe=function(e){var n=e.title,r=Z(e,tke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.337H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 85.331h170.663v341.337H0z"}),h.createElement("path",{fill:"#D80027",d:"M341.337 85.331H512v341.337H341.337z"}))},VFe=function(e){var n=e.title,r=Z(e,nke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h21v15H0V0z"}),h.createElement("path",{fill:"#0A388A",d:"M0 0h22.5v15H0V0z"}),h.createElement("path",{fill:"#FFF",d:"M0 0h11.3v7.5H0V0z"}),h.createElement("path",{fill:"#D80027",d:"M7.1 0h3.6v7H7.1V0z"}),h.createElement("path",{fill:"#0A388A",d:"M0 0h3.6v7H0V0z"}),h.createElement("path",{fill:"#FFF",d:"M3.6 0h3.6v7H3.6V0zm10.9 6h5L19 7h-1.5v.5h1l-.5 1h-.5V10h-1V7H15l-.5-1zm4 2.5 1 1.5h-2l1-1.5zm-3 0 1 1.5h-2l1-1.5zm1.5 3L16 10h2l-1 1.5zM20 8c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm-6 0c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm1 4c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm4 0c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5zm-2 1c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5z"}))},BFe=function(e){var n=e.title,r=Z(e,rke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{d:"M0 85.337h512V153.6H0zM0 358.4h512v68.263H0zm0-136.537h512v68.263H0z",fill:"#496E2D"}),h.createElement("path",{fill:"#D80027",d:"M0 85.337h204.054v204.054H0z"}),h.createElement("path",{fill:"#FFF",d:"m102.026 133.938 13.26 40.812h42.916l-34.718 25.226 13.26 40.814-34.718-25.224-34.719 25.224 13.263-40.814-34.718-25.226h42.913z"}))},HFe=function(e){var n=e.title,r=Z(e,ske);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.334h512V426.66H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 194.056h512v123.882H0z"}),h.createElement("path",{d:"M0 85.334h512v54.522H0zm0 286.809h512v54.522H0z",fill:"#D80027"}))},UFe=function(e){var n=e.title,r=Z(e,ike);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 312.888h512v113.775H0z"}),h.createElement("path",{d:"M226.318 300.522h59.364v-25.23l-11.873 5.937L256 263.421l-17.809 17.808-11.873-5.937zm-33.963-29.682 2.763 8.504h8.94l-7.233 5.255 2.763 8.502-7.233-5.255-7.234 5.255 2.763-8.502-7.233-5.255h8.94zm8.566-29.68 2.763 8.502h8.94l-7.233 5.255 2.763 8.504-7.233-5.256-7.234 5.256 2.763-8.504-7.233-5.255h8.94zm24.488-22.261 2.763 8.502h8.94l-7.233 5.255 2.763 8.504-7.233-5.256-7.234 5.256 2.763-8.504-7.233-5.255h8.94zm94.236 51.941-2.763 8.504h-8.94l7.233 5.255-2.763 8.502 7.233-5.255 7.234 5.255-2.763-8.502 7.233-5.255h-8.94zm-8.566-29.68-2.763 8.502h-8.94l7.233 5.255-2.763 8.504 7.233-5.256 7.234 5.256-2.763-8.504 7.233-5.255h-8.94zm-24.488-22.261-2.763 8.502h-8.94l7.233 5.255-2.763 8.504 7.233-5.256 7.234 5.256-2.763-8.504 7.233-5.255h-8.94zM256 207.767l2.763 8.503h8.941l-7.234 5.256 2.763 8.502-7.233-5.254-7.233 5.254 2.763-8.502-7.234-5.256h8.941z",fill:"#FFDA44"}))},WFe=function(e){var n=e.title,r=Z(e,oke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{d:"m210.715 174.377 3.684 11.338h11.919l-9.643 7.006 3.684 11.337-9.644-7.007-9.644 7.007 3.684-11.337-9.645-7.006h11.921zm-93.899 107.594 4.605 14.172h14.9l-12.055 8.757 4.606 14.173-12.056-8.76-12.055 8.76 4.604-14.173-12.054-8.757h14.899zm27.88-162.292 4.604 14.172h14.901l-12.056 8.758 4.606 14.171-12.055-8.759-12.056 8.759 4.606-14.171-12.055-8.758h14.9zm-75.157 55.652 4.604 14.172h14.9l-12.055 8.758 4.606 14.171-12.055-8.758-12.056 8.758 4.606-14.171-12.055-8.758h14.9z",fill:"#FFF"}),h.createElement("path",{d:"M483.386 354.503H117.801s109.234-88.562 310.593-220.938c.001 0-88.443 128.935 54.992 220.938zm-365.585 11.586c-11.177 0-11.195 17.37 0 17.37h365.585c11.177 0 11.
3467195-17.37 0-17.37H117.801z",fill:"#FFDA44"}))},qFe=function(e){var n=e.title,r=Z(e,ake);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M256 256 0 90.691v44.242L155.826 256 0 377.067v44.242z"}),h.createElement("path",{d:"M0 90.691v330.618L189.217 256z"}),h.createElement("path",{fill:"#FFF",d:"m44.184 213.36 24.912 23.577 30.121-16.41-14.723 30.98 24.911 23.575-34.012-4.43L60.67 301.63l-6.296-33.716-34.012-4.43 30.119-16.408z"}))},GFe=function(e){var n=e.title,r=Z(e,lke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#496E2D",d:"M0 85.337h512v341.326H0z"}),h.createElement("g",{fill:"#FFF"},h.createElement("path",{d:"M357.208 183.679c8.397-23.404-1.036-48.858-21.281-61.536a52.131 52.131 0 0 1 10.884 2.621c27.002 9.688 41.038 39.428 31.35 66.431s-39.428 41.038-66.431 31.35a52.182 52.182 0 0 1-10.069-4.895c23.686 3.084 47.15-10.566 55.547-33.971zm-46.571-67.95-7.297 9.427-11.22-4.026 6.712 9.852-7.296 9.427 11.443-3.338 6.712 9.852.361-11.914 11.444-3.339-11.221-4.025z"}),h.createElement("path",{d:"m330.338 146.448-7.296 9.427-11.221-4.026 6.712 9.852-7.296 9.427 11.443-3.339 6.712 9.853.36-11.915 11.445-3.34-11.221-4.024zM275.9 126.916l-7.296 9.427-11.219-4.024 6.711 9.851-7.296 9.426 11.443-3.338 6.712 9.852.361-11.915 11.444-3.337-11.221-4.027zm-.799 35.189-7.296 9.427-11.221-4.026 6.712 9.852-7.296 9.427 11.444-3.338 6.711 9.852.362-11.915 11.443-3.338-11.22-4.026zm33.484 12.013-7.296 9.427-11.22-4.026 6.712 9.853-7.297 9.426 11.444-3.338 6.712 9.852.36-11.915 11.443-3.338-11.219-4.025z"})),h.createElement("path",{fill:"#D80027",d:"M83.478 85.337h89.043v341.326H83.478z"}),h.createElement("path",{fill:"#FFF",d:"m117.458 175.191-14.908-11.105v-15.705l14.908-11.105h21.084l14.908 11.105v15.705l-14.908 11.105z"}),h.createElement("path",{d:"M128 137.276h-10.542l-14.908 11.105v7.678H128zm0 37.915h10.542l14.908-11.105v-8.012H128z",fill:"#FF9811"}),h.createElement("path",{fill:"#FFF",d:"m117.458 374.725-14.908-11.106v-15.704l14.908-11.105h21.084l14.908 11.105v15.704l-14.908 11.106z"}),h.createElement("path",{d:"M128 336.81h-10.542l-14.908 11.105v7.678H128zm0 37.915h10.542l14.908-11.106v-8.011H128z",fill:"#FF9811"}),h.createElement("path",{d:"m117.458 274.957-14.908-11.105v-15.703l14.908-11.106h21.084l14.908 11.106v15.703l-14.908 11.105zm36.513 24.434h-6.493v-6.493h-11.411l-8.068-8.068-8.067 8.068h-11.41v6.493h-6.493v12.986h6.493v6.492h11.41l8.068 8.069 8.068-8.069h11.41v-6.492h6.493zm0-99.768h-6.493v-6.492h-11.411l-8.068-8.069-8.067 8.069h-11.41v6.492h-6.493v12.986h6.493v6.492h11.41l8.068 8.07 8.068-8.07h11.41v-6.492h6.493z",fill:"#496E2D"}),h.createElement("g",{fill:"#D80027"},h.createElement("path",{d:"M120.576 248.576h14.84v14.84h-14.84z"}),h.createElement("circle",{cx:128,cy:206.113,r:7.421}),h.createElement("circle",{cx:128,cy:305.887,r:7.421})))},KFe=function(e){var n=e.title,r=Z(e,cke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),h.createElement("circle",{fill:"#FFF",cx:256,cy:255.994,r:96}),h.createElement("g",{fill:"#D80027"},h.createElement("path",{d:"m267.826 219.291 16.47 22.695 26.673-8.649-16.496 22.676 16.468 22.695-26.664-8.681-16.495 22.676.017-28.04-26.664-8.682 26.674-8.648z"}),h.createElement("path",{d:"M277.818 312.724c-31.33 0-56.727-25.397-56.727-56.727s25.397-56.727 56.727-56.727c9.769 0 18.96 2.47 26.985 6.819-12.589-12.31-29.804-19.909-48.803-19.909-38.558 0-69.818 31.259-69.818 69.818s31.26 69.818 69.818 69.818c18.999 0 36.215-7.599 48.803-19.909-8.026 4.347-17.216 6.817-26.985 6.817z"})))},YFe=function(e){var n=e.title,r=Z(e,uke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),h.createElement("path",{fill:"#FFF",d:"M0 85.331h256v170.663H0z"}),h.createElement("path",{fill:"#D80027",d:"M141.357 157.303V130.59h-26.714v26.713H87.93v26.713h26.713v26.713h26.714v-26.713h26.713v-26.713z"}))},QFe=function(e){var n=e.title,r=Z(e,dke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#E30A17",d:"M0 0h513v342H0z"}),h.createElement("path",{fill:"#FFF",d:"M259.7 118.6c-13.1-9.5-29-14.6-45.3-14.5-40.8 0-73.8 30.8-73.8 68.9s33.1 68.9 73.8 68.9c17.1 0 32.9-5.4 45.3-14.5-30 38.6-85.7 45.6-124.3 15.5s-45.6-85.7-15.5-124.3 85.7-45.6 124.3-15.5c
34675.8 4.5 11 9.8 15.5 15.5zm39.9 65.8-18.1 21.9 1.2-28.4-26.4-10.4 27.3-7.6 1.8-28.3 15.6 23.7 27.5-7.1-17.5 22 15.3 23.9-26.7-9.7z"}))},XFe=function(e){var n=e.title,r=Z(e,fke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#FFF",d:"m6.066 85.337 207.961 212.636 131.584 128.69h160.323L297.973 214.027 166.389 85.337z"}),h.createElement("path",{d:"M43.364 85.337 384.69 426.663h83.946L127.31 85.337z"}))},ZFe=function(e){var n=e.title,r=Z(e,hke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 900 600"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h900v600H0z"}),h.createElement("path",{fill:"#00B2EE",d:"M0 300h450V0h450v600H0V300z"}),h.createElement("path",{fill:"#FFDA44",d:"m345.3 480.9 29.4 90.6-77.1-56H393l-77.1 56 29.4-90.6zM706.4 340l29.4 90.6-77.1-56H754l-77.1 56 29.5-90.6zm106.4-78.5 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zm0-224.1 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6z"}),h.createElement("path",{fill:"#FFF",d:"M449.9 0v206.3h-81l81 54V300h-39.7l-129-85.9V300H168.7v-85.9L39.7 300H0v-39.7l81-54H0V93.8h81L0 39.9V0h39.7l129 85.9V0h112.5v85.9L410.2 0z"}),h.createElement("path",{fill:"#D80027",d:"M253.1 0h-56.3v122H0v56.2h196.8V300h56.3V178.2h196.8V122H253.1z"}),h.createElement("path",{fill:"#2E52B2",d:"M449.9 39.9v53.9h-81z"}),h.createElement("path",{fill:"#D80027",d:"M0 300v-19.3l109.9-74.4h39.7L12.8 300zM12.8.1l136.8 93.7h-39.7L0 19.4V.1zm437.1.1v19.3L340 93.8h-39.7L437.1.2zM437.1 300l-136.8-93.7H340l109.9 74.4V300z"}),h.createElement("path",{fill:"#FFDA44",d:"m719.9 131.6 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zM584 187.7l29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zm30 242.9 29.4 90.6-77.1-56h95.3l-77.1 56 29.5-90.6zM488 332l29.4 90.6-77.1-56h95.3l-77.1 56L488 332zm0 132 29.4 90.6-77.1-56h95.3l-77.1 56L488 464z"}))},JFe=function(e){var n=e.title,r=Z(e,pke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 85.337h256V256H0z"}),h.createElement("path",{fill:"#FFF",d:"M186.435 170.669 162.558 181.9l12.714 23.125-25.927-4.961-3.286 26.192L128 206.993l-18.06 19.263-3.285-26.192-25.927 4.96 12.714-23.125-23.877-11.23 23.877-11.231-12.714-23.125 25.927 4.96 3.286-26.192L128 134.344l18.06-19.263 3.285 26.192 25.928-4.96-12.715 23.125z"}),h.createElement("circle",{fill:"#0052B4",cx:128,cy:170.674,r:29.006}),h.createElement("path",{fill:"#FFF",d:"M128 190.06c-10.692 0-19.391-8.7-19.391-19.391 0-10.692 8.7-19.391 19.391-19.391 10.692 0 19.391 8.7 19.391 19.391 0 10.691-8.699 19.391-19.391 19.391z"}))},eje=function(e){var n=e.title,r=Z(e,mke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#338AF3",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 426.663V85.337h512"}),h.createElement("path",{fill:"#FFDA44",d:"M512 152.222V85.337H411.67L0 359.778v66.885h100.33z"}),h.createElement("path",{d:"M512 85.337v40.125L60.193 426.663H0v-40.125L451.807 85.337z"}))},tje=function(e){var n=e.title,r=Z(e,gke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#338AF3",d:"M0 85.337h512V256H0z"}))},nje=function(e){var n=e.title,r=Z(e,vke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#232323",d:"M0 0h512v341.3H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M0 56.9h512v56.9H0z"}),h.createElement("path",{fill:"#D32300",d:"M0 113.8h512v56.9H0z"}),h.createElement("path",{fill:"#FFDA44",d:"M0 227.6h512v56.9H0z"}),h.createElement("path",{fill:"#D32300",d:"M0 284.4h512v56.9H0z"}
3467),h.createElement("circle",{fill:"#FFF",cx:256,cy:170.7,r:80.7}),h.createElement("path",{d:"M234.5 127.5c.9-1.4-19.6-2-19.6-2 1.7-2.5 18.4-10.5 18.4-10.5s-.9-6 2.7-9.8l-4.5-9.8s7-3.4 18.4-3.4 19.9 7 21 13.1l-6.4 3.4c-.1 4.7 1.7 11.6-4.3 17.3-5.9 5.7-8.3 6.9-8.5 18.8 0 3.9 2.3 8.2 8.8 11.7 17.4 9.3 38.6 28.2 44.6 33.9 6.1 5.7 5.1 19.2 2.6 25.2s-12.1 14.3-14.3 13.6c-2.2-.6 1.2-9.2-3.5-11.6 0 0-8.9-7.6-16.8.6s-.2 25.2 3.9 28c4.1 2.8 1.7 5-1.9 5H247c-3.8 0-5.4-2.3-1.9-5 7.6-3.8 12.4-15.3 7.4-20.3-4.9-4.9-18.3 1.5-21.5 6.3-2.8 2.8-8.8 3.6-12.9-1.4s-4.1-10.4-1.1-12.5c7-4.8 0 0 .1-.1 0 0 11.9-8.6 29.9-9 3.9 0 4.8-2.2 2.2-4.8 0 0-30.9-27.4-28.1-44.2 3-18.3 20-26.3 13.4-32.5-1.3-1.8 0 0 0 0z"}))},rje=function(e){var n=e.title,r=Z(e,yke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z",fill:"#D80027"}),h.createElement("path",{fill:"#2E52B2",d:"M0 0h256.5v184.1H0z"}),h.createElement("path",{d:"m47.8 138.9-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z",fill:"#FFF"}))},sje=function(e){var n=e.title,r=Z(e,xke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 0h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513v26.3H0zm0 52.7h513v26.3H0zm0 52.6h513v26.3H0zm0 52.6h513V342H0z",fill:"#D80027"}),h.createElement("path",{fill:"#2E52B2",d:"M0 0h256.5v184.1H0z"}),h.createElement("path",{d:"m47.8 138.9-4-12.8-4.4 12.8H26.2l10.7 7.7-4 12.8 10.9-7.9 10.6 7.9-4.1-12.8 10.9-7.7zm56.3 0-4.1-12.8-4.2 12.8H82.6l10.7 7.7-4 12.8 10.7-7.9 10.8 7.9-4-12.8 10.7-7.7zm56.5 0-4.3-12.8-4 12.8h-13.5l11 7.7-4.2 12.8 10.7-7.9 11 7.9-4.2-12.8 10.7-7.7zm56.2 0-4-12.8-4.2 12.8h-13.3l10.8 7.7-4 12.8 10.7-7.9 10.8 7.9-4.3-12.8 11-7.7zM100 75.3l-4.2 12.8H82.6L93.3 96l-4 12.6 10.7-7.8 10.8 7.8-4-12.6 10.7-7.9h-13.4zm-56.2 0-4.4 12.8H26.2L36.9 96l-4 12.6 10.9-7.8 10.6 7.8L50.3 96l10.9-7.9H47.8zm112.5 0-4 12.8h-13.5l11 7.9-4.2 12.6 10.7-7.8 11 7.8-4.2-12.6 10.7-7.9h-13.2zm56.5 0-4.2 12.8h-13.3l10.8 7.9-4 12.6 10.7-7.8 10.8 7.8-4.3-12.6 11-7.9h-13.5zm-169-50.6-4.4 12.6H26.2l10.7 7.9-4 12.7L43.8 50l10.6 7.9-4.1-12.7 10.9-7.9H47.8zm56.2 0-4.2 12.6H82.6l10.7 7.9-4 12.7L100 50l10.8 7.9-4-12.7 10.7-7.9h-13.4zm56.3 0-4 12.6h-13.5l11 7.9-4.2 12.7 10.7-7.9 11 7.9-4.2-12.7 10.7-7.9h-13.2zm56.5 0-4.2 12.6h-13.3l10.8 7.9-4 12.7 10.7-7.9 10.8 7.9-4.3-12.7 11-7.9h-13.5z",fill:"#FFF"}))},ije=function(e){var n=e.title,r=Z(e,wke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 513 342"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h513v342H0z"}),h.createElement("path",{d:"M0 38h513v38H0zm0 76h513v38H0zm0 76h513v38H0zm0 76h513v38H0z",fill:"#0038a8"}),h.createElement("path",{fill:"#FFF",d:"M0 0h256.5v190H0z"}),h.createElement("path",{fill:"#FED443",d:"m128.3 138.7-15.1 22.6-3.8-26.9L86 148.2l8.2-25.9-27.2 2.2 18.6-19.8L60.3 95l25.4-9.7L67 65.5l27.1 2.3-8.2-25.9 23.4 13.8 3.9-26.9 15.1 22.6 15.1-22.6 3.8 26.9 23.4-13.8-8.2 25.9 27.1-2.2-18.6 19.8 25.4 9.7-25.4 9.7 18.6 19.8-27.1-2.2 8.2 25.9-23.4-13.8-3.9 26.9-15-22.7zm0-.5c23.9.9 44-17.6 44.9-41.5.9-23.9-17.6-44-41.5-44.9h-3.4c-23.9.8-42.6 20.8-41.8 44.6.6 22.8 19 41.1 41.8 41.8zm0-10.6c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.3 34-34 34z"}))},oje=function(e){var n=e.title,r=Z(e,_ke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#6DA544",d:"M0 322.783h512v103.88H0z"}),h.createElement("path",{fill:"#338AF3",d:"M0 85.337h512v104.515H0z"}),h.createElement("path",{fill:"#FFF",d:"M0 210.877h512v89.656H0z"}),h.createElement("path",{fill:"#338AF3",d:"M0 85.337h512v104.515H0z"}),h.createElement("path",{d:"M188.688 137.589c0-15.984 11.234-29.339 26.236-32.614a33.531 33.531 0 0 0-7.155-.777c-18.442 0-33.391 14.949-33.39
34671 33.391s14.949 33.391 33.391 33.391c2.458 0 4.85-.273 7.155-.777-15.002-3.275-26.236-16.63-26.236-32.614zm45.97 15.177 2.261 6.957h7.315l-5.918 4.301 2.261 6.956-5.919-4.3-5.918 4.3 2.261-6.956-5.918-4.301h7.315zm23.348 0 2.26 6.957h7.315l-5.918 4.301 2.261 6.956-5.918-4.3-5.918 4.3 2.26-6.956-5.917-4.301h7.314zm23.347 0 2.26 6.957h7.315l-5.917 4.301 2.26 6.956-5.918-4.3-5.918 4.3 2.26-6.956-5.918-4.301h7.315zm23.347 0 2.262 6.957h7.315l-5.919 4.301 2.261 6.956-5.919-4.3-5.918 4.3 2.262-6.956-5.919-4.301h7.314zm23.348 0 2.26 6.957h7.315l-5.918 4.301 2.261 6.956-5.918-4.3-5.918 4.3 2.26-6.956-5.917-4.301h7.314zm-70.042-24.284 2.26 6.956h7.315l-5.918 4.3 2.261 6.957-5.918-4.299-5.918 4.299 2.26-6.957-5.917-4.3h7.314zm23.347 0 2.26 6.956h7.315l-5.917 4.3 2.26 6.957-5.918-4.299-5.918 4.299 2.26-6.957-5.918-4.3h7.315zm23.347 0 2.262 6.956h7.315l-5.919 4.3 2.261 6.957-5.919-4.299-5.918 4.299 2.262-6.957-5.919-4.3h7.314zm23.348 0 2.26 6.956h7.315l-5.918 4.3 2.261 6.957-5.918-4.299-5.918 4.299 2.26-6.957-5.917-4.3h7.314zm-46.695-24.284 2.26 6.956h7.315l-5.917 4.3 2.26 6.957-5.918-4.3-5.918 4.3 2.26-6.957-5.918-4.3h7.315zm23.347 0 2.262 6.956h7.315l-5.919 4.3 2.261 6.957-5.919-4.3-5.918 4.3 2.262-6.957-5.919-4.3h7.314zm23.348 0 2.26 6.956h7.315l-5.918 4.3 2.261 6.957-5.918-4.3-5.918 4.3 2.26-6.957-5.917-4.3h7.314z",fill:"#FFF"}))},aje=function(e){var n=e.title,r=Z(e,Eke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.326H0z"}),h.createElement("path",{fill:"#FFF",d:"M256 85.331h256v341.337H256z"}),h.createElement("path",{fill:"#ACABB1",d:"m321.353 233.837 32.073 42.43c-5.053 7.651-5.026 17.961.817 25.692 7.414 9.807 21.374 11.748 31.182 4.335 9.807-7.414 11.748-21.374 4.334-31.182-5.843-7.731-15.756-10.568-24.495-7.795l-49.988-66.129-11.838 8.949-17.759 13.424 17.899 23.677 17.775-13.401zm46.175 48.78a7.421 7.421 0 1 1 8.95 11.84 7.421 7.421 0 0 1-8.95-11.84z"}),h.createElement("path",{fill:"#FFDA44",d:"m376.367 247.24 17.899-23.677-17.759-13.424-11.838-8.949-49.988 66.129c-8.74-2.775-18.651.063-24.495 7.795-7.414 9.808-5.473 23.768 4.334 31.182 9.808 7.414 23.768 5.473 31.182-4.335 5.845-7.731 5.871-18.041.817-25.692l32.073-42.43 17.775 13.401zm-62.504 45.771a7.42 7.42 0 1 1-11.84-8.95 7.42 7.42 0 0 1 11.84 8.95z"}))},lje=function(e){var n=e.title,r=Z(e,bke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFDA44",d:"M0 85.331h512v341.337H0z"}),h.createElement("path",{fill:"#338AF3",d:"M0 85.331h170.663v341.337H0z"}),h.createElement("path",{d:"M341.337 85.331H512v341.337H341.337zM214.261 283.82l-33.393-50.086 33.392-50.087 33.392 50.087zm83.478 0-33.391-50.086 33.391-50.087 33.393 50.087zM256 350.603l-33.391-50.087L256 250.429l33.391 50.087z",fill:"#6DA544"}))},cje=function(e){var n=e.title,r=Z(e,Ske);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22.5 15"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFCE00",d:"M0 0h22.5v5H0z"}),h.createElement("path",{fill:"#203899",d:"M0 5h22.5v5H0z"}),h.createElement("path",{fill:"#D82B2B",d:"M0 10h22.5v5H0z"}),h.createElement("path",{fill:"#FFF",d:"m12.13 5.38.14.46.45.14-.39.27.01.48-.38-.29-.45.15.15-.44-.28-.38h.47zm-1.77 0 .27.39h.47l-.28.38.15.45-.45-.16-.38.28.01-.47-.39-.28.45-.13zm3.44.56-.01.48.39.27-.46.14-.14.45-.27-.38h-.48l.29-.38-.15-.45.45.16zm-5.11.02.4.27.44-.18-.13.46.3.36-.47.02-.26.4-.16-.44-.46-.12.37-.3zm6.55 1.17-.2.44.25.4-.47-.05-.31.36-.1-.46-.43-.18.41-.24.03-.47.35.31zm.19 1.12.21.43.47.07-.34.33.08.46-.42-.22-.42.22.08-.46-.34-.33.47-.07zM7 8.2l.21.43.47.06-.34.33.08.47L7 9.27l-.42.22.08-.47-.34-.33.47-.06zm.31-1.15.45.14.38-.29v.48l.39.26-.45.15-.13.46-.28-.38-.47.01.27-.38z"}))},uje=function(e){var n=e.title,r=Z(e,Cke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 85.334h512v341.337H0z"}),h.createElement("path",{fill:"#FFF",d:"M256 85.334V202.66h-46.069L256 233.38v22.617h-22.628L160 207.078v48.919H96v-48.919l-73.372 48.919H0V233.38l46.069-30.72H0v-64h46.069L0 107.951V85.334h22.628L96 134.241V85.334h64v48.907l73.372-48.907z"}),h.createElement("g",{fill:"#D80027"}
3467,h.createElement("path",{d:"M144 85.33h-32v69.333H0v32h112v69.334h32v-69.334h112v-32H144z"}),h.createElement("path",{d:"M0 85.329v15.083l57.377 38.251H80zm256 0v15.083l-57.377 38.251H176z"})),h.createElement("path",{fill:"#2E52B2",d:"M256 107.951v30.712h-46.069z"}),h.createElement("path",{d:"M0 85.329v15.083l57.377 38.251H80zm256 0v15.083l-57.377 38.251H176z",fill:"#D80027"}),h.createElement("path",{fill:"#2E52B2",d:"M256 107.951v30.712h-46.069z"}),h.createElement("path",{d:"M0 255.997v-15.082l57.377-38.252H80zm256 0v-15.082l-57.377-38.252H176z",fill:"#D80027"}),h.createElement("path",{fill:"#FFDA44",d:"m384 259.706-46.129 46.129c8.645 16.675 26.051 28.074 46.129 28.074s37.484-11.4 46.129-28.074L384 259.706z"}),h.createElement("path",{fill:"#6DA544",d:"M332.058 178.084v81.624c.001 39.759 51.942 51.941 51.942 51.941s51.941-12.182 51.942-51.942v-81.623H332.058z"}),h.createElement("path",{fill:"#FFF",d:"M372.87 215.181h22.261v59.359H372.87z"}),h.createElement("circle",{fill:"#A2001D",cx:384,cy:215.181,r:11.13}),h.createElement("path",{d:"M346.902 192.92h14.84v14.84h-14.84zm0 33.392h14.84v14.84h-14.84zm0 33.391h14.84v14.84h-14.84zm59.359-66.783h14.84v14.84h-14.84zm0 33.392h14.84v14.84h-14.84zm0 33.391h14.84v14.84h-14.84z",fill:"#FFDA44"}))},dje=function(e){var n=e.title,r=Z(e,Tke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.3"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h512v341.3H0z"}),h.createElement("path",{fill:"#1583C4",d:"m397.7 166.3-51 97.7c-1.1 2-.3 4.5 1.8 5.6 2 1.1 4.5.3 5.6-1.8l51-97.7c1-2.1.1-4.6-2-5.5-2-.9-4.3-.2-5.4 1.7z"}),h.createElement("path",{fill:"#1583C4",d:"m404.9 188-57.8 75.4c-1.3 1.9-.8 4.5 1.1 5.8 1.7 1.2 4.1.9 5.5-.7l57.8-75.4c1.4-1.8 1.1-4.4-.8-5.8-1.8-1.5-4.4-1.1-5.8.7z"}),h.createElement("path",{fill:"#1583C4",d:"m379 181.3-32.5 83.1c-.8 2.1.2 4.6 2.4 5.4 2.1.8 4.6-.2 5.4-2.4l32.5-83.1c.7-2.2-.4-4.5-2.6-5.3-2.1-.6-4.3.4-5.2 2.3z"}),h.createElement("path",{fill:"#409347",d:"M122.1 171.9c.4 1.7 1.2 4.7 2.2 8.5 1.7 6.4 3.6 12.8 5.6 18.7 2.3 6.9 14.7 31.4 20.2 39.1 6.9 9.7 14.1 19.3 21.5 28.6 1.6 1.9 4.5 2.1 6.4.5 1.8-1.6 2.1-4.3.7-6.2-7.3-9.2-14.4-18.6-21.2-28.2-4.2-5.8-17.2-31.1-19-36.7-2.9-8.7-5.4-17.6-7.6-26.5-.5-2.4-2.9-4-5.3-3.5s-4 2.9-3.5 5.3c-.1.2 0 .3 0 .4z"}),h.createElement("g",{fill:"#FFD836",stroke:"#231F20",strokeMiterlimit:10},h.createElement("path",{d:"M297.1 114.9S279.5 42.8 261 42.8c-6.9 0-11.9-.6-15.4 6.4-.9 1.7-20.7-1.6-19.1 20.8.5 6.9 1.1-9.8 14.9-3.4 6.3 3-16.4 48.2-16.4 48.2h72.1z"}),h.createElement("path",{d:"m466.1 48.4-90.9 22c-75.3 18.3-42.1 44.4-42.1 44.4l-72.1 12-72.1-12s33.2-26.1-42.1-44.4l-90.9-22C43.1 45.3 38.1 51.8 45.3 63c0 0 106.6 104 126.8 112 20.2 8.1 40.8 0 40.8 0s-14.9 8.7-24 24c-9.2 15.3-4.6 34.7-38.9 40.2-5.5 6.6-5 14 2.9 19.9 7.9 5.8 72.1-48.1 72.1-48.1s-24 24.4-24 36.1c0 5.1 44.1 53.8 60.1 53.8s60.1-48.7 60.1-53.8c0-11.7-24-36.1-24-36.1s64.2 53.9 72.1 48.1 11.4-19.3 2.8-19.9c-28-1.8-29.7-24.9-38.9-40.2-9.2-15.3-24-24-24-24s20.6 8.1 40.8 0S476.7 63 476.7 63c7.2-11.2 2.3-17.7-10.6-14.6z"})),h.createElement("path",{fill:"#FFF",stroke:"#231F20",strokeMiterlimit:10,d:"M201.3 111.8v80.3c0 45.7 59.7 59.7 59.7 59.7s59.7-14 59.7-59.7v-80.3H201.3z"}),h.createElement("path",{d:"M225.2 137.7V235c8.2 6 17 10.2 23.9 12.9V137.7h-23.9zm71.6 0V235c-8.2 6-17 10.2-23.9 12.9V137.7h23.9z",fill:"#D80027"}),h.createElement("path",{fill:"#0052B4",d:"M201.3 111.8h119.4v37.9H201.3z"}),h.createElement("path",{fill:"#1583C4",d:"m60.1 210.5-21.9-58.1H15.7l31.8 80.8h25.2l31.5-80.8H81.7zm391.4-58.6h18.9v81.7h-18.9z"}))},fje=function(e){var n=e.title,r=Z(e,Ake);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M196.641 85.337H0v341.326h512V85.337z"}),h.createElement("path",{fill:"#FFDA44",d:"m256 157.279 22.663 69.747H352l-59.332 43.106 22.664 69.749L256 296.774l-59.332 43.107 22.664-69.749L160 227.026h73.337z"}))},hje=function(e){var n=e.title,r=Z(e,Ike);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#6DA544",d:"M512 256v170.663H0L215.185 256z"}),h.createElement("path",{fill:"#D80027",d:"M512 85.337V256H215.185L0 85.337z"}),h.createElement("path",{d:"M221.001 239.304 26.868 85.337H8.956l208.168 165.098H512v-11.131zM8.956 426.663h17.912l194.133-153.967H512v-11.131H217.124zM0 92.44v14.206L188.317 256 0 405.354v14.205L206.229 256z"}),h.createElement("g",{fill:"#FFDA44"},h.createElement("path",{d:"M8.956 85.337H0v7.103L206.229 256 0 419.559v7.104h8.956l208.168-165.098H512v-11.13H217.124z"}),h.createElement("path",{d:"M63.718 292.382v-14.295c14.265 0 25.87-11.606 25.87-25.869 0-10.092-8.211-18.303-18.304-18.303-6.875 0-12.469 5.593-12.469 12.469 0 4.397 3.577 7.974 7.974 7.974a4.514 4.514 0 0 0 4.508-4.508h14.295c0 10.368-8.435 18.804-18.802 18.804-12.279-.002-22.269-9.993-22.269-22.271 0-14.758 12.006-26.764 26.764-26.764 17.975 0 32.599 14.623 32.599 32.599 0 22.145-18.018 40.164-40.166 40.164z"})))},pje=function(e){var n=e.title,r=Z(e,Pke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 150 100"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80B30",d:"M0 0h150v100H0z"}),h.createElement("path",{fill:"#00318A",d:"M0 0h20v44.33H0z"}),h.createElement("path",{fill:"#FFF",d:"M20 0h20v44.33H20z"}),h.createElement("path",{fill:"none",stroke:"#FFF",strokeWidth:3,d:"M0 44.33h62.75V0"}),h.createElement("path",{fill:"#FFF",d:"M108.08 43.29 87.96 23.17h40.25l-20.13 20.12zm-6.7 6.71L81.25 29.88v40.25L101.38 50zm6.7 6.71L87.96 76.83h40.25l-20.13-20.12zm6.71-6.71 20.13-20.13v40.25L114.79 50z"}))},mje=function(e){var n=e.title,r=Z(e,Rke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#D80027",d:"M0 85.331h512v341.337H0z"}),h.createElement("path",{fill:"#0052B4",d:"M0 85.331h256v170.663H0z"}),h.createElement("path",{d:"m165.483 181.79 2.764 8.504h8.939l-7.232 5.254 2.763 8.503-7.234-5.255-7.233 5.255 2.763-8.503-7.233-5.254h8.94zm-44.904-66.783 4.606 14.173h14.9l-12.055 8.757 4.605 14.171-12.056-8.758-12.054 8.758 4.605-14.171-12.056-8.757h14.901zm44.522 14.841 4.606 14.172h14.9l-12.055 8.757 4.604 14.173-12.055-8.76-12.054 8.76 4.604-14.173-12.055-8.757h14.9zm-35.192 59.363 4.606 14.172h14.9l-12.055 8.758 4.604 14.171-12.055-8.759-12.054 8.759 4.604-14.171-12.055-8.758h14.9zm-39.01-37.103 4.605 14.173h14.9l-12.055 8.757 4.604 14.173-12.054-8.76-12.055 8.76 4.604-14.173-12.055-8.757h14.9z",fill:"#FFF"}))}
3467,gje=function(e){var n=e.title,r=Z(e,Nke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 341.33"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#0052B4",d:"M0 0h512v341.34H0z"}),h.createElement("path",{d:"m220.72 42.63 7.95 16.11 17.77 2.58-12.86 12.54 3.04 17.7-15.9-8.36-15.9 8.36 3.03-17.7-12.86-12.54 17.78-2.58zm70.56-.06 7.95 16.1 17.78 2.59-12.86 12.53 3.03 17.71-15.9-8.36-15.9 8.36 3.04-17.71-12.86-12.53 17.77-2.59zm62.08 11.36 7.95 16.11 17.77 2.58-12.86 12.54 3.04 17.7-15.9-8.35-15.9 8.35 3.04-17.7-12.87-12.54 17.78-2.58zm63.01 18.3 7.95 16.11 17.77 2.59-12.86 12.53 3.04 17.71-15.9-8.36-15.9 8.36 3.03-17.71-12.86-12.53 17.78-2.59zm-257.73-18.3 7.95 16.11 17.78 2.58-12.87 12.54 3.04 17.7-15.9-8.35-15.9 8.35 3.04-17.7-12.86-12.54 17.77-2.58zm-63.01 18.3 7.95 16.11 17.78 2.59-12.86 12.53 3.03 17.71-15.9-8.36-15.9 8.36 3.04-17.71-12.86-12.53 17.77-2.59z",fill:"#FFF"}),h.createElement("path",{fill:"#FFDA44",d:"m217.53 259.33-27.22-13.61-27.22-54.43h27.22l27.22-27.22 13.61-27.22 27.22-13.61 13.61 13.61 27.22 13.61v13.61l13.61 13.61 40.83 27.22L340 245.73l-40.83 40.83-13.61-27.22-40.83 27.22v27.22l-13.61-13.61-13.59-40.84z"}))},vje=function(e){var n=e.title,r=Z(e,Mke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{fill:"#D80027",d:"M0 85.337h512v113.775H0z"}),h.createElement("path",{d:"M0 312.888h512v113.775H0z"}))},yje=function(e){var n=e.title,r=Z(e,kke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 90 60"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 0h90v60H0z"}),h.createElement("path",{stroke:"#7f7f7f",strokeWidth:.25,fill:"#ABABAB",d:"M75.6 39.6c-1.1.7 0 1.8-.6 1.9-.6.1-1.5-1.4-.2-2.5 1.6-1.5 5.8 0 5.9 4.3 0 2.2-.9 6.8-7.2 6.8-7.6 0-11.4-5.7-11.4-11.4 0-4.8 3.7-13.5 6.5-14.6 3.1-1.2 6.7-3.5 6.8-5 0-.5-1.4-.1-3.3.9-3.1 1.7-6.6 2.5-6.6 1.4s2.9-3.1 4-4.6c1.2-1.6.9-5.5 3-5.5 7.6 0 9.9 7.7 7 11.7-1.9 2.6 4.3 1 4.3 1s0 5.3-3.2 7.3c-3 1.8-4.8 3.9-4.8 3.9s.2-4.6-.5-3.9c-.6.7-11.1 4.5-10.3 12 .3 3 4.5 5.4 8.5 5.2s5.7-2.4 5.8-4.9c.1-3.9-3-4.4-3.7-4zm-64.9 4c.1 2.5 1.8 4.7 5.8 4.9s8.2-2.2 8.5-5.2c.8-7.5-9.7-11.3-10.3-12-.7-.7-.5 3.9-.5 3.9s-1.8-2.1-4.8-3.9c-3.2-2-3.2-7.3-3.2-7.3s6.2 1.6 4.3-1c-2.9-4-.6-11.7 7-11.7 2.1 0 1.8 3.9 3 5.5 1.1 1.5 4 3.5 4 4.6s-3.5.3-6.6-1.4c-1.9-1-3.3-1.4-3.3-.9.1 1.5 3.7 3.8 6.8 5 2.8 1.1 6.5 9.8 6.5 14.6 0 5.7-3.8 11.4-11.4 11.4-6.3 0-7.2-4.6-7.2-6.8.1-4.3 4.3-5.8 5.9-4.3 1.2 1.1.4 2.7-.2 2.5-.6-.1.6-1.2-.6-1.9-.6-.4-3.7.1-3.7 4z"}),h.createElement("path",{fill:"#DE393A",d:"M31 28.8v14c0 1.9 2.1 1.6 2.1 1.6h9.3c1.2 0 2.6 2.3 2.6 2.3s1.4-2.3 2.5-2.3h9.6s2 .2 2-1.8V28.7H31z"}),h.createElement("path",{fill:"#3951A3",d:"M31 13.1h28v15.7H31z"}),h.createElement("path",{fill:"#FFF",d:"M50.1 16.5c-.4 2.4-2.5 4.2-5.1 4.2-2.5 0-4.6-1.8-5.1-4.2-.5.9-.8 1.9-.8 3 0 3.3 2.6 5.9 5.9 5.9 3.3 0 5.9-2.6 5.9-5.9 0-1.1-.3-2.1-.8-3z"}),h.createElement("circle",{fill:"#FEE05F",cx:39.1,cy:36.5,r:3}),h.createElement("circle",{fill:"#FEE05F",cx:50.9,cy:36.5,r:3}))},xje=function(e){var n=e.title,r=Z(e,Dke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#FFF",d:"M0 85.337h512v341.326H0z"}),h.createElement("path",{d:"M114.024 256.001 0 141.926v228.17z"}),h.createElement("path",{fill:"#ffb915",d:"M161.192 256 0 94.7v47.226l114.024 114.075L0 370.096v47.138z"}),h.createElement("path",{fill:"#007847",d:"M509.833 289.391c.058-.44.804-.878 2.167-1.318v-65.464H222.602L85.33 85.337H0V94.7L161.192 256 0 417.234v9.429h85.33l137.272-137.272h287.231z"}),h.createElement("path",{fill:"#000c8a",d:"M503.181 322.783H236.433l-103.881 103.88H512v-103.88z"}),h.createElement("path",{fill:"#e1392d",d:"M503.181 189.217H512V85.337H132.552l103.881 103.88z"}))},wje=function(e){var n=e.title,r=Z(e,Oke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{fill:"#496E2D",d:"M0 85.331h512v341.337H0z"}),h.createElement("path",{fill:"#FF9811",d:"M490.668 195.476h-48c0-8.836-7.164-16-16-16s-16 7.164-16 16h-48c0 8.836 7.697 16 16.533 16h-.533c0 8.836 7.162 16 16 16 0 8.836 7.162 16 16 16h32c8.836 0 16-7.164 16-16 8.836 0 16-7.164 16-16h-.533c8.837 0 16.533-7.164 16.533-16z"}),h.createElement("path",{fill:"#D80027",d:"M341.337 255.994h56.888v170.663h-56.888z"}),h.createElement("path",{fill:"#FF9811",d:"M455.112 255.994H512v170.663h-56.888z"}),h.createElement("path",{d:"M398.225 255.994h56.888v170.663h-56.888z"}))},_je=function(e){var n=e.title,r=Z(e,$ke);return h.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 85.333 512 341.333"},r),n&&h.createElement("title",null,n),h.createElement("path",{d:"M0 85.333h512V426.67H0z"}),h.createElement("path",{d:"M0 134.196h512v48.868H0zm0 195.472h512v48.868H0z",fill:"#FFDA44"}),h.createElement("path",{fill:"#057f44",d:"M0 85.333h512v48.868H0z"}),h.createElement("path",{d:"M0 183.069h512v48.868H0zm0 97.737h512v48.868H0z",fill:"#D80027"}),h.createElement("path",{fill:"#057f44",d:"M0 378.542h512v48.128H0z"}),h.createElement("path",{fill:"#FFF",d:"M276.992 255.996 106.329 426.659H0V85.333h106.329z"}),h.createElement("path",{d:"M256 255.996 85.334 426.662h20.987l170.66
34677-170.666L106.321 85.33H85.334z"}),h.createElement("path",{fill:"#D80027",d:"m102.465 202.57 13.259 40.812h42.917l-34.718 25.226 13.26 40.814-34.718-25.224-34.72 25.224 13.262-40.814-34.718-25.226h42.915z"}),h.createElement("path",{fill:"#FFDA44",d:"m138.94 259.335-34.559-12.243s-2.553-23.955-2.708-24.766c-1.173-6.18-6.603-10.851-13.123-10.851-7.376 0-13.357 5.98-13.357 13.357 0 1.223.178 2.402.486 3.528l-9.689 9.755h17.229c0 17.882-13.344 17.882-13.344 35.691l7.402 17.809h44.522l7.422-17.809h-.004a17.782 17.782 0 0 0 1.381-5.231c6.397-2.589 8.342-9.24 8.342-9.24z"}))};const Eje={AC:jke,AD:Lke,AE:zke,AF:Vke,AG:Bke,AI:Hke,AL:Uke,AM:Wke,AO:qke,AQ:Gke,AR:Kke,AS:Yke,AT:Qke,AU:Xke,AW:Zke,AX:Jke,AZ:eDe,BA:tDe,BB:nDe,BD:rDe,BE:sDe,BF:iDe,BG:oDe,BH:aDe,BI:lDe,BJ:cDe,BL:uDe,BM:dDe,BN:fDe,BO:hDe,BQ:pDe,BR:mDe,BS:gDe,BT:vDe,BV:yDe,BW:xDe,BY:wDe,BZ:_De,CA:EDe,CC:bDe,CD:SDe,CF:CDe,CG:TDe,CH:ADe,CI:IDe,CK:PDe,CL:RDe,CM:NDe,CN:MDe,CO:kDe,CR:DDe,CU:ODe,CV:$De,CW:FDe,CX:jDe,CY:LDe,CZ:zDe,DE:VDe,DJ:BDe,DK:HDe,DM:UDe,DO:WDe,DZ:qDe,EC:GDe,EE:KDe,EG:YDe,EH:QDe,ER:XDe,ES:ZDe,ET:JDe,EU:eOe,FI:tOe,FJ:nOe,FK:rOe,FM:sOe,FO:iOe,FR:oOe,GA:aOe,GB:lOe,GD:cOe,GE:uOe,GF:dOe,GG:fOe,GH:hOe,GI:pOe,GL:mOe,GM:gOe,GN:vOe,GP:yOe,GQ:xOe,GR:wOe,GS:_Oe,GT:EOe,GU:bOe,GW:SOe,GY:COe,HK:TOe,HM:AOe,HN:IOe,HR:POe,HT:ROe,HU:NOe,IC:MOe,ID:kOe,IE:DOe,IL:OOe,IM:$Oe,IN:FOe,IO:jOe,IQ:LOe,IR:zOe,IS:VOe,IT:BOe,JE:HOe,JM:UOe,JO:WOe,JP:qOe,KE:GOe,KG:KOe,KH:YOe,KI:QOe,KM:XOe,KN:ZOe,KP:JOe,KR:e$e,KW:t$e,KY:n$e,KZ:r$e,LA:s$e,LB:i$e,LC:o$e,LI:a$e,LK:l$e,LR:c$e,LS:u$e,LT:d$e,LU:f$e,LV:h$e,LY:p$e,MA:m$e,MC:g$e,MD:v$e,ME:y$e,MF:x$e,MG:w$e,MH:_$e,MK:E$e,ML:b$e,MM:S$e,MN:C$e,MO:T$e,MP:A$e,MQ:I$e,MR:P$e,MS:R$e,MT:N$e,MU:M$e,MV:k$e,MW:D$e,MX:O$e,MY:$$e,MZ:F$e,NA:j$e,NC:L$e,NE:z$e,NF:V$e,NG:B$e,NI:H$e,NL:U$e,NO:W$e,NP:q$e,NR:G$e,NU:K$e,NZ:Y$e,OM:Q$e,PA:X$e,PE:Z$e,PF:J$e,PG:eFe,PH:tFe,PK:nFe,PL:rFe,PM:sFe,PN:iFe,PR:oFe,PS:aFe,PT:lFe,PW:cFe,PY:uFe,QA:dFe,RE:fFe,RO:hFe,RS:pFe,RU:mFe,RW:gFe,SA:vFe,SB:yFe,SC:xFe,SD:wFe,SE:_Fe,SG:EFe,SH:bFe,SI:SFe,SJ:CFe,SK:TFe,SL:AFe,SM:IFe,SN:PFe,SO:RFe,SR:NFe,SS:MFe,ST:kFe,SV:DFe,SX:OFe,SY:$Fe,SZ:FFe,TA:jFe,TC:LFe,TD:zFe,TF:VFe,TG:BFe,TH:HFe,TJ:UFe,TK:WFe,TL:qFe,TM:GFe,TN:KFe,TO:YFe,TR:QFe,TT:XFe,TV:ZFe,TW:JFe,TZ:eje,UA:tje,UG:nje,UM:rje,US:sje,UY:ije,UZ:oje,VA:aje,VC:lje,VE:cje,VG:uje,VI:dje,VN:fje,VU:hje,WF:pje,WS:mje,XK:gje,YE:vje,YT:yje,ZA:xje,ZM:wje,ZW:_je},_C=_.forwardRef(({className:t,...e},n)=>u.jsx(ZIe,{ref:n,placeholder:"Enter a phone number",className:ve("flex",t),flagComponent:oK,countrySelectComponent:Sje,inputComponent:bje,...e}));_C.displayName="PhoneInput";const bje=_.forwardRef(({className:t,...e},n)=>u.jsx(Qr,{className:ve("rounded-s-none rounded-e-lg",t),...e,ref:n})),Sje=({disabled:t,value:e})=>u.jsx(iS,{children:u.jsx(tt,{type:"button",variant:"outline",className:ve("rounded-e-none rounded-s-lg pl-3 pr-3 flex gap-1"),disabled:t,children:u.jsx("span",{className:"flex items-center truncate",children:u.jsx("div",{className:"bg-foreground
3467/20 rounded-sm flex w-6 h-4",children:e&&u.jsx(oK,{country:e,countryName:e})})})})}),oK=({country:t,countryName:e})=>{const n=Eje[t];return u.jsx("span",{className:"inline object-contain w-6 h-4 overflow-hidden rounded-sm",children:n&&u.jsx(n,{title:e})})},b3=t=>{const e=t.replace(".com",""),n=e.split(""),r=new Set;r.add(`@${e}.con`),r.add(`@${e}.co`),r.add(`@${e}.vom`),r.add(`@${e}c.om`);for(let s=0;s<n.length-1;s++){const i=[...n];[i[s],i[s+1]]=[i[s+1],i[s]],r.add(`@${i.join("")}.com`)}for(let s=0;s<n.length;s++){const i=[...n];i.splice(s,1),r.add(`@${i.join("")}.com`)}for(let s=0;s<n.length;s++){const i=[...n];i.splice(s,0,n[s]),r.add(`@${i.join("")}.com`)}return r.has(`@${t}`)&&r.delete(`@${t}`),Array.from(r)},Cje={gmail:b3("gmail.com"),hotmail:b3("hotmail.com"),outlook:b3("outlook.com"),yahoo:b3("yahoo.com")},Tje=wn({display_name:st({required_error:"⚠️ Necesitamos saber como referirnos a ti."}).min(2).max(100),phone_number:st({required_error:"⚠️ Necesitamos tu número de teléfono para comunicarnos contigo en caso de ser necesario."}).regex(/^\+(\s*\d){11}$/,"El número de telefono no es válido").min(1,"El número de teléfono es requerido"),email:st({required_error:"⚠️ El email es necesario para crear tu cuenta."}).email("No parece ser un email válido.").regex(/^[^@]+@[^@]+\.(com|net|org|edu|cl)$/,{message:"Solo se permiten correos con dominios .com, .cl, .net, .org, o .edu"}).superRefine((t,e)=>{const n=t.toLowerCase();for(const[r,s]of Object.entries(Cje))if(s.some(i=>n.endsWith(i)))return e.addIssue({code:Se.custom,message:`¿Quisiste escribir @${r}.com?`}),!1;return!0}),password:st({required_error:"⚠️ La contraseña te permite entrar a tu cuenta."}).min(6,"La contraseña debe tener mínimo 6 caracteres."),confirm_password:st({required_error:"⚠️ Te pedimos confirmar tu contraseña para disminuir errores."}).min(6,"La contraseña debe tener mínimo 6 caracteres.")}).refine(t=>t.password===t.confirm_password,{path:["confirm_password"],message:"Las contraseñas deben coincidir"}),Aje=()=>{const{registryData:t,setRegistryData:e}=$u(),n=D_e(),r=O_e(),s=Jr();if(t===null)return s({to:"/register/subscriptions"}),null;(n.isSuccess||r.isSuccess)&&s({to:"/register/confirmation"});const i=xi({resolver:_i(Tje),defaultValues:t}),o=p=>{const{email:m,password:v}=p;n.mutate({email:m,password:v,registryData:{...t,display_name:p.display_name,phone_number:p.phone_number,email:m}})},a=()=>{const p=i.getValues();if(i.clearErrors(["display_name","phone_number"]),!p.display_name||p.display_name.length<2){i.setError("display_name",{message:"Ingresa tu nombre antes de continuar con Google."});return}if(!/^\+(\s*\d){11}$/.test(p.phone_number||"")){i.setError("phone_number",{message:"Ingresa un teléfono válido antes de continuar con Google."});return}r.mutate({registryData:{...t,display_name:p.display_name,phone_number:p.phone_number,email:p.email}})},c=p=>p.includes("auth/email-already-in-use")?u.jsxs("p",{children:["Este correo ya está registrado."," ",u.jsx(or,{to:"/login",className:"underline",children:"¿Deseas iniciar sesión?"})]}):p.includes("auth/google-account-already-registered")?u.jsxs("p",{children:["Esta cuenta de Google ya está registrada."," ",u.jsx(or,{to:"/login",className:"underline",children:"¿Deseas iniciar sesión?"})]}):p.includes("auth/account-exists-with-different-credential")?"Este correo ya existe con otro método de acceso. Inicia sesión con correo y contraseña para mantener tu cuenta actual.":p.includes("auth/google-email-required")?"No pudimos obtener el correo de Google. Intenta con otra cuenta.":p.includes("auth/popup-closed-by-user")||p.includes("auth/cancelled-popup-request")?"El acceso con Google fue cancelado.":p.includes("auth/popup-blocked")?"El navegador bloqueó la ventana de Google. Permite popups para Maifud e intenta nuevamente.":p.includes("auth/operation-not-allowed")?"El acceso con Google todavía no está habilitado en Firebase.":p,d=n.isPending||r.isPending;return u.jsxs(wi,{...i,children:[u.jsxs("form",{onSubmit:i.handleSubmit(o),className:"space-y-4",children:[u.jsx(cn,{control:i.control,name:"display_name",render:({field:p})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Nombre"}),u.jsx(En,{children:u.jsx(Qr,{placeholder:"Ingresa tu nombre",autoComplete:"name",onChange:m=>{p.onChange(m),e(v=>({...v,display_name:m.target.value}))},value:p.value})}),u.jsx(Ot,{})]})}),u.jsx(cn,{control:i.control,name:"phone_number",render:({field:p})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Teléfono"}),u.jsx(En,{children:u.jsx(_C,{id:"phone_number",type:"tel",placeholder:"Ingresa tu número de teléfono",autoComplete:"tel",value:p.value,defaultCountry:"CL",className:"font-sans",countries:["CL"],onChange:m=>{p.onChange(m),e(v=>({...v,phone_number:m}))}})}),u.jsx(Ot,{})]})}),u.jsxs("div",{className:"space-y-4 rounded-md border border-primary/30 bg-primary/5 p-4",children:[u.jsxs("div",{className:"space-y-1 text-center",children:[u.jsx("p",{className:"text-sm font-semibold text-primary",children:"Recomendado"}),u.jsx("p",{className:"text-base font-semibold",children:"Crea tu cuenta con tu correo de Google"})]}),u.jsxs(tt,{type:"button",className:"w-full bg-primary text-white hover:bg-primary/90",disabled:d,isLoading:r.isPending,onClick:a,children:[u.jsx("span",{className:"font-semibold",children:"G"}),"Crear cuenta con Google"]})]}),u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute inset-0 flex items-center",children:u.jsx("span",{className:"w-full border-t"})}),u.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:u.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"o usa correo y contraseña"})})]}),u.jsx(cn,{control:i.control,name:"email",render:({field:p})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Email"}),u.jsx(En,{children:u.jsx(Qr,{placeholder:"Ingresa tu email",type:"email",autoComplete:"email",onChange:m=>{p.onChange(m),e(v=>({...v,email:m.target.value}))},value:p.value})}
3467),u.jsx(Ra,{children:"🔔 Es importante que tu email esté bien escrito. Toda la información de tu suscripción la enviaremos por este medio."}),u.jsx(Ot,{})]})}),u.jsx(cn,{control:i.control,name:"password",render:({field:p})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Contraseña"}),u.jsx(En,{children:u.jsx(Qr,{placeholder:"Ingresa tu contraseña",type:"password",autoComplete:"new-password",id:"new-password",onChange:p.onChange,value:p.value})}),u.jsx(Ot,{})]})}),u.jsx(cn,{control:i.control,name:"confirm_password",render:({field:p})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Confirmar contraseña"}),u.jsx(En,{children:u.jsx(Qr,{placeholder:"Ingresa tu contraseña",type:"password",autoComplete:"new-password",id:"confirm_password",onChange:p.onChange,value:p.value})}),u.jsx(Ot,{})]})}),u.jsx("div",{children:u.jsxs("p",{className:"text-center text-muted-foreground text-sm",children:["Al registrarte en Maifud, aceptas nuestros"," ",u.jsx(Bs,{to:"/terms-and-conditions",className:"underline text-primary",children:"Términos"})," ","y"," ",u.jsx(Bs,{to:"/privacy-policy",className:"underline text-primary",children:"Política de privacidad"}),"."]})}),u.jsxs("div",{className:"flex justify-between pt-4 gap-4",children:[u.jsx(tt,{type:"button",variant:"outline",className:"w-full sm:w-fit",onClick:()=>s({to:"/register/shipping-frecuency"}),children:"Volver"}),u.jsx(tt,{type:"submit",className:"w-full sm:w-fit",disabled:d,isLoading:n.isPending,children:n.isPending?"Creando usuario":"Siguiente"})]})]}),(n.isError||r.isError)&&u.jsx(Ot,{className:"text-right",children:c(n.error?.message||r.error?.message||"")})]})};var EC="Progress",bC=100,[Ije,xXe]=jr(EC),[Pje,Rje]=Ije(EC),aK=_.forwardRef((t,e)=>{const{__scopeProgress:n,value:r=null,max:s,getValueLabel:i=Nje,...o}=t;(s||s===0)&&!TD(s)&&console.error(Mje(`${s}`,"Progress"));const a=TD(s)?s:bC;r!==null&&!AD(r,a)&&console.error(kje(`${r}`,"Progress"));const c=AD(r,a)?r:null,d=W4(c)?i(c,a):void 0;return u.jsx(Pje,{scope:n,value:c,max:a,children:u.jsx(Le.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":W4(c)?c:void 0,"aria-valuetext":d,role:"progressbar","data-state":uK(c,a),"data-value":c??void 0,"data-max":a,...o,ref:e})})});aK.displayName=EC;var lK="ProgressIndicator",cK=_.forwardRef((t,e)=>{const{__scopeProgress:n,...r}=t,s=Rje(lK,n);return u.jsx(Le.div,{"data-state":uK(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...r,ref:e})});cK.displayName=lK;function Nje(t,e){return`${Math.round(t/e*100)}%`}function uK(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function W4(t){return typeof t=="number"}function TD(t){return W4(t)&&!isNaN(t)&&t>0}function AD(t,e){return W4(t)&&!isNaN(t)&&t<=e&&t>=0}function Mje(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${bC}\`.`}function kje(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be:
3468  - a positive number
3469  - less than the value passed to \`max\` (or ${bC} if no \`max\` prop is set)
3470  - \`null\` or \`undefined\` if the progress is indeterminate.
3471
3472Defaulting to \`null\`.`}var dK=aK,Dje=cK;const fK=_.forwardRef(({className:t,value:e,...n},r)=>u.jsx(dK,{ref:r,className:ve("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",t),...n,children:u.jsx(Dje,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}})}));fK.displayName=dK.displayName;function Iu({className:t,...e}){const{title:n,description:r,progress:s,children:i,withCard:o=!0}=e;return u.jsx(u.Fragment,{children:u.jsxs("div",{id:"page-layout",className:"w-full mx-auto transition-[width] duration-300 ease-in-out md:w-11/12 lg:w-5/6",children:[s&&u.jsx("div",{className:"mb-4",children:u.jsx(fK,{value:s})}),o?u.jsxs("div",{children:[u.jsxs($f,{className:ve("mb-8 relative z-10",t),...e,children:[(n||r)&&u.jsxs(dg,{children:[n&&u.jsx(fg,{className:"text-2xl",children:n}),r&&u.jsx(hg,{children:r})]}),u.jsx(Ff,{className:"grid gap-4 p-4 md:p-6 pt-0",children:i})]}),u.jsx("div",{className:"hidden lg:flex",children:u.jsxs("a",{href:"https://wa.me/+56971295665",className:"py-2 px-6 pt-4 rounded-md bg-[#075E54] text-white font-semibold text-sm -translate-y-10 translate-x-6 flex space-x-2",target:"_blank",rel:"noopener noreferrer",children:[u.jsx(iz,{})," ",u.jsx("span",{children:"¿Necesitas ayuda?"})]})})]}):i]})})}
3472const Oje=()=>{const{data:t,isLoading:e}=F_e(),n=t?.data,r=n?.show_resume_button,s=i=>i?`Hola ${i.split(" ")[0]}`:"Hola";return e?u.jsx(Iu,{children:u.jsx("div",{className:"pt-6",children:u.jsx(er,{message:"Buscando tu información..."})})}):r?u.jsx(Kl,{to:"/rcheckout",search:{uid:n?.username}}):u.jsx(Iu,{withCard:!1,children:u.jsxs("div",{className:"pt-4 lg:pt-6",children:[u.jsx("div",{className:"rounded-lg border bg-white/90 p-4 shadow-sm lg:bg-white",children:u.jsxs("div",{className:"flex flex-col gap-1 sm:flex-row sm:items-end sm:justify-between",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-semibold uppercase tracking-wide text-primary",children:"Mi Maifud"}),u.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:s(n?.user_name)})]}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Gestiona tu suscripción, compras y datos."})]})}),u.jsx(Bi,{className:"my-4 hidden lg:block"}),u.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:gap-8",children:[u.jsx("aside",{className:"lg:w-[260px] lg:shrink-0",children:u.jsx(z9e,{})}),u.jsx("main",{className:"min-w-0 flex-1",children:u.jsx(w5,{})})]})]})})},$je=wn({email:st({required_error:"El email es necesario para recuperar la contraseña."}).email("No parece ser un email válido.")}),Fje=()=>{const t=$_e(),e=xi({resolver:_i($je)}),n=({email:r})=>{t.mutate(r)};return u.jsx("div",{className:"mx-auto max-w-[400px] w-full mt-8 mb-24",children:u.jsx(wi,{...e,children:u.jsx("form",{onSubmit:e.handleSubmit(n),className:"space-y-8",children:u.jsxs($f,{children:[u.jsxs(dg,{className:"space-y-1",children:[u.jsx(fg,{className:"text-2xl",children:"Cambiar contraseña"}),u.jsx(hg,{children:"Ingresa el correo asociado a tu cuenta y te enviaremos un correo con instrucciones. Si no lo encuentras, puede que el correo te haya llegado a SPAM."})]}),u.jsx(Ff,{className:"grid gap-4",children:u.jsx("div",{className:"grid gap-2",children:u.jsx(cn,{control:e.control,name:"email",render:({field:r})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Email"}),u.jsx(En,{children:u.jsx(Qr,{placeholder:"Ingresa tu email",autoComplete:"email",onChange:r.onChange,value:r.value})}),u.jsx(Ot,{})]})})})}),u.jsxs(C6,{className:"flex flex-col space-y-2",children:[u.jsx(tt,{className:"w-full",disabled:t.isPending||t.isSuccess,isLoading:t.isPending,children:t.isPending?"Enviando instrucciones":"Enviar instrucciones"}),t.isError&&u.jsx(Ot,{className:"text-center",children:"No fue posible enviar intrucciones para recuperar contraseña"}),t.isSuccess&&u.jsx(Ot,{className:"text-primary text-center",children:"✅ Si estás registrado con este correo, te hemos enviado instrucciones para cambiar tu contraseña."})]})]})})})})},jje=({id:t,code:e,box_size:n,name:r,price_incl_tax:s,price_with_discount:i,showInitialDiscount:o})=>{const a=I6({id:t,name:r,box_size:n,code:e}),c=P6({id:t,name:r,box_size:n,code:e});return u.jsxs("div",{children:[u.jsxs("div",{className:"relative",children:[u.jsx("img",{src:a,alt:r,className:ve("w-full md:w-4/5 block mx-auto")}),u.jsx("div",{className:"px-2 py-1 md:px-4 md:py-2 font-bold bg-primary text-white absolute bottom-2 md:bottom-6 left-0 rounded-md text-sm md:text-lg font-sans space-y-0",children:u.jsx("p",{className:"text-base",children:Ul(o?i:s)})})]}),u.jsx("p",{className:"text-center text-xl font-semibold mb-2",children:r}),u.jsxs("ul",{className:"text-center text-sm text-muted-foreground space-y-1",children:[u.jsx("li",{className:"flex space-x-1 items-center justify-center",children:u.jsxs("span",{children:[u.jsx("strong",{className:"font-sans",children:c.people})," ","personas"]})}),u.jsx("li",{className:"flex space-x-1 items-center justify-center",children:u.jsxs("span",{children:[u.jsx("strong",{className:"font-sans",children:c.quantity})," ","variedades de ",c.productKind," de temporada"]})}),u.jsx("li",{className:"flex space-x-1 items-center justify-center",children:u.jsxs("span",{children:[u.jsx("strong",{className:"font-sans",children:c.weight})," ","kgs de peso"]})})]}),t===1&&u.jsx("p",{className:"flex z-10 p-2 my-2 text-sm rounded-md space-x-2 items-center w-full justify-center bg-orange-500/30",children:u.jsx("span",{className:"font-medium",children:"La más querida"})})]})},Lje=({subscriptions:t,showInitialDiscount:e})=>
vendor: 4,685 bytes, line 3472
3472{if(t){const n=t[0].discount_formatted;return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"pb-4 bg-[#f6e9dd]",id:"boxes-section",children:u.jsxs("div",{className:"max-w-7xl mx-auto",children:[u.jsx("h4",{className:"text-center text-3xl mx-auto max-w-[600px] font-bold py-0 mb-2",children:"NUESTRAS CAJAS DE SUSCRIPCIÓN"}),u.jsx("p",{className:"text-center mb-2 text-xl",children:"ELIGE EL TAMAÑO DE CAJA QUE MÁS TE ACOMODE"}),e&&u.jsxs("p",{className:"text-center text-base",children:["Tienes un"," ",u.jsx("strong",{className:"text-primary font-sans text-xl",children:n})," ","de descuento en tu primera caja."]}),u.jsx("div",{className:"grid grid-cols-2 mx-auto p-8 lg:px-20 lg:grid-cols-4 gap-16 lg:gap-16 lg:w-full",children:t.map(r=>u.jsx(Bs,{to:"/register/subscriptions",search:{subs_id:r.id},children:u.jsx(jje,{...r,showInitialDiscount:e})},r.id))}),u.jsx("div",{className:"py-10 flex justify-center",children:u.jsx("button",{type:"button",className:"bg-primary text-primary-foreground rounded-md text-lg py-4 px-6 md:text-xl",children:u.jsx(or,{to:"/register/subscriptions",children:"¡Escoge tu caja!"})})})]})}),u.jsx("div",{className:"home-wave rotate-180 z-40 relative"})]})}},zje="/assets/vegetables.CcAGNFCb.png";var $6="Collapsible",[Vje,hK]=jr($6),[Bje,SC]=Vje($6),pK=_.forwardRef((t,e)=>{const{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:i,onOpenChange:o,...a}=t,[c,d]=As({prop:r,defaultProp:s??!1,onChange:o,caller:$6});return u.jsx(Bje,{scope:n,disabled:i,contentId:qs(),open:c,onOpenToggle:_.useCallback(()=>d(p=>!p),[d]),children:u.jsx(Le.div,{"data-state":TC(c),"data-disabled":i?"":void 0,...a,ref:e})})});pK.displayName=$6;var mK="CollapsibleTrigger",gK=_.forwardRef((t,e)=>{const{__scopeCollapsible:n,...r}=t,s=SC(mK,n);return u.jsx(Le.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":TC(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:e,onClick:ke(t.onClick,s.onOpenToggle)})});gK.displayName=mK;var CC="CollapsibleContent",vK=_.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=SC(CC,t.__scopeCollapsible);return u.jsx(gr,{present:n||s.open,children:({present:i})=>u.jsx(Hje,{...r,ref:e,present:i})})});vK.displayName=CC;var Hje=_.forwardRef((t,e)=>{const{__scopeCollapsible:n,present:r,children:s,...i}=t,o=SC(CC,n),[a,c]=_.useState(r),d=_.useRef(null),p=yt(e,d),m=_.useRef(0),v=m.current,w=_.useRef(0),E=w.current,C=o.open||a,b=_.useRef(C),S=_.useRef(void 0);return _.useEffect(()=>{const P=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(P)},[]),Zn(()=>{const P=d.current;if(P){S.current=S.current||{transitionDuration:P.style.transitionDuration,animationName:P.style.animationName},P.style.transitionDuration="0s",P.style.animationName="none";const R=P.getBoundingClientRect();m.current=R.height,w.current=R.width,b.current||(P.style.transitionDuration=S.current.transitionDuration,P.style.animationName=S.current.animationName),c(r)}},[o.open,r]),u.jsx(Le.div,{"data-state":TC(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!C,...i,ref:p,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...t.style},children:C&&s})});function TC(t){return t?"open":"closed"}var Uje=pK,Wje=gK,qje=vK,qo="Accordion",Gje=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[AC,Kje,Yje]=Em(qo),[F6,wXe]=jr(qo,[Yje,hK]),IC=hK(),yK=h.forwardRef((t,e)=>{const{type:n,...r}=t,s=r,i=r;return u.jsx(AC.Provider,{scope:t.__scopeAccordion,children:n==="multiple"?u.jsx(Jje,{...i,ref:e}):u.jsx(Zje,{...s,ref:e})})});yK.displayName=qo;var[xK,Qje]=F6(qo),[wK,Xje]=F6(qo,{collapsible:!1}),Zje=h.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},collapsible:i=!1,...o}=t,[a,c]=As({prop:n,defaultProp:r??"",onChange:s,caller:qo});return u.jsx(xK,{scope:t.__scopeAccordion,value:h.useMemo(()=>a?[a]:[],[a]),onItemOpen:c,onItemClose:h.useCallback(()=>i&&c(""),[i,c]),children:u.jsx(wK,{scope:t.__scopeAccordion,collapsible:i,children:u.jsx(_K,{...o,ref:e})})})}),Jje=h.forwardRef((t,e)=>{const{value:n,defaultValue:r,onValueChange:s=()=>{},...i}=t,[o,a]=As({prop:n,defaultProp:r??[],onChange:s,caller:qo}),c=h.useCallback(p=>a((m=[])=>[...m,p]),[a]),d=h.useCallback(p=>a((m=[])=>m.filter(v=>v!==p)),[a]);return u.jsx(xK,{scope:t.__scopeAccordion,value:o,onItemOpen:c,onItemClose:d,children:u.jsx(wK,{scope:t.__scopeAccordion,collapsible:!0,children:u.jsx(_K,{...i,ref:e})})})}),[eLe,j6]=F6(qo),_K=h.forwardRef((t,e)=>{const{__scopeAccordion:n,disabled:r,dir:s,orientation:i="vertical",...o}=t,a=h.useRef(null),c=yt(a,e),d=Kje(n),m=Of(s)==="ltr",v=ke(t.onKeyDown,w=>
3472{if(!Gje.includes(w.key))return;const E=w.target,C=d().filter(I=>!I.ref.current?.disabled),b=C.findIndex(I=>I.ref.current===E),S=C.length;if(b===-1)return;w.preventDefault();let P=b;const R=0,z=S-1,O=()=>{P=b+1,P>z&&(P=R)},F=()=>{P=b-1,P<R&&(P=z)};switch(w.key){case"Home":P=R;break;case"End":P=z;break;case"ArrowRight":i==="horizontal"&&(m?O():F());break;case"ArrowDown":i==="vertical"&&O();break;case"ArrowLeft":i==="horizontal"&&(m?F():O());break;case"ArrowUp":i==="vertical"&&F();break}const D=P%S;C[D].ref.current?.focus()});return u.jsx(eLe,{scope:n,disabled:r,direction:s,orientation:i,children:u.jsx(AC.Slot,{scope:n,children:u.jsx(Le.div,{...o,"data-orientation":i,ref:c,onKeyDown:r?void 0:v})})})}),q4="AccordionItem",[tLe,PC]=F6(q4),EK=h.forwardRef((t,e)=>{const{__scopeAccordion:n,value:r,...s}=t,i=j6(q4,n),o=Qje(q4,n),a=IC(n),c=qs(),d=r&&o.value.includes(r)||!1,p=i.disabled||t.disabled;return u.jsx(tLe,{scope:n,open:d,disabled:p,triggerId:c,children:u.jsx(Uje,{"data-orientation":i.orientation,"data-state":IK(d),...a,...s,ref:e,disabled:p,open:d,onOpenChange:m=>{m?o.onItemOpen(r):o.onItemClose(r)}})})});EK.displayName=q4;var bK="AccordionHeader",SK=h.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,s=j6(qo,n),i=PC(bK,n);return u.jsx(Le.h3,{"data-orientation":s.orientation,"data-state":IK(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:e})});SK.displayName=bK;var zE="AccordionTrigger",CK=h.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,s=j6(qo,n),i=PC(zE,n),o=Xje(zE,n),a=IC(n);return u.jsx(AC.ItemSlot,{scope:n,children:u.jsx(Wje,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...a,...r,ref:e})})});CK.displayName=zE;var TK="AccordionContent",AK=h.forwardRef((t,e)=>{const{__scopeAccordion:n,...r}=t,s=j6(qo,n),i=PC(TK,n),o=IC(n);return u.jsx(qje,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...o,...r,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});AK.displayName=TK;function IK(t){return t?"open":"closed"}var nLe=yK,rLe=EK,sLe=SK,PK=CK,RK=AK;const iLe=nLe,NK=_.forwardRef(({className:t,...e},n)=>u.jsx(rLe,{ref:n,className:ve("border-b",t),...e}));NK.displayName="AccordionItem";const MK=_.forwardRef(({className:t,children:e,...n},r)=>u.jsx(sLe,{className:"flex",children:u.jsxs(PK,{ref:r,className:ve("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",t),...n,children:[e,u.jsx(_5,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));MK.displayName=PK.displayName;const kK=_.forwardRef(({className:t,children:e,...n},r)=>u.jsx(RK,{ref:r,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...n,children:u.jsx("div",{className:ve("pb-4 pt-0",t),children:e})}));kK.displayName=RK.displayName;const ol=({value:t,title:e,children:n})=>u.jsxs(NK,{value:t,children:[u.jsx(MK,{className:"text-left text-base",children:e}),u.jsx(kK,{children:n})]}),oLe=()=>u.jsxs("div",{className:"pb-0 relative z-10 -translate-y-20 lg:flex lg:flex-row lg:-translate-y-0 max-w-7xl mx-auto",id:"faq-section",children:[u.jsx("div",{className:"lg:-translate-y-28 lg:h-[400px]",children:u.jsx("div",{className:"w-1/2 mx-auto",children:u.jsx("img",{src:zje,alt:"Verduras imperfectas"})})}),u.jsxs("div",{className:"p-6 lg:w-3/4 lg:pr-10 lg:pt-20",children:[u.jsx("h4",{className:"text-center text-2xl lg:text-3xl mb-2 font-bold",children:"PREGUNTAS FRECUENTES"}),u.jsx("div",{children:u.jsxs(iLe,{type:"single",collapsible:!0,className:"w-full",children:[u.jsx(ol,{value:"item-1",title:"¿Qué es Maifud?",children:"Maifud es un mercado online de frutas y verduras, además de otros productos de despensa. Ofrecemos de manera online y al detalle alimentos “imperfectos” rechazados por el comercio tradicional por no cumplir las exigencias de mercado en cuanto a tamaño, color, forma o grado de madurez, a pesar de encontrarse en perfectas condiciones para ser consumidos."}),u.jsx(ol,{value:"item-2",title:"¿En qué estado se encuentran los alimentos que ofrecen?",children:"Todos nuestros productos son frescos, cosechados durante la misma semana o semana anterior del despacho y que se encuentran en perfectas condiciones para ser consumidos en términos nutricionales y de inocuidad."}),u.jsx(ol,{value:"item-3",title:"¿Cúal es el origen de sus productos?",children:"Nos contactamos con pequeños, medianos y grandes agricultores y distribuidores locales de la región metropolitana, IV, V y VI. Tratamos de ofrecer productos limpios cultivados de forma orgánica o agroecológica, sin embargo, también ofrecemos productos de agricultura convencional cuando se trata de alimentos que han sido descartados. En la información adicional de ca
3472da producto puedes ver la forma que fue cultivado."}),u.jsxs(ol,{value:"item-4",title:"¿Qué son las Cajas Imperfectas?",children:[u.jsx("p",{className:"mb-2",children:"Son cajas de frutas y verduras convenientes: tienen un 30% de descuento respecto al mercado tradicional."}),u.jsx("p",{className:"mb-2",children:"Las frutas y verduras están en perfecto estado, pero que han sido descartadas en la cosecha por no cumplir los estrictos estándares estéticos que exige el mercado. Las puedes adquirir a granel o en modalidad de Suscripción a precios aún más convenientes."}),u.jsxs("p",{className:"mb-2",children:["En la Caja podrás encontrar desde"," ",u.jsx("strong",{children:"15 variedades"})," de frutas y verduras de temporada, dependiendo de lo que logramos rescatar de productores asociados."]})]}),u.jsxs(ol,{value:"item-5",title:"¿Cómo funciona el despacho?",children:[u.jsxs("p",{className:"mb-2",children:["Repartimos durante la semana de"," ",u.jsx("strong",{children:"lunes a sábado"}),"."]}),u.jsxs("p",{className:"mb-2",children:["De ",u.jsx("strong",{children:"domingo a viernes"})," si pides antes de las ",u.jsxs("strong",{children:[f3," hrs"]})," ","podrás recibir al ",u.jsx("strong",{children:"día siguiente"}),", y siempre y cuando ese día no se exceda nuestra capacidad logística (avisaríamos oportunamente). En ese caso quedaría la entrega para el día subsiguiente."]}),u.jsxs("p",{className:"mb-2",children:["Los pedidos hechos desde el viernes posterior a las ",u.jsxs("strong",{children:[f3," hrs"]})," hasta el domingo a las ",u.jsx("strong",{children:"19:00 hrs"})," se entregarán el día lunes."]})]}),u.jsxs(ol,{value:"item-6",title:"¿Cómo funcionan los puntos de retiro?",children:[u.jsxs("p",{className:"mb-2",children:["El retiro tiene un costo de"," ",u.jsx("strong",{children:"$1.000"})," a contar de Marzo 2024, con el fin de poder sostener la operación de los despachos a estos puntos."]}),u.jsxs("p",{className:"mb-2",children:["Para el caso del punto de retiro en"," ",u.jsx("strong",{children:"Apoquindo 6451, Las Condes"}),", se pueden retirar el mismo día que se pide siempre y cuando sea desde las"," ",u.jsx("strong",{children:"14:00 hasta las 17:00 hrs"})," ","previo coordinación por whatsapp de soporte."]}),u.jsxs("p",{className:"mb-2",children:["Para el resto de puntos de retiro, si se pide hasta las ",u.jsxs("strong",{children:[f3," hrs"]})," de un día se puede retirar al día siguiente en los horarios establecidos (sólo retiros de lunes a viernes), los sábados no hacemos retiros, por lo que los pedidos puestos posterior a las"," ",f3," hrs del jueves, quedan para el día lunes."]}),u.jsxs("p",{className:"mb-2",children:["Una vez hecho tu pedido"," ",u.jsx("strong",{children:"tienes que esperar la confirmación por correo para que puedas retirarlo"}),". Debes retirarlo el mismo día que te indicamos."]}),u.jsxs("p",{className:"mb-2",children:[u.jsx("strong",{children:"Política de retiro:"})," Los retiros se deben realizar el mismo día que se indica en el correo de confirmación para retiro. Si no se cumple con esto, no nos hacemos responsables por deterioros que pueda sufrir el pedido en días posteriores. Somos una empresa que combate el desperdicio de alimentos y lo que menos queremos es que dejen olvidados sus pedidos en nuestras oficinas y que finalmente se pierdan."]})]}),u.jsx(ol,{value:"item-7",title:"¿Qué valor tiene el despacho?",children:u.jsxs("p",{className:"mb-2",children:["El valor de despacho varía por comuna pero va de"," ",u.jsx("strong",{children:"$3.000 a $3.900"}),". Puedes ver nuestras zonas de"," ",u.jsx("a",{href:"https://tienda.maifud.cl/despacho",className:"text-primary underline",children:"reparto acá"}),"."]})}),u.jsx(ol,{value:"item-8",title:"¿A qué comunas despachan?",children:u.jsxs("p",{className:"mb-2",children:["Dentro de la"," ",u.jsx("strong",{children:"Región Metropolitana"})," y la"," ",u.jsx("strong",{children:"V Región"})," en las comunas que encontrarás en"," ",u.jsx("a",{href:"https://tienda.maifud.cl/despacho",className:"text-primary underline",children:"este link"})]})}
3472),u.jsx(ol,{value:"item-9",title:"¿Qué pasa si nadie puede recibir el día que me despachan?",children:u.jsx("p",{className:"mb-2",children:"El día antes del despacho nosotros enviamos correo para que el cliente tome las precauciones de poder recibir. En caso que no pueda recibir ese día, nos tiene que avisar ese mismo día para poder reagendar su entrega. Si el cliente no nos dice nada y el pedido se despacha, y no hay nadie el día de la entrega, el pedido vuelve a nuestras bodegas y el despacho se pierde, teniendo el cliente que pagar un nuevo despacho."})})]})}),u.jsxs("p",{className:"text-center mt-10",children:["¿Tienes alguna pregunta que no esté aquí?"," ",u.jsx("a",{href:"https://wa.me/+56971295665",className:"text-primary underline",children:"Contáctanos"})]})]})]}),aLe="/assets/feature-1.Dhf14p7x.png",DK="/assets/feature-2.D_sQ5EnG.png",lLe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAMAAAD8CC+4AAAAilBMVEUAAAAj2Y0j2Y0HwXsAvHcFv3kAvHcAvHcAvHcAvHcAvHcAvHcAvHcAvHcAvHcAvHcAvHcAvHci2Y0j2Y0j2Y0j2Y0j2Y0j2Y0AvHcj2Y0AoWwMy4Ia0ogAv3kAuHYRvXwAr3EAxH0Vz4UApG0EyIAAqm8As3MAp20AtXQe1Yob1IkAwXsQzIMay4XdvMrbAAAAGHRSTlMAv4AQ7yAwn3DPr4/fYFBAv4Ch72hQQN/hHUIQAAALjElEQVR42uzBgQAAAACAoP2pF6kCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGD27rZJaRiKAnBH3pfdBdTRS1zvBkKSri///+8po0yBQtubBGnreb7puPrhkKS9h1YAAAAAAAAAAAAAAAAAAAAAgBqD5/mMfpvNRxn8DxarJRUmgwz6bTR9GNKp4TiD3ho8TR5pD6n/J/aH+DWP2OH7Z7xaUqV5Bn0yenoYUi1cw/fG4PlwiNeZZtAHi+IQr/eQQdeNpw8kk0GXjZ4mQxJbZNBRg+f5IwVZZdBFi9WMgs0y6JrxfroaBfOZThkV09UIzxl0xKEijTfJoAtK09UYjxm03Uh4iGMS23FFRZrSUwZtJZiusrOOMIntuPF0KQjcKKUMU1PDDNqmqEjr5dqrvyw1hu/PtEpRkdZjbdUxR0SoV7tmsZoJ9/SCaINfZtAGgoqUnTbqEs+EerUriopUdIiXWUK92gWSipS1NaqSpgN8PbKtFivZjVk9h3q1zQQVKTvtVUMO9WpLSSpS1l5JaExiW6ioSAWHuIBFvdouY/khLucZ9WpbjKay6Wo4k6NebQHZdNWrWJoxib0feUVqVArGoV6VultFmo5n1KuN3b0iTcbmqFfr3W+6qm7DOzzoUqk9FWlKxjrUq1e0qiI13mqd7zmtrY/PXTMmsWdaVZEa67j8R62K9fdzxHjQJaVBgumq0UxXOKtSMKhX21WRelfzSTEqHqNe/ddPkVZUpD6nWi4+do1JbKxBREUqiLwQvdot6tWWVKRGU1NsVRSDerUdFanns5Pb8+32+Bz1aohB4umqpiO+dL1Vwl5F0JjEyg3mgkNcXIfpw+KnKlaF86hXxcbDuD295qkUX9xaVdEqHKNevUnmXAQuy7wI3VElp4I51KsyoyE14aSZlzduS7dKXeNBF5klNaKlmZezNMTFqDzpDm9Qr4osKG3oOZ3juoqsYDGJ/ScmaUPXVGYuNm85XeBVGId6VWJIzdjghxLYC/6sUUEs6lWBETXkww50YivaFRzq1dtbUENGNeBEA1aT8FhnTGLTh86SyVhB1yRVxgb1aoTY7V2+7bJw2eZ0gUa9enMJL96tdKtmSrfUUa8KPKS7juPa3cF7b45+lXJEk2MS29w02ZFuq5esdXz6CgrDoik/6tV0xsmOdK7aHCyffTtea5YdJahXE3pMNJrxdCqvebhcvq2gXk1mkigGd/1zYphEvArg8B7B5p6ong7Y3U/ykHEqgEW9mvZO3cgv4/LS5C12f8ckNqEZ1ckFV88HuvR5iN/fUa8mM7/JTbquKFYCjxPUq+k8p1jopiI3T1JOyRk8vSowSLHQfdVizf/Boa4Z7xGUWCZYdroqdM8kZMTLHO8RlFkl+O6zrjwTjLvtlZxlvEdQaJHge1J53Q7trT7mck73vIvGy4HlhvHXVLk8N2Ndmst3h/cIBniIf7Al7NNiXHzoJsd7BENM458mDb0YsxwZumG8RzDIKP5sDT4YPMeF7vBy4ECP0ddT4T/to0J3hPcIBppEn6wRnxkX8S9bwn/TFuqpYeb69ZovF7028qVs9yr80bL37058/JTBiUGTdWpe39Zd9vkdapgTs/rHkfJuR773Gav92Lz2Xo3XffAxg6v1qjO9zHy9xlo/UvOkqe3+3v7HB5zrhWX1k6av6754l8HBqrLXNOve+JDBwfj0/rynJzpO9av1quvx7o79/Vq9qs79XPcHQr88ifXhob/cyTeEHlmv6uDQ3+heEHpkvcrBoW/pXrYIPbJeNaGhb+hedgg9chJrz0Nv/e5OXxF6ZL3qAkP/QfezRehx9SoHhv6Vgn3f7EX8BRuEHlmvmqDQt2Fpfdm+rAsv292GQrwg9LgHXWxQ6PKwvu4uR7Xdydf8DqEHoIILCf1FHFPV4txuSOgbQo+qV7ku9PgT/euX2nsB4XLfIPS4B128PPStOPJ6O9mpjtAT1qs/Uy/0zVv5dm+z+VH+3beN5JOE0H+xdza9kYMwGFY10+70u72BwFVhvWpD0v//97aHHqoyITEGdg/vc55RDg8kYBujSq++i6UL7FC+p05kPiFvMxbBYGJIV0VipdKj7ttL63N1ms1uPKRr0qt/ZNInMntxpSETdV92gnRVelUmfZa82nOc+cIpXyMB0jXpVZF03u08WYl0uXWG9EaR2I9uznPpWusR0hXp1f3So8J5Jl1vHdIV6dVMej8fnEVmNU+B9Bbp1Y82UbPFnmNy84+sW1I+J0J67UGX3/uks25l7YPJmaNqh2AY0ivTq697pE+zag+dwtqPF1UsIEC65qBLWXokVbRsMeuQ11RjUYL0moMuL++vn7y9FaSz2Q+L/86qKg0H6Zo+gi+vUT3NDVUMmaCqtiUP6Zpr2vzKCkw18VzFMpyNhDBBen0fQa9VbqiquIq19bY8QXptH0Gvrl9bNjZgFFz03nHYWISzERIipNf1EfTaSlUqB9goni+a4BZnaIg9pFc0B/aSaKh8IT6vLRBjo9NyFCG9yHVZujM15J/W4mvAZYNBOegcpBe57SA9t+fLofKJV8NqBOnteeggfSlOWHuWteYSDOntOXSQnoqbdCsiQnoHnppLJ1uUPlkRkN6B5+bSQ1m6syICpLfnqrl0Vz7sSMlKYEjvwLG1dG8zUraN3k2E9A7ctJZe2nnJtXtI78BphHTO9vLO231AegcuG0ufdzeiCkuC9H/EXVvpQbIeI452A4L0DvwaId3OpXRoiQDpHbhvLV1q3ZCD9MEcmkuX77jJQ/pYrttLl5dWRkgfym0n6TmOCtYhfSQPo6SXq688Vu8j6blPz0lLMOcg7NNH8tQjIief8AukD+TUQ7p8ws+IvQ/kqlOWLafcNW5Clm0gx5bSFyuAt4aLg/RO3LSUzlZC+C4LlTMDuW9bIychfZeFGrmBXOqlV5c+fpeFatiR3DWue89Je6Sj7n0kzy2lz2fdEU9bNXAeJ1xGcjh2PcvG60u8UPwueJxl68jpvPTF1MBrxVLkfnp12z1L5ODUqrx+xus6EuT2lrU6mSls7PWMHI44n15h3edxMyGxGGAJvPhPopu3Vv3OCJnRiULG6ZhJr53uVOOO1cu44NFzRsrhdL3eXYoUUz0pzj1KlKO7VB2Pj4+Hi3JypMIgVzV9nERPjOgjp+GiQeESC+csJeXz0DFSLV3fGzZlvYBLzJMqAksRvWF7Sbdp3u9BMmKcrjhuRhfohtJzguKF69nkrMZnA/q969FL19+4kNfGUch+Jl25O9zs0Fu6Ze1l135h88WccIfLf8JF5xu6rN+skU+4rUmBXrreulx6IrMTh3vZ/rJ39zgOwkAAhUmiXAASaUZmCls0/Nz/fFtss8UmYnBkB3jfAWie7JEAacpE1+iq7o8+GRsYS7t8cNfq5Ijun+czu1bLRZ8sa+aObw9qYKuyQ4Ho7p8r3v8u0+e97E1ELxPdn8amVzfFkPc1b1CiF40+mmTVWWIc+rxvLKZELxtdg3PXwhrBxCERvXR0NcnInp9cohK9ePQkPjaM+to0mPj0RC8fXU285mX6v3iYxSsq0StET7KBxaXXP8Y+RJMNeqLXiK4mW83xV8YTlOhVogepJxG9TvRRqjElep3oOkstA9FrRV+klkT0j0f/+vtdiV4ruoZKEtE/H/04iL5Sq8dB9JUeehzPBqvc9TC6Bqe739sGZzvq3a3B2aY6E/18F/yjgcej073rOOde950f9q5lnm9we17byz611yfJAQAAAAAAAAAAAAAAAAAAAAAAAAAAAOCHPTgQAAAAAADyf20EVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVpDw4EAAAAAAT5Ww9yBQAAAAAAPwFCvw+8SPksxQAAAABJRU5ErkJggg==",cLe="/assets/feature-4.DxxiIQ36.png",RC=({direction:t="DOWN"})=>u.jsx("div",{className:ve("home-wave",t==="DOWN"?"rotate-180":"rotate-0")}),S3=({imagePath:t,title:e,description:n})=>u.jsxs("div",{className:"flex flex-col items-center",children:[u.jsx("div",{className:"max-w-[290px] max-h-[290px] flex items-center justify-center h-full",children:u.jsx("img",{src:t,alt:""})}),u.jsx("h4",{className:"text-lg font-medium text-center text-primary leading-tight",children:e}),u.jsx("p",{className:"text-center",children:n})]}),uLe=()=>u.jsxs("div",{className:"",children:[u.jsx("div",{className:"max-w-7xl mx-auto",children:u.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-6 p-6",children:[u.jsx(S3,{imagePath:aLe,title:"Apoya a productores locales",description:"Revalorizamos cosecha que no cumplió los estándares del comercio."}),u.jsx(S3,{imagePath:DK,title:"Come variado y estacional",description:`Nuestras cajas traen gran variedad de frutas y verduras frescas de
3473            temporada.`}
vendor: 12,285 bytes, lines 3473-3474
3473),u.jsx(S3,{imagePath:lLe,title:"Ahorra dinero",description:"Tus frutas y verduras a mejores precios que el mercado tradicional."}),u.jsx(S3,{imagePath:cLe,title:"¡Más fácil imposible!",description:`Recibe tu caja regularmente y sin preocupaciones. ¡Pausa cuando
3474            quieras!`})]})}),u.jsx(RC,{direction:"UP"})]}),dLe=()=>u.jsxs(u.Fragment,{children:[u.jsx(RC,{direction:"UP"}),u.jsx("div",{className:"bg-[#f6e9dd]",children:u.jsx("div",{className:"max-w-7xl mx-auto",children:u.jsx(yb,{})})})]});var jf="NavigationMenu",[NC,OK,fLe]=Em(jf),[VE,hLe,pLe]=Em(jf),[MC,_Xe]=jr(jf,[fLe,pLe]),[mLe,Zi]=MC(jf),[gLe,vLe]=MC(jf),$K=_.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:s,defaultValue:i,delayDuration:o=200,skipDelayDuration:a=300,orientation:c="horizontal",dir:d,...p}=t,[m,v]=_.useState(null),w=yt(e,T=>v(T)),E=Of(d),C=_.useRef(0),b=_.useRef(0),S=_.useRef(0),[P,R]=_.useState(!0),[z,O]=As({prop:r,onChange:T=>{const k=T!=="",j=a>0;k?(window.clearTimeout(S.current),j&&R(!1)):(window.clearTimeout(S.current),S.current=window.setTimeout(()=>R(!0),a)),s?.(T)},defaultProp:i??"",caller:jf}),F=_.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>O(""),150)},[O]),D=_.useCallback(T=>{window.clearTimeout(b.current),O(T)},[O]),I=_.useCallback(T=>{z===T?window.clearTimeout(b.current):C.current=window.setTimeout(()=>{window.clearTimeout(b.current),O(T)},o)},[z,O,o]);return _.useEffect(()=>()=>{window.clearTimeout(C.current),window.clearTimeout(b.current),window.clearTimeout(S.current)},[]),u.jsx(FK,{scope:n,isRootMenu:!0,value:z,dir:E,orientation:c,rootNavigationMenu:m,onTriggerEnter:T=>{window.clearTimeout(C.current),P?I(T):D(T)},onTriggerLeave:()=>{window.clearTimeout(C.current),F()},onContentEnter:()=>window.clearTimeout(b.current),onContentLeave:F,onItemSelect:T=>{O(k=>k===T?"":T)},onItemDismiss:()=>O(""),children:u.jsx(Le.nav,{"aria-label":"Main","data-orientation":c,dir:E,...p,ref:w})})});$K.displayName=jf;var BE="NavigationMenuSub",yLe=_.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,value:r,onValueChange:s,defaultValue:i,orientation:o="horizontal",...a}=t,c=Zi(BE,n),[d,p]=As({prop:r,onChange:s,defaultProp:i??"",caller:BE});return u.jsx(FK,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:o,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:m=>p(m),onItemSelect:m=>p(m),onItemDismiss:()=>p(""),children:u.jsx(Le.div,{"data-orientation":o,...a,ref:e})})});yLe.displayName=BE;var FK=t=>{const{scope:e,isRootMenu:n,rootNavigationMenu:r,dir:s,orientation:i,children:o,value:a,onItemSelect:c,onItemDismiss:d,onTriggerEnter:p,onTriggerLeave:m,onContentEnter:v,onContentLeave:w}=t,[E,C]=_.useState(null),[b,S]=_.useState(new Map),[P,R]=_.useState(null);return u.jsx(mLe,{scope:e,isRootMenu:n,rootNavigationMenu:r,value:a,previousValue:f6(a),baseId:qs(),dir:s,orientation:i,viewport:E,onViewportChange:C,indicatorTrack:P,onIndicatorTrackChange:R,onTriggerEnter:An(p),onTriggerLeave:An(m),onContentEnter:An(v),onContentLeave:An(w),onItemSelect:An(c),onItemDismiss:An(d),onViewportContentChange:_.useCallback((z,O)=>{S(F=>(F.set(z,O),new Map(F)))},[]),onViewportContentRemove:_.useCallback(z=>{S(O=>O.has(z)?(O.delete(z),new Map(O)):O)},[]),children:u.jsx(NC.Provider,{scope:e,children:u.jsx(gLe,{scope:e,items:b,children:o})})})},jK="NavigationMenuList",LK=_.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,...r}=t,s=Zi(jK,n),i=u.jsx(Le.ul,{"data-orientation":s.orientation,...r,ref:e});return u.jsx(Le.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:u.jsx(NC.Slot,{scope:n,children:s.isRootMenu?u.jsx(YK,{asChild:!0,children:i}):i})})});LK.displayName=jK;var zK="NavigationMenuItem",[xLe,VK]=MC(zK),BK=_.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,value:r,...s}=t,i=qs(),o=r||i||"LEGACY_REACT_AUTO_VALUE",a=_.useRef(null),c=_.useRef(null),d=_.useRef(null),p=_.useRef(()=>{}),m=_.useRef(!1),v=_.useCallback((E="start")=>{if(a.current){p.current();const C=UE(a.current);C.length&&OC(E==="start"?C:C.reverse())}},[]),w=_.useCallback(()=>{if(a.current){const E=UE(a.current);E.length&&(p.current=TLe(E))}},[]);return u.jsx(xLe,{scope:n,value:o,triggerRef:c,contentRef:a,focusProxyRef:d,wasEscapeCloseRef:m,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:w,onContentFocusOutside:w,children:u.jsx(Le.li,{...s,ref:e})})});BK.displayName=zK;var HE="NavigationMenuTrigger",HK=_.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,disabled:r,...s}=t,i=Zi(HE,t.__scopeNavigationMenu),o=VK(HE,t.__scopeNavigationMenu),a=_.useRef(null),c=yt(a,o.triggerRef,e),d=XK(i.baseId,o.value),p=ZK(i.baseId,o.value),m=_.useRef(!1),v=_.useRef(!1),w=o.value===i.value;return u.jsxs(u.Fragment,{children:[u.jsx(NC.ItemSlot,{scope:n,value:o.value,children:u.jsx(QK,{asChild:!0,children:u.jsx(Le.button,{id:d,disabled:r,"data-disabled":r?"":void 0,"data-state":$C(w),"aria-expanded":w,"aria-controls":p,...s,ref:c,onPointerEnter:ke(t.onPointerEnter,()=>{v.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:ke(t.onPointerMove,G4(()=>{r||v.current||o.wasEscapeCloseRef.current||m.current||(i.onTriggerEnter(o.value),m.current=!0)})),onPointerLeave:ke(t.onPointerLeave,G4(()=>{r||(i.onTriggerLeave(),m.current=!1)})),onClick:ke(t.onClick,()=>{i.onItemSelect(o.value),v.current=w}),onKeyDown:ke(t.onKeyDown,E=>{const b={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];w&&E.key===b&&(o.onEntryKeyDown(),E.preventDefault())})})})}),w&&u.jsxs(u.Fragment,{children:[u.jsx(wL,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:E=>{const C=o.contentRef.current,b=E.relatedTarget,S=b===a.current,P=C?.contains(b);(S||!P)&&o.onFocusProxyEnter(S?"start":"end")}}),i.viewport&&u.jsx("span",{"aria-owns":p})]})]})});HK.displayName=HE;var wLe="NavigationMenuLink",ID="navigationMenu.linkSelect",UK=_.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,active:r,onSelect:s,...i}=t;return u.jsx(QK,{asChild:!0,children:u.jsx(Le.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:e,onClick:ke(t.onClick,o=>{const a=o.target,c=new CustomEvent(ID,{bubbles:!0,cancelable:!0});if(a.addEventListener(ID,d=>s?.(d),{once:!0}),Wy(a,c),!c.defaultPrevented&&!o.metaKey){const d=new CustomEvent(hy,{bubbles:!0,cancelable:!0});Wy(a,d)}},{checkForDefaultPrevented:!1})})})});UK.displayName=wLe;var kC="NavigationMenuIndicator",WK=_.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Zi(kC,t.__scopeNavigationMenu),i=!!s.value;return s.indicatorTrack?dL.createPortal(u.jsx(gr,{present:n||i,children:u.jsx(_Le,{...r,ref:e})}),s.indicatorTrack):null});WK.displayName=kC;var _Le=_.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,...r}=t,s=Zi(kC,n),i=OK(n),[o,a]=_.useState(null),[c,d]=_.useState(null),p=s.orientation==="horizontal",m=!!s.value;_.useEffect(()=>{const E=i().find(C=>C.value===s.value)?.ref.current;E&&a(E)},[i,s.value]);const v=()=>{o&&d({size:p?o.offsetWidth:o.offsetHeight,offset:p?o.offsetLeft:o.offsetTop})};return WE(o,v),WE(s.indicatorTrack,v),c?u.jsx(Le.div,{"aria-hidden":!0,"data-state":m?"visible":"hidden","data-orientation":s.orientation,...r,ref:e,style:{position:"absolute",...p?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...r.style}}):null}),dm="NavigationMenuContent",qK=_.forwardRef((t,e)=>{const{forceMount:n,...r}=t,s=Zi(dm,t.__scopeNavigationMenu),i=VK(dm,t.__scopeNavigationMenu),o=yt(i.contentRef,e),a=i.value===s.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return s.viewport?u.jsx(ELe,{forceMount:n,...c,ref:o}):u.jsx(gr,{present:n||a,children:u.jsx(GK,{"data-state":$C(a),...c,ref:o,onPointerEnter:ke(t.onPointerEnter,s.onContentEnter),onPointerLeave:ke(t.onPointerLeave,G4(s.onContentLeave)),style:{pointerEvents:!a&&s.isRootMenu?"none":void 0,...c.style}})})});qK.displayName=dm;var ELe=_.forwardRef((t,e)=>{const n=Zi(dm,t.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:s}=n;return Zn(()=>{r(t.value,{ref:e,...t})},[t,e,r]),Zn(()=>()=>s(t.value),[t.value,s]),null}),hy="navigationMenu.rootContentDismiss",GK=_.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,value:r,triggerRef:s,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:a,onContentFocusOutside:c,...d}=t,p=Zi(dm,n),m=_.useRef(null),v=yt(m,e),w=XK(p.baseId,r),E=ZK(p.baseId,r),C=OK(n),b=_.useRef(null),{onItemDismiss:S}=p;_.useEffect(()=>{const R=m.current;if(p.isRootMenu&&R){const z=()=>{S(),a(),R.contains(document.activeElement)&&s.current?.focus()};return R.addEventListener(hy,z),()=>R.removeEventListener(hy,z)}},[p.isRootMenu,t.value,s,S,a]);const P=_.useMemo(()=>{const z=C().map(k=>k.value);p.dir==="rtl"&&z.reverse();const O=z.indexOf(p.value),F=z.indexOf(p.previousValue),D=r===p.value,I=F===z.indexOf(r);if(!D&&!I)return b.current;const T=(()=>{if(O!==F){if(D&&F!==-1)return O>F?"from-end":"from-start";if(I&&O!==-1)return O>F?"to-start":"to-end"}return null})();return b.current=T,T},[p.previousValue,p.value,p.dir,C,r]);return u.jsx(YK,{asChild:!0,children:u.jsx(Af,{id:E,"aria-labelledby":w,"data-motion":P,"data-orientation":p.orientation,...d,ref:v,disableOutsidePointerEvents:!1,onDismiss:()=>{const R=new Event(hy,{bubbles:!0,cancelable:!0});m.current?.dispatchEvent(R)},onFocusOutside:ke(t.onFocusOutside,R=>{c();const z=R.target;p.rootNavigationMenu?.contains(z)&&R.preventDefault()}),onPointerDownOutside:ke(t.onPointerDownOutside,R=>{const z=R.target,O=C().some(D=>D.ref.current?.contains(z)),F=p.isRootMenu&&p.viewport?.contains(z);(O||F||!p.isRootMenu)&&R.preventDefault()}),onKeyDown:ke(t.onKeyDown,R=>{const z=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!z){const F=UE(R.currentTarget),D=document.activeElement,I=F.findIndex(j=>j===D),k=R.shiftKey?F.slice(0,I).reverse():F.slice(I+1,F.length);OC(k)?R.preventDefault():i.current?.focus()}}),onEscapeKeyDown:ke(t.onEscapeKeyDown,R=>{o.current=!0})})})}),DC="NavigationMenuViewport",KK=_.forwardRef((t,e)=>{const{forceMount:n,...r}=t,i=!!Zi(DC,t.__scopeNavigationMenu).value;return u.jsx(gr,{present:n||i,children:u.jsx(bLe,{...r,ref:e})})});KK.displayName=DC;var bLe=_.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,children:r,...s}=t,i=Zi(DC,n),o=yt(e,i.onViewportChange),a=vLe(dm,t.__scopeNavigationMenu),[c,d]=_.useState(null),[p,m]=_.useState(null),v=c?c?.width+"px":void 0,w=c?c?.height+"px":void 0,E=!!i.value,C=E?i.value:i.previousValue;return WE(p,()=>{p&&d({width:p.offsetWidth,height:p.offsetHeight})}),u.jsx(Le.div,{"data-state":$C(E),"data-orientation":i.orientation,...s,ref:o,style:{pointerEvents:!E&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":v,"--radix-navigation-menu-viewport-height":w,...s.style},onPointerEnter:ke(t.onPointerEnter,i.onContentEnter),onPointerLeave:ke(t.onPointerLeave,G4(i.onContentLeave)),children:Array.from(a.items).map(([S,{ref:P,forceMount:R,...z}])=>{const O=C===S;return u.jsx(gr,{present:R||O,children:u.jsx(GK,{...z,ref:nb(P,F=>{O&&F&&m(F)})})},S)})})}),SLe="FocusGroup",YK=_.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,...r}=t,s=Zi(SLe,n);return u.jsx(VE.Provider,{scope:n,children:u.jsx(VE.Slot,{scope:n,children:u.jsx(Le.div,{dir:s.dir,...r,ref:e})})})}),PD=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],CLe="FocusGroupItem",QK=_.forwardRef((t,e)=>{const{__scopeNavigationMenu:n,...r}=t,s=hLe(n),i=Zi(CLe,n);return u.jsx(VE.ItemSlot,{scope:n,children:u.jsx(Le.button,{...r,ref:e,onKeyDown:ke(t.onKeyDown,o=>{if(["Home","End",...PD].includes(o.key)){let c=s().map(m=>m.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&c.reverse(),PD.includes(o.key)){const m=c.indexOf(o.currentTarget);c=c.slice(m+1)}setTimeout(()=>OC(c)),o.preventDefault()}})})})});function UE(t){const e=[],n=document.createTreeWalker(t,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();)e.push(n.currentNode);return e}function OC(t){const e=document.activeElement;return t.some(n=>n===e?!0:(n.focus(),document.activeElement!==e))}
3474function TLe(t){return t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{t.forEach(e=>{const n=e.dataset.tabindex;e.setAttribute("tabindex",n)})}}function WE(t,e){const n=An(e);Zn(()=>{let r=0;if(t){const s=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return s.observe(t),()=>{window.cancelAnimationFrame(r),s.unobserve(t)}}},[t,n])}function $C(t){return t?"open":"closed"}function XK(t,e){return`${t}-trigger-${e}`}function ZK(t,e){return`${t}-content-${e}`}function G4(t){return e=>e.pointerType==="mouse"?t(e):void 0}var JK=$K,eY=LK,ALe=BK,tY=HK,ILe=UK,nY=WK,rY=qK,sY=KK;const iY=_.forwardRef(({className:t,children:e,...n},r)=>u.jsxs(JK,{ref:r,className:ve("relative z-10 flex max-w-max flex-1 items-center justify-center",t),...n,children:[e,u.jsx(cY,{})]}));iY.displayName=JK.displayName;const oY=_.forwardRef(({className:t,...e},n)=>u.jsx(eY,{ref:n,className:ve("group flex flex-1 list-none items-center justify-center space-x-1",t),...e}));oY.displayName=eY.displayName;const PLe=ALe,RLe=If("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"),aY=_.forwardRef(({className:t,children:e,...n},r)=>u.jsxs(tY,{ref:r,className:ve(RLe(),"group",t),...n,children:[e," ",u.jsx(_5,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));aY.displayName=tY.displayName;const lY=_.forwardRef(({className:t,...e},n)=>u.jsx(rY,{ref:n,className:ve("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",t),...e}));lY.displayName=rY.displayName;const C3=ILe,cY=_.forwardRef(({className:t,...e},n)=>u.jsx("div",{className:ve("absolute left-0 top-full flex justify-center"),children:u.jsx(sY,{className:ve("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",t),ref:n,...e})}));cY.displayName=sY.displayName;const NLe=_.forwardRef(({className:t,...e},n)=>u.jsx(nY,{ref:n,className:ve("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t),...e,children:u.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));NLe.displayName=nY.displayName;const FC=fb,uY=Nz,MLe=hb,dY=_.forwardRef(({className:t,...e},n)=>u.jsx(L2,{className:ve("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:n}));dY.displayName=L2.displayName;const kLe=If("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),L6=_.forwardRef(({side:t="right",className:e,children:n,...r},s)=>u.jsxs(MLe,{children:[u.jsx(dY,{}),u.jsx(z2,{ref:s,className:ve(kLe({side:t}),e),...r,children:n})]}));L6.displayName=z2.displayName;const z6=({className:t,...e})=>u.jsx("div",{className:ve("flex flex-col space-y-2 text-center sm:text-left",t),...e});z6.displayName="SheetHeader";const fY=_.forwardRef(({className:t,...e},n)=>u.jsx(V2,{ref:n,className:ve("text-lg font-semibold text-foreground",t),...e}));fY.displayName=V2.displayName;const DLe=_.forwardRef(({className:t,...e},n)=>u.jsx(B2,{ref:n,className:ve("text-sm text-muted-foreground",t),...e}));DLe.displayName=B2.displayName;function hY({className:t,...e}){return u.jsx("div",{className:ve("animate-pulse rounded-md bg-primary/10",t),...e})}const OLe=({discountFormatted:t})=>u.jsx(Bs,{to:"/register/subscriptions",children:u.jsx("div",{className:"text-center py-4 bg-orange-500/20",children:u.jsxs("p",{children:["🔔",u.jsxs("span",{className:"pl-1 underline",children:["Tienes un"," ",u.
3474jsx("strong",{className:"text-primary font-sans",children:t})," ","de descuento en tu primera caja de suscripción."]})]})})}),$Le=[{href:"#boxes-section",title:"Nuestras cajas",emoji:"📦"},{href:"#how-it-works-section",title:"¿Como funciona?",emoji:"💡"},{href:"#maifud-lovers-section",title:"MaifudLovers",emoji:"🧡"},{href:"#faq-section",title:"Preguntas frecuentes",emoji:"❓"}],FLe=({discountFormatted:t,user:e,isLoadingUser:n})=>{const r=Jr(),s=Zs(),[i,o]=_.useState(!1),[a,c]=_.useState(window.scrollY),[d,p]=_.useState(!0);_.useEffect(()=>{const E=()=>{c(C=>{const b=window.scrollY;return b<0?C:(p(C>b),b)})};return window.addEventListener("scroll",E),()=>{window.removeEventListener("scroll",E)}},[]);const m=()=>{tC().finally(()=>{s.clear(),r({to:"/"})})},v=!n&&e==null&&t,w=()=>n?u.jsx(hY,{className:"text-sm w-[76px] h-[19px]"}):u.jsx(u.Fragment,{children:e?.email?u.jsx("div",{className:"hidden md:flex flex-row space-x-4 items-center",children:u.jsx(rf,{to:"/user/home",children:"Tu suscripción"})}):u.jsxs("div",{className:"hidden md:flex flex-row space-x-4 items-center",children:[u.jsx(or,{to:"/login",className:"hover:text-primary transition-colors duration-300 ease-in-out",children:"Ir a tu suscripción"}),u.jsx(rf,{to:"/register/subscriptions",children:"Suscribirse"})]})});return u.jsx(u.Fragment,{children:u.jsxs("div",{className:ve("fixed w-full z-50 bg-white",d?"top-0 transition-all duration-300":"-top-48 transition-all duration-300"),children:[v&&u.jsx(OLe,{discountFormatted:t}),u.jsxs("header",{className:"max-w-7xl mx-auto py-4 px-6 lg:px-16 flex justify-between items-center text-base",children:[u.jsx(or,{to:"/",className:"flex items-baseline",children:u.jsx("img",{alt:"Maifud Logo",src:qp,className:" w-32 lg:w-44"})}),u.jsx("div",{className:"hidden lg:flex flex-row items-center",children:u.jsxs(iY,{className:"flex flex-row items-center space-x-4",children:[u.jsx(oY,{className:"px-0",children:u.jsxs(PLe,{children:[u.jsx(aY,{className:"text-base font-normal px-0",children:"Sobre Maifud"}),u.jsx(lY,{children:u.jsxs("div",{className:"flex flex-col space-y-2 p-4 min-w-[200px]",children:[u.jsx(C3,{children:u.jsx("a",{href:"https://tienda.maifud.cl/nosotros",target:"_blank",className:"hover:text-primary transition-colors duration-300 ease-in-out block w-full",rel:"noopener noreferrer",children:"Nosotros"})}),u.jsx(C3,{children:u.jsx("a",{href:"https://tienda.maifud.cl/el-problema",target:"_blank",className:"hover:text-primary transition-colors duration-300 ease-in-out block w-full",rel:"noopener noreferrer",children:"El problema"})}),u.jsx(C3,{children:u.jsx("a",{href:"#boxes-section",className:"hover:text-primary transition-colors duration-300 ease-in-out block w-full",children:"Nuestras cajas"})}),u.jsx(C3,{children:u.jsx("a",{href:"#faq-section",className:"hover:text-primary transition-colors duration-300 ease-in-out block w-full",children:"Q&A"})})]})})]})}),u.jsx("div",{children:u.jsx("a",{href:"https://tienda.maifud.cl/blog",target:"_blank",className:"hover:text-primary transition-colors duration-300 ease-in-out",rel:"noopener noreferrer",children:"Blog"})}),u.jsx("div",{children:u.jsx("a",{href:"https://tienda.maifud.cl/productos",target:"_blank",className:"hover:text-primary transition-colors duration-300 ease-in-out",rel:"noopener noreferrer",children:"Tienda"})}),w()]})}),u.jsx("button",{type:"button",className:"flex h-10 w-10 flex-col items-center justify-center rounded-full border bg-white shadow-sm cursor-pointer lg:hidden",onClick:()=>o(!0),"aria-label":"Abrir menú",children:u.jsx(sz,{size:22,className:"text-primary"})}),u.jsx(FC,{open:i,onOpenChange:o,children:u.jsxs(L6,{onPointerDownOutside:()=>o(!1),children:[u.jsx(z6,{children:u.jsx("img",{alt:"Maifud Logo",src:qp,className:"w-32"})}),u.jsx("h2",{className:"mt-6 mb-2 text-2xl font-bold tracking-tight",children:"Hola"}),e?.email?u.jsxs(u.Fragment,{children:[u.jsxs("ul",{className:"flex flex-col mb-2",children:[u.jsx("li",{className:"w-full",children:u.jsx(or,{to:"/user/home",className:"block rounded-md px-3 py-2 text-left font-medium hover:bg-primary/10 hover:text-primary",onClick:()=>o(!1),onKeyDown:E=>
3474{(E.key==="Enter"||E.key===" ")&&o(!1)},children:"Ir a tu suscripción"})}),u.jsx("li",{className:"w-full",children:u.jsx("button",{type:"button",className:"block rounded-md px-3 py-2 text-left font-medium hover:bg-primary/10 hover:text-primary",onClick:m,children:"Cerrar sesión"})})]}),u.jsx(Bi,{className:"mb-2"})]}):u.jsxs(u.Fragment,{children:[u.jsx("ul",{className:"flex flex-col mb-2",children:u.jsx("li",{className:"w-full",children:u.jsx(or,{to:"/login",className:"block rounded-md px-3 py-2 text-left font-medium hover:bg-primary/10 hover:text-primary",onClick:()=>o(!1),onKeyDown:E=>{(E.key==="Enter"||E.key===" ")&&o(!1)},children:"Iniciar sesión"})})}),u.jsx(Bi,{className:"mb-2"})]}),u.jsxs("div",{className:"relative",children:[u.jsx("h2",{className:"mt-4 text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:u.jsx("div",{children:"Suscripción"})}),u.jsx("ul",{className:"flex flex-col mb-2",children:$Le.map(({href:E,title:C})=>u.jsx("li",{className:"w-full",children:u.jsx(or,{to:E,className:"block rounded-md px-3 py-2 text-left font-medium hover:bg-primary/10 hover:text-primary",onClick:()=>o(!1),onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&o(!1)},children:u.jsx("span",{children:C})},E)},C))}),u.jsx(Bi,{className:"mb-4"}),u.jsx("h2",{className:"mt-4 mb-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:u.jsx("div",{children:"Más sobre Maifud"})}),u.jsxs("ul",{className:"space-y-2",children:[u.jsx("li",{children:u.jsx("a",{className:"block rounded-md px-3 py-2 font-medium hover:bg-primary/10 hover:text-primary",href:"https://tienda.maifud.cl/el-problema",children:"El problema"})}),u.jsx("li",{children:u.jsx("a",{className:"block rounded-md px-3 py-2 font-medium hover:bg-primary/10 hover:text-primary",href:"https://tienda.maifud.cl/nosotros",children:"Nosotros"})}),u.jsx("li",{children:u.jsx("a",{className:"block rounded-md px-3 py-2 font-medium hover:bg-primary/10 hover:text-primary",href:"https://tienda.maifud.cl/despacho",children:"Despachos"})}),u.jsx("li",{children:u.jsx("a",{className:"block rounded-md px-3 py-2 font-medium hover:bg-primary/10 hover:text-primary",href:"https://tienda.maifud.cl/blog",children:"Blog"})}),u.jsx("li",{children:u.jsx("a",{className:"block rounded-md px-3 py-2 font-medium hover:bg-primary/10 hover:text-primary",href:"https://tienda.maifud.cl/productos",children:"Tienda granel"})})]})]})]})})]})]})})},jLe="/assets/big.DwyKWKNf.webp",LLe=()=>{const{user:t,isLoading:e}=t6(),n=()=>e?u.jsx(hY,{className:"w-[250px] h-[60px] bg-orange-500/30"}):t?.email?u.jsx("button",{type:"button",className:"bg-primary text-primary-foreground rounded-md text-lg md:text-xl",children:u.jsx(or,{to:"/user/home",className:"py-4 px-6 font-raleway block",children:"Ir a tu suscripción"})}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"flex flex-col items-center lg:flex-row gap-4",children:u.jsx("button",{type:"button",className:"bg-primary text-primary-foreground rounded-md text-lg md:text-xl hover:shadow-lg",children:u.jsx(or,{to:"/register/subscriptions",className:"py-4 px-6 font-raleway block",children:"Quiero mi suscripción"})})}),u.jsx("a",{href:"https://tienda.maifud.cl/",target:"_blank",className:" text-white bg-[#7B7D2A] text-center py-2 px-6  rounded-md flex items-center justify-center text-lg hover:shadow-lg",rel:"noopener noreferrer",children:"Comprar a granel"})]});return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:ve("relative lg:pb-8 bg-[#f6e9dd]",t?.email?"pt-[76px]":"pt-[116px]"),children:u.jsxs("div",{className:"relative mx-auto flex max-w-7xl flex-col items-center px-4 pt-6 sm:px-8 lg:h-[340px] lg:flex-row lg:px-16 lg:pt-0",children:[u.jsxs("div",{className:"relative z-10 flex w-full flex-col items-center justify-center pb-6 text-center md:w-2/4 lg:items-start lg:pl-8 lg:text-left",children:[u.jsx("h1",{className:"mt-2 mb-4 px-1 text-3xl font-bold leading-tight lg:my-4 lg:px-0 lg:text-4xl",children:"Ahorra en tus frutas y verduras evitando el desperdicio de alimentos."}),u.jsx("p",{className:"mb-6 mt-2 text-base leading-relaxed sm:text-lg lg:text-2xl",children:"Personaliza el contenido de tu caja y recibe directo en tu puerta"}),u.jsx("div",{className:"w-full flex flex-col space-y-4 items-center justify-center lg:w-fit lg:items-start lg:justify-start",children:n()})]}),u.jsx("div",{className:"w-full pt-2 md:w-2/4 lg:flex lg:justify-end lg:py-6",children:u.jsx("img",{className:"z-30 mx-auto w-full max-w-md lg:max-w-none",src:jLe,alt:"Caja de maifud llena de frutas y verduras"})})]})}),u.jsx(RC,{})]})},zLe="/assets/step-1.CmIMjqWn.png",VLe="/assets/step-2.C7GqJ8WX.png",BLe="/assets/step-3.CZpWJgQS.png",X7="data:image/png;
3474base64,iVBORw0KGgoAAAANSUhEUgAAAV4AAACPCAMAAACF4EMWAAAAM1BMVEUAAAAjEwIjEwIjEwIjEwIjEwIjEwIjEwIjEwIjEwIjEwIjEwIjEwIjEwIjEwIjEwIjEwJQM7YaAAAAEHRSTlMAgEC/798QcM8gUK+Pn2AwckyJWQAABIxJREFUeNrt3dly4yAQBVC6G8Qqqf//a8eeGccW3pIIHMm559WVpdrUBcQiAwAAAAAAAAAAAAAAAAAAsH0DJ/qQmA20Eqds9UqQQhNzNLDCTEGfCDLSxIOBr2LRz5PRo8hfMemXudEjmD+H9ZukTMjkp5yu4DKa8UOzriYlGbjNawuuICduIm1EJgNXJm0k5Iwm3DB7azZPGBBfCdrQiE6uwtqUHTFSWyBtzJXZwIfJamvBo5f7MPjRaWvo6C7xqK1ZdHSLNhxQ4a7m0aLCPQ2TaI8KI4dPYnHanpBnLHP8k7J2IiNh2lH1c60FPCA2Zi5W+xGPqV3KI1ER0TNMnjsY2I9VWmCVo7EhXY4psMrRQfRZW3OEAdvZkJrP7SwKvMDFocBdRR8aF9jAwjBlbcj9xvkcM3taSHxg/kuj02bymydE5IOJTiToIyJSiKaGKWHfcaYReaIiYnULwvtExMC+iNONKWb/2JeNNNdrsucIjony5lrsUjZ7NLAfRfdgT/nwdywg28vYR7b/vH1mT6ME3SW7jfildKOxEsk+MuABMRswXOwjiOwp776sH9j8qJk9UdADyZ72GgL3jeZncKJxs0PWdpx5Keb0Dpn6eaa7611JwYnuaoS16fC92FPnRCT8osbbr7z1ThlrnYT3T9tKNLdseD/zvph+Iv2SgL3Pml6mrOBMDwOXX5eyL5pWsB/fbvK1jYFDTOU3Dbqek4aNNiMPanOb/VqERnsLmdVSQdLeIRvcyPk+ZFgVCeXXTxo6JkP0CvfZZNZ5oyWb9sJsVtp7l+a0tqldvrPugPPjnZOrZHVpa3vU4+jpSI62uMAjNCerFWFzMDmtbO+M0FzXO+unBfnL6ZdIoaA1e/2rM3mOxgz5dnE5aB/io+lmtvqMZJqYTyvFTj+IEFHQO8KpYAdzcf9+oBAxRzNnOpj4IJqFZG9uzGfRHkJJg+nIP6qulfL/RuKYSFz9wXnRyIkI0UfFbp7v52ieum66bupVXJeJB9MVhwd//FSP+fK5j83ni7ZTtlKI2TTDVe5Y36O4Tmhi010SvSWMnu9cGx88M/9L78FTiqYt0iWJ5oDt3gp7NLlndw7PJVRhSsRsehlEl/y/rndvha2KezuKFudLXfEcTV9zHQzzseS0x+sPl8W1Qmmo3iTx8pPjg60i6vgfJafr5WReag6LysbHb5J40TcfrqsbRVcLL7+Rbzqlwc2+KTHzVNxFADLzMTf6ouvqeqvr2B+5EsM+ecGG1zo5ZtNb1AU3rG66eZqT+QnxycdZtWrf/Y31aqK3b3n9XhyrccRrLIs5DbLmkpztnl0tp1nFa6Xqnm77pgevJzY/gRbVLW+XCT9M9EyCfkvGvU6fKW/Rbwh+G4f9tkn0jPSCw41vjcubz88+JWzvecIeZT1zTg+EaLQI3DaWgZClkCBw20l4P0VXFrXtaURte4r6SRkvIf0OwsXnXQV9yI1otmtE+6C0uEx+tdluYyXyXQ2iVyweJ7Tj68V4THkr7d64Era98LBTMdER3qEEAAAAAAAAAAAAAAAAAAAb8QfQBwyoTt9hswAAAABJRU5ErkJggg==",HLe=()=>u.jsxs("div",{className:"-translate-y-32",children:[u.jsx("div",{className:"bg-[#7b7d2b] h-24"}),u.jsx("div",{className:"py-20 bg-[#7b7d2b]",id:"how-it-works-section",children:u.jsxs("div",{className:"max-w-7xl mx-auto",children:[u.jsx("h4",{className:"text-center text-3xl mx-auto max-w-[600px] font-bold py-0 mb-2 text-white",children:"¿CÓMO FUNCIONA?"}),u.jsx("p",{className:"text-center mb-10 text-xl text-white",children:"¡Comer saludable, más fácil imposible!"}),u.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-2 mb-16 text-white",children:[u.jsxs("div",{className:"",children:[u.jsx("img",{src:zLe,alt:"Caja de Maifud",className:"w-2/4 mx-auto"}),u.jsx("p",{className:"text-center text-lg font-semibold",children:"Elige tu caja"})]}),u.jsx("div",{className:" w-16 md:w-28 rotate-90 py-6 md:py-0 md:rotate-0 md:-translate-x-10",children:u.jsx("img",{src:X7,alt:""})}),u.jsxs("div",{className:"",children:[u.jsx("img",{src:VLe,alt:"Imagen de un calendario",className:"w-2/4 mx-auto"}),u.jsx("p",{className:"text-center text-lg font-semibold",children:"Escoge tu frecuencia y el día en que quieres recibirla."})]}),u.jsx("div",{className:" w-16 md:w-28 rotate-90 py-6 md:py-0 md:rotate-0 md:-translate-x-10",children:u.jsx("img",{src:X7,alt:""})}),u.jsxs("div",{className:"",children:[u.jsx("img",{src:DK,alt:"Edita el contenido de tu caja",className:"w-2/4 mx-auto"}),u.jsx("p",{className:"text-center text-lg font-semibold",children:"Edita el contenido de tu caja."}),u.jsx("p",{className:"text-center text-xs",children:"Puedes agregar más productos sin costo de despacho extra"})]}),u.jsx("div",{className:"w-16 md:w-28 rotate-90 py-6 md:py-0 md:rotate-0 md:translate-x-10",children:u.jsx("img",{src:X7,alt:""})}),u.jsxs("div",{className:"",children:[u.jsx("img",{src:BLe,alt:"Repartidor de Maifud entregando caja a cliente",className:"w-2/4 mx-auto"}),u.jsx("p",{className:"text-center text-lg font-semibold",children:"Disfruta de tu caja"})]})]}),u.jsx("p",{className:"text-center text-xl max-w-[600px] mx-auto p-4 font-semibold text-white leading-tight mb-6",children:u.jsx("a",{href:"https://tienda.maifud.cl/despacho",className:"underline",target:"_blank",rel:"noopener noreferrer",children:"Puedes pedir tu suscripción directamente a la puerta de tu casa o retirar en los puntos de retiro asociados."})}),u.jsx("div",{className:"flex justify-center",children:u.jsx("button",{type:"button",className:"bg-primary text-primary-foreground rounded-md text-lg py-4 px-6 md:text-xl",children:u.jsx(or,{to:"/register/subscriptions",children:"¡Quiero mi suscripción!"})})})]})})]}),ULe="/assets/woman-box.DvwobLzW.png",WLe=({text:t,author:e})=>u.jsxs("li",{className:"p-4 bg-[#f6e9dd]",children:[u.jsx("p",{className:"text-sm mb-4",children:t}),u.jsx("p",{className:"text-base font-semibold",children:e})]}),qLe=[{text:"Debo decir que la semana pasada pedí una caja y me sorprendió lo surtida y buena lo que venía y su precio fantástico!... lo recomiendo 100%",author:"NATACHA"},{text:"Recibí hoy mi caja, siento que fue la mejor compra del mes, definitivamente seguiré comprando",author:"PAULINA"},{text:"Me encanta! La he comprado varias veces y todo lo he aprovechado al máximo",author:"CLAUDIA"},{text:"Amoooo!!! 🥰👏 cada semana felicidad pura con la llegada de la caja imperfecta",author:"CATALINA"}],GLe=()=>u.jsx("div",{className:"pb-0 max-w-7xl mx-auto",id:"maifud-lovers-section",children:u.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[u.jsx("div",{className:"w-full lg:w-1/2",children:u.jsx("img",{src:ULe,alt:"Mujer sosteniendo una caja de Maifud"})}),u.jsxs("div",{className:"w-full lg:w-1/2 pt-2 lg:pt-20",children:[u.jsxs("h4",{className:"text-center lg:text-left text-3xl mb-6 font-bold",children:["Cada vez somos más"," ",u.
3474jsx("strong",{className:"text-primary",children:"#MAIFUDLOVERS"})]}),u.jsx("ul",{className:"grid grid-cols-2 gap-4 pb-10",children:qLe.map(t=>u.jsx(WLe,{author:t.author,text:t.text},t.author))})]})]})}),KLe=[{id:10408861,name:"1 Kg Zanahorias",price:790,compare_at_price:1190,images:[{id:18024881,url:"https://images.jumpseller.com/store/maifud/10408861/0D6FF30C-5743-4D47-87ED-7D6EFFCD2ABB.jpeg?1722868569",position:1},{id:18024882,url:"https://images.jumpseller.com/store/maifud/10408861/BAACF9FB-42E7-482B-B9BE-3AD367FDE849.jpeg?1722868569",position:3},{id:51285055,url:"https://images.jumpseller.com/store/maifud/10408861/_DSC0918.jpg?1722868569",position:4},{id:51285056,url:"https://images.jumpseller.com/store/maifud/10408861/_DSC0956.jpg?1722868569",position:5}]},{id:10699942,name:"1 Kg Manzanas Fuji",price:1490,compare_at_price:2490,images:[{id:31963604,url:"https://images.jumpseller.com/store/maifud/10699942/90B61A8A-6610-4FA9-BDEA-3E9EDA59F433.jpeg?1685206143",position:1},{id:35789583,url:"https://images.jumpseller.com/store/maifud/10699942/1298FAAF-6B38-4E91-8E02-23BE85701011.jpeg?1685206143",position:2}]},{id:10999718,name:"1 Kg Papas Grandes",price:990,compare_at_price:1390,images:[{id:18727134,url:"https://images.jumpseller.com/store/maifud/10999718/IMG_2389.jpg?1658247798",position:1}]},{id:21807564,name:"Barra Protein Caramel Salted Nut (5 Un)",price:3490,compare_at_price:5e3,images:[{id:41214890,url:"https://images.jumpseller.com/store/maifud/21807564/barras_protein_2.jpg?1697857793",position:1}]},{id:8880147,name:"1 Kg Cebollas Moradas",price:1290,compare_at_price:1990,images:[{id:14530804,url:"https://images.jumpseller.com/store/maifud/8880147/Cebollas_Moradas.jpg?1655572835",position:1}]},{id:10999736,name:"1 Kg Limones",price:1650,compare_at_price:2090,images:[{id:24031895,url:"https://images.jumpseller.com/store/maifud/10999736/83596D15-B20E-4B31-B81B-963D6CB05D9B.jpeg?1722435641",position:1},{id:18727137,url:"https://images.jumpseller.com/store/maifud/10999736/A34F10D2-33E3-4B51-A89C-08046CEF4ED1.jpeg?1722435641",position:2},{id:51285458,url:"https://images.jumpseller.com/store/maifud/10999736/_DSC09352.jpg?1722435641",position:4}]},{id:12700466,name:"Bandeja 30 Huevos Extra",price:10990,compare_at_price:12690,images:[{id:68687405,url:"https://cdnx.jumpseller.com/maifud/image/68687405/17-30-HUEVOS.jpg?",position:1},{id:21598356,url:"https://images.jumpseller.com/store/maifud/12700466/_DSC1226.jpg?1732875777",position:2},{id:21598357,url:"https://images.jumpseller.com/store/maifud/12700466/IMG_2545.jpg?1732875777",position:3}]},{id:25360375,name:"1 Kg Palta Hass",price:5190,compare_at_price:6490,images:[{id:25360375,url:"https://cdnx.jumpseller.com/maifud/image/25360375/IMG_6001.jpg?1658254990",position:1}]}],YLe=()=>u.jsx("div",{className:"max-w-7xl mx-auto mb-10",children:u.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 p-8 gap-4",children:[u.jsxs("div",{children:[u.jsx("div",{className:"grid grid-cols-3 md:grid-cols-4 gap-4 ",children:KLe.map(t=>{let e=0;const n=t.images[0]?.url??(t.images[0]?.id?`https://cdnx.jumpseller.com/maifud/image/${t.images[0].id}/thumb/270/360`:void 0);return t.price&&t.compare_at_price&&(e=Math.floor(100-t.price*100/t.compare_at_price)),u.jsxs("div",{className:"border rounded-md p-4 relative",children:[u.jsx("div",{className:"mb-4",children:n&&u.jsx("img",{src:n,alt:t.name})}),u.jsxs("div",{children:[u.jsx("p",{className:"leading-0 text-sm font-semibold h-10 line-clamp-2",children:t.name}),e>0&&u.jsxs("p",{className:"absolute top-2 right-2 bg-primary text-white px-2 rounded-md",children:[u.jsxs("strong",{className:"font-sans text-sm",children:[e,"%"]})," ",u.jsx("span",{className:"text-[12px]",children:"dto."})]}),u.jsxs("div",{className:"flex flex-col items-start",children:[u.jsx("p",{className:"font-sans text-2xl text-primary font-semibold",children:Ul(t.price)}),t.compare_at_price&&u.jsx("p",{className:"font-sans text-[12px] line-through text-gray-400",children:Ul(t.compare_at_price)})]})]})]},t.id)})}),u.jsx("p",{className:"text-sm mt-2 text-center",children:"*Los precios y descuentos mostrados son referenciales y están sujetos a cambios sin previo aviso."})]}),u.jsxs("div",{className:"text-center flex flex-col justify-center order-first mb-10 lg:order-last",children:[u.jsx("h4",{className:"text-3xl font-semibold mb-10",children:"Tambien puedes comprar a granel en la tienda Maifud"}),u.jsxs("div",{className:"flex flex-col gap-8",children:[u.jsx("p",{children:"Disfruta de precios hasta un 30% más bajos que en los supermercados. Escoge lo que más te guste, ya sea a granel o con nuestras cajas de suscripción."}),u.jsx("p",{children:"Cada compra ayuda a combatir el desperdicio y rescatas productos frescos que de otro modo se desperdiciarían. ¡Haz tu c
3474ompra y apoya un consumo más sostenible!"}),u.jsx("div",{className:"flex justify-center",children:u.jsx("a",{href:"https://tienda.maifud.cl",target:"_blank",className:"bg-primary text-primary-foreground rounded-md text-lg py-4 px-6 md:text-xl",rel:"noopener noreferrer",children:"Ir a tienda Maifud"})})]})]})]})}),QLe="/assets/duna.pUIYmk2-.svg",XLe="/assets/emol.DFquF_mk.avif",ZLe="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20824.88%20106.17'%20id='laTerceraWeb1'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cg%20id='la-tercera-web'%20data-name='la-tercera-web'%3e%3cpath%20fill='%23AA272F'%20d='M0,0V106.17H111V0ZM54.58,86.88h-41V19.3H24.16V77.44H54.58ZM97.46,28.74H77.39V86.88H66.75V28.74H46.68V19.3H97.46Z'%3e%3c/path%3e%3cpolygon%20fill='%23AA272F'%20points='272.86%2018.25%20301.5%2018.25%20301.5%20101.3%20316.69%20101.3%20316.69%2018.25%20345.38%2018.25%20345.38%204.77%20272.86%204.77%20272.86%2018.25'%3e%3c/polygon%3e%3cpath%20fill='%23AA272F'%20d='M493.43,41.67c0-22.29-14.62-36.9-41.16-36.9H427.56V101.3h15.18v-23h9.53a47.71,47.71,0,0,0,6.94-.45l16.47,23.45h18L474.11,73.92C486.77,68.08,493.43,56.6,493.43,41.67ZM451.74,65.24h-9v-47h9c18.42,0,26.07,8.83,26.07,23.42C477.81,56.45,470.29,65.24,451.74,65.24Z'%3e%3c/path%3e%3cpath%20fill='%23AA272F'%20d='M549.06,88.82c-19.41,0-33.64-14.9-33.64-35.78,0-20.45,13.91-35.8,33.09-35.8,12.77,0,21,4.57,27.4,13.22l11.64-8.23c-8.38-11.78-20.72-18.72-38.62-18.72-27.54,0-49.27,21-49.27,49.53s21.3,49.53,48.85,49.53c18.74,0,31.37-6.52,41.32-19.72L578,74.73C570.79,84.11,561.57,88.82,549.06,88.82Z'%3e%3c/path%3e%3cpath%20fill='%23AA272F'%20d='M735.9,41.67c0-22.29-14.64-36.9-41.18-36.9H670V101.3h15.24v-23h9.46a47.43,47.43,0,0,0,6.92-.45l16.49,23.45h18l-19.6-27.38C729.22,68.08,735.9,56.6,735.9,41.67ZM694.12,65.24h-8.86v-47h8.86c18.44,0,26.14,8.83,26.14,23.42C720.26,56.45,712.74,65.24,694.12,65.24Z'%3e%3c/path%3e%3cpath%20fill='%23AA272F'%20d='M782.43,2.8h-.86l-42.31,98.51h15.33l5.56-13.49h43.16l5.54,13.49h16ZM765.81,74.33l16.07-38.19,15.76,38.19Z'%3e%3c/path%3e%3cpolygon%20fill='%23AA272F'%20points='598.05%20101.3%20660.92%20101.3%20660.92%2087.82%20613.25%2087.82%20613.25%2071.48%20654.24%2071.48%20654.24%2058.28%20613.25%2058.28%20613.25%2018.25%20660.92%2018.25%20660.92%204.77%20598.05%204.77%20598.05%20101.3'%3e%3c/polygon%3e%3cpolygon%20fill='%23AA272F'%20points='370.07%2071.49%20411.1%2071.49%20411.1%2058.28%20370.07%2058.28%20370.07%2018.25%20418.27%2018.25%20418.27%204.77%20354.91%204.77%20354.91%20101.3%20418.36%20101.3%20418.36%2087.82%20370.07%2087.82%20370.07%2071.49'%3e%3c/polygon%3e%3cpath%20fill='%23AA272F'%20d='M230.14,2.83l-36.51,85H155.12v-83H140v96.51h63.23l5.51-13.49h43.2l5.51,13.49h16L231,2.83ZM214.41,74.35l16-38.16,15.75,38.16Z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e",JLe="/assets/meganoticias.C3H2kCDs.avif",eze="/assets/pais_circular.DcOLqgIY.png",tze="/assets/t13.DkeXnzbu.avif",nze=[{image:JLe,link:"https://www.meganoticias.cl/nacional/378915-vivir-con-sobras-de-la-feria-inflacion-chile-historias-reportaje-01-06-2022.html",alt:"Meganoticias"},{image:XLe,link:"https://www.emol.com/noticias/Economia/2024/01/11/1118261/maifud-dario-contreras.html",alt:"Emol"},{image:QLe,link:"https://www.duna.cl/podcasts/38-en-que-se-parecen-las-startups-nanolife-y-maifud/#",alt:"Duna"},{image:ZLe,link:"https://www.latercera.com/pulso/noticia/estos-son-los-siete-ganadores-del-premio-iniciativas-sustentables-2023/H2NABIEI5VHSDEPOTGNVLVZUMU/",alt:"La Tercera"},{image:eze,link:"https://www.paiscircular.cl/economia-circular/maifud-ofrece-frutas-verduras/",alt:"País circular"},{image:tze,link:"https://www.t13.cl/noticia/tendencias/mujer-sustentable-t13-mayo-mes-del-reciclaje-17-5-2023",alt:"Teletrece"}],rze=()=>u.jsx("div",{className:"py-10 bg-white",id:"press-section",children:u.jsxs("div",{className:"max-w-7xl mx-auto",children:[u.jsx("h4",{className:"text-center text-3xl mx-auto max-w-[600px] font-bold py-0 mb-6",children:"PRENSA"}),u.jsx("div",{className:"grid grid-cols-3 gap-8 lg:grid-cols-6 lg:gap-4 items-center",children:nze.map(t=>u.jsx("div",{className:"px-4",children:u.jsx("a",{href:t.link,target:"_blank",rel:"noopener noreferrer",children:u.jsx("img",{src:t.image,className:"w-[158px] h-[48px] max-h-12 object-contain opacity-70 hover:opacity-100",alt:t.alt})})},t.image))})]})});var V1={}
vendor: 5,375 bytes, line 3474
3474,r0={exports:{}},sze=r0.exports,RD;function ize(){return RD||(RD=1,function(t,e){(function(n,r){r(e)})(sze,function(n){var r=function(){return r=Object.assign||function(i){for(var o,a=1,c=arguments.length;a<c;a++)for(var d in o=arguments[a])Object.prototype.hasOwnProperty.call(o,d)&&(i[d]=o[d]);return i},r.apply(this,arguments)},s=function(){function i(o,a,c){var d=this;this.endVal=a,this.options=c,this.version="2.8.1",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(p){d.startTime||(d.startTime=p);var m=p-d.startTime;d.remaining=d.duration-m,d.useEasing?d.countDown?d.frameVal=d.startVal-d.easingFn(m,0,d.startVal-d.endVal,d.duration):d.frameVal=d.easingFn(m,d.startVal,d.endVal-d.startVal,d.duration):d.frameVal=d.startVal+(d.endVal-d.startVal)*(m/d.duration);var v=d.countDown?d.frameVal<d.endVal:d.frameVal>d.endVal;d.frameVal=v?d.endVal:d.frameVal,d.frameVal=Number(d.frameVal.toFixed(d.options.decimalPlaces)),d.printValue(d.frameVal),m<d.duration?d.rAF=requestAnimationFrame(d.count):d.finalEndVal!==null?d.update(d.finalEndVal):d.options.onCompleteCallback&&d.options.onCompleteCallback()},this.formatNumber=function(p){var m,v,w,E,C=p<0?"-":"";m=Math.abs(p).toFixed(d.options.decimalPlaces);var b=(m+="").split(".");if(v=b[0],w=b.length>1?d.options.decimal+b[1]:"",d.options.useGrouping){E="";for(var S=3,P=0,R=0,z=v.length;R<z;++R)d.options.useIndianSeparators&&R===4&&(S=2,P=1),R!==0&&P%S==0&&(E=d.options.separator+E),P++,E=v[z-R-1]+E;v=E}return d.options.numerals&&d.options.numerals.length&&(v=v.replace(/[0-9]/g,function(O){return d.options.numerals[+O]}),w=w.replace(/[0-9]/g,function(O){return d.options.numerals[+O]})),C+d.options.prefix+v+w+d.options.suffix},this.easeOutExpo=function(p,m,v,w){return v*(1-Math.pow(2,-10*p/w))*1024/1023+m},this.options=r(r({},this.defaults),c),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(a),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el=typeof o=="string"?document.getElementById(o):o,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,o):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return d.handleScroll(d)}),window.onscroll=function(){window.onScrollFns.forEach(function(p){return p()})},this.handleScroll(this)))}return i.prototype.handleScroll=function(o){if(o&&window&&!o.once){var a=window.innerHeight+window.scrollY,c=o.el.getBoundingClientRect(),d=c.top+window.pageYOffset,p=c.top+c.height+window.pageYOffset;p<a&&p>window.scrollY&&o.paused?(o.paused=!1,setTimeout(function(){return o.start()},o.options.scrollSpyDelay),o.options.scrollSpyOnce&&(o.once=!0)):(window.scrollY>p||d>a)&&!o.paused&&o.reset()}},i.prototype.determineDirectionAndSmartEasing=function(){var o=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>o;var a=o-this.startVal;if(Math.abs(a)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=o;var c=this.countDown?1:-1;this.endVal=o+c*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=o,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},i.prototype.start=function(o){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),o&&(this.options.onCompleteCallback=o),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},i.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},i.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},i.prototype.update=function(o){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(o),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},i.prototype.printValue=function(o){var a;if(this.el){var c=this.formattingFn(o);!((a=this.options.plugin)===null||a===void 0)&&a.render?this.options.plugin.render(this.el,c):this.el.tagName==="INPUT"?this.el.value=c:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=c:this.el.
3474innerHTML=c}},i.prototype.ensureNumber=function(o){return typeof o=="number"&&!isNaN(o)},i.prototype.validateValue=function(o){var a=Number(o);return this.ensureNumber(a)?a:(this.error="[CountUp] invalid start or end value: ".concat(o),null)},i.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},i}();n.CountUp=s})}(r0,r0.exports)),r0.exports}var ND;function oze(){if(ND)return V1;ND=1,Object.defineProperty(V1,"__esModule",{value:!0});var t=hm(),e=ize();function n(I,T){var k=I==null?null:typeof Symbol<"u"&&I[Symbol.iterator]||I["@@iterator"];if(k!=null){var j,L,V,Y,G=[],q=!0,U=!1;try{if(V=(k=k.call(I)).next,T!==0)for(;!(q=(j=V.call(k)).done)&&(G.push(j.value),G.length!==T);q=!0);}catch(B){U=!0,L=B}finally{try{if(!q&&k.return!=null&&(Y=k.return(),Object(Y)!==Y))return}finally{if(U)throw L}}return G}}function r(I,T){var k=Object.keys(I);if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(I);T&&(j=j.filter(function(L){return Object.getOwnPropertyDescriptor(I,L).enumerable})),k.push.apply(k,j)}return k}function s(I){for(var T=1;T<arguments.length;T++){var k=arguments[T]!=null?arguments[T]:{};T%2?r(Object(k),!0).forEach(function(j){a(I,j,k[j])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(k)):r(Object(k)).forEach(function(j){Object.defineProperty(I,j,Object.getOwnPropertyDescriptor(k,j))})}return I}function i(I,T){if(typeof I!="object"||!I)return I;var k=I[Symbol.toPrimitive];if(k!==void 0){var j=k.call(I,T);if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(I)}function o(I){var T=i(I,"string");return typeof T=="symbol"?T:String(T)}function a(I,T,k){return T=o(T),T in I?Object.defineProperty(I,T,{value:k,enumerable:!0,configurable:!0,writable:!0}):I[T]=k,I}function c(){return c=Object.assign?Object.assign.bind():function(I){for(var T=1;T<arguments.length;T++){var k=arguments[T];for(var j in k)Object.prototype.hasOwnProperty.call(k,j)&&(I[j]=k[j])}return I},c.apply(this,arguments)}function d(I,T){if(I==null)return{};var k={},j=Object.keys(I),L,V;for(V=0;V<j.length;V++)L=j[V],!(T.indexOf(L)>=0)&&(k[L]=I[L]);return k}function p(I,T){if(I==null)return{};var k=d(I,T),j,L;if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(I);for(L=0;L<V.length;L++)j=V[L],!(T.indexOf(j)>=0)&&Object.prototype.propertyIsEnumerable.call(I,j)&&(k[j]=I[j])}return k}function m(I,T){return v(I)||n(I,T)||w(I,T)||C()}function v(I){if(Array.isArray(I))return I}function w(I,T){if(I){if(typeof I=="string")return E(I,T);var k=Object.prototype.toString.call(I).slice(8,-1);if(k==="Object"&&I.constructor&&(k=I.constructor.name),k==="Map"||k==="Set")return Array.from(I);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return E(I,T)}}function E(I,T){(T==null||T>I.length)&&(T=I.length);for(var k=0,j=new Array(T);k<T;k++)j[k]=I[k];return j}function C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3475In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?t.useLayoutEffect:t.useEffect;function S(I){var T=t.useRef(I);return b(function(){T.current=I}),t.useCallback(function(){for(var k=arguments.length,j=new Array(k),L=0;L<k;L++)j[L]=arguments[L];return T.current.apply(void 0,j)},[])}var P=function(T,k){var j=k.decimal,L=k.decimals,V=k.duration,Y=k.easingFn,G=k.end,q=k.formattingFn,U=k.numerals,B=k.prefix,ne=k.separator,oe=k.start,Q=k.suffix,ie=k.useEasing,ue=k.useGrouping,ge=k.useIndianSeparators,Ae=k.enableScrollSpy,Pe=k.scrollSpyDelay,he=k.scrollSpyOnce,xe=k.plugin;return new e.CountUp(T,G,{startVal:oe,duration:V,decimal:j,decimalPlaces:L,easingFn:Y,formattingFn:q,numerals:U,separator:ne,prefix:B,suffix:Q,plugin:xe,useEasing:ie,useIndianSeparators:ge,useGrouping:ue,enableScrollSpy:Ae,scrollSpyDelay:Pe,scrollSpyOnce:he})},R=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],z={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},O=function(T){var k=Object.fromEntries(Object.entries(T).filter(function(Pt){var Rt=m(Pt,2),Tt=Rt[1];return Tt!==void 0})),j=t.useMemo(function(){return s(s({},z),k)},[T]),L=j.ref,V=j.startOnMount,Y=j.enableReinitialize,G=j.delay,q=j.onEnd,U=j.onStart,B=j.onPauseResume,ne=j.onReset,oe=j.onUpdate,Q=p(j,R),ie=t.useRef(),ue=t.useRef(),ge=t.useRef(!1),Ae=S(function(){return P(typeof L=="string"?L:L.current,Q)}),Pe=S(function(Pt){var Rt=ie.current;if(Rt&&!Pt)return Rt;var Tt=Ae();return ie.current=Tt,Tt}
3475),he=S(function(){var Pt=function(){return Pe(!0).start(function(){q?.({pauseResume:xe,reset:Ne,start:Ze,update:ze})})};G&&G>0?ue.current=setTimeout(Pt,G*1e3):Pt(),U?.({pauseResume:xe,reset:Ne,update:ze})}),xe=S(function(){Pe().pauseResume(),B?.({reset:Ne,start:Ze,update:ze})}),Ne=S(function(){Pe().el&&(ue.current&&clearTimeout(ue.current),Pe().reset(),ne?.({pauseResume:xe,start:Ze,update:ze}))}),ze=S(function(Pt){Pe().update(Pt),oe?.({pauseResume:xe,reset:Ne,start:Ze})}),Ze=S(function(){Ne(),he()}),ut=S(function(Pt){V&&(Pt&&Ne(),he())});return t.useEffect(function(){ge.current?Y&&ut(!0):(ge.current=!0,ut())},[Y,ge,ut,G,T.start,T.suffix,T.prefix,T.duration,T.separator,T.decimals,T.decimal,T.formattingFn]),t.useEffect(function(){return function(){Ne()}},[Ne]),{start:Ze,pauseResume:xe,reset:Ne,update:ze,getCountUp:Pe}},F=["className","redraw","containerProps","children","style"],D=function(T){var k=T.className,j=T.redraw,L=T.containerProps,V=T.children,Y=T.style,G=p(T,F),q=t.useRef(null),U=t.useRef(!1),B=O(s(s({},G),{},{ref:q,startOnMount:typeof V!="function"||T.delay===0,enableReinitialize:!1})),ne=B.start,oe=B.reset,Q=B.update,ie=B.pauseResume,ue=B.getCountUp,ge=S(function(){ne()}),Ae=S(function(xe){T.preserveValue||oe(),Q(xe)}),Pe=S(function(){if(typeof T.children=="function"&&!(q.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}ue()});t.useEffect(function(){Pe()},[Pe]),t.useEffect(function(){U.current&&Ae(T.end)},[T.end,Ae]);var he=j&&T;return t.useEffect(function(){j&&U.current&&ge()},[ge,j,he]),t.useEffect(function(){!j&&U.current&&ge()},[ge,j,T.start,T.suffix,T.prefix,T.duration,T.separator,T.decimals,T.decimal,T.className,T.formattingFn]),t.useEffect(function(){U.current=!0},[]),typeof V=="function"?V({countUpRef:q,start:ne,reset:oe,update:Q,pauseResume:ie,getCountUp:ue}):t.createElement("span",c({className:k,ref:q,style:Y},L),typeof T.start<"u"?ue().formattingFn(T.start):"")};return V1.default=D,V1.useCountUp=O,V1}var aze=oze();const lze=xf(aze);var qE=new Map,T3=new WeakMap,MD=0,cze=void 0;function uze(t){return t?(T3.has(t)||(MD+=1,T3.set(t,MD.toString())),T3.get(t)):"0"}function dze(t){return Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>`${e}_${e==="root"?uze(t.root):t[e]}`).toString()}function fze(t){const e=dze(t);let n=qE.get(e);if(!n){const r=new Map;let s;const i=new IntersectionObserver(o=>{o.forEach(a=>{var c;const d=a.isIntersecting&&s.some(p=>a.intersectionRatio>=p);t.trackVisibility&&typeof a.isVisible>"u"&&(a.isVisible=d),(c=r.get(a.target))==null||c.forEach(p=>{p(d,a)})})},t);s=i.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),n={id:e,observer:i,elements:r},qE.set(e,n)}return n}function hze(t,e,n={},r=cze){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const c=t.getBoundingClientRect();return e(r,{isIntersecting:r,target:t,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),()=>{}}const{id:s,observer:i,elements:o}=fze(n),a=o.get(t)||[];return o.has(t)||o.set(t,a),a.push(e),i.observe(t),function(){a.splice(a.indexOf(e),1),a.length===0&&(o.delete(t),i.unobserve(t)),o.size===0&&(i.disconnect(),qE.delete(s))}}function pze({threshold:t,delay:e,trackVisibility:n,rootMargin:r,root:s,triggerOnce:i,skip:o,initialInView:a,fallbackInView:c,onChange:d}={}){var p;const[m,v]=_.useState(null),w=_.useRef(d),[E,C]=_.useState({inView:!!a,entry:void 0});w.current=d,_.useEffect(()=>{if(o||!m)return;let R;return R=hze(m,(z,O)=>{C({inView:z,entry:O}),w.current&&w.current(z,O),O.isIntersecting&&i&&R&&(R(),R=void 0)},{root:s,rootMargin:r,threshold:t,trackVisibility:n,delay:e},c),()=>{R&&R()}},[Array.isArray(t)?t.toString():t,m,s,r,i,o,n,c,e]);const b=(p=E.entry)==null?void 0:p.target,S=_.useRef(void 0);!m&&b&&!i&&!o&&S.current!==b&&(S.current=b,C({inView:!!a,entry:void 0}));const P=[v,E.inView,E.entry];return P.ref=P[0],P.inView=P[1],P.entry=P[2],P}const Z7=({value:t,children:e,type:n,visible:r})=>u.jsxs("li",{className:"flex flex-col items-center justify-center",children:[u.jsx("div",{className:"text-primary text-5xl font-bold font-sans",children:r&&u.jsx(lze,{end:t,duration:1,separator:".",suffix:n==="PERCENTAGE"?"%":""})}),u.jsx("p",{className:"text-base font-semibold text-center",children:e})]}),mze=()=>{const{ref:t,inView:e}=pze({threshold:0});return u.jsx("div",{ref:t,className:"pt-10 pb-20 bg-[#f6e9dd]",children:u.jsxs("div",{className:"max-w-7xl mx-auto",children:[u.jsxs("div",{className:"lg:pl-20",children:[u.jsx("h4",{className:"text-center md:text-left text-4xl mb-2 font-bold",children:"EL PROBLEMA"}),u.jsx("p",{className:"text-center lg:text-left mb-8 text-xl",children:"Qué significa en desperdicio de alimentos"})]}),u.jsxs("ul",{className:"grid grid-cols-1 mb-6 items-start lg:mb-0 md:grid-cols-3 p-4 space-y-6 lg:space-y-0",children:[u.jsx(Z7,{type:"PERCENTAGE",value:40,visible:e,children:"De los alimentos terminan en la basura.*"}),u.jsx(Z7,{type:"NUMBER",value:2500,visible:e,children:"Millones de toneladas en el mund
3475o terminan en la basura.*"}),u.jsx(Z7,{type:"PERCENTAGE",value:48,visible:e,children:"Del total ocurre en la etapa de producción.*"})]}),u.jsx("p",{className:"text-center text-xs text-muted-foreground",children:"* Fuente: WWF 2022, fibl.org 2013, World Resourse Institute 2013, CountryEconomy.com, FAO"}),u.jsxs("div",{className:"space-y-4 md:grid md:grid-cols-3 px-4 py-6 md:px-28 md:py-20",children:[u.jsx("p",{className:"text-center md:text-left text-2xl font-bold",children:"EL GRAN PROBLEMA QUE QUEREMOS RESOLVER ES EL DESPERDICIO DE ALIMENTOS"}),u.jsxs("div",{className:"md:col-start-3 text-muted-foreground text-lg text-center md:text-right",children:[u.jsx("p",{children:"Únete a nosotros en la lucha contra este gran problema mundial."}),u.jsx("p",{children:"Juntos podemos hacer la diferencia"})]})]})]})})},gze=()=>{const{data:t}=c6({}),e=t?.data,n=e?.subscriptions[0].discount_formatted,{user:r,isLoading:s}=t6();return u.jsxs("div",{className:"bg-white",children:[u.jsx(FLe,{discountFormatted:n,user:r,isLoadingUser:s}),u.jsx(LLe,{}),u.jsx(uLe,{}),u.jsx(Lje,{subscriptions:e?.subscriptions,showInitialDiscount:r==null&&!s}),u.jsx(HLe,{}),u.jsx(YLe,{}),u.jsx(rze,{}),u.jsx(GLe,{}),u.jsx(mze,{}),u.jsx(oLe,{}),u.jsx(dLe,{})]})},vze=(t,e,n=!1,r={flat:0,percentage:0})=>{const s=t.reduce((c,d)=>c+d.price*d.quantity,0),i=s>=jve,o=n||i?0:e?.shippingCost??0,a=s+o-r.flat-Math.trunc(s*r.percentage/100);return{subtotal:s,shippingCost:o,total:a}};var yze=(t=>(t.ADD_ITEM="ADD_ITEM",t.REMOVE_ITEM="REMOVE_ITEM",t.UPDATE_QUANTITY="UPDATE_QUANTITY",t.CLEAR_CART="CLEAR_CART",t.SET_DELIVERY_DATE="SET_DELIVERY_DATE",t.SET_UPSELL_STATUS="SET_UPSELL_STATUS",t.APPLY_FLAT_DISCOUNT="APPLY_FLAT_DISCOUNT",t.APPLY_PERCENTAGE_DISCOUNT="APPLY_PERCENTAGE_DISCOUNT",t.SET_ERROR="SET_ERROR",t.CLEAR_ERROR="CLEAR_ERROR",t.SET_CART_VIEW_IS_OPEN="SET_CART_VIEW_IS_OPEN",t.SET_CART_VIEW_IS_CLOSED="SET_CART_VIEW_IS_CLOSED",t.SET_SHOW_CONFIRMATION="SET_SHOW_CONFIRMATION",t.SET_SHOW_CART_DETAILS="SET_SHOW_CART_DETAILS",t.SET_CART_PRODUCT_DETAIL="SET_CART_PRODUCT_DETAIL",t.SET_CONFIRMATION_OPEN="SET_CONFIRMATION_OPEN",t.SET_SHIPPING_COST="SET_SHIPPING_COST",t.SET_DATA_DELIVERY_DATES="SET_DATA_DELIVERY_DATES",t.SET_SUBSCRIPTION_NAME="SET_SUBSCRIPTION_NAME",t.SET_SUBSCRIPTION_DATE="SET_SUBSCRIPTION_DATE",t.SET_SHIPPING_TYPE="SET_SHIPPING_TYPE",t))(yze||{});const $h=t=>String(t),xze=(t,e)=>{let n=!1;const r={...t};switch(e.type){case"ADD_ITEM":{const{product:s,quantity:i}=e.payload,o=$h(s.id),a=t.items.findIndex(d=>$h(d.id)===o);let c;if(a>-1)c=t.items.map((d,p)=>p===a?{...d,quantity:d.quantity+i}:d);else{const d={...s,quantity:i};c=[...t.items,d]}r.ui.cartViewIsOpen=!0,r.items=c,n=!0;break}case"REMOVE_ITEM":{const s=$h(e.payload.productId);r.items=t.items.filter(i=>$h(i.id)!==s),n=!0;break}case"UPDATE_QUANTITY":{const{productId:s,quantity:i}=e.payload,o=$h(s);let a=t.items.map(c=>$h(c.id)===o?{...c,quantity:i}:c);a=a.filter(c=>c.quantity>0),r.items=a,n=!0;break}case"CLEAR_CART":{r.items=[],r.discountAmount.flat=0,r.discountAmount.percentage=0,r.deliveryDate=void 0,r.shippingCost=0,r.dataDeliveryDates=null,r.subscriptionName=null,r.isUpsell=!1,n=!0;break}case"SET_DELIVERY_DATE":{r.deliveryDate=e.payload.date,n=!0;break}case"SET_SUBSCRIPTION_DATE":{r.subscriptionDate=e.payload.date,n=!0;break}case"SET_UPSELL_STATUS":{const s=e.payload.isUpsell;r.isUpsell=s,s&&(r.deliveryDate=void 0,r.discountAmount.flat=0,r.discountAmount.percentage=0),n=!0;break}case"APPLY_FLAT_DISCOUNT":{r.discountAmount.flat=e.payload.amount,n=!0;break}case"APPLY_PERCENTAGE_DISCOUNT":{r.discountAmount.percentage=e.payload.amount,n=!0;break}case"SET_SHIPPING_COST":{const s=e.payload.cost,i=r.subtotal+s;return{...r,shippingCost:s,total:i}}case"SET_DATA_DELIVERY_DATES":return{...r,dataDeliveryDates:e.payload.dates};case"SET_SUBSCRIPTION_NAME":return{...r,subscriptionName:e.payload.name};case"SET_ERROR":return{...r,error:e.payload.error};case"CLEAR_ERROR":return{...r,error:null};case"SET_CART_VIEW_IS_OPEN":return{...r,ui:{...r.ui,cartViewIsOpen:!0}};case"SET_CART_VIEW_IS_CLOSED":return{...r,ui:{...r.ui,cartViewIsOpen:!1}};case"SET_SHOW_CONFIRMATION":return{...r,ui:{...r.ui,showConfirmation:e.payload.show}};case"SET_SHOW_CART_DETAILS":return{...r,ui:{...r.ui,showCartDetails:e.payload.show}};case"SET_CART_PRODUCT_DETAIL":return{...r,ui:{...r.ui,cartProductDetail:e.payload.product}};case"SET_CONFIRMATION_OPEN":return{...r,ui:{...r.ui,confirmationOpen:e.payload.open}};case"SET_SHIPPING_TYPE":return{...r,shippingType:e.payload.shippingType};default:return r}if(n){const{subtotal:s,shippingCost:i,total:o}=vze(r.items,r.deliveryDate,r.isUpsell,r.discountAmount);r.subtotal=s,r.shippingCost=i,r.total=o}return r},wze={items:[],error:null,deliveryDate:void 0,isUpsell:!1,ui:{cartViewIsOpen:!1,showConfirmation:!1,showCartDetails:!1,cartProductDetail:void 0,confirmationOpen:!1},subtotal:0,shippingCost:0,discountAmount:{flat:0,percentage:0},total:0,dataDeliveryDates:null,subscriptionName:null,shippingType:"PICKUP"},pY=_.createContext(void 0),mY=_.createContext(void 0),_ze=({children:t})=>{const[e,n]=_.useReducer(xze,wze);return u.jsx(pY.Provider,{value:e,children:u.jsx(mY.Provider,{value:n,children:t})})},EXe=()=>{const t=_.useContext(pY);if(t===void 0)throw new Error("useCartState must be used within a CartProvider");return t},bXe=()=>{const t=_.useContext(mY);
3475if(t===void 0)throw new Error("useCartDispatch must be used within a CartProvider");return t},Bm=()=>{_.useEffect(()=>{window.scrollTo(0,0)},[])},Eze=t=>t.includes("auth/user-not-found")||t.includes("auth/wrong-password")?"El usuario o la contraseña no son correctos. Verifica los datos e intenta de nuevo":t.includes("auth/too-many-requests")?"Has tenido muchos intentos fallidos. Intentalo de nuevo más tarde.":t.includes("auth/google-account-not-registered")?"No encontramos una cuenta Maifud asociada a ese acceso de Google. Si ya tienes cuenta, entra con correo y contraseña.":t.includes("auth/account-exists-with-different-credential")?"Este correo ya existe con otro método de acceso. Entra con correo y contraseña para mantener tu cuenta actual.":t.includes("auth/popup-closed-by-user")||t.includes("auth/cancelled-popup-request")?"El acceso con Google fue cancelado. Intenta de nuevo si quieres continuar con Google.":t.includes("auth/popup-blocked")?"El navegador bloqueó la ventana de Google. Permite popups para Maifud e intenta nuevamente.":t.includes("auth/operation-not-allowed")?"El acceso con Google todavía no está habilitado en Firebase.":t,bze=wn({email:st({required_error:"El correo es requerido"}).email("Este correo no es válido"),password:st().min(1,"La contraseña es requerida")}),SXe=()=>{Bm();const[t,e]=_.useState(),[n,r]=_.useState(!1),s=Jr(),i=Zs(),o=xi({resolver:_i(bze),defaultValues:{email:"",password:""}}),a=d=>{const{email:p,password:m}=d;e(void 0),r(!0),f7e(p,m).then(()=>{i.clear(),s({to:"/user/home"})}).catch(v=>e(v)).finally(()=>{r(!1)})},c=()=>{e(void 0),r(!0),h7e().then(()=>{i.clear(),s({to:"/user/home"})}).catch(d=>e(d)).finally(()=>{r(!1)})};return u.jsx("div",{className:"mx-auto max-w-[400px] w-full mt-6 mb-24",children:u.jsxs($f,{children:[u.jsxs(dg,{className:"space-y-1",children:[u.jsx(fg,{className:"text-2xl",children:"Bienvenido"}),u.jsx(hg,{children:"Ingresa tus datos para iniciar sesión"})]}),u.jsx(Ff,{children:u.jsx(wi,{...o,children:u.jsxs("form",{onSubmit:o.handleSubmit(a),className:"space-y-4",children:[u.jsx(cn,{control:o.control,name:"email",render:({field:d})=>u.jsxs(un,{children:[u.jsx(gn,{htmlFor:"email",children:"Correo"}),u.jsx(En,{children:u.jsx(Qr,{id:"email",type:"email",placeholder:"Ingresa tu correo",autoComplete:"email",value:d.value,onChange:d.onChange})}),u.jsx(Ot,{})]})}),u.jsx(cn,{control:o.control,name:"password",render:({field:d})=>u.jsxs(un,{children:[u.jsx(gn,{htmlFor:"password",children:"Contraseña"}),u.jsx(Qr,{id:"password",type:"password",placeholder:"Ingresa tu contraseña",autoComplete:"password",value:d.value,onChange:d.onChange}),u.jsx(Ot,{})]})}),u.jsx(tt,{className:"w-full",type:"submit",disabled:n,isLoading:n,children:n?"Entrando":"Entrar"}),u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"relative",children:[u.jsx("div",{className:"absolute inset-0 flex items-center",children:u.jsx("span",{className:"w-full border-t"})}),u.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:u.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"o"})})]}),u.jsxs(tt,{className:"w-full",type:"button",variant:"outline",disabled:n,onClick:c,children:[u.jsx("span",{className:"font-semibold",children:"G"}),"Continuar con Google"]})]}),t&&u.jsx(Ot,{className:"text-center",children:Eze(t.message)})]})})}),u.jsx(C6,{children:u.jsxs("div",{className:"text-sm text-muted-foreground flex flex-col justify-center items-center space-y-4 w-full",children:[u.jsx(or,{className:"underline underline-offset-2 hover:text-primary",to:"/forgot-password",children:"¿Olvidaste tu contraseña?"}),u.jsx(or,{className:"underline underline-offset-2 hover:text-primary",to:"/register/subscriptions",children:"¿No tienes cuenta? Crea una aquí"})]})})]})})},Sze=()=>(_.useEffect(()=>{window.location.replace(`http://tienda.maifud.cl${window.location.pathname}`)},[]),null),Cze="/assets/referral.DICrqQ3p.png",gY=()=>{const{referral_code:t}=Cf({strict:!1}),{referralCode:e}=x5({from:"/r/$referralCode"}),{data:n,isLoading:r,isError:s}=V_e(t||e),i=n?.data,o=()=>
3475{if(r)return u.jsx(er,{message:"🍊 Preparando Maifud para tí..."});if(s)return u.jsx(Kl,{to:"/"});if(i){const{referrer_name:a,referrer_code:c}=i;return u.jsxs($f,{children:[u.jsxs(dg,{className:"space-y-1",children:[u.jsx(fg,{className:"text-2xl text-center",children:"¡Hola!"}),u.jsxs(hg,{className:"text-center",children:[u.jsx("strong",{children:a})," te"," ",u.jsx("strong",{className:"text-primary",children:"regala un envío gratis"})," ","en tu suscripción a nuestras cajas imperfectas."]})]}),u.jsxs(Ff,{children:[u.jsx("div",{className:"w-20 h-20 rounded-full mx-auto",children:u.jsx("img",{src:Cze,alt:"Imagen de zanahorias compartiendo"})}),u.jsx("p",{className:"text-center text-muted-foreground text-sm mt-4",children:u.jsx("a",{href:"/#faq-section",target:"_blank",className:"underline",rel:"noopener noreferrer",children:"¿Quieres saber más de nosotros?"})})]}),u.jsx(C6,{className:"flex flex-col space-y-2",children:u.jsx(rf,{to:"/register/subscriptions",className:"w-full",search:{referrer_code:c},children:"Empecemos"})})]})}};return u.jsx("div",{className:"mx-auto max-w-[400px] w-full mt-8 mb-24",children:o()})},Tze="/assets/meadow.DEKu4Ea_.png";var J7,kD;function Aze(){if(kD)return J7;kD=1;var t={linear:function(e,n,r,s){var i=r-n;return i*e/s+n},easeInQuad:function(e,n,r,s){var i=r-n;return i*(e/=s)*e+n},easeOutQuad:function(e,n,r,s){var i=r-n;return-i*(e/=s)*(e-2)+n},easeInOutQuad:function(e,n,r,s){var i=r-n;return(e/=s/2)<1?i/2*e*e+n:-i/2*(--e*(e-2)-1)+n},easeInCubic:function(e,n,r,s){var i=r-n;return i*(e/=s)*e*e+n},easeOutCubic:function(e,n,r,s){var i=r-n;return i*((e=e/s-1)*e*e+1)+n},easeInOutCubic:function(e,n,r,s){var i=r-n;return(e/=s/2)<1?i/2*e*e*e+n:i/2*((e-=2)*e*e+2)+n},easeInQuart:function(e,n,r,s){var i=r-n;return i*(e/=s)*e*e*e+n},easeOutQuart:function(e,n,r,s){var i=r-n;return-i*((e=e/s-1)*e*e*e-1)+n},easeInOutQuart:function(e,n,r,s){var i=r-n;return(e/=s/2)<1?i/2*e*e*e*e+n:-i/2*((e-=2)*e*e*e-2)+n},easeInQuint:function(e,n,r,s){var i=r-n;return i*(e/=s)*e*e*e*e+n},easeOutQuint:function(e,n,r,s){var i=r-n;return i*((e=e/s-1)*e*e*e*e+1)+n},easeInOutQuint:function(e,n,r,s){var i=r-n;return(e/=s/2)<1?i/2*e*e*e*e*e+n:i/2*((e-=2)*e*e*e*e+2)+n},easeInSine:function(e,n,r,s){var i=r-n;return-i*Math.cos(e/s*(Math.PI/2))+i+n},easeOutSine:function(e,n,r,s){var i=r-n;return i*Math.sin(e/s*(Math.PI/2))+n},easeInOutSine:function(e,n,r,s){var i=r-n;return-i/2*(Math.cos(Math.PI*e/s)-1)+n},easeInExpo:function(e,n,r,s){var i=r-n;return e==0?n:i*Math.pow(2,10*(e/s-1))+n},easeOutExpo:function(e,n,r,s){var i=r-n;return e==s?n+i:i*(-Math.pow(2,-10*e/s)+1)+n},easeInOutExpo:function(e,n,r,s){var i=r-n;return e===0?n:e===s?n+i:(e/=s/2)<1?i/2*Math.pow(2,10*(e-1))+n:i/2*(-Math.pow(2,-10*--e)+2)+n},easeInCirc:function(e,n,r,s){var i=r-n;return-i*(Math.sqrt(1-(e/=s)*e)-1)+n},easeOutCirc:function(e,n,r,s){var i=r-n;return i*Math.sqrt(1-(e=e/s-1)*e)+n},easeInOutCirc:function(e,n,r,s){var i=r-n;return(e/=s/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+n:i/2*(Math.sqrt(1-(e-=2)*e)+1)+n},easeInElastic:function(e,n,r,s){var i=r-n,o,a,c;return c=1.70158,a=0,o=i,e===0?n:(e/=s)===1?n+i:(a||(a=s*.3),o<Math.abs(i)?(o=i,c=a/4):c=a/(2*Math.PI)*Math.asin(i/o),-(o*Math.pow(2,10*(e-=1))*Math.sin((e*s-c)*(2*Math.PI)/a))+n)},easeOutElastic:function(e,n,r,s){var i=r-n,o,a,c;return c=1.70158,a=0,o=i,e===0?n:(e/=s)===1?n+i:(a||(a=s*.3),o<Math.abs(i)?(o=i,c=a/4):c=a/(2*Math.PI)*Math.asin(i/o),o*Math.pow(2,-10*e)*Math.sin((e*s-c)*(2*Math.PI)/a)+i+n)},easeInOutElastic:function(e,n,r,s){var i=r-n,o,a,c;return c=1.70158,a=0,o=i,e===0?n:(e/=s/2)===2?n+i:(a||(a=s*(.3*1.5)),o<Math.abs(i)?(o=i,c=a/4):c=a/(2*Math.PI)*Math.asin(i/o),e<1?-.5*(o*Math.pow(2,10*(e-=1))*Math.sin((e*s-c)*(2*Math.PI)/a))+n:o*Math.pow(2,-10*(e-=1))*Math.sin((e*s-c)*(2*Math.PI)/a)*.5+i+n)},easeInBack:function(e,n,r,s,i){var o=r-n;return i===void 0&&(i=1.70158),o*(e/=s)*e*((i+1)*e-i)+n},easeOutBack:function(e,n,r,s,i){var o=r-n;return i===void 0&&(i=1.70158),o*((e=e/s-1)*e*((i+1)*e+i)+1)+n},easeInOutBack:function(e,n,r,s,i){var o=r-n;return i===void 0&&(i=1.70158),(e/=s/2)<1?o/2*(e*e*(((i*=1.525)+1)*e-i))+n:o/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+n}
3475,easeInBounce:function(e,n,r,s){var i=r-n,o;return o=t.easeOutBounce(s-e,0,i,s),i-o+n},easeOutBounce:function(e,n,r,s){var i=r-n;return(e/=s)<1/2.75?i*(7.5625*e*e)+n:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+n:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+n:i*(7.5625*(e-=2.625/2.75)*e+.984375)+n},easeInOutBounce:function(e,n,r,s){var i=r-n,o;return e<s/2?(o=t.easeInBounce(e*2,0,i,s),o*.5+n):(o=t.easeOutBounce(e*2-s,0,i,s),o*.5+i*.5+n)}};return J7=t,J7}var Ize=Aze();function Pze(t){return t*Math.PI/180}function ai(t,e){return t+Math.random()*(e-t)}function Rze(t,e){return Math.floor(t+Math.random()*(e-t+1))}var _0;(function(t){t[t.Circle=0]="Circle",t[t.Square=1]="Square",t[t.Strip=2]="Strip"})(_0||(_0={}));var Lc;(function(t){t[t.Positive=1]="Positive",t[t.Negative=-1]="Negative"})(Lc||(Lc={}));const Nze=1e3/60;class Mze{constructor(e,n,r,s){this.getOptions=n;const{colors:i,initialVelocityX:o,initialVelocityY:a}=this.getOptions();this.context=e,this.x=r,this.y=s,this.w=ai(5,20),this.h=ai(5,20),this.radius=ai(5,10),this.vx=typeof o=="number"?ai(-o,o):ai(o.min,o.max),this.vy=typeof a=="number"?ai(-a,0):ai(a.min,a.max),this.shape=Rze(0,2),this.angle=Pze(ai(0,360)),this.angularSpin=ai(-.2,.2),this.color=i[Math.floor(Math.random()*i.length)],this.rotateY=ai(0,1),this.rotationDirection=ai(0,1)?Lc.Positive:Lc.Negative}update(e){const{gravity:n,wind:r,friction:s,opacity:i,drawShape:o}=this.getOptions(),a=e/Nze;this.x+=this.vx*a,this.y+=this.vy*a,this.vy+=n*a,this.vx+=r*a,this.vx*=s**a,this.vy*=s**a,this.rotateY>=1&&this.rotationDirection===Lc.Positive?this.rotationDirection=Lc.Negative:this.rotateY<=-1&&this.rotationDirection===Lc.Negative&&(this.rotationDirection=Lc.Positive);const c=.1*this.rotationDirection*a;if(this.rotateY+=c,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=i,this.context.lineCap="round",this.context.lineWidth=2,o&&typeof o=="function")o.call(this,this.context);else switch(this.shape){case _0.Circle:{this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break}case _0.Square:{this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break}case _0.Strip:{this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h);break}}this.context.closePath(),this.context.restore()}}class kze{constructor(e,n){this.x=0,this.y=0,this.w=0,this.h=0,this.lastNumberOfPieces=0,this.tweenProgress=0,this.tweenFrom=0,this.particles=[],this.particlesGenerated=0,this.removeParticleAt=s=>{this.particles.splice(s,1)},this.getParticle=()=>{const s=ai(this.x,this.w+this.x),i=ai(this.y,this.h+this.y);return new Mze(this.context,this.getOptions,s,i)},this.animate=s=>{const{canvas:i,context:o,particlesGenerated:a,lastNumberOfPieces:c}=this,{run:d,recycle:p,numberOfPieces:m,debug:v,tweenFunction:w,tweenDuration:E}=this.getOptions();if(!d)return!1;const C=this.particles.length,b=p?C:a;if(b<m){c!==m&&(this.tweenProgress=0,this.tweenFrom=b,this.lastNumberOfPieces=m),this.tweenProgress=Math.min(E,Math.max(0,this.tweenProgress+s));const S=w(this.tweenProgress,this.tweenFrom,m,E),P=Math.round(S-b);for(let R=0;R<P;R++)this.particles.push(this.getParticle());this.particlesGenerated+=P}v&&(o.font="12px sans-serif",o.fillStyle="#333",o.textAlign="right",o.fillText(`Particles: ${C}`,i.width-10,i.height-20));for(let S=this.particles.length-1;S>=0;S--){const P=this.particles[S];P.update(s),(P.y>i.height||P.y<-100||P.x>i.width+100||P.x<-100)&&(p&&b<=m?this.particles[S]=this.getParticle():this.removeParticleAt(S))}return C>0||b<m},this.canvas=e;const r=this.canvas.getContext("2d");if(!r)throw new Error("Could not get canvas context");this.context=r,this.getOptions=n}}const jC={width:typeof window<"u"?window.innerWidth:300,height:typeof window<"u"?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#F
3475F9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:Ize.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0};class Dze{constructor(e,n){this.lastFrameTime=0,this.setOptionsWithDefaults=s=>{const i={confettiSource:{x:0,y:0,w:this.canvas.width,h:0}};this._options={...i,...jC,...s},Object.assign(this,s.confettiSource)},this.update=(s=0)=>{const{options:{run:i,onConfettiComplete:o,frameRate:a},canvas:c,context:d}=this,p=Math.min(s-this.lastFrameTime,50);if(a&&p<1e3/a){this.rafId=requestAnimationFrame(this.update);return}this.lastFrameTime=s-(a?p%a:0),i&&(d.fillStyle="white",d.clearRect(0,0,c.width,c.height)),this.generator.animate(p)?this.rafId=requestAnimationFrame(this.update):(o&&typeof o=="function"&&this.generator.particlesGenerated>0&&o.call(this,this),this._options.run=!1)},this.reset=()=>{this.generator&&this.generator.particlesGenerated>0&&(this.generator.particlesGenerated=0,this.generator.particles=[],this.generator.lastNumberOfPieces=0)},this.stop=()=>{this.options={run:!1},this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=void 0)},this.canvas=e;const r=this.canvas.getContext("2d");if(!r)throw new Error("Could not get canvas context");this.context=r,this.generator=new kze(this.canvas,()=>this.options),this.options=n,this.update()}get options(){return this._options}set options(e){const n=this._options?.run,r=this._options?.recycle;this.setOptionsWithDefaults(e),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof e.recycle=="boolean"&&e.recycle&&r===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof e.run=="boolean"&&e.run&&n===!1&&this.update()}}const Oze=h.createRef();class LC extends h.Component{constructor(e){super(e),this.canvas=h.createRef(),this.canvas=e.canvasRef||Oze}componentDidMount(){if(this.canvas.current){const e=e8(this.props)[0];this.confetti=new Dze(this.canvas.current,e)}}componentDidUpdate(){const e=e8(this.props)[0];this.confetti&&(this.confetti.options=e)}componentWillUnmount(){this.confetti&&this.confetti.stop(),this.confetti=void 0}render(){const[e,n]=e8(this.props),r={zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0,...n.style};return u.jsx("canvas",{width:e.width,height:e.height,ref:this.canvas,...n,style:r})}}LC.defaultProps={...jC};LC.displayName="ReactConfetti";function e8(t){const e={},n={},r={},s=[...Object.keys(jC),"confettiSource","drawShape","onConfettiComplete","frameRate"],i=["canvasRef"];for(const o in t){const a=t[o];s.includes(o)?e[o]=a:i.includes(o)?i[o]=a:r[o]=a}return[e,r,n]}const $ze=h.forwardRef((t,e)=>u.jsx(LC,{canvasRef:e,...t})),Fze=wn({user_notes:st().optional()}),jze=()=>{const t=CW(),e=xi({resolver:_i(Fze)}),n=s=>{t.mutate(s)},r=()=>t.isSuccess?u.jsx(u.Fragment,{children:u.jsx("p",{className:"text-base text-center",children:"¡Tendremos en cuenta tus preferencias al momento de tus envíos!"})}):u.jsx(wi,{...e,children:u.jsxs("form",{onSubmit:e.handleSubmit(n),children:[u.jsx(cn,{control:e.control,name:"user_notes",render:({field:s})=>u.jsxs(un,{children:[u.jsx(gn,{htmlFor:"name",children:"Alergias o restricciones"}),u.jsx(En,{children:u.jsx(Pf,{placeholder:"Indicanos si tienes alguna alergia o restricción alimentaria",value:s.value,onChange:s.onChange,disabled:t.isPending})}),u.jsx(Ot,{})]})}),u.jsx("div",{className:"flex pt-4 justify-end",children:u.jsx(tt,{variant:"outline",disabled:t.isPending,isLoading:t.isPending,children:t.isPending?"Guardando":"Guardar"})})]})});return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"mx-auto max-w-[400px] w-full mb-8 relative z-10",children:u.jsxs($f,{className:"pt-6",children:[u.jsxs(Ff,{className:"grid gap-4",children:[u.jsx("p",{className:"text-primary text-center font-medium text-2xl",children:"¡Tu suscripción está lista!"}),u.jsx("div",{className:"w-44 h-44 rounded-full mx-auto overflow-hidden",children:u.jsx("img",{src:Tze,alt:"Imagen de vegetales y frutas en una pradera soleada"})}),u.jsx("p",{className:"text-base text-center",children:"En tu cuenta puedes ajustar el tamaño de la caja la frecuencia de envío, el contenido y mucho más."}),u.jsx(tt,{className:"w-full",children:u.jsx(or,{to:"/user/home",children:"Ir a mi cuenta"})})]}),u.jsx(Bi,{className:"mb-4"}),u.jsx("div",{className:"p-6 pt-0",children:r()})]})}),u.jsx($ze,{colors:["#7b7e25","#ee7632"],numberOfPieces:50})]})},zC=_.createContext({});function VC(t){const e=_.useRef(null);return e.current===null&&(e.current=t()),e.current}const BC=typeof window<"u",vY=BC?_.useLayoutEffect:_.useEffect,V6=_.createContext(null),HC=_.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});class Lze extends _.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const r=n.offsetParent,s=r instanceof HTMLElement&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=s-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function zze({children:t,isPresent:e,anchorX:n}){const r=_.useId(),s=_.useRef(null),i=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=_.useContext(HC);return _.useInsertionEffect(()=>{const{width:a,height:c,top:d,left:p,right:m}=i.current;if(e||!s.current||!a||!c)return;
vendor: 35,437 bytes, lines 3475-3483
3475const v=n==="left"?`left: ${p}`:`right: ${m}`;s.current.dataset.motionPopId=r;const w=document.createElement("style");return o&&(w.nonce=o),document.head.appendChild(w),w.sheet&&w.sheet.insertRule(`
3476          [data-motion-pop-id="${r}"] {
3477            position: absolute !important;
3478            width: ${a}px !important;
3479            height: ${c}px !important;
3480            ${v}px !important;
3481            top: ${d}px !important;
3482          }
3483        `),()=>{document.head.contains(w)&&document.head.removeChild(w)}},[e]),u.jsx(Lze,{isPresent:e,childRef:s,sizeRef:i,children:_.cloneElement(t,{ref:s})})}const Vze=({children:t,initial:e,isPresent:n,onExitComplete:r,custom:s,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=VC(Bze),d=_.useId();let p=!0,m=_.useMemo(()=>(p=!1,{id:d,initial:e,isPresent:n,custom:s,onExitComplete:v=>{c.set(v,!0);for(const w of c.values())if(!w)return;r&&r()},register:v=>(c.set(v,!1),()=>c.delete(v))}),[n,c,r]);return i&&p&&(m={...m}),_.useMemo(()=>{c.forEach((v,w)=>c.set(w,!1))},[n]),_.useEffect(()=>{!n&&!c.size&&r&&r()},[n]),o==="popLayout"&&(t=u.jsx(zze,{isPresent:n,anchorX:a,children:t})),u.jsx(V6.Provider,{value:m,children:t})};function Bze(){return new Map}function yY(t=!0){const e=_.useContext(V6);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:s}=e,i=_.useId();_.useEffect(()=>{if(t)return s(i)},[t]);const o=_.useCallback(()=>t&&r&&r(i),[i,r,t]);return!n&&r?[!1,o]:[!0]}const A3=t=>t.key||"";function DD(t){const e=[];return _.Children.forEach(t,n=>{_.isValidElement(n)&&e.push(n)}),e}const OD=({children:t,custom:e,initial:n=!0,onExitComplete:r,presenceAffectsLayout:s=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,d]=yY(o),p=_.useMemo(()=>DD(t),[t]),m=o&&!c?[]:p.map(A3),v=_.useRef(!0),w=_.useRef(p),E=VC(()=>new Map),[C,b]=_.useState(p),[S,P]=_.useState(p);vY(()=>{v.current=!1,w.current=p;for(let O=0;O<S.length;O++){const F=A3(S[O]);m.includes(F)?E.delete(F):E.get(F)!==!0&&E.set(F,!1)}},[S,m.length,m.join("-")]);const R=[];if(p!==C){let O=[...p];for(let F=0;F<S.length;F++){const D=S[F],I=A3(D);m.includes(I)||(O.splice(F,0,D),R.push(D))}return i==="wait"&&R.length&&(O=R),P(DD(O)),b(p),null}const{forceRender:z}=_.useContext(zC);return u.jsx(u.Fragment,{children:S.map(O=>{const F=A3(O),D=o&&!c?!1:p===S||m.includes(F),I=()=>{if(E.has(F))E.set(F,!0);else return;let T=!0;E.forEach(k=>{k||(T=!1)}),T&&(z?.(),P(w.current),o&&d?.(),r&&r())};return u.jsx(Vze,{isPresent:D,initial:!v.current||n?void 0:!1,custom:e,presenceAffectsLayout:s,mode:i,onExitComplete:D?void 0:I,anchorX:a,children:O},F)})})};function UC(t,e){t.indexOf(e)===-1&&t.push(e)}function WC(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ql=(t,e,n)=>n>e?e:n<t?t:n;let qC=()=>{};const Gl={},xY=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),wY=t=>/^0[^.\s]+$/u.test(t);function GC(t){let e;return()=>(e===void 0&&(e=t()),e)}const Gi=t=>t,Hze=(t,e)=>n=>e(t(n)),gg=(...t)=>t.reduce(Hze),m2=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r};class KC{constructor(){this.subscriptions=[]}add(e){return UC(this.subscriptions,e),()=>WC(this.subscriptions,e)}notify(e,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ca=t=>t*1e3,Ta=t=>t/1e3;function _Y(t,e){return e?t*(1e3/e):0}const EY=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Uze=1e-7,Wze=12;function qze(t,e,n,r,s){let i,o,a=0;do o=e+(n-e)/2,i=EY(o,r,s)-t,i>0?n=o:e=o;while(Math.abs(i)>Uze&&++a<Wze);return o}function vg(t,e,n,r){if(t===e&&n===r)return Gi;const s=i=>qze(i,0,1,t,n);return i=>i===0||i===1?i:EY(s(i),e,r)}const bY=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,SY=t=>e=>1-t(1-e),CY=vg(.33,1.53,.69,.99),YC=SY(CY),TY=bY(YC),AY=t=>(t*=2)<1?.5*YC(t):.5*(2-Math.pow(2,-10*(t-1))),QC=t=>1-Math.sin(Math.acos(t)),IY=SY(QC),PY=bY(QC),Gze=vg(.42,0,1,1),Kze=vg(0,0,.58,1),RY=vg(.42,0,.58,1),Yze=t=>Array.isArray(t)&&typeof t[0]!="number",NY=t=>Array.isArray(t)&&typeof t[0]=="number",Qze={linear:Gi,easeIn:Gze,easeInOut:RY,easeOut:Kze,circIn:QC,circInOut:PY,circOut:IY,backIn:YC,backInOut:TY,backOut:CY,anticipate:AY},Xze=t=>typeof t=="string",$D=t=>{if(NY(t)){qC(t.length===4);const[e,n,r,s]=t;return vg(e,n,r,s)}else if(Xze(t))return Qze[t];return t},I3=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],FD={value:null};function Zze(t,e){let n=new Set,r=new Set,s=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},c=0;function d(m){o.has(m)&&(p.schedule(m),t()),c++,m(a)}const p={schedule:(m,v=!1,w=!1)=>{const C=w&&s?n:r;return v&&o.add(m),C.has(m)||C.add(m),m},cancel:m=>{r.delete(m),o.delete(m)},process:m=>{if(a=m,s){i=!0;return}s=!0,[n,r]=[r,n],n.forEach(d),e&&FD.value&&FD.value.frameloop[e].push(c),c=0,n.clear(),s=!1,i&&(i=!1,p.process(m))}};return p}const Jze=40;function MY(t,e){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=I3.reduce((R,z)=>(R[z]=Zze(i,e?z:void 0),R),{}),{setup:a,read:c,resolveKeyframes:d,preUpdate:p,update:m,preRender:v,render:w,postRender:E}=o,C=()=>{const R=Gl.useManualTiming?s.timestamp:performance.now();n=!1,Gl.useManualTiming||(s.delta=r?1e3/60:Math.max(Math.min(R-s.timestamp,Jze),1)),s.timestamp=R,s.isProcessing=!0,a.process(s),c.process(s),d.process(s),p.process(s),m.process(s),v.process(s),w.process(s),E.process(s),s.isProcessing=!1,n&&e&&(r=!1,t(C))},b=()=>{n=!0,r=!0,s.isProcessing||t(C)};return{schedule:I3.reduce((R,z)=>{const O=o[z];return R[z]=(F,D=!1,I=!1)=>(n||b(),O.schedule(F,D,I)),R},{}),cancel:R=>{for(let z=0;z<I3.length;z++)o[I3[z]].cancel(R)},state:s,steps:o}}const{schedule:Un,cancel:Pu,state:qr,steps:t8}=MY(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gi,!0);let py;function eVe(){py=void 0}const Ws={now:()=>(py===void 0&&Ws.set(qr.isProcessing||Gl.useManualTiming?qr.timestamp:performance.now()),py),set:t=>{py=t,queueMicrotask(eVe)}},kY=t=>e=>typeof e=="string"&&e.startsWith(t),XC=kY("--"),tVe=kY("var(--"),ZC=t=>tVe(t)?nVe.test(t.split("/*")[0].trim()):!1,nVe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Hm={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},g2={...Hm,transform:t=>ql(0,1,t)},P3={...Hm,default:1},E0=t=>Math.round(t*1e5)/1e5,JC=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function rVe(t){return t==null}const sVe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eT=(t,e)=>n=>!!(typeof n=="string"&&sVe.test(n)&&n.startsWith(t)||e&&!rVe(n)&&Object.prototype.hasOwnProperty.call(n,e)),DY=(t,e,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(JC);return{[t]:parseFloat(s),[e]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},iVe=t=>ql(0,255,t),n8={...Hm,transform:t=>Math.round(iVe(t))},Nd={test:eT("rgb","red"),parse:DY("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+n8.transform(t)+", "+n8.transform(e)+", "+n8.transform(n)+", "+E0(g2.transform(r))+")"};function oVe(t){let e="",n="",r="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,r+=r,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const GE={test:eT("#"),parse:oVe,transform:Nd.transform},yg=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),kc=yg("deg"),Aa=yg("%"),pt=yg("px"),aVe=yg("vh"),lVe=yg("vw"),jD={...Aa,parse:t=>Aa.parse(t)/100,transform:t=>Aa.transform(t*100)},Zh={test:eT("hsl","hue"),parse:DY("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Aa.transform(E0(e))+", "+Aa.transform(E0(n))+", "+E0(g2.transform(r))+")"},os={test:t=>Nd.test(t)||GE.test(t)||Zh.test(t),parse:t=>Nd.test(t)?Nd.parse(t):Zh.test(t)?Zh.parse(t):GE.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Nd.transform(t):Zh.transform(t)},cVe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uVe(t){return isNaN(t)&&typeof t=="string"&&(t.match(JC)?.length||0)+(t.match(cVe)?.length||0)>0}const OY="number",$Y="color",dVe="var",fVe="var(",LD="${}",hVe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function v2(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=e.replace(hVe,c=>(os.test(c)?(r.color.push(i),s.push($Y),n.push(os.parse(c))):c.startsWith(fVe)?(r.var.push(i),s.push(dVe),n.push(c)):(r.number.push(i),s.push(OY),n.push(parseFloat(c))),++i,LD)).split(LD);return{values:n,split:a,indexes:r,types:s}}function FY(t){return v2(t).values}function jY(t){const{split:e,types:n}=v2(t),r=e.length;return s=>{let i="";for(let o=0;o<r;o++)if(i+=e[o],s[o]!==void 0){const a=n[o];a===OY?i+=E0(s[o]):a===$Y?i+=os.transform(s[o]):i+=s[o]}return i}}const pVe=t=>typeof t=="number"?0:t;function mVe(t){const e=FY(t);return jY(t)(e.map(pVe))}const Ru={test:uVe,parse:FY,createTransformer:jY,getAnimatableNone:mVe};function r8(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function gVe({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let s=0,i=0,o=0;if(!e)s=i=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;s=r8(c,a,t+1/3),i=r8(c,a,t),o=r8(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function K4(t,e){return n=>n>0?e:t}const Bn=(t,e,n)=>t+(e-t)*n,s8=(t,e,n)=>{const r=t*t,s=n*(e*e-r)+r;return s<0?0:Math.sqrt(s)},vVe=[GE,Nd,Zh],yVe=t=>vVe.find(e=>e.test(t));function zD(t){const e=yVe(t);if(!e)return!1;let n=e.parse(t);return e===Zh&&(n=gVe(n)),n}const VD=(t,e)=>{const n=zD(t),r=zD(e);if(!n||!r)return K4(t,e);const s={...n};return i=>(s.red=s8(n.red,r.red,i),s.green=s8(n.green,r.green,i),s.blue=s8(n.blue,r.blue,i),s.alpha=Bn(n.alpha,r.alpha,i),Nd.transform(s))},KE=new Set(["none","hidden"]);function xVe(t,e){return KE.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function wVe(t,e){return n=>Bn(t,e,n)}function tT(t){return typeof t=="number"?wVe:typeof t=="string"?ZC(t)?K4:os.test(t)?VD:bVe:Array.isArray(t)?LY:typeof t=="object"?os.test(t)?VD:_Ve:K4}function LY(t,e){const n=[...t],r=n.length,s=t.map((i,o)=>tT(i)(i,e[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function _Ve(t,e){const n={...t,...e},r={};for(const s in n)t[s]!==void 0&&e[s]!==void 0&&(r[s]=tT(t[s])(t[s],e[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function EVe(t,e){const n=[],r={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){const i=e.types[s],o=t.indexes[i][r[i]],a=t.values[o]??0;n[s]=a,r[i]++}return n}const bVe=(t,e)=>{const n=Ru.createTransformer(e),r=v2(t),s=v2(e);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?KE.has(t)&&!s.values.length||KE.has(e)&&!r.values.length?xVe(t,e):gg(LY(EVe(r,s),s.values),n):K4(t,e)};function zY(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Bn(t,e,n):tT(t)(t,e)}const SVe=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Un.update(e,!0),stop:()=>Pu(e),now:()=>qr.isProcessing?qr.timestamp:Ws.now()}},VY=(t,e,n=10)=>{let r="";const s=Math.max(Math.round(e/n),2);for(let i=0;i<s;i++)r+=t(i/(s-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Y4=2e4;function nT(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Y4;)e+=n,r=t.next(e);return e>=Y4?1/0:e}function CVe(t,e=100,n){const r=n({...t,keyframes:[0,e]}),s=Math.min(nT(r),Y4);return{type:"keyframes",ease:i=>r.next(s*i).value/e,duration:Ta(s)}}const TVe=5;function BY(t,e,n){const r=Math.max(e-TVe,0);return _Y(n-t(r),e-r)}const Yn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},BD=.001;function AVe({duration:t=Yn.duration,bounce:e=Yn.bounce,velocity:n=Yn.velocity,mass:r=Yn.mass}){let s,i,o=1-e;o=ql(Yn.minDamping,Yn.maxDamping,o),t=ql(Yn.minDuration,Yn.maxDuration,Ta(t)),o<1?(s=d=>{const p=d*o,m=p*t,v=p-n,w=YE(d,o),E=Math.exp(-m);return BD-v/w*E},i=d=>{const m=d*o*t,v=m*n+n,w=Math.pow(o,2)*Math.pow(d,2)*t,E=Math.exp(-m),C=YE(Math.pow(d,2),o);return(-s(d)+BD>0?-1:1)*((v-w)*E)/C}):(s=d=>{const p=Math.exp(-d*t),m=(d-n)*t+1;return-.001+p*m},i=d=>{const p=Math.exp(-d*t),m=(n-d)*(t*t);return p*m});const a=5/t,c=PVe(s,i,a);if(t=Ca(t),isNaN(c))return{stiffness:Yn.stiffness,damping:Yn.damping,duration:t};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:o*2*Math.sqrt(r*d),duration:t}}}const IVe=12;function PVe(t,e,n){let r=n;for(let s=1;s<IVe;s++)r=r-t(r)/e(r);return r}function YE(t,e){return t*Math.sqrt(1-e*e)}const RVe=["duration","bounce"],NVe=["stiffness","damping","mass"];function HD(t,e){return e.some(n=>t[n]!==void 0)}function MVe(t){let e={velocity:Yn.velocity,stiffness:Yn.stiffness,damping:Yn.damping,mass:Yn.mass,isResolvedFromDuration:!1,...t};if(!HD(t,NVe)&&HD(t,RVe))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*ql(.05,1,1-(t.bounce||0))*Math.sqrt(s);e={...e,mass:Yn.mass,stiffness:s,damping:i}}else{const n=AVe(t);e={...e,...n,mass:Yn.mass},e.isResolvedFromDuration=!0}return e}function Q4(t=Yn.visualDuration,e=Yn.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:d,mass:p,duration:m,velocity:v,isResolvedFromDuration:w}=MVe({...n,velocity:-Ta(n.velocity||0)}),E=v||0,C=d/(2*Math.sqrt(c*p)),b=o-i,S=Ta(Math.sqrt(c/p)),P=Math.abs(b)<5;r||(r=P?Yn.restSpeed.granular:Yn.restSpeed.default),s||(s=P?Yn.restDelta.granular:Yn.restDelta.default);let R;if(C<1){const O=YE(S,C);R=F=>{const D=Math.exp(-C*S*F);return o-D*((E+C*S*b)/O*Math.sin(O*F)+b*Math.cos(O*F))}}else if(C===1)R=O=>o-Math.exp(-S*O)*(b+(E+S*b)*O);else{const O=S*Math.sqrt(C*C-1);R=F=>{const D=Math.exp(-C*S*F),I=Math.min(O*F,300);return o-D*((E+C*S*b)*Math.sinh(I)+O*b*Math.cosh(I))/O}}const z={calculatedDuration:w&&m||null,next:O=>{const F=R(O);if(w)a.done=O>=m;else{let D=O===0?E:0;C<1&&(D=O===0?Ca(E):BY(R,O,F));const I=Math.abs(D)<=r,T=Math.abs(o-F)<=s;a.done=I&&T}return a.value=a.done?o:F,a},toString:()=>{const O=Math.min(nT(z),Y4),F=VY(D=>z.next(O*D).value,O,30);return O+"ms "+F},toTransition:()=>{}};return z}Q4.applyToOptions=t=>{const e=CVe(t,100,Q4);return t.ease=e.ease,t.duration=Ca(e.duration),t.type="keyframes",t};function QE({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:d=.5,restSpeed:p}){const m=t[0],v={done:!1,value:m},w=I=>a!==void 0&&I<a||c!==void 0&&I>c,E=I=>a===void 0?c:c===void 0||Math.abs(a-I)<Math.abs(c-I)?a:c;let C=n*e;const b=m+C,S=o===void 0?b:o(b);S!==b&&(C=S-m);const P=I=>-C*Math.exp(-I/r),R=I=>S+P(I),z=I=>{const T=P(I),k=R(I);v.done=Math.abs(T)<=d,v.value=v.done?S:k};let O,F;const D=I=>{w(v.value)&&(O=I,F=Q4({keyframes:[v.value,E(v.value)],velocity:BY(R,I,v.value),damping:s,stiffness:i,restDelta:d,restSpeed:p}))};return D(0),{calculatedDuration:null,next:I=>{let T=!1;return!F&&O===void 0&&(T=!0,z(I),D(I)),O!==void 0&&I>=O?F.next(I-O):(!T&&z(I),v)}}}function kVe(t,e,n){const r=[],s=n||Gl.mix||zY,i=t.length-1;for(let o=0;o<i;o++){let a=s(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||Gi:e;a=gg(c,a)}r.push(a)}return r}function DVe(t,e,{clamp:n=!0,ease:r,mixer:s}={}){const i=t.length;if(qC(i===e.length),i===1)return()=>e[0];if(i===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=kVe(e,r,s),c=a.length,d=p=>{if(o&&p<t[0])return e[0];let m=0;if(c>1)for(;m<t.length-2&&!(p<t[m+1]);m++);const v=m2(t[m],t[m+1],p);return a[m](v)};return n?p=>d(ql(t[0],t[i-1],p)):d}function OVe(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const s=m2(0,e,r);t.push(Bn(n,1,s))}}function $Ve(t){const e=[0];return OVe(e,t.length-1),e}function FVe(t,e){return t.map(n=>n*e)}function jVe(t,e){return t.map(()=>e||RY).splice(0,t.length-1)}function b0({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const s=Yze(r)?r.map($D):$D(r),i={done:!1,value:e[0]},o=FVe(n&&n.length===e.length?n:$Ve(e),t),a=DVe(o,e,{ease:Array.isArray(s)?s:jVe(e,s)});return{calculatedDuration:t,next:c=>(i.value=a(c),i.done=c>=t,i)}}const LVe=t=>t!==null;function rT(t,{repeat:e,repeatType:n="loop"},r,s=1){const i=t.filter(LVe),a=s<0||e&&n!=="loop"&&e%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const zVe={decay:QE,inertia:QE,tween:b0,keyframes:b0,spring:Q4};function HY(t){typeof t.type=="string"&&(t.type=zVe[t.type])}class sT{constructor(){this.count=0,this.updateFinished()}get finished(){return this._finished}updateFinished(){this.count++,this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const VVe=t=>t/100;class UY extends sT{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;if(n&&n.updatedAt!==Ws.now()&&this.tick(Ws.now()),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:r}=this.options;r&&r()},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;HY(e);const{type:n=b0,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=e;let{keyframes:a}=e;const c=n||b0;c!==b0&&typeof a[0]!="number"&&(this.mixKeyframes=gg(VVe,zY(a[0],a[1])),a=[0,100]);const d=c({...e,keyframes:a});i==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=nT(d));const{calculatedDuration:p}=d;this.calculatedDuration=p,this.resolvedDuration=p+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=d}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:p,repeat:m,repeatType:v,repeatDelay:w,type:E,onUpdate:C,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-s/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const S=this.currentTime-d*(this.playbackSpeed>=0?1:-1),P=this.playbackSpeed>=0?S<0:S>s;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let R=this.currentTime,z=r;if(m){const I=Math.min(this.currentTime,s)/a;let T=Math.floor(I),k=I%1;!k&&I>=1&&(k=1),k===1&&T--,T=Math.min(T,m+1),!!(T%2)&&(v==="reverse"?(k=1-k,w&&(k-=w/a)):v==="mirror"&&(z=o)),R=ql(0,1,k)*a}const O=P?{done:!1,value:p[0]}:z.next(R);i&&(O.value=i(O.value));let{done:F}=O;!P&&c!==null&&(F=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return D&&E!==QE&&(O.value=rT(p,this.options,b,this.speed)),C&&C(O.value),D&&this.finish(),O}then(e,n){return this.finished.then(e,n)}get duration(){return Ta(this.calculatedDuration)}get time(){return Ta(this.currentTime)}set time(e){e=Ca(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Ws.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Ta(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=SVe,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),n&&n();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=r??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ws.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown()}teardown(){this.notifyFinished(),this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),e.observe(this)}}function BVe(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Md=t=>t*180/Math.PI,XE=t=>{const e=Md(Math.atan2(t[1],t[0]));return ZE(e)},HVe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:XE,rotateZ:XE,skewX:t=>Md(Math.atan(t[1])),skewY:t=>Md(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ZE=t=>(t=t%360,t<0&&(t+=360),t),UD=XE,WD=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),qD=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),UVe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:WD,scaleY:qD,scale:t=>(WD(t)+qD(t))/2,rotateX:t=>ZE(Md(Math.atan2(t[6],t[5]))),rotateY:t=>ZE(Md(Math.atan2(-t[2],t[0]))),rotateZ:UD,rotate:UD,skewX:t=>Md(Math.atan(t[4])),skewY:t=>Md(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function GD(t){return t.includes("scale")?1:0}function JE(t,e){if(!t||t==="none")return GD(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=UVe,s=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=HVe,s=a}if(!s)return GD(e);const i=r[e],o=s[1].split(",").map(qVe);return typeof i=="function"?i(o):o[i]}const WVe=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return JE(n,e)};function qVe(t){return parseFloat(t.trim())}const Um=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wm=new Set(Um),KD=t=>t===Hm||t===pt,GVe=new Set(["x","y","z"]),KVe=Um.filter(t=>!GVe.has(t));function YVe(t){const e=[];return KVe.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Yd={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>JE(e,"x"),y:(t,{transform:e})=>JE(e,"y")};Yd.translateX=Yd.x;Yd.translateY=Yd.y;const Qd=new Set;let e9=!1,t9=!1,n9=!1;function WY(){if(t9){const t=Array.from(Qd).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const s=YVe(r);s.length&&(n.set(r,s),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{r.getValue(i)?.set(o)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}t9=!1,e9=!1,Qd.forEach(t=>t.complete(n9)),Qd.clear()}function qY(){Qd.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t9=!0)})}function QVe(){n9=!0,qY(),WY(),n9=!1}class iT{constructor(e,n,r,s,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Qd.add(this),e9||(e9=!0,Un.read(qY),Un.resolveKeyframes(WY))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:s}=this;if(e[0]===null){const i=s?.get(),o=e[e.length-1];if(i!==void 0)e[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),s&&i===void 0&&s.set(e[0])}BVe(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Qd.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Qd.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const XVe=t=>t.startsWith("--");function ZVe(t,e,n){XVe(e)?t.style.setProperty(e,n):t.style[e]=n}const JVe=GC(()=>window.ScrollTimeline!==void 0),eBe={};function tBe(t,e){const n=GC(t);return()=>eBe[e]??n()}const GY=tBe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),s0=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,YD={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:s0([0,.65,.55,1]),circOut:s0([.55,0,1,.45]),backIn:s0([.31,.01,.66,-.59]),backOut:s0([.33,1.53,.69,.99])};function KY(t,e){if(t)return typeof t=="function"?GY()?VY(t,e):"ease-out":NY(t)?s0(t):Array.isArray(t)?t.map(n=>KY(n,e)||YD.easeOut):YD[t]}function nBe(t,e,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:c}={},d=void 0){const p={[e]:n};c&&(p.offset=c);const m=KY(a,s);Array.isArray(m)&&(p.easing=m);const v={delay:r,duration:s,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return d&&(v.pseudoElement=d),t.animate(p,v)}function YY(t){return typeof t=="function"&&"applyToOptions"in t}function rBe({type:t,...e}){return YY(t)&&GY()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class sBe extends sT{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,qC(typeof e.type!="string");const d=rBe(e);this.animation=nBe(n,r,s,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const p=rT(s,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(p):ZVe(n,r,p),this.animation.cancel()}c?.(),this.notifyFinished()},this.animation.oncancel=()=>this.notifyFinished()}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Ta(Number(e))}get time(){return Ta(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=Ca(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&JVe()?(this.animation.timeline=e,Gi):n(this)}}const QY={anticipate:AY,backInOut:TY,circInOut:PY};function iBe(t){return t in QY}function oBe(t){typeof t.ease=="string"&&iBe(t.ease)&&(t.ease=QY[t.ease])}const QD=10;class aBe extends sBe{constructor(e){oBe(e),HY(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new UY({...o,autoplay:!1}),c=Ca(this.finishedTime??this.time);n.setWithVelocity(a.sample(c-QD).value,a.sample(c).value,QD),a.stop()}}const XD=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Ru.test(t)||t==="0")&&!t.startsWith("url("));function lBe(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function cBe(t,e,n,r){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const i=t[t.length-1],o=XD(s,e),a=XD(i,e);return!o||!a?!1:lBe(t)||(n==="spring"||YY(n))&&r}const uBe=new Set(["opacity","clipPath","filter","transform"]),dBe=GC(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fBe(t){const{motionValue:e,name:n,repeatDelay:r,repeatType:s,damping:i,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:c}=e.owner.getProps();return dBe()&&n&&uBe.has(n)&&(n!=="transform"||!c)&&!a&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const hBe=40;class pBe extends sT{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:c,motionValue:d,element:p,...m}){super(),this.stop=()=>{this._animation?(this._animation.stop(),this.stopTimeline?.()):this.keyframeResolver?.cancel()},this.createdAt=Ws.now();const v={autoplay:e,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:c,motionValue:d,element:p,...m},w=p?.KeyframeResolver||iT;this.keyframeResolver=new w(a,(E,C,b)=>this.onKeyframesResolved(E,C,v,!b),c,d,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,r,s){this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:c,isHandoff:d,onUpdate:p}=r;this.resolvedAt=Ws.now(),cBe(e,i,o,a)||((Gl.instantAnimations||!c)&&p?.(rT(e,r,n)),e[0]=e[e.length-1],r.duration=0,r.repeat=0);const v={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>hBe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:e},w=!d&&fBe(v)?new aBe({...v,element:v.motionValue.owner.current}):new UY(v);w.finished.then(()=>this.notifyFinished()).catch(Gi),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||QVe(),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this.animation.cancel()}}const mBe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gBe(t){const e=mBe.exec(t);if(!e)return[,];const[,n,r,s]=e;return[`--${n??r}`,s]}function XY(t,e,n=1){const[r,s]=gBe(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);if(i){const o=i.trim();return xY(o)?parseFloat(o):o}return ZC(s)?XY(s,e,n+1):s}function oT(t,e){return t?.[e]??t?.default??t}const ZY=new Set(["width","height","top","left","right","bottom",...Um]),vBe={test:t=>t==="auto",parse:t=>t},JY=t=>e=>e.test(t),eQ=[Hm,pt,Aa,kc,lVe,aVe,vBe],ZD=t=>eQ.find(JY(t));function yBe(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||wY(t):!0}const xBe=new Set(["brightness","contrast","saturate","opacity"]);function wBe(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(JC)||[];if(!r)return t;const s=n.replace(r,"");let i=xBe.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+s+")"}const _Be=/\b([a-z-]*)\(.*?\)/gu,r9={...Ru,getAnimatableNone:t=>{const e=t.match(_Be);return e?e.map(wBe).join(" "):t}},JD={...Hm,transform:Math.round},EBe={rotate:kc,rotateX:kc,rotateY:kc,rotateZ:kc,scale:P3,scaleX:P3,scaleY:P3,scaleZ:P3,skew:kc,skewX:kc,skewY:kc,distance:pt,translateX:pt,translateY:pt,translateZ:pt,x:pt,y:pt,z:pt,perspective:pt,transformPerspective:pt,opacity:g2,originX:jD,originY:jD,originZ:pt},aT={borderWidth:pt,borderTopWidth:pt,borderRightWidth:pt,borderBottomWidth:pt,borderLeftWidth:pt,borderRadius:pt,radius:pt,borderTopLeftRadius:pt,borderTopRightRadius:pt,borderBottomRightRadius:pt,borderBottomLeftRadius:pt,width:pt,maxWidth:pt,height:pt,maxHeight:pt,top:pt,right:pt,bottom:pt,left:pt,padding:pt,paddingTop:pt,paddingRight:pt,paddingBottom:pt,paddingLeft:pt,margin:pt,marginTop:pt,marginRight:pt,marginBottom:pt,marginLeft:pt,backgroundPositionX:pt,backgroundPositionY:pt,...EBe,zIndex:JD,fillOpacity:g2,strokeOpacity:g2,numOctaves:JD},bBe={...aT,color:os,backgroundColor:os,outlineColor:os,fill:os,stroke:os,borderColor:os,borderTopColor:os,borderRightColor:os,borderBottomColor:os,borderLeftColor:os,filter:r9,WebkitFilter:r9},tQ=t=>bBe[t];function nQ(t,e){let n=tQ(t);return n!==r9&&(n=Ru),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const SBe=new Set(["auto","none","0"]);function CBe(t,e,n){let r=0,s;for(;r<t.length&&!s;){const i=t[r];typeof i=="string"&&!SBe.has(i)&&v2(i).values.length&&(s=t[r]),r++}if(s&&n)for(const i of e)t[i]=nQ(n,s)}class TBe extends iT{constructor(e,n,r,s,i){super(e,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let d=e[c];if(typeof d=="string"&&(d=d.trim(),ZC(d))){const p=XY(d,n.current);p!==void 0&&(e[c]=p),c===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!ZY.has(r)||e.length!==2)return;const[s,i]=e,o=ZD(s),a=ZD(i);if(o!==a)if(KD(o)&&KD(a))for(let c=0;c<e.length;c++){const d=e[c];typeof d=="string"&&(e[c]=parseFloat(d))}else Yd[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let s=0;s<e.length;s++)(e[s]===null||yBe(e[s]))&&r.push(s);r.length&&CBe(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Yd[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(r,s).jump(s,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:r}=this;if(!e||!e.current)return;const s=e.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=Yd[n](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 73,990 bytes, line 3483
3483h(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function ABe(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let r=document;const s=n?.[t]??r.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t)}const{schedule:lT}=MY(queueMicrotask,!1),xo={x:!1,y:!1};function rQ(){return xo.x||xo.y}function IBe(t){return t==="x"||t==="y"?xo[t]?null:(xo[t]=!0,()=>{xo[t]=!1}):xo.x||xo.y?null:(xo.x=xo.y=!0,()=>{xo.x=xo.y=!1})}function sQ(t,e){const n=ABe(t),r=new AbortController,s={passive:!0,...e,signal:r.signal};return[n,s,()=>r.abort()]}function eO(t){return!(t.pointerType==="touch"||rQ())}function PBe(t,e,n={}){const[r,s,i]=sQ(t,n),o=a=>{if(!eO(a))return;const{target:c}=a,d=e(c,a);if(typeof d!="function"||!c)return;const p=m=>{eO(m)&&(d(m),c.removeEventListener("pointerleave",p))};c.addEventListener("pointerleave",p,s)};return r.forEach(a=>{a.addEventListener("pointerenter",o,s)}),i}const iQ=(t,e)=>e?t===e?!0:iQ(t,e.parentElement):!1,cT=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,RBe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function NBe(t){return RBe.has(t.tagName)||t.tabIndex!==-1}const i0=new WeakSet;function tO(t){return e=>{e.key==="Enter"&&t(e)}}function i8(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const MBe=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=tO(()=>{if(i0.has(n))return;i8(n,"down");const s=tO(()=>{i8(n,"up")}),i=()=>i8(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",i,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function nO(t){return cT(t)&&!rQ()}function kBe(t,e,n={}){const[r,s,i]=sQ(t,n),o=a=>{const c=a.currentTarget;if(!nO(a)||i0.has(c))return;i0.add(c);const d=e(c,a),p=(w,E)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",v),!(!nO(w)||!i0.has(c))&&(i0.delete(c),typeof d=="function"&&d(w,{success:E}))},m=w=>{p(w,c===window||c===document||n.useGlobalTarget||iQ(c,w.target))},v=w=>{p(w,!1)};window.addEventListener("pointerup",m,s),window.addEventListener("pointercancel",v,s)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a instanceof HTMLElement&&(a.addEventListener("focus",d=>MBe(d,s)),!NBe(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}const rO=30,DBe=t=>!isNaN(parseFloat(t));class OBe{constructor(e,n={}){this.version="__VERSION__",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,s=!0)=>{const i=Ws.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change?.notify(this.current),s&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Ws.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=DBe(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new KC);const r=this.events[e].add(n);return e==="change"?()=>{r(),Un.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ws.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>rO)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,rO);return _Y(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function y2(t,e){return new OBe(t,e)}const $Be=[...eQ,os,Ru],FBe=t=>$Be.find(JY(t)),oQ=(t,e)=>e&&typeof t=="number"?e.transform(t):t,aQ=_.createContext({strict:!1}),sO={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},fm={};for(const t in sO)fm[t]={isEnabled:e=>sO[t].some(n=>!!e[n])};function jBe(t){for(const e in t)fm[e]={...fm[e],...t[e]}}const LBe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function X4(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||LBe.has(t)}let lQ=t=>!X4(t);function zBe(t){t&&(lQ=e=>e.startsWith("on")?!X4(e):t(e))}try{zBe(require("@emotion/is-prop-valid").default)}catch{}function VBe(t,e,n){const r={};for(const s in t)s==="values"&&typeof t.values=="object"||(lQ(s)||n===!0&&X4(s)||!e&&!X4(s)||t.draggable&&s.startsWith("onDrag"))&&(r[s]=t[s]);return r}function BBe(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>t(...r);return new Proxy(n,{get:(r,s)=>s==="create"?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}const B6=_.createContext({});function H6(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function x2(t){return typeof t=="string"||Array.isArray(t)}const uT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],dT=["initial",...uT];function U6(t){return H6(t.animate)||dT.some(e=>x2(t[e]))}function cQ(t){return!!(U6(t)||t.variants)}function HBe(t,e){if(U6(t)){const{initial:n,animate:r}=t;return{initial:n===!1||x2(n)?n:void 0,animate:x2(r)?r:void 0}}return t.inherit!==!1?e:{}}function UBe(t){const{initial:e,animate:n}=HBe(t,_.useContext(B6));return _.useMemo(()=>({initial:e,animate:n}),[iO(e),iO(n)])}function iO(t){return Array.isArray(t)?t.join(" "):t}const WBe=Symbol.for("motionComponentSymbol");function Jh(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function qBe(t,e,n){return _.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):Jh(n)&&(n.current=r))},[e])}const fT=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),GBe="framerAppearId",uQ="data-"+fT(GBe),dQ=_.createContext({});function KBe(t,e,n,r,s){const{visualElement:i}=_.useContext(B6),o=_.useContext(aQ),a=_.useContext(V6),c=_.useContext(HC).reducedMotion,d=_.useRef(null);r=r||o.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const p=d.current,m=_.useContext(dQ);p&&!p.projection&&s&&(p.type==="html"||p.type==="svg")&&YBe(d.current,n,s,m);const v=_.useRef(!1);_.useInsertionEffect(()=>{p&&v.current&&p.update(n,a)});const w=n[uQ],E=_.useRef(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return vY(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),lT.render(p.render),E.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!E.current&&p.animationState&&p.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),E.current=!1))}),p}function YBe(t,e,n,r){const{layoutId:s,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:d,layoutCrossfade:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:fQ(t.parent)),t.projection.setOptions({layoutId:s,layout:i,alwaysMeasureLayout:!!o||a&&Jh(a),visualElement:t,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:c,layoutRoot:d})}function fQ(t){if(t)return t.options.allowProjection!==!1?t.projection:fQ(t.parent)}function QBe({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:s}){t&&jBe(t);function i(a,c){let d;const p={..._.useContext(HC),...a,layoutId:XBe(a)},{isStatic:m}=p,v=UBe(a),w=r(a,m);if(!m&&BC){ZBe();const E=JBe(p);d=E.MeasureLayout,v.visualElement=KBe(s,w,p,e,E.ProjectionNode)}return u.jsxs(B6.Provider,{value:v,children:[d&&v.visualElement?u.jsx(d,{visualElement:v.visualElement,...p}):null,n(s,a,qBe(w,v.visualElement,c),w,m,v.visualElement)]})}i.displayName=`motion.${typeof s=="string"?s:`create(${s.displayName??s.name??""})`}`;const o=_.forwardRef(i);return o[WBe]=s,o}function XBe({layoutId:t}){const e=_.useContext(zC).id;return e&&t!==void 0?e+"-"+t:t}function ZBe(t,e){_.useContext(aQ).strict}function JBe(t){const{drag:e,layout:n}=fm;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const w2={};function eHe(t){for(const e in t)w2[e]=t[e],XC(e)&&(w2[e].isCSSVariable=!0)}function hQ(t,{layout:e,layoutId:n}){return Wm.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!w2[t]||t==="opacity")}const us=t=>!!(t&&t.getVelocity),tHe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nHe=Um.length;function rHe(t,e,n){let r="",s=!0;for(let i=0;i<nHe;i++){const o=Um[i],a=t[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const d=oQ(a,aT[o]);if(!c){s=!1;const p=tHe[o]||o;r+=`${p}(${d}) `}n&&(e[o]=d)}}return r=r.trim(),n?r=n(e,s?"":r):s&&(r="none"),r}function hT(t,e,n){const{style:r,vars:s,transformOrigin:i}=t;let o=!1,a=!1;for(const c in e){const d=e[c];if(Wm.has(c)){o=!0;continue}else if(XC(c)){s[c]=d;continue}else{const p=oQ(d,aT[c]);c.startsWith("origin")?(a=!0,i[c]=p):r[c]=p}}if(e.transform||(o||n?r.transform=rHe(e,t.transform,n):r.transform&&(r.transform="none")),a){const{originX:c="50%",originY:d="50%",originZ:p=0}=i;r.transformOrigin=`${c} ${d} ${p}`}}const pT=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pQ(t,e,n){for(const r in e)!us(e[r])&&!hQ(r,n)&&(t[r]=e[r])}function sHe({transformTemplate:t},e){return _.useMemo(()=>{const n=pT();return hT(n,e,t),Object.assign({},n.vars,n.style)},[e])}function iHe(t,e){const n=t.style||{},r={};return pQ(r,n,t),Object.assign(r,sHe(t,e)),r}function oHe(t,e){const n={},r=iHe(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const aHe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function mT(t){return typeof t!="string"||t.includes("-")?!1:!!(aHe.indexOf(t)>-1||/[A-Z]/u.test(t))}const lHe={offset:"stroke-dashoffset",array:"stroke-dasharray"},cHe={offset:"strokeDashoffset",array:"strokeDasharray"};function uHe(t,e,n=1,r=0,s=!0){t.pathLength=1;const i=s?lHe:cHe;t[i.offset]=pt.transform(-r);const o=pt.transform(e),a=pt.transform(n);t[i.array]=`${o} ${a}`}function mQ(t,{attrX:e,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},c,d,p){if(hT(t,a,d),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:m,style:v}=t;m.transform&&(v.transform=m.transform,delete m.transform),(v.transform||m.transformOrigin)&&(v.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),v.transform&&(v.transformBox=p?.transformBox??"fill-box",delete m.transformBox),e!==void 0&&(m.x=e),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&uHe(m,s,i,o,!1)}const gQ=()=>({...pT(),attrs:{}}),vQ=t=>typeof t=="string"&&t.toLowerCase()==="svg";function dHe(t,e,n,r){const s=_.useMemo(()=>{const i=gQ();return mQ(i,e,vQ(r),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};pQ(i,t.style,t),s.style={...i,...s.style}}return s}function fHe(t=!1){return(n,r,s,{latestValues:i},o)=>{const c=(mT(n)?dHe:oHe)(r,i,o,n),d=VBe(r,typeof n=="string",t),p=n!==_.Fragment?{...d,...c,ref:s}:{},{children:m}=r,v=_.useMemo(()=>us(m)?m.get():m,[m]);return _.createElement(n,{...p,children:v})}}function oO(t){const e=[{},{}];return t?.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function gT(t,e,n,r){if(typeof e=="function"){const[s,i]=oO(r);e=e(n!==void 0?n:t.custom,s,i)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,i]=oO(r);e=e(n!==void 0?n:t.custom,s,i)}return e}function my(t){return us(t)?t.get():t}function hHe({scrapeMotionValuesFromProps:t,createRenderState:e},n,r,s){return{latestValues:pHe(n,r,s,t),renderState:e()}}const yQ=t=>(e,n)=>{const r=_.useContext(B6),s=_.useContext(V6),i=()=>hHe(t,e,r,s);return n?i():VC(i)};function pHe(t,e,n,r){const s={},i=r(t,{});for(const v in i)s[v]=my(i[v]);let{initial:o,animate:a}=t;const c=U6(t),d=cQ(t);e&&d&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let p=n?n.initial===!1:!1;p=p||o===!1;const m=p?a:o;if(m&&typeof m!="boolean"&&!H6(m)){const v=Array.isArray(m)?m:[m];for(let w=0;w<v.length;w++){const E=gT(t,v[w]);if(E){const{transitionEnd:C,transition:b,...S}=E;for(const P in S){let R=S[P];if(Array.isArray(R)){const z=p?R.length-1:0;R=R[z]}R!==null&&(s[P]=R)}for(const P in C)s[P]=C[P]}}}return s}function vT(t,e,n){const{style:r}=t,s={};for(const i in r)(us(r[i])||e.style&&us(e.style[i])||hQ(i,t)||n?.getValue(i)?.liveStyle!==void 0)&&(s[i]=r[i]);return s}const mHe={useVisualState:yQ({scrapeMotionValuesFromProps:vT,createRenderState:pT})};function xQ(t,e,n){const r=vT(t,e,n);for(const s in t)if(us(t[s])||us(e[s])){const i=Um.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=t[s]}return r}const gHe={useVisualState:yQ({scrapeMotionValuesFromProps:xQ,createRenderState:gQ})};function vHe(t,e){return function(r,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...mT(r)?gHe:mHe,preloadedFeatures:t,useRender:fHe(s),createVisualElement:e,Component:r};return QBe(o)}}function _2(t,e,n){const r=t.getProps();return gT(r,e,n!==void 0?n:r.custom,t)}const s9=t=>Array.isArray(t);function yHe(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,y2(n))}function xHe(t){return s9(t)?t[t.length-1]||0:t}function wHe(t,e){const n=_2(t,e);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=xHe(i[o]);yHe(t,o,a)}}function _He(t){return!!(us(t)&&t.add)}function i9(t,e){const n=t.getValue("willChange");if(_He(n))return n.add(e);if(!n&&Gl.WillChange){const r=new Gl.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function wQ(t){return t.props[uQ]}const EHe=t=>t!==null;function bHe(t,{repeat:e,repeatType:n="loop"},r){const s=t.filter(EHe),i=e&&n!=="loop"&&e%2===1?0:s.length-1;return s[i]}const SHe={type:"spring",stiffness:500,damping:25,restSpeed:10},CHe=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),THe={type:"keyframes",duration:.8},AHe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},IHe=(t,{keyframes:e})=>e.length>2?THe:Wm.has(t)?t.startsWith("scale")?CHe(e[1]):SHe:AHe;function PHe({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:d,...p}){return!!Object.keys(p).length}const yT=(t,e,n,r={},s,i)=>o=>{const a=oT(r,t)||{},c=a.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Ca(c);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-d,onUpdate:v=>{e.set(v),a.onUpdate&&a.onUpdate(v)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:i?void 0:s};PHe(a)||Object.assign(p,IHe(t,p)),p.duration&&(p.duration=Ca(p.duration)),p.repeatDelay&&(p.repeatDelay=Ca(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(m=!0)),(Gl.instantAnimations||Gl.skipAnimations)&&(m=!0,p.duration=0,p.delay=0),p.allowFlatten=!a.type&&!a.ease,m&&!i&&e.get()!==void 0){const v=bHe(p.keyframes,a);if(v!==void 0){Un.update(()=>{p.onUpdate(v),p.onComplete()});return}}return new pBe(p)};function RHe({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function _Q(t,e,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:o,...a}=e;r&&(i=r);const c=[],d=s&&t.animationState&&t.animationState.getState()[s];for(const p in a){const m=t.getValue(p,t.latestValues[p]??null),v=a[p];if(v===void 0||d&&RHe(d,p))continue;const w={delay:n,...oT(i||{},p)},E=m.get();if(E!==void 0&&!m.isAnimating&&!Array.isArray(v)&&v===E&&!w.velocity)continue;let C=!1;if(window.MotionHandoffAnimation){const S=wQ(t);if(S){const P=window.MotionHandoffAnimation(S,p,Un);P!==null&&(w.startTime=P,C=!0)}}i9(t,p),m.start(yT(p,m,v,t.shouldReduceMotion&&ZY.has(p)?{type:!1}:w,t,C));const b=m.animation;b&&c.push(b)}return o&&Promise.all(c).then(()=>{Un.update(()=>{o&&wHe(t,o)})}),c}function o9(t,e,n={}){const r=_2(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:s=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(s=n.transitionOverride);const i=r?()=>Promise.all(_Q(t,r,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:p,staggerDirection:m}=s;return NHe(t,e,d+c,p,m,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,d]=a==="beforeChildren"?[i,o]:[o,i];return c().then(()=>d())}else return Promise.all([i(),o(n.delay)])}function NHe(t,e,n=0,r=0,s=1,i){const o=[],a=(t.variantChildren.size-1)*r,c=s===1?(d=0)=>d*r:(d=0)=>a-d*r;return Array.from(t.variantChildren).sort(MHe).forEach((d,p)=>{d.notify("AnimationStart",e),o.push(o9(d,e,{...i,delay:n+c(p)}).then(()=>d.notify("AnimationComplete",e)))}),Promise.all(o)}function MHe(t,e){return t.sortNodePosition(e)}function kHe(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const s=e.map(i=>o9(t,i,n));r=Promise.all(s)}else if(typeof e=="string")r=o9(t,e,n);else{const s=typeof e=="function"?_2(t,e,n.custom):e;r=Promise.all(_Q(t,s,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}function EQ(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}const DHe=dT.length;function bQ(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?bQ(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<DHe;n++){const r=dT[n],s=t.props[r];(x2(s)||s===!1)&&(e[r]=s)}return e}const OHe=[...uT].reverse(),$He=uT.length;function FHe(t){return e=>Promise.all(e.map(({animation:n,options:r})=>kHe(t,n,r)))}function jHe(t){let e=FHe(t),n=aO(),r=!0;const s=c=>(d,p)=>{const m=_2(t,p,c==="exit"?t.presenceContext?.custom:void 0);if(m){const{transition:v,transitionEnd:w,...E}=m;d={...d,...E,...w}}return d};function i(c){e=c(t)}function o(c){const{props:d}=t,p=bQ(t.parent)||{},m=[],v=new Set;let w={},E=1/0;for(let b=0;b<$He;b++){const S=OHe[b],P=n[S],R=d[S]!==void 0?d[S]:p[S],z=x2(R),O=S===c?P.isActive:null;O===!1&&(E=b);let F=R===p[S]&&R!==d[S]&&z;if(F&&r&&t.manuallyAnimateOnMount&&(F=!1),P.protectedKeys={...w},!P.isActive&&O===null||!R&&!P.prevProp||H6(R)||typeof R=="boolean")continue;const D=LHe(P.prevProp,R);let I=D||S===c&&P.isActive&&!F&&z||b>E&&z,T=!1;const k=Array.isArray(R)?R:[R];let j=k.reduce(s(S),{});O===!1&&(j={});const{prevResolvedValues:L={}}=P,V={...L,...j},Y=U=>{I=!0,v.has(U)&&(T=!0,v.delete(U)),P.needsAnimating[U]=!0;const B=t.getValue(U);B&&(B.liveStyle=!1)};for(const U in V){const B=j[U],ne=L[U];if(w.hasOwnProperty(U))continue;let oe=!1;s9(B)&&s9(ne)?oe=!EQ(B,ne):oe=B!==ne,oe?B!=null?Y(U):v.add(U):B!==void 0&&v.has(U)?Y(U):P.protectedKeys[U]=!0}P.prevProp=R,P.prevResolvedValues=j,P.isActive&&(w={...w,...j}),r&&t.blockInitialAnimation&&(I=!1),I&&(!(F&&D)||T)&&m.push(...k.map(U=>({animation:U,options:{type:S}})))}if(v.size){const b={};if(typeof d.initial!="boolean"){const S=_2(t,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(b.transition=S.transition)}v.forEach(S=>{const P=t.getBaseTarget(S),R=t.getValue(S);R&&(R.liveStyle=!0),b[S]=P??null}),m.push({animation:b})}let C=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!t.manuallyAnimateOnMount&&(C=!1),r=!1,C?e(m):Promise.resolve()}function a(c,d){if(n[c].isActive===d)return Promise.resolve();t.variantChildren?.forEach(m=>m.animationState?.setActive(c,d)),n[c].isActive=d;const p=o(c);for(const m in n)n[m].protectedKeys={};return p}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=aO(),r=!0}}}function LHe(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!EQ(e,t):!1}function gd(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function aO(){return{animate:gd(!0),whileInView:gd(),whileHover:gd(),whileTap:gd(),whileDrag:gd(),whileFocus:gd(),exit:gd()}}class zu{constructor(e){this.isMounted=!1,this.node=e}update(){}}class zHe extends zu{constructor(e){super(e),e.animationState||(e.animationState=jHe(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();H6(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let VHe=0;class BHe extends zu{constructor(){super(...arguments),this.id=VHe++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const HHe={animation:{Feature:zHe},exit:{Feature:BHe}};function E2(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function xg(t){return{point:{x:t.pageX,y:t.pageY}}}const UHe=t=>e=>cT(e)&&t(e,xg(e));function S0(t,e,n,r){return E2(t,e,UHe(n),r)}function SQ({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function WHe({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function qHe(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const CQ=1e-4,GHe=1-CQ,KHe=1+CQ,TQ=.01,YHe=0-TQ,QHe=0+TQ;function Ss(t){return t.max-t.min}function XHe(t,e,n){return Math.abs(t-e)<=n}function lO(t,e,n,r=.5){t.origin=r,t.originPoint=Bn(e.min,e.max,t.origin),t.scale=Ss(n)/Ss(e),t.translate=Bn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=GHe&&t.scale<=KHe||isNaN(t.scale))&&(t.scale=1),(t.translate>=YHe&&t.translate<=QHe||isNaN(t.translate))&&(t.translate=0)}function C0(t,e,n,r){lO(t.x,e.x,n.x,r?r.originX:void 0),lO(t.y,e.y,n.y,r?r.originY:void 0)}function cO(t,e,n){t.min=n.min+e.min,t.max=t.min+Ss(e)}function ZHe(t,e,n){cO(t.x,e.x,n.x),cO(t.y,e.y,n.y)}function uO(t,e,n){t.min=e.min-n.min,t.max=t.min+Ss(e)}function T0(t,e,n){uO(t.x,e.x,n.x),uO(t.y,e.y,n.y)}const dO=()=>({translate:0,scale:1,origin:0,originPoint:0}),ep=()=>({x:dO(),y:dO()}),fO=()=>({min:0,max:0}),rr=()=>({x:fO(),y:fO()});function Di(t){return[t("x"),t("y")]}function o8(t){return t===void 0||t===1}function a9({scale:t,scaleX:e,scaleY:n}){return!o8(t)||!o8(e)||!o8(n)}function _d(t){return a9(t)||AQ(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function AQ(t){return hO(t.x)||hO(t.y)}function hO(t){return t&&t!=="0%"}function Z4(t,e,n){const r=t-n,s=e*r;return n+s}function pO(t,e,n,r,s){return s!==void 0&&(t=Z4(t,s,r)),Z4(t,n,r)+e}function l9(t,e=0,n=1,r,s){t.min=pO(t.min,e,n,r,s),t.max=pO(t.max,e,n,r,s)}function IQ(t,{x:e,y:n}){l9(t.x,e.translate,e.scale,e.originPoint),l9(t.y,n.translate,n.scale,n.originPoint)}const mO=.999999999999,gO=1.0000000000001;function JHe(t,e,n,r=!1){const s=n.length;if(!s)return;e.x=e.y=1;let i,o;for(let a=0;a<s;a++){i=n[a],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&np(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,IQ(t,o)),r&&_d(i.latestValues)&&np(t,i.latestValues))}e.x<gO&&e.x>mO&&(e.x=1),e.y<gO&&e.y>mO&&(e.y=1)}function tp(t,e){t.min=t.min+e,t.max=t.max+e}function vO(t,e,n,r,s=.5){const i=Bn(t.min,t.max,s);l9(t,e,n,i,r)}function np(t,e){vO(t.x,e.x,e.scaleX,e.scale,e.originX),vO(t.y,e.y,e.scaleY,e.scale,e.originY)}function PQ(t,e){return SQ(qHe(t.getBoundingClientRect(),e))}function eUe(t,e,n){const r=PQ(t,n),{scroll:s}=e;return s&&(tp(r.x,s.offset.x),tp(r.y,s.offset.y)),r}const RQ=({current:t})=>t?t.ownerDocument.defaultView:null,yO=(t,e)=>Math.abs(t-e);function tUe(t,e){const n=yO(t.x,e.x),r=yO(t.y,e.y);return Math.sqrt(n**2+r**2)}class NQ{constructor(e,n,{transformPagePoint:r,contextWindow:s,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=l8(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,w=tUe(m.offset,{x:0,y:0})>=3;if(!v&&!w)return;const{point:E}=m,{timestamp:C}=qr;this.history.push({...E,timestamp:C});const{onStart:b,onMove:S}=this.handlers;v||(b&&b(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,m)},this.handlePointerMove=(m,v)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=a8(v,this.transformPagePoint),Un.update(this.updatePoint,!0)},this.handlePointerUp=(m,v)=>{this.end();const{onEnd:w,onSessionEnd:E,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=l8(m.type==="pointercancel"?this.lastMoveEventInfo:a8(v,this.transformPagePoint),this.history);this.startEvent&&w&&w(m,b),E&&E(m,b)},!cT(e))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=s||window;const o=xg(e),a=a8(o,this.transformPagePoint),{point:c}=a,{timestamp:d}=qr;this.history=[{...c,timestamp:d}];const{onSessionStart:p}=n;p&&p(e,l8(a,this.history)),this.removeListeners=gg(S0(this.contextWindow,"pointermove",this.handlePointerMove),S0(this.contextWindow,"pointerup",this.handlePointerUp),S0(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Pu(this.updatePoint)}}function a8(t,e){return e?{point:e(t.point)}:t}function xO(t,e){return{x:t.x-e.x,y:t.y-e.y}}function l8({point:t},e){return{point:t,delta:xO(t,MQ(e)),offset:xO(t,nUe(e)),velocity:rUe(e,.1)}}function nUe(t){return t[0]}function MQ(t){return t[t.length-1]}function rUe(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const s=MQ(t);for(;n>=0&&(r=t[n],!(s.timestamp-r.timestamp>Ca(e)));)n--;if(!r)return{x:0,y:0};const i=Ta(s.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const o={x:(s.x-r.x)/i,y:(s.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function sUe(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Bn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Bn(n,t,r.max):Math.min(t,n)),t}function wO(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function iUe(t,{top:e,left:n,bottom:r,right:s}){return{x:wO(t.x,n,s),y:wO(t.y,e,r)}}function _O(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function oUe(t,e){return{x:_O(t.x,e.x),y:_O(t.y,e.y)}}function aUe(t,e){let n=.5;const r=Ss(t),s=Ss(e);return s>r?n=m2(e.min,e.max-r,t.min):r>s&&(n=m2(t.min,t.max-s,e.min)),ql(0,1,n)}function lUe(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const c9=.35;function cUe(t=c9){return t===!1?t=0:t===!0&&(t=c9),{x:EO(t,"left","right"),y:EO(t,"top","bottom")}}function EO(t,e,n){return{min:bO(t,e),max:bO(t,n)}}function bO(t,e){return typeof t=="number"?t:t[e]||0}const uUe=new WeakMap;class dUe{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const s=p=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(xg(p).point)},i=(p,m)=>{const{drag:v,dragPropagation:w,onDragStart:E}=this.getProps();if(v&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=IBe(v),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Di(b=>{let S=this.getAxisMotionValue(b).get()||0;if(Aa.test(S)){const{projection:P}=this.visualElement;if(P&&P.layout){const R=P.layout.layoutBox[b];R&&(S=Ss(R)*(parseFloat(S)/100))}}this.originPoint[b]=S}),E&&Un.postRender(()=>E(p,m)),i9(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},o=(p,m)=>{const{dragPropagation:v,dragDirectionLock:w,onDirectionLock:E,onDrag:C}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:b}=m;if(w&&this.currentDirection===null){this.currentDirection=fUe(b),this.currentDirection!==null&&E&&E(this.currentDirection);return}this.updateAxis("x",m.point,b),this.updateAxis("y",m.point,b),this.visualElement.render(),C&&C(p,m)},a=(p,m)=>this.stop(p,m),c=()=>Di(p=>this.getAnimationState(p)==="paused"&&this.getAxisMotionValue(p).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new NQ(e,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:RQ(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&Un.postRender(()=>i(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:s}=this.getProps();if(!r||!R3(e,s,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=sUe(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&Jh(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=iUe(r.layoutBox,e):this.constraints=!1,this.elastic=cUe(n),s!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Di(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=lUe(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Jh(e))return!1;const r=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=eUe(r,s.root,this.visualElement.getTransformPagePoint());let o=oUe(s.layout.layoutBox,i);if(n){const a=n(WHe(o));this.hasMutatedConstraints=!!a,a&&(o=SQ(a))}return o}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},d=Di(p=>{if(!R3(p,n,this.currentDirection))return;let m=c&&c[p]||{};o&&(m={min:0,max:0});const v=s?200:1e6,w=s?40:1e7,E={type:"inertia",velocity:r?e[p]:0,bounceStiffness:v,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...i,...m};return this.startAxisValueAnimation(p,E)});return Promise.all(d).then(a)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return i9(this.visualElement,e),r.start(yT(e,r,0,n,this.visualElement,!1))}stopAnimation(){Di(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Di(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),s=r[n];return s||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Di(n=>{const{drag:r}=this.getProps();if(!R3(n,r,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];i.set(e[n]-Bn(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Jh(n)||!r||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};Di(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();s[o]=aUe({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Di(o=>{if(!R3(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:d}=this.constraints[o];a.set(Bn(c,d,s[o]))})}addListeners(){if(!this.visualElement.current)return;uUe.set(this.visualElement,this);const e=this.visualElement.current,n=S0(e,"pointerdown",c=>{const{drag:d,dragListener:p=!0}=this.getProps();d&&p&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Jh(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",r);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Un.read(r);const o=E2(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Di(p=>{const m=this.getAxisMotionValue(p);m&&(this.originPoint[p]+=c[p].translate,m.set(m.get()+c[p].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=c9,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function R3(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function fUe(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class hUe extends zu{constructor(e){super(e),this.removeGroupControls=Gi,this.removeListeners=Gi,this.controls=new dUe(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gi}unmount(){this.removeGroupControls(),this.removeListeners()}}const SO=t=>(e,n)=>{t&&Un.postRender(()=>t(e,n))};class pUe extends zu{constructor(){super(...arguments),this.removePointerDownListener=Gi}onPointerDown(e){this.session=new NQ(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:RQ(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:SO(e),onStart:SO(n),onMove:r,onEnd:(i,o)=>{delete this.session,s&&Un.postRender(()=>s(i,o))}}}mount(){this.removePointerDownListener=S0(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const gy={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function CO(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const B1={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(pt.test(t))t=parseFloat(t);else return t;const n=CO(t,e.target.x),r=CO(t,e.target.y);return`${n}% ${r}%`}},mUe={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,s=Ru.parse(t);if(s.length>5)return r;const i=Ru.createTransformer(t),o=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;s[0+o]/=a,s[1+o]/=c;const d=Bn(a,c,.5);return typeof s[2+o]=="number"&&(s[2+o]/=d),typeof s[3+o]=="number"&&(s[3+o]/=d),i(s)}};class gUe extends _.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:s}=this.props,{projection:i}=e;eHe(vUe),i&&(n.group&&n.group.add(i),r&&r.register&&s&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),gy.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:s,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,s||e.layoutDependency!==n||n===void 0||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Un.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),lT.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function kQ(t){const[e,n]=yY(),r=_.useContext(zC);return u.jsx(gUe,{...t,layoutGroup:r,switchLayoutGroup:_.useContext(dQ),isPresent:e,safeToRemove:n})}const vUe={borderRadius:{...B1,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:B1,borderTopRightRadius:B1,borderBottomLeftRadius:B1,borderBottomRightRadius:B1,boxShadow:mUe};function yUe(t,e,n){const r=us(t)?t:y2(t);return r.start(yT("",r,e,n)),r.animation}function xUe(t){return t instanceof SVGElement&&t.tagName!=="svg"}const wUe=(t,e)=>t.depth-e.depth;class _Ue{constructor(){this.children=[],this.isDirty=!1}add(e){UC(this.children,e),this.isDirty=!0}remove(e){WC(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(wUe),this.isDirty=!1,this.children.forEach(e)}}function EUe(t,e){const n=Ws.now(),r=({timestamp:s})=>{const i=s-n;i>=e&&(Pu(r),t(i-e))};return Un.setup(r,!0),()=>Pu(r)}const DQ=["TopLeft","TopRight","BottomLeft","BottomRight"],bUe=DQ.length,TO=t=>typeof t=="string"?parseFloat(t):t,AO=t=>typeof t=="number"||pt.test(t);function SUe(t,e,n,r,s,i){s?(t.opacity=Bn(0,n.opacity??1,CUe(r)),t.opacityExit=Bn(e.opacity??1,0,TUe(r))):i&&(t.opacity=Bn(e.opacity??1,n.opacity??1,r));for(let o=0;o<bUe;o++){const a=`border${DQ[o]}Radius`;let c=IO(e,a),d=IO(n,a);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||AO(c)===AO(d)?(t[a]=Math.max(Bn(TO(c),TO(d),r),0),(Aa.test(d)||Aa.test(c))&&(t[a]+="%")):t[a]=d}(e.rotate||n.rotate)&&(t.rotate=Bn(e.rotate||0,n.rotate||0,r))}function IO(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const CUe=OQ(0,.5,IY),TUe=OQ(.5,.95,Gi);function OQ(t,e,n){return r=>r<t?0:r>e?1:n(m2(t,e,r))}function PO(t,e){t.min=e.min,t.max=e.max}function Mi(t,e){PO(t.x,e.x),PO(t.y,e.y)}function RO(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function NO(t,e,n,r,s){return t-=e,t=Z4(t,1/n,r),s!==void 0&&(t=Z4(t,1/s,r)),t}function AUe(t,e=0,n=1,r=.5,s,i=t,o=t){if(Aa.test(e)&&(e=parseFloat(e),e=Bn(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Bn(i.min,i.max,r);t===i&&(a-=e),t.min=NO(t.min,e,n,a,s),t.max=NO(t.max,e,n,a,s)}function MO(t,e,[n,r,s],i,o){AUe(t,e[n],e[r],e[s],e.scale,i,o)}const IUe=["x","scaleX","originX"],PUe=["y","scaleY","originY"];function kO(t,e,n,r){MO(t.x,e,IUe,n?n.x:void 0,r?r.x:void 0),MO(t.y,e,PUe,n?n.y:void 0,r?r.y:void 0)}function DO(t){return t.translate===0&&t.scale===1}function $Q(t){return DO(t.x)&&DO(t.y)}function OO(t,e){return t.min===e.min&&t.max===e.max}function RUe(t,e){return OO(t.x,e.x)&&OO(t.y,e.y)}function $O(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function FQ(t,e){return $O(t.x,e.x)&&$O(t.y,e.y)}function FO(t){return Ss(t.x)/Ss(t.y)}function jO(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class NUe{constructor(){this.members=[]}add(e){UC(this.members,e),e.scheduleRender()}remove(e){if(WC(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let r;for(let s=n;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function MUe(t,e,n){let r="";const s=t.x.translate/e.x,i=t.y.translate/e.y,o=n?.z||0;if((s||i||o)&&(r=`translate3d(${s}px, ${i}px, ${o}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:d,rotate:p,rotateX:m,rotateY:v,skewX:w,skewY:E}=n;d&&(r=`perspective(${d}px) ${r}`),p&&(r+=`rotate(${p}deg) `),m&&(r+=`rotateX(${m}deg) `),v&&(r+=`rotateY(${v}deg) `),w&&(r+=`skewX(${w}deg) `),E&&(r+=`skewY(${E}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const c8=["","X","Y","Z"],kUe={visibility:"hidden"},LO=1e3;let DUe=0;function u8(t,e,n,r){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),r&&(r[t]=0))}function jQ(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=wQ(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Un,!(s||i))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&jQ(r)}function LQ({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:s}){return class{constructor(o={},a=e?.()){this.id=DUe++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(FUe),this.nodes.forEach(BUe),this.nodes.forEach(HUe),this.nodes.forEach(jUe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new _Ue)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new KC),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=xUe(o),this.instance=o;const{layoutId:a,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let p;const m=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=EUe(m,250),gy.hasAnimatedSinceResize&&(gy.hasAnimatedSinceResize=!1,this.nodes.forEach(VO))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&d&&(a||c)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:v,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const E=this.options.transition||d.getDefaultTransition()||KUe,{onLayoutAnimationStart:C,onLayoutAnimationComplete:b}=d.getProps(),S=!this.targetLayout||!FQ(this.targetLayout,w),P=!m&&v;if(this.options.layoutRoot||this.resumeFrom||P||m&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,P);const R={...oT(E,"layout"),onPlay:C,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R)}else m||VO(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Pu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(UUe),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&jQ(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const m=this.path[p];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zO);return}this.isUpdating||this.nodes.forEach(zUe),this.isUpdating=!1,this.nodes.forEach(VUe),this.nodes.forEach(OUe),this.nodes.forEach($Ue),this.clearAllSnapshots();const a=Ws.now();qr.delta=ql(0,1e3/60,a-qr.timestamp),qr.timestamp=a,qr.isProcessing=!0,t8.update.process(qr),t8.preRender.process(qr),t8.render.process(qr),qr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,lT.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(LUe),this.sharedNodes.forEach(WUe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Un.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Un.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ss(this.snapshot.measuredBox.x)&&!Ss(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!$Q(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,p=d!==this.prevTransformTemplateValue;o&&this.instance&&(a||_d(this.latestValues)||p)&&(s(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),YUe(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return rr();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(QUe))){const{scroll:d}=this.root;d&&(tp(a.x,d.offset.x),tp(a.y,d.offset.y))}return a}removeElementScroll(o){const a=rr();if(Mi(a,o),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:p,options:m}=d;d!==this.root&&p&&m.layoutScroll&&(p.wasRoot&&Mi(a,o),tp(a.x,p.offset.x),tp(a.y,p.offset.y))}return a}applyTransform(o,a=!1){const c=rr();Mi(c,o);for(let d=0;d<this.path.length;d++){const p=this.path[d];!a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&np(c,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),_d(p.latestValues)&&np(c,p.latestValues)}return _d(this.latestValues)&&np(c,this.latestValues),c}removeTransform(o){const a=rr();Mi(a,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!_d(d.latestValues))continue;a9(d.latestValues)&&d.updateSnapshot();const p=rr(),m=d.measurePageBox();Mi(p,m),kO(a,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,p)}return _d(this.latestValues)&&kO(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==qr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:m}=this.options;if(!(!this.layout||!(p||m))){if(this.resolvedRelativeTargetAt=qr.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rr(),this.relativeTargetOrigin=rr(),T0(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Mi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=rr(),this.targetWithTransforms=rr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ZHe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Mi(this.target,this.layout.layoutBox),IQ(this.target,this.targetDelta)):Mi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rr(),this.relativeTargetOrigin=rr(),T0(this.relativeTargetOrigin,this.target,v.target),Mi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||a9(this.parent.latestValues)||AQ(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===qr.timestamp&&(c=!1),c)return;const{layout:d,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||p))return;Mi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;JHe(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=rr());const{target:w}=o;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(RO(this.prevProjectionDelta.x,this.projectionDelta.x),RO(this.prevProjectionDelta.y,this.projectionDelta.y)),C0(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!jO(this.projectionDelta.x,this.prevProjectionDelta.x)||!jO(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ep(),this.projectionDelta=ep(),this.projectionDeltaWithTransform=ep()}setAnimationOrigin(o,a=!1){const c=this.snapshot,d=c?c.latestValues:{},p={...this.latestValues},m=ep();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const v=rr(),w=c?c.source:void 0,E=this.layout?this.layout.source:void 0,C=w!==E,b=this.getStack(),S=!b||b.members.length<=1,P=!!(C&&!S&&this.options.crossfade===!0&&!this.path.some(GUe));this.animationProgress=0;let R;this.mixTargetDelta=z=>{const O=z/1e3;BO(m.x,o.x,O),BO(m.y,o.y,O),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(T0(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),qUe(this.relativeTarget,this.relativeTargetOrigin,v,O),R&&RUe(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=rr()),Mi(R,this.relativeTarget)),C&&(this.animationValues=p,SUe(p,d,this.latestValues,O,P,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Pu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Un.update(()=>{gy.hasAnimatedSinceResize=!0,this.currentAnimation=yUe(0,LO,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(LO),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:d,latestValues:p}=o;if(!(!a||!c||!d)){if(this!==o&&this.layout&&d&&zQ(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||rr();const m=Ss(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+m;const v=Ss(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+v}Mi(a,c),np(a,p),C0(this.projectionDeltaWithTransform,this.layoutCorrected,a,p)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new NUe),this.sharedNodes.get(o).add(a);const d=a.options.initialPromotionConfig;a.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const d={};c.z&&u8("z",o,d,this.animationValues);for(let p=0;p<c8.length;p++)u8(`rotate${c8[p]}`,o,d,this.animationValues),u8(`skew${c8[p]}`,o,d,this.animationValues);o.render();for(const p in d)o.setStaticValue(p,d[p]),this.animationValues&&(this.animationValues[p]=d[p]);o.scheduleRender()}getProjectionStyles(o){if(!this.instance||this.isSVG)return;if(!this.isVisible)return kUe;const a={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,a.opacity="",a.pointerEvents=my(o?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none",a;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=my(o?.pointerEvents)||""),this.hasProjected&&!_d(this.latestValues)&&(w.transform=c?c({},""):"none",this.hasProjected=!1),w}const p=d.animationValues||d.latestValues;this.applyTransformsToTarget(),a.transform=MUe(this.projectionDeltaWithTransform,this.treeScale,p),c&&(a.transform=c(p,a.transform));const{x:m,y:v}=this.projectionDelta;a.transformOrigin=`${m.origin*100}% ${v.origin*100}% 0`,d.animationValues?a.opacity=d===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:a.opacity=d===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const w in w2){if(p[w]===void 0)continue;const{correct:E,applyTo:C,isCSSVariable:b}=w2[w],S=a.transform==="none"?p[w]:E(p[w],d);if(C){const P=C.length;for(let R=0;R<P;R++)a[C[R]]=S}else b?this.options.visualElement.renderState.vars[w]=S:a[w]=S}return this.options.layoutId&&(a.pointerEvents=d===this?my(o?.pointerEvents)||"":"none"),a}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(zO),this.root.sharedNodes.clear()}}}function OUe(t){t.updateLayout()}function $Ue(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=t.layout,{animationType:s}=t.options,i=e.source!==t.layout.source;s==="size"?Di(p=>{const m=i?e.measuredBox[p]:e.layoutBox[p],v=Ss(m);m.min=n[p].min,m.max=m.min+v}):zQ(s,e.layoutBox,n)&&Di(p=>{const m=i?e.measuredBox[p]:e.layoutBox[p],v=Ss(n[p]);m.max=m.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[p].max=t.relativeTarget[p].min+v)});const o=ep();C0(o,n,e.layoutBox);const a=ep();i?C0(a,t.applyTransform(r,!0),e.measuredBox):C0(a,n,e.layoutBox);const c=!$Q(o);let d=!1;if(!t.resumeFrom){const p=t.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:m,layout:v}=p;if(m&&v){const w=rr();T0(w,e.layoutBox,m.layoutBox);const E=rr();T0(E,n,v.layoutBox),FQ(w,E)||(d=!0),p.options.layoutRoot&&(t.relativeTarget=E,t.relativeTargetOrigin=w,t.relativeParent=p)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function FUe(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function jUe(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function LUe(t){t.clearSnapshot()}function zO(t){t.clearMeasurements()}function zUe(t){t.isLayoutDirty=!1}function VUe(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function VO(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function BUe(t){t.resolveTargetDelta()}function HUe(t){t.calcProjection()}function UUe(t){t.resetSkewAndRotation()}function WUe(t){t.removeLeadSnapshot()}function BO(t,e,n){t.translate=Bn(e.translate,0,n),t.scale=Bn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function HO(t,e,n,r){t.min=Bn(e.min,n.min,r),t.max=Bn(e.max,n.max,r)}function qUe(t,e,n,r){HO(t.x,e.x,n.x,r),HO(t.y,e.y,n.y,r)}function GUe(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const KUe={duration:.45,ease:[.4,0,.1,1]},UO=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),WO=UO("applewebkit/")&&!UO("chrome/")?Math.round:Gi;function qO(t){t.min=WO(t.min),t.max=WO(t.max)}function YUe(t){qO(t.x),qO(t.y)}function zQ(t,e,n){return t==="position"||t==="preserve-aspect"&&!XHe(FO(e),FO(n),.2)}function QUe(t){return t!==t.root&&t.scroll?.wasRoot}const XUe=LQ({attachResizeListener:(t,e)=>E2(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),d8={current:void 0},VQ=LQ({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!d8.current){const t=new XUe({});t.mount(window),t.setOptions({layoutScroll:!0}),d8.current=t}return d8.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),ZUe={pan:{Feature:pUe},drag:{Feature:hUe,ProjectionNode:VQ,MeasureLayout:kQ}};function GO(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,i=r[s];i&&Un.postRender(()=>i(e,xg(e)))}class JUe extends zu{mount(){const{current:e}=this.node;e&&(this.unmount=PBe(e,(n,r)=>(GO(this.node,r,"Start"),s=>GO(this.node,s,"End"))))}unmount(){}}class eWe extends zu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=gg(E2(this.node.current,"focus",()=>this.onFocus()),E2(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function KO(t,e,n){const{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),i=r[s];i&&Un.postRender(()=>i(e,xg(e)))}class tWe extends zu{mount(){const{current:e}=this.node;e&&(this.unmount=kBe(e,(n,r)=>(KO(this.node,r,"Start"),(s,{success:i})=>KO(this.node,s,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const u9=new WeakMap,f8=new WeakMap,nWe=t=>{const e=u9.get(t.target);e&&e(t)},rWe=t=>{t.forEach(nWe)};function sWe({root:t,...e}){const n=t||document;f8.has(n)||f8.set(n,{});const r=f8.get(n),s=JSON.stringify(e);return r[s]||(r[s]=new IntersectionObserver(rWe,{root:t,...e})),r[s]}function iWe(t,e,n){const r=sWe(e);return u9.set(t,n),r.observe(t),()=>{u9.delete(t),r.unobserve(t)}}const oWe={some:0,all:1};class aWe extends zu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:i}=e,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof s=="number"?s:oWe[s]},a=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:p,onViewportLeave:m}=this.node.getProps(),v=d?p:m;v&&v(c)};return iWe(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(lWe(e,n))&&this.startObserver()}unmount(){}}function lWe({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const cWe={inView:{Feature:aWe},tap:{Feature:tWe},focus:{Feature:eWe},hover:{Feature:JUe}},uWe={layout:{ProjectionNode:VQ,MeasureLayout:kQ}},d9={current:null},BQ={current:!1};function dWe(){if(BQ.current=!0,!!BC)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>d9.current=t.matches;t.addListener(e),e()}else d9.current=!1}const fWe=new WeakMap;function hWe(t,e,n){for(const r in e){const s=e[r],i=n[r];if(us(s))t.addValue(r,s);else if(us(i))t.addValue(r,y2(s,{owner:t}));else if(i!==s)if(t.hasValue(r)){const o=t.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=t.getStaticValue(r);t.addValue(r,y2(o!==void 0?o:s,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const YO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class pWe{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:s,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=iT,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Ws.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,Un.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=U6(n),this.isVariantNode=cQ(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in m){const w=m[v];c[v]!==void 0&&us(w)&&w.set(c[v],!1)}}mount(e){this.current=e,fWe.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),BQ.current||dWe(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:d9.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Pu(this.notifyUpdate),Pu(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=Wm.has(e);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Un.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in fm){const n=fm[e];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[e]&&s&&r(this.props)&&(this.features[e]=new s(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<YO.length;r++){const s=YO[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=e[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=hWe(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
3483addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=y2(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(xY(r)||wY(r))?r=parseFloat(r):!FBe(r)&&Ru.test(n)&&(r=nQ(e,n)),this.setBaseTarget(e,us(r)?r.get():r)),us(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=gT(this.props,n,this.presenceContext?.custom);i&&(r=i[e])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!us(s)?s:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new KC),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class HQ extends pWe{constructor(){super(...arguments),this.KeyframeResolver=TBe}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;us(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function UQ(t,{style:e,vars:n},r,s){Object.assign(t.style,e,s&&s.getProjectionStyles(r));for(const i in n)t.style.setProperty(i,n[i])}function mWe(t){return window.getComputedStyle(t)}class gWe extends HQ{constructor(){super(...arguments),this.type="html",this.renderInstance=UQ}readValueFromInstance(e,n){if(Wm.has(n))return WVe(e,n);{const r=mWe(e),s=(XC(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return PQ(e,n)}build(e,n,r){hT(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return vT(e,n,r)}}const WQ=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function vWe(t,e,n,r){UQ(t,e,void 0,r);for(const s in e.attrs)t.setAttribute(WQ.has(s)?s:fT(s),e.attrs[s])}class yWe extends HQ{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rr}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Wm.has(n)){const r=tQ(n);return r&&r.default||0}return n=WQ.has(n)?n:fT(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return xQ(e,n,r)}build(e,n,r){mQ(e,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,n,r,s){vWe(e,n,r,s)}mount(e){this.isSVGTag=vQ(e.tagName),super.mount(e)}}const xWe=(t,e)=>mT(t)?new yWe(e):new gWe(e,{allowProjection:t!==_.Fragment}),wWe=vHe({...HHe,...cWe,...ZUe,...uWe},xWe),vd=BBe(wWe),_We=({frecuencies:t,initialDeliveryDate:e,onGoBack:n})=>{const r=t.find(v=>v.name===e)?.date,[s,i]=_.useState(r?su(r):void 0),o=s?t.find(v=>v.date===of(s))?.name:void 0,a=u6(),c=[...t].sort((v,w)=>new Date(v.date).getTime()-new Date(w.date).getTime());_.useEffect(()=>{a.isSuccess&&n()},[a.isSuccess,n]);const d=()=>{a.mutate({form_shipping_first_delivery_date:o})},[p,m]=_.useState(!1);return u.jsxs("div",{children:[u.jsxs("div",{className:"mb-4 flex items-center gap-2 rounded-md border border-border px-2 py-2 bg-primary/10",children:[u.jsx(cfe,{size:32,className:"text-primary"}),u.jsx("p",{className:"text-xs text-muted-foreground font-semibold",children:"Basado en tu comuna y la frecuencia de entrega estas son las fechas de entrega disponibles:"})]}),u.jsxs("div",{className:"mb-4",children:[u.jsx(Qn,{children:"Fecha primera entrega"}),u.jsxs(iS,{open:p,onOpenChange:m,children:[u.jsx(wB,{asChild:!0,children:u.jsxs(tt,{variant:"outline",className:ve("w-full justify-start text-left font-normal text-sm flex gap-2",!s&&"text-muted-foreground"),children:[u.jsx(afe,{size:16}),o?`${o}`:u.jsx("span",{children:"Escoge una fecha"})]})}),u.jsx(oS,{className:"w-auto p-0",align:"start",children:u.jsx(Am,{mode:"single",className:"font-sans",selected:s,onSelect:v=>{v&&(i(v),m(!1))},fromDate:su(c[0].date),disabled:v=>!c.map(w=>w.date).includes(of(v)),toDate:su(c[c.length-1].date),locale:Uo,initialFocus:!0})})]})]}),u.jsx("div",{className:"mb-6",children:u.jsx("p",{className:"text-sm text-muted-foreground",children:" "})}),u.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-2",children:[u.jsx(tt,{variant:"outline",disabled:a.isPending,onClick:()=>n(),children:"Volver"}),u.jsx(tt,{disabled:a.isPending||!s,onClick:d,children:a.isPending?"Cambiando...":"Seleccionar"})]})]})},xT="/assets/biweekly.BLwo1Gc3.png",wT="/assets/weekly.DL9y4_EY.png",EWe=({onGoBack:t,initialFrecuency:e})=>{const[n,r]=_.useState(e),s=u6();_.useEffect(()=>{s.isSuccess&&t()},[s.isSuccess,t]);const i=()=>{s.mutate({form_shipping_frecuency:n})},o=(a,c)=>{(a.key==="Enter"||a.key===" ")&&(r(c),a.preventDefault())};return u.jsxs("div",{children:[u.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-8",children:[u.jsxs("button",{type:"button",onClick:()=>r("Semanal"),onKeyDown:a=>o(a,"Semanal"),className:ve("p-2 rounded-md border border-border text-center flex flex-col items-center",n==="Semanal"&&"border-primary border-2 bg-primary/10 font-semibold"),children:[u.jsx("div",{className:"w-24 py-2",children:u.jsx("img",{src:wT,alt:"Icono de plan semanal"})}),u.jsx("span",{children:"Semanal"})]}),u.jsxs("button",{type:"button",onClick:()=>r("Quincenal"),onKeyDown:a=>o(a,"Quincenal"),className:ve("p-2 rounded-md border border-border text-center flex flex-col items-center",n==="Quincenal"&&"border-primary border-2 bg-primary/10 font-semibold"),children:[u.jsx("div",{className:"w-24 py-2",children:u.jsx("img",{src:xT,alt:"Icono de plan quincenal"})}
3483),u.jsx("span",{children:"Quincenal"})]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-2",children:[u.jsx(tt,{variant:"outline",disabled:s.isPending,onClick:()=>t(),children:"Volver"}),u.jsx(tt,{disabled:s.isPending,onClick:i,children:s.isPending?"Cambiando...":"Seleccionar"})]})]})},qQ="/assets/home_delivery.DepDRuCp.png",GQ="/assets/pickup_delivery.B6wP5iX1.png",bWe=({onGoBack:t,initialData:e})=>{const[n,r]=_.useState(e.shipping_type),[s,i]=_.useState(e.shipping_type==="PICKUP"?e.pickup_district_name:void 0),[o,a]=_.useState(e.shipping_type==="PICKUP"?e.pickup_name:void 0),[c,d]=_.useState(e.shipping_type==="DELIVERY"?e.delivery_district_name:void 0),[p,m]=_.useState(e.shipping_type==="DELIVERY"?e.delivery_address:void 0),[v,w]=_.useState(e.shipping_type==="DELIVERY"?e.delivery_address_number:void 0),[E,C]=_.useState(e.shipping_type==="DELIVERY"?e.additional_data:void 0),{data:b,isLoading:S}=lg(),P=b?.data,R=u6(),z=P?.pickup_points.filter(L=>L.district_name===s),O=z?.find(L=>L.name===o),F=0;c&&P?.districts.find(L=>L.name===c)?.humanized_shipping_days;const D=R.isPending||n==="PICKUP"&&!o||n==="DELIVERY"&&!c;_.useEffect(()=>{R.isSuccess&&t()},[R.isSuccess,t]),_.useEffect(()=>{O||a(void 0)},[O]);const I=()=>{R.mutate({form_shipping_type:"PICKUP",form_pickup_district_name:s||"",form_pickup_name:o||"",shipping_entity_id:P?.districts.find(L=>L.name===s)?.id})},T=()=>{R.mutate({form_shipping_type:"DELIVERY",form_delivery_district_name:c||"",form_delivery_address:p||"",form_delivery_address_number:v||"",form_delivery_address_depto:v||"",form_delivery_additional_data:E||"",shipping_entity_id:P?.districts.find(L=>L.name===c)?.id})};if(S)return u.jsx(er,{message:"Buscando información..."});if(!P)return null;const k=()=>{if(n==="PICKUP")return u.jsxs("div",{className:"space-y-2 mb-4",children:[u.jsxs("div",{children:[u.jsx(Qn,{children:"Comuna"}),u.jsxs(Do,{onValueChange:L=>i(L),defaultValue:s||void 0,children:[u.jsx(Ui,{children:u.jsx(Oo,{placeholder:"Selecciona una comuna"})}),u.jsx(Wi,{children:P.pickup_point_district_names.map(L=>u.jsx(qi,{value:L,children:L},L))})]})]}),u.jsxs("div",{children:[u.jsx(Qn,{children:"Punto de retiro"}),u.jsxs(Do,{onValueChange:L=>a(L),defaultValue:o||void 0,children:[u.jsx(Ui,{children:u.jsx(Oo,{placeholder:"Selecciona un punto de retiro"})}),u.jsx(Wi,{children:z?.map(L=>u.jsx(qi,{value:L.name,children:L.name},L.name))})]})]}),u.jsx("div",{className:ve(!O&&"invisible"),children:u.jsxs("a",{href:`https://www.google.com/maps/place/${O?.address} - ${O?.district_name}`,className:"text-xs cursor-pointer underline text-primary flex gap-1 items-center justify-end py-2",target:"_blank",rel:"noopener noreferrer",children:[`${O?.address}, ${O?.district_name}`,u.jsx(_fe,{size:16})]})})]});throw new Error("Invalid shipping type")},j=()=>{if(n==="DELIVERY")return u.jsxs("div",{className:"space-y-2 mb-4",children:[u.jsxs("div",{children:[u.jsx(Qn,{children:"Comuna"}),u.jsxs(Do,{onValueChange:L=>d(L),defaultValue:c||void 0,children:[u.jsx(Ui,{children:u.jsx(Oo,{placeholder:"Selecciona una comuna"})}),u.jsx(Wi,{children:P.districts.map(L=>u.jsx(qi,{value:L.name,children:L.name},L.name))})]}),u.jsx("div",{className:"flex justify-between items-center",children:F})]}),u.jsxs("div",{children:[u.jsx(Qn,{children:"Dirección"}),u.jsx(Qr,{onChange:L=>{m(L.target.value)},value:p||void 0,maxLength:80})]}),u.jsxs("div",{children:[u.jsx(Qn,{children:"Número depto / Casa"}),u.jsx(Qr,{onChange:L=>w(L.target.value),value:v||void 0,maxLength:80})]}),u.jsxs("div",{children:[u.jsx(Qn,{children:"Información adicional"}),u.jsx(Pf,{onChange:L=>C(L.target.value),value:E||void 0,className:"text-base md:text-sm"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"¿Alguna información extra que nos ayude a entregar tu pedido más facil y rápido?"})]})]});throw new Error("Invalid shipping type")};return u.jsxs("div",{children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4",children:[u.jsxs("button",{className:ve("rounded-lg border p-4",n==="DELIVERY"?"border-primary bg-primary/10":"border-input"),onClick:()=>r("DELIVERY"),type:"button",children:[u.jsx("div",{className:"w-full  max-w-20 pb-2",children:u.jsx("img",{src:qQ,alt:"Icono de entrega a domicilio"})}),u.jsx("p",{className:"text-center text-sm font-semibold",children:"Entrega a domicilio"})]}),u.jsxs("button",{className:ve("rounded-lg border p-4",n==="PICKUP"?"border-primary bg-primary/10":"border-input"),onClick:()=>r("PICKUP"),type:"button",children:[u.jsx("div",{className:"w-full  max-w-20 pb-2",children:u.jsx("img",{src:GQ,alt:"Icono de punto de retiro"})}),u.jsx("p",{className:"text-center text-sm font-semibold",children:"Punto de retiro"})]})]}),u.jsx("div",{children:n==="PICKUP"&&k()}),u.jsx("div",{children:n==="DELIVERY"&&j()})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-2",children:[u.jsx(tt,{variant:"outline",disabled:R.isPending,onClick:()=>t(),children:"Volver"}),u.jsx(tt,{disabled:R.isPending||D,onClick:n==="PICKUP"?I:T,children:R.isPending?"Cambiando...":"Seleccionar"})]})]})},SWe=async(t,e)=>{const n=await Ht();return Ge.get(`${gi.BACKEND_URL}
3483/api/v1/boxes/week_content`,{headers:{Authorization:`Bearer ${n}`},params:{week:e,subscription_id:t,...It()}})},QO=({subscriptionId:t,week:e})=>vn({queryKey:["past-boxes",t,e],queryFn:()=>SWe(t,e)}),CWe=({subscriptionId:t,onClose:e})=>{const[n,r]=_.useState(1),s=QO({subscriptionId:t,week:1}),i=QO({subscriptionId:t,week:2}),o=n===1?s:i,a=o.data?.data,c=o.isLoading,d=m=>m.length===0?u.jsx(cy,{children:u.jsx(n0,{colSpan:3,className:"py-6 text-center text-sm text-muted-foreground",children:"No hay productos para esta semana."})}):m.map(v=>u.jsxs(cy,{children:[u.jsx(n0,{className:"text-sm text-muted-foreground",children:v.full_product_name}),u.jsxs(n0,{className:"whitespace-nowrap text-sm font-semibold text-slate-800",children:[v.quantity," ",v.quantity_unit_type]}),u.jsx(n0,{className:"text-right text-sm font-semibold",children:v.box_has_change_label??(v.box_has_change?"si":"no")})]},v.id)),p=()=>u.jsx(mb,{children:u.jsxs(gb,{children:[u.jsxs("div",{className:"p-2 border-t border-l border-r rounded-t-md rounded-b-none bg-primary text-white flex justify-between items-center",children:[u.jsx("p",{children:c?"Caja":u.jsxs("span",{children:[u.jsx("strong",{className:"font-semibold",children:a?.subscription_name})," ","de hace"," ",u.jsxs("strong",{className:"font-semibold",children:[n," ",n===1?"semana":"semanas"]})]})}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{"aria-label":"Semana anterior",type:"button",onClick:()=>r(m=>Math.min(m+1,2)),disabled:n===2,className:ve("text-white cursor-pointer",n===2&&"opacity-50"),children:u.jsx(rfe,{className:"w-4 h-4"})}),u.jsx("button",{"aria-label":"Semana siguiente",type:"button",onClick:()=>r(m=>Math.max(m-1,1)),disabled:n===1,className:ve("text-white cursor-pointer",n===1&&"opacity-50"),children:u.jsx(ife,{className:"w-4 h-4"})})]})]}),u.jsxs("div",{className:"relative",children:[u.jsx(E6,{className:"h-[300px] border rounded-md p-2",children:u.jsxs(Lq,{children:[u.jsx(zq,{children:u.jsxs(cy,{className:"bg-slate-50",children:[u.jsx(uy,{children:"Producto"}),u.jsx(uy,{className:"w-[95px]",children:"Cantidad"}),u.jsx(uy,{className:"w-[120px] text-right",children:"Caja con cambio"})]})}),u.jsx(Vq,{children:d(a?.products??[])})]})}),c&&u.jsx("div",{className:"absolute inset-0 bg-white/20 flex items-center justify-center",children:u.jsx("div",{children:u.jsx(er,{message:"Buscando información de cajas..."})})})]})]})});return u.jsx(Xz,{open:!0,children:u.jsxs(pb,{children:[u.jsxs("div",{children:[u.jsx("h5",{className:"text-lg font-semibold mb-0",children:"Cajas de las ultimas 2 semanas"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Revisa el contenido histórico separado por producto, cantidad y si la caja tuvo cambio."})]}),p(),u.jsx(Gy,{children:u.jsx(vb,{onClick:e,children:"Cerrar"})})]})})},TWe=({onGoBack:t,initialSelectedSubscription:e})=>{const{data:n,isLoading:r}=M_e(),[s,i]=_.useState(e),[o,a]=_.useState(!1),c=u6();_.useEffect(()=>{c.isSuccess&&t()},[c.isSuccess,t]);const d=n?.data;if(r)return u.jsx(er,{});if(!d)return null;const p=d.find(w=>w.id===s),m=P6(p),v=()=>{c.mutate({form_subscription_id:s})};return u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"grid grid-cols-2 gap-4 mt-4 sm:grid-cols-3 md:grid-cols-4",children:d.map(w=>u.jsxs("button",{className:"relative cursor-pointer text-left w-full",onClick:()=>i(w.id),type:"button",children:[w.id===1&&u.jsx("div",{className:ve("bg-primary text-[10px] text-white font-semibold text-center rounded-tl-md rounded-tr-md absolute w-full -top-[13px]",s!==1&&"bg-gray-400"),children:"Más popular"}),u.jsxs("div",{className:ve("border rounded-md p-2",s===w.id&&"border-primary border-2 bg-primary/10",w.id===1&&"rounded-tl-none rounded-tr-none"),children:[u.jsx("h5",{className:"text-sm font-semibold leading-none mb-2",children:w.name}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("p",{className:"font-sans text-primary font-semibold",children:Ul(w.price_incl_tax)}),s===w.id&&u.jsx(hfe,{className:"w-4 h-4 text-primary hidden md:block"})]})]})]},w.id))}),u.jsxs("div",{children:[u.jsx("div",{className:"flex justify-center",children:u.jsx("img",{className:"w-3/4",src:I6(p),alt:`Imagen de la caja ${p?.name}`})}),u.jsxs("div",{className:"flex justify-between border-b py-2",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Tamaño de caja"}),u.jsx("p",{className:"text-sm font-semibold",children:p?.name})]}),u.jsxs("div",{className:"flex justify-between border-b py-2",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Recomendado para"}),u.jsxs("p",{className:"text-sm font-semibold",children:[m.people," personas."]})]}),u.jsxs("div",{className:"flex justify-between border-b py-2",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Variedad"}),u.jsxs("p",{className:"text-sm font-semibold",children:[m.quantity," variedades de"," ",m.productKind,"."]})]}),u.jsxs("div",{className:"flex justify-between border-b py-2",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Peso"}),u.jsxs("p",{className:"text-sm font-semibold",children:[m.weight,"kg aprox."]})]})]}),u.jsxs("div",{children:[o&&p?.id&&u.jsx(CWe,{subscriptionId:p.id,onClose:()=>a(!1)}),u.jsxs("button",{type:"button",onClick:()=>a(!0),className:"text-sm text-primary underline w-full text-center",children:["¿Qué contiene una ",p?.name,"?"]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-4 pt-2",children:[u.jsx(tt,{variant:"outline",disabled:c.isPending,onClick:()=>t(),children:"Volver"}),u.jsx(tt,{disabled:c.isPending,onClick:v,children:c.isPending?"Cambiando...":"Seleccionar"})]})]})},N3="border rounded-md flex justify-between items-center p-2 cursor-pointer bg-primary/10",AWe=t=>{const[e,n]=_.useState(!1),{subscription_name:r,subscription_subtotal:s,shipping_frecuency:i,shipping_type:o,delivery_address:a,delivery_address_number:c,delivery_district_name:d,additional_data:p,shipping_cost:m,discount_amount:v,discount:w,pickup_name:E,pickup_district_name:C,pickup_address:b,subscription_total_with_discount:S,form_shipping_first_delivery_date:P,frecuency_names:R,inscription_url:z,onChangeStep:O,isLoggedIn:F}=t,D=Jr(),I=R.includes(P),T=()=>{z&&(n(!0),Uy.event({category:"Subscription Incomplete",action:"Redirect to Payment"}),window.location.href=z)},k=()=>{D({to:"/login",params:{redirect:"/subscription"}})};return u.jsx("div",{children:u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-semibold",children:"Tipo de suscripción"}),u.jsxs("button",{className:N3,onClick:()=>F?O("SUBSCRIPTION"):k(),type:"button",children:[u.jsxs("p",{className:"text-sm font-normal",children:["📦 ",r," - ",u.jsx("span",{className:"text-primary font-sans font-semibold",children:s})]}),F&&u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("small",{className:"text-[10px] text-muted-foreground",children:"Cambiar"}),u.jsx(i3,{className:"text-primary",size:18})]})]})]}),F&&u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-semibold",children:"Fecha primer envío"}),u.jsxs("button",{className:ve(N3,!I&&"bg-white"),onClick:()=>O("DELIVERY_DATE"),type:"button",children:[u.jsxs("p",{className:"text-sm font-normal font-sans",children:["🗓️"," ",I&&P]}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("small",{className:"text-[10px] text-muted-foreground",children:"Cambiar"}),u.jsx(i3,{className:"text-primary",size:18})]})]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-semibold",children:"Frecuencia de envío"}),u.jsxs("button",{className:N3,onClick:()=>F?O("FRECUENCY"):k(),type:"button",children:[u.jsxs("p",{className:"text-sm font-normal",children:["⏰ ",i]}),F&&u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("small",{className:"text-[10px] text-muted-foreground",children:"Cambiar"}),u.jsx(i3,{className:"text-primary",size:18})]})]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-xs font-semibold",children:"Método de envío"}),u.jsxs("button",{className:N3,onClick:()=>F?O("SHIPPING_METHOD"):k(),type:"button",children:[u.jsxs("p",{className:"text-sm font-normal",children:[o==="DELIVERY"&&u.jsxs(u.Fragment,{children:[u.jsxs("p",{children:["🚚 ",Sk(o)," - ",u.jsx("span",{className:"text-primary font-sans font-semibold",children:m})]}),u.jsxs("div",{className:"text-xs  font-sans",children:[u.jsxs("p",{children:[a," ",c]}),u.jsx("p",{children:d}),p&&u.jsxs("p",{children:['"',p,'"']}
3483)]})]}),o==="PICKUP"&&u.jsxs(u.Fragment,{children:[u.jsxs("p",{children:["🏬 ",Sk(o)," - ",u.jsx("span",{className:"text-primary font-sans font-semibold",children:m})]}),u.jsxs("div",{className:"text-xs font-semibold font-sans",children:[u.jsx("p",{children:E}),u.jsxs("p",{children:[b,","," ",C]})]})]})]}),F&&u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("small",{className:"text-[10px] text-muted-foreground",children:"Cambiar"}),u.jsx(i3,{className:"text-primary",size:18})]})]})]}),u.jsxs("div",{className:"py-4",children:[u.jsx("p",{className:"text-xs font-semibold",children:"Resumen primer pago"}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex justify-between border-b items-center py-1",children:[u.jsx("p",{className:"text-xs text-muted-foreground",children:"Costo suscripción"}),u.jsx("p",{className:"text-sm font-sans",children:s})]}),u.jsxs("div",{className:"flex justify-between border-b items-center py-1",children:[u.jsx("p",{className:"text-xs text-muted-foreground",children:"Costo envío"}),u.jsx("p",{className:"text-sm font-sans",children:m})]}),w&&u.jsxs("div",{className:"flex justify-between border-b items-center py-1",children:[u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Descuento primer pedido"," ",u.jsxs("span",{className:"font-semibold font-sans",children:["(",w,"% dto.)"]})]}),u.jsxs("p",{className:"text-sm font-sans",children:["-",v]})]}),u.jsxs("div",{className:"flex justify-between border-b items-center py-1",children:[u.jsx("p",{className:"text-xs text-muted-foreground",children:"Total"}),u.jsx("p",{className:"text-sm font-sans",children:u.jsx("span",{className:"text-primary font-sans font-semibold text-lg",children:S})})]})]})]}),F?u.jsxs(u.Fragment,{children:[u.jsx("div",{children:u.jsxs("ul",{className:"space-y-2 text-xs text-muted-foreground mb-6",children:[u.jsxs("li",{children:["El primer cobro se hará ahora y luego regularmente se cobrará"," ",u.jsxs("strong",{children:[s," + costo de envío"]})," ","el domingo anterior a tu siguiente entrega."]}),u.jsx("li",{children:"Desde tu cuenta, podrás pausar o cancelar en cualquier momento."}),u.jsx("li",{children:"Se abrirá una nueva ventana para que ingreses tu método de pago y finalices el proceso de suscripción."})]})}),u.jsx("div",{children:u.jsx(tt,{className:"w-full",disabled:!I||e,onClick:T,children:"Continuar"})})]}):u.jsxs("div",{className:"border rounded-md p-4",children:[u.jsx("p",{className:"text-center mb-2 text-sm text-muted-foreground",children:"Para continuar con tu registro, por favor inicia sesión."}),u.jsx(rf,{to:"/login",className:"w-full",children:"Iniciar sesión"})]})]})})},IWe=({uid:t,hasError:e})=>{const{user:n}=t6(),r=Jr(),[s,i]=_.useState("SUMMARY"),[o,a]=_.useState(!1),c=P=>{Uy.event({category:"Subscription Incomplete",action:"Step Changed",label:P}),i(P)},d=()=>{tC().finally(()=>{r({to:"/"})})},{data:p,isLoading:m,isFetching:v}=z_e({uid:t}),w=p?.data,E=!!n;if(_.useEffect(()=>{document.querySelector("#page-layout")?.classList.remove("md:w-9/12"),document.querySelector("#page-layout")?.classList.add("md:w-1/2")},[]),_.useEffect(()=>{a(!E)},[E]),m)return u.jsx(er,{message:"🔍 Buscando tu información..."});if(w===void 0)return null;if(w.has_subscription)return r({to:"/user/home"}),null;const C={initial:{x:s==="SUMMARY"?-20:20,opacity:0},animate:{x:0,opacity:1,scale:1},exit:{x:s==="SUMMARY"?-20:20,opacity:0}},b={type:"tween",duration:.2},S=()=>{switch(s){case"SUMMARY":return u.jsxs(vd.div,{initial:"initial",animate:"animate",exit:"exit",variants:C,transition:b,children:[u.jsxs("h4",{className:"text-lg font-semibold",children:["Hola ",w.user_name,","," ",n&&u.jsx("button",{className:"text-xs underline font-normal cursor-pointer",onClick:d,type:"button",children:"Cerrar sesión"})]}),u.jsx("p",{className:"text-sm",children:"Estás a un paso de completar tu suscripción de Maifud."}),u.jsx(OD,{children:o&&u.jsxs(vd.div,{className:"space-y-2 border mt-4 p-4 rounded-md bg-primary/10 relative",initial:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},children:[u.jsx("button",{"aria-label":"Cerrar",type:"button",className:"absolute top-2 right-2",onClick:()=>a(!1),children:u.jsx(mfe,{className:"w-4 h-4 text-primary"})}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Una vez que ya estás suscrito, puedes:"}),u.jsxs("ul",{className:"list-disc list-inside text-xs text-muted-foreground",children:[u.jsx("li",{children:"Revisar el contenido semanal"}),u.jsx("li",{children:"Personalizar tu caja"}),u.jsx("li",{children:"Complementarla el pedido para que vaya en el mismo envío"})]}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Además de eso, siempre puedes pausar tu suscripción, saltarte una caja o cancelar cuando quieras."}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Nuestra suscripción te hace la vida más fácil, ahorrando plata, tiempo y ayudando al planeta 🌎💚."})]})}),u.jsxs("div",{className:"py-4 relative",children:[v&&u.jsx("div",{className:"absolute inset-0 bg-white/80 z-10 flex items-center justify-center",children:u.jsx("div",{children:u.jsx(er,{message:"🔍 Actualizando tu información..."})})}),u.jsx(AWe,{...p?.data,isLoggedIn:E,onChangeStep:P=>c(P)})]})]});case"SUBSCRIPTION":return u.jsxs(vd.div,{initial:"initial",animate:"animate",exit:"exit",variants:C,transition:b,children:[u.jsx("h4",{className:"text-lg font-semibold",children:"Tipo de suscripción"}),u.jsx("p",{className:"text-sm",children:"Selecciona el tipo de suscripción que deseas recibir."}),u.jsx("div",{className:"py-4",children:u.jsx(TWe,{onGoBack:()=>c("SUMMARY"),initialSelectedSubscription:w.subscription_id})})]});case"DELIVERY_DATE":return u.jsxs(vd.div,{initial:"initial",animate:"animate",exit:"exit",variants:C,transition:b,children:[u.jsx("h4",{className:"text-lg font-semibold",children:"Fecha primer envío"}),u.jsx("p",{className:"text-sm",children:"Selecciona la fecha en que deseas recibir tu primer envío."}),u.jsx("div",{className:"py-4",children:u.jsx(_We,{onGoBack:()=>c("SUMMARY"),frecuencies:w.frecuencies,initialDeliveryDate:w.form_shipping_first_delivery_date})})]});case"FRECUENCY":return u.jsxs(vd.div,{initial:"initial",animate:"animate",exit:"exit",variants:C,transition:b,children:[u.jsx("h4",{className:"text-lg font-semibold",children:"Frecuencia de envío"}),u.jsx("p",{className:"text-sm",children:"¿Con que frecuencia deseas recibir tu caja?"}),u.jsx("div",{className:"py-4",children:u.jsx(EWe,{onGoBack:()=>c("SUMMARY"),initialFrecuency:w.shipping_frecuency})})]});case"SHIPPING_METHOD":return u.jsxs(vd.div,{initial:"initial",animate:"animate",exit:"exit",variants:C,transition:b,children:[u.jsx("h4",{className:"text-lg font-semibold",children:"Método de entrega"}),u.jsx("p",{className:"text-sm",children:"¿Como quieres recibir tus cajas?"}),u.jsx("div",{className:"py-4",children:u.jsx(bWe,{onGoBack:()=>c("SUMMARY"),initialData:{shipping_type:w.shipping_type,pickup_district_name:w.pickup_district_name,pickup_name:w.pickup_name,delivery_district_name:w.delivery_district_name,delivery_address:w.delivery_address,delivery_address_number:w.delivery_address_number,additional_data:w.additional_data}})})]})}};return u.jsx("div",{className:"relative",children:u.jsx(OD,{mode:"wait",initial:!1,children:u.jsxs(vd.div,{initial:"initial",animate:"animate",exit:"exit",variants:C,transition:b,className:"w-full",children:[S(),e&&u.jsx("p",{className:"text-red-500 text-center font-semibold text-sm",children:"Hubo un error al realizar tu suscripción. Por favor intenta nuevamente."})]},s)})})},PWe=()=>{const{uid:t,error:e}=Cf({strict:!1});return u.jsx(Iu,{children:u.jsx("div",{className:"pt-8 md:pt-0",children:t&&u.jsx(IWe,{uid:t,hasError:e})})})},KQ=({title:t,description:e})=>u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"space-y-1",children:[u.jsx("h3",{className:"text-xl font-semibold tracking-tight lg:text-2xl",children:t}),u.jsx("p",{className:"text-sm leading-relaxed text-muted-foreground",children:e})]}),u.jsx(Bi,{className:"my-4"})]}),RWe=({onGoBack:t})=>{const{data:e,isLoading:n,isError:r,error:s,refetch:i}=H_e(),o=e?.data,[a,c]=_.useState(),[d,p]=_.useState(),m=U_e();_.useEffect(()=>{navigator?.vibrate&&navigator.vibrate(200)},[]);const v=()=>{a&&m.mutate(a)},w=(b,S)=>{p(S),c(b)},E=()=>
3483{if(n)return u.jsx(er,{message:"🔍 Buscando tus direccíones..."});if(r)return u.jsx(Hn,{title:"No se pudo obtener la información de tus direccíones",message:s.message,retry:i,error:s});if(o)return u.jsx(Ybe,{initialData:o,isLoading:m.isPending,isError:m.isError,isSuccess:m.isSuccess,error:s,handleSubmitHomeDeliveryForm:w,handleSubmitPickUpForm:w,onGoBack:t})},C=()=>{if(a){if(a.selected_shipping_type_humanized==="Retiro en tiendas"){const S=a;return u.jsxs("div",{children:[u.jsx($n,{title:"Método de envío",content:S.selected_shipping_type_humanized}),u.jsx($n,{title:"Comuna",content:S.selected_pickup_district_name}),u.jsx($n,{title:"Costo de envío al punto de retiro",content:d}),u.jsx($n,{title:"Punto de retiro",content:S.selected_pickup_point_name})]})}const b=a;return u.jsxs("div",{children:[u.jsx($n,{title:"Método de envío",content:b.selected_shipping_type_humanized}),u.jsx($n,{title:"Dirección",content:b.selected_delivery_address}),u.jsx($n,{title:"Número depto / Casa",content:b.selected_delivery_address_dpto}),u.jsx($n,{title:"Comuna",content:b.selected_delivery_district_name}),u.jsx($n,{title:"Costo de envío",content:d}),b.selected_delivery_additional_data?u.jsx($n,{title:"Información adicional",content:b.selected_delivery_additional_data}):null]})}};return u.jsxs("div",{children:[o?.has_active_order&&u.jsx("div",{className:"mb-4 bg-primary/10 border border-primary rounded-md p-4 ",children:u.jsx("p",{className:"text-sm",children:"🔔 Tienes una orden ya creada por lo que los cambios que realices NO se verán reflejados en tu orden. Si necesitas hacer un cambio en tu orden comunícate con nosotros."})}),u.jsxs(Qn,{className:"mb-2 block",children:["Tu método de envío actual es:"," ",u.jsx("strong",{className:"text-primary",children:o?.selected_shipping_type_humanized})]}),u.jsx("div",{children:E()}),u.jsx(hpe,{open:a!==void 0,title:"¿Estás de acuerdo con tu nuevo método de envío?",onClose:()=>{c(void 0),m.reset()},onConfirm:v,isLoading:m.isPending,errorMessage:m.isError?u.jsx("p",{className:"text-center text-sm text-red-500",children:"🫤 Hubo un error al intentar cambiar tu método de envío. Intenta de nuevo más tarde."}):void 0,successMessage:m.isSuccess?u.jsx("p",{className:"text-center text-sm",children:"✅ Tus cambios han sido guardados. Puedes cerrar está ventana."}):void 0,children:C()})]})},NWe=()=>u.jsxs("div",{className:"space-y-4",children:[u.jsx(KQ,{title:"Editar envío / punto de retiro",description:"Puedes cambiar a donde quieres que enviemos tus cajas"}),u.jsx(RWe,{})]}),MWe=()=>{Bm();const{registryData:t,setRegistryData:e}=$u(),n=Jr();if(t===null)return n({to:"/register/subscriptions"}),null;const r=t?t.shipping_frecuency?.toLowerCase():void 0,[s,i]=_.useState(r),o=d=>{i(d),e({...t,shipping_frecuency:d==="semanal"?"Semanal":"Quincenal"})},a=({shipping_first_delivery_date:d})=>{e({...t,shipping_first_delivery_date:d}),c()},c=()=>{n({to:"/register/user-data"})};return u.jsx(Iu,{title:"Elige frecuencia y día de entrega",description:"Esto aplica para tu primera caja. Podrás cambiar la frecuencia y el día para tus próximas cajas desde tu cuenta.",progress:60,children:u.jsxs("div",{className:"flex flex-col space-y-4",children:[u.jsxs("div",{className:"flex flex-col space-y-2",children:[u.jsx(Qn,{children:"Selecciona la frecuencia del envío"}),u.jsxs(mg,{onValueChange:o,defaultValue:s,className:"grid grid-cols-3 gap-4",children:[u.jsxs("div",{children:[u.jsx(Au,{value:"semanal",id:"semanal",className:"peer sr-only"}),u.jsxs(Qn,{htmlFor:"semanal",className:"flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary",children:[u.jsx("div",{className:"w-24 py-2",children:u.jsx("img",{src:wT,alt:"Icono de plan semanal"})}),"Semanal"]})]}),u.jsxs("div",{children:[u.jsx(Au,{value:"quincenal",id:"quincenal",className:"peer sr-only"}),u.jsxs(Qn,{htmlFor:"quincenal",className:"flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-accent hover:text-accent-foreground peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary",children:[u.jsx("div",{className:"w-24 py-2",children:u.jsx("img",{src:xT,alt:"Icono de plan quincenal"})}),"Quincenal"]})]})]})]}),s&&u.jsx(YEe,{frecuency:s,initialData:t,onSubmit:a})]})})},kWe=()=>{Bm();const{ref:t}=Cf({strict:!1}),{registryData:e,setRegistryData:n}=$u(),r=Jr();if(e===null)return r({to:"/register/subscriptions"}),null;const s=e?e.shipping_type:void 0,[i,o]=_.useState(s),a=v=>{o(v),n({...e,shipping_type:v})},c=({pickup_name:v,pickup_district:w})=>{n({...e,pickup_name:v,shipping_type:i,pickup_district:w,address:void 0,address_dpto:void 0,aditional_notes:void 0}),p()},d=({address:v,address_dpto:w,delivery_district:E,aditional_notes:C})=>{n({...e,address:v,address_dpto:w,delivery_district:E,aditional_notes:C,shipping_type:i,pickup_name:void 0,pickup_district:void 0}),p()},p=()=>{r({to:"/register/shipping-frecuency"})},m=()=>i?u.jsxs("div",{children:[i==="DELIVERY"&&u.jsx(P9e,{onSubmit:d,initialData:e,companyRef:t}),i==="PICKUP"&&u.jsx(Sbe,{onSubmit:c,initialData:e,companyRef:t})]}):null;
3483return u.jsx(Iu,{title:"Escoge tu método de entrega",description:"De esta forma enviaremos tus cajas",progress:40,children:u.jsxs("div",{className:"flex flex-col space-y-4",children:[u.jsxs("div",{className:"flex flex-col space-y-2",children:[u.jsx(Qn,{children:"¿Prefieres que llevemos la caja a tu casa o ir a recogerla a punto de retiro?"}),u.jsxs(mg,{defaultValue:i,onValueChange:a,className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{children:[u.jsx(Au,{value:"DELIVERY",id:"DELIVERY",className:"peer sr-only"}),u.jsxs(Qn,{htmlFor:"DELIVERY",className:ve("flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-orange-100/50 peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary",i==="DELIVERY"&&"bg-orange-100/50"),children:[u.jsx("div",{className:"w-full  max-w-28 pb-2",children:u.jsx("img",{src:qQ,alt:"Icono de entrega a domicilio"})}),u.jsx("p",{className:"text-center",children:"Entrega a domicilio"})]})]}),u.jsxs("div",{children:[u.jsx(Au,{value:"PICKUP",id:"PICKUP",className:"peer sr-only"}),u.jsxs(Qn,{htmlFor:"PICKUP",className:ve("flex flex-col items-center justify-between rounded-md border-2 border-muted bg-popover p-4 hover:bg-orange-100/50 peer-data-[state=checked]:border-primary [&:has([data-state=checked])]:border-primary",i==="PICKUP"&&"bg-orange-100/50"),children:[u.jsx("div",{className:"w-full  max-w-28 pb-2",children:u.jsx("img",{src:GQ,alt:"Icono de punto de retiro"})}),u.jsx("p",{className:"text-center",children:"Punto de retiro"})]})]})]})]}),m()]})})},DWe=wn({subscription_id:st()});function OWe(){Bm();const{registryData:t,setRegistryData:e}=$u(),{user:n}=t6();let{promo_code:r=t?.promo_code,referrer_code:s=t?.referrer_code,subs_id:i,ref:o}=Cf({strict:!1});r&&s&&(s=void 0);const{data:a,isLoading:c,isError:d,error:p,refetch:m}=c6({promo_code:r,referrer_code:s,partnership_data:t?.partnership_data?JSON.stringify(t?.partnership_data):void 0}),v=a?.data,w=Jr(),E=xi({resolver:_i(DWe),defaultValues:{subscription_id:t?.subscription_id??String(i)}}),C=E.watch("subscription_id");function b({subscription_id:R}){const z=!r&&v?.referrer?.referrer_user_id?String(v?.referrer?.referrer_user_id):void 0;e({...t,promo_code:r,subscription_id:R,referrer_code:s,referrer_user_id:z}),w({to:"/register/shipping-methods",search:{ref:o}})}const S=()=>{if(t?.subscription_status==="SUBSCRIPTION_PENDING")return!1;if(t?.subscription_id===void 0&&Number.isNaN(Number(C))||n?.email!=null)return!0},P=()=>{if(c)return u.jsx(er,{message:"Cargando suscripciones Maifud..."});if(d)return u.jsx(Hn,{title:"No se pudo obtener la información de las suscripciones. Por favor intenta de nuevo.",message:p.message,retry:m,error:p});if(v?.subscriptions)return u.jsxs(u.Fragment,{children:[t?.subscription_status==="SUBSCRIPTION_PENDING"&&u.jsxs("div",{className:"text-center p-4 rounded-md border bg-orange-100/50 text-primary font-semibold",children:[u.jsxs("div",{className:"space-x-1",children:[u.jsx("span",{children:"🔔"}),u.jsx("span",{children:"Tienes una suscripción pendiente por terminar"}),u.jsx("span",{children:"🔔"})]}),u.jsx("div",{className:"pt-2",children:u.jsx(tt,{children:u.jsx(or,{to:"/register/confirmation",children:"Continuar registro"})})})]}),v.promo_code&&u.jsxs("div",{children:[u.jsx("p",{className:"text-center text-sm text-muted-foreground",children:"Tenemos un descuento para ti"}),u.jsxs("div",{className:"text-center p-4 rounded-md border bg-orange-100/50 text-primary font-semibold space-x-1",children:[u.jsx("span",{children:"🎉 "}),u.jsx("span",{children:v.promo_code.disclaimer}),u.jsx("span",{children:"🎉 "})]})]}),v.partnership&&u.jsx("div",{children:u.jsxs("div",{className:"text-center p-4 rounded-md border bg-orange-100/50 text-primary font-semibold space-x-1",children:[u.jsx("span",{children:"🎉 "}),u.jsx("span",{children:v?.partnership.partnership_description}),u.jsx("span",{children:"🎉 "})]})}),v.referrer&&u.jsxs("div",{className:"text-center p-4 rounded-md border bg-orange-100/50 text-primary font-semibold space-x-1",children:[u.jsx("span",{children:"🎉 "}),u.jsxs("span",{children:[u.jsx("strong",{children:v.referrer.referrer_name})," ","te regala un envío gratis."]}),u.jsx("span",{children:"🎉 "})]}),n?.email&&t?.subscription_status!=="SUBSCRIPTION_PENDING"&&u.jsx("div",{className:"text-center p-4 rounded-md border bg-orange-100/50 space-x-1",children:u.jsxs("span",{children:["Ya tienes una suscripción en Maifud."," ",u.jsx(or,{to:"/user/subscription",className:"text-primary underline",children:"Puedes acceder a tu cuenta haciendo click aquí"})]})}),u.jsx(wi,{...E,children:u.jsxs("form",{onSubmit:E.handleSubmit(b),className:"relative",children:[u.jsx(cn,{control:E.control,name:"subscription_id",render:({field:R})=>u.jsx(mg,{className:"grid grid-cols-2 gap-3 pb-24 sm:gap-4 md:pb-4 lg:grid-cols-4",onValueChange:R.onChange,defaultValue:R.value,children:v.subscriptions.map(z=>u.jsx(eSe,{subscription:z},z.id))})}),u.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-40 flex w-full justify-end border-t bg-background/95 p-4 pb-[calc(env(safe-area-inset-bottom)+1rem)] shadow-[0_-8px_20px_rgba(15,23,42,0.08)] backdrop-blur md:relative md:border-0 md:bg-transparent md:px-0 md:pb-4 md:shadow-none",children:u.jsx(tt,{type:"submit",className:"w-full sm:w-fit",disabled:S(),children:"Siguiente"})})]})})]})};return u.jsx(Iu,{title:"Escoge la caja que más te guste",description:"Esta va a ser tu primera caja. Podrás cambiar el tipo de caja desde tu cuenta",progress:10,children:P()})}const $We=wn({name:st({required_error:"El nombre es requerido"}).min(2,"El nombre debe tener al menos 2 caracteres"),phone_number:st({required_error:"El teléfono es requerido"}).min(9,"El teléfono es de minimo 9 caracteres"),user_notes:st().optional().nullish()}),TXe=()=>{const{data:t,isLoading:e,isError:n,refetch:r,error:s}=N_e(),i=t?.data,o=CW(),a=xi({resolver:_i($We),defaultValues:{name:i?.name,phone_number:i?.phone_number,user_notes:i?.user_notes??""}});_.useEffect(()=>{i&&a.reset(i)},[i,a.reset]);const c=p=>{o.mutate(p)},d=()=>
3483{if(n)return u.jsx(Hn,{title:"No se pudo obtener la información personal",message:s.message,retry:r,error:s});if(e)return u.jsx(er,{message:"🔍 Buscando tu información..."});if(i)return u.jsx(wi,{...a,children:u.jsxs("form",{onSubmit:a.handleSubmit(c),className:"space-y-6",children:[u.jsxs("div",{children:[u.jsx(Qn,{children:"Correo:"}),u.jsx("p",{className:"text-sm",children:i.email}),u.jsxs("small",{className:"text-muted-foreground text-xs",children:["Si necesitas cambiar tu correo"," ",u.jsx("a",{className:"text-primary",href:`https://wa.me/+56971295665?text=Hola Soporte Maifud,
3484 quiero cambiar mi correo. Mi correo actual es ${i.email}`,target:"_blank",rel:"noopener noreferrer",children:"contáctanos aquí"})]})]}),u.jsx(cn,{control:a.control,name:"name",render:({field:p})=>u.jsxs(un,{children:[u.jsx(gn,{htmlFor:"name",children:"Nombre"}),u.jsx(En,{children:u.jsx(Qr,{id:"name",type:"text",placeholder:"Ingresa tu nombre",autoComplete:"name",value:p.value,onChange:p.onChange})}),u.jsx(Ot,{})]})}),u.jsx(cn,{control:a.control,name:"phone_number",render:({field:p})=>{const m=p.value?.startsWith("+56")?p.value:`+56${p.value}`;return u.jsxs(un,{children:[u.jsx(gn,{htmlFor:"phone_number",children:"Teléfono"}),u.jsx(_C,{id:"phone_number",type:"tel",placeholder:"Ingresa tu número de teléfono",autoComplete:"tel",value:m,defaultCountry:"CL",className:"font-sans",countries:["CL"],onChange:p.onChange}),u.jsx(Ot,{})]})}}),u.jsx(cn,{control:a.control,name:"user_notes",render:({field:p})=>u.jsxs(un,{children:[u.jsx(gn,{htmlFor:"user_notes",children:"Alergias o restricciones alimentarias"}),u.jsx(Pf,{id:"user_notes",placeholder:"¿Alguna alergia que quieras contarnos?",value:p.value??"",onChange:p.onChange}),u.jsx(Ra,{children:"Intentaremos tener en cuenta tus alergias y restricciones alimentarias al momento de crear tus cajas"}),u.jsx(Ot,{})]})}),u.jsx("div",{className:"flex justify-end",children:u.jsx(tt,{className:"w-fit",type:"submit",disabled:o.isPending,isLoading:o.isPending,children:o.isPending?"Guardando":"Guardar"})}),o.isError&&u.jsx(Ot,{className:"text-right",children:o.error.message}),o.isSuccess&&u.jsx(Ot,{className:"text-right text-primary",children:"Tus cambios han sido guardados correctamente"})]})})};return u.jsxs("div",{className:"space-y-4",children:[u.jsx(KQ,{title:"Cuenta",description:"Puedes modificar tus datos personales"}),d()]})},ec=fb,FWe=hb,jWe=I5,YQ=_.forwardRef(({className:t,...e},n)=>u.jsx(L2,{ref:n,className:ve("fixed inset-0 z-50 bg-black/80  data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e}));YQ.displayName=L2.displayName;const ja=_.forwardRef(({className:t,children:e,...n},r)=>u.jsxs(FWe,{children:[u.jsx(YQ,{}),u.jsxs(z2,{ref:r,className:ve("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...n,children:[e,u.jsxs(I5,{className:"absolute right-4 top-4 roun
3484ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[u.jsx(fL,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ja.displayName=z2.displayName;const La=({className:t,...e})=>u.jsx("div",{className:ve("flex flex-col space-y-1.5 text-center sm:text-left",t),...e});La.displayName="DialogHeader";const tc=({className:t,...e})=>u.jsx("div",{className:ve("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});tc.displayName="DialogFooter";const Vu=_.forwardRef(({className:t,...e},n)=>u.jsx(V2,{ref:n,className:ve("text-lg font-semibold leading-none tracking-tight",t),...e}));Vu.displayName=V2.displayName;const QQ=_.forwardRef(({className:t,...e},n)=>u.jsx(B2,{ref:n,className:ve("text-sm text-muted-foreground",t),...e}));QQ.displayName=B2.displayName;var W6="Tabs",[LWe,AXe]=jr(W6,[T6]),XQ=T6(),[zWe,_T]=LWe(W6),ZQ=_.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,onValueChange:s,defaultValue:i,orientation:o="horizontal",dir:a,activationMode:c="automatic",...d}=t,p=Of(a),[m,v]=As({prop:r,onChange:s,defaultProp:i??"",caller:W6});return u.jsx(zWe,{scope:n,baseId:qs(),value:m,onValueChange:v,orientation:o,dir:p,activationMode:c,children:u.jsx(Le.div,{dir:p,"data-orientation":o,...d,ref:e})})});ZQ.displayName=W6;var JQ="TabsList",eX=_.forwardRef((t,e)=>{const{__scopeTabs:n,loop:r=!0,...s}=t,i=_T(JQ,n),o=XQ(n);return u.jsx(nG,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:r,children:u.jsx(Le.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:e})})});eX.displayName=JQ;var tX="TabsTrigger",nX=_.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,disabled:s=!1,...i}=t,o=_T(tX,n),a=XQ(n),c=iX(o.baseId,r),d=oX(o.baseId,r),p=r===o.value;return u.jsx(rG,{asChild:!0,...a,focusable:!s,active:p,children:u.jsx(Le.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":d,"data-state":p?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:e,onMouseDown:ke(t.onMouseDown,m=>{!s&&m.button===0&&m.ctrlKey===!1?o.onValueChange(r):m.preventDefault()}),onKeyDown:ke(t.onKeyDown,m=>{[" ","Enter"].includes(m.key)&&o.onValueChange(r)}),onFocus:ke(t.onFocus,()=>{const m=o.activationMode!=="manual";!p&&!s&&m&&o.onValueChange(r)})})})});nX.displayName=tX;var rX="TabsContent",sX=_.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,forceMount:s,children:i,...o}=t,a=_T(rX,n),c=iX(a.baseId,r),d=oX(a.baseId,r),p=r===a.value,m=_.useRef(p);return _.useEffect(()=>{const v=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(v)},[]),u.jsx(gr,{present:s||p,children:({present:v})=>u.jsx(Le.div,{"data-state":p?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!v,id:d,tabIndex:0,...o,ref:e,style:{...t.style,animationDuration:m.current?"0s":void 0},children:v&&i})})});sX.displayName=rX;function iX(t,e){return`${t}-trigger-${e}`}function oX(t,e){return`${t}-content-${e}`}var VWe=ZQ,aX=eX,lX=nX,cX=sX;const IXe=VWe,BWe=_.forwardRef(({className:t,...e},n)=>u.jsx(aX,{ref:n,className:ve("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",t),...e}));BWe.displayName=aX.displayName;const HWe=_.forwardRef(({className:t,...e},n)=>u.jsx(lX,{ref:n,className:ve("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",t),...e}));HWe.displayName=lX.displayName;const UWe=_.forwardRef(({className:t,...e},n)=>u.jsx(cX,{ref:n,className:ve("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t),...e}));UWe.displayName=cX.displayName;function WWe(){const[t,e]=_.useState(!1),{registryData:n}=$u(),r=n?.subscription_id,s=n?.shipping_type,i=n?.shipping_entity_id,o=n?.promo_code,a=n?.partnership_data,c=n?.referrer_user_id,{data:d,isLoading:p}=c6({}),{data:m,isLoading:v,isError:w,error:E,refetch:C}=L_e({subscription_id:r||"",shipping_type:s==="PICKUP"?"Retiro en tiendas":"Entrega a domicilio",shipping_entity_id:i||0,referrer_user_id:c||"",promo_code:o||"",partnership_data:a?JSON.stringify(a):void 0}),b=()=>{if(e(!0),m?.data.inscription_url)location.href=m.data.inscription_url;else throw new Error("inscription_url is not defined")},S=()=>
3484{if(v||p)return u.jsx(er,{message:"🔍 Buscando información de tu registro..."});if(w)return u.jsx(Hn,{title:"No se pudo obtener la información del registro.",message:E.message,retry:C,error:E});if(m&&d){const P=m.data,z=d.data.subscriptions.find(I=>String(I.id)===String(n?.subscription_id)),O=n?.shipping_type==="PICKUP"?"Retiro en tiendas":"Entrega a domicilio",F=EB(n?.shipping_first_delivery_date),D=()=>{if(P.free_shipping_reason===null)return"";if(P.free_shipping_reason==="REFEREE")return"(Referido)";if(P.free_shipping_reason==="PROMO_CODE")return"(Código envío gratis)"};return u.jsxs(u.Fragment,{children:[P.error_raised&&u.jsx("div",{className:"mb-2",children:u.jsx(y6,{variant:"destructive",title:"🚫 Error en el pago",message:"Hubo un error al momento de inscribir tu tarjeta. Puedes intentarlo de nuevo."})}),u.jsxs("div",{className:"mx-auto max-w-md w-full",children:[u.jsxs("div",{className:"p-4 border-b-orange-200 bg-orange-100 mb-4",children:[u.jsx("p",{className:"text-sm font-medium leading-none text-center",children:"¿Deseas editar la información?"}),u.jsx("div",{className:"flex justify-center pt-2",children:u.jsx(rf,{to:"/register/subscriptions",variant:"outline",children:"Empezar de nuevo"})})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx(Qn,{children:"Resumen suscripción"}),u.jsx($n,{title:"Suscripción",content:z?.name||""}),u.jsx($n,{title:"Frecuencia de envío",content:n?.shipping_frecuency||""}),u.jsx($n,{title:"Fecha primer envío",content:F}),u.jsx($n,{title:"Método de envío",content:O}),n?.shipping_type==="PICKUP"&&u.jsx(u.Fragment,{children:u.jsx($n,{title:"Punto de retiro",content:n.pickup_name||""})}),n?.shipping_type==="DELIVERY"&&u.jsx($n,{title:"Dirección envío",content:u.jsxs("div",{className:"flex flex-col text-xs",children:[u.jsx("p",{children:`${n.address} - ${n.address_dpto}`}),u.jsx("p",{children:n.delivery_district}),u.jsx("p",{children:n.aditional_notes})]})})]}),u.jsxs("div",{children:[u.jsx(Qn,{children:"Resumen primer pago"}),u.jsx($n,{title:"Subtotal",content:j1(P.subscription_subtotal)}),u.jsx($n,{title:`Costo de entrega ${D()}`,content:j1(P.shipping_cost)}),u.jsx($n,{title:`${P.discount_reason} (${P.discount}%)`,content:j1(P.discount_amount)}),u.jsx($n,{title:"Total",content:j1(P.subscription_total_with_discount),isImportant:!0})]})]}),u.jsxs("ul",{className:"pt-6 space-y-2 text-xs text-muted-foreground",children:[u.jsxs("li",{children:["El primer cobro se hará ahora y luego regularmente se cobrará"," ",u.jsxs("strong",{children:[j1(P.subscription_subtotal)," ","+ costo de envío"]})," ","el domingo anterior a tu siguiente entrega."]}),u.jsx("li",{children:"Desde tu cuenta, podrás pausar o cancelar en cualquier momento."}),u.jsx("li",{children:"Se abrirá una nueva ventana para que ingreses tu método de pago y finalices el proceso de suscripción."})]}),u.jsxs("div",{className:"flex flex-col justify-end py-4 gap-4",children:[u.jsx(or,{to:"/register/shipping-frecuency",className:"text-center text-sm underline block text-primary",children:"Volver atrás"}),u.jsx(tt,{type:"submit",className:"w-full",onClick:b,children:t?"Redirigiendo...":"Completar suscripción"})]})]})]})}};return u.jsx(Iu,{title:"Detalles de pago",description:"Este es el resumen del cobro que haremos por tu suscripción",progress:96,children:S()})}function qWe(){return Bm(),u.jsx(AW,{children:u.jsx(Iu,{title:"Tus datos personales",description:"Crearemos una cuenta con estos datos para que luego puedas revisar o editar tu suscripción",progress:80,children:u.jsx(Aje,{})})})}var q6="Switch",[GWe,PXe]=jr(q6),[KWe,YWe]=GWe(q6),uX=_.forwardRef((t,e)=>{const{__scopeSwitch:n,name:r,checked:s,defaultChecked:i,required:o,disabled:a,value:c="on",onCheckedChange:d,form:p,...m}=t,[v,w]=_.useState(null),E=yt(e,R=>w(R)),C=_.useRef(!1),b=v?p||!!v.closest("form"):!0,[S,P]=As({prop:s,defaultProp:i??!1,onChange:d,caller:q6});return u.jsxs(KWe,{scope:n,checked:S,disabled:a,children:[u.jsx(Le.button,{type:"button",role:"switch","aria-checked":S,"aria-required":o,"data-state":pX(S),"data-disabled":a?"":void 0,disabled:a,value:c,...m,ref:E,onClick:ke(t.onClick,R=>{P(z=>
3484!z),b&&(C.current=R.isPropagationStopped(),C.current||R.stopPropagation())})}),b&&u.jsx(hX,{control:v,bubbles:!C.current,name:r,value:c,checked:S,required:o,disabled:a,form:p,style:{transform:"translateX(-100%)"}})]})});uX.displayName=q6;var dX="SwitchThumb",fX=_.forwardRef((t,e)=>{const{__scopeSwitch:n,...r}=t,s=YWe(dX,n);return u.jsx(Le.span,{"data-state":pX(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});fX.displayName=dX;var QWe="SwitchBubbleInput",hX=_.forwardRef(({__scopeSwitch:t,control:e,checked:n,bubbles:r=!0,...s},i)=>{const o=_.useRef(null),a=yt(o,i),c=f6(n),d=Zb(e);return _.useEffect(()=>{const p=o.current;if(!p)return;const m=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(m,"checked").set;if(c!==n&&w){const E=new Event("click",{bubbles:r});w.call(p,n),p.dispatchEvent(E)}},[c,n,r]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:a,style:{...s.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});hX.displayName=QWe;function pX(t){return t?"checked":"unchecked"}var mX=uX,XWe=fX;const ZWe=_.forwardRef(({className:t,...e},n)=>u.jsx(mX,{className:ve("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",t),...e,ref:n,children:u.jsx(XWe,{className:ve("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));ZWe.displayName=mX.displayName;const JWe=If("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function eqe({className:t,variant:e,...n}){return u.jsx("div",{className:ve(JWe({variant:e}),t),...n})}const tqe=()=>u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-lg font-medium",children:"Preferencias"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Puedes modificar tus preferencias, alergias y otras cosas."})]}),u.jsx(Bi,{}),u.jsx("p",{children:"Im the content"})]}),nqe=wn({search:st({required_error:"¿Que deseas buscar?"})}),RXe=({onSubmit:t,initialValue:e})=>{const n=xi({resolver:_i(nqe),defaultValues:{search:e}});return _.useEffect(()=>{e===""&&n.reset()},[e,n.reset]),u.jsx("div",{children:u.jsx(wi,{...n,children:u.jsx("form",{onSubmit:n.handleSubmit(t),className:"space-y-8",children:u.jsxs("div",{className:"relative",children:[u.jsx(Bfe,{className:"absolute left-2 top-2.5 h-4 w-4 text-muted-foreground"}),u.jsx(cn,{control:n.control,name:"search",render:({field:r})=>u.jsxs(un,{children:[u.jsx(En,{children:u.jsx(Qr,{placeholder:"Buscar productos",className:"pl-8",onChange:r.onChange,value:r.value,autoFocus:!0})}),u.jsx(Ot,{})]})}),u.jsx(tt,{type:"submit",className:"absolute right-0 top-0",children:"Buscar"})]})})})})},yn=vce()({component:rqe,notFoundComponent:Sze});function rqe(){return u.jsxs(u.Fragment,{children:[u.jsx(w5,{}),u.jsx(Yde,{})]})}const sqe=()=>{const[t,e]=_.useState(!1),n=$r({select:s=>s.location.pathname}),r=bq(n);return u.jsx("nav",{className:"fixed inset-x-0 bottom-0 z-50 border-t bg-white/95 px-2 pb-[calc(env(safe-area-inset-bottom)+0.35rem)] pt-2 shadow-[0_-8px_20px_rgba(15,23,42,0.08)] backdrop-blur lg:hidden",children:u.jsxs("div",{className:"mx-auto grid max-w-md grid-cols-5 items-center gap-1",children:[F9e.map(s=>{const i=s.icon,o=r===s.href;return u.jsxs(Bs,{to:s.href,className:ve("flex min-h-12 flex-col items-center justify-center gap-1 rounded-md px-1 text-[11px] font-semibold leading-none transition-colors","text-muted-foreground hover:bg-primary/10 hover:text-primary",o&&"bg-primary/10 text-primary"),children:[u.jsx(i,{className:"h-5 w-5"}),u.jsx("span",{className:"max-w-full truncate",children:s.title})]},s.href)}),u.jsxs(FC,{open:t,onOpenChange:e,children:[u.jsxs(uY,{className:"flex min-h-12 flex-col items-center justify-center gap-1 rounded-md px-1 text-[11px] font-semibold leading-none text-muted-foreground hover:bg-primary/10 hover:text-primary",children:[u.jsx(xfe,{className:"h-5 w-5"}),u.jsx("span",{children:"Más"})]}),u.jsxs(L6,{side:"bottom",className:"rounded-t-xl pb-8",children:[u.jsx(z6,{children:u.jsx(fY,{children:"Más opciones"})}),u.jsx("div",{className:"mt-4 grid grid-cols-2 gap-2",children:j9e.map(s=>{const i=s.icon,o=r===s.href;return u.jsxs(Bs,{to:s.href,onClick:()=>e(!1),className:ve("flex min-h-12 items-center gap-3 rounded-md border px-3 py-2 text-sm font-medium","text-muted-foreground hover:bg-primary/10 hover:text-primary",o&&"border-primary/30 bg-primary/10 text-primary"),children:[u.jsx(i,{className:"h-5 w-5 shrink-0"}),u.jsx("span",{children:s.title})]},s.href)})})]})]})]})})},iqe=()=>{const{isOpen:t,closeMenu:e,openMenu:n}=Eq();return u.jsxs(FC,{open:t,onOpenChange:r=>r?n():e(),children:[u.jsx(uY,{onClick:n,className:"inline-flex h-10 w-10 items-center justify-center rounded-full border bg-white shadow-sm",children:u.jsx(sz,{size:22,className:"text-primary"})}),u.jsxs(L6,{className:"w-[88vw] max-w-sm",onPointerDownOutside:e,children:[u.jsx(z6,{children:u.jsx("img",{alt:"Maifud Logo",src:qp,className:"w-32"})}),u.jsx(Sq,{})]})]})},oqe=({children:t})=>u.jsxs(_ze,{children:[u.jsxs("div",{className:"layout-background pb-24 lg:pb-0",children:[u.jsxs("nav",{className:"sticky top-0 z-40 flex items-center justify-between border-b bg-white/90 px-4 py-3 shadow-sm backdrop-blur lg:static lg:my-2 lg:justify-center lg:border-0 lg:bg-transparent lg:shadow-none",children:[u.jsx(or,{to:"/",className:"flex items-baseline",children:u.jsx("img",{alt:"Maifud Logo",src:qp,className:"w-28 lg:w-48"})}),u.jsx("div",{className:"lg:hidden",children:u.jsx(iqe,{})})]}),u.jsx("div",{className:"px-3 lg:mx-4 lg:px-0",children:t}),u.jsx(sqe,{})]}),u.jsx("div",{className:"hidden lg:block",children:u.jsx(yb,{})})]}),aqe=()=>u.jsx(oqe,{children:u.jsx(Oje,{})}),lqe=Et("/user")({component:aqe,beforeLoad:async({location:t})=>{if(!await ig())throw $2({to:"/login",search:{redirect:t.href}})}}),cqe=Et("/successPage")({component:()=>u.jsx(Kl,{to:"/register/success"})}),qm=({children:t})=>{const e=vi();return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"layout-background",children:[u.jsxs("nav",{className:"flex justify-center p-2 my-4 relative",children:[u.jsx("div",{className:"justify-between flex my-2 absolute left-6 top-[13px] lg:hidden",children:u.jsx(tt,{className:"underlinespace-x-1 items-center p-0 text-muted-foreground",variant:"link",onClick:()=>e.history.back(),children:u.jsx(dfe,{size:32})})}),u.jsx(or,{to:"/",className:"flex items-baseline",children:u.jsx("img",{alt:"Maifud Logo",src:qp,className:"w-48"})})]}),u.jsx("div",{className:"lg:mx-4",children:t})]}),u.jsx(yb,{})]})},uqe=()=>u.jsx(qm,{children:u.jsx(AW,{children:u.jsx(w5,{})})}),dqe=Et("/register")({component:uqe}),fqe=wn({uid:zi(st()),link_url:zi(st()),error:zi(st())}),hqe=()=>u.jsx(qm,{children:u.jsx(PWe,{})}),pqe=Et("/rcheckout")({component:hqe,validateSearch:fqe,beforeLoad:()=>{document.title="Maifud - Retomar registro"}}),mqe=()=>u.jsx(qm,{children:u.jsx(er,{})}),gqe=Et("/pr")({component:mqe,beforeLoad:async({location:t})=>{const e=Object.keys(t.search)[0];throw $2({to:"/register/subscriptions",search:{promo_code:e}})}}),vqe=Et("/plan")({component:()=>u.jsx(Kl,{to:"/register/subscriptions"})}),yqe=Et("/menu")({component:()=>u.jsx(Kl,{to:"/user/home"})}),xqe=Et("/loginPage")({component:()=>u.jsx(Kl,{to:"/login"})}),wqe=wn({referral_code:zi(st())}),_qe=()=>u.jsx(qm,{children:u.jsx(gY,{})}),Eqe=Et("/li")({component:_qe,validateSearch:wqe,beforeLoad:async({location:t})=>{if(document.title="Maifud - Código de referido _",t.searchStr.includes("referral_code="))return;const e=Object.keys(t.search)[0];throw $2({to:"/li",search:{referral_code:e}})}}),bqe=Et("/home")({component:()=>u.jsx(Kl,{to:"/user/home"}),beforeLoad:()=>{document.title="Maifud - Home"}}),Sqe=()=>u.jsx(qm,{children:u.jsx(Fje,{})}),Cqe=Et("/forgot-password")({component:Sqe,beforeLoad:()=>{document.title="Maifud - Recuperar contraseña"}}),Tqe=Et("/AIAssistant")({component:()=>u.jsx(Kl,{to:"/user/subscription/box/edit"}),beforeLoad:()=>{document.title="Maifud - Editar caja"}}),Aqe=Et("/")({component:gze,beforeLoad:()=>{document.title="Maifud: El mercado de lo imperfecto"}}),Iqe=Et("/user/preferences")({component:tqe,beforeLoad:()=>{document.title="Maifud - Preferencias"}}),Pqe=Et("/register/user-data")({component:qWe,beforeLoad:async({location:t})=>{if(await ig())throw $2({to:"/register/confirmation",search:{redirect:t.href}})}}),Rqe=Et("/register/success")({component:jze,beforeLoad:()=>{document.title="Maifud - Registro Exitoso"}}),Nqe=wn({promo_code:zi(st()),referrer_code:zi(st()),subs_id:zi(u2()),partnership_data:zi(wn({name:st(),metadata:FW(st())})),ref:zi(st())}),Mqe=Et("/register/subscriptions")({component:OWe,validateSearch:Nqe,beforeLoad:()=>{document.title="Maifud - Registro Suscripciones"}}),kqe=wn({ref:zi(st())}),Dqe=Et("/register/shipping-methods")({component:kWe,validateSearch:kqe,beforeLoad:()=>{document.title="Maifud - Registro Métodos de despacho"}}),Oqe=Et("/register/shipping-frecuency")({component:MWe,beforeLoad:()=>{document.title="Maifud - Registro Frecuencía"}}),$qe=Et("/register/confirmation")({component:WWe,beforeLoad:()=>{document.title="Maifud - Registro Confirmación"}}),Fqe=wn({referral_code:zi(st())}),jqe=()=>u.jsx(qm,{children:u.jsx(gY,{})}),Lqe=Et("/r/$referralCode")({component:jqe,validateSearch:Fqe,beforeLoad:async({location:t,params:e})=>
3484{if(document.title="Maifud - Código de referido",e.referralCode)return;const n=Object.keys(t.search)[0];throw $2({to:"/li",search:{referral_code:n}})}}),ET=Ge.create({baseURL:gi?.BACKEND_URL,timeout:3e4,headers:{"Content-Type":"application/json"}});ET.interceptors.request.use(async t=>{const e=await Ht();return e&&(t.headers.Authorization=`Bearer ${e}`),t},t=>Promise.reject(t));ET.interceptors.response.use(t=>t,t=>(t.response?.status===401&&console.error("Token inválido o expirado"),t.response?.status===500&&console.error("Error interno del servidor"),Promise.reject(t)));function zqe(t){return ET(t).then(e=>e.data)}const Vqe=t=>zqe({url:"/api/v2/subscription/reasons/user/",method:"GET",signal:t}),Bqe=()=>["/api/v2/subscription/reasons/user/"],Hqe=t=>{const{query:e}={};return{queryKey:e?.queryKey??Bqe(),queryFn:({signal:s})=>Vqe(s),...e}};function Uqe(t,e){const n=Hqe(),r=vn(n);return r.queryKey=n.queryKey,r}const J4=wn({title:st(),body:st()});wn({valor:u2(),tipo:dE(["Porcentaje","Fijo"]),lugares:Lm(dE(["Cajas","Envio","Upsell"])),cantidad:u2()});const Wqe=wn({card:J4,aceptacion:J4});wn({user:st()});const qqe=wn({razon:J4,tags:Lm(st()),regalo:Wqe.optional(),cancelar:J4}),Gqe=wn({base:st(),reasones:Lm(qqe)}),Kqe=wn({reasons:Lm(Gqe)}),Yqe=wn({user_action:st(),termination_comments:st().optional(),termination_main_reason:st({required_error:"⚠️ Por favor selecciona una opción. Nos ayudaría a mejorar."}),termination_reason:st({required_error:"⚠️ Por favor selecciona una opción. Nos ayudaría a mejorar."}),selected_tags:Lm(st()).optional()}).superRefine((t,e)=>{(!t.termination_comments||t.termination_comments.trim()==="")&&(!t.selected_tags||t.selected_tags.length===0)&&e.addIssue({code:Se.custom,path:["termination_comments"],message:"⚠️ Por favor, déjanos un comentario o selecciona al menos un tag para ayudarnos a mejorar."})}),Qqe=gi?.BACKEND_URL,Xqe={reasons:[{base:"Ya no necesito el servicio",reasones:[{razon:{title:"Me voy de vacaciones",body:"💡 Sabías que [**puedes pausar**](#pausar) hasta 3 meses tu suscripción en lugar de cancelar tu suscripción?"},tags:[],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3485
3486¡Te estaremos esperando si quieres volver! 💚`}},{razon:{title:"Me cambio de ciudad",body:"💡 Sabías que [**puedes cambiar**](#cambiar) tu dirección de entrega o elegir un punto de retiro?"},tags:["Me cambio de comuna","Me voy de Chile"],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3487
3488¡Te estaremos esperando si quieres volver! 💚`}},{razon:{title:"No me gustó el servicio",body:"🙏🏻 Lamentamos no haber cumplido tus expectativas. Siempre estamos mejorando y, si tuviste algún problema, [**escríbenos**](https://wa.me/+56971295665) para ayudarte."},tags:["Poca variedad","Tamaños poco prácticos","Personalización limitada","Precio alto","Mala calidad de productos","Problemas de despacho"],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3489
3490¡Te estaremos esperando si quieres volver! 💚`}}]},{base:"Problema con el valor del servicio",reasones:[{razon:{title:"Estoy con problemas económicos",body:"🙏🏻 Lamentamos escuchar eso, no imaginamos por lo que puedas estar pasando."},tags:[],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3491
3492¡Te estaremos esperando si quieres volver! 💚`}},{razon:{title:"Me parece caro el valor de las cajas",body:""},tags:[],cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3493
3494¡Te estaremos esperando si quieres volver! 💚`}},{razon:{title:"Me parece caro el despacho",body:""},tags:[],cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3495
3496¡Te estaremos esperando si quieres volver! 💚`}}]},{base:"Prefiero otra forma de comprar",reasones:[{razon:{title:"Prefiero comprar en la feria",body:"💡 Sabías que en Maifud tienes precios muy parecidos a la feria, ahorras el tiempo de ir y cargar bolsas, y además combates el desperdicio de alimentos?"}
3496,tags:["Precios más bajos","Más variedad","Productos más frescos","Puedo elegir lo que compro","Es parte de mi rutina o paseo"],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3497
3498¡Te estaremos esperando si quieres volver! 💚`}},{razon:{title:"Prefiero comprar en supermercados",body:"💡 Sabías que en Maifud tienes precios **30%** más bajos que supermercados, ahorras el tiempo de ir, hacer filas y además combates el desperdicio de alimentos?"},tags:["Cobro automático","Poca variedad","No elegir lo que necesito"],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3499
3500¡Te estaremos esperando si quieres volver! 💚`}},{razon:{title:"Prefiero comprar a granel",body:"💡 ¿Sabías que al estar suscrito puedes comprar a granel con un clic, sin pagar envío extra? Además, puedes elegir el día de entrega para otras compras adicionales a tu caja."},tags:["Quiero elegir lo que necesito","Poca variedad","No quiero suscribirme","Prefiero pagar por uso"],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3501
3502¡Te estaremos esperando si quieres volver! 💚`}}]},{base:"Problemas con el servicio o la experiencia",reasones:[{razon:{title:"Tuve problemas con el despacho o la entrega",body:"🙏🏻 Lamentamos escuchar eso, día a día trabajamos para mejorar nuestra logística. Recuerda que cualquier problema nos puedes [**escribir**](https://wa.me/+56971295665) a soporte para ayudarte."},tags:["No llegó el pedido","Llegó muy tarde","No me avisaron la hora","Mala atención del repartidor"],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3503
3504¡Te estaremos esperando si quieres volver! 💚`}},{razon:{title:"Mi pedido llegó incompleto o con errores",body:"🙏🏻 Lamentamos lo ocurrido. No es nuestra política cometer ese tipo de errores. Si tuviste un problema, [**escríbenos**](https://wa.me/+56971295665) a soporte y te ayudamos."},tags:["Faltaron productos","Me llegaron productos incorrectos","No se respetaron los cambios","El peso no coincidía"],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3505
3506¡Te estaremos esperando si quieres volver! 💚`}},{razon:{title:"Tuve problemas usando la plataforma",body:"🙏🏻 Lamentamos escuchar eso. Recuerda que siempre podemos ayudarte a personalizar tu caja o configurar tu cuenta si nos [**escribes a soporte**](https://wa.me/+56971295665)."},tags:["Difícil personalizar","Cambios no se guardan","Problemas de pago","Página poco amigable"],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3507
3508¡Te estaremos esperando si quieres volver! 💚`}}]},{base:"Problemas con los productos",reasones:[{razon:{title:"No me acomoda la variedad de los productos",body:"😔 Lamentamos que te vayas por eso. Estamos sumando más productos y mejorando la web para que personalizar tu caja sea cada vez más fácil y flexible."},tags:["Siempre llegan los mismos","Demasiado de un solo tipo","Pocas opciones para elegir","No se ajusta a mi consumo"],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3509
3510¡Te estaremos esperando si quieres volver! 💚`}},{razon:{title:"Me sobran productos",body:"💡 Si te sobran productos, [**puedes camb
3510iar**](#cambiar) el tamaño de tu caja, personalizarla para no repetir productos, espaciar las entregas o pausar tu suscripción cuando quieras."},tags:["No estoy cocinando tanto","Productos se repiten","Se me echan a perder","Tardan en madurar"],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3511
3512¡Te estaremos esperando si quieres volver! 💚`}},{razon:{title:"Recibí productos en mal estado o muy maduros",body:"🙏🏻 Lamentamos mucho escuchar eso. No es nuestra política entregar productos en mal estado. Recuerda que siempre podremos darte una solución si nos [**escribes a soporte**](https://wa.me/+56971295665)."},tags:["Muy maduros o pasados","Productos con hongos","Machucados o dañados","Empaque en mal estado","Caja llegó manipulada"],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3513
3514¡Te estaremos esperando si quieres volver! 💚`}},{razon:{title:"No me gustó la calidad de los productos",body:"🙏🏻 Lamentamos no haber cumplido tus expectativas en la calidad. Si quieres, [**escríbenos**](https://wa.me/+56971295665) y buscaremos la mejor solución."},tags:["Calidad insatisfactoria","No cumple expectativas","Productos inconsistentes"],regalo:{card:{title:"¡Danos otra oportunidad! 🙏🏻✨",body:"Quédate y te regalamos un **50%** de dscto en tu próxima caja y con **envío gratis**🎁🚚"},aceptacion:{title:"¡Gracias por darnos una nueva oportunidad! 💚",body:"Ya está cargado en tu sesión el descuento y el **envío gratis**para tu siguiente caja 🙌🏻"}},cancelar:{title:"Suscripción cancelada",body:`Tu suscripción ya fue cancelada, lamentamos mucho que te quieras ir 😔
3515
3516¡Te estaremos esperando si quieres volver! 💚`}}]}]},Zqe=async()=>(await new Promise(e=>setTimeout(e,1)),Kqe.parse(Xqe)),Jqe=async t=>{const e=await Ht(),n=await Ge.post(`${Qqe}/api/v1/pre_chrun_gift/`,t,{headers:{Authorization:`Bearer ${e}`}});return console.log(n),n},eGe=()=>vn({queryKey:["reasons-to-leave"],queryFn:Zqe}),tGe=()=>dr({mutationFn:Jqe});function Ed(){return Ed=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ed.apply(this,arguments)}const nGe=["children","options"],XO=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((t,e)=>(t[e.toLowerCase()]=e,t),{class:"className",for:"htmlFor"}),ZO={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},rGe=["style","script","pre"],sGe=["src","href","data","formAction","srcDoc","action"],iGe=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,oGe=/mailto:/i,aGe=/\n{2,}$/,JO=/^(\s*>[\s\S]*?)(?=\n\n|$)/,lGe=/^ *> ?/gm,cGe=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,uGe=/^ {2,}\n/,dGe=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,e$=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,t$=/^(?: {4}
vendor: 5,889 bytes, lines 3516-3522
3516[^\n]+\n*)+(?:\n *)+\n?/,fGe=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,hGe=/^(?:\n *)*\n/,pGe=/\r\n?/g,mGe=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,gGe=/^\[\^([^\]]+)]/,vGe=/\f/g,yGe=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,xGe=/^\s*?\[(x|\s)\]/,n$=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,r$=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,s$=/^([^\n]+)\n *(=|-){3,} *\n/,h8=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,wGe=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,i$=/^<!--[\s\S]*?(?:-->)/,_Ge=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,p8=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,EGe=/^\{.*\}$/,bGe=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,SGe=/^<([^ >]+@[^ >]+)>/,CGe=/^<([^ >]+:\/[^ >]+)>/,TGe=/-([a-z])?/gi,o$=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,AGe=/^[^\n]+(?:  \n|\n{2,})/,IGe=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,PGe=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,RGe=/^\[([^\]]*)\] ?\[([^\]]*)\]/,NGe=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,MGe=/\t/g,kGe=/(^ *\||\| *$)/g,DGe=/^ *:-+: *$/,OGe=/^ *:-+ *$/,$Ge=/^ *-+: *$/,G6="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",FGe=RegExp(`^([*_])\\1${G6}\\1\\1(?!\\1)`),jGe=RegExp(`^([*_])${G6}\\1(?!\\1)`),LGe=RegExp(`^(==)${G6}\\1`),zGe=RegExp(`^(~~)${G6}\\1`),VGe=/^\\([^0-9A-Za-z\s])/,BGe=/\\([^0-9A-Za-z\s])/g,HGe=/^[\s\S](?:(?!  |[0-9]\.|http)[^=*_~\-\n<`\\\[!])*/,UGe=/^\n+/,WGe=/^([ \t]*)/,qGe=/(?:^|\n)( *)$/,bT="(?:\\d+\\.)",ST="(?:[*+-])";function gX(t){return"( *)("+(t===1?bT:ST)+") +"}const vX=gX(1),yX=gX(2);function xX(t){return RegExp("^"+(t===1?vX:yX))}const GGe=xX(1),KGe=xX(2);function wX(t){return RegExp("^"+(t===1?vX:yX)+"[^\\n]*(?:\\n(?!\\1"+(t===1?bT:ST)+" )[^\\n]*)*(\\n|$)","gm")}const YGe=wX(1),QGe=wX(2);function _X(t){const e=t===1?bT:ST;return RegExp("^( *)("+e+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+e+" (?!"+e+" ))\\n*|\\s*\\n*$)")}const EX=_X(1),bX=_X(2);function a$(t,e){const n=e===1,r=n?EX:bX,s=n?YGe:QGe,i=n?GGe:KGe;return{t:o=>i.test(o),o:wg(function(o,a){const c=qGe.exec(a.prevCapture);return c&&(a.list||!a.inline&&!a.simple)?r.exec(o=c[1]+o):null}),i:1,u(o,a,c){const d=n?+o[2]:void 0,p=o[0].replace(aGe,`
3517`).match(s);let m=!1;return{items:p.map(function(v,w){const E=i.exec(v)[0].length,C=RegExp("^ {1,"+E+"}","gm"),b=v.replace(C,"").replace(i,""),S=w===p.length-1,P=b.indexOf(`
3518
3519`)!==-1||S&&m;m=P;const R=c.inline,z=c.list;let O;c.list=!0,P?(c.inline=!1,O=A0(b)+`
3520
3521`):(c.inline=!0,O=A0(b));const F=a(O,c);return c.inline=R,c.list=z,F}),ordered:n,start:d}},l:(o,a,c)=>t(o.ordered?"ol":"ul",{key:c.key,start:o.type==="20"?o.start:void 0},o.items.map(function(d,p){return t("li",{key:p},a(d,c))}))}}const XGe=RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),ZGe=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function A0(t){let e=t.length;for(;e>0&&t[e-1]<=" ";)e--;return t.slice(0,e)}function f9(t,e){return t.startsWith(e)}function JGe(t,e,n){if(Array.isArray(n)){for(let r=0;r<n.length;r++)if(f9(t,n[r]))return!0;return!1}return n(t,e)}function H1(t){return t.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function eKe(t){return $Ge.test(t)?"right":DGe.test(t)?"center":OGe.test(t)?"left":null}function l$(t,e,n,r){const s=n.inTable;n.inTable=!0;let i=[[]],o="";function a(){if(!o)return;const c=i[i.length-1];c.push.apply(c,e(o,n)),o=""}return t.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((c,d,p)=>{c.trim()==="|"&&(a(),r)?d!==0&&d!==p.length-1&&i.push([]):o+=c}),a(),n.inTable=s,i}function tKe(t,e,n){n.inline=!0;const r=t[2]?t[2].replace(kGe,"").split("|").map(eKe):[],s=t[3]?function(o,a,c){return o.trim().split(`
3522`).map(function(d){return l$(d,a,c,!0)})}(t[3],e,n):[],i=l$(t[1],e,n,!!s.length);return n.inline=!1,s.length?{align:r,cells:s,header:i,type:"25"}:{children:i,type:"21"}}function c$(t,e){return t.align[e]==null?{}:{textAlign:t.align[e]}}function wg(t){return t.inline=1,t}function Pc(t){return wg(function(e,n){return n.inline?t.exec(e):null})}function Rc(t){return wg(function(e,n){return n.inline||n.simple?t.exec(e):null})}function al(t){return function(e,n){return n.inline||n.simple?null:t.exec(e)}}function U1(t){return wg(function(e){return t.exec(e)})}const nKe=/(javascript|vbscript|data(?!:image)):/i;function rKe(t){try{const e=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"");if(nKe.test(e))return null}catch{return null}return t}function aa(t){return t&&t.replace(BGe,"$1")}function vy(t,e,n){const r=n.inline||!1,s=n.simple||!1;n.inline=!0,n.simple=!0;const i=t(e,n);return n.inline=r,n.simple=s,i}function sKe(t,e,n){const r=n.inline||!1,s=n.simple||!1;n.inline=!1,n.simple=!0;const i=t(e,n);return n.inline=r,n.simple=s,i}function iKe(t,e,n){const r=n.inline||!1;n.inline=!1;const s=t(e,n);return n.inline=r,s}const m8=(t,e,n)=>({children:vy(e,t[2],n)});function g8(){return{}}function v8(){return null}function oKe(...t){return t.filter(Boolean).join(" ")}function y8(t,e,n){let r=t;const s=e.split(".");for(;s.length&&(r=r[s[0]],r!==void 0);)s.shift();return r||n}function aKe(t="",e={}){e.overrides=e.overrides||{},e.namedCodesToUnicode=e.namedCodesToUnicode?Ed({},ZO,e.namedCodesToUnicode):ZO;const n=e.slugify||H1,r=e.sanitizer||rKe,s=e.createElement||_.createElement,i=[JO,e$,t$,e.enforceAtxHeadings?r$:n$,s$,o$,EX,bX],o=[...i,AGe,h8,i$,p8];function a(S,P,...R){const z=y8(e.overrides,S+".props",{});return s(function(O,F){const D=y8(F,O);
vendor: 4,570 bytes, lines 3522-3524
3522return D?typeof D=="function"||typeof D=="object"&&"render"in D?D:y8(F,O+".component",O):O}(S,e.overrides),Ed({},P,z,{className:oKe(P?.className,z.className)||void 0}),...R)}function c(S){S=S.replace(yGe,"");let P=!1;e.forceInline?P=!0:e.forceBlock||(P=NGe.test(S)===!1);const R=E(w(P?S:A0(S).replace(UGe,"")+`
3523
3524`,{inline:P}));for(;typeof R[R.length-1]=="string"&&!R[R.length-1].trim();)R.pop();if(e.wrapper===null)return R;const z=e.wrapper||(P?"span":"div");let O;if(R.length>1||e.forceWrapper)O=R;else{if(R.length===1)return O=R[0],typeof O=="string"?a("span",{key:"outer"},O):O;O=null}return s(z,{key:"outer"},O)}function d(S,P){if(!P||!P.trim())return null;const R=P.match(iGe);return R?R.reduce(function(z,O){const F=O.indexOf("=");if(F!==-1){const D=function(j){return j.indexOf("-")!==-1&&j.match(_Ge)===null&&(j=j.replace(TGe,function(L,V){return V.toUpperCase()})),j}(O.slice(0,F)).trim(),I=function(j){const L=j[0];return(L==='"'||L==="'")&&j.length>=2&&j[j.length-1]===L?j.slice(1,-1):j}(O.slice(F+1).trim()),T=XO[D]||D;if(T==="ref")return z;const k=z[T]=function(j,L,V,Y){return L==="style"?function(G){const q=[];let U="",B=!1,ne=!1,oe="";if(!G)return q;for(let ie=0;ie<G.length;ie++){const ue=G[ie];if(ue!=='"'&&ue!=="'"||B||(ne?ue===oe&&(ne=!1,oe=""):(ne=!0,oe=ue)),ue==="("&&U.endsWith("url")?B=!0:ue===")"&&B&&(B=!1),ue!==";"||ne||B)U+=ue;else{const ge=U.trim();if(ge){const Ae=ge.indexOf(":");if(Ae>0){const Pe=ge.slice(0,Ae).trim(),he=ge.slice(Ae+1).trim();q.push([Pe,he])}}U=""}}const Q=U.trim();if(Q){const ie=Q.indexOf(":");if(ie>0){const ue=Q.slice(0,ie).trim(),ge=Q.slice(ie+1).trim();q.push([ue,ge])}}return q}(V).reduce(function(G,[q,U]){return G[q.replace(/(-[a-z])/g,B=>B[1].toUpperCase())]=Y(U,j,q),G},{}):sGe.indexOf(L)!==-1?Y(aa(V),j,L):(V.match(EGe)&&(V=aa(V.slice(1,V.length-1))),V==="true"||V!=="false"&&V)}(S,D,I,r);typeof k=="string"&&(h8.test(k)||p8.test(k))&&(z[T]=c(k.trim()))}else O!=="style"&&(z[XO[O]||O]=!0);return z},{}):null}const p=[],m={},v={0:{t:[">"],o:al(JO),i:1,u(S,P,R){const[,z,O]=S[0].replace(lGe,"").match(cGe);return{alert:z,children:P(O,R)}},l(S,P,R){const z={key:R.key};return S.alert&&(z.className="markdown-alert-"+n(S.alert.toLowerCase(),H1),S.children.unshift({attrs:{},children:[{type:"27",text:S.alert}],noInnerParse:!0,type:"11",tag:"header"})),a("blockquote",z,P(S.children,R))}},1:{o:U1(uGe),i:1,u:g8,l:(S,P,R)=>a("br",{key:R.key})},2:{t:S=>{const P=S[0];return P==="-"||P==="*"||P==="_"},o:al(dGe),i:1,u:g8,l:(S,P,R)=>a("hr",{key:R.key})},3:{t:["    "],o:al(t$),i:0,u:S=>({lang:void 0,text:aa(A0(S[0].replace(/^ {4}/gm,"")))}),l:(S,P,R)=>a("pre",{key:R.key},a("code",Ed({},S.attrs,{className:S.lang?"lang-"+S.lang:""}),S.text))},4:{t:["```","~~~"],o:al(e$),i:0,u:S=>({attrs:d("code",S[3]||""),lang:S[2]||void 0,text:S[4],type:"3"})},5:{t:["`"],o:Rc(fGe),i:3,u:S=>({text:aa(S[2])}),l:(S,P,R)=>a("code",{key:R.key},S.text)},6:{t:["[^"],o:al(mGe),i:0,u:S=>(p.push({footnote:S[2],identifier:S[1]}),{}),l:v8},7:{t:["[^"],o:Pc(gGe),i:1,u:S=>({target:"#"+n(S[1],H1),text:S[1]}),l:(S,P,R)=>a("a",{key:R.key,href:r(S.target,"a","href")},a("sup",{key:R.key},S.text))},8:{t:["[ ]","[x]"],o:Pc(xGe),i:1,u:S=>({completed:S[1].toLowerCase()==="x"}),l:(S,P,R)=>a("input",{checked:S.completed,key:R.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:al(e.enforceAtxHeadings?r$:n$),i:1,u:(S,P,R)=>({children:vy(P,S[2],R),id:n(S[2],H1),level:S[1].length}),l:(S,P,R)=>a("h"+S.level,{id:S.id,key:R.key},P(S.children,R))},10:{o:al(s$),i:0,u:(S,P,R)=>({children:vy(P,S[1],R),level:S[2]==="="?1:2,type:"9"})},11:{t:["<"],o:U1(h8),i:1,u(S,P,R){const[,z]=S[3].match(WGe),O=RegExp("^"+z,"gm"),F=S[3].replace(O,""),D=(I=F,o.some(V=>V.test(I))?iKe:vy);var I;const T=S[1].toLowerCase(),k=rGe.indexOf(T)!==-1,j=(k?T:S[1]).trim(),L={attrs:d(j,S[2]),noInnerParse:k,tag:j};if(R.inAnchor=R.inAnchor||T==="a",k)L.text=S[3];else{const V=R.inHTML;R.inHTML=!0,L.children=D(P,F,R),R.inHTML=V}return R.inAnchor=!1,L},l:(S,P,R)=>a(S.tag,Ed({key:R.key},S.attrs),S.text||(S.children?P(S.children,R):""))},13:{t:["<"],o:U1(p8),i:1,u(S){const P=S[1].trim();return{attrs:d(P,S[2]||""),tag:P}},l:(S,P,R)=>a(S.tag,Ed({},S.attrs,{key:R.key}))},12:{t:["<!--"],o:U1(i$),i:1,u:()=>({}),l:v8},14:{t:["!["],o:Rc(ZGe),i:1,u:S=>({alt:aa(S[1]),target:aa(S[2]),title:aa(S[3])}),l:(S,P,R)=>a("img",{key:R.key,alt:S.alt||void 0,title:S.title||void 0,src:r(S.target,"img","src")})},15:{t:["["],o:Pc(XGe),i:3,u:(S,P,R)=>({children:sKe(P,S[1],R),target:aa(S[2]),title:aa(S[3])}),l:(S,P,R)=>a("a",{key:R.key,href:r(S.target,"a","href"),title:S.title},P(S.children,R))}
3524,16:{t:["<"],o:Pc(CGe),i:0,u:S=>({children:[{text:S[1],type:"27"}],target:S[1],type:"15"})},17:{t:(S,P)=>!P.inAnchor&&!e.disableAutoLink&&(f9(S,"http://")||f9(S,"https://")),o:Pc(bGe),i:0,u:S=>({children:[{text:S[1],type:"27"}],target:S[1],title:void 0,type:"15"})},18:{t:["<"],o:Pc(SGe),i:0,u(S){let P=S[1],R=S[1];return oGe.test(R)||(R="mailto:"+R),{children:[{text:P.replace("mailto:",""),type:"27"}],target:R,type:"15"}}},20:a$(a,1),33:a$(a,2),19:{o:al(hGe),i:3,u:g8,l:()=>`
3525`},21:{o:wg(function(S,P){if(P.inline||P.simple||P.inHTML&&S.indexOf(`
3526
3527`)===-1&&P.prevCapture.indexOf(`
3528
3529`)===-1)return null;let R="";S.split(`
3530`).every(O=>(O+=`
3531`,!i.some(F=>F.test(O))&&(R+=O,!!O.trim())));const z=A0(R);return z===""?null:[R,,z]}),i:3,u:m8,l:(S,P,R)=>a("p",{key:R.key},P(S.children,R))},22:{t:["["],o:Pc(IGe),i:0,u:S=>(m[S[1]]={target:S[2],title:S[4]},{}),l:v8},23:{t:["!["],o:Rc(PGe),i:0,u:S=>({alt:S[1]?aa(S[1]):void 0,ref:S[2]}),l:(S,P,R)=>m[S.ref]?a("img",{key:R.key,alt:S.alt,src:r(m[S.ref].target,"img","src"),title:m[S.ref].title}):null},24:{t:["["],o:Pc(RGe),i:0,u:(S,P,R)=>({children:P(S[1],R),fallbackChildren:S[0],ref:S[2]}),l:(S,P,R)=>m[S.ref]?a("a",{key:R.key,href:r(m[S.ref].target,"a","href"),title:m[S.ref].title},P(S.children,R)):a("span",{key:R.key},S.fallbackChildren)},25:{t:["|"],o:al(o$),i:1,u:tKe,l(S,P,R){const z=S;return a("table",{key:R.key},a("thead",null,a("tr",null,z.header.map(function(O,F){return a("th",{key:F,style:c$(z,F)},P(O,R))}))),a("tbody",null,z.cells.map(function(O,F){return a("tr",{key:F},O.map(function(D,I){return a("td",{key:I,style:c$(z,I)},P(D,R))}))})))}},27:{o:U1(HGe),i:4,u(S){const P=S[0];return{text:P.indexOf("&")===-1?P:P.replace(wGe,(R,z)=>e.namedCodesToUnicode[z]||R)}},l:S=>S.text},28:{t:["**","__"],o:Rc(FGe),i:2,u:(S,P,R)=>({children:P(S[2],R)}),l:(S,P,R)=>a("strong",{key:R.key},P(S.children,R))},29:{t:S=>{const P=S[0];return(P==="*"||P==="_")&&S[1]!==P},o:Rc(jGe),i:3,u:(S,P,R)=>({children:P(S[2],R)}),l:(S,P,R)=>a("em",{key:R.key},P(S.children,R))},30:{t:["\\"],o:Rc(VGe),i:1,u:S=>({text:S[1],type:"27"})},31:{t:["=="],o:Rc(LGe),i:3,u:m8,l:(S,P,R)=>a("mark",{key:R.key},P(S.children,R))},32:{t:["~~"],o:Rc(zGe),i:3,u:m8,l:(S,P,R)=>a("del",{key:R.key},P(S.children,R))}};e.disableParsingRawHTML===!0&&(delete v[11],delete v[13]);const w=function(S){var P=Object.keys(S);function R(z,O){var F=[];if(O.prevCapture=O.prevCapture||"",z.trim())for(;z;)for(var D=0;D<P.length;){var I=P[D],T=S[I];if(!T.t||JGe(z,O,T.t)){var k=T.o(z,O);if(k&&k[0]){z=z.substring(k[0].length);var j=T.u(k,R,O);O.prevCapture+=k[0],j.type||(j.type=I),F.push(j);break}D++}else D++}return O.prevCapture="",F}return P.sort(function(z,O){return S[z].i-S[O].i||(z<O?-1:1)}),function(z,O){return R(function(F){return F.replace(pGe,`
3532`).replace(vGe,"").replace(MGe,"    ")}(z),O)}}(v),E=(C=function(S,P){return function(R,z,O){const F=S[R.type].l;return P?P(()=>F(R,z,O),R,z,O):F(R,z,O)}}(v,e.renderRule),function S(P,R={}){if(Array.isArray(P)){const z=R.key,O=[];let F=!1;for(let D=0;D<P.length;D++){R.key=D;const I=S(P[D],R),T=typeof I=="string";T&&F?O[O.length-1]+=I:I!==null&&O.push(I),F=T}return R.key=z,O}return C(P,S,R)});var C;const b=c(t);return p.length?a("div",null,b,a("footer",{key:"footer"},p.map(function(S){return a("div",{id:n(S.identifier,H1),key:S.identifier},S.identifier,E(w(S.footnote,{inline:!0})))}))):b}const u$=t=>{let{children:e="",options:n}=t,r=function(s,i){if(s==null)return{};var o,a,c={},d=Object.keys(s);for(a=0;a<d.length;a++)i.indexOf(o=d[a])>=0||(c[o]=s[o]);return c}(t,nGe);return _.cloneElement(aKe(e,n),r)},lKe={"delete-account":()=>{console.log("Acción: Eliminar cuenta")},logout:()=>{console.log("Acción: Cerrar sesión")},"contact-support":()=>{console.log("Acción: Contactar soporte")}},x8={overrides:{a:{component:({children:t,href:e,...n})=>{if(e?.startsWith("#")){const r=e.substring(1),s=lKe[r];if(s)return u.jsx("button",{...n,onClick:i=>{i.preventDefault(),s()},style:{textDecoration:"underline",background:"none",border:"none",color:"inherit",cursor:"pointer",padding:0,font:"inherit"},children:t})}return u.jsx("a",{...n,href:e,style:{textDecoration:"underline"},children:t})}}}},CT=({children:t,onHashAction:e})=>
3532{if(e){const n={...x8,overrides:{...x8.overrides,a:{component:({children:r,href:s,...i})=>{if(s?.startsWith("#")){const o=s.substring(1);return u.jsx("button",{...i,onClick:a=>{a.preventDefault(),e(o)},style:{textDecoration:"underline",background:"none",border:"none",color:"inherit",cursor:"pointer",padding:0,font:"inherit"},children:r})}return u.jsx("a",{...i,href:s,style:{textDecoration:"underline"},children:r})}}}};return u.jsx(u$,{options:n,children:t})}return u.jsx(u$,{options:x8,children:t})},cKe=({card:t,onPausar:e,onChange:n})=>u.jsx(g6,{variant:"default",className:"bg-primary/10 border-primary",children:u.jsx(v6,{children:u.jsx(CT,{onHashAction:r=>{switch(r){case"cambiar":n();break;case"pausar":e();break}},children:t.body})})}),uKe=({open:t,setClose:e,gift:n})=>{const r=Jr(),s=()=>{r({to:"/user/discounts"})};return u.jsx(ec,{open:t,onOpenChange:e,children:u.jsxs(ja,{className:"sm:max-w-md",children:[u.jsx(La,{children:u.jsx("h2",{className:"text-center text-2xl font-semibold",children:n.aceptacion.title})}),u.jsx("div",{className:"text-center py-4",children:u.jsx(CT,{children:n.aceptacion.body}
3532)}),u.jsx(tc,{className:"flex flex-col sm:flex-row gap-2",children:u.jsx(tt,{variant:"outline",onClick:s,className:"flex-1",children:"Cerrar"})})]})})},dKe=({open:t,onClose:e,gift:n,deleteSuscriptionData:r,onConfirm:s,isLoading:i})=>{const[o,a]=_.useState(!1),c=tGe();return _.useEffect(()=>{c.isSuccess&&(a(!0),e())},[c.isSuccess,e]),u.jsxs(u.Fragment,{children:[u.jsx(uKe,{open:o,setClose:()=>a(!1),gift:n}),u.jsx(ec,{open:t,onOpenChange:e,children:u.jsxs(ja,{className:"sm:max-w-md",children:[u.jsx(La,{children:u.jsx("h2",{className:"text-center text-2xl font-semibold",children:n.card.title})}),u.jsx("div",{className:"text-center py-4",children:u.jsx(CT,{children:n.card.body})}),u.jsxs(tc,{className:"flex flex-col sm:flex-row gap-2",children:[u.jsx(tt,{variant:"outline",disabled:c.isPending||i,onClick:()=>s(r),className:"flex-1",children:"Cancelar Suscripción"}),u.jsx(tt,{onClick:()=>{c.mutate({terminationReason:r.termination_reason})},className:"flex-1",disabled:c.isPending||i,children:c.isPending?"Activando...":"Activar descuento"})]})]})})]})},fKe=({open:t,onClose:e,onPausar:n,onChange:r})=>{const s=Jr(),i=xi({resolver:_i(Yqe),defaultValues:{user_action:"TERMINATE",termination_reason:"",selected_tags:[],termination_comments:""},mode:"onChange"}),{data:o,isLoading:a}=Uqe(),c=B_e(),[d,p]=_.useState(!1),[m,v]=_.useState(),[w,E]=_.useState(),[C,b]=_.useState(),S=i.watch("selected_tags")||[],P=T=>{const k=i.getValues("selected_tags")||[],j=k.includes(T)?k.filter(L=>L!==T):[...k,T];i.setValue("selected_tags",j,{shouldValidate:!0})},R=T=>{T&&c.mutate(T)},z=T=>{let k=T.termination_comments||"";if(T.selected_tags&&T.selected_tags.length>0){const L=T.selected_tags.join(", ");k=k?`${k}
3533
3534Tags seleccionados: ${L}`:`Tags seleccionados: ${L}`}const j={user_action:"TERMINATE",termination_reason:`${T.termination_main_reason}
3535
3536 ${k}`};b(j),w?.regalo&&d===!1?p(!0):R(j)},O=o?.gift&&C&&!a,F=eGe();_.useEffect(()=>{c.isSuccess&&tC().finally(()=>{s({to:"/"})})},[c.isSuccess,s]);const D=i.watch("termination_main_reason");_.useEffect(()=>{if(F.data){const T=F.data.reasons.find(k=>k.base===D);v(T),E(void 0),i.setValue("selected_tags",[]),i.setValue("termination_reason",""),i.setValue("termination_comments","")}},[D,i,F.data]);const I=i.watch("termination_reason");return _.useEffect(()=>{if(I){const T=m?.reasones.find(k=>k.razon.title===I);E(T)}else i.setValue("selected_tags",[]);i.setValue("selected_tags",[])},[I,i,m]),u.jsxs(ec,{open:t,onOpenChange:e,children:[u.jsx(ja,{className:"overflow-x-visible",children:u.jsx(wi,{...i,children:u.jsxs("form",{className:"space-y-4",onSubmit:i.handleSubmit(z),children:[u.jsxs(La,{children:[u.jsx(Vu,{children:"Lamentamos no cumplir tus expectativas"}),u.jsx(QQ,{children:"Al confirmar, tu suscripción quedara desactivada y no haremos ningún cobro adicional."})]}),u.jsxs("div",{className:"space-y-4 px-1 overflow-x-visible overflow-y-scroll h-[70vh]",children:[u.jsx("div",{className:"w-10 mx-auto",children:u.jsx("img",{src:"/sad_box.png",alt:"Caja triste",className:"w-full"})}),F.isLoading&&u.jsx("div",{className:"text-center py-4",children:u.jsx("p",{children:"Cargando opciones..."})}),F.isError&&u.jsx("div",{className:"text-center py-4 text-red-500",children:u.jsx("p",{children:"Error al cargar las opciones. Por favor, intenta de nuevo."})}),u.jsx(cn,{control:i.control,name:"termination_main_reason",render:({field:T})=>u.jsxs(un,{children:[u.jsx(gn,{htmlFor:"termination_main_reason",children:"¿Qué motivó tu cancelación?"}),u.jsxs(Do,{value:T.value,onValueChange:k=>T.onChange(k),children:[u.jsx(En,{children:u.jsx(Ui,{children:u.jsx(Oo,{placeholder:"Selecciona..."})})}),u.jsx(Wi,{children:F.data?.reasons.map(k=>u.jsx(qi,{value:k.base,children:k.base},k.base))||[]})]}),u.jsx(Ot,{})]})}),m?.reasones&&u.jsx(cn,{control:i.control,name:"termination_reason",render:({field:T})=>u.jsxs(u.Fragment,{children:[u.jsxs(un,{children:[u.jsx(gn,{htmlFor:"termination_reason",children:"¿Podrías darnos más detalles?"}),u.jsxs(Do,{onValueChange:T.onChange,value:T.value||"",children:[u.jsx(En,{children:u.jsx(Ui,{children:u.jsx(Oo,{placeholder:""})})}),u.jsx(Wi,{children:m.reasones.map(k=>u.jsx(qi,{value:k.razon.title,children:k.razon.title},k.razon.title))})]}),u.jsx(Ot,{})]}),w?.razon.body&&u.jsx(cKe,{card:w.razon,onChange:r,onPausar:n}),w?.tags&&u.jsxs("div",{className:"my-4",children:[u.jsx("div",{className:"flex flex-wrap gap-2 mt-2",children:w.tags.map(k=>u.jsx(eqe,{variant:S.includes(k)?"default":"outline",className:"cursor-pointer hover:bg-primary/10 transition-colors select-none",onClick:j=>{j.preventDefault(),j.stopPropagation(),P(k)},children:k},k))}),S.length>0&&u.jsxs("div",{className:"mt-2 text-xs text-muted-foreground",children:["Seleccionados:"," ",S.join(", ")
3536]})]})]})}),u.jsx(cn,{control:i.control,name:"termination_comments",render:({field:T})=>u.jsxs(un,{children:[u.jsx(gn,{children:"Déjanos más información"}),u.jsx(En,{children:u.jsx(Pf,{onChange:T.onChange,value:T.value||"",className:"text-base md:text-sm"})}),u.jsx(Ot,{})]})})]}),u.jsxs(tc,{className:"my-4 flex flex-col lg:justify-end lg:flex-row gap-4",children:[u.jsx(jWe,{asChild:!0,children:u.jsx(tt,{type:"button",variant:"secondary",onClick:e,disabled:c.isPending,children:"Cerrar"})}),u.jsx(tt,{type:"submit",variant:"destructive",disabled:c.isPending||!i.formState.isValid||F.isLoading,children:c.isPending?"Guardando...":"Desactivar suscripción"})]}),c.isError&&u.jsx(Ot,{className:"text-right",children:c.error.message}),c.isSuccess&&u.jsx(Ot,{className:"text-right text-primary",children:"Tu suscripción se ha desactivado correctamente."})]})})}),O&&w?.regalo&&u.jsx(dKe,{open:d,onClose:()=>p(!1),gift:w?.regalo,deleteSuscriptionData:C,onConfirm:()=>R(C),isLoading:c.isPending})]})},hKe=async t=>{const e=await Ht();return Ge.post(`${gi.BACKEND_URL}/api/v1/subscriptions/edit/type`,t,{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},pKe=()=>{const t=Zs();return dr({mutationFn:hKe,onSuccess:()=>{t.invalidateQueries({queryKey:["subscription-status"]})}})},mKe=async t=>{const e=await Ht();return Ge.post(`${gi.BACKEND_URL}/api/v1/subscriptions/edit/frecuency`,t,{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},gKe=()=>{const t=Zs();return dr({mutationFn:mKe,onSuccess:()=>{t.invalidateQueries({queryKey:["subscription-status"]})}})},vKe=async()=>{const t=await Ht();return Ge.get(`${gi.BACKEND_URL}/api/v1/subscriptions/edit/next_delivery`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},yKe=()=>vn({queryKey:["next-delivery-dates"],queryFn:vKe}),xKe=async t=>{const e=await Ht();return Ge.post(`${gi.BACKEND_URL}/api/v1/subscriptions/edit/next_delivery`,t,{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},wKe=()=>{const t=Zs();return dr({mutationFn:xKe,onSuccess:()=>{t.invalidateQueries({queryKey:["subscription-status"]})}})},_Ke=async()=>{const t=await Ht();return Ge.get(`${gi.BACKEND_URL}/api/v1/subscriptions/edit/pause`,{headers:{Authorization:`Bearer ${t}`},params:{...It()}})},EKe=()=>vn({queryKey:["pause-dates"],queryFn:_Ke}),bKe=async t=>{const e=await Ht();return Ge.post(`${gi.BACKEND_URL}/api/v1/subscriptions/edit/pause`,t,{headers:{Authorization:`Bearer ${e}`},params:{...It()}})},SX=()=>{const t=Zs();return dr({mutationFn:bKe,onSuccess:()=>{t.invalidateQueries({queryKey:["subscription-status"]})}})},d$=[{id:"WEEKLY",name:"Semanal",image:wT},{id:"BIWEEKLY",name:"Quincenal",image:xT}],SKe=({hasActiveOrder:t,activeFrecuency:e,onClose:n})=>{const[r,s]=_.useState(e),i=gKe(),o=()=>{i.mutate({frecuency:r})},a=i.data?.data,c=e===r||i.isPending,d=()=>a?.status==="ERROR"?a.error_code==="RECIPE_NOT_READY"?u.jsx(Hn,{title:"Order activa",message:u.jsxs("p",{children:["Podrás cambiar tu suscripción una vez tengas acceso a tu orden activa."," ",u.jsx("a",{href:"https://wa.me/56971295665",className:"underline",children:"Si necesitas ayuda comunícate con nosotros"})]})}):u.jsx(Hn,{title:"Error inesperado",message:"Hubo un error inesperado. Por favor intenta de nuevo más tarde.",retry:o}):i.isError?u.jsx(Hn,{title:"No se pudo cambiar la frecuencia de envío.",message:i.error.message,retry:o,error:i.error}):u.jsx("div",{className:"grid grid-cols-1 gap-4",children:d$.map(p=>u.jsx("button",{className:ve("border p-2 rounded-md cursor-pointer text-left w-full",p.id===r&&"bg-orange-500/10 border-orange-500"),onClick:()=>s(p.id),type:"button",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"max-w-20",children:u.jsx("img",{src:p.image,alt:p.name,className:"w-full"})}),u.jsx("div",{children:u.jsx("div",{className:"flex justify-between items-center mb-1",children:u.jsx("p",{className:"text-sm font-medium",children:p.name})})})]})},p.name))});return u.jsx(ec,{open:!0,onOpenChange:n,children:u.jsxs(ja,{children:[u.jsx(La,{children:u.jsx(Vu,{children:"Cambiar frecuencia de envío"})}),a?.status==="OK"?u.jsxs("p",{className:"text-center text-sm font-semibold pt-4",children:["✅ Tu nueva frecuencia de envío es"," ",u.
3536jsx("strong",{className:"text-primary ",children:d$.find(p=>p.id===r)?.name}),"."]}):u.jsx("div",{className:"grid gap-4 pt-4",children:d()}),t&&u.jsx("p",{className:"text-center text-sm text-primary font-semibold",children:"🔔 Tienes una orden activa. El cambio que hagas aplicará para tus siguientes envíos."}),u.jsxs(tc,{className:"gap-4 pt-2 md:gap-2",children:[u.jsx(tt,{type:"button",variant:"secondary",onClick:n,disabled:i.isPending,children:"Cerrar"}),a?.status!=="OK"&&u.jsx(tt,{type:"submit",disabled:c,onClick:o,children:i.isPending?"Guardando...":"Guardar cambio"})]})]})})},CKe=({hasActiveOrder:t,deliveryDate:e,onClose:n})=>{const[r,s]=_.useState(e),{data:i,isLoading:o,isError:a,error:c,refetch:d}=yKe(),p=i?.data,m=wKe(),v=()=>{m.mutate({delivery_date:r})},w=m.data?.data,E=e===r||m.isPending;if(m.isError)return u.jsx(Hn,{title:"No se pudo guardar los cambios. Intenta de nuevo más tarde.",message:m.error.message,retry:v,error:m.error});const C=()=>{if(o)return u.jsx(er,{message:"Buscando días disponibles..."});if(a)return u.jsx(Hn,{title:"No se pudo obtener los días disponibles. Intenta de nuevo más tarde.",message:c.message,retry:d,error:c});if(w?.status==="ERROR")return w.error_code==="RECIPE_NOT_READY"?u.jsx(Hn,{title:"Order activa",message:u.jsxs("p",{children:["Podrás cambiar tu suscripción una vez tengas acceso a tu orden activa."," ",u.jsx("a",{href:"https://wa.me/56971295665",className:"underline",children:"Si necesitas ayuda comunícate con nosotros"})]})}):u.jsx(Hn,{title:"Error inesperado",message:"Hubo un error inesperado. Por favor intenta de nuevo más tarde.",retry:v});if(p){const b=p.dates.map(S=>su(S));return u.jsxs("div",{className:"flex flex-col gap-4 md:flex-row",children:[u.jsxs("div",{className:"border rounded-md p-4",children:[u.jsx("p",{className:"text-sm font-medium text-center",children:"Días disponibles para siguiente envío"}),u.jsx("div",{className:"flex justify-center",children:u.jsx(Am,{mode:"single",className:"font-sans",disabled:S=>!p.dates.includes(of(S)),onSelect:S=>{S&&s(of(S))},selected:su(r),fromDate:b[0],toDate:b.at(-1),locale:Uo})})]}),u.jsxs("div",{className:"flex flex-col justify-center items-center border rounded-md p-4 bg-primary/10 text-base md:text-sm",children:[u.jsxs("p",{className:ve("text-center",!E&&"line-through"),children:["Tu próximo envío es el"," ",u.jsx("strong",{className:ve("text-primary font-medium font-sans"),children:bs(e)}),"."]}),!E&&u.jsxs("div",{children:[u.jsxs("p",{className:"mt-2 text-center",children:["¿Deseas recibir tu próxima caja el"," ",u.jsx("strong",{className:"text-primary font-medium font-sans",children:bs(r)}),"?"]}),u.jsxs("p",{className:"text-xs text-center mt-4",children:["*El siguiente cobro sería el"," ",u.jsx("span",{className:"font-sans font-medium",children:bs(bB(r))})]})]})]})]})}};return u.jsx(ec,{open:!0,onOpenChange:n,children:u.jsxs(ja,{children:[u.jsx(La,{children:u.jsx(Vu,{children:"Cambiar día de envío"})}),u.jsxs(E6,{className:"h-[80vh]",children:[w?.status==="OK"?u.jsxs("p",{className:"text-center text-sm font-semibold pt-4",children:["✅ La fecha de tu próximo envío ahora es el"," ",u.jsx("strong",{className:"text-primary",children:bs(r)}),"."]}):u.jsx("div",{className:"grid gap-4 pt-4",children:C()}),t&&u.jsx("p",{className:"text-center text-sm text-primary font-semibold py-4",children:"🔔 Tienes una orden activa. El cambio que hagas aplicará para tus siguientes envíos."}),u.jsxs(tc,{className:"gap-4 pt-2 md:gap-2",children:[u.jsx(tt,{type:"button",variant:"secondary",onClick:n,disabled:m.isPending,children:"Cerrar"}),w?.status!=="OK"&&u.jsx(tt,{type:"submit",disabled:E,onClick:v,children:m.isPending?"Guardando...":"Guardar cambio"})]})]})]})})},TKe=({hasActiveOrder:t,activeSubscription:e,onClose:n})=>{const[r,s]=_.useState(e),{data:i,isLoading:o,isError:a,error:c,refetch:d}=c6({}),p=pKe(),m=i?.data,v=()=>{p.mutate({subscription_id:r})},w=p.data?.data,E=e===r||p.isPending,C=()=>o?u.jsx(er,{message:"Buscando suscripciones Maifud..."}):w?.status==="ERROR"?w.error_code==="RECIPE_NOT_READY"?u.jsx(Hn,{title:"Order activa",message:u.jsxs("p",{children:["Podrás cambiar tu suscripción una vez tengas acceso a tu orden activa."," ",u.jsx("a",{href:"https://wa.me/56971295665",className:"underline",children:"Si necesitas ayuda comunícate con nosotros"})]})}):u.jsx(Hn,{title:"Error inesperado",message:"Hubo un error inesperado. Por favor intenta de nuevo más tarde.",retry:d}):a?u.jsx(Hn,{title:"No se pudo obtener la información de las suscripciones.",message:c.message,retry:d,error:c}):p.isError?u.jsx(Hn,{title:"No se pudo obtener cambiar la suscripción.",message:p.error.message,retry:v,error:p.error}):m?u.jsx("div",{className:"grid grid-cols-1 gap-4",children:m.subscriptions.map(b=>{const S=P6(b);return u.jsx("button",{className:ve("border p-2 rounded-md cursor-pointer text-left w-full",b.id===r&&"bg-orange-500/10 border-orange-500"),onClick:()=>s(b.id),type:"button",children:u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("div",{className:"max-w-20",children:u.jsx("img",{src:I6(b),alt:b.name,className:"w-full"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex justify-between items-center mb-1",children:[u.jsx("p",{className:"text-sm font-medium",children:b.name}),u.jsx("p",{className:"font-sans text-sm text-primary font-semibold",children:Ul(b.price_incl_tax)})]}),u.jsx("div",{children:u.jsx("p",{className:"text-xs text-muted-foreground",children:S.description})})]})]})},b.name)}
3536)}):null;return u.jsx(ec,{open:!0,onOpenChange:n,children:u.jsxs(ja,{children:[u.jsx(La,{children:u.jsx(Vu,{children:"Cambiar suscripción"})}),w?.status==="OK"?u.jsxs("p",{className:"text-center text-sm font-semibold pt-4",children:["✅ Tu nueva suscripción es la"," ",u.jsx("strong",{className:"text-primary ",children:m?.subscriptions.find(b=>b.id===r)?.name}),"."]}):u.jsx(E6,{className:"h-[18rem]",children:u.jsx("div",{className:"grid gap-4 pt-4",children:C()})}),t&&u.jsx("p",{className:"text-center text-sm text-primary font-semibold",children:"🔔 Tienes una orden activa. El cambio que hagas aplicará para tus siguientes envíos."}),u.jsxs(tc,{className:"gap-4 pt-2 md:gap-2",children:[u.jsx(tt,{type:"button",variant:"secondary",onClick:n,disabled:p.isPending,children:"Cerrar"}),w?.status!=="OK"&&u.jsx(tt,{type:"submit",disabled:E,onClick:v,children:p.isPending?"Guardando...":"Guardar cambio"})]})]})})},AKe=({hasActiveOrder:t,deliveryDate:e,onClose:n})=>{const[r,s]=_.useState(e),{data:i,isLoading:o}=EKe(),a=SX(),c=i?.data,d=()=>{a.mutate({delivery_date:r})},p=a.data?.data,m=e===r||a.isPending,v=()=>{if(o)return u.jsx(er,{message:"Buscando fechas disponibles..."});if(a.isError)return u.jsx(Hn,{title:"No se pudo pausar la suscripción. Intenta de nuevo más tarde.",message:a.error.message,retry:d,error:a.error});if(c){const w=c.dates.map(E=>su(E));return u.jsx("div",{children:u.jsxs("div",{className:"flex flex-col gap-4 md:flex-row",children:[u.jsxs("div",{className:"border rounded-md p-4",children:[u.jsx("p",{className:"text-sm font-medium text-center",children:"Selecciona cuando quieres recibir de nuevo"}),u.jsx("div",{className:"flex justify-center",children:u.jsx(Am,{mode:"single",className:"font-sans",disabled:E=>!c.dates.includes(of(E)),onSelect:E=>{E&&s(of(E))},selected:r?su(r):void 0,fromDate:w[0],toDate:w.at(-1),locale:Uo})})]}),u.jsxs("div",{className:"flex flex-col justify-center items-center border rounded-md p-4 bg-primary/10 text-base md:text-sm",children:[u.jsxs("p",{className:ve("text-center",!m&&"line-through"),children:["Tu próximo envío es el"," ",u.jsx("strong",{className:ve("text-primary font-medium font-sans"),children:bs(e)}),"."]}),!m&&u.jsxs("div",{children:[u.jsxs("p",{className:"mt-2 text-center",children:["¿Deseas pausar y retomar tu suscripción el"," ",u.jsx("strong",{className:"text-primary font-medium font-sans",children:bs(r)}),"?"]}),u.jsxs("p",{className:"text-xs text-center mt-4",children:["*El siguiente cobro sería el"," ",u.jsx("span",{className:"font-sans font-medium",children:bs(bB(r))})]})]})]})]})})}};return u.jsx(ec,{open:!0,onOpenChange:n,children:u.jsxs(ja,{children:[u.jsx(La,{children:u.jsx(Vu,{children:"Pausar suscripción"})}),p?.status==="OK"?u.jsxs("p",{className:"text-center text-sm text-primary font-semibold",children:["✅ Tu nueva fecha de envío es el"," ",u.jsx("strong",{className:"font-sans",children:bs(e)})]}):u.jsx("div",{className:"grid gap-4 pt-4",children:v()}),t&&u.jsx("p",{className:"text-center text-sm text-primary font-semibold",children:"🔔 Tienes una orden activa. El cambio que hagas aplicará para tus siguientes envíos."}),u.jsxs(tc,{className:"gap-4 pt-2 md:gap-2",children:[u.jsx(tt,{type:"button",variant:"secondary",onClick:n,disabled:a.isPending,children:"Cerrar"}),p?.status!=="OK"&&u.jsx(tt,{type:"submit",disabled:o,onClick:d,children:a.isPending?"Guardando...":"Guardar cambio"})]})]})})},IKe=({hasActiveOrder:t,deliveryDate:e,nextDeliveryDate:n,onClose:r})=>{const s=SX(),i=()=>{s.mutate({delivery_date:n})},o=s.data?.data,a=()=>s.isError?u.jsx(Hn,{title:"No se pudo cambiar el dia. Intenta de nuevo más tarde.",message:s.error.message,retry:i,error:s.error}):u.jsxs("div",{className:"grid grid-cols-1 gap-4",children:[u.jsxs("p",{children:["Tu siguiente envío es el"," ",u.jsx("strong",{className:"text-primary font-sans",children:bs(e)})]}),u.jsxs("p",{children:["¿Deseas saltarte este envío y recibir tu siguiente envío el"," ",u.jsxs("strong",{className:"text-primary font-sans",children:[bs(n),"?"]})]})]});return u.jsx(ec,{open:!0,onOpenChange:r,children:u.jsxs(ja,{children:[u.jsx(La,{children:u.jsx(Vu,{children:"Saltar siguiente envío"})}),o?.status==="OK"?u.jsxs("p",{className:"text-center text-sm font-semibold pt-4",children:["✅ Tu nueva fecha de envío es el"," ",u.jsx("strong",{className:"text-primary ",children:bs(e)}),"."]}):u.jsx("div",{className:"grid gap-4 pt-4",children:a()}),t&&u.jsx("p",{className:"text-center text-sm text-primary font-semibold",children:"🔔 Tienes una orden activa. El cambio que hagas aplicará para tus siguientes envíos."}),u.jsxs(tc,{className:"gap-4 pt-2 md:gap-2",children:[u.jsx(tt,{type:"button",variant:"secondary",onClick:r,disabled:s.isPending,children:"Cerrar"}),o?.status!=="OK"&&u.jsx(tt,{type:"submit",onClick:i,disabled:s.isPending,children:s.isPending?"Guardando...":"Aceptar cambio"})]})]})})},PKe=({isOpen:t,onClose:e,onDeleteSubscription:n,onPausedSubscription:r})=>u.jsx(ec,{open:t,onOpenChange:e,children:u.jsxs(ja,{children:[u.jsx(La,{children:u.jsx(Vu,{children:"Cambiar frecuencia de envío"})}),u.jsx(tt,{className:"mx-10",variant:"default",type:"button",onClick:r,children:"Pausar tu suscripción"}),u.jsx(tt,{className:"mx-10",variant:"destructive",type:"button",onClick:n,children:"Terminar tu suscripción"})]})}),RKe=()=>{Bm();const[t,e]=_.useState(),{data:n,isLoading:r,isError:s,error:i,refetch:o}=W_e(),a=n?.data,c=()=>
3536{if(a)return a.subscription_status!=="ACTIVE"?u.jsx("div",{className:"text-sm",children:u.jsxs("p",{className:"pt-4",children:["⚠️ Tu suscripción se encuentra",a.subscription_status==="PAUSED"?" pausada ":" desactivada "," ","y ningún cobro será generado hasta que actives de nuevo tu suscripción. Si deseas reactivarla"," ",u.jsx("a",{href:"https://wa.me/56971295665",className:"underline",children:"comunícate con nosotros"}),"."]})}):u.jsxs("div",{className:"text-sm",children:[u.jsx($n,{variant:"simple",title:"Tipo",content:u.jsx("p",{children:a.subscription_name})}),u.jsx($n,{variant:"simple",title:"Frecuencia",content:u.jsx("p",{children:a.shipping_frecuency==="WEEKLY"?"Semanal":"Quincenal"})}),u.jsx($n,{variant:"simple",title:"Siguiente envío",content:u.jsx("button",{onClick:()=>e("CHANGE_DAY"),className:"text-left w-full",type:"button",children:bs(a.next_delivery_date)})}),u.jsx($n,{variant:"simple",title:"Siguiente cobro",content:u.jsx("p",{children:bs(a.next_payment_datetime)})}),d&&u.jsxs("p",{className:"pt-4",children:["🔔 Tienes una orden ya creada por lo que los cambios que realices NO se verán reflejados en tu orden."," ",u.jsx("a",{href:"https://wa.me/56971295665",className:"underline",children:"Si necesitas hacer un cambio en tu orden comunícate con nosotros"})]})]})},d=a?.order!=null,p=Jr(),m=()=>{p({to:"/user/shipping/edit"})},v=()=>{if(r)return u.jsx(er,{message:"Buscando opciones para tu suscripción..."});if(s)return u.jsx(Hn,{title:"No se pudo obtener la información de las suscripciones.",message:i.message,retry:o,error:i});if(a){const w={CHANGE_SUBSCRIPTION:{isDisabled:a.subscription_status!=="ACTIVE"},CHANGE_FRECUENCY:{isDisabled:a.subscription_status!=="ACTIVE"},CHANGE_DAY:{isDisabled:a.subscription_status!=="ACTIVE"},PAUSE_SUBSCRIPTION:{isDisabled:a.subscription_status!=="ACTIVE"},SKIP_NEXT_DELIVERY:{isDisabled:a.subscription_status!=="ACTIVE"||d}};return u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"border rounded-md p-4 bg-primary/10 border-primary",children:[u.jsx("p",{className:"text-base font-medium",children:"Tu suscripción actual"}),c()]}),u.jsx($f,{children:u.jsxs(Ff,{className:"pt-6",children:[u.jsx("p",{className:"text-base font-semibold",children:"Acciones"}),u.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[u.jsxs("button",{type:"button",disabled:w.CHANGE_SUBSCRIPTION.isDisabled,className:ve("flex-1 text-xs border rounded-md p-4 flex flex-col items-center gap-2 hover:bg-orange-500/10",w.CHANGE_SUBSCRIPTION.isDisabled&&"opacity-40 hover:bg-white"),onClick:()=>e("CHANGE_SUBSCRIPTION"),children:[u.jsx("span",{className:"text-3xl",children:"📦"}),u.jsx("span",{className:"font-medium",children:"Cambiar tipo de caja"})]}),u.jsxs("button",{type:"button",disabled:w.CHANGE_FRECUENCY.isDisabled,className:ve("flex-1 text-xs border rounded-md p-4 flex flex-col items-center gap-2 hover:bg-orange-500/10",w.CHANGE_FRECUENCY.isDisabled&&"opacity-40 hover:bg-white"),onClick:()=>e("CHANGE_FRECUENCY"),children:[u.jsx("span",{className:"text-3xl",children:"🗓️"}),u.jsx("span",{className:"font-medium",children:"Cambiar frecuencia de envío"})]}),u.jsxs("button",{type:"button",disabled:w.CHANGE_DAY.isDisabled,className:ve("flex-1 text-xs border rounded-md p-4 flex flex-col items-center gap-2 hover:bg-orange-500/10",w.CHANGE_DAY.isDisabled&&"opacity-40 hover:bg-white"),onClick:()=>e("CHANGE_DAY"),children:[u.jsx("span",{className:"text-3xl",children:"🚚"}),u.jsx("span",{className:"font-medium",children:"Cambiar día de envío"})]}),u.jsxs("button",{type:"button",disabled:w.SKIP_NEXT_DELIVERY.isDisabled,className:ve("flex-1 text-xs border rounded-md p-4 flex flex-col items-center gap-2 hover:bg-orange-500/10",w.SKIP_NEXT_DELIVERY.isDisabled&&"opacity-40 hover:bg-white"),onClick:()=>e("SKIP_NEXT_DELIVERY"),children:[u.jsx("span",{className:"text-3xl",children:"➡️"}),u.jsx("span",{className:"font-medium",children:"Saltar siguiente envío"})]}),u.jsxs("button",{type:"button",disabled:w.PAUSE_SUBSCRIPTION.isDisabled,className:ve("flex-1 text-xs border rounded-md p-4 flex flex-col items-center gap-2 hover:bg-orange-500/10",w.PAUSE_SUBSCRIPTION.isDisabled&&"opacity-40 hover:bg-white"),onClick:()=>e("STOP_OR_PAUSE"),children:[u.jsx("span",{className:"text-3xl",children:"⏸️"}),u.jsx("span",{className:"font-medium",children:"Suspender suscripción"})]}),u.jsx(Bs,{to:"/user/payment-methods",children:u.jsxs("div",{className:"flex-1 text-xs border rounded-md p-4 flex flex-col items-center gap-2 hover:bg-orange-500/10",children:[u.jsx("span",{className:"text-3xl",children:"💳 "}),u.jsxs("span",{className:"font-medium",children:["Métodos de pago"," "]})]})})]})]})}),t==="CHANGE_SUBSCRIPTION"&&u.jsx(TKe,{hasActiveOrder:d,onClose:()=>e(void 0),activeSubscription:a.subscription_id}),t==="CHANGE_FRECUENCY"&&u.jsx(SKe,{hasActiveOrder:d,onClose:()=>e(void 0),activeFrecuency:a.shipping_frecuency}),t==="CHANGE_DAY"&&u.jsx(CKe,{hasActiveOrder:d,onClose:()=>e(void 0),deliveryDate:a.next_delivery_date}),t==="PAUSE_SUBSCRIPTION"&&u.jsx(AKe,{hasActiveOrder:d,onClose:()=>e(void 0),deliveryDate:a.next_delivery_date}),t==="CANCEL_SUBSCRIPTION"&&u.jsx(fKe,{open:t==="CANCEL_SUBSCRIPTION",onClose:()=>e(void 0),onPausar:()=>e("PAUSE_SUBSCRIPTION"),onChange:()=>m()}),t==="STOP_OR_PAUSE"&&u.jsx(PKe,{isOpen:t==="STOP_OR_PAUSE",onClose:()=>e(void 0),onDeleteSubscription:()=>e("CANCEL_SUBSCRIPTION"),onPausedSubscription:()=>e("PAUSE_SUBSCRIPTION")}),t==="SKIP_NEXT_DELIVERY"&&u.jsx(IKe,{hasActiveOrder:d,deliveryDate:a.next_delivery_date,nextDeliveryDate:a.next_after_next_delivery_date,onClose:()=>e(void 0)})]})}};return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"text-lg font-medium",children:"Editar tu suscripción"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Puedes camb
3536iar tu tipo de caja, la frecuencia y el día de envío."})]}),u.jsx(Bi,{}),u.jsx("div",{className:"space-y-4",children:v()})]})},NKe=Et("/user/subscription/edit")({component:RKe,beforeLoad:()=>{document.title="Maifud - Editar suscripción"}}),MKe=Et("/user/shipping/edit")({component:NWe,beforeLoad:()=>{document.title="Maifud - Cambiar método de entrega"}}),kKe=Et("/logout/")(),DKe=Et("/login/")(),OKe=Et("/register_new/beta")(),$Ke=Et("/(partnerships)/pluxee")(),FKe=Et("/(partnerships)/cyber")(),jKe=Et("/(partnerships)/activaciones")(),LKe=Et("/user/subscription/")(),zKe=Et("/user/store/")(),VKe=Et("/user/referral/")(),BKe=Et("/user/payment-methods/")(),HKe=Et("/user/orders/")(),UKe=Et("/user/home/")(),WKe=Et("/user/discounts/")(),qKe=Et("/user/account/")(),GKe=Et("/(partnerships)/tarjeta-mi-vita/")(),KKe=Et("/(partnerships)/lo-barnechea/")(),YKe=Et("/(partnerships)/fen-uchile/")(),QKe=Et("/(partnerships)/entel/")(),XKe=Et("/(partnerships)/energy-club/")(),ZKe=Et("/(partnerships)/caja-los-andes/")(),JKe=Et("/(information)/terms-and-conditions/")(),eYe=Et("/(information)/privacy-policy/")(),tYe=Et("/user/subscription/box/")(),nYe=Et("/user/subscription/box/edit")(),Js=lqe.update({id:"/user",path:"/user",getParentRoute:()=>yn}),rYe=cqe.update({id:"/successPage",path:"/successPage",getParentRoute:()=>yn}),Lf=dqe.update({id:"/register",path:"/register",getParentRoute:()=>yn}),sYe=pqe.update({id:"/rcheckout",path:"/rcheckout",getParentRoute:()=>yn}),iYe=gqe.update({id:"/pr",path:"/pr",getParentRoute:()=>yn}),oYe=vqe.update({id:"/plan",path:"/plan",getParentRoute:()=>yn}),aYe=yqe.update({id:"/menu",path:"/menu",getParentRoute:()=>yn}),lYe=xqe.update({id:"/loginPage",path:"/loginPage",getParentRoute:()=>yn}),cYe=Eqe.update({id:"/li",path:"/li",getParentRoute:()=>yn}),uYe=bqe.update({id:"/home",path:"/home",getParentRoute:()=>yn}),dYe=Cqe.update({id:"/forgot-password",path:"/forgot-password",getParentRoute:()=>yn}),fYe=Tqe.update({id:"/AIAssistant",path:"/AIAssistant",getParentRoute:()=>yn}),hYe=Aqe.update({id:"/",path:"/",getParentRoute:()=>yn}),pYe=kKe.update({id:"/logout/",path:"/logout/",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./index.lazy.CzG2LRtA.js"),[]).then(t=>t.Route)),mYe=DKe.update({id:"/login/",path:"/login/",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./index.lazy.Cy-DczXn.js"),[]).then(t=>t.Route)),gYe=OKe.update({id:"/register_new/beta",path:"/register_new/beta",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./beta.lazy.CsS0AMNM.js"),[]).then(t=>t.Route)),vYe=$Ke.update({id:"/(partnerships)/pluxee",path:"/pluxee",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./pluxee.lazy.BFzhFxzp.js"),__vite__mapDeps([0,1,2])).then(t=>t.Route)),yYe=FKe.update({id:"/(partnerships)/cyber",path:"/cyber",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./cyber.lazy.HVruCMKe.js"),[]).then(t=>t.Route)),xYe=jKe.update({id:"/(partnerships)/activaciones",path:"/activaciones",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./activaciones.lazy.BK20A_LM.js"),__vite__mapDeps([3,1])).then(t=>t.Route)),wYe=Iqe.update({id:"/preferences",path:"/preferences",getParentRoute:()=>Js}),_Ye=Pqe.update({id:"/user-data",path:"/user-data",getParentRoute:()=>Lf}),EYe=Rqe.update({id:"/success",path:"/success",getParentRoute:()=>Lf}),bYe=Mqe.update({id:"/subscriptions",path:"/subscriptions",getParentRoute:()=>Lf}),SYe=Dqe.update({id:"/shipping-methods",path:"/shipping-methods",getParentRoute:()=>Lf}),CYe=Oqe.update({id:"/shipping-frecuency",path:"/shipping-frecuency",getParentRoute:()=>Lf}),TYe=$qe.update({id:"/confirmation",path:"/confirmation",getParentRoute:()=>Lf}),AYe=Lqe.update({id:"/r/$referralCode",path:"/r/$referralCode",getParentRoute:()=>yn}),IYe=LKe.update({id:"/subscription/",path:"/subscription/",getParentRoute:()=>Js}).lazy(()=>Fn(()=>import("./index.lazy.CZxJvBRf.js"),[]).then(t=>t.Route)),PYe=zKe.update({id:"/store/",path:"/store/",getParentRoute:()=>Js}).lazy(()=>Fn(()=>import("./index.lazy.Bxk4kH4C.js"),__vite__mapDeps([4,5,6,7])).then(t=>t.Route)),RYe=VKe.update({id:"/referral/",path:"/referral/",getParentRoute:()=>Js}).lazy(()=>Fn(()=>import("./index.lazy.wWzJjBE1.js"),[]).then(t=>t.Route)),NYe=BKe.update({id:"/payment-methods/",path:"/payment-methods/",getParentRoute:()=>Js}).lazy(()=>Fn(()=>import("./index.lazy.CPI-cYKJ.js"),__vite__mapDeps([8,6,5])).then(t=>t.Route)),MYe=HKe.update({id:"/orders/",path:"/orders/",getParentRoute:()=>Js}).lazy(()=>Fn(()=>import("./index.lazy.BumZco7p.js"),__vite__mapDeps([9,10,11])).then(t=>t.Route)),kYe=UKe.update({id:"/home/",path:"/home/",getParentRoute:()=>Js}).lazy(()=>Fn(()=>import("./index.lazy.BdN9MOJM.js"),__vite__mapDeps([12,13,14,10,11,7])).then(t=>t.Route)),DYe=WKe.update({id:"/discounts/",path:"/discounts/",getParentRoute:()=>Js}).lazy(()=>Fn(()=>import("./index.lazy.C5e075sN.js"),[]).then(t=>t.Route)),OYe=qKe.update({id:"/account/",path:"/account/",getParentRoute:()=>Js}).lazy(()=>Fn(()=>import("./index.lazy.ggjAqxEF.js"),[]).then(t=>t.Route)),$Ye=GKe.update({id:"/(partnerships)/tarjeta-mi-vita/",path:"/tarjeta-mi-vita/",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./index.lazy.U2JxYRbB.js"),__vite__mapDeps([15,2])).then(t=>t.Route)),FYe=KKe.update({id:"/(partnerships)/lo-barnechea/",path:"/lo-barnechea/",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./index.lazy.vmc4kQbu.js"),__vite__mapDeps([16,2])).then(t=>t.Route)),jYe=YKe.update({id:"/(partnerships)/fen-uchile/",path:"/fen-uchile/",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./index.lazy.AKUUXJy1.js"),[]).then(t=>t.Route)),LYe=QKe.update({id:"/(partnerships)/entel/",path:"/entel/",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./index.lazy.jLhqtZoL.js"),[]).then(t=>t.Route)),zYe=XKe.update({id:"/(partnerships)/energy-club/",path:"/energy-club/",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./index.lazy.YaJHaKR6.js"),[]).then(t=>t.Route)),VYe=ZKe.update({id:"/(partnerships)/caja-los-andes/",path:"/caja-los-andes/",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./index.lazy.ByBHC9qu.js"),__vite__mapDeps([17,2])).then(t=>t.Route)),BYe=JKe.update({id:"/(information)/terms-and-conditions/",path:"/terms-and-conditions/",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./index.lazy.CcRCOfX_.js"),[]).then(t=>t.Route)),HYe=eYe.update({id:"/(information)/privacy-policy/",path:"/privacy-policy/",getParentRoute:()=>yn}).lazy(()=>Fn(()=>import("./index.lazy.D39sNphB.js"),[]).then(t=>t.Route)),UYe=NKe.update({id:"/subscription/edit",path:"/subscription/edit",getParentRoute:()=>Js}),WYe=MKe.update({id:"/shipping/edit",path:"/shipping/edit",getParentRoute:()=>Js}),qYe=tYe.update({id:"/subscription/box/",path:"/subscription/box/",getParentRoute:()=>Js}).lazy(()=>Fn(()=>import("./index.lazy.DMr73ldz.js"),__vite__mapDeps([18,13,11,14,19])).then(t=>t.Route)),GYe=nYe.update({id:"/subscription/box/edit",path:"/subscription/box/edit",getParentRoute:()=>Js}).lazy(()=>Fn(()=>import("./edit.lazy.D2Azw_yc.js"),__vite__mapDeps([20,13,11,19,6])).then(t=>t.Route)),KYe={RegisterConfirmationRoute:TYe,RegisterShippingFrecuencyRoute:CYe,RegisterShippingMethodsRoute:SYe,RegisterSubscriptionsRoute:bYe,RegisterSuccessRoute:EYe,RegisterUserDataRoute:_Ye},YYe=Lf._addFileChildren(KYe),QYe={UserPreferencesRoute:wYe,UserShippingEditRoute:WYe,UserSubscriptionEditRoute:UYe,UserAccountIndexLazyRoute:OYe,UserDiscountsIndexLazyRoute:DYe,UserHomeIndexLazyRoute:kYe,UserOrdersIndexLazyRoute:MYe,UserPaymentMethodsIndexLazyRoute:NYe,UserReferralIndexLazyRoute:RYe,UserStoreIndexLazyRoute:PYe,UserSubscriptionIndexLazyRoute:IYe,UserSubscriptionBoxEditLazyRoute:GYe,UserSubscriptionBoxIndexLazyRoute:qYe},XYe=Js._addFileChildren(QYe),ZYe={IndexRoute:hYe,AIAssistantRoute:fYe,ForgotPasswordRoute:dYe,HomeRoute:uYe,LiRoute:cYe,LoginPageRoute:lYe,MenuRoute:aYe,PlanRoute:oYe,PrRoute:iYe,RcheckoutRoute:sYe,RegisterRoute:YYe,SuccessPageRoute:rYe,UserRoute:XYe,RReferralCodeRoute:AYe,partnershipsActivacionesLazyRoute:xYe,partnershipsCyberLazyRoute:yYe,partnershipsPluxeeLazyRoute:vYe,RegisternewBetaLazyRoute:gYe,LoginIndexLazyRoute:mYe,LogoutIndexLazyRoute:pYe,informationPrivacyPolicyIndexLazyRoute:HYe,informationTermsAndConditionsIndexLazyRoute:BYe,partnershipsCajaLosAndesIndexLazyRoute:VYe,partnershipsEnergyClubIndexLazyRoute:zYe,partnershipsEntelIndexLazyRoute:LYe,partnershipsFenUchileIndexLazyRoute:jYe,partnershipsLoBarnecheaIndexLazyRoute:FYe,partnershipsTarjetaMiVitaIndexLazyRoute:$Ye},JYe=yn._addFileChildren(ZYe)._addFileTypes(),CX=new gle({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1,staleTime:5*60*1e3}}}),yy=zce({routeTree:JYe,context:{queryClient:CX},defaultPreload:!1,defaultPreloadStaleTime:0}),h9="maifud-chunk-reload-attempted",eQe=t=>{const e=`${t.name} ${t.message}`;return e.includes("Failed to fetch dynamically imported module")||e.includes("Importing a module script failed")||e.includes("valid JavaScript MIME type")||e.includes("ChunkLoadError")},TX=t=>{const e="reason"in t?t.reason:t.error,n=e instanceof Error?e:new Error(String(e));eQe(n)&&(hu(n),sessionStorage.getItem(h9)!=="true"&&(sessionStorage.setItem(h9,"true"),window.location.reload()))};window.addEventListener("error",TX);window.addEventListener("unhandledrejection",TX);window.addEventListener("load",()=>{sessionStorage.removeItem(h9)});const f$=document.getElementById("root");f$?qce.createRoot(f$).render(u.jsx(h.StrictMode,{children:u.jsx(_le,{client:CX,children:u.jsx(O9e,{children:u.jsx(Hce,{router:yy})})})})):hu(new Error("No se encontró el elemento raíz con id 'root'"));window.location.host.includes("localhost")||(Uy.initialize("G-J0Q77MPKEF"),yy.history.subscribe(()=>{const t=yy.history.location.pathname;Uy.send({hitType:"pageview",page:t})}),Jae({dsn:"https://2ae7a4683bbf520cf9702ca91811d313@o4505331551895552.ingest.us.sentry.io/4506865890557952",integrations:[Fj(),zae({maskAllText:!1,blockAllMedia:!1}),ele(yy)],tracesSampleRate:1,tracePropagationTargets:["localhost"],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1}));export{Tze as $,Qn as A,tt as B,$f as C,rf as D,vn as E,wi as F,dr as G,Ht as H,Qr as I,Ge as J,gi as K,qm as L,It as M,Gy as N,vb as O,G3 as P,Hn as Q,AW as R,Ul as S,bs as T,Lq as U,zq as V,cy as W,uy as X,Vq as Y,n0 as Z,Sk as _,Zs as a,Cze as a$,k_e as a0,su as a1,Am as a2,Uo as a3,of as a4,mg as a5,Au as a6,E6 as a7,RWe as a8,c6 as a9,tc as aA,Bs as aB,iS as aC,wB as aD,afe as aE,oS as aF,HQe as aG,wQe as aH,oXe as aI,Ufe as aJ,cfe as aK,jve as aL,yK as aM,EK as aN,CK as aO,AK as aP,RXe as aQ,Bfe as aR,Cf as aS,eXe as aT,UQe as aU,WQe as aV,qQe as aW,W_e as aX,Bm as aY,uXe as aZ,Kde as a_,i3 as aa,yXe as ab,Xz as ac,pb as ad,mb as ae,Jz as af,gb as ag,F_e as ah,KQe as ai,KQ as aj,Bi as ak,L1 as al,Pn as am,bXe as an,EXe as ao,yze as ap,ec as aq,ja as ar,La as as,Vu as at,jq as au,Do as av,Ui as aw,Oo as ax,Wi as ay,qi as az,Ff as b,pXe as b0,mXe as b1,gXe as b2,Ebe as b3,C6 as b4,hu as b5,ZQe as b6,JQe as b7,dg as b8,fg as b9,vi as bA,Iu as bB,YQe as bC,GQe as bD,w5 as bE,ife as bF,tXe as bG,QQe as bH,nXe as bI,w9 as bJ,QQ as bK,IXe as bL,BWe as bM,HWe as bN,UWe as bO,Pf as bP,uQe as bQ,aQe as bR,lQe as bS,cQe as bT,hpe as ba,XQe as bb,y6 as bc,yQe as bd,sXe as be,iXe as bf,eqe as bg,rXe as bh,Bt as bi,Tm as bj,Gp as bk,Rf as bl,Cb as bm,gQe as bn,mQe as bo,pQe as bp,wb as bq,hQe as br,f3 as bs,CWe as bt,vfe as bu,xQe as bv,ZWe as bw,TXe as bx,lXe as by,cXe as bz,oQe as c,er as d,SXe as e,ve as f,ig as g,hfe as h,zi as i,u as j,FW as k,tC as l,qp as m,u2 as n,wn as o,$u as p,aXe as q,_ as r,st as s,xi as t,Jr as u,_i as v,cn as w,un as x,En as y,Ot as z};
3537//# sourceMappingURL=index.ORQGlHvZ.js.map

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.