PageSourceSearch

https://desirex.ai/assets/index-lN6KuZcC.js

js desirex.ai collected 2026-10-05 12:03:44 UTC 790,358 bytes, 347 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-BvposLGt.js","assets/categoryOptions-Bk2L4v6k.js","assets/Tooltip-lktENYwi.js","assets/tslib.es6-BmFWc0SK.js","assets/characterTags-b1cUkVST.js","assets/genderOptions-Cy9yeDZ6.js","assets/CharactersGrid-DKWThbCm.js","assets/CharacterCard-N9VaH9C0.js","assets/CreatorInfo-DBl-C3sC.js","assets/CharacterPhotoAlbumPreview-DYv2CGWI.js","assets/CharacterPhoto-0U9qaltx.js","assets/CustomToast-Cn1xChzD.js","assets/chevron-right-Dp-srL8x.js","assets/CharacterActionButton-DFbYmixe.js","assets/useConfirmationDialog-QY-FgYBI.js","assets/useFetchMoreOnBottomReached-vCGwuSso.js","assets/switch-CoYCSO9b.js","assets/use-resolve-button-type-BwUSmHKX.js","assets/TagCharacters-BBDlaIKR.js","assets/Email-Me0xwNha.js","assets/ProfileEdit-CCH7GsS7.js","assets/RadioGroup-I7oSzuh3.js","assets/PhotoUpload-fEY7EigF.js","assets/Tab-OgaAq7WP.js","assets/datetime-CMBTHNnf.js","assets/types-ZngOJMxR.js","assets/MyConversations-D25MQ8Zc.js","assets/v4-Dx2DXpiD.js","assets/image-BOR_ryfr.js","assets/MyCharacters-Di_mAOmR.js","assets/CreateCharacter-4tycyKcC.js","assets/CharacterForm-dSC8k61R.js","assets/EditCharacter-DkwvJSZN.js","assets/Favorites-Bygevg5J.js","assets/Subscribe-oq7feX4O.js","assets/Coins-DSkv-8yJ.js","assets/Faq-5FOggJp7.js","assets/Onboarding-oTOTxgaW.js","assets/UserProfile-DLrE7dvg.js","assets/CharacterProfile-C0Yu9Yng.js","assets/CharacterPhotoAlbum-B3tp3F7e.js","assets/CharactersModeration-BiXYceew.js"])))=>i.map(i=>d[i]);
2var r7=Object.defineProperty;var Ww=e=>{throw TypeError(e)};var i7=(e,t,n)=>t in e?r7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ln=(e,t,n)=>i7(e,typeof t!="symbol"?t+"":t,n),iv=(e,t,n)=>t.has(e)||Ww("Cannot "+n);var F=(e,t,n)=>(iv(e,t,"read from private field"),n?n.call(e):t.get(e)),Ke=(e,t,n)=>t.has(e)?Ww("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ae=(e,t,n,r)=>(iv(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),gt=(e,t,n)=>(iv(e,t,"access private method"),n);var Z1=(e,t,n,r)=>({set _(s){Ae(e,t,s,n)},get _(){return F(e,t,r)}});try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="426620b0-f0b6-4fb7-8b51-ded55697fce6",e._sentryDebugIdIdentifier="sentry-dbid-426620b0-f0b6-4fb7-8b51-ded55697fce6")}catch{}function s7(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const l=Object.getOwnPropertyDescriptor(r,s);l&&Object.defineProperty(e,s,l.get?l:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"6eed66fd8b9ed2804f6c2ac971c8eac393bc96fe"}}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerPolicy&&(l.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?l.credentials="include":s.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}})();var eg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function em(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sv={exports:{}},yh={},ov={exports:{}},_t={};/**
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 qw;
vendor: 4,402 bytes, line 10
10function o7(){if(qw)return _t;qw=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),_=Symbol.iterator;function E($){return $===null||typeof $!="object"?null:($=_&&$[_]||$["@@iterator"],typeof $=="function"?$:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,R={};function I($,re,Oe){this.props=$,this.context=re,this.refs=R,this.updater=Oe||x}I.prototype.isReactComponent={},I.prototype.setState=function($,re){if(typeof $!="object"&&typeof $!="function"&&$!=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,$,re,"setState")},I.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function L(){}L.prototype=I.prototype;function H($,re,Oe){this.props=$,this.context=re,this.refs=R,this.updater=Oe||x}var W=H.prototype=new L;W.constructor=H,b(W,I.prototype),W.isPureReactComponent=!0;var Q=Array.isArray,te=Object.prototype.hasOwnProperty,D={current:null},Z={key:!0,ref:!0,__self:!0,__source:!0};function ue($,re,Oe){var Fe,oe={},Le=null,ot=null;if(re!=null)for(Fe in re.ref!==void 0&&(ot=re.ref),re.key!==void 0&&(Le=""+re.key),re)te.call(re,Fe)&&!Z.hasOwnProperty(Fe)&&(oe[Fe]=re[Fe]);var et=arguments.length-2;if(et===1)oe.children=Oe;else if(1<et){for(var dt=Array(et),ln=0;ln<et;ln++)dt[ln]=arguments[ln+2];oe.children=dt}if($&&$.defaultProps)for(Fe in et=$.defaultProps,et)oe[Fe]===void 0&&(oe[Fe]=et[Fe]);return{$$typeof:e,type:$,key:Le,ref:ot,props:oe,_owner:D.current}}function X($,re){return{$$typeof:e,type:$.type,key:re,ref:$.ref,props:$.props,_owner:$._owner}}function ce($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function ye($){var re={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(Oe){return re[Oe]})}var de=/\/+/g;function xe($,re){return typeof $=="object"&&$!==null&&$.key!=null?ye(""+$.key):re.toString(36)}function Re($,re,Oe,Fe,oe){var Le=typeof $;(Le==="undefined"||Le==="boolean")&&($=null);var ot=!1;if($===null)ot=!0;else switch(Le){case"string":case"number":ot=!0;break;case"object":switch($.$$typeof){case e:case t:ot=!0}}if(ot)return ot=$,oe=oe(ot),$=Fe===""?"."+xe(ot,0):Fe,Q(oe)?(Oe="",$!=null&&(Oe=$.replace(de,"$&/")+"/"),Re(oe,re,Oe,"",function(ln){return ln})):oe!=null&&(ce(oe)&&(oe=X(oe,Oe+(!oe.key||ot&&ot.key===oe.key?"":(""+oe.key).replace(de,"$&/")+"/")+$)),re.push(oe)),1;if(ot=0,Fe=Fe===""?".":Fe+":",Q($))for(var et=0;et<$.length;et++){Le=$[et];var dt=Fe+xe(Le,et);ot+=Re(Le,re,Oe,dt,oe)}else if(dt=E($),typeof dt=="function")for($=dt.call($),et=0;!(Le=$.next()).done;)Le=Le.value,dt=Fe+xe(Le,et++),ot+=Re(Le,re,Oe,dt,oe);else if(Le==="object")throw re=String($),Error("Objects are not valid as a React child (found: "+(re==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":re)+"). If you meant to render a collection of children, use an array instead.");return ot}function We($,re,Oe){if($==null)return $;var Fe=[],oe=0;return Re($,Fe,"","",function(Le){return re.call(Oe,Le,oe++)}),Fe}function fe($){if($._status===-1){var re=$._result;re=re(),re.then(function(Oe){($._status===0||$._status===-1)&&($._status=1,$._result=Oe)},function(Oe){($._status===0||$._status===-1)&&($._status=2,$._result=Oe)}),$._status===-1&&($._status=0,$._result=re)}if($._status===1)return $._result.default;throw $._result}var Ie={current:null},ee={transition:null},ve={ReactCurrentDispatcher:Ie,ReactCurrentBatchConfig:ee,ReactCurrentOwner:D};function _e(){throw Error("act(...) is not supported in production builds of React.")}return _t.Children={map:We,forEach:function($,re,Oe){We($,function(){re.apply(this,arguments)},Oe)},count:function($){var re=0;return We($,function(){re++}),re},toArray:function($){return We($,function(re){return re})||[]},only:function($){if(!ce($))throw Error("React.Children.only expected to receive a single React element child.");return $}},_t.Component=I,_t.Fragment=n,_t.Profiler=s,_t.PureComponent=H,_t.StrictMode=r,_t.Suspense=p,_t.__SECRET_INT
vendor: 5,236 bytes, lines 10-26
10ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ve,_t.act=_e,_t.cloneElement=function($,re,Oe){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var Fe=b({},$.props),oe=$.key,Le=$.ref,ot=$._owner;if(re!=null){if(re.ref!==void 0&&(Le=re.ref,ot=D.current),re.key!==void 0&&(oe=""+re.key),$.type&&$.type.defaultProps)var et=$.type.defaultProps;for(dt in re)te.call(re,dt)&&!Z.hasOwnProperty(dt)&&(Fe[dt]=re[dt]===void 0&&et!==void 0?et[dt]:re[dt])}var dt=arguments.length-2;if(dt===1)Fe.children=Oe;else if(1<dt){et=Array(dt);for(var ln=0;ln<dt;ln++)et[ln]=arguments[ln+2];Fe.children=et}return{$$typeof:e,type:$.type,key:oe,ref:Le,props:Fe,_owner:ot}},_t.createContext=function($){return $={$$typeof:c,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:l,_context:$},$.Consumer=$},_t.createElement=ue,_t.createFactory=function($){var re=ue.bind(null,$);return re.type=$,re},_t.createRef=function(){return{current:null}},_t.forwardRef=function($){return{$$typeof:d,render:$}},_t.isValidElement=ce,_t.lazy=function($){return{$$typeof:v,_payload:{_status:-1,_result:$},_init:fe}},_t.memo=function($,re){return{$$typeof:g,type:$,compare:re===void 0?null:re}},_t.startTransition=function($){var re=ee.transition;ee.transition={};try{$()}finally{ee.transition=re}},_t.unstable_act=_e,_t.useCallback=function($,re){return Ie.current.useCallback($,re)},_t.useContext=function($){return Ie.current.useContext($)},_t.useDebugValue=function(){},_t.useDeferredValue=function($){return Ie.current.useDeferredValue($)},_t.useEffect=function($,re){return Ie.current.useEffect($,re)},_t.useId=function(){return Ie.current.useId()},_t.useImperativeHandle=function($,re,Oe){return Ie.current.useImperativeHandle($,re,Oe)},_t.useInsertionEffect=function($,re){return Ie.current.useInsertionEffect($,re)},_t.useLayoutEffect=function($,re){return Ie.current.useLayoutEffect($,re)},_t.useMemo=function($,re){return Ie.current.useMemo($,re)},_t.useReducer=function($,re,Oe){return Ie.current.useReducer($,re,Oe)},_t.useRef=function($){return Ie.current.useRef($)},_t.useState=function($){return Ie.current.useState($)},_t.useSyncExternalStore=function($,re,Oe){return Ie.current.useSyncExternalStore($,re,Oe)},_t.useTransition=function(){return Ie.current.useTransition()},_t.version="18.3.1",_t}var Vw;function tm(){return Vw||(Vw=1,ov.exports=o7()),ov.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 Gw;function a7(){if(Gw)return yh;Gw=1;var e=tm(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(d,p,g){var v,_={},E=null,x=null;g!==void 0&&(E=""+g),p.key!==void 0&&(E=""+p.key),p.ref!==void 0&&(x=p.ref);for(v in p)r.call(p,v)&&!l.hasOwnProperty(v)&&(_[v]=p[v]);if(d&&d.defaultProps)for(v in p=d.defaultProps,p)_[v]===void 0&&(_[v]=p[v]);return{$$typeof:t,type:d,key:E,ref:x,props:_,_owner:s.current}}return yh.Fragment=n,yh.jsx=c,yh.jsxs=c,yh}var Kw;function Y3(){return Kw||(Kw=1,sv.exports=a7()),sv.exports}var P=Y3(),tg={},av={exports:{}},ui={},lv={exports:{}},uv={};/**
19 * @license React
20 * scheduler.production.min.js
21 *
22 * Copyright (c) Facebook, Inc. and its affiliates.
23 *
24 * This source code is licensed under the MIT license found in the
25 * LICENSE file in the root directory of this source tree.
26 */var Yw;function l7(){return Yw||(Yw=1,function(e){function t(ee,ve){var _e=ee.length;ee.push(ve);e:for(;0<_e;){var $=_e-1>>>1,re=ee[$];if(0<s(re,ve))ee[$]=ve,ee[_e]=re,_e=$;else break e}}function n(ee){return ee.length===0?null:ee[0]}function r(ee){if(ee.length===0)return null;var ve=ee[0],_e=ee.pop();if(_e!==ve){ee[0]=_e;e:for(var $=0,re=ee.length,Oe=re>>>1;$<Oe;){var Fe=2*($+1)-1,oe=ee[Fe],Le=Fe+1,ot=ee[Le];if(0>s(oe,_e))Le<re&&0>s(ot,oe)?(ee[$]=ot,ee[Le]=_e,$=Le):(ee[$]=oe,ee[Fe]=_e,$=Fe);else if(Le<re&&0>s(ot,_e))ee[$]=ot,ee[Le]=_e,$=Le;else break e}}return ve}function s(ee,ve){var _e=ee.sortIndex-ve.sortIndex;return _e!==0?_e:ee.id-ve.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var p=[],g=[],v=1,_=null,E=3,x=!1,b=!1,R=!1,I=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function W(ee){for(var ve=n(g);ve!==null;){if(ve.callback===null)r(g);else if(ve.startTime<=ee)r(g),ve.sortIndex=ve.expirationTime,t(p,ve);else break;ve=n(g)}}function Q(ee){if(R=!1,W(ee),!b)if(n(p)!==null)b=!0,fe(te);else{var ve=n(g);ve!==null&&Ie(Q,ve.startTime-ee)}}function te(ee,ve){b=!1,R&&(R=!1,L(ue),ue=-1),x=!0;var _e=E;
vendor: 4,218 bytes, lines 26-34
26try{for(W(ve),_=n(p);_!==null&&(!(_.expirationTime>ve)||ee&&!ye());){var $=_.callback;if(typeof $=="function"){_.callback=null,E=_.priorityLevel;var re=$(_.expirationTime<=ve);ve=e.unstable_now(),typeof re=="function"?_.callback=re:_===n(p)&&r(p),W(ve)}else r(p);_=n(p)}if(_!==null)var Oe=!0;else{var Fe=n(g);Fe!==null&&Ie(Q,Fe.startTime-ve),Oe=!1}return Oe}finally{_=null,E=_e,x=!1}}var D=!1,Z=null,ue=-1,X=5,ce=-1;function ye(){return!(e.unstable_now()-ce<X)}function de(){if(Z!==null){var ee=e.unstable_now();ce=ee;var ve=!0;try{ve=Z(!0,ee)}finally{ve?xe():(D=!1,Z=null)}}else D=!1}var xe;if(typeof H=="function")xe=function(){H(de)};else if(typeof MessageChannel<"u"){var Re=new MessageChannel,We=Re.port2;Re.port1.onmessage=de,xe=function(){We.postMessage(null)}}else xe=function(){I(de,0)};function fe(ee){Z=ee,D||(D=!0,xe())}function Ie(ee,ve){ue=I(function(){ee(e.unstable_now())},ve)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ee){ee.callback=null},e.unstable_continueExecution=function(){b||x||(b=!0,fe(te))},e.unstable_forceFrameRate=function(ee){0>ee||125<ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<ee?Math.floor(1e3/ee):5},e.unstable_getCurrentPriorityLevel=function(){return E},e.unstable_getFirstCallbackNode=function(){return n(p)},e.unstable_next=function(ee){switch(E){case 1:case 2:case 3:var ve=3;break;default:ve=E}var _e=E;E=ve;try{return ee()}finally{E=_e}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ee,ve){switch(ee){case 1:case 2:case 3:case 4:case 5:break;default:ee=3}var _e=E;E=ee;try{return ve()}finally{E=_e}},e.unstable_scheduleCallback=function(ee,ve,_e){var $=e.unstable_now();switch(typeof _e=="object"&&_e!==null?(_e=_e.delay,_e=typeof _e=="number"&&0<_e?$+_e:$):_e=$,ee){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=_e+re,ee={id:v++,callback:ve,priorityLevel:ee,startTime:_e,expirationTime:re,sortIndex:-1},_e>$?(ee.sortIndex=_e,t(g,ee),n(p)===null&&ee===n(g)&&(R?(L(ue),ue=-1):R=!0,Ie(Q,_e-$))):(ee.sortIndex=re,t(p,ee),b||x||(b=!0,fe(te))),ee},e.unstable_shouldYield=ye,e.unstable_wrapCallback=function(ee){var ve=E;return function(){var _e=E;E=ve;try{return ee.apply(this,arguments)}finally{E=_e}}}}(uv)),uv}var Qw;function u7(){return Qw||(Qw=1,lv.exports=l7()),lv.exports}/**
27 * @license React
28 * react-dom.production.min.js
29 *
30 * Copyright (c) Facebook, Inc. and its affiliates.
31 *
32 * This source code is licensed under the MIT license found in the
33 * LICENSE file in the root directory of this source tree.
34 */var Xw;function c7(){if(Xw)return ui;Xw=1;var e=tm(),t=u7();function n(i){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+i,f=1;f<arguments.length;f++)o+="&args[]="+encodeURIComponent(arguments[f]);return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,s={};function l(i,o){c(i,o),c(i+"Capture",o)}function c(i,o){for(s[i]=o,i=0;i<o.length;i++)r.add(o[i])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,g=/^[: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]*$/,v={},_={};function E(i){return p.call(_,i)?!0:p.call(v,i)?!1:g.test(i)?_[i]=!0:(v[i]=!0,!1)}function x(i,o,f,h){if(f!==null&&f.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return h?!1:f!==null?!f.acceptsBooleans:(i=i.toLowerCase().slice(0,5),i!=="data-"&&i!=="aria-");default:return!1}}function b(i,o,f,h){if(o===null||typeof o>"u"||x(i,o,f,h))return!0;
vendor: 5,146 bytes, lines 34-35
34if(h)return!1;if(f!==null)switch(f.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function R(i,o,f,h,y,w,k){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=f,this.propertyName=i,this.type=o,this.sanitizeURL=w,this.removeEmptyString=k}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(i){I[i]=new R(i,0,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var o=i[0];I[o]=new R(o,1,!1,i[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){I[i]=new R(i,2,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){I[i]=new R(i,2,!1,i,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(i){I[i]=new R(i,3,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){I[i]=new R(i,3,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){I[i]=new R(i,4,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){I[i]=new R(i,6,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){I[i]=new R(i,5,!1,i.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function H(i){return i[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(i){var o=i.replace(L,H);I[o]=new R(o,1,!1,i,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(i){var o=i.replace(L,H);I[o]=new R(o,1,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var o=i.replace(L,H);I[o]=new R(o,1,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){I[i]=new R(i,1,!1,i.toLowerCase(),null,!1,!1)}),I.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){I[i]=new R(i,1,!1,i.toLowerCase(),null,!0,!0)});function W(i,o,f,h){var y=I.hasOwnProperty(o)?I[o]:null;(y!==null?y.type!==0:h||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(b(o,f,y,h)&&(f=null),h||y===null?E(o)&&(f===null?i.removeAttribute(o):i.setAttribute(o,""+f)):y.mustUseProperty?i[y.propertyName]=f===null?y.type===3?!1:"":f:(o=y.attributeName,h=y.attributeNamespace,f===null?i.removeAttribute(o):(y=y.type,f=y===3||y===4&&f===!0?"":""+f,h?i.setAttributeNS(h,o,f):i.setAttribute(o,f))))}var Q=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,te=Symbol.for("react.element"),D=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),ue=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),ye=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),We=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),Ie=Symbol.for("react.offscreen"),ee=Symbol.iterator;function ve(i){return i===null||typeof i!="object"?null:(i=ee&&i[ee]||i["@@iterator"],typeof i=="function"?i:null)}var _e=Object.assign,$;function re(i){if($===void 0)try{throw Error()}catch(f){var o=f.stack.trim().match(/\n( *(at )?)/);$=o&&o[1]||""}return`
35`+$+i}var Oe=!1;function Fe(i,o){if(!i||Oe)return"";Oe=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(J){var h=J}Reflect.construct(i,[],o)}else{try{o.call()}catch(J){h=J}i.call(o.prototype)}else{try{throw Error()}catch(J){h=J}i()}}
vendor: 8,472 bytes, lines 35-38
35catch(J){if(J&&h&&typeof J.stack=="string"){for(var y=J.stack.split(`
36`),w=h.stack.split(`
37`),k=y.length-1,N=w.length-1;1<=k&&0<=N&&y[k]!==w[N];)N--;for(;1<=k&&0<=N;k--,N--)if(y[k]!==w[N]){if(k!==1||N!==1)do if(k--,N--,0>N||y[k]!==w[N]){var j=`
38`+y[k].replace(" at new "," at ");return i.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",i.displayName)),j}while(1<=k&&0<=N);break}}}finally{Oe=!1,Error.prepareStackTrace=f}return(i=i?i.displayName||i.name:"")?re(i):""}function oe(i){switch(i.tag){case 5:return re(i.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("SuspenseList");case 0:case 2:case 15:return i=Fe(i.type,!1),i;case 11:return i=Fe(i.type.render,!1),i;case 1:return i=Fe(i.type,!0),i;default:return""}}function Le(i){if(i==null)return null;if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case Z:return"Fragment";case D:return"Portal";case X:return"Profiler";case ue:return"StrictMode";case xe:return"Suspense";case Re:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case ye:return(i.displayName||"Context")+".Consumer";case ce:return(i._context.displayName||"Context")+".Provider";case de:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case We:return o=i.displayName||null,o!==null?o:Le(i.type)||"Memo";case fe:o=i._payload,i=i._init;try{return Le(i(o))}catch{}}return null}function ot(i){var o=i.type;switch(i.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return i=o.render,i=i.displayName||i.name||"",o.displayName||(i!==""?"ForwardRef("+i+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Le(o);case 8:return o===ue?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function et(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function dt(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function ln(i){var o=dt(i)?"checked":"value",f=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),h=""+i[o];if(!i.hasOwnProperty(o)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var y=f.get,w=f.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return y.call(this)},set:function(k){h=""+k,w.call(this,k)}}),Object.defineProperty(i,o,{enumerable:f.enumerable}),{getValue:function(){return h},setValue:function(k){h=""+k},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function zn(i){i._valueTracker||(i._valueTracker=ln(i))}function Sn(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var f=o.getValue(),h="";return i&&(h=dt(i)?i.checked?"true":"false":i.value),i=h,i!==f?(o.setValue(i),!0):!1}function dn(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function At(i,o){var f=o.checked;return _e({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??i._wrapperState.initialChecked})}function Mn(i,o){var f=o.defaultValue==null?"":o.defaultValue,h=o.checked!=null?o.checked:o.defaultChecked;f=et(o.value!=null?o.value:f),i._wrapperState={initialChecked:h,initialValue:f,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function Mi(i,o){o=o.checked,o!=null&&W(i,"checked",o,!1)}function Dn(i,o){Mi(i,o);var f=et(o.value),h=o.type;if(f!=null)h==="number"?(f===0&&i.value===""||i.value!=f)&&(i.value=""+f):i.value!==""+f&&(i.value=""+f);else if(h==="submit"||h==="reset"){i.removeAttribute("value");return}o.hasOwnProperty("value")?us(i,o.type,f):o.hasOwnProperty("defaultValue")&&us(i,o.type,et(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(i.defaultChecked=!!o.defaultChecked)}function Di(i,o,f){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var h=o.type;if(!(h!=="submit"&&h!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+i._wrapperState.initialValue,f||o===i.value||(i.value=o),i.defaultValue=o}f=i.name,f!==""&&(i.name=""),i.defaultChecked=!!i._wrapperState.initialChecked,f!==""&&(i.name=f)}function us(i,o,f){(o!=="number"||dn(i.ownerDocument)!==i)&&(f==null?i.defaultValue=""+i._wrapperState.initialValue:i.defaultValue!==""+f&&(i.defaultValue=""+f))}var at=Array.isArray;function Mt(i,o,f,h){if(i=i.options,o){o={};for(var y=0;y<f.length;y++)o["$"+f[y]]=!0;for(f=0;f<i.length;f++)y=o.hasOwnProperty("$"+i[f].value),i[f].selected!==y&&(i[f].selected=y),y&&h&&(i[f].defaultSelected=!0)}else{for(f=""+et(f),o=null,y=0;y<i.length;y++){if(i[y].value===f){i[y].selected=!0,h&&(i[y].defaultSelected=!0);return}o!==null||i[y].disabled||(o=i[y])}o!==null&&(o.selected=!0)}}function B(i,o){if(o.dangerouslySetInnerHTML!=null)throw Error(n(91));return _e({},o,{value:void 0,defaultValue:void 0,children:""+i._wrapperState.initialValue})}function Ee(i,o){var f=o.value;if(f==null){if(f=o.children,o=o.defaultValue,f!=null){if(o!=null)throw Error(n(92));if(at(f)){if(1<f.length)throw Error(n(93));f=f[0]}o=f}o==null&&(o=""),f=o}i._wrapperState={initialValue:et(f)}}function ae(i,o){var f=et(o.value),h=et(o.defaultValue);f!=null&&(f=""+f,f!==i.value&&(i.value=f),o.defaultValue==null&&i.defaultValue!==f&&(i.defaultValue=f)),h!=null&&(i.defaultValue=""+h)}function Se(i){var o=i.textContent;o===i._wrapperState.initialValue&&o!==""&&o!==null&&(i.value=o)}function Ye(i){switch(i){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 st(i,o){return i==null||i==="http://www.w3.org/1999/xhtml"?Ye(o):i==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":i}var tt,In=function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,f,h,y){MSApp.execUnsafeLocalFunction(function(){return i(o,f,h,y)})}:i}(function(i,o){if(i.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in i)i.innerHTML=o;else{for(tt=tt||document.createElement("div"),tt.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=tt.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;o.firstChild;)i.appendChild(o.firstChild)}});function rr(i,o){if(o){var f=i.firstChild;if(f&&f===i.lastChild&&f.nodeType===3){f.nodeValue=o;return}}i.textContent=o}var ir={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},jt=["Webkit","ms","Moz","O"];Object.keys(ir).forEach(function(i){jt.forEach(function(o){o=o+i.charAt(0).toUpperCase()+i.substring(1),ir[o]=ir[i]})});function cs(i,o,f){return o==null||typeof o=="boolean"||o===""?"":f||typeof o!="number"||o===0||ir.hasOwnProperty(i)&&ir[i]?(""+o).trim():o+"px"}function pn(i,o){i=i.style;for(var f in o)if(o.hasOwnProperty(f)){var h=f.indexOf("--")===0,y=cs(f,o[f],h);f==="float"&&(f="cssFloat"),h?i.setProperty(f,y):i[f]=y}}var En=_e({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 gi(i,o){if(o){if(En[i]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(n(137,i));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(n(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(n(61))}if(o.style!=null&&typeof o.style!="object")throw Error(n(62))}}function Fi(i,o){if(i.indexOf("-")===-1)return typeof o.is=="str
38ing";switch(i){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 sr=null;function Vr(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ca=null,He=null,Pt=null;function or(i){if(i=Vn(i)){if(typeof Ca!="function")throw Error(n(280));var o=i.stateNode;o&&(o=Xc(o),Ca(i.stateNode,i.type,o))}}function Gr(i){He?Pt?Pt.push(i):Pt=[i]:He=i}function gr(){if(He){var i=He,o=Pt;if(Pt=He=null,or(i),o)for(i=0;i<o.length;i++)or(o[i])}}function xo(i,o){return i(o)}function xa(){}var ba=!1;function Hl(i,o,f){if(ba)return i(o,f);ba=!0;try{return xo(i,o,f)}finally{ba=!1,(He!==null||Pt!==null)&&(xa(),gr())}}function hn(i,o){var f=i.stateNode;if(f===null)return null;var h=Xc(f);if(h===null)return null;f=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(f&&typeof f!="function")throw Error(n(231,o,typeof f));return f}var yr=!1;if(d)try{var Bl={};Object.defineProperty(Bl,"passive",{get:function(){yr=!0}}),window.addEventListener("test",Bl,Bl),window.removeEventListener("test",Bl,Bl)}catch{yr=!1}function Kd(i,o,f,h,y,w,k,N,j){var J=Array.prototype.slice.call(arguments,3);try{o.apply(f,J)}catch(he){this.onError(he)}}var zl=!1,Sc=null,Ec=!1,Yd=null,ey={onError:function(i){zl=!0,Sc=i}};function ty(i,o,f,h,y,w,k,N,j){zl=!1,Sc=null,Kd.apply(ey,arguments)}function ny(i,o,f,h,y,w,k,N,j){if(ty.apply(this,arguments),zl){if(zl){var J=Sc;zl=!1,Sc=null}else throw Error(n(198));Ec||(Ec=!0,Yd=J)}}function bo(i){var o=i,f=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(f=o.return),i=o.return;while(i)}return o.tag===3?f:null}function Qd(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function bm(i){if(bo(i)!==i)throw Error(n(188))}function ry(i){var o=i.alternate;if(!o){if(o=bo(i),o===null)throw Error(n(188));return o!==i?null:i}for(var f=i,h=o;;){var y=f.return;if(y===null)break;var w=y.alternate;if(w===null){if(h=y.return,h!==null){f=h;continue}break}if(y.child===w.child){for(w=y.child;w;){if(w===f)return bm(y),i;if(w===h)return bm(y),o;w=w.sibling}throw Error(n(188))}if(f.return!==h.return)f=y,h=w;else{for(var k=!1,N=y.child;N;){if(N===f){k=!0,f=y,h=w;break}if(N===h){k=!0,h=y,f=w;break}N=N.sibling}if(!k){for(N=w.child;N;){if(N===f){k=!0,f=w,h=y;break}if(N===h){k=!0,h=w,f=y;break}N=N.sibling}if(!k)throw Error(n(189))}}if(f.alternate!==h)throw Error(n(190))}if(f.tag!==3)throw Error(n(188));return f.stateNode.current===f?i:o}function Tm(i){return i=ry(i),i!==null?km(i):null}function km(i){if(i.tag===5||i.tag===6)return i;for(i=i.child;i!==null;){var o=km(i);if(o!==null)return o;i=i.sibling}return null}var Rm=t.unstable_scheduleCallback,Im=t.unstable_cancelCallback,Cc=t.unstable_shouldYield,iy=t.unstable_requestPaint,Xt=t.unstable_now,sy=t.unstable_getCurrentPriorityLevel,Xd=t.unstable_ImmediatePriority,Om=t.unstable_UserBlockingPriority,Wl=t.unstable_NormalPriority,Am=t.unstable_LowPriority,Jd=t.unstable_IdlePriority,xc=null,$i=null;function oy(i){if($i&&typeof $i.onCommitFiberRoot=="function")try{$i.onCommitFiberRoot(xc,i,void 0,(i.current.flags&128)===128)}catch{}}var yi=Math.clz32?Math.clz32:Nm,Pm=Math.log,Lm=Math.LN2;function Nm(i){return i>>>=0,i===0?32:31-(Pm(i)/Lm|0)|0}var Ta=64,bc=4194304;function ka(i){switch(i&-i){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 i&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return i&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return i}}function To(i,o){var f=i.pendingLanes;if(f===0)return 0;var h=0,y=i.suspendedLanes,w=i.pingedLanes,k=f&268435455;if(k!==0){var N=k&~y;N!==0?h=ka(N):(w&=k,w!==0&&(h=ka(w)))}else k=f&~y,k!==0?h=ka(k):w!==0&&(h=ka(w));if(h===0)return 0;if(o!==0&&o!==h&&(o&y)===0&&(y=h&-h,w=o&-o,y>=w||y===16&&(w&4194240)!==0))return o;if((h&4)!==0&&(h|=f&16),o=i.entangledLanes,o!==0)for(i=i.entanglements,o&=h;0<o;)f=31-yi(o),y=1<<f,h|=i[f],o&=~y;return h}function Mm(i,o){switch(i){case 1:case 2:case 4:return o+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 o+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 ay(i,o){for(var f=i.suspendedLanes,h=i.pingedLanes,y=i.expirationTimes,w=i.pendingLanes;0<w;){var k=31-yi(w),N=1<<k,j=y[k];j===-1?((N&f)===0||(N&h)!==0)&&(y[k]=Mm(N,o)):j<=o&&(i.expiredLanes|=N),w&=~N}}function Tc(i){return i=i.pendingLanes&-1073741825,i!==0?i:i&1073741824?1073741824:0}function Zd(){var i=Ta;return Ta<<=1,(Ta&4194240)===0&&(Ta=64),i}function ql(i){for(var o=[],f=0;31>f;f++)o.push(i);return o}function Vl(i,o,f){i.pendingLanes|=o,o!==536870912&&(i.suspendedLanes=0,i.pingedLanes=0),i=i.eventTimes,o=31-yi(o),i[o]=f}function Dm(i,o){var f=i.pendingLanes&~o;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.expiredLanes&=o,i.mutableReadLanes&=o,i.entangledLanes&=o,o=i.entanglements;var h=i.eventTimes;for(i=i.expirationTimes;0<f;){var y=31-yi(f),w=1<<y;o[y]=0,h[y]=-1,i[y]=-1,f&=~w}}function Gl(i,o){var f=i.entangledLanes|=o;for(i=i.entanglements;f;){var h=31-yi(f),y=1<<h;y&o|i[h]&o&&(i[h]|=o),f&=~y}}var Lt=0;function ko(i){return i&=-i,1<i?4<i?(i&268435455)!==0?16:536870912:4:1}var ep,kc,Fm,tp,np,Rc=!1,Kl=[],Hs=null,Bs=null,zs=null,Ra=new Map,Yl=new Map,Ws=[],ly="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 $m(i,o){switch(i){case"focusin":case"focusout":Hs=null;break;case"dragenter":case"dragleave":Bs=null;break;case"mouseover":case"mouseout":zs=null;break;case"pointerover":case"pointerout":Ra.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yl.delete(o.pointerId)}}function Ro(i,o,f,h,y,w){return i===null||i.nativeEvent!==w?(i={blockedOn:o,domEventName:f,eventSystemFlags:h,nativeEvent:w,targetContainers:[y]},o!==null&&(o=Vn(o),o!==null&&kc(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),i)}function uy(i,o,f,h,y){switch(o){case"focusin":return Hs=Ro(Hs,i,o,f,h,y),!0;case"dragenter":return Bs=Ro(Bs,i,o,f,h,y),!0;case"mouseover":return zs=Ro(zs,i,o,f,h,y),!0;case"pointerover":var w=y.pointerId;return Ra.set(w,Ro(Ra.get(w)||null,i,o,f,h,y)),!0;case"gotpointercapture":return w=y.pointerId,Yl.set(w,Ro(Yl.get(w)||null,i,o,f,h,y)),!0}return!1}function jm(i){var o=Bi(i.target);if(o!==null){var f=bo(o);if(f!==null){if(o=f.tag,o===13){if(o=Qd(f),o!==null){i.blockedOn=o,np(i.priority,function(){Fm(f)});return}}else if(o===3&&f.stateNode.current.memoizedState.isDehydrated){i.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Ic(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var f=Pc(i.domEventName,i.eventSystemFlags,o[0],i.nativeEvent);if(f===null){f=i.nativeEvent;var h=new f.constructor(f.type,f);sr=h,f.target.dispatchEvent(h),sr=null}else return o=Vn(f),o!==null&&kc(o),i.blockedOn=f,!1;o.shift()}return!0}function Um(i,o,f){Ic(i)&&f.delete(o)}function cy(){Rc=!1,Hs!==null&&Ic(Hs)&&(Hs=null),Bs!==null&&Ic(Bs)&&(Bs=null),zs!==null&&Ic(zs)&&(zs=null),Ra.forEac
vendor: 5,895 bytes, line 38
38h(Um),Yl.forEach(Um)}function $t(i,o){i.blockedOn===o&&(i.blockedOn=null,Rc||(Rc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,cy)))}function Dt(i){function o(y){return $t(y,i)}if(0<Kl.length){$t(Kl[0],i);for(var f=1;f<Kl.length;f++){var h=Kl[f];h.blockedOn===i&&(h.blockedOn=null)}}for(Hs!==null&&$t(Hs,i),Bs!==null&&$t(Bs,i),zs!==null&&$t(zs,i),Ra.forEach(o),Yl.forEach(o),f=0;f<Ws.length;f++)h=Ws[f],h.blockedOn===i&&(h.blockedOn=null);for(;0<Ws.length&&(f=Ws[0],f.blockedOn===null);)jm(f),f.blockedOn===null&&Ws.shift()}var Ia=Q.ReactCurrentBatchConfig,Oc=!0;function fy(i,o,f,h){var y=Lt,w=Ia.transition;Ia.transition=null;try{Lt=1,rp(i,o,f,h)}finally{Lt=y,Ia.transition=w}}function dy(i,o,f,h){var y=Lt,w=Ia.transition;Ia.transition=null;try{Lt=4,rp(i,o,f,h)}finally{Lt=y,Ia.transition=w}}function rp(i,o,f,h){if(Oc){var y=Pc(i,o,f,h);if(y===null)wp(i,o,h,Ac,f),$m(i,h);else if(uy(y,i,o,f,h))h.stopPropagation();else if($m(i,h),o&4&&-1<ly.indexOf(i)){for(;y!==null;){var w=Vn(y);if(w!==null&&ep(w),w=Pc(i,o,f,h),w===null&&wp(i,o,h,Ac,f),w===y)break;y=w}y!==null&&h.stopPropagation()}else wp(i,o,h,null,f)}}var Ac=null;function Pc(i,o,f,h){if(Ac=null,i=Vr(h),i=Bi(i),i!==null)if(o=bo(i),o===null)i=null;else if(f=o.tag,f===13){if(i=Qd(o),i!==null)return i;i=null}else if(f===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null);return Ac=i,null}function Hm(i){switch(i){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(sy()){case Xd:return 1;case Om:return 4;case Wl:case Am:return 16;case Jd:return 536870912;default:return 16}default:return 16}}var Jt=null,Ql=null,ji=null;function ip(){if(ji)return ji;var i,o=Ql,f=o.length,h,y="value"in Jt?Jt.value:Jt.textContent,w=y.length;for(i=0;i<f&&o[i]===y[i];i++);var k=f-i;for(h=1;h<=k&&o[f-h]===y[w-h];h++);return ji=y.slice(i,1<h?1-h:void 0)}function Oa(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function ar(){return!0}function sp(){return!1}function vr(i){function o(f,h,y,w,k){this._reactName=f,this._targetInst=y,this.type=h,this.nativeEvent=w,this.target=k,this.currentTarget=null;for(var N in i)i.hasOwnProperty(N)&&(f=i[N],this[N]=f?f(w):w[N]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?ar:sp,this.isPropagationStopped=sp,this}return _e(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=ar)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=ar)},persist:function(){},isPersistent:ar}),o}var Io={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lc=vr(Io),Aa=_e({},Io,{view:0,detail:0}),Bm=vr(Aa),lr,op,Wn,Nc=_e({},Aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fp,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Wn&&(Wn&&i.type==="mousemove"?(lr=i.screenX-Wn.screenX,op=i.screenY-Wn.screenY):op=lr=0,Wn=i),lr)},movementY:function(i){return"movementY"in i?i.movementY:op}}),ap=vr(Nc),qs=_e({},Nc,{dataTransfer:0}),Mc=vr(qs),lp=_e({},Aa,{relatedTarget:0}),Wt=vr(lp),Vs=_e({},Io,{animationName:0,elapsedTime:0,pseudoElement:0}),up=vr(Vs),py=_e({},Io,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),cp=vr(py),hy=_e({},Io,{data:0}),zm=vr(hy),my={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wm={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"},Dc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pa(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=Dc[i])?!!o[i]:!1}function fp(){return Pa}var qm=_e({},Aa,{key:function(i){if(i.key){var o=my[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Oa(i),i===13?"Enter":String.fromCharCode(i)):i.type==="
38keydown"||i.type==="keyup"?Wm[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fp,charCode:function(i){return i.type==="keypress"?Oa(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Oa(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Vm=vr(qm),dp=_e({},Nc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fc=vr(dp),Gm=_e({},Aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fp}),gy=vr(Gm),pp=_e({},Io,{propertyName:0,elapsedTime:0,pseudoElement:0}),hp=vr(pp),yy=_e({},Nc,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Km=vr(yy),Ar=[9,13,27,32],Xl=d&&"CompositionEvent"in window,fs=null;d&&"documentMode"in document&&(fs=document.documentMode);var Ym=d&&"TextEvent"in window&&!fs,mp=d&&(!Xl||fs&&8<fs&&11>=fs),Qm=" ",Xm=!1;function Jm(i,o){switch(i){case"keyup":return Ar.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Zm(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var La=!1;function Na(i,o){switch(i){case"compositionend":return Zm(o);case"keypress":return o.which!==32?null:(Xm=!0,Qm);case"textInput":return i=o.data,i===Qm&&Xm?null:i;default:return null}}function vy(i,o){if(La)return i==="compositionend"||!Xl&&Jm(i,o)?(i=ip(),ji=Ql=Jt=null,La=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return mp&&o.locale!=="ko"?null:o.data;default:return null}}var _y={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 $c(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!_y[i.type]:o==="textarea"}function gp(i,o,f,h){Gr(h),o=Gc(o,"onChange"),0<o.length&&(f=new Lc("onChange","change",null,f,h),i.push({event:f,listeners:o}))}var Kr=null,Gs=null;function wy(i){o1(i,0)}function jc(i){var o=ut(i);if(Sn(o))return i}function Sy(i,o){if(i==="change")return o}var Oo=!1;if(d){var Pr;if(d){var Uc="oninput"in document;if(!Uc){var e1=document.createElement("div");e1.setAttribute("oninput","return;"),Uc=typeof e1.oninput=="function"}Pr=Uc}else Pr=!1;Oo=Pr&&(!document.documentMode||9<document.documentMode)}function t1(){Kr&&(Kr.detachEvent("onpropertychange",n1),Gs=Kr=null)}function n1(i){if(i.propertyName==="value"&&jc(Gs)){var o=[];gp(o,Gs,i,Vr(i)),Hl(wy,o)}}function Ey(i,o,f){i==="focusin"?(t1(),Kr=o,Gs=f,Kr.attachEvent("onpropertychange",n1)):i==="focusout"&&t1()}function Cy(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return jc(Gs)}function Ma(i,o){if(i==="click")return jc(o)}function q(i,o){if(i==="input"||i==="change")return jc(o)}function ie(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Y=typeof Object.is=="function"?Object.is:ie;function Te(i,o){if(Y(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var f=Object.keys(i),h=Object.keys(o);if(f.length!==h.length)return!1;for(h=0;h<f.length;h++){var y=f[h];if(!p.call(o,y)||!Y(i[y],o[y]))return!1}return!0}function nt(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function kt(i,o){var f=nt(i);i=0;for(var h;f;){if(f.nodeType===3){if(h=i+f.textContent.length,i<=o&&h>=o)return{node:f,offset:o-i};i=h}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=nt(f)}}function mn(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?mn(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function Ut(){for(var i=window,o=dn();o instanceof i.HTMLIFrameElement;){try{var f=typeof o.contentWindow.location.href=="string"}catch{f=!1}if(f)i=o.contentWindow;else break;o=dn(i.document)}return o}function Jl(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function xy(i){var o=Ut(),f=i.focusedElem,h=i.selectionRange;if(o!==f&&f&&f.ownerDocument&&mn(f.ownerDocument.documentElement,f)){if(h!==null&&Jl(f)){if(o=h.start,i=h.end,i===void 0&&(i=o),"selectionStart"in f)f.selectionStart=o,f.selectionEnd=Math.min(i,f.value.length);else if(i=(o=f.ownerDocument||document)&&o.defaultView||window,i.getSelection){i=i.getSelection();var y=f.textContent.length,w=Math.min(h.start,y);h=h.end===void 0?w:Math.min(h.end,y),!i.extend&&w>h&&(y=h,h=w,w=y),y=kt(f,w);var k=kt(f,h);y&&k&&(i.rangeCount!==1||i.anchorNode!==y.node||i.anchorOffset!==y.offset||i.focusNode!==k.node||i.focusOffset!==k.offset)&&(o=o.createRange(),o.setStart(y.node,y.offset),i.removeAllRanges(),w>h?(i.addRange(o),i.extend(k.node,k.offset)):(o.setEnd(k.node,k.offset),i.addRange(o)))}}for(o=[],i=f;i=i.parentNode;)i.nodeType===1&&o.push({element:i,left:i.scrollLeft,top:i.scrollTop});
vendor: 11,889 bytes, lines 38-39
38for(typeof f.focus=="function"&&f.focus(),f=0;f<o.length;f++)i=o[f],i.element.scrollLeft=i.left,i.element.scrollTop=i.top}}var Yr=d&&"documentMode"in document&&11>=document.documentMode,ds=null,yp=null,Ui=null,Da=!1;function Zl(i,o,f){var h=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Da||ds==null||ds!==dn(h)||(h=ds,"selectionStart"in h&&Jl(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Ui&&Te(Ui,h)||(Ui=h,h=Gc(yp,"onSelect"),0<h.length&&(o=new Lc("onSelect","select",null,o,f),i.push({event:o,listeners:h}),o.target=ds)))}function Rt(i,o){var f={};return f[i.toLowerCase()]=o.toLowerCase(),f["Webkit"+i]="webkit"+o,f["Moz"+i]="moz"+o,f}var Fa={animationend:Rt("Animation","AnimationEnd"),animationiteration:Rt("Animation","AnimationIteration"),animationstart:Rt("Animation","AnimationStart"),transitionend:Rt("Transition","TransitionEnd")},Hc={},eu={};d&&(eu=document.createElement("div").style,"AnimationEvent"in window||(delete Fa.animationend.animation,delete Fa.animationiteration.animation,delete Fa.animationstart.animation),"TransitionEvent"in window||delete Fa.transitionend.transition);function Bc(i){if(Hc[i])return Hc[i];if(!Fa[i])return i;var o=Fa[i],f;for(f in o)if(o.hasOwnProperty(f)&&f in eu)return Hc[i]=o[f];return i}var r1=Bc("animationend"),i1=Bc("animationiteration"),tu=Bc("animationstart"),ps=Bc("transitionend"),nu=new Map,vp="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 vi(i,o){nu.set(i,o),l(o,[i])}for(var zc=0;zc<vp.length;zc++){var Wc=vp[zc],qc=Wc.toLowerCase(),s1=Wc[0].toUpperCase()+Wc.slice(1);vi(qc,"on"+s1)}vi(r1,"onAnimationEnd"),vi(i1,"onAnimationIteration"),vi(tu,"onAnimationStart"),vi("dblclick","onDoubleClick"),vi("focusin","onFocus"),vi("focusout","onBlur"),vi(ps,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hs="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(" "),Ao=new Set("cancel close invalid load scroll toggle".split(" ").concat(hs));function ru(i,o,f){var h=i.type||"unknown-event";i.currentTarget=f,ny(h,o,void 0,i),i.currentTarget=null}function o1(i,o){o=(o&4)!==0;for(var f=0;f<i.length;f++){var h=i[f],y=h.event;h=h.listeners;e:{var w=void 0;if(o)for(var k=h.length-1;0<=k;k--){var N=h[k],j=N.instance,J=N.currentTarget;if(N=N.listener,j!==w&&y.isPropagationStopped())break e;ru(y,N,J),w=j}else for(k=0;k<h.length;k++){if(N=h[k],j=N.instance,J=N.currentTarget,N=N.listener,j!==w&&y.isPropagationStopped())break e;ru(y,N,J),w=j}}}if(Ec)throw i=Yd,Ec=!1,Yd=null,i}function Gt(i,o){var f=o[Qc];f===void 0&&(f=o[Qc]=new Set);var h=i+"__bubble";f.has(h)||(Vc(o,i,2,!1),f.add(h))}function _p(i,o,f){var h=0;o&&(h|=4),Vc(f,i,h,o)}var Po="_reactListening"+Math.random().toString(36).slice(2);function Ks(i){if(!i[Po]){i[Po]=!0,r.forEach(function(f){f!=="selectionchange"&&(Ao.has(f)||_p(f,!1,i),_p(f,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[Po]||(o[Po]=!0,_p("selectionchange",!1,o))}}function Vc(i,o,f,h){switch(Hm(o)){case 1:var y=fy;break;case 4:y=dy;break;default:y=rp}f=y.bind(null,o,f,i),y=void 0,!yr||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),h?y!==void 0?i.addEventListener(o,f,{capture:!0,passive:y}):i.addEventListener(o,f,!0):y!==void 0?i.addEventListener(o,f,{passive:y}):i.addEventListener(o,f,!1)}function wp(i,o,f,h,y){var w=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var k=h.tag;if(k===3||k===4){var N=h.stateNode.containerInfo;if(N===y||N.nodeType===8&&N.parentNode===y)break;if(k===4)for(k=h.return;k!==null;){var j=k.tag;if((j===3||j===4)&&(j=k.stateNode.containerInfo,j===y||j.nodeType===8&&j.parentNode===y))return;k=k.return}for(;N!==null;){if(k=Bi(N),k===null)return;if(j=k.tag,j===5||j===6){h=w=k;continue e}N=N.parentNode}}h=h.return}Hl(function(){var J=w,he=Vr(f),ge=[];e:{var pe=nu.get(i);if(pe!==void 0){var ke=Lc,Ne=i;switch(i){case"keypress":if(Oa(f)===0)break e;case"keydown":case"keyup":ke=Vm;break;case"focusin":Ne="focus",ke=Wt;break;case"focusout":Ne="blur",ke=Wt;break;case"beforeblur":case"afterblur":ke=Wt;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ke=ap;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ke=Mc;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ke=gy;break;case r1:case i1:case tu:ke=up;break;case ps:ke=hp;break;case"scroll":ke=Bm;break;case"wheel":ke=Km;break;case"copy":case"cut":case"paste":ke=cp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ke=Fc}var De=(o&4)!==0,cn=!De&&i==="scroll",G=De?pe!==null?pe+"Capture":null:pe;De=[];for(var z=J,K;z!==null;){K=z;var we=K.stateNode;if(K.tag===5&&we!==null&&(K=we,G!==null&&(we=hn(z,G),we!=null&&De.push($a(z,we,K)))),cn)break;z=z.return}0<De.length&&(pe=new ke(pe,Ne,null,f,he),ge.push({event:pe,listeners:De}))}}if((o&7)===0){e:{if(pe=i==="mouseover"||i==="pointerover",ke=i==="mouseout"||i==="pointerout",pe&&f!==sr&&(Ne=f.relatedTarget||f.fromElement)&&(Bi(Ne)||Ne[Lr]))break e;if((ke||pe)&&(pe=he.window===he?he:(pe=he.ownerDocument)?pe.defaultView||pe.parentWindow:window,ke?(Ne=f.relatedTarget||f.toElement,ke=J,Ne=Ne?Bi(Ne):null,Ne!==null&&(cn=bo(Ne),Ne!==cn||Ne.tag!==5&&Ne.tag!==6)&&(Ne=null)):(ke=null,Ne=J),ke!==Ne)){if(De=ap,we="onMouseLeave",G="onMouseEnter",z="mouse",(i==="pointerout"||i==="pointerover")&&(De=Fc,we="onPointerLeave",G="onPointerEnter",z="pointer"),cn=ke==null?pe:ut(ke),K=Ne==null?pe:ut(Ne),pe=new De(we,z+"leave",ke,f,he),pe.target=cn,pe.relatedTarget=K,we=null,Bi(he)===J&&(De=new De(G,z+"enter",Ne,f,he),De.target=K,De.relatedTarget=cn,we=De),cn=we,ke&&Ne)t:{for(De=ke,G=Ne,z=0,K=De;K;K=ja(K))z++;for(K=0,we=G;we;we=ja(we))K++;for(;0<z-K;)De=ja(De),z--;for(;0<K-z;)G=ja(G),K--;for(;z--;){if(De===G||G!==null&&De===G.alternate)break t;De=ja(De),G=ja(G)}De=null}else De=null;ke!==null&&gn(ge,pe,ke,De,!1),Ne!==null&&cn!==null&&gn(ge,cn,Ne,De,!0)}}e:{if(pe=J?ut(J):window,ke=pe.nodeName&&pe.nodeName.toLowerCase(),ke==="select"||ke==="input"&&pe.type==="file")var Ue=Sy;else if($c(pe))if(Oo)Ue=q;else{Ue=Cy;var Ve=Ey}else(ke=pe.nodeName)&&ke.toLowerCase()==="input"&&(pe.type==="checkbox"||pe.type==="radio")&&(Ue=Ma);if(Ue&&(Ue=Ue(i,J))){gp(ge,Ue,f,he);break e}Ve&&Ve(i,pe,J),i==="focusout"&&(Ve=pe._wrapperState)&&Ve.controlled&&pe.type==="number"&&us(pe,"number",pe.value)}switch(Ve=J?ut(J):window,i){case"focusin":($c(Ve)||Ve.contentEditable==="true")&&(ds=Ve,yp=J,Ui=null);break;case"focusout":Ui=yp=ds=null;break;case"mousedown":Da=!0;break;case"contextmenu":case"mouseup":case"dragend":Da=!1,Zl(ge,f,he);break;case"selectionchange":if(Yr)break;case"keydown":case"keyup":Zl(ge,f,he)}var qe;if(Xl)e:{switch(i){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else La?Jm(i,f)&&(Xe="onCompositionEnd"):i==="keydown"&&f.keyCode===229&&(Xe="onCompositionStart");Xe&&(mp&&f.locale!=="ko"&&(La||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&La&&(qe=ip()):(Jt=he,Ql="value"in Jt?Jt.value:Jt.textContent,La=!0)),Ve=Gc(J,Xe),0<Ve.length&&(Xe=new zm(Xe,i,null,f,he),ge.push({event:Xe,listeners:Ve}),qe?Xe.data=qe:(qe=Zm(f),qe!==null&&(Xe.data=qe)))),(qe=Ym?Na(i,f):vy(i,f))&&(J=Gc(J,"onBeforeInput"),0<J.length&&(he=new zm("onBeforeInput","beforeinput",null,f,he),ge.push({event:he,listeners:J}),he.data=qe))}o1(ge,o)})}function $a(i,o,f){return{instance:i,listener:o,currentTarget:f}}function Gc(i,o){for(var f=o+"Capture",h=[];i!==null;){var y=i,w=y.stateNode;y.tag===5&&w!==null&&(y=w,w=hn(i,f),w!=null&&h.unshift($a(i,w,y)),w=hn(i,o),w!=null&&h.push($a(i,w,y))),i=i.return}return h}function ja(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5);return i||null}function gn(i,o,f,h,y){for(var w=o._reactName,k=[];f!==null&&f!==h;){var N=f,j=N.alternate,J=N.stateNode;if(j!==null&&j===h)break;N.tag===5&&J!==null&&(N=J,y?(j=hn(f,w),j!=null&&k.unshift($a(f,j,N))):y||(j=hn(f,w),j!=null&&k.push($a(f,j,N)))),f=f.return}k.length!==0&&i.push({event:o,listeners:k})}var qn=/\r\n?/g,by=/\u0000|\uFFFD/g;function a1(i){return(typeof i=="string"?i:""+i).replace(qn,`
39`).replace(by,"")}function iu(i,o,f){if(o=a1(o),a1(i)!==o&&f)throw Error(n(425))}function Kc(){}var su=null,Lo=null;function ou(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Ys=typeof setTimeout=="function"?setTimeout:void 0,au=typeof clearTimeout=="function"?clearTimeout:void 0,Ua=typeof Promise=="function"?Promise:void 0,Yc=typeof queueMicrotask=="function"?queueMicrotask:typeof Ua<"u"?function(i){return Ua.resolve(null).then(i).catch(Ha)}:Ys;function Ha(i){setTimeout(function(){throw i})}function Sp(i,o){var f=o,h=0;do{var y=f.nextSibling;if(i.removeChild(f),y&&y.nodeType===8)if(f=y.data,f==="/$"){if(h===0){i.removeChild(y),Dt(o);return}h--}else f!=="$"&&f!=="$?"&&f!=="$!"||h++;f=y}while(f);Dt(o)}function Qs(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return i}function l1(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var f=i.data;if(f==="$"||f==="$!"||f==="$?"){if(o===0)return i;o--}else f==="/$"&&o++}i=i.previousSibling}return null}var Ba=Math.random().toString(36).slice(2),Hi="__reactFiber$"+Ba,Xs="__reactProps$"+Ba,Lr="__reactContainer$"+Ba,Qc="__reactEvents$"+Ba,O="__reactListeners$"+Ba,za="__reactHandles$"+Ba;function Bi(i){var o=i[Hi];if(o)return o;for(var f=i.parentNode;f;){if(o=f[Lr]||f[Hi]){if(f=o.alternate,o.child!==null||f!==null&&f.child!==null)for(i=l1(i);i!==null;){if(f=i[Hi])return f;i=l1(i)}return o}i=f,f=i.parentNode}return null}function Vn(i){return i=i[Hi]||i[Lr],!i||i.tag!==5&&i.tag!==6&&i.tag!==13&&i.tag!==3?null:i}function ut(i){if(i.tag===5||i.tag===6)return i.stateNode;throw Error(n(33))}function Xc(i){return i[Xs]||null}var Ep=[],Wa=-1;function _r(i){return{current:i}}function Kt(i){0>
vendor: 4,228 bytes, line 39
39Wa||(i.current=Ep[Wa],Ep[Wa]=null,Wa--)}function qt(i,o){Wa++,Ep[Wa]=i.current,i.current=o}var Js={},Gn=_r(Js),wr=_r(!1),ur=Js;function qa(i,o){var f=i.type.contextTypes;if(!f)return Js;var h=i.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===o)return h.__reactInternalMemoizedMaskedChildContext;var y={},w;for(w in f)y[w]=o[w];return h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=o,i.__reactInternalMemoizedMaskedChildContext=y),y}function Sr(i){return i=i.childContextTypes,i!=null}function Jc(){Kt(wr),Kt(Gn)}function u1(i,o,f){if(Gn.current!==Js)throw Error(n(168));qt(Gn,o),qt(wr,f)}function c1(i,o,f){var h=i.stateNode;if(o=o.childContextTypes,typeof h.getChildContext!="function")return f;h=h.getChildContext();for(var y in h)if(!(y in o))throw Error(n(108,ot(i)||"Unknown",y));return _e({},f,h)}function Qr(i){return i=(i=i.stateNode)&&i.__reactInternalMemoizedMergedChildContext||Js,ur=Gn.current,qt(Gn,i),qt(wr,wr.current),!0}function f1(i,o,f){var h=i.stateNode;if(!h)throw Error(n(169));f?(i=c1(i,o,ur),h.__reactInternalMemoizedMergedChildContext=i,Kt(wr),Kt(Gn),qt(Gn,i)):Kt(wr),qt(wr,f)}var ms=null,Zc=!1,Cp=!1;function d1(i){ms===null?ms=[i]:ms.push(i)}function No(i){Zc=!0,d1(i)}function Zs(){if(!Cp&&ms!==null){Cp=!0;var i=0,o=Lt;try{var f=ms;for(Lt=1;i<f.length;i++){var h=f[i];do h=h(!0);while(h!==null)}ms=null,Zc=!1}catch(y){throw ms!==null&&(ms=ms.slice(i+1)),Rm(Xd,Zs),y}finally{Lt=o,Cp=!1}}return null}var Va=[],Kn=0,ef=null,tf=0,Xr=[],Jr=0,Mo=null,zi=1,Wi="";function Do(i,o){Va[Kn++]=tf,Va[Kn++]=ef,ef=i,tf=o}function p1(i,o,f){Xr[Jr++]=zi,Xr[Jr++]=Wi,Xr[Jr++]=Mo,Mo=i;var h=zi;i=Wi;var y=32-yi(h)-1;h&=~(1<<y),f+=1;var w=32-yi(o)+y;if(30<w){var k=y-y%5;w=(h&(1<<k)-1).toString(32),h>>=k,y-=k,zi=1<<32-yi(o)+y|f<<y|h,Wi=w+i}else zi=1<<w|f<<y|h,Wi=i}function lu(i){i.return!==null&&(Do(i,1),p1(i,1,0))}function Fo(i){for(;i===ef;)ef=Va[--Kn],Va[Kn]=null,tf=Va[--Kn],Va[Kn]=null;for(;i===Mo;)Mo=Xr[--Jr],Xr[Jr]=null,Wi=Xr[--Jr],Xr[Jr]=null,zi=Xr[--Jr],Xr[Jr]=null}var Yn=null,Nr=null,Yt=!1,_i=null;function qi(i,o){var f=si(5,null,null,0);f.elementType="DELETED",f.stateNode=o,f.return=i,o=i.deletions,o===null?(i.deletions=[f],i.flags|=16):o.push(f)}function nf(i,o){switch(i.tag){case 5:var f=i.type;return o=o.nodeType!==1||f.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(i.stateNode=o,Yn=i,Nr=Qs(o.firstChild),!0):!1;case 6:return o=i.pendingProps===""||o.nodeType!==3?null:o,o!==null?(i.stateNode=o,Yn=i,Nr=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(f=Mo!==null?{id:zi,overflow:Wi}:null,i.memoizedState={dehydrated:o,treeContext:f,retryLane:1073741824},f=si(18,null,null,0),f.stateNode=o,f.return=i,i.child=f,Yn=i,Nr=null,!0):!1;default:return!1}}function gs(i){return(i.mode&1)!==0&&(i.flags&128)===0}function Er(i){if(Yt){var o=Nr;if(o){var f=o;if(!nf(i,o)){if(gs(i))throw Error(n(418));o=Qs(f.nextSibling);var h=Yn;o&&nf(i,o)?qi(h,f):(i.flags=i.flags&-4097|2,Yt=!1,Yn=i)}}else{if(gs(i))throw Error(n(418));i.flags=i.flags&-4097|2,Yt=!1,Yn=i}}}function h1(i){for(i=i.return;i!==null&&i.tag!==5&&i.tag!==3&&i.tag!==13;)i=i.return;Yn=i}function uu(i){if(i!==Yn)return!1;if(!Yt)return h1(i),Yt=!0,!1;var o;if((o=i.tag!==3)&&!(o=i.tag!==5)&&(o=i.type,o=o!=="head"&&o!=="body"&&!ou(i.type,i.memoizedProps)),o&&(o=Nr)){if(gs(i))throw xp(),Error(n(418));for(;o;)qi(i,o),o=Qs(o.nextSibling)}if(h1(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(n(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8){var f=i.data;if(f==="/$"){if(o===0){Nr=Qs(i.nextSibling);break e}o--}else f!=="$"&&f!=="$!"&&f!=="$?"||o++}i=i.nextSibling}Nr=null}}else Nr=Yn?Qs(i.stateNode.nextSibling):null;return!0}function xp(){for(var i=Nr;i;)i=Qs(i.nextSibling)}function Vi(){Nr=Yn=null,Yt=!1}function Gi(i){_i===null?_i=[i]:_i.push(i)}var m1=Q.ReactCurrentBatchConfig;function cu(i,o,f){if(i=f.ref,i!==null&&typeof i!="function"&&typeof i!="object"){if(f._owner){if(f=f._owner,f){if(f.tag!==1)throw Error(n(309));var h=f.stateNode}if(!h)throw Error(n(147,i));var y=h,w=""+i;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===w?o.ref:(o=function(k){var N=y.refs;k===null?delete N[w]:N[w]=k},o._stringRef=w,o)}
vendor: 4,609 bytes, line 39
39if(typeof i!="string")throw Error(n(284));if(!f._owner)throw Error(n(290,i))}return i}function $o(i,o){throw i=Object.prototype.toString.call(o),Error(n(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i))}function g1(i){var o=i._init;return o(i._payload)}function bp(i){function o(G,z){if(i){var K=G.deletions;K===null?(G.deletions=[z],G.flags|=16):K.push(z)}}function f(G,z){if(!i)return null;for(;z!==null;)o(G,z),z=z.sibling;return null}function h(G,z){for(G=new Map;z!==null;)z.key!==null?G.set(z.key,z):G.set(z.index,z),z=z.sibling;return G}function y(G,z){return G=Ti(G,z),G.index=0,G.sibling=null,G}function w(G,z,K){return G.index=K,i?(K=G.alternate,K!==null?(K=K.index,K<z?(G.flags|=2,z):K):(G.flags|=2,z)):(G.flags|=1048576,z)}function k(G){return i&&G.alternate===null&&(G.flags|=2),G}function N(G,z,K,we){return z===null||z.tag!==6?(z=fh(K,G.mode,we),z.return=G,z):(z=y(z,K),z.return=G,z)}function j(G,z,K,we){var Ue=K.type;return Ue===Z?he(G,z,K.props.children,we,K.key):z!==null&&(z.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===fe&&g1(Ue)===z.type)?(we=y(z,K.props),we.ref=cu(G,z,K),we.return=G,we):(we=$f(K.type,K.key,K.props,null,G.mode,we),we.ref=cu(G,z,K),we.return=G,we)}function J(G,z,K,we){return z===null||z.tag!==4||z.stateNode.containerInfo!==K.containerInfo||z.stateNode.implementation!==K.implementation?(z=dh(K,G.mode,we),z.return=G,z):(z=y(z,K.children||[]),z.return=G,z)}function he(G,z,K,we,Ue){return z===null||z.tag!==7?(z=Yo(K,G.mode,we,Ue),z.return=G,z):(z=y(z,K),z.return=G,z)}function ge(G,z,K){if(typeof z=="string"&&z!==""||typeof z=="number")return z=fh(""+z,G.mode,K),z.return=G,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case te:return K=$f(z.type,z.key,z.props,null,G.mode,K),K.ref=cu(G,null,z),K.return=G,K;case D:return z=dh(z,G.mode,K),z.return=G,z;case fe:var we=z._init;return ge(G,we(z._payload),K)}if(at(z)||ve(z))return z=Yo(z,G.mode,K,null),z.return=G,z;$o(G,z)}return null}function pe(G,z,K,we){var Ue=z!==null?z.key:null;if(typeof K=="string"&&K!==""||typeof K=="number")return Ue!==null?null:N(G,z,""+K,we);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case te:return K.key===Ue?j(G,z,K,we):null;case D:return K.key===Ue?J(G,z,K,we):null;case fe:return Ue=K._init,pe(G,z,Ue(K._payload),we)}if(at(K)||ve(K))return Ue!==null?null:he(G,z,K,we,null);$o(G,K)}return null}function ke(G,z,K,we,Ue){if(typeof we=="string"&&we!==""||typeof we=="number")return G=G.get(K)||null,N(z,G,""+we,Ue);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case te:return G=G.get(we.key===null?K:we.key)||null,j(z,G,we,Ue);case D:return G=G.get(we.key===null?K:we.key)||null,J(z,G,we,Ue);case fe:var Ve=we._init;return ke(G,z,K,Ve(we._payload),Ue)}if(at(we)||ve(we))return G=G.get(K)||null,he(z,G,we,Ue,null);$o(z,we)}return null}function Ne(G,z,K,we){for(var Ue=null,Ve=null,qe=z,Xe=z=0,Pn=null;qe!==null&&Xe<K.length;Xe++){qe.index>Xe?(Pn=qe,qe=null):Pn=qe.sibling;var It=pe(G,qe,K[Xe],we);if(It===null){qe===null&&(qe=Pn);break}i&&qe&&It.alternate===null&&o(G,qe),z=w(It,z,Xe),Ve===null?Ue=It:Ve.sibling=It,Ve=It,qe=Pn}if(Xe===K.length)return f(G,qe),Yt&&Do(G,Xe),Ue;if(qe===null){for(;Xe<K.length;Xe++)qe=ge(G,K[Xe],we),qe!==null&&(z=w(qe,z,Xe),Ve===null?Ue=qe:Ve.sibling=qe,Ve=qe);return Yt&&Do(G,Xe),Ue}for(qe=h(G,qe);Xe<K.length;Xe++)Pn=ke(qe,G,Xe,K[Xe],we),Pn!==null&&(i&&Pn.alternate!==null&&qe.delete(Pn.key===null?Xe:Pn.key),z=w(Pn,z,Xe),Ve===null?Ue=Pn:Ve.sibling=Pn,Ve=Pn);return i&&qe.forEach(function(fo){return o(G,fo)}),Yt&&Do(G,Xe),Ue}function De(G,z,K,we){var Ue=ve(K);if(typeof Ue!="function")throw Error(n(150));if(K=Ue.call(K),K==null)throw Error(n(151));for(var Ve=Ue=null,qe=z,Xe=z=0,Pn=null,It=K.next();qe!==null&&!It.done;Xe++,It=K.next()){qe.index>Xe?(Pn=qe,qe=null):Pn=qe.sibling;var fo=pe(G,qe,It.value,we);if(fo===null){qe===null&&(qe=Pn);break}i&&qe&&fo.alternate===null&&o(G,qe),z=w(fo,z,Xe),Ve===null?Ue=fo:Ve.sibling=fo,Ve=fo,qe=Pn}if(It.done)return f(G,qe),Yt&&Do(G,Xe),Ue;if(qe===null){for(;!It.done;Xe++,It=K.next())It=ge(G,It.value,we),It!==null&&(z=w(It,z,Xe),Ve===null?Ue=It:Ve.sibling=It,Ve=It);return Yt&&Do(G,Xe),Ue}for(qe=h(G,qe);!It.done;Xe++,It=K.next())It=ke(qe,G,Xe,It.value,we),It!==null&&(i&&It.alternate!==null&&qe.delete(It.key===null?Xe:It.key),z=w(It,z,Xe),Ve===null?Ue=It:Ve.sibling=It,Ve=It);return i&&qe.forEach(function(Vy){return o(G,Vy)}),Yt&&Do(G,Xe),Ue}function cn(G,z,K,we){if(typeof K=="object"&&K!==null&&K.type===Z&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case te:e:{for(var Ue=K.key,Ve=z;Ve!==null;
vendor: 8,857 bytes, line 39
39){if(Ve.key===Ue){if(Ue=K.type,Ue===Z){if(Ve.tag===7){f(G,Ve.sibling),z=y(Ve,K.props.children),z.return=G,G=z;break e}}else if(Ve.elementType===Ue||typeof Ue=="object"&&Ue!==null&&Ue.$$typeof===fe&&g1(Ue)===Ve.type){f(G,Ve.sibling),z=y(Ve,K.props),z.ref=cu(G,Ve,K),z.return=G,G=z;break e}f(G,Ve);break}else o(G,Ve);Ve=Ve.sibling}K.type===Z?(z=Yo(K.props.children,G.mode,we,K.key),z.return=G,G=z):(we=$f(K.type,K.key,K.props,null,G.mode,we),we.ref=cu(G,z,K),we.return=G,G=we)}return k(G);case D:e:{for(Ve=K.key;z!==null;){if(z.key===Ve)if(z.tag===4&&z.stateNode.containerInfo===K.containerInfo&&z.stateNode.implementation===K.implementation){f(G,z.sibling),z=y(z,K.children||[]),z.return=G,G=z;break e}else{f(G,z);break}else o(G,z);z=z.sibling}z=dh(K,G.mode,we),z.return=G,G=z}return k(G);case fe:return Ve=K._init,cn(G,z,Ve(K._payload),we)}if(at(K))return Ne(G,z,K,we);if(ve(K))return De(G,z,K,we);$o(G,K)}return typeof K=="string"&&K!==""||typeof K=="number"?(K=""+K,z!==null&&z.tag===6?(f(G,z.sibling),z=y(z,K),z.return=G,G=z):(f(G,z),z=fh(K,G.mode,we),z.return=G,G=z),k(G)):f(G,z)}return cn}var on=bp(!0),rf=bp(!1),fu=_r(null),Mr=null,eo=null,Ga=null;function ys(){Ga=eo=Mr=null}function sf(i){var o=fu.current;Kt(fu),i._currentValue=o}function Fn(i,o,f){for(;i!==null;){var h=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),i===f)break;i=i.return}}function to(i,o){Mr=i,Ga=eo=null,i=i.dependencies,i!==null&&i.firstContext!==null&&((i.lanes&o)!==0&&(fr=!0),i.firstContext=null)}function Zr(i){var o=i._currentValue;if(Ga!==i)if(i={context:i,memoizedValue:o,next:null},eo===null){if(Mr===null)throw Error(n(308));eo=i,Mr.dependencies={lanes:0,firstContext:i}}else eo=eo.next=i;return o}var jo=null;function Tp(i){jo===null?jo=[i]:jo.push(i)}function of(i,o,f,h){var y=o.interleaved;return y===null?(f.next=f,Tp(o)):(f.next=y.next,y.next=f),o.interleaved=f,vs(i,h)}function vs(i,o){i.lanes|=o;var f=i.alternate;for(f!==null&&(f.lanes|=o),f=i,i=i.return;i!==null;)i.childLanes|=o,f=i.alternate,f!==null&&(f.childLanes|=o),f=i,i=i.return;return f.tag===3?f.stateNode:null}var ei=!1;function af(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function y1(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,effects:i.effects})}function _s(i,o){return{eventTime:i,lane:o,tag:0,payload:null,callback:null,next:null}}function ti(i,o,f){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Ct&2)!==0){var y=h.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),h.pending=o,vs(i,f)}return y=h.interleaved,y===null?(o.next=o,Tp(h)):(o.next=y.next,y.next=o),h.interleaved=o,vs(i,f)}function lf(i,o,f){if(o=o.updateQueue,o!==null&&(o=o.shared,(f&4194240)!==0)){var h=o.lanes;h&=i.pendingLanes,f|=h,o.lanes=f,Gl(i,f)}}function v1(i,o){var f=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,f===h)){var y=null,w=null;if(f=f.firstBaseUpdate,f!==null){do{var k={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};w===null?y=w=k:w=w.next=k,f=f.next}while(f!==null);w===null?y=w=o:w=w.next=o}else y=w=o;f={baseState:h.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:h.shared,effects:h.effects},i.updateQueue=f;return}i=f.lastBaseUpdate,i===null?f.firstBaseUpdate=o:i.next=o,f.lastBaseUpdate=o}function Ka(i,o,f,h){var y=i.updateQueue;ei=!1;var w=y.firstBaseUpdate,k=y.lastBaseUpdate,N=y.shared.pending;if(N!==null){y.shared.pending=null;var j=N,J=j.next;j.next=null,k===null?w=J:k.next=J,k=j;var he=i.alternate;he!==null&&(he=he.updateQueue,N=he.lastBaseUpdate,N!==k&&(N===null?he.firstBaseUpdate=J:N.next=J,he.lastBaseUpdate=j))}if(w!==null){var ge=y.baseState;k=0,he=J=j=null,N=w;do{var pe=N.lane,ke=N.eventTime;if((h&pe)===pe){he!==null&&(he=he.next={eventTime:ke,lane:0,tag:N.tag,payload:N.payload,callback:N.callback,next:null});e:{var Ne=i,De=N;switch(pe=o,ke=f,De.tag){case 1:if(Ne=De.payload,typeof Ne=="function"){ge=Ne.call(ke,ge,pe);break e}ge=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=De.payload,pe=typeof Ne=="function"?Ne.call(ke,ge,pe):Ne,pe==null)break e;ge=_e({},ge,pe);break e;case 2:ei=!0}}N.callback!==null&&N.lane!==0&&(i.flags|=64,pe=y.effects,pe===null?y.effects=[N]:pe.push(N))}else ke={eventTime:ke,lane:pe,tag:N.tag,payload:N.payload,callback:N.callback,next:null},he===null?(J=he=ke,j=ge):he=he.next=ke,k|=pe;if(N=N.next,N===null){if(N=y.shared.pending,N===null)break;pe=N,N=pe.next,pe.next=null,y.lastBaseUpdate=pe,y.shared.pending=null}}while(!0);if(he===null&&(j=ge),y.baseState=j,y.firstBaseUpdate=J,y.lastBaseUpdate=he,o=y.shared.interleaved,o!==null){y=o;do k|=y.lane,y=y.next;while(y!==o)}else w===null&&(y.shared.lanes=0);oo|=k,i.lanes=k,i.memoizedState=ge}}function kp(i,o,f){if(i=o.effects,o.effects=null,i!==null)for(o=0;o<i.length;o++){var h=i[o],y=h.callback;if(y!==null){if(h.callback=null,h=f,typeof y!="function")throw Error(n(191,y));y.call(h)}}}var du={},Ki=_r(du),pu=_r(du),Ya=_r(du);function ws(i){if(i===du)throw Error(n(174));return i}function Rp(i,o){switch(qt(Ya,o),qt(pu,i),qt(Ki,du),i=o.nodeType,i){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:st(null,"");break;default:i=i===8?o.parentNode:o,o=i.namespaceURI||null,i=i.tagName,o=st(o,i)}Kt(Ki),qt(Ki,o)}function no(){Kt(Ki),Kt(pu),Kt(Ya)}function Ip(i){ws(Ya.current);var o=ws(Ki.current),f=st(o,i.type);o!==f&&(qt(pu,i),qt(Ki,f))}function uf(i){pu.current===i&&(Kt(Ki),Kt(pu))}var Zt=_r(0);function Uo(i){for(var o=i;o!==null;){if(o.tag===13){var f=o.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||f.data==="$?"||f.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Op=[];function cf(){for(var i=0;i<Op.length;i++)Op[i]._workInProgressVersionPrimary=null;Op.length=0}var hu=Q.ReactCurrentDispatcher,Ap=Q.ReactCurrentBatchConfig,ro=0,rn=null,un=null,Cn=null,Qa=!1,mu=!1,Ho=0,pt=0;function Qn(){throw Error(n(321))}function Pp(i,o){if(o===null)return!1;for(var f=0;f<o.length&&f<i.length;f++)if(!Y(i[f],o[f]))return!1;return!0}function Bo(i,o,f,h,y,w){if(ro=w,rn=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,hu.current=i===null||i.memoizedState===null?ky:yf,i=f(h,y),mu){w=0;do{if(mu=!1,Ho=0,25<=w)throw Error(n(301));w+=1,Cn=un=null,o.updateQueue=null,hu.current=el,i=f(h,y)}while(mu)}if(hu.current=gf,o=un!==null&&un.next!==null,ro=0,Cn=un=rn=null,Qa=!1,o)throw Error(n(300));return i}function ff(){var i=Ho!==0;return Ho=0,i}function Yi(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cn===null?rn.memoizedState=Cn=i:Cn=Cn.next=i,Cn}function ni(){if(un===null){var i=rn.alternate;i=i!==null?i.memoizedState:null}else i=un.next;var o=Cn===null?rn.memoizedState:Cn.next;if(o!==null)Cn=o,un=i;else{if(i===null)throw Error(n(310));un=i,i={memoizedState:un.memoizedState,baseState:un.baseState,baseQueue:un.baseQueue,queue:un.queue,next:null},Cn===null?rn.memoizedState=Cn=i:Cn=Cn.next=i}return Cn}function Xn(i,o){return typeof o=="function"?o(i):o}function Lp(i){var o=ni(),f=o.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=i;var h=un,y=h.baseQueue,w=f.pending;if(w!==null){if(y!==null){var k=y.next;y.next=w.next,w.next=k}h.baseQueue=y=w,f.pending=null}if(y!==null){w=y.next,h=h.baseState;var N=k=null,j=null,J=w;do{var he=J.lane;if((ro&he)===he)j!==null&&(j=j.next={lane:0,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),h=J.hasEagerState?J.eagerState:i(h,J.action);else{var ge={lane:he,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null};j===null?(N=j=ge,k=h):j=j.next=ge,rn.lanes|=he,oo|=he}J=J.next}while(J!==null&&J!==w);j===null?k=h:j.next=N,Y(h,o.memoizedState)||(fr=!0),o.memoizedState=h,o.baseState=k,o.baseQueue=j,f.lastRenderedState=h}if(i=f.interleaved,i!==null){y=i;do w=y.lane,rn.lanes|=w,oo|=w,y=y.next;while(y!==i)}else y===null&&(f.lanes=0);return[o.memoizedState,f.dispatch]}function Xa(i){var o=ni(),f=o.queue;if(f===null)throw Error(n(311));f.lastRenderedReducer=i;var h=f.dispatch,y=f.pending,w=o.memoizedState;if(y!==null){f.pending=null;var k=y=y.next;do w=i(w,k.action),k=k.next;while(k!==y);Y(w,o.memoizedState)||(fr=!0),o.memoizedState=w,o.baseQueue===null&&(o.baseState=w),f.lastRenderedState=w}return[w,h]}function df(){}function Np(i,o){var f=rn,h=ni(),y=o(),w=!Y(h.memoizedState,y);if(w&&(h.memoizedState=y,fr=!0),h=h.queue,Qi(Ss.bind(null,f,h,i),[i]),h.get
vendor: 4,383 bytes, line 39
39Snapshot!==o||w||Cn!==null&&Cn.memoizedState.tag&1){if(f.flags|=2048,Ja(9,Cr.bind(null,f,h,y,o),void 0,null),An===null)throw Error(n(349));(ro&30)!==0||Mp(f,o,y)}return y}function Mp(i,o,f){i.flags|=16384,i={getSnapshot:o,value:f},o=rn.updateQueue,o===null?(o={lastEffect:null,stores:null},rn.updateQueue=o,o.stores=[i]):(f=o.stores,f===null?o.stores=[i]:f.push(i))}function Cr(i,o,f,h){o.value=f,o.getSnapshot=h,pf(o)&&Dp(i)}function Ss(i,o,f){return f(function(){pf(o)&&Dp(i)})}function pf(i){var o=i.getSnapshot;i=i.value;try{var f=o();return!Y(i,f)}catch{return!0}}function Dp(i){var o=vs(i,1);o!==null&&bi(o,i,1,-1)}function gu(i){var o=Yi();return typeof i=="function"&&(i=i()),o.memoizedState=o.baseState=i,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xn,lastRenderedState:i},o.queue=i,i=i.dispatch=x1.bind(null,rn,i),[o.memoizedState,i]}function Ja(i,o,f,h){return i={tag:i,create:o,destroy:f,deps:h,next:null},o=rn.updateQueue,o===null?(o={lastEffect:null,stores:null},rn.updateQueue=o,o.lastEffect=i.next=i):(f=o.lastEffect,f===null?o.lastEffect=i.next=i:(h=f.next,f.next=i,i.next=h,o.lastEffect=i)),i}function hf(){return ni().memoizedState}function yu(i,o,f,h){var y=Yi();rn.flags|=i,y.memoizedState=Ja(1|o,f,void 0,h===void 0?null:h)}function Za(i,o,f,h){var y=ni();h=h===void 0?null:h;var w=void 0;if(un!==null){var k=un.memoizedState;if(w=k.destroy,h!==null&&Pp(h,k.deps)){y.memoizedState=Ja(o,f,w,h);return}}rn.flags|=i,y.memoizedState=Ja(1|o,f,w,h)}function mf(i,o){return yu(8390656,8,i,o)}function Qi(i,o){return Za(2048,8,i,o)}function _1(i,o){return Za(4,2,i,o)}function Es(i,o){return Za(4,4,i,o)}function Fp(i,o){if(typeof o=="function")return i=i(),o(i),function(){o(null)};if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function $p(i,o,f){return f=f!=null?f.concat([i]):null,Za(4,4,Fp.bind(null,o,i),f)}function vu(){}function w1(i,o){var f=ni();o=o===void 0?null:o;var h=f.memoizedState;return h!==null&&o!==null&&Pp(o,h[1])?h[0]:(f.memoizedState=[i,o],i)}function S1(i,o){var f=ni();o=o===void 0?null:o;var h=f.memoizedState;return h!==null&&o!==null&&Pp(o,h[1])?h[0]:(i=i(),f.memoizedState=[i,o],i)}function E1(i,o,f){return(ro&21)===0?(i.baseState&&(i.baseState=!1,fr=!0),i.memoizedState=f):(Y(f,o)||(f=Zd(),rn.lanes|=f,oo|=f,i.baseState=!0),o)}function C1(i,o){var f=Lt;Lt=f!==0&&4>f?f:4,i(!0);var h=Ap.transition;Ap.transition={};try{i(!1),o()}finally{Lt=f,Ap.transition=h}}function jp(){return ni().memoizedState}function Ty(i,o,f){var h=uo(i);if(f={lane:h,action:f,hasEagerState:!1,eagerState:null,next:null},Up(i))cr(o,f);else if(f=of(i,o,f,h),f!==null){var y=hr();bi(f,i,h,y),wi(f,o,h)}}function x1(i,o,f){var h=uo(i),y={lane:h,action:f,hasEagerState:!1,eagerState:null,next:null};if(Up(i))cr(o,y);else{var w=i.alternate;if(i.lanes===0&&(w===null||w.lanes===0)&&(w=o.lastRenderedReducer,w!==null))try{var k=o.lastRenderedState,N=w(k,f);if(y.hasEagerState=!0,y.eagerState=N,Y(N,k)){var j=o.interleaved;j===null?(y.next=y,Tp(o)):(y.next=j.next,j.next=y),o.interleaved=y;return}}catch{}finally{}f=of(i,o,y,h),f!==null&&(y=hr(),bi(f,i,h,y),wi(f,o,h))}}function Up(i){var o=i.alternate;return i===rn||o!==null&&o===rn}function cr(i,o){mu=Qa=!0;var f=i.pending;f===null?o.next=o:(o.next=f.next,f.next=o),i.pending=o}function wi(i,o,f){if((f&4194240)!==0){var h=o.lanes;h&=i.pendingLanes,f|=h,o.lanes=f,Gl(i,f)}}var gf={readContext:Zr,useCallback:Qn,useContext:Qn,useEffect:Qn,useImperativeHandle:Qn,useInsertionEffect:Qn,useLayoutEffect:Qn,useMemo:Qn,useReducer:Qn,useRef:Qn,useState:Qn,useDebugValue:Qn,useDeferredValue:Qn,useTransition:Qn,useMutableSource:Qn,useSyncExternalStore:Qn,useId:Qn,unstable_isNewReconciler:!1},ky={readContext:Zr,useCallback:function(i,o){return Yi().memoizedState=[i,o===void 0?null:o],i},useContext:Zr,useEffect:mf,useImperativeHandle:function(i,o,f){return f=f!=null?f.concat([i]):null,yu(4194308,4,Fp.bind(null,o,i),f)},useLayoutEffect:function(i,o){return yu(4194308,4,i,o)},useInsertionEffect:function(i,o){return yu(4,2,i,o)},useMemo:function(i,o){var f=Yi();return o=o===void 0?null:o,i=i(),f.memoizedState=[i,o],i},useReducer:function(i,o,f){var h=Yi();return o=f!==void 0?f(o):o,h.memoizedState=h.baseState=o,i={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:o},h.queue=i,i=i.dispatch=Ty.bind(null,rn,i),[h.memoizedState,i]}
vendor: 6,954 bytes, lines 39-41
39,useRef:function(i){var o=Yi();return i={current:i},o.memoizedState=i},useState:gu,useDebugValue:vu,useDeferredValue:function(i){return Yi().memoizedState=i},useTransition:function(){var i=gu(!1),o=i[0];return i=C1.bind(null,i[1]),Yi().memoizedState=i,[o,i]},useMutableSource:function(){},useSyncExternalStore:function(i,o,f){var h=rn,y=Yi();if(Yt){if(f===void 0)throw Error(n(407));f=f()}else{if(f=o(),An===null)throw Error(n(349));(ro&30)!==0||Mp(h,o,f)}y.memoizedState=f;var w={value:f,getSnapshot:o};return y.queue=w,mf(Ss.bind(null,h,w,i),[i]),h.flags|=2048,Ja(9,Cr.bind(null,h,w,f,o),void 0,null),f},useId:function(){var i=Yi(),o=An.identifierPrefix;if(Yt){var f=Wi,h=zi;f=(h&~(1<<32-yi(h)-1)).toString(32)+f,o=":"+o+"R"+f,f=Ho++,0<f&&(o+="H"+f.toString(32)),o+=":"}else f=pt++,o=":"+o+"r"+f.toString(32)+":";return i.memoizedState=o},unstable_isNewReconciler:!1},yf={readContext:Zr,useCallback:w1,useContext:Zr,useEffect:Qi,useImperativeHandle:$p,useInsertionEffect:_1,useLayoutEffect:Es,useMemo:S1,useReducer:Lp,useRef:hf,useState:function(){return Lp(Xn)},useDebugValue:vu,useDeferredValue:function(i){var o=ni();return E1(o,un.memoizedState,i)},useTransition:function(){var i=Lp(Xn)[0],o=ni().memoizedState;return[i,o]},useMutableSource:df,useSyncExternalStore:Np,useId:jp,unstable_isNewReconciler:!1},el={readContext:Zr,useCallback:w1,useContext:Zr,useEffect:Qi,useImperativeHandle:$p,useInsertionEffect:_1,useLayoutEffect:Es,useMemo:S1,useReducer:Xa,useRef:hf,useState:function(){return Xa(Xn)},useDebugValue:vu,useDeferredValue:function(i){var o=ni();return un===null?o.memoizedState=i:E1(o,un.memoizedState,i)},useTransition:function(){var i=Xa(Xn)[0],o=ni().memoizedState;return[i,o]},useMutableSource:df,useSyncExternalStore:Np,useId:jp,unstable_isNewReconciler:!1};function ri(i,o){if(i&&i.defaultProps){o=_e({},o),i=i.defaultProps;for(var f in i)o[f]===void 0&&(o[f]=i[f]);return o}return o}function vf(i,o,f,h){o=i.memoizedState,f=f(h,o),f=f==null?o:_e({},o,f),i.memoizedState=f,i.lanes===0&&(i.updateQueue.baseState=f)}var _f={isMounted:function(i){return(i=i._reactInternals)?bo(i)===i:!1},enqueueSetState:function(i,o,f){i=i._reactInternals;var h=hr(),y=uo(i),w=_s(h,y);w.payload=o,f!=null&&(w.callback=f),o=ti(i,w,y),o!==null&&(bi(o,i,y,h),lf(o,i,y))},enqueueReplaceState:function(i,o,f){i=i._reactInternals;var h=hr(),y=uo(i),w=_s(h,y);w.tag=1,w.payload=o,f!=null&&(w.callback=f),o=ti(i,w,y),o!==null&&(bi(o,i,y,h),lf(o,i,y))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var f=hr(),h=uo(i),y=_s(f,h);y.tag=2,o!=null&&(y.callback=o),o=ti(i,y,h),o!==null&&(bi(o,i,h,f),lf(o,i,h))}};function Hp(i,o,f,h,y,w,k){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,w,k):o.prototype&&o.prototype.isPureReactComponent?!Te(f,h)||!Te(y,w):!0}function zo(i,o,f){var h=!1,y=Js,w=o.contextType;return typeof w=="object"&&w!==null?w=Zr(w):(y=Sr(o)?ur:Gn.current,h=o.contextTypes,w=(h=h!=null)?qa(i,y):Js),o=new o(f,w),i.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=_f,i.stateNode=o,o._reactInternals=i,h&&(i=i.stateNode,i.__reactInternalMemoizedUnmaskedChildContext=y,i.__reactInternalMemoizedMaskedChildContext=w),o}function tl(i,o,f,h){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(f,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(f,h),o.state!==i&&_f.enqueueReplaceState(o,o.state,null)}function Bp(i,o,f,h){var y=i.stateNode;y.props=f,y.state=i.memoizedState,y.refs={},af(i);var w=o.contextType;typeof w=="object"&&w!==null?y.context=Zr(w):(w=Sr(o)?ur:Gn.current,y.context=qa(i,w)),y.state=i.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(vf(i,o,w,f),y.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(o=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),o!==y.state&&_f.enqueueReplaceState(y,y.state,null),Ka(i,f,y,h),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308)}function Wo(i,o){try{var f="",h=o;do f+=oe(h),h=h.return;while(h);var y=f}catch(w){y=`
40Error generating stack: `+w.message+`
41`+w.stack}return{value:i,source:o,stack:y,digest:null}}function wf(i,o,f){return{value:i,source:null,stack:f??null,digest:o??null}}function nl(i,o){try{console.error(o.value)}catch(f){setTimeout(function(){throw f})}}var b1=typeof WeakMap=="function"?WeakMap:Map;function _u(i,o,f){f=_s(-1,f),f.tag=3,f.payload={element:null};var h=o.value;return f.callback=function(){Af||(Af=!0,ih=h),nl(i,o)},f}function Sf(i,o,f){f=_s(-1,f),f.tag=3;var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var y=o.value;f.payload=function(){return h(y)},f.callback=function(){nl(i,o)}}var w=i.stateNode;return w!==null&&typeof w.componentDidCatch=="function"&&(f.callback=function(){nl(i,o),typeof h!="function"&&(ao===null?ao=new Set([this]):ao.add(this));var k=o.stack;this.componentDidCatch(o.value,{componentStack:k!==null?k:""})}),f}function wu(i,o,f){var h=i.pingCache;if(h===null){h=i.pingCache=new b1;var y=new Set;h.set(o,y)}else y=h.get(o),y===void 0&&(y=new Set,h.set(o,y));y.has(f)||(y.add(f),i=My.bind(null,i,o,f),o.then(i,i))}function T1(i){do{var o;if((o=i.tag===13)&&(o=i.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return i;i=i.return}while(i!==null);return null}function zp(i,o,f,h,y){return(i.mode&1)===0?(i===o?i.flags|=65536:(i.flags|=128,f.flags|=131072,f.flags&=-52805,f.tag===1&&(f.alternate===null?f.tag=17:(o=_s(-1,1),o.tag=2,ti(f,o,1))),f.lanes|=1),i):(i.flags|=65536,i.lanes=y,i)}var Ef=Q.ReactCurrentOwner,fr=!1;function $n(i,o,f,h){o.child=i===null?rf(o,null,f,h):on(o,i.child,f,h)}function k1(i,o,f,h,y){f=f.render;var w=o.ref;return to(o,y),h=Bo(i,o,f,h,w,y),f=ff(),i!==null&&!fr?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~y,Si(i,o,y)):(Yt&&f&&lu(o),o.flags|=1,$n(i,o,h,y),o.child)}function Wp(i,o,f,h,y){if(i===null){var w=f.type;return typeof w=="function"&&!Ff(w)&&w.defaultProps===void 0&&f.compare===null&&f.defaultProps===void 0?(o.tag=15,o.type=w,Xi(i,o,w,h,y)):(i=$f(f.type,null,h,o,o.mode,y),i.ref=o.ref,i.return=o,o.child=i)}if(w=i.child,(i.lanes&y)===0){var k=w.memoizedProps;if(f=f.compare,f=f!==null?f:Te,f(k,h)&&i.ref===o.ref)return Si(i,o,y)}return o.flags|=1,i=Ti(w,h),i.ref=o.ref,i.return=o,o.child=i}function Xi(i,o,f,h,y){if(i!==null){var w=i.memoizedProps;if(Te(w,h)&&i.ref===o.ref)if(fr=!1,o.pendingProps=h=w,(i.lanes&y)!==0)(i.flags&131072)!==0&&(fr=!0);else return o.lanes=i.lanes,Si(i,o,y)}return Gp(i,o,f,h,y)}function qp(i,o,f){var h=o.pendingProps,y=h.children,w=i!==null?i.memoizedState:null;if(h.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},qt(ol,Fr),Fr|=f;
vendor: 37,928 bytes, line 41
41else{if((f&1073741824)===0)return i=w!==null?w.baseLanes|f:f,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:i,cachePool:null,transitions:null},o.updateQueue=null,qt(ol,Fr),Fr|=i,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=w!==null?w.baseLanes:f,qt(ol,Fr),Fr|=h}else w!==null?(h=w.baseLanes|f,o.memoizedState=null):h=f,qt(ol,Fr),Fr|=h;return $n(i,o,y,f),o.child}function Vp(i,o){var f=o.ref;(i===null&&f!==null||i!==null&&i.ref!==f)&&(o.flags|=512,o.flags|=2097152)}function Gp(i,o,f,h,y){var w=Sr(f)?ur:Gn.current;return w=qa(o,w),to(o,y),f=Bo(i,o,f,h,w,y),h=ff(),i!==null&&!fr?(o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~y,Si(i,o,y)):(Yt&&h&&lu(o),o.flags|=1,$n(i,o,f,y),o.child)}function Kp(i,o,f,h,y){if(Sr(f)){var w=!0;Qr(o)}else w=!1;if(to(o,y),o.stateNode===null)xf(i,o),zo(o,f,h),Bp(o,f,h,y),h=!0;else if(i===null){var k=o.stateNode,N=o.memoizedProps;k.props=N;var j=k.context,J=f.contextType;typeof J=="object"&&J!==null?J=Zr(J):(J=Sr(f)?ur:Gn.current,J=qa(o,J));var he=f.getDerivedStateFromProps,ge=typeof he=="function"||typeof k.getSnapshotBeforeUpdate=="function";ge||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(N!==h||j!==J)&&tl(o,k,h,J),ei=!1;var pe=o.memoizedState;k.state=pe,Ka(o,h,k,y),j=o.memoizedState,N!==h||pe!==j||wr.current||ei?(typeof he=="function"&&(vf(o,f,he,h),j=o.memoizedState),(N=ei||Hp(o,f,N,h,pe,j,J))?(ge||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(o.flags|=4194308)):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=j),k.props=h,k.state=j,k.context=J,h=N):(typeof k.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{k=o.stateNode,y1(i,o),N=o.memoizedProps,J=o.type===o.elementType?N:ri(o.type,N),k.props=J,ge=o.pendingProps,pe=k.context,j=f.contextType,typeof j=="object"&&j!==null?j=Zr(j):(j=Sr(f)?ur:Gn.current,j=qa(o,j));var ke=f.getDerivedStateFromProps;(he=typeof ke=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(N!==ge||pe!==j)&&tl(o,k,h,j),ei=!1,pe=o.memoizedState,k.state=pe,Ka(o,h,k,y);var Ne=o.memoizedState;N!==ge||pe!==Ne||wr.current||ei?(typeof ke=="function"&&(vf(o,f,ke,h),Ne=o.memoizedState),(J=ei||Hp(o,f,J,h,pe,Ne,j)||!1)?(he||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(h,Ne,j),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(h,Ne,j)),typeof k.componentDidUpdate=="function"&&(o.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof k.componentDidUpdate!="function"||N===i.memoizedProps&&pe===i.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&pe===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=Ne),k.props=h,k.state=Ne,k.context=j,h=J):(typeof k.componentDidUpdate!="function"||N===i.memoizedProps&&pe===i.memoizedState||(o.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||N===i.memoizedProps&&pe===i.memoizedState||(o.flags|=1024),h=!1)}return Yp(i,o,f,h,w,y)}function Yp(i,o,f,h,y,w){Vp(i,o);var k=(o.flags&128)!==0;if(!h&&!k)return y&&f1(o,f,!1),Si(i,o,w);h=o.stateNode,Ef.current=o;var N=k&&typeof f.getDerivedStateFromError!="function"?null:h.render();return o.flags|=1,i!==null&&k?(o.child=on(o,i.child,null,w),o.child=on(o,null,N,w)):$n(i,o,N,w),o.memoizedState=h.state,y&&f1(o,f,!0),o.child}function R1(i){var o=i.stateNode;o.pendingContext?u1(i,o.pendingContext,o.pendingContext!==o.context):o.context&&u1(i,o.context,!1),Rp(i,o.containerInfo)}function Ji(i,o,f,h,y){return Vi(),Gi(y),o.flags|=256,$n(i,o,f,h),o.child}var Su={dehydrated:null,treeContext:null,retryLane:0};function Eu(i){return{baseLanes:i,cachePool:null,transitions:null}}function Cf(i,o,f){var h=o.pendingProps,y=Zt.current,w=!1,k=(o.flags&128)!==0,N;if((N=k)||(N=i!==null&&i.memoizedState===null?!1:(y&2)!==0),N?(w=!0,o.flags&=-129):(i===null||i.memoizedState!==null)&&(y|=1),qt(Zt,y&1),i===null)return Er(o),i=o.memoizedState,i!==null&&(i=i.dehydrated,i!==null)?((o.mode&1)===0?o.lanes=1:i.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(k=h.children,i=h.fallback,w?(h=o.mode,w=o.child,k={mode:"hidden",children:k},(h&1)===0&&w!==null?(w.childLanes=0,w.pendingProps=k):w=jf(k,h,0,null),i=Yo(i,h,f,null),w.return=o,i.return=o,w.sibling=i,o.child=w,o.child.memoizedState=Eu(f),o.memoizedState=Su,i):rl(o,k));if(y=i.memoizedState,y!==null&&(N=y.dehydrated,N!==null))return Ge(i,o,k,h,N,y,f);if(w){w=h.fallback,k=o.mode,y=i.child,N=y.sibling;var j={mode:"hidden",children:h.children};return(k&1)===0&&o.child!==y?(h=o.child,h.childLanes=0,h.pendingProps=j,o.deletions=null):(h=Ti(y,j),h.subtreeFlags=y.subtreeFlags&14680064),N!==null?w=Ti(N,w):(w=Yo(w,k,f,null),w.flags|=2),w.return=o,h.return=o,h.sibling=w,o.child=h,h=w,w=o.child,k=i.child.memoizedState,k=k===null?Eu(f):{baseLanes:k.baseLanes|f,cachePool:null,transitions:k.transitions},w.memoizedState=k,w.childLanes=i.childLanes&~f,o.memoizedState=Su,h}return w=i.child,i=w.sibling,h=Ti(w,{mode:"visible",children:h.children}),(o.mode&1)===0&&(h.lanes=f),h.return=o,h.sibling=null,i!==null&&(f=o.deletions,f===null?(o.deletions=[i],o.flags|=16):f.push(i)),o.child=h,o.memoizedState=null,h}function rl(i,o){return o=jf({mode:"visible",children:o},i.mode,0,null),o.return=i,i.child=o}function Cs(i,o,f,h){return h!==null&&Gi(h),on(o,i.child,null,f),i=rl(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function Ge(i,o,f,h,y,w,k){if(f)return o.flags&256?(o.flags&=-257,h=wf(Error(n(422))),Cs(i,o,k,h)):o.memoizedState!==null?(o.child=i.child,o.flags|=128,null):(w=h.fallback,y=o.mode,h=jf({mode:"visible",children:h.children},y,0,null),w=Yo(w,y,k,null),w.flags|=2,h.return=o,w.return=o,h.sibling=w,o.child=h,(o.mode&1)!==0&&on(o,i.child,null,k),o.child.memoizedState=Eu(k),o.memoizedState=Su,w);if((o.mode&1)===0)return Cs(i,o,k,null);if(y.data==="$!"){if(h=y.nextSibling&&y.nextSibling.dataset,h)var N=h.dgst;return h=N,w=Error(n(419)),h=wf(w,h,void 0),Cs(i,o,k,h)}if(N=(k&i.childLanes)!==0,fr||N){if(h=An,h!==null){switch(k&-k){case 4:y=2;break;case 16:y=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:y=32;break;case 536870912:y=268435456;break;default:y=0}y=(y&(h.suspendedLanes|k))!==0?0:y,y!==0&&y!==w.retryLane&&(w.retryLane=y,vs(i,y),bi(h,i,y,-1))}return ch(),h=wf(Error(n(421))),Cs(i,o,k,h)}return y.data==="$?"?(o.flags|=128,o.child=i.child,o=Dy.bind(null,i),y._reactRetry=o,null):(i=w.treeContext,Nr=Qs(y.nextSibling),Yn=o,Yt=!0,_i=null,i!==null&&(Xr[Jr++]=zi,Xr[Jr++]=Wi,Xr[Jr++]=Mo,zi=i.id,Wi=i.overflow,Mo=o),o=rl(o,h.children),o.flags|=4096,o)}function Cu(i,o,f){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),Fn(i.return,o,f)}function xu(i,o,f,h,y){var w=i.memoizedState;w===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:f,tailMode:y}:(w.isBackwards=o,w.rendering=null,w.renderingStartTime=0,w.last=h,w.tail=f,w.tailMode=y)}function io(i,o,f){var h=o.pendingProps,y=h.revealOrder,w=h.tail;if($n(i,o,h.children,f),h=Zt.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Cu(i,f,o);else if(i.tag===19)Cu(i,f,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}if(qt(Zt,h),(o.mode&1)===0)o.memoizedState=null;else switch(y){case"forwards":for(f=o.child,y=null;f!==null;)i=f.alternate,i!==null&&Uo(i)===null&&(y=f),f=f.sibling;f=y,f===null?(y=o.child,o.child=null):(y=f.sibling,f.sibling=null),xu(o,!1,y,f,w);break;case"backwards":for(f=null,y=o.child,o.child=null;y!==null;){if(i=y.alternate,i!==null&&Uo(i)===null){o.child=y;break}i=y.sibling,y.sibling=f,f=y,y=i}xu(o,!0,f,null,w);break;case"together":xu(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function xf(i,o){(o.mode&1)===0&&i!==null&&(i.alternate=null,o.alternate=null,o.flags|=2)}function Si(i,o,f){if(i!==null&&(o.dependencies=i.dependencies),oo|=o.lanes,(f&o.childLanes)===0)return null;if(i!==null&&o.child!==i.child)throw Error(n(153));if(o.child!==null){for(i=o.child,f=Ti(i,i.pendingProps),o.child=f,f.return=o;i.sibling!==null;)i=i.sibling,f=f.sibling=Ti(i,i.pendingProps),f.return=o;f.sibling=null}return o.child}function I1(i,o,f){switch(o.tag){case 3:R1(o),Vi();break;case 5:Ip(o);break;case 1:Sr(o.type)&&Qr(o);break;case 4:Rp(o,o.stateNode.containerInfo);break;case 10:var h=o.type._context,y=o.memoizedProps.value;qt(fu,h._currentValue),h._currentValue=y;break;case 13:if(h=o.memoizedState,h!==null)return h.dehydrated!==null?(qt(Zt,Zt.current&1),o.flags|=128,null):(f&o.child.childLanes)!==0?Cf(i,o,f):(qt(Zt,Zt.current&1),i=Si(i,o,f),i!==null?i.sibling:null);qt(Zt,Zt.current&1);break;case 19:if(h=(f&o.childLanes)!==0,(i.flags&128)!==0){if(h)return io(i,o,f);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),qt(Zt,Zt.current),h)break;return null;case 22:case 23:return o.lanes=0,qp(i,o,f)}return Si(i,o,f)}var jn,Qp,O1,Xp;jn=function(i,o){for(var f=o.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===o)break;for(;f.sibling===null;){if(f.return===null||f.return===o)return;f=f.return}f.sibling.return=f.return,f=f.sibling}},Qp=function(){},O1=function(i,o,f,h){var y=i.memoizedProps;if(y!==h){i=o.stateNode,ws(Ki.current);var w=null;switch(f){case"input":y=At(i,y),h=At(i,h),w=[];break;case"select":y=_e({},y,{value:void 0}),h=_e({},h,{value:void 0}),w=[];break;case"textarea":y=B(i,y),h=B(i,h),w=[];break;default:typeof y.onClick!="function"&&typeof h.onClick=="function"&&(i.onclick=Kc)}gi(f,h);var k;f=null;for(J in y)if(!h.hasOwnProperty(J)&&y.hasOwnProperty(J)&&y[J]!=null)if(J==="style"){var N=y[J];for(k in N)N.hasOwnProperty(k)&&(f||(f={}),f[k]="")}else J!=="dangerouslySetInnerHTML"&&J!=="children"&&J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&J!=="autoFocus"&&(s.hasOwnProperty(J)?w||(w=[]):(w=w||[]).push(J,null));for(J in h){var j=h[J];if(N=y!=null?y[J]:void 0,h.hasOwnProperty(J)&&j!==N&&(j!=null||N!=null))if(J==="style")if(N){for(k in N)!N.hasOwnProperty(k)||j&&j.hasOwnProperty(k)||(f||(f={}),f[k]="");for(k in j)j.hasOwnProperty(k)&&N[k]!==j[k]&&(f||(f={}),f[k]=j[k])}else f||(w||(w=[]),w.push(J,f)),f=j;else J==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,N=N?N.__html:void 0,j!=null&&N!==j&&(w=w||[]).push(J,j)):J==="children"?typeof j!="string"&&typeof j!="number"||(w=w||[]).push(J,""+j):J!=="suppressContentEditableWarning"&&J!=="suppressHydrationWarning"&&(s.hasOwnProperty(J)?(j!=null&&J==="onScroll"&&Gt("scroll",i),w||N===j||(w=[])):(w=w||[]).push(J,j))}f&&(w=w||[]).push("style",f);var J=w;(o.updateQueue=J)&&(o.flags|=4)}},Xp=function(i,o,f,h){f!==h&&(o.flags|=4)};function bu(i,o){if(!Yt)switch(i.tailMode){case"hidden":o=i.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?i.tail=null:f.sibling=null;break;case"collapsed":f=i.tail;for(var h=null;f!==null;)f.alternate!==null&&(h=f),f=f.sibling;h===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function Un(i){var o=i.alternate!==null&&i.alternate.child===i.child,f=0,h=0;if(o)for(var y=i.child;y!==null;)f|=y.lanes|y.childLanes,h|=y.subtreeFlags&14680064,h|=y.flags&14680064,y.return=i,y=y.sibling;else for(y=i.child;y!==null;)f|=y.lanes|y.childLanes,h|=y.subtreeFlags,h|=y.flags,y.return=i,y=y.sibling;return i.subtreeFlags|=h,i.childLanes=f,o}function Ry(i,o,f){var h=o.pendingProps;switch(Fo(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Un(o),null;case 1:return Sr(o.type)&&Jc(),Un(o),null;case 3:return h=o.stateNode,no(),Kt(wr),Kt(Gn),cf(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(i===null||i.child===null)&&(uu(o)?o.flags|=4:i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,_i!==null&&(ah(_i),_i=null))),Qp(i,o),Un(o),null;case 5:uf(o);var y=ws(Ya.current);if(f=o.type,i!==null&&o.stateNode!=null)O1(i,o,f,h,y),i.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!h){if(o.stateNode===null)throw Error(n(166));return Un(o),null}if(i=ws(Ki.current),uu(o)){h=o.stateNode,f=o.type;var w=o.memoizedProps;switch(h[Hi]=o,h[Xs]=w,i=(o.mode&1)!==0,f){case"dialog":Gt("cancel",h),Gt("close",h);break;case"iframe":case"object":case"embed":Gt("load",h);break;case"video":case"audio":for(y=0;y<hs.length;y++)Gt(hs[y],h);break;case"source":Gt("error",h);break;case"img":case"image":case"link":Gt("error",h),Gt("load",h);break;case"details":Gt("toggle",h);break;case"input":Mn(h,w),Gt("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!w.multiple},Gt("invalid",h);break;case"textarea":Ee(h,w),Gt("invalid",h)}gi(f,w),y=null;for(var k in w)if(w.hasOwnProperty(k)){var N=w[k];k==="children"?typeof N=="string"?h.textContent!==N&&(w.suppressHydrationWarning!==!0&&iu(h.textContent,N,i),y=["children",N]):typeof N=="number"&&h.textContent!==""+N&&(w.suppressHydrationWarning!==!0&&iu(h.textContent,N,i),y=["children",""+N]):s.hasOwnProperty(k)&&N!=null&&k==="onScroll"&&Gt("scroll",h)}switch(f){case"input":zn(h),Di(h,w,!0);break;case"textarea":zn(h),Se(h);break;case"select":case"option":break;default:typeof w.onClick=="function"&&(h.onclick=Kc)}h=y,o.updateQueue=h,h!==null&&(o.flags|=4)}else{k=y.nodeType===9?y:y.ownerDocument,i==="http://www.w3.org/1999/xhtml"&&(i=Ye(f)),i==="http://www.w3.org/1999/xhtml"?f==="script"?(i=k.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild)):typeof h.is=="string"?i=k.createElement(f,{is:h.is}):(i=k.createElement(f),f==="select"&&(k=i,h.multiple?k.multiple=!0:h.size&&(k.size=h.size))):i=k.createElementNS(i,f),i[Hi]=o,i[Xs]=h,jn(i,o,!1,!1),o.stateNode=i;e:{switch(k=Fi(f,h),f){case"dialog":Gt("cancel",i),Gt("close",i),y=h;break;case"iframe":case"object":case"embed":Gt("load",i),y=h;break;case"video":case"audio":for(y=0;y<hs.length;y++)Gt(hs[y],i);y=h;break;case"source":Gt("error",i),y=h;break;case"img":case"image":case"link":Gt("error",i),Gt("load",i),y=h;break;case"details":Gt("toggle",i),y=h;break;case"input":Mn(i,h),y=At(i,h),Gt("invalid",i);break;case"option":y=h;break;case"select":i._wrapperState={wasMultiple:!!h.multiple},y=_e({},h,{value:void 0}),Gt("invalid",i);break;case"textarea":Ee(i,h),y=B(i,h),Gt("invalid",i);break;default:y=h}gi(f,y),N=y;for(w in N)if(N.hasOwnProperty(w)){var j=N[w];w==="style"?pn(i,j):w==="dangerouslySetInnerHTML"?(j=j?j.__html:void 0,j!=null&&In(i,j)):w==="children"?typeof j=="string"?(f!=="textarea"||j!=="")&&rr(i,j):typeof j=="number"&&rr(i,""+j):w!=="suppressContentEditableWarning"&&w!=="suppressHydrationWarning"&&w!=="autoFocus"&&(s.hasOwnProperty(w)?j!=null&&w==="onScroll"&&Gt("scroll",i):j!=null&&W(i,w,j,k))}switch(f){case"input":zn(i),Di(i,h,!1);break;case"textarea":zn(i),Se(i);break;case"option":h.value!=null&&i.setAttribute("value",""+et(h.value));break;case"select":i.multiple=!!h.multiple,w=h.value,w!=null?Mt(i,!!h.multiple,w,!1):h.defaultValue!=null&&Mt(i,!!h.multiple,h.defaultValue,!0);break;default:typeof y.onClick=="function"&&(i.onclick=Kc)}switch(f){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Un(o),null;case 6:if(i&&o.stateNode!=null)Xp(i,o,i.memoizedProps,h);else{if(typeof h!="string"&&o.stateNode===null)throw Error(n(166));if(f=ws(Ya.current),ws(Ki.current),uu(o)){if(h=o.stateNode,f=o.memoizedProps,h[Hi]=o,(w=h.nodeValue!==f)&&(i=Yn,i!==null))switch(i.tag){case 3:iu(h.nodeValue,f,(i.mode&1)!==0);break;case 5:i.memoizedProps.suppressHydrationWarning!==!0&&iu(h.nodeValue,f,(i.mode&1)!==0)}w&&(o.flags|=4)}else h=(f.nodeType===9?f:f.ownerDocument).createTextNode(h),h[Hi]=o,o.stateNode=h}return Un(o),null;case 13:if(Kt(Zt),h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(Yt&&Nr!==null&&(o.mode&1)!==0&&(o.flags&128)===0)xp(),Vi(),o.flags|=98560,w=!1;else if(w=uu(o),h!==null&&h.dehydrated!==null){if(i===null){if(!w)throw Error(n(318));if(w=o.memoizedState,w=w!==null?w.dehydrated:null,!w)throw Error(n(317));w[Hi]=o}else Vi(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Un(o),w=!1}else _i!==null&&(ah(_i),_i=null),w=!0;if(!w)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=f,o):(h=h!==null,h!==(i!==null&&i.memoizedState!==null)&&h&&(o.child.flags|=8192,(o.mode&1)!==0&&(i===null||(Zt.current&1)!==0?xn===0&&(xn=3):ch())),o.updateQueue!==null&&(o.flags|=4),Un(o),null);case 4:return no(),Qp(i,o),i===null&&Ks(o.stateNode.containerInfo),Un(o),null;case 10:return sf(o.type._context),Un(o),null;case 17:return Sr(o.type)&&Jc(),Un(o),null;case 19:if(Kt(Zt),w=o.memoizedState,w===null)return Un(o),null;if(h=(o.flags&128)!==0,k=w.rendering,k===null)if(h)bu(w,!1);else{if(xn!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(k=Uo(i),k!==null){for(o.flags|=128,bu(w,!1),h=k.updateQueue,h!==null&&(o.updateQueue=h,o.flags|=4),o.subtreeFlags=0,h=f,f=o.child;f!==null;)w=f,i=h,w.flags&=14680066,k=w.alternate,k===null?(w.childLanes=0,w.lanes=i,w.child=null,w.subtreeFlags=0,w.memoizedProps=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null,w.stateNode=null):(w.childLanes=k.childLanes,w.lanes=k.lanes,w.child=k.child,w.subtreeFlags=0,w.deletions=null,w.memoizedProps=k.memoizedProps,w.memoizedState=k.memoizedState,w.updateQueue=k.updateQueue,w.type=k.type,i=k.dependencies,w.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),f=f.sibling;return qt(Zt,Zt.current&1|2),o.child}i=i.sibling}w.tail!==null&&Xt()>qo&&(o.flags|=128,h=!0,bu(w,!1),o.lanes=4194304)}else{if(!h)if(i=Uo(k),i!==null){if(o.flags|=128,h=!0,f=i.updateQueue,f!==null&&(o.updateQueue=f,o.flags|=4),bu(w,!0),w.tail===null&&w.tailMode==="hidden"&&!k.alternate&&!Yt)return Un(o),null}else 2*Xt()-w.renderingStartTime>qo&&f!==1073741824&&(o.flags|=128,h=!0,bu(w,!1),o.lanes=4194304);w.isBackwards?(k.sibling=o.child,o.child=k):(f=w.last,f!==null?f.sibling=k:o.child=k,w.last=k)}return w.tail!==null?(o=w.tail,w.rendering=o,w.tail=o.sibling,w.renderingStartTime=Xt(),o.sibling=null,f=Zt.current,qt(Zt,h?f&1|2:f&1),o):(Un(o),null);case 22:case 23:return uh(),h=o.memoizedState!==null,i!==null&&i.memoizedState!==null!==h&&(o.flags|=8192),h&&(o.mode&1)!==0?(Fr&1073741824)!==0&&(Un(o),o.subtreeFlags&6&&(o.flags|=8192)):Un(o),null;case 24:return null;case 25:return null}throw Error(n(156,o.tag))}function Iy(i,o){switch(Fo(o),o.tag){case 1:return Sr(o.type)&&Jc(),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return no(),Kt(wr),Kt(Gn),cf(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 5:return uf(o),null;case 13:if(Kt(Zt),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(n(340));Vi()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return Kt(Zt),null;case 4:return no(),null;case 10:return sf(o.type._context),null;case 22:case 23:return uh(),null;case 24:return null;default:return null}}var bf=!1,en=!1,dr=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function il(i,o){var f=i.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(h){sn(i,o,h)}else f.current=null}function Tu(i,o,f){try{f()}catch(h){sn(i,o,h)}}var A1=!1;function Oy(i,o){if(su=Oc,i=Ut(),Jl(i)){if("selectionStart"in i)var f={start:i.selectionStart,end:i.selectionEnd};else e:{f=(f=i.ownerDocument)&&f.defaultView||window;var h=f.getSelection&&f.getSelection();if(h&&h.rangeCount!==0){f=h.anchorNode;var y=h.anchorOffset,w=h.focusNode;h=h.focusOffset;try{f.nodeType,w.nodeType}catch{f=null;break e}var k=0,N=-1,j=-1,J=0,he=0,ge=i,pe=null;t:for(;;){for(var ke;ge!==f||y!==0&&ge.nodeType!==3||(N=k+y),ge!==w||h!==0&&ge.nodeType!==3||(j=k+h),ge.nodeType===3&&(k+=ge.nodeValue.length),(ke=ge.firstChild)!==null;)pe=ge,ge=ke;for(;;){if(ge===i)break t;if(pe===f&&++J===y&&(N=k),pe===w&&++he===h&&(j=k),(ke=ge.nextSibling)!==null)break;ge=pe,pe=ge.parentNode}ge=ke}f=N===-1||j===-1?null:{start:N,end:j}}else f=null}f=f||{start:0,end:0}}else f=null;for(Lo={focusedElem:i,selectionRange:f},Oc=!1,Pe=o;Pe!==null;)if(o=Pe,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,Pe=i;else for(;Pe!==null;){o=Pe;try{var Ne=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(Ne!==null){var De=Ne.memoizedProps,cn=Ne.memoizedState,G=o.stateNode,z=G.getSnapshotBeforeUpdate(o.elementType===o.type?De:ri(o.type,De),cn);G.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var K=o.stateNode.containerInfo;K.nodeType===1?K.textContent="":K.nodeType===9&&K.documentElement&&K.removeChild(K.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(we){sn(o,o.return,we)}if(i=o.sibling,i!==null){i.return=o.return,Pe=i;break}Pe=o.return}return Ne=A1,A1=!1,Ne}function xs(i,o,f){var h=o.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var y=h=h.next;do{if((y.tag&i)===i){var w=y.destroy;y.destroy=void 0,w!==void 0&&Tu(o,f,w)}y=y.next}while(y!==h)}}function ku(i,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var f=o=o.next;do{if((f.tag&i)===i){var h=f.create;f.destroy=h()}f=f.next}while(f!==o)}}function Tf(i){var o=i.ref;if(o!==null){var f=i.stateNode;switch(i.tag){case 5:i=f;break;default:i=f}typeof o=="function"?o(i):o.current=i}}function P1(i){var o=i.alternate;o!==null&&(i.alternate=null,P1(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&(delete o[Hi],delete o[Xs],delete o[Qc],delete o[O],delete o[za])),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}function L1(i){return i.tag===5||i.tag===3||i.tag===4}function N1(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||L1(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Jp(i,o,f){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?f.nodeType===8?f.parentNode.insertBefore(i,o):f.insertBefore(i,o):(f.nodeType===8?(o=f.parentNode,o.insertBefore(i,f)):(o=f,o.appendChild(i)),f=f._reactRootContainer,f!=null||o.onclick!==null||(o.onclick=Kc));else if(h!==4&&(i=i.child,i!==null))for(Jp(i,o,f),i=i.sibling;i!==null;)Jp(i,o,f),i=i.sibling}function kf(i,o,f){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?f.insertBefore(i,o):f.appendChild(i);else if(h!==4&&(i=i.child,i!==null))for(kf(i,o,f),i=i.sibling;i!==null;)kf(i,o,f),i=i.sibling}var On=null,Ei=!1;function Zi(i,o,f){for(f=f.child;f!==null;)Zp(i,o,f),f=f.sibling}function Zp(i,o,f){if($i&&typeof $i.onCommitFiberUnmount=="function")try{$i.onCommitFiberUnmount(xc,f)}catch{}switch(f.tag){case 5:en||il(f,o);case 6:var h=On,y=Ei;On=null,Zi(i,o,f),On=h,Ei=y,On!==null&&(Ei?(i=On,f=f.stateNode,i.nodeType===8?i.parentNode.removeChild(f):i.removeChild(f)):On.removeChild(f.stateNode));break;case 18:On!==null&&(Ei?(i=On,f=f.stateNode,i.nodeType===8?Sp(i.parentNode,f):i.nodeType===1&&Sp(i,f),Dt(i)):Sp(On,f.stateNode));break;case 4:h=On,y=Ei,On=f.stateNode.containerInfo,Ei=!0,Zi(i,o,f),On=h,Ei=y;break;case 0:case 11:case 14:case 15:if(!en&&(h=f.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){y=h=h.next;do{var w=y,k=w.destroy;w=w.tag,k!==void 0&&((w&2)!==0||(w&4)!==0)&&Tu(f,o,k),y=y.next}while(y!==h)}Zi(i,o,f);break;case 1:if(!en&&(il(f,o),h=f.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=f.memoizedProps,h.state=f.memoizedState,h.componentWillUnmount()}catch(N){sn(f,o,N)}Zi(i,o,f);break;case 21:Zi(i,o,f);break;case 22:f.mode&1?(en=(h=en)||f.memoizedState!==null,Zi(i,o,f),en=h):Zi(i,o,f);break;default:Zi(i,o,f)}}function sl(i){var o=i.updateQueue;if(o!==null){i.updateQueue=null;var f=i.stateNode;f===null&&(f=i.stateNode=new dr),o.forEach(function(h){var y=Fy.bind(null,i,h);f.has(h)||(f.add(h),h.then(y,y))})}}function Dr(i,o){var f=o.deletions;if(f!==null)for(var h=0;h<f.length;h++){var y=f[h];try{var w=i,k=o,N=k;e:for(;N!==null;){switch(N.tag){case 5:On=N.stateNode,Ei=!1;break e;case 3:On=N.stateNode.containerInfo,Ei=!0;break e;case 4:On=N.stateNode.containerInfo,Ei=!0;break e}N=N.return}if(On===null)throw Error(n(160));Zp(w,k,y),On=null,Ei=!1;var j=y.alternate;j!==null&&(j.return=null),y.return=null}catch(J){sn(y,o,J)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)eh(o,i),o=o.sibling}function eh(i,o){var f=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:if(Dr(o,i),Ci(i),h&4){try{xs(3,i,i.return),ku(3,i)}catch(De){sn(i,i.return,De)}try{xs(5,i,i.return)}catch(De){sn(i,i.return,De)}}break;case 1:Dr(o,i),Ci(i),h&512&&f!==null&&il(f,f.return);break;case 5:if(Dr(o,i),Ci(i),h&512&&f!==null&&il(f,f.return),i.flags&32){var y=i.stateNode;try{rr(y,"")}catch(De){sn(i,i.return,De)}}if(h&4&&(y=i.stateNode,y!=null)){var w=i.memoizedProps,k=f!==null?f.memoizedProps:w,N=i.type,j=i.updateQueue;if(i.updateQueue=null,j!==null)try{N==="input"&&w.type==="radio"&&w.name!=null&&Mi(y,w),Fi(N,k);var J=Fi(N,w);for(k=0;k<j.length;k+=2){var he=j[k],ge=j[k+1];he==="style"?pn(y,ge):he==="dangerouslySetInnerHTML"?In(y,ge):he==="children"?rr(y,ge):W(y,he,ge,J)}switch(N){case"input":Dn(y,w);break;case"textarea":ae(y,w);break;case"select":var pe=y._wrapperState.wasMultiple;y._wrapperState.wasMultiple=!!w.multiple;var ke=w.value;ke!=null?Mt(y,!!w.multiple,ke,!1):pe!==!!w.multiple&&(w.defaultValue!=null?Mt(y,!!w.multiple,w.defaultValue,!0):Mt(y,!!w.multiple,w.multiple?[]:"",!1))}y[Xs]=w}catch(De){sn(i,i.return,De)}}break;case 6:if(Dr(o,i),Ci(i),h&4){if(i.stateNode===null)throw Error(n(162));y=i.stateNode,w=i.memoizedProps;try{y.nodeValue=w}catch(De){sn(i,i.return,De)}}break;case 3:if(Dr(o,i),Ci(i),h&4&&f!==null&&f.memoizedState.isDehydrated)try{Dt(o.containerInfo)}catch(De){sn(i,i.return,De)}break;case 4:Dr(o,i),Ci(i);break;case 13:Dr(o,i),Ci(i),y=i.child,y.flags&8192&&(w=y.memoizedState!==null,y.stateNode.isHidden=w,!w||y.alternate!==null&&y.alternate.memoizedState!==null||(rh=Xt())),h&4&&sl(i);break;case 22:if(he=f!==null&&f.memoizedState!==null,i.mode&1?(en=(J=en)||he,Dr(o,i),en=J):Dr(o,i),Ci(i),h&8192){if(J=i.memoizedState!==null,(i.stateNode.isHidden=J)&&!he&&(i.mode&1)!==0)for(Pe=i,he=i.child;he!==null;){for(ge=Pe=he;Pe!==null;){switch(pe=Pe,ke=pe.child,pe.tag){case 0:case 11:case 14:case 15:xs(4,pe,pe.return);break;case 1:il(pe,pe.return);var Ne=pe.stateNode;if(typeof Ne.componentWillUnmount=="function"){h=pe,f=pe.return;try{o=h,Ne.props=o.memoizedProps,Ne.state=o.memoizedState,Ne.componentWillUnmount()}catch(De){sn(h,f,De)}}break;case 5:il(pe,pe.return);break;case 22:if(pe.memoizedState!==null){so(ge);continue}}ke!==null?(ke.return=pe,Pe=ke):so(ge)}he=he.sibling}e:for(he=null,ge=i;;){if(ge.tag===5){if(he===null){he=ge;try{y=ge.stateNode,J?(w=y.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none"):(N=ge.stateNode,j=ge.memoizedProps.style,k=j!=null&&j.hasOwnProperty("display")?j.display:null,N.style.display=cs("display",k))}catch(De){sn(i,i.return,De)}}}else if(ge.tag===6){if(he===null)try{ge.stateNode.nodeValue=J?"":ge.memoizedProps}catch(De){sn(i,i.return,De)}}else if((ge.tag!==22&&ge.tag!==23||ge.memoizedState===null||ge===i)&&ge.child!==null){ge.child.return=ge,ge=ge.child;continue}if(ge===i)break e;for(;ge.sibling===null;){if(ge.return===null||ge.return===i)break e;he===ge&&(he=null),ge=ge.return}he===ge&&(he=null),ge.sibling.return=ge.return,ge=ge.sibling}}break;case 19:Dr(o,i),Ci(i),h&4&&sl(i);break;case 21:break;default:Dr(o,i),Ci(i)}}function Ci(i){var o=i.flags;if(o&2){try{e:{for(var f=i.return;f!==null;){if(L1(f)){var h=f;break e}f=f.return}throw Error(n(160))}switch(h.tag){case 5:var y=h.stateNode;h.flags&32&&(rr(y,""),h.flags&=-33);var w=N1(i);kf(i,w,y);break;case 3:case 4:var k=h.stateNode.containerInfo,N=N1(i);Jp(i,N,k);break;default:throw Error(n(161))}}catch(j){sn(i,i.return,j)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function Rf(i,o,f){Pe=i,th(i)}function th(i,o,f){for(var h=(i.mode&1)!==0;Pe!==null;){var y=Pe,w=y.child;if(y.tag===22&&h){var k=y.memoizedState!==null||bf;if(!k){var N=y.alternate,j=N!==null&&N.memoizedState!==null||en;N=bf;var J=en;if(bf=k,(en=j)&&!J)for(Pe=y;Pe!==null;)k=Pe,j=k.child,k.tag===22&&k.memoizedState!==null?M1(y):j!==null?(j.return=k,Pe=j):M1(y);for(;w!==null;)Pe=w,th(w),w=w.sibling;Pe=y,bf=N,en=J}xi(i)}else(y.subtreeFlags&8772)!==0&&w!==null?(w.return=y,Pe=w):xi(i)}}function xi(i){for(;Pe!==null;){var o=Pe;if((o.flags&8772)!==0){var f=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:en||ku(5,o);break;case 1:var h=o.stateNode;if(o.flags&4&&!en)if(f===null)h.componentDidMount();else{var y=o.elementType===o.type?f.memoizedProps:ri(o.type,f.memoizedProps);h.componentDidUpdate(y,f.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var w=o.updateQueue;w!==null&&kp(o,w,h);break;case 3:var k=o.updateQueue;if(k!==null){if(f=null,o.child!==null)switch(o.child.tag){case 5:f=o.child.stateNode;break;case 1:f=o.child.stateNode}kp(o,k,f)}break;case 5:var N=o.stateNode;if(f===null&&o.flags&4){f=N;var j=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":j.autoFocus&&f.focus();break;case"img":j.src&&(f.src=j.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var J=o.alternate;if(J!==null){var he=J.memoizedState;if(he!==null){var ge=he.dehydrated;ge!==null&&Dt(ge)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}en||o.flags&512&&Tf(o)}catch(pe){sn(o,o.return,pe)}}if(o===i){Pe=null;break}if(f=o.sibling,f!==null){f.return=o.return,Pe=f;break}Pe=o.return}}function so(i){for(;Pe!==null;){var o=Pe;if(o===i){Pe=null;break}var f=o.sibling;if(f!==null){f.return=o.return,Pe=f;break}Pe=o.return}}function M1(i){for(;Pe!==null;){var o=Pe;try{switch(o.tag){case 0:case 11:case 15:var f=o.return;try{ku(4,o)}catch(j){sn(o,f,j)}break;case 1:var h=o.stateNode;if(typeof h.componentDidMount=="function"){var y=o.return;try{h.componentDidMount()}catch(j){sn(o,y,j)}}var w=o.return;try{Tf(o)}catch(j){sn(o,w,j)}break;case 5:var k=o.return;try{Tf(o)}catch(j){sn(o,k,j)}}}catch(j){sn(o,o.return,j)}if(o===i){Pe=null;break}var N=o.sibling;if(N!==null){N.return=o.return,Pe=N;break}Pe=o.return}}var D1=Math.ceil,If=Q.ReactCurrentDispatcher,nh=Q.ReactCurrentOwner,ii=Q.ReactCurrentBatchConfig,Ct=0,An=null,yn=null,Hn=0,Fr=0,ol=_r(0),xn=0,Ru=null,oo=0,Iu=0,Of=0,Ou=null,xr=null,rh=0,qo=1/0,bs=null,Af=!1,ih=null,ao=null,Pf=!1,lo=null,pr=0,Au=0,sh=null,Lf=-1,Pu=0;function hr(){return(Ct&6)!==0?Xt():Lf!==-1?Lf:Lf=Xt()}function uo(i){return(i.mode&1)===0?1:(Ct&2)!==0&&Hn!==0?Hn&-Hn:m1.transition!==null?(Pu===0&&(Pu=Zd()),Pu):(i=Lt,i!==0||(i=window.event,i=i===void 0?16:Hm(i.type)),i)}function bi(i,o,f,h){if(50<Au)throw Au=0,sh=null,Error(n(185));Vl(i,f,h),((Ct&2)===0||i!==An)&&(i===An&&((Ct&2)===0&&(Iu|=f),xn===4&&co(i,Hn)),br(i,h),f===1&&Ct===0&&(o.mode&1)===0&&(qo=Xt()+500,Zc&&Zs()))}function br(i,o){var f=i.callbackNode;ay(i,o);var h=To(i,i===An?Hn:0);if(h===0)f!==null&&Im(f),i.callbackNode=null,i.callbackPriority=0;else if(o=h&-h,i.callbackPriority!==o){if(f!=null&&Im(f),o===1)i.tag===0?No(F1.bind(null,i)):d1(F1.bind(null,i)),Yc(function(){(Ct&6)===0&&Zs()}),f=null;else{switch(ko(h)){case 1:f=Xd;break;case 4:f=Om;break;case 16:f=Wl;break;case 536870912:f=Jd;break;default:f=Wl}f=W1(f,Nf.bind(null,i))}i.callbackPriority=o,i.callbackNode=f}}function Nf(i,o){if(Lf=-1,Pu=0,(Ct&6)!==0)throw Error(n(327));var f=i.callbackNode;if(al()&&i.callbackNode!==f)return null;var h=To(i,i===An?Hn:0);if(h===0)return null;if((h&30)!==0||(h&i.expiredLanes)!==0||o)o=Mf(i,h);else{o=h;var y=Ct;Ct|=2;var w=j1();(An!==i||Hn!==o)&&(bs=null,qo=Xt()+500,Go(i,o));do try{Ly();break}catch(N){$1(i,N)}while(!0);ys(),If.current=w,Ct=y,yn!==null?o=0:(An=null,Hn=0,o=xn)}if(o!==0){if(o===2&&(y=Tc(i),y!==0&&(h=y,o=oh(i,y))),o===1)throw f=Ru,Go(i,0),co(i,h),br(i,Xt()),f;if(o===6)co(i,h);else{if(y=i.current.alternate,(h&30)===0&&!Ay(y)&&(o=Mf(i,h),o===2&&(w=Tc(i),w!==0&&(h=w,o=oh(i,w))),o===1))throw f=Ru,Go(i,0),co(i,h),br(i,Xt()),f;switch(i.finishedWork=y,i.finishedLanes=h,o){case 0:case 1:throw Error(n(345));case 2:Ko(i,xr,bs);break;case 3:if(co(i,h),(h&130023424)===h&&(o=rh+500-Xt(),10<o)){if(To(i,0)!==0)break;if(y=i.suspendedLanes,(y&h)!==h){hr(),i.pingedLanes|=i.suspendedLanes&y;break}i.timeoutHandle=Ys(Ko.bind(null,i,xr,bs),o);break}Ko(i,xr,bs);break;case 4:if(co(i,h),(h&4194240)===h)break;for(o=i.eventTimes,y=-1;0<h;){var k=31-yi(h);w=1<<k,k=o[k],k>y&&(y=k),h&=~w}if(h=y,h=Xt()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*D1(h/1960))-h,10<h){i.timeoutHandle=Ys(Ko.bind(null,i,xr,bs),h);break}Ko(i,xr,bs);break;case 5:Ko(i,xr,bs);break;default:throw Error(n(329))}}}return br(i,Xt()),i.callbackNode===f?Nf.bind(null,i):null}function oh(i,o){var f=Ou;return i.current.memoizedState.isDehydrated&&(Go(i,o).flags|=256),i=Mf(i,o),i!==2&&(o=xr,xr=f,o!==null&&ah(o)),i}function ah(i){xr===null?xr=i:xr.push.apply(xr,i)}function Ay(i){for(var o=i;;){if(o.flags&16384){var f=o.updateQueue;if(f!==null&&(f=f.stores,f!==null))for(var h=0;h<f.length;h++){var y=f[h],w=y.getSnapshot;y=y.value;try{if(!Y(w(),y))return!1}catch{return!1}}}if(f=o.child,o.subtreeFlags&16384&&f!==null)f.return=o,o=f;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function co(i,o){for(o&=~Of,o&=~Iu,i.suspendedLanes|=o,i.pingedLanes&=~o,i=i.expirationTimes;0<o;){var f=31-yi(o),h=1<<f;i[f]=-1,o&=~h}}function F1(i){if((Ct&6)!==0)throw Error(n(327));al();var o=To(i,0);if((o&1)===0)return br(i,Xt()),null;var f=Mf(i,o);if(i.tag!==0&&f===2){var h=Tc(i);h!==0&&(o=h,f=oh(i,h))}if(f===1)throw f=Ru,Go(i,0),co(i,o),br(i,Xt()),f;if(f===6)throw Error(n(345));return i.finishedWork=i.current.alternate,i.finishedLanes=o,Ko(i,xr,bs),br(i,Xt()),null}function lh(i,o){var f=Ct;Ct|=1;try{return i(o)}finally{Ct=f,Ct===0&&(qo=Xt()+500,Zc&&Zs())}}function Vo(i){lo!==null&&lo.tag===0&&(Ct&6)===0&&al();var o=Ct;Ct|=1;var f=ii.transition,h=Lt;try{if(ii.transition=null,Lt=1,i)return i()}finally{Lt=h,ii.transition=f,Ct=o,(Ct&6)===0&&Zs()}}function uh(){Fr=ol.current,Kt(ol)}function Go(i,o){i.finishedWork=null,i.finishedLanes=0;var f=i.timeoutHandle;if(f!==-1&&(i.timeoutHandle=-1,au(f)),yn!==null)for(f=yn.return;f!==null;){var h=f;switch(Fo(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&Jc();break;case 3:no(),Kt(wr),Kt(Gn),cf();break;case 5:uf(h);break;case 4:no();break;case 13:Kt(Zt);break;case 19:Kt(Zt);break;case 10:sf(h.type._context);break;case 22:case 23:uh()}f=f.return}if(An=i,yn=i=Ti(i.current,null),Hn=Fr=o,xn=0,Ru=null,Of=Iu=oo=0,xr=Ou=null,jo!==null){for(o=0;o<jo.length;o++)if(f=jo[o],h=f.interleaved,h!==null){f.interleaved=null;var y=h.next,w=f.pending;if(w!==null){var k=w.next;w.next=y,h.next=k}f.pending=h}jo=null}return i}function $1(i,o){do{var f=yn;try{if(ys(),hu.current=gf,Qa){for(var h=rn.memoizedState;h!==null;){var y=h.queue;y!==null&&(y.pending=null),h=h.next}Qa=!1}if(ro=0,Cn=un=rn=null,mu=!1,Ho=0,nh.current=null,f===null||f.return===null){xn=1,Ru=o,yn=null;break}e:{var w=i,k=f.return,N=f,j=o;if(o=Hn,N.flags|=32768,j!==null&&typeof j=="object"&&typeof j.then=="function"){var J=j,he=N,ge=he.tag;if((he.mode&1)===0&&(ge===0||ge===11||ge===15)){var pe=he.alternate;pe?(he.updateQueue=pe.updateQueue,he.memoizedState=pe.memoizedState,he.lanes=pe.lanes):(he.updateQueue=null,he.memoizedState=null)}var ke=T1(k);if(ke!==null){ke.flags&=-257,zp(ke,k,N,w,o),ke.mode&1&&wu(w,J,o),o=ke,j=J;var Ne=o.updateQueue;if(Ne===null){var De=new Set;De.add(j),o.updateQueue=De}else Ne.add(j);break e}else{if((o&1)===0){wu(w,J,o),ch();break e}j=Error(n(426))}}else if(Yt&&N.mode&1){var cn=T1(k);if(cn!==null){(cn.flags&65536)===0&&(cn.flags|=256),zp(cn,k,N,w,o),Gi(Wo(j,N));break e}}w=j=Wo(j,N),xn!==4&&(xn=2),Ou===null?Ou=[w]:Ou.push(w),w=k;do{switch(w.tag){case 3:w.flags|=65536,o&=-o,w.lanes|=o;var G=_u(w,j,o);v1(w,G);break e;case 1:N=j;var z=w.type,K=w.stateNode;if((w.flags&128)===0&&(typeof z.getDerivedStateFromError=="function"||K!==null&&typeof K.componentDidCatch=="function"&&(ao===null||!ao.has(K)))){w.flags|=65536,o&=-o,w.lanes|=o;var we=Sf(w,N,o);v1(w,we);break e}}w=w.return}while(w!==null)}H1(f)}catch(Ue){o=Ue,yn===f&&f!==null&&(yn=f=f.return);continue}break}while(!0)}function j1(){var i=If.current;return If.current=gf,i===null?gf:i}function ch(){(xn===0||xn===3||xn===2)&&(xn=4),An===null||(oo&268435455)===0&&(Iu&268435455)===0||co(An,Hn)}function Mf(i,o){var f=Ct;Ct|=2;var h=j1();(An!==i||Hn!==o)&&(bs=null,Go(i,o));do try{Py();break}catch(y){$1(i,y)}while(!0);if(ys(),Ct=f,If.current=h,yn!==null)throw Error(n(261));return An=null,Hn=0,xn}function Py(){for(;yn!==null;)U1(yn)}function Ly(){for(;yn!==null&&!Cc();)U1(yn)}function U1(i){var o=z1(i.alternate,i,Fr);i.memoizedProps=i.pendingProps,o===null?H1(i):yn=o,nh.current=null}function H1(i){var o=i;do{var f=o.alternate;if(i=o.return,(o.flags&32768)===0){if(f=Ry(f,o,Fr),f!==null){yn=f;return}}else{if(f=Iy(f,o),f!==null){f.flags&=32767,yn=f;return}
vendor: 6,562 bytes, line 41
41if(i!==null)i.flags|=32768,i.subtreeFlags=0,i.deletions=null;else{xn=6,yn=null;return}}if(o=o.sibling,o!==null){yn=o;return}yn=o=i}while(o!==null);xn===0&&(xn=5)}function Ko(i,o,f){var h=Lt,y=ii.transition;try{ii.transition=null,Lt=1,Ny(i,o,f,h)}finally{ii.transition=y,Lt=h}return null}function Ny(i,o,f,h){do al();while(lo!==null);if((Ct&6)!==0)throw Error(n(327));f=i.finishedWork;var y=i.finishedLanes;if(f===null)return null;if(i.finishedWork=null,i.finishedLanes=0,f===i.current)throw Error(n(177));i.callbackNode=null,i.callbackPriority=0;var w=f.lanes|f.childLanes;if(Dm(i,w),i===An&&(yn=An=null,Hn=0),(f.subtreeFlags&2064)===0&&(f.flags&2064)===0||Pf||(Pf=!0,W1(Wl,function(){return al(),null})),w=(f.flags&15990)!==0,(f.subtreeFlags&15990)!==0||w){w=ii.transition,ii.transition=null;var k=Lt;Lt=1;var N=Ct;Ct|=4,nh.current=null,Oy(i,f),eh(f,i),xy(Lo),Oc=!!su,Lo=su=null,i.current=f,Rf(f),iy(),Ct=N,Lt=k,ii.transition=w}else i.current=f;if(Pf&&(Pf=!1,lo=i,pr=y),w=i.pendingLanes,w===0&&(ao=null),oy(f.stateNode),br(i,Xt()),o!==null)for(h=i.onRecoverableError,f=0;f<o.length;f++)y=o[f],h(y.value,{componentStack:y.stack,digest:y.digest});if(Af)throw Af=!1,i=ih,ih=null,i;return(pr&1)!==0&&i.tag!==0&&al(),w=i.pendingLanes,(w&1)!==0?i===sh?Au++:(Au=0,sh=i):Au=0,Zs(),null}function al(){if(lo!==null){var i=ko(pr),o=ii.transition,f=Lt;try{if(ii.transition=null,Lt=16>i?16:i,lo===null)var h=!1;else{if(i=lo,lo=null,pr=0,(Ct&6)!==0)throw Error(n(331));var y=Ct;for(Ct|=4,Pe=i.current;Pe!==null;){var w=Pe,k=w.child;if((Pe.flags&16)!==0){var N=w.deletions;if(N!==null){for(var j=0;j<N.length;j++){var J=N[j];for(Pe=J;Pe!==null;){var he=Pe;switch(he.tag){case 0:case 11:case 15:xs(8,he,w)}var ge=he.child;if(ge!==null)ge.return=he,Pe=ge;else for(;Pe!==null;){he=Pe;var pe=he.sibling,ke=he.return;if(P1(he),he===J){Pe=null;break}if(pe!==null){pe.return=ke,Pe=pe;break}Pe=ke}}}var Ne=w.alternate;if(Ne!==null){var De=Ne.child;if(De!==null){Ne.child=null;do{var cn=De.sibling;De.sibling=null,De=cn}while(De!==null)}}Pe=w}}if((w.subtreeFlags&2064)!==0&&k!==null)k.return=w,Pe=k;else e:for(;Pe!==null;){if(w=Pe,(w.flags&2048)!==0)switch(w.tag){case 0:case 11:case 15:xs(9,w,w.return)}var G=w.sibling;if(G!==null){G.return=w.return,Pe=G;break e}Pe=w.return}}var z=i.current;for(Pe=z;Pe!==null;){k=Pe;var K=k.child;if((k.subtreeFlags&2064)!==0&&K!==null)K.return=k,Pe=K;else e:for(k=z;Pe!==null;){if(N=Pe,(N.flags&2048)!==0)try{switch(N.tag){case 0:case 11:case 15:ku(9,N)}}catch(Ue){sn(N,N.return,Ue)}if(N===k){Pe=null;break e}var we=N.sibling;if(we!==null){we.return=N.return,Pe=we;break e}Pe=N.return}}if(Ct=y,Zs(),$i&&typeof $i.onPostCommitFiberRoot=="function")try{$i.onPostCommitFiberRoot(xc,i)}catch{}h=!0}return h}finally{Lt=f,ii.transition=o}}return!1}function Df(i,o,f){o=Wo(f,o),o=_u(i,o,1),i=ti(i,o,1),o=hr(),i!==null&&(Vl(i,1,o),br(i,o))}function sn(i,o,f){if(i.tag===3)Df(i,i,f);else for(;o!==null;){if(o.tag===3){Df(o,i,f);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(ao===null||!ao.has(h))){i=Wo(f,i),i=Sf(o,i,1),o=ti(o,i,1),i=hr(),o!==null&&(Vl(o,1,i),br(o,i));break}}o=o.return}}function My(i,o,f){var h=i.pingCache;h!==null&&h.delete(o),o=hr(),i.pingedLanes|=i.suspendedLanes&f,An===i&&(Hn&f)===f&&(xn===4||xn===3&&(Hn&130023424)===Hn&&500>Xt()-rh?Go(i,0):Of|=f),br(i,o)}function B1(i,o){o===0&&((i.mode&1)===0?o=1:(o=bc,bc<<=1,(bc&130023424)===0&&(bc=4194304)));var f=hr();i=vs(i,o),i!==null&&(Vl(i,o,f),br(i,f))}function Dy(i){var o=i.memoizedState,f=0;o!==null&&(f=o.retryLane),B1(i,f)}function Fy(i,o){var f=0;switch(i.tag){case 13:var h=i.stateNode,y=i.memoizedState;y!==null&&(f=y.retryLane);break;case 19:h=i.stateNode;break;default:throw Error(n(314))}h!==null&&h.delete(o),B1(i,f)}var z1;z1=function(i,o,f){if(i!==null)if(i.memoizedProps!==o.pendingProps||wr.current)fr=!0;else{if((i.lanes&f)===0&&(o.flags&128)===0)return fr=!1,I1(i,o,f);fr=(i.flags&131072)!==0}else fr=!1,Yt&&(o.flags&1048576)!==0&&p1(o,tf,o.index);switch(o.lanes=0,o.tag){case 2:var h=o.type;xf(i,o),i=o.pendingProps;var y=qa(o,Gn.current);to(o,f),y=Bo(null,o,h,i,y,f);var w=ff();return o.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Sr(h)?(w=!0,Qr(o)):w=!1,o.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,af(o),y.updater=_f,o.stateNode=y,y._reactInternals=o,Bp(o,h,i,f),o=Yp(null,o,h,!0,w,f)):(o.tag=0,Yt&&w&&lu(o),$n(null,o,y,f),o=o.child),o;case 16:h=o.elementType;e:{switch(xf(i,o),i=o.pendingProps,y=h._init,h=y(h._payload),o.type=h,y=o.tag=jy(h),i=ri(h,i),y){case 0:o=Gp(null,o,h,i,f);break e;case 1:o=Kp(null,o,h,i,f);break e;case 11:o=k1(null,o,h,i,f);break e;case 14:o=Wp(null,o,h,ri(h.type,i),f);break e}throw Error(n(306,h,""))}return o;case 0:return h=o.type,y=o.pendingProps,y=o.elementType===h?y:ri(h,y),Gp(i,o,h,y,f);case 1:return h=o.type,y=o.pendingProps,y=o.elementType===h?y:ri(h,y),Kp(i,o,h,y,f);case 3:e:{if(R1(o),i===null)throw Error(n(387));h=o.pendingProps,w=o.memoizedState,y=w.element,y1(i,o),Ka(o,h,null,f);var k=o.memoizedState;if(h=k.element,w.isDehydrated)if(w={element:h,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},o.updateQueue.baseState=w,o.memoizedState=w,o.flags&256){y=Wo(Error(n(423)),o),o=Ji(i,o,h,f,y);break e}else if(h!==y){y=Wo(Error(n(424)),o),o=Ji(i,o,h,f,y);break e}else for(Nr=Qs(o.stateNode.containerInfo.firstChild),Yn=o,Yt=!0,_i=null,f=rf(o,null,h,f),o.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Vi(),h===y){o=Si(i,o,f);break e}$n(i,o,h,f)}o=o.child}return o;case 5:return Ip(o),i===null&&Er(o),h=o.type,y=o.pendingProps,w=i!==null?i.memoizedProps:null,k=y.children,ou(h,y)?k=null:w!==null&&ou(h,w)&&(o.flags|=32),Vp(i,o),$n(i,o,k,f),o.child;case 6:return i===null&&Er(o),null;case 13:return Cf(i,o,f);case 4:return Rp(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=on(o,null,h,f):$n(i,o,h,f),o.child;case 11:return h=o.type,y=o.pendingProps,y=o.elementType===h?y:ri(h,y),k1(i,o,h,y,f);case 7:return $n(i,o,o.pendingProps,f),o.child;case 8:return $n(i,o,o.pendingProps.children,f),o.child;case 12:return $n(i,o,o.pendingProps.children,f),o.child;case 10:e:{if(h=o.type._context,y=o.pendingProps,w=o.memoizedProps,k=y.value,qt(fu,h._currentValue),h._currentValue=k,w!==null)if(Y(w.value,k)){if(w.children===y.children&&!wr.current){o=Si(i,o,f);break e}}else for(w=o.child,w!==null&&(w.return=o);w!==null;){var N=w.dependencies;
vendor: 12,410 bytes, line 41
41if(N!==null){k=w.child;for(var j=N.firstContext;j!==null;){if(j.context===h){if(w.tag===1){j=_s(-1,f&-f),j.tag=2;var J=w.updateQueue;if(J!==null){J=J.shared;var he=J.pending;he===null?j.next=j:(j.next=he.next,he.next=j),J.pending=j}}w.lanes|=f,j=w.alternate,j!==null&&(j.lanes|=f),Fn(w.return,f,o),N.lanes|=f;break}j=j.next}}else if(w.tag===10)k=w.type===o.type?null:w.child;else if(w.tag===18){if(k=w.return,k===null)throw Error(n(341));k.lanes|=f,N=k.alternate,N!==null&&(N.lanes|=f),Fn(k,f,o),k=w.sibling}else k=w.child;if(k!==null)k.return=w;else for(k=w;k!==null;){if(k===o){k=null;break}if(w=k.sibling,w!==null){w.return=k.return,k=w;break}k=k.return}w=k}$n(i,o,y.children,f),o=o.child}return o;case 9:return y=o.type,h=o.pendingProps.children,to(o,f),y=Zr(y),h=h(y),o.flags|=1,$n(i,o,h,f),o.child;case 14:return h=o.type,y=ri(h,o.pendingProps),y=ri(h.type,y),Wp(i,o,h,y,f);case 15:return Xi(i,o,o.type,o.pendingProps,f);case 17:return h=o.type,y=o.pendingProps,y=o.elementType===h?y:ri(h,y),xf(i,o),o.tag=1,Sr(h)?(i=!0,Qr(o)):i=!1,to(o,f),zo(o,h,y),Bp(o,h,y,f),Yp(null,o,h,!0,i,f);case 19:return io(i,o,f);case 22:return qp(i,o,f)}throw Error(n(156,o.tag))};function W1(i,o){return Rm(i,o)}function $y(i,o,f,h){this.tag=i,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function si(i,o,f,h){return new $y(i,o,f,h)}function Ff(i){return i=i.prototype,!(!i||!i.isReactComponent)}function jy(i){if(typeof i=="function")return Ff(i)?1:0;if(i!=null){if(i=i.$$typeof,i===de)return 11;if(i===We)return 14}return 2}function Ti(i,o){var f=i.alternate;return f===null?(f=si(i.tag,o,i.key,i.mode),f.elementType=i.elementType,f.type=i.type,f.stateNode=i.stateNode,f.alternate=i,i.alternate=f):(f.pendingProps=o,f.type=i.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=i.flags&14680064,f.childLanes=i.childLanes,f.lanes=i.lanes,f.child=i.child,f.memoizedProps=i.memoizedProps,f.memoizedState=i.memoizedState,f.updateQueue=i.updateQueue,o=i.dependencies,f.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},f.sibling=i.sibling,f.index=i.index,f.ref=i.ref,f}function $f(i,o,f,h,y,w){var k=2;if(h=i,typeof i=="function")Ff(i)&&(k=1);else if(typeof i=="string")k=5;else e:switch(i){case Z:return Yo(f.children,y,w,o);case ue:k=8,y|=8;break;case X:return i=si(12,f,o,y|2),i.elementType=X,i.lanes=w,i;case xe:return i=si(13,f,o,y),i.elementType=xe,i.lanes=w,i;case Re:return i=si(19,f,o,y),i.elementType=Re,i.lanes=w,i;case Ie:return jf(f,y,w,o);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case ce:k=10;break e;case ye:k=9;break e;case de:k=11;break e;case We:k=14;break e;case fe:k=16,h=null;break e}throw Error(n(130,i==null?i:typeof i,""))}return o=si(k,f,o,y),o.elementType=i,o.type=h,o.lanes=w,o}function Yo(i,o,f,h){return i=si(7,i,h,o),i.lanes=f,i}function jf(i,o,f,h){return i=si(22,i,h,o),i.elementType=Ie,i.lanes=f,i.stateNode={isHidden:!1},i}function fh(i,o,f){return i=si(6,i,null,o),i.lanes=f,i}function dh(i,o,f){return o=si(4,i.children!==null?i.children:[],i.key,o),o.lanes=f,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function Uy(i,o,f,h,y){this.tag=o,this.containerInfo=i,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ql(0),this.expirationTimes=ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ql(0),this.identifierPrefix=h,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null}function ph(i,o,f,h,y,w,k,N,j){return i=new Uy(i,o,f,N,j),o===1?(o=1,w===!0&&(o|=8)):o=0,w=si(3,null,null,o),i.current=w,w.stateNode=i,w.memoizedState={element:h,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},af(w),i}function Hy(i,o,f){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:h==null?null:""+h,children:i,containerInfo:o,implementation:f}}function q1(i){if(!i)return Js;i=i._reactInternals;e:{if(bo(i)!==i||i.tag!==1)throw Error(n(170));var o=i;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Sr(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(n(171))}if(i.tag===1){var f=i.type;if(Sr(f))return c1(i,f,o)}return o}function V1(i,o,f,h,y,w,k,N,j){return i=ph(f,h,!0,i,y,w,k,N,j),i.context=q1(null),f=i.current,h=hr(),y=uo(f),w=_s(h,y),w.callback=o??null,ti(f,w,y),i.current.lanes=y,Vl(i,y,h),br(i,h),i}function Uf(i,o,f,h){var y=o.current,w=hr(),k=uo(y);return f=q1(f),o.context===null?o.context=f:o.pendingContext=f,o=_s(w,k),o.payload={element:i},h=h===void 0?null:h,h!==null&&(o.callback=h),i=ti(y,o,k),i!==null&&(bi(i,y,k,w),lf(i,y,k)),k}function Hf(i){if(i=i.current,!i.child)return null;switch(i.child.tag){case 5:return i.child.stateNode;default:return i.child.stateNode}}function G1(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var f=i.retryLane;i.retryLane=f!==0&&f<o?f:o}}function hh(i,o){G1(i,o),(i=i.alternate)&&G1(i,o)}function By(){return null}var K1=typeof reportError=="function"?reportError:function(i){console.error(i)};function Bf(i){this._internalRoot=i}Lu.prototype.render=Bf.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(n(409));Uf(i,o,null,null)},Lu.prototype.unmount=Bf.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;Vo(function(){Uf(null,i,null,null)}),o[Lr]=null}};function Lu(i){this._internalRoot=i}Lu.prototype.unstable_scheduleHydration=function(i){if(i){var o=tp();i={blockedOn:null,target:i,priority:o};for(var f=0;f<Ws.length&&o!==0&&o<Ws[f].priority;f++);Ws.splice(f,0,i),f===0&&jm(i)}};function mh(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function zf(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11&&(i.nodeType!==8||i.nodeValue!==" react-mount-point-unstable "))}function Y1(){}function zy(i,o,f,h,y){if(y){if(typeof h=="function"){var w=h;h=function(){var J=Hf(k);w.call(J)}}var k=V1(o,h,i,0,null,!1,!1,"",Y1);return i._reactRootContainer=k,i[Lr]=k.current,Ks(i.nodeType===8?i.parentNode:i),Vo(),k}for(;y=i.lastChild;)i.removeChild(y);if(typeof h=="function"){var N=h;h=function(){var J=Hf(j);N.call(J)}}var j=ph(i,0,!1,null,null,!1,!1,"",Y1);return i._reactRootContainer=j,i[Lr]=j.current,Ks(i.nodeType===8?i.parentNode:i),Vo(function(){Uf(o,j,f,h)}),j}function Qo(i,o,f,h,y){var w=f._reactRootContainer;if(w){var k=w;if(typeof y=="function"){var N=y;y=function(){var j=Hf(k);N.call(j)}}Uf(o,k,i,y)}else k=zy(f,o,i,y,h);return Hf(k)}ep=function(i){switch(i.tag){case 3:var o=i.stateNode;if(o.current.memoizedState.isDehydrated){var f=ka(o.pendingLanes);f!==0&&(Gl(o,f|1),br(o,Xt()),(Ct&6)===0&&(qo=Xt()+500,Zs()))}break;case 13:Vo(function(){var h=vs(i,1);if(h!==null){var y=hr();bi(h,i,1,y)}}),hh(i,1)}},kc=function(i){if(i.tag===13){var o=vs(i,134217728);if(o!==null){var f=hr();bi(o,i,134217728,f)}hh(i,134217728)}},Fm=function(i){if(i.tag===13){var o=uo(i),f=vs(i,o);if(f!==null){var h=hr();bi(f,i,o,h)}hh(i,o)}},tp=function(){return Lt},np=function(i,o){var f=Lt;try{return Lt=i,o()}finally{Lt=f}},Ca=function(i,o,f){switch(o){case"input":if(Dn(i,f),o=f.name,f.type==="radio"&&o!=null){for(f=i;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<f.length;o++){var h=f[o];if(h!==i&&h.form===i.form){var y=Xc(h);if(!y)throw Error(n(90));Sn(h),Dn(h,y)}}}break;case"textarea":ae(i,f);break;case"select":o=f.value,o!=null&&Mt(i,!!f.multiple,o,!1)}},xo=lh,xa=Vo;var Wy={usingClientEntryPoint:!1,Events:[Vn,ut,Xc,Gr,gr,lh]},Nu={findFiberByHostInstance:Bi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},qy={bundleType:Nu.bundleType,version:Nu.version,rendererPackageName:Nu.rendererPackageName,rendererConfig:Nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(i){return i=Tm(i),i===null?null:i.stateNode},findFiberByHostInstance:Nu.findFiberByHostInstance||By,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 Wf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wf.isDisabled&&Wf.supportsFiber)try{xc=Wf.inject(qy),$i=Wf}catch{}}return ui.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wy,ui.createPortal=function(i,o){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!mh(o))throw Error(n(200));return Hy(i,o,null,f)},ui.createRoot=function(i,o){if(!mh(i))throw Error(n(299));var f=!1,h="",y=K1;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onRecoverableError!==void 0&&(y=o.onRecoverableError)),o=ph(i,1,!1,null,null,f,!1,h,y),i[Lr]=o.current,Ks(i.nodeType===8?i.parentNode:i),new Bf(o)},ui.findDOMNode=function(i){if(i==null)return null;if(i.nodeType===1)return i;var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(n(188)):(i=Object.keys(i).join(","),Error(n(268,i)));return i=Tm(o),i=i===null?null:i.stateNode,i},ui.flushSync=function(i){return Vo(i)},ui.hydrate=function(i,o,f){if(!zf(o))throw Error(n(200));return Qo(null,i,o,!0,f)},ui.hydrateRoot=function(i,o,f){if(!mh(i))throw Error(n(405));var h=f!=null&&f.hydratedSources||null,y=!1,w="",k=K1;if(f!=null&&(f.unstable_strictMode===!0&&(y=!0),f.identifierPrefix!==void 0&&(w=f.identifierPrefix),f.onRecoverableError!==void 0&&(k=f.onRecoverableError)),o=V1(o,null,i,1,f??null,y,!1,w,k),i[Lr]=o.current,Ks(i),h)for(i=0;i<h.length;i++)f=h[i],y=f._getVersion,y=y(f._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[f,y]:o.mutableSourceEagerHydrationData.push(f,y);return new Lu(o)},ui.render=function(i,o,f){if(!zf(o))throw Error(n(200));return Qo(null,i,o,!1,f)},ui.unmountComponentAtNode=function(i){if(!zf(i))throw Error(n(40));return i._reactRootContainer?(Vo(function(){Qo(null,null,i,!1,function(){i._reactRootContainer=null,i[Lr]=null})}),!0):!1},ui.unstable_batchedUpdates=lh,ui.unstable_renderSubtreeIntoContainer=function(i,o,f,h){if(!zf(f))throw Error(n(200));if(i==null||i._reactInternals===void 0)throw Error(n(38));return Qo(i,o,f,!1,h)},ui.version="18.3.1-next-f1338f8080-20240426",ui}var Jw;function Q3(){if(Jw)return av.exports;Jw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),av.exports=c7(),av.exports}var Zw;function f7(){if(Zw)return tg;Zw=1;var e=Q3();return tg.createRoot=e.createRoot,tg.hydrateRoot=e.hydrateRoot,tg}var d7=f7();const p7="modulepreload",h7=function(e){return"/"+e},eS={},Nn=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));s=Promise.allSettled(n.map(p=>{if(p=h7(p),p in eS)return;eS[p]=!0;const g=p.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const _=document.createElement("link");if(_.rel=g?"stylesheet":p7,g||(_.as="script"),_.crossOrigin="",_.href=p,d&&_.setAttribute("nonce",d),document.head.appendChild(_),g)return new Promise((E,x)=>{_.addEventListener("load",E),_.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function l(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return s.then(c=>{for(const d of c||[])d.status==="rejected"&&l(d.reason);return t().catch(l)})};
41var C=tm();const Me=em(C),tS=s7({__proto__:null,default:Me},[C]);var vh={},nS;function m7(){if(nS)return vh;nS=1,Object.defineProperty(vh,"__esModule",{value:!0}),vh.parse=c,vh.serialize=g;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,l=(()=>{const E=function(){};return E.prototype=Object.create(null),E})();function c(E,x){const b=new l,R=E.length;if(R<2)return b;const I=(x==null?void 0:x.decode)||v;let L=0;do{const H=E.indexOf("=",L);if(H===-1)break;const W=E.indexOf(";",L),Q=W===-1?R:W;if(H>Q){L=E.lastIndexOf(";",H-1)+1;continue}const te=d(E,L,H),D=p(E,H,te),Z=E.slice(te,D);if(b[Z]===void 0){let ue=d(E,H+1,Q),X=p(E,Q,ue);const ce=I(E.slice(ue,X));b[Z]=ce}L=Q+1}while(L<R);return b}function d(E,x,b){do{const R=E.charCodeAt(x);if(R!==32&&R!==9)return x}while(++x<b);return b}function p(E,x,b){for(;x>b;){const R=E.charCodeAt(--x);if(R!==32&&R!==9)return x+1}return b}function g(E,x,b){const R=(b==null?void 0:b.encode)||encodeURIComponent;if(!e.test(E))throw new TypeError(`argument name is invalid: ${E}`);const I=R(x);if(!t.test(I))throw new TypeError(`argument val is invalid: ${x}`);let L=E+"="+I;if(!b)return L;if(b.maxAge!==void 0){if(!Number.isInteger(b.maxAge))throw new TypeError(`option maxAge is invalid: ${b.maxAge}`);L+="; Max-Age="+b.maxAge}if(b.domain){if(!n.test(b.domain))throw new TypeError(`option domain is invalid: ${b.domain}`);L+="; Domain="+b.domain}if(b.path){if(!r.test(b.path))throw new TypeError(`option path is invalid: ${b.path}`);L+="; Path="+b.path}if(b.expires){if(!_(b.expires)||!Number.isFinite(b.expires.valueOf()))throw new TypeError(`option expires is invali
41d: ${b.expires}`);L+="; Expires="+b.expires.toUTCString()}if(b.httpOnly&&(L+="; HttpOnly"),b.secure&&(L+="; Secure"),b.partitioned&&(L+="; Partitioned"),b.priority)switch(typeof b.priority=="string"?b.priority.toLowerCase():void 0){case"low":L+="; Priority=Low";break;case"medium":L+="; Priority=Medium";break;case"high":L+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${b.priority}`)}if(b.sameSite)switch(typeof b.sameSite=="string"?b.sameSite.toLowerCase():b.sameSite){case!0:case"strict":L+="; SameSite=Strict";break;case"lax":L+="; SameSite=Lax";break;case"none":L+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${b.sameSite}`)}return L}function v(E){if(E.indexOf("%")===-1)return E;try{return decodeURIComponent(E)}catch{return E}}function _(E){return s.call(E)==="[object Date]"}return vh}m7();/**
42 * react-router v7.3.0
43 *
44 * Copyright (c) Remix Software Inc.
45 *
46 * This source code is licensed under the MIT license found in the
47 * LICENSE.md file in the root directory of this source tree.
48 *
49 * @license MIT
50 */var rS="popstate";function g7(e={}){function t(r,s){let{pathname:l,search:c,hash:d}=r.location;return Yv("",{pathname:l,search:c,hash:d},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Fh(s)}return v7(t,n,null,e)}function an(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function as(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function y7(){return Math.random().toString(36).substring(2,10)}function iS(e,t){return{usr:e.state,key:e.key,idx:t}}function Yv(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Od(t):t,state:n,key:t&&t.key||r||y7()}}function Fh({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Od(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function v7(e,t,n,r={}){let{window:s=document.defaultView,v5Compat:l=!1}=r,c=s.history,d="POP",p=null,g=v();g==null&&(g=0,c.replaceState({...c.state,idx:g},""));function v(){return(c.state||{idx:null}).idx}function _(){d="POP";let I=v(),L=I==null?null:I-g;g=I,p&&p({action:d,location:R.location,delta:L})}function E(I,L){d="PUSH";let H=Yv(R.location,I,L);g=v()+1;let W=iS(H,g),Q=R.createHref(H);try{c.pushState(W,"",Q)}catch(te){if(te instanceof DOMException&&te.name==="DataCloneError")throw te;s.location.assign(Q)}l&&p&&p({action:d,location:R.location,delta:1})}function x(I,L){d="REPLACE";let H=Yv(R.location,I,L);g=v();let W=iS(H,g),Q=R.createHref(H);c.replaceState(W,"",Q),l&&p&&p({action:d,location:R.location,delta:0})}function b(I){let L=s.location.origin!=="null"?s.location.origin:s.location.href,H=typeof I=="string"?I:Fh(I);return H=H.replace(/ $/,"%20"),an(L,`No window.location.(origin|href) available to create URL for href: ${H}`),new URL(H,L)}let R={get action(){return d},get location(){return e(s,c)},listen(I){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(rS,_),p=I,()=>{s.removeEventListener(rS,_),p=null}},createHref(I){return t(s,I)},createURL:b,encodeLocation(I){let L=b(I);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:E,replace:x,go(I){return c.go(I)}};return R}function X3(e,t,n="/"){return _7(e,t,n,!1)}function _7(e,t,n,r){let s=typeof t=="string"?Od(t):t,l=ha(s.pathname||"/",n);if(l==null)return null;let c=J3(e);w7(c);let d=null;for(let p=0;d==null&&p<c.length;++p){let g=A7(l);d=I7(c[p],g,r)}return d}function J3(e,t=[],n=[],r=""){let s=(l,c,d)=>{let p={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};p.relativePath.startsWith("/")&&(an(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length));let g=la([r,p.relativePath]),v=n.concat(p);l.children&&l.children.length>0&&(an(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),J3(l.children,t,v,g)),!(l.path==null&&!l.index)&&t.push({path:g,score:k7(g,l.index),routesMeta:v})};return e.forEach((l,c)=>{var d;if(l.path===""||!((d=l.path)!=null&&d.includes("?")))s(l,c);else for(let p of Z3(l.path))s(l,c,p)}),t}function Z3(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return s?[l,""]:[l];let c=Z3(r.join("/")),d=[];return d.push(...c.map(p=>p===""?l:[l,p].join("/"))),s&&d.push(...c),d.map(p=>e.startsWith("/")&&p===""?"/":p)}function w7(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:R7(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var S7=/^:[\w-]+$/,E7=3,C7=2,x7=1,b7=10,T7=-2,sS=e=>e==="*";function k7(e,t){let n=e.split("/"),r=n.length;return n.some(sS)&&(r+=T7),t&&(r+=C7),n.filter(s=>!sS(s)).reduce((s,l)=>s+(S7.test(l)?E7:l===""?x7:b7),r)}function R7(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function I7(e,t,n=!1){let{routesMeta:r}=e,s={},l="/",c=[];for(let d=0;d<r.length;++d){let p=r[d],g=d===r.length-1,v=l==="/"?t:t.slice(l.length)||"/",_=$h({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},v),E=p.route;if(!_&&g&&n&&!r[r.length-1].route.index&&(_=$h({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},v)),!_)return null;
50Object.assign(s,_.params),c.push({params:s,pathname:la([l,_.pathname]),pathnameBase:M7(la([l,_.pathnameBase])),route:E}),_.pathnameBase!=="/"&&(l=la([l,_.pathnameBase]))}return c}function $h(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=O7(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let l=s[0],c=l.replace(/(.)\/+$/,"$1"),d=s.slice(1);return{params:r.reduce((g,{paramName:v,isOptional:_},E)=>{if(v==="*"){let b=d[E]||"";c=l.slice(0,l.length-b.length).replace(/(.)\/+$/,"$1")}const x=d[E];return _&&!x?g[v]=void 0:g[v]=(x||"").replace(/%2F/g,"/"),g},{}),pathname:l,pathnameBase:c,pattern:e}}function O7(e,t=!1,n=!0){as(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,d,p)=>(r.push({paramName:d,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function A7(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return as(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ha(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function P7(e,t="/"){let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?Od(e):e;return{pathname:n?n.startsWith("/")?n:L7(n,t):t,search:D7(r),hash:F7(s)}}function L7(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function cv(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function N7(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function g_(e){let t=N7(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function y_(e,t,n,r=!1){let s;typeof e=="string"?s=Od(e):(s={...e},an(!s.pathname||!s.pathname.includes("?"),cv("?","pathname","search",s)),an(!s.pathname||!s.pathname.includes("#"),cv("#","pathname","hash",s)),an(!s.search||!s.search.includes("#"),cv("#","search","hash",s)));let l=e===""||s.pathname==="",c=l?"/":s.pathname,d;if(c==null)d=n;else{let _=t.length-1;if(!r&&c.startsWith("..")){let E=c.split("/");for(;E[0]==="..";)E.shift(),_-=1;s.pathname=E.join("/")}d=_>=0?t[_]:"/"}let p=P7(s,d),g=c&&c!=="/"&&c.endsWith("/"),v=(l||c===".")&&n.endsWith("/");return!p.pathname.endsWith("/")&&(g||v)&&(p.pathname+="/"),p}var la=e=>e.join("/").replace(/\/\/+/g,"/"),M7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,F7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var eC=["POST","PUT","PATCH","DELETE"];new Set(eC);var j7=["GET",...eC];new Set(j7);var Ad=C.createContext(null);Ad.displayName="DataRouter";var y0=C.createContext(null);y0.displayName="DataRouterState";var tC=C.createContext({isTransitioning:!1});tC.displayName="ViewTransition";var U7=C.createContext(new Map);U7.displayName="Fetchers";var H7=C.createContext(null);H7.displayName="Await";var Fs=C.createContext(null);Fs.displayName="Navigation";var nm=C.createContext(null);nm.displayName="Location";var ls=C.createContext({outlet:null,matches:[],isDataRoute:!1});ls.displayName="Route";var v_=C.createContext(null);v_.displayName="RouteError";function B7(e,{relative:t}={}){an(Pd(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=C.useContext(Fs),{hash:s,pathname:l,search:c}=rm(e,{relative:t}),d=l;return n!=="/"&&(d=l==="/"?n:la([n,l])),r.createHref({pathname:d,search:c,hash:s})}function Pd(){return C.useContext(nm)!=null}function $s(){return an(Pd(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(nm).location}var nC="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rC(e){C.useContext(Fs).static||C.useLayoutEffect(e)}function Ea(){let{isDataRoute:e}=C.useContext(ls);return e?nT():z7()}function z7(){an(Pd(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(Ad),{basename:t,navigator:n}=C.useContext(Fs),{matches:r}=C.useContext(ls),{pathname:s}=$s(),l=JSON.stringify(g_(r)),c=C.useRef(!1);return rC(()=>{c.current=!0}
50),C.useCallback((p,g={})=>{if(as(c.current,nC),!c.current)return;if(typeof p=="number"){n.go(p);return}let v=y_(p,JSON.parse(l),s,g.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:la([t,v.pathname])),(g.replace?n.replace:n.push)(v,g.state,g)},[t,n,l,s,e])}var iC=C.createContext(null);function sC(){return C.useContext(iC)}function W7(e){let t=C.useContext(ls).outlet;return t&&C.createElement(iC.Provider,{value:e},t)}function rW(){let{matches:e}=C.useContext(ls),t=e[e.length-1];return t?t.params:{}}function rm(e,{relative:t}={}){let{matches:n}=C.useContext(ls),{pathname:r}=$s(),s=JSON.stringify(g_(n));return C.useMemo(()=>y_(e,JSON.parse(s),r,t==="path"),[e,s,r,t])}function q7(e,t){return oC(e,t)}function oC(e,t,n,r){var H;an(Pd(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s,static:l}=C.useContext(Fs),{matches:c}=C.useContext(ls),d=c[c.length-1],p=d?d.params:{},g=d?d.pathname:"/",v=d?d.pathnameBase:"/",_=d&&d.route;{let W=_&&_.path||"";aC(g,!_||W.endsWith("*")||W.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${W}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
51
52Please change the parent <Route path="${W}"> to <Route path="${W==="/"?"*":`${W}/*`}">.`)}let E=$s(),x;if(t){let W=typeof t=="string"?Od(t):t;an(v==="/"||((H=W.pathname)==null?void 0:H.startsWith(v)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${v}" but pathname "${W.pathname}" was given in the \`location\` prop.`),x=W}else x=E;let b=x.pathname||"/",R=b;if(v!=="/"){let W=v.replace(/^\//,"").split("/");R="/"+b.replace(/^\//,"").split("/").slice(W.length).join("/")}let I=!l&&n&&n.matches&&n.matches.length>0?n.matches:X3(e,{pathname:R});as(_||I!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),as(I==null||I[I.length-1].route.element!==void 0||I[I.length-1].route.Component!==void 0||I[I.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let L=Q7(I&&I.map(W=>Object.assign({},W,{params:Object.assign({},p,W.params),pathname:la([v,s.encodeLocation?s.encodeLocation(W.pathname).pathname:W.pathname]),pathnameBase:W.pathnameBase==="/"?v:la([v,s.encodeLocation?s.encodeLocation(W.pathnameBase).pathname:W.pathnameBase])})),c,n,r);return t&&L?C.createElement(nm.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},L):L}function V7(){let e=tT(),t=$7(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:l},"ErrorBoundary")," or"," ",C.createElement("code",{style:l},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:s},n):null,c)}var G7=C.createElement(V7,null),K7=class extends C.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?C.createElement(ls.Provider,{value:this.props.routeContext},C.createElement(v_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Y7({routeContext:e,match:t,children:n}){let r=C.useContext(Ad);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(ls.Provider,{value:e},n)}function Q7(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=n==null?void 0:n.errors;if(l!=null){let p=s.findIndex(g=>g.route.id&&(l==null?void 0:l[g.route.id])!==void 0);an(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let c=!1,d=-1;if(n)for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(d=p),g.route.id){let{loaderData:v,errors:_}
52=n,E=g.route.loader&&!v.hasOwnProperty(g.route.id)&&(!_||_[g.route.id]===void 0);if(g.route.lazy||E){c=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((p,g,v)=>{let _,E=!1,x=null,b=null;n&&(_=l&&g.route.id?l[g.route.id]:void 0,x=g.route.errorElement||G7,c&&(d<0&&v===0?(aC("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,b=null):d===v&&(E=!0,b=g.route.hydrateFallbackElement||null)));let R=t.concat(s.slice(0,v+1)),I=()=>{let L;return _?L=x:E?L=b:g.route.Component?L=C.createElement(g.route.Component,null):g.route.element?L=g.route.element:L=p,C.createElement(Y7,{match:g,routeContext:{outlet:p,matches:R,isDataRoute:n!=null},children:L})};return n&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?C.createElement(K7,{location:n.location,revalidation:n.revalidation,component:x,error:_,children:I(),routeContext:{outlet:null,matches:R,isDataRoute:!0}}):I()},null)}function __(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function X7(e){let t=C.useContext(Ad);return an(t,__(e)),t}function J7(e){let t=C.useContext(y0);return an(t,__(e)),t}function Z7(e){let t=C.useContext(ls);return an(t,__(e)),t}function w_(e){let t=Z7(e),n=t.matches[t.matches.length-1];return an(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function eT(){return w_("useRouteId")}function tT(){var r;let e=C.useContext(v_),t=J7("useRouteError"),n=w_("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function nT(){let{router:e}=X7("useNavigate"),t=w_("useNavigate"),n=C.useRef(!1);return rC(()=>{n.current=!0}),C.useCallback(async(s,l={})=>{as(n.current,nC),n.current&&(typeof s=="number"?e.navigate(s):await e.navigate(s,{fromRouteId:t,...l}))},[e,t])}var oS={};function aC(e,t,n){!t&&!oS[e]&&(oS[e]=!0,as(!1,n))}C.memo(rT);function rT({routes:e,future:t,state:n}){return oC(e,void 0,n,t)}function iW({to:e,replace:t,state:n,relative:r}){an(Pd(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=C.useContext(Fs);as(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=C.useContext(ls),{pathname:c}=$s(),d=Ea(),p=y_(e,g_(l),c,r==="path"),g=JSON.stringify(p);return C.useEffect(()=>{d(JSON.parse(g),{replace:t,state:n,relative:r})},[d,g,r,t,n]),null}function v0(e){return W7(e.context)}function Vt(e){an(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function iT({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:s,static:l=!1}){an(!Pd(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),d=C.useMemo(()=>({basename:c,navigator:s,static:l,future:{}}),[c,s,l]);typeof n=="string"&&(n=Od(n));let{pathname:p="/",search:g="",hash:v="",state:_=null,key:E="default"}=n,x=C.useMemo(()=>{let b=ha(p,c);return b==null?null:{location:{pathname:b,search:g,hash:v,state:_,key:E},navigationType:r}},[c,p,g,v,_,E,r]);return as(x!=null,`<Router basename="${c}"> is not able to match the URL "${p}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:C.createElement(Fs.Provider,{value:d},C.createElement(nm.Provider,{children:t,value:x}))}function sT({children:e,location:t}){return q7(Qv(e),t)}function Qv(e,t=[]){let n=[];return C.Children.forEach(e,(r,s)=>{if(!C.isValidElement(r))return;let l=[...t,s];if(r.type===C.Fragment){n.push.apply(n,Qv(r.props.children,l));return}an(r.type===Vt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),an(!r.props.index||!r.props.children,"An index route cannot have child routes.");let c={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,
52shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(c.children=Qv(r.props.children,l)),n.push(c)}),n}var xg="get",bg="application/x-www-form-urlencoded";function _0(e){return e!=null&&typeof e.tagName=="string"}function oT(e){return _0(e)&&e.tagName.toLowerCase()==="button"}function aT(e){return _0(e)&&e.tagName.toLowerCase()==="form"}function lT(e){return _0(e)&&e.tagName.toLowerCase()==="input"}function uT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cT(e,t){return e.button===0&&(!t||t==="_self")&&!uT(e)}function Xv(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function fT(e,t){let n=Xv(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(l=>{n.append(s,l)})}),n}var ng=null;function dT(){if(ng===null)try{new FormData(document.createElement("form"),0),ng=!1}catch{ng=!0}return ng}var pT=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function fv(e){return e!=null&&!pT.has(e)?(as(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bg}"`),null):e}function hT(e,t){let n,r,s,l,c;if(aT(e)){let d=e.getAttribute("action");r=d?ha(d,t):null,n=e.getAttribute("method")||xg,s=fv(e.getAttribute("enctype"))||bg,l=new FormData(e)}else if(oT(e)||lT(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=e.getAttribute("formaction")||d.getAttribute("action");if(r=p?ha(p,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||xg,s=fv(e.getAttribute("formenctype"))||fv(d.getAttribute("enctype"))||bg,l=new FormData(d,e),!dT()){let{name:g,type:v,value:_}=e;if(v==="image"){let E=g?`${g}.`:"";l.append(`${E}x`,"0"),l.append(`${E}y`,"0")}else g&&l.append(g,_)}}else{if(_0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=xg,r=null,s=bg,c=e}return l&&s==="text/plain"&&(c=l,l=void 0),{action:r,method:n.toLowerCase(),encType:s,formData:l,body:c}}function S_(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function mT(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function gT(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function yT(e,t,n){let r=await Promise.all(e.map(async s=>{let l=t.routes[s.route.id];if(l){let c=await mT(l,n);return c.links?c.links():[]}return[]}));return ST(r.flat(1).filter(gT).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function aS(e,t,n,r,s,l){let c=(p,g)=>n[g]?p.route.id!==n[g].route.id:!0,d=(p,g)=>{var v;return n[g].pathname!==p.pathname||((v=n[g].route.path)==null?void 0:v.endsWith("*"))&&n[g].params["*"]!==p.params["*"]};return l==="assets"?t.filter((p,g)=>c(p,g)||d(p,g)):l==="data"?t.filter((p,g)=>{var _;let v=r.routes[p.route.id];if(!v||!v.hasLoader)return!1;if(c(p,g)||d(p,g))return!0;if(p.route.shouldRevalidate){let E=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((_=n[0])==null?void 0:_.params)||{},nextUrl:new URL(e,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function vT(e,t,{includeHydrateFallback:n}={}){return _T(e.map(r=>{let s=t.routes[r.route.id];if(!s)return[];let l=[s.module];return s.clientActionModule&&(l=l.concat(s.clientActionModule)),s.clientLoaderModule&&(l=l.concat(s.clientLoaderModule)),n&&s.hydrateFallbackModule&&(l=l.concat(s.hydrateFallbackModule)),s.imports&&(l=l.concat(s.imports)),l}).flat(1))}function _T(e){return[...new Set(e)]}function wT(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function ST(e,t){let n=new Set;return new Set(t),e.reduce((r,s)=>{let l=JSON.stringify(wT(s));return n.has(l)||(n.add(l),r.push({key:l,link:s})),r},[])}function ET(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&ha(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function lC(){let e=C.useContext(Ad);return S_(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function CT(){let e=C.useContext(y0);return S_(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var E_=C.createContext(void 0);
52E_.displayName="FrameworkContext";function uC(){let e=C.useContext(E_);return S_(e,"You must render this element inside a <HydratedRouter> element"),e}function xT(e,t){let n=C.useContext(E_),[r,s]=C.useState(!1),[l,c]=C.useState(!1),{onFocus:d,onBlur:p,onMouseEnter:g,onMouseLeave:v,onTouchStart:_}=t,E=C.useRef(null);C.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let R=L=>{L.forEach(H=>{c(H.isIntersecting)})},I=new IntersectionObserver(R,{threshold:.5});return E.current&&I.observe(E.current),()=>{I.disconnect()}}},[e]),C.useEffect(()=>{if(r){let R=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(R)}}},[r]);let x=()=>{s(!0)},b=()=>{s(!1),c(!1)};return n?e!=="intent"?[l,E,{}]:[l,E,{onFocus:_h(d,x),onBlur:_h(p,b),onMouseEnter:_h(g,x),onMouseLeave:_h(v,b),onTouchStart:_h(_,x)}]:[!1,E,{}]}function _h(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function bT({page:e,...t}){let{router:n}=lC(),r=C.useMemo(()=>X3(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?C.createElement(kT,{page:e,matches:r,...t}):null}function TT(e){let{manifest:t,routeModules:n}=uC(),[r,s]=C.useState([]);return C.useEffect(()=>{let l=!1;return yT(e,t,n).then(c=>{l||s(c)}),()=>{l=!0}},[e,t,n]),r}function kT({page:e,matches:t,...n}){let r=$s(),{manifest:s,routeModules:l}=uC(),{basename:c}=lC(),{loaderData:d,matches:p}=CT(),g=C.useMemo(()=>aS(e,t,p,s,r,"data"),[e,t,p,s,r]),v=C.useMemo(()=>aS(e,t,p,s,r,"assets"),[e,t,p,s,r]),_=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,R=!1;if(t.forEach(L=>{var W;let H=s.routes[L.route.id];!H||!H.hasLoader||(!g.some(Q=>Q.route.id===L.route.id)&&L.route.id in d&&((W=l[L.route.id])!=null&&W.shouldRevalidate)||H.hasClientLoader?R=!0:b.add(L.route.id))}),b.size===0)return[];let I=ET(e,c);return R&&b.size>0&&I.searchParams.set("_routes",t.filter(L=>b.has(L.route.id)).map(L=>L.route.id).join(",")),[I.pathname+I.search]},[c,d,r,s,g,t,e,l]),E=C.useMemo(()=>vT(v,s),[v,s]),x=TT(v);return C.createElement(C.Fragment,null,_.map(b=>C.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),E.map(b=>C.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),x.map(({key:b,link:R})=>C.createElement("link",{key:b,...R})))}function RT(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var cC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cC&&(window.__reactRouterVersion="7.3.0")}catch{}function IT({basename:e,children:t,window:n}){let r=C.useRef();r.current==null&&(r.current=g7({window:n,v5Compat:!0}));let s=r.current,[l,c]=C.useState({action:s.action,location:s.location}),d=C.useCallback(p=>{C.startTransition(()=>c(p))},[c]);return C.useLayoutEffect(()=>s.listen(d),[s,d]),C.createElement(iT,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s})}var fC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,So=C.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:s,reloadDocument:l,replace:c,state:d,target:p,to:g,preventScrollReset:v,viewTransition:_,...E},x){let{basename:b}=C.useContext(Fs),R=typeof g=="string"&&fC.test(g),I,L=!1;if(typeof g=="string"&&R&&(I=g,cC))try{let X=new URL(window.location.href),ce=g.startsWith("//")?new URL(X.protocol+g):new URL(g),ye=ha(ce.pathname,b);ce.origin===X.origin&&ye!=null?g=ye+ce.search+ce.hash:L=!0}catch{as(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let H=B7(g,{relative:s}),[W,Q,te]=xT(r,E),D=LT(g,{replace:c,state:d,target:p,preventScrollReset:v,relative:s,viewTransition:_});function Z(X){t&&t(X),X.defaultPrevented||D(X)}let ue=C.createElement("a",{...E,...te,href:I||H,onClick:L||l?t:Z,ref:RT(x,Q),target:p,"data-discover":!R&&n==="render"?"true":void 0});return W&&!R?C.createElement(C.Fragment,null,ue,C.createElement(bT,{page:H})):ue});So.displayName="Link";var OT=C.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:s=!1,style:l,to:c,viewTransition:d,children:p,...g},v){let _=rm(c,{relative:g.relative}),E=$s(),x=C.useContext(y0),{navigator:b,basename:R}=C.useContext(Fs),I=x!=null&&$T(_)&&d===!0,L=b.encodeLocation?b.encodeLocation(_).pathname:_.pathname,H=E.pathname,W=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(H=H.toLowerCase(),W=W?W.toLowerCase():null,L=L.toLowerCase()),W&&R&&(W=ha(W,R)||W);const Q=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let te=H===L||!s&&H.startsWith(L)&&H.charAt(Q)==="/",D=W!=null&&(W===L||!s&&W.startsWith(L)&&W.charAt(L.length)==="/"),Z={isActive:te,isPending:D,isTransitioning:I},ue=te?t:void 0,X;typeof r=="function"?X=r(Z):X=[r,te?"active":null,D?"pending":null,I?"transitioning":null].filter(
52Boolean).join(" ");let ce=typeof l=="function"?l(Z):l;return C.createElement(So,{...g,"aria-current":ue,className:X,ref:v,style:ce,to:c,viewTransition:d},typeof p=="function"?p(Z):p)});OT.displayName="NavLink";var AT=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:s,state:l,method:c=xg,action:d,onSubmit:p,relative:g,preventScrollReset:v,viewTransition:_,...E},x)=>{let b=DT(),R=FT(d,{relative:g}),I=c.toLowerCase()==="get"?"get":"post",L=typeof d=="string"&&fC.test(d),H=W=>{if(p&&p(W),W.defaultPrevented)return;W.preventDefault();let Q=W.nativeEvent.submitter,te=(Q==null?void 0:Q.getAttribute("formmethod"))||c;b(Q||W.currentTarget,{fetcherKey:t,method:te,navigate:n,replace:s,state:l,relative:g,preventScrollReset:v,viewTransition:_})};return C.createElement("form",{ref:x,method:I,action:R,onSubmit:r?p:H,...E,"data-discover":!L&&e==="render"?"true":void 0})});AT.displayName="Form";function PT(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function dC(e){let t=C.useContext(Ad);return an(t,PT(e)),t}function LT(e,{target:t,replace:n,state:r,preventScrollReset:s,relative:l,viewTransition:c}={}){let d=Ea(),p=$s(),g=rm(e,{relative:l});return C.useCallback(v=>{if(cT(v,t)){v.preventDefault();let _=n!==void 0?n:Fh(p)===Fh(g);d(e,{replace:_,state:r,preventScrollReset:s,relative:l,viewTransition:c})}},[p,d,g,n,r,t,e,s,l,c])}function sW(e){as(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=C.useRef(Xv(e)),n=C.useRef(!1),r=$s(),s=C.useMemo(()=>fT(r.search,n.current?null:t.current),[r.search]),l=Ea(),c=C.useCallback((d,p)=>{const g=Xv(typeof d=="function"?d(s):d);n.current=!0,l("?"+g,p)},[l,s]);return[s,c]}var NT=0,MT=()=>`__${String(++NT)}__`;function DT(){let{router:e}=dC("useSubmit"),{basename:t}=C.useContext(Fs),n=eT();return C.useCallback(async(r,s={})=>{let{action:l,method:c,encType:d,formData:p,body:g}=hT(r,t);if(s.navigate===!1){let v=s.fetcherKey||MT();await e.fetch(v,n,s.action||l,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||c,formEncType:s.encType||d,flushSync:s.flushSync})}else await e.navigate(s.action||l,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||c,formEncType:s.encType||d,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[e,t,n])}function FT(e,{relative:t}={}){let{basename:n}=C.useContext(Fs),r=C.useContext(ls);an(r,"useFormAction must be used inside a RouteContext");let[s]=r.matches.slice(-1),l={...rm(e||".",{relative:t})},c=$s();if(e==null){l.search=c.search;let d=new URLSearchParams(l.search),p=d.getAll("index");if(p.some(v=>v==="")){d.delete("index"),p.filter(_=>_).forEach(_=>d.append("index",_));let v=d.toString();l.search=v?`?${v}`:""}}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:la([n,l.pathname])),Fh(l)}function $T(e,t={}){let n=C.useContext(tC);an(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dC("useViewTransitionState"),s=rm(e,{relative:t.relative});if(!n.isTransitioning)return!1;let l=ha(n.currentLocation.pathname,r)||n.currentLocation.pathname,c=ha(n.nextLocation.pathname,r)||n.nextLocation.pathname;return $h(s.pathname,c)!=null||$h(s.pathname,l)!=null}new TextEncoder;var w0=Q3();const oW=em(w0),Be={HOME:"/",HOME_SFW:"/sfw",HOME_WITH_LANG:"/:lang",CATEGORY:"/category/:categoryId",EDIT_MY_PROFILE:"/account/settings",MY_CONVERSATIONS:"/chat",MY_CONVERSATION:"/chat/:conversationId",MY_CHARACTERS:"/my-characters",CHARACTERS_MODERATION:"/characters/moderation",CREATE_CHARACTER:"/character/new",EDIT_CHARACTER:"/character/:characterId/edit",CHARACTER_PROFILE:"/character/:characterSlug/:characterId",CHARACTER_PHOTO_ALBUM:"/character/:characterSlug/:characterId/album",USER_PROFILE:"/profile/:username",FAVORITES:"/favorites",SUBSCRIBE:"/subscribe",COINS:"/coins",SUBSCRIBESTAR:"/subscribestar",FAQ:"/faq",TAC:"/terms-and-conditions",PRIVACY_POLICY:"/privacy-policy",ONBOARDING:"/onboarding",NOT_FOUND:"*"};function pC(e,t){return function(){return e.apply(t,arguments)}}const{toString:jT}=Object.prototype,{getPrototypeOf:C_}=Object,S0=(e=>t=>{const n=jT.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),js=e=>(e=e.toLowerCase(),t=>S0(t)===e),E0=e=>t=>typeof t===e,{isArray:Ld}=Array,jh=E0("undefined");function UT(e){return e!==null&&!jh(e)&&e.constructor!==null&&!jh(e.constructor)&&Ai(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hC=js("ArrayBuffer");function HT(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hC(e.buffer),t}
vendor: 4,862 bytes, line 52
52const BT=E0("string"),Ai=E0("function"),mC=E0("number"),C0=e=>e!==null&&typeof e=="object",zT=e=>e===!0||e===!1,Tg=e=>{if(S0(e)!=="object")return!1;const t=C_(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},WT=js("Date"),qT=js("File"),VT=js("Blob"),GT=js("FileList"),KT=e=>C0(e)&&Ai(e.pipe),YT=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ai(e.append)&&((t=S0(e))==="formdata"||t==="object"&&Ai(e.toString)&&e.toString()==="[object FormData]"))},QT=js("URLSearchParams"),[XT,JT,ZT,ek]=["ReadableStream","Request","Response","Headers"].map(js),tk=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function im(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Ld(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const l=n?Object.getOwnPropertyNames(e):Object.keys(e),c=l.length;let d;for(r=0;r<c;r++)d=l[r],t.call(null,e[d],d,e)}}function gC(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Uu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yC=e=>!jh(e)&&e!==Uu;function Jv(){const{caseless:e}=yC(this)&&this||{},t={},n=(r,s)=>{const l=e&&gC(t,s)||s;Tg(t[l])&&Tg(r)?t[l]=Jv(t[l],r):Tg(r)?t[l]=Jv({},r):Ld(r)?t[l]=r.slice():t[l]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&im(arguments[r],n);return t}const nk=(e,t,n,{allOwnKeys:r}={})=>(im(t,(s,l)=>{n&&Ai(s)?e[l]=pC(s,n):e[l]=s},{allOwnKeys:r}),e),rk=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ik=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},sk=(e,t,n,r)=>{let s,l,c;const d={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),l=s.length;l-- >0;)c=s[l],(!r||r(c,e,t))&&!d[c]&&(t[c]=e[c],d[c]=!0);e=n!==!1&&C_(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ok=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},ak=e=>{if(!e)return null;if(Ld(e))return e;let t=e.length;if(!mC(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},lk=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&C_(Uint8Array)),uk=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const l=s.value;t.call(e,l[0],l[1])}},ck=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},fk=js("HTMLFormElement"),dk=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),lS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pk=js("RegExp"),vC=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};im(n,(s,l)=>{let c;(c=t(s,l,e))!==!1&&(r[l]=c||s)}),Object.defineProperties(e,r)},hk=e=>{vC(e,(t,n)=>{if(Ai(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ai(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},mk=(e,t)=>{const n={},r=s=>{s.forEach(l=>{n[l]=!0})};return Ld(e)?r(e):r(String(e).split(t)),n},gk=()=>{},yk=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vk(e){return!!(e&&Ai(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _k=e=>{const t=new Array(10),n=(r,s)=>{if(C0(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const l=Ld(r)?[]:{};return im(r,(c,d)=>{const p=n(c,s+1);!jh(p)&&(l[d]=p)}),t[s]=void 0,l}}return r};return n(e,0)},wk=js("AsyncFunction"),Sk=e=>e&&(C0(e)||Ai(e))&&Ai(e.then)&&Ai(e.catch),_C=((e,t)=>e?setImmediate:t?((n,r)=>(Uu.addEventListener("message",({source:s,data:l})=>{s===Uu&&l===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Uu.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ai(Uu.postMessage)),Ek=typeof queueMicrotask<"u"?queueMicrotask.bind(Uu):typeof process<"u"&&process.nextTick||_C,ne={isArray:Ld,isArrayBuffer:hC,isBuffer:UT,isFormData:YT,isArrayBufferView:HT,isString:BT,isNumber:mC,isBoolean:zT,isObject:C0,isPlainObject:Tg,isReadableStream:XT,isRequest:JT,isResponse:ZT,isHeaders:ek,isUndefined:jh,isDate:WT,isFile:qT,isBlob:VT,isRegExp:pk,isFunction:Ai,isStream:KT,isURLSearchParams:QT,isTypedArray:lk,isFileList:GT,forEach:im,merge:Jv,extend:nk,trim:tk,stripBOM:rk,inherits:ik,toFlatObject:sk,kindOf:S0,kindOfTest:js,endsWith:ok,toArray:ak,forEachEntry:uk,matchAll:ck,isHTMLForm:fk,hasOwnProperty:lS,hasOwnProp:lS,reduceDescriptors:vC,freezeMethods:hk,toObjectSet:mk,toCamelCase:dk,noop:gk,toFiniteNumber:yk,findKey:gC,global:Uu,isContextDefined:yC,isSpecCompliantForm:vk,toJSONObject:_k,isAsyncFn:wk,isThenable:Sk,setImmediate:_C,asap:Ek};
vendor: 4,470 bytes, line 52
52function ft(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}ne.inherits(ft,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:ne.toJSONObject(this.config),code:this.code,status:this.status}}});const wC=ft.prototype,SC={};["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(e=>{SC[e]={value:e}});Object.defineProperties(ft,SC);Object.defineProperty(wC,"isAxiosError",{value:!0});ft.from=(e,t,n,r,s,l)=>{const c=Object.create(wC);return ne.toFlatObject(e,c,function(p){return p!==Error.prototype},d=>d!=="isAxiosError"),ft.call(c,e.message,t,n,r,s),c.cause=e,c.name=e.name,l&&Object.assign(c,l),c};const Ck=null;function Zv(e){return ne.isPlainObject(e)||ne.isArray(e)}function EC(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function uS(e,t,n){return e?e.concat(t).map(function(s,l){return s=EC(s),!n&&l?"["+s+"]":s}).join(n?".":""):t}function xk(e){return ne.isArray(e)&&!e.some(Zv)}const bk=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function x0(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,I){return!ne.isUndefined(I[R])});const r=n.metaTokens,s=n.visitor||v,l=n.dots,c=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(s))throw new TypeError("visitor must be a function");function g(b){if(b===null)return"";if(ne.isDate(b))return b.toISOString();if(!p&&ne.isBlob(b))throw new ft("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(b)||ne.isTypedArray(b)?p&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function v(b,R,I){let L=b;if(b&&!I&&typeof b=="object"){if(ne.endsWith(R,"{}"))R=r?R:R.slice(0,-2),b=JSON.stringify(b);else if(ne.isArray(b)&&xk(b)||(ne.isFileList(b)||ne.endsWith(R,"[]"))&&(L=ne.toArray(b)))return R=EC(R),L.forEach(function(W,Q){!(ne.isUndefined(W)||W===null)&&t.append(c===!0?uS([R],Q,l):c===null?R:R+"[]",g(W))}),!1}return Zv(b)?!0:(t.append(uS(I,R,l),g(b)),!1)}const _=[],E=Object.assign(bk,{defaultVisitor:v,convertValue:g,isVisitable:Zv});function x(b,R){if(!ne.isUndefined(b)){if(_.indexOf(b)!==-1)throw Error("Circular reference detected in "+R.join("."));_.push(b),ne.forEach(b,function(L,H){(!(ne.isUndefined(L)||L===null)&&s.call(t,L,ne.isString(H)?H.trim():H,R,E))===!0&&x(L,R?R.concat(H):[H])}),_.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return x(e),t}function cS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function x_(e,t){this._pairs=[],e&&x0(e,this,t)}const CC=x_.prototype;CC.append=function(t,n){this._pairs.push([t,n])};CC.toString=function(t){const n=t?function(r){return t.call(this,r,cS)}:cS;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Tk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xC(e,t,n){if(!t)return e;const r=n&&n.encode||Tk;ne.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let l;if(s?l=s(t,n):l=ne.isURLSearchParams(t)?t.toString():new x_(t,n).toString(r),l){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class fS{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(r){r!==null&&t(r)})}}const bC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kk=typeof URLSearchParams<"u"?URLSearchParams:x_,Rk=typeof FormData<"u"?FormData:null,Ik=typeof Blob<"u"?Blob:null,Ok={isBrowser:!0,classes:{
vendor: 4,105 bytes, lines 52-53
52URLSearchParams:kk,FormData:Rk,Blob:Ik},protocols:["http","https","file","blob","url","data"]},b_=typeof window<"u"&&typeof document<"u",e2=typeof navigator=="object"&&navigator||void 0,Ak=b_&&(!e2||["ReactNative","NativeScript","NS"].indexOf(e2.product)<0),Pk=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Lk=b_&&window.location.href||"http://localhost",Nk=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:b_,hasStandardBrowserEnv:Ak,hasStandardBrowserWebWorkerEnv:Pk,navigator:e2,origin:Lk},Symbol.toStringTag,{value:"Module"})),kr={...Nk,...Ok};function Mk(e,t){return x0(e,new kr.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,l){return kr.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function Dk(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fk(e){const t={},n=Object.keys(e);let r;const s=n.length;let l;for(r=0;r<s;r++)l=n[r],t[l]=e[l];return t}function TC(e){function t(n,r,s,l){let c=n[l++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),p=l>=n.length;return c=!c&&ne.isArray(s)?s.length:c,p?(ne.hasOwnProp(s,c)?s[c]=[s[c],r]:s[c]=r,!d):((!s[c]||!ne.isObject(s[c]))&&(s[c]=[]),t(n,r,s[c],l)&&ne.isArray(s[c])&&(s[c]=Fk(s[c])),!d)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(r,s)=>{t(Dk(r),s,n,0)}),n}return null}function $k(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const sm={transitional:bC,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,l=ne.isObject(t);if(l&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return s?JSON.stringify(TC(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t)||ne.isReadableStream(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(l){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Mk(t,this.formSerializer).toString();if((d=ne.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return x0(d?{"files[]":t}:t,p&&new p,this.formSerializer)}}return l||s?(n.setContentType("application/json",!1),$k(t)):t}],transformResponse:[function(t){const n=this.transitional||sm.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(ne.isResponse(t)||ne.isReadableStream(t))return t;if(t&&ne.isString(t)&&(r&&!this.responseType||s)){const c=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(d){if(c)throw d.name==="SyntaxError"?ft.from(d,ft.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kr.classes.FormData,Blob:kr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{sm.headers[e]={}});const jk=ne.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"]),Uk=e=>{const t={};let n,r,s;return e&&e.split(`
53`).forEach(function(c){s=c.indexOf(":"),n=c.substring(0,s).trim().toLowerCase(),r=c.substring(s+1).trim(),!(!n||t[n]&&jk[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},dS=Symbol("internals");function wh(e){return e&&String(e).trim().toLowerCase()}function kg(e){return e===!1||e==null?e:ne.isArray(e)?e.map(kg):String(e)}function Hk(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Bk=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
vendor: 7,010 bytes, lines 53-54
53function dv(e,t,n,r,s){if(ne.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!ne.isString(t)){if(ne.isString(r))return t.indexOf(r)!==-1;if(ne.isRegExp(r))return r.test(t)}}function zk(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Wk(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,l,c){return this[r].call(this,t,s,l,c)},configurable:!0})})}let hi=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function l(d,p,g){const v=wh(p);if(!v)throw new Error("header name must be a non-empty string");const _=ne.findKey(s,v);(!_||s[_]===void 0||g===!0||g===void 0&&s[_]!==!1)&&(s[_||p]=kg(d))}const c=(d,p)=>ne.forEach(d,(g,v)=>l(g,v,p));if(ne.isPlainObject(t)||t instanceof this.constructor)c(t,n);else if(ne.isString(t)&&(t=t.trim())&&!Bk(t))c(Uk(t),n);else if(ne.isHeaders(t))for(const[d,p]of t.entries())l(p,d,r);else t!=null&&l(n,t,r);return this}get(t,n){if(t=wh(t),t){const r=ne.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Hk(s);if(ne.isFunction(n))return n.call(this,s,r);if(ne.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=wh(t),t){const r=ne.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||dv(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function l(c){if(c=wh(c),c){const d=ne.findKey(r,c);d&&(!n||dv(r,r[d],d,n))&&(delete r[d],s=!0)}}return ne.isArray(t)?t.forEach(l):l(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const l=n[r];(!t||dv(this,this[l],l,t,!0))&&(delete this[l],s=!0)}return s}normalize(t){const n=this,r={};return ne.forEach(this,(s,l)=>{const c=ne.findKey(r,l);if(c){n[c]=kg(s),delete n[l];return}const d=t?zk(l):String(l).trim();d!==l&&delete n[l],n[d]=kg(s),r[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&ne.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
54`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[dS]=this[dS]={accessors:{}}).accessors,s=this.prototype;function l(c){const d=wh(c);r[d]||(Wk(s,c),r[d]=!0)}return ne.isArray(t)?t.forEach(l):l(t),this}};hi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(hi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ne.freezeMethods(hi);function pv(e,t){const n=this||sm,r=t||n,s=hi.from(r.headers);let l=r.data;return ne.forEach(e,function(d){l=d.call(n,l,s.normalize(),t?t.status:void 0)}),s.normalize(),l}function kC(e){return!!(e&&e.__CANCEL__)}function Nd(e,t,n){ft.call(this,e??"canceled",ft.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(Nd,ft,{__CANCEL__:!0});function RC(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ft("Request failed with status code "+n.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function qk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vk(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,l=0,c;return t=t!==void 0?t:1e3,function(p){const g=Date.now(),v=r[l];c||(c=g),n[s]=p,r[s]=g;let _=l,E=0;for(;_!==s;)E+=n[_++],_=_%e;if(s=(s+1)%e,s===l&&(l=(l+1)%e),g-c<t)return;const x=v&&g-v;return x?Math.round(E*1e3/x):void 0}}function Gk(e,t){let n=0,r=1e3/t,s,l;const c=(g,v=Date.now())=>{n=v,s=null,l&&(clearTimeout(l),l=null),e.apply(null,g)};return[(...g)=>{const v=Date.now(),_=v-n;_>=r?c(g,v):(s=g,l||(l=setTimeout(()=>{l=null,c(s)},r-_)))},()=>s&&c(s)]}const Hg=(e,t,n=3)=>{let r=0;const s=Vk(50,250);return Gk(l=>{const c=l.loaded,d=l.lengthComputable?l.total:void 0,p=c-r,g=s(p),v=c<=d;r=c;const _={loaded:c,total:d,progress:d?c/d:void 0,bytes:p,rate:g||void 0,estimated:g&&d&&v?(d-c)/g:void 0,event:l,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(_)},n)},pS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},hS=e=>(...t)=>ne.asap(()=>e(...t)),Kk=kr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,kr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(kr.origin),kr.navigator&&/(msie|trident)/i.test(kr.navigator.userAgent)):()=>!0,Yk=kr.hasStandardBrowserEnv?{write(e,t,n,r,s,l){const c=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&c.push("path="+r),ne.isString(s)&&c.push("domain="+s),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Qk(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xk(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function IC(e,t,n){let r=!Qk(t);return e&&(r||n==!1)?Xk(e,t):t}const mS=e=>e instanceof hi?{...e}:e;function ac(e,t){t=t||{};const n={};function r(g,v,_,E){return ne.isPlainObject(g)&&ne.isPlainObject(v)?ne.merge.call({caseless:E},g,v):ne.isPlainObject(v)?ne.merge({},v):ne.isArray(v)?v.slice():v}function s(g,v,_,E){if(ne.isUndefined(v)){if(!ne.isUndefined(g))return r(void 0,g,_,E)}else return r(g,v,_,E)}function l(g,v){if(!ne.isUndefined(v))return r(void 0,v)}function c(g,v){if(ne.isUndefined(v)){if(!ne.isUndefined(g))return r(void 0,g)}else return r(void 0,v)}function d(g,v,_){if(_ in t)return r(g,v);if(_ in e)return r(void 0,g)}const p={url:l,method:l,data:l,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(g,v,_)=>s(mS(g),mS(v),_,!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(v){const _=p[v]||s,E=_(e[v],t[v],v);ne.isUndefined(E)&&_!==d||(n[v]=E)}),n}const OC=e=>{const t=ac({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:l,headers:c,auth:d}=t;t.headers=c=hi.from(c),t.url=xC(IC(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let p;if(ne.isFormData(n)){if(kr.hasStandardBrowserEnv||kr.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((p=c.getContentType())!==!1){const[g,...v]=p?p.split(";").map(_=>
vendor: 4,372 bytes, line 54
54_.trim()).filter(Boolean):[];c.setContentType([g||"multipart/form-data",...v].join("; "))}}if(kr.hasStandardBrowserEnv&&(r&&ne.isFunction(r)&&(r=r(t)),r||r!==!1&&Kk(t.url))){const g=s&&l&&Yk.read(l);g&&c.set(s,g)}return t},Jk=typeof XMLHttpRequest<"u",Zk=Jk&&function(e){return new Promise(function(n,r){const s=OC(e);let l=s.data;const c=hi.from(s.headers).normalize();let{responseType:d,onUploadProgress:p,onDownloadProgress:g}=s,v,_,E,x,b;function R(){x&&x(),b&&b(),s.cancelToken&&s.cancelToken.unsubscribe(v),s.signal&&s.signal.removeEventListener("abort",v)}let I=new XMLHttpRequest;I.open(s.method.toUpperCase(),s.url,!0),I.timeout=s.timeout;function L(){if(!I)return;const W=hi.from("getAllResponseHeaders"in I&&I.getAllResponseHeaders()),te={data:!d||d==="text"||d==="json"?I.responseText:I.response,status:I.status,statusText:I.statusText,headers:W,config:e,request:I};RC(function(Z){n(Z),R()},function(Z){r(Z),R()},te),I=null}"onloadend"in I?I.onloadend=L:I.onreadystatechange=function(){!I||I.readyState!==4||I.status===0&&!(I.responseURL&&I.responseURL.indexOf("file:")===0)||setTimeout(L)},I.onabort=function(){I&&(r(new ft("Request aborted",ft.ECONNABORTED,e,I)),I=null)},I.onerror=function(){r(new ft("Network Error",ft.ERR_NETWORK,e,I)),I=null},I.ontimeout=function(){let Q=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const te=s.transitional||bC;s.timeoutErrorMessage&&(Q=s.timeoutErrorMessage),r(new ft(Q,te.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,I)),I=null},l===void 0&&c.setContentType(null),"setRequestHeader"in I&&ne.forEach(c.toJSON(),function(Q,te){I.setRequestHeader(te,Q)}),ne.isUndefined(s.withCredentials)||(I.withCredentials=!!s.withCredentials),d&&d!=="json"&&(I.responseType=s.responseType),g&&([E,b]=Hg(g,!0),I.addEventListener("progress",E)),p&&I.upload&&([_,x]=Hg(p),I.upload.addEventListener("progress",_),I.upload.addEventListener("loadend",x)),(s.cancelToken||s.signal)&&(v=W=>{I&&(r(!W||W.type?new Nd(null,e,I):W),I.abort(),I=null)},s.cancelToken&&s.cancelToken.subscribe(v),s.signal&&(s.signal.aborted?v():s.signal.addEventListener("abort",v)));const H=qk(s.url);if(H&&kr.protocols.indexOf(H)===-1){r(new ft("Unsupported protocol "+H+":",ft.ERR_BAD_REQUEST,e));return}I.send(l||null)})},e9=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const l=function(g){if(!s){s=!0,d();const v=g instanceof Error?g:this.reason;r.abort(v instanceof ft?v:new Nd(v instanceof Error?v.message:v))}};let c=t&&setTimeout(()=>{c=null,l(new ft(`timeout ${t} of ms exceeded`,ft.ETIMEDOUT))},t);const d=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(g=>{g.unsubscribe?g.unsubscribe(l):g.removeEventListener("abort",l)}),e=null)};e.forEach(g=>g.addEventListener("abort",l));const{signal:p}=r;return p.unsubscribe=()=>ne.asap(d),p}},t9=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},n9=async function*(e,t){for await(const n of r9(e))yield*t9(n,t)},r9=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},gS=(e,t,n,r)=>{const s=n9(e,t);let l=0,c,d=p=>{c||(c=!0,r&&r(p))};return new ReadableStream({async pull(p){try{const{done:g,value:v}=await s.next();if(g){d(),p.close();return}let _=v.byteLength;if(n){let E=l+=_;n(E)}p.enqueue(new Uint8Array(v))}catch(g){throw d(g),g}},cancel(p){return d(p),s.return()}},{highWaterMark:2})},b0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",AC=b0&&typeof ReadableStream=="function",i9=b0&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),PC=(e,...t)=>{try{return!!e(...t)}catch{return!1}},s9=AC&&PC(()=>{let e=!1;const t=new Request(kr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),yS=64*1024,t2=AC&&PC(()=>ne.isReadableStream(new Response("").body)),Bg={stream:t2&&(e=>e.body)};b0&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Bg[t]&&(Bg[t]=ne.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new ft(`Response type '${t}' is not supported`,ft.ERR_NOT_SUPPORT,r)})})})(new Response);const o9=async e=>{if(e==null)return 0;if(ne.isBlob(e))return e.size;
vendor: 8,062 bytes, lines 54-57
54if(ne.isSpecCompliantForm(e))return(await new Request(kr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(e)||ne.isArrayBuffer(e))return e.byteLength;if(ne.isURLSearchParams(e)&&(e=e+""),ne.isString(e))return(await i9(e)).byteLength},a9=async(e,t)=>{const n=ne.toFiniteNumber(e.getContentLength());return n??o9(t)},l9=b0&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:l,timeout:c,onDownloadProgress:d,onUploadProgress:p,responseType:g,headers:v,withCredentials:_="same-origin",fetchOptions:E}=OC(e);g=g?(g+"").toLowerCase():"text";let x=e9([s,l&&l.toAbortSignal()],c),b;const R=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let I;try{if(p&&s9&&n!=="get"&&n!=="head"&&(I=await a9(v,r))!==0){let te=new Request(t,{method:"POST",body:r,duplex:"half"}),D;if(ne.isFormData(r)&&(D=te.headers.get("content-type"))&&v.setContentType(D),te.body){const[Z,ue]=pS(I,Hg(hS(p)));r=gS(te.body,yS,Z,ue)}}ne.isString(_)||(_=_?"include":"omit");const L="credentials"in Request.prototype;b=new Request(t,{...E,signal:x,method:n.toUpperCase(),headers:v.normalize().toJSON(),body:r,duplex:"half",credentials:L?_:void 0});let H=await fetch(b);const W=t2&&(g==="stream"||g==="response");if(t2&&(d||W&&R)){const te={};["status","statusText","headers"].forEach(X=>{te[X]=H[X]});const D=ne.toFiniteNumber(H.headers.get("content-length")),[Z,ue]=d&&pS(D,Hg(hS(d),!0))||[];H=new Response(gS(H.body,yS,Z,()=>{ue&&ue(),R&&R()}),te)}g=g||"text";let Q=await Bg[ne.findKey(Bg,g)||"text"](H,e);return!W&&R&&R(),await new Promise((te,D)=>{RC(te,D,{data:Q,headers:hi.from(H.headers),status:H.status,statusText:H.statusText,config:e,request:b})})}catch(L){throw R&&R(),L&&L.name==="TypeError"&&/fetch/i.test(L.message)?Object.assign(new ft("Network Error",ft.ERR_NETWORK,e,b),{cause:L.cause||L}):ft.from(L,L&&L.code,e,b)}}),n2={http:Ck,xhr:Zk,fetch:l9};ne.forEach(n2,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const vS=e=>`- ${e}`,u9=e=>ne.isFunction(e)||e===null||e===!1,LC={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let l=0;l<t;l++){n=e[l];let c;if(r=n,!u9(n)&&(r=n2[(c=String(n)).toLowerCase()],r===void 0))throw new ft(`Unknown adapter '${c}'`);if(r)break;s[c||"#"+l]=r}if(!r){const l=Object.entries(s).map(([d,p])=>`adapter ${d} `+(p===!1?"is not supported by the environment":"is not available in the build"));let c=t?l.length>1?`since :
55`+l.map(vS).join(`
56`):" "+vS(l[0]):"as no adapter specified";throw new ft("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return r},adapters:n2};function hv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Nd(null,e)}function _S(e){return hv(e),e.headers=hi.from(e.headers),e.data=pv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),LC.getAdapter(e.adapter||sm.adapter)(e).then(function(r){return hv(e),r.data=pv.call(e,e.transformResponse,r),r.headers=hi.from(r.headers),r},function(r){return kC(r)||(hv(e),r&&r.response&&(r.response.data=pv.call(e,e.transformResponse,r.response),r.response.headers=hi.from(r.response.headers))),Promise.reject(r)})}const NC="1.8.4",T0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{T0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wS={};T0.transitional=function(t,n,r){function s(l,c){return"[Axios v"+NC+"] Transitional option '"+l+"'"+c+(r?". "+r:"")}return(l,c,d)=>{if(t===!1)throw new ft(s(c," has been removed"+(n?" in "+n:"")),ft.ERR_DEPRECATED);return n&&!wS[c]&&(wS[c]=!0,console.warn(s(c," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,c,d):!0}};T0.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function c9(e,t,n){if(typeof e!="object")throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const l=r[s],c=t[l];if(c){const d=e[l],p=d===void 0||c(d,l,e);if(p!==!0)throw new ft("option "+l+" must be "+p,ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ft("Unknown option "+l,ft.ERR_BAD_OPTION)}}const Rg={assertOptions:c9,validators:T0},po=Rg.validators;let tc=class{constructor(t){this.defaults=t,this.interceptors={request:new fS,response:new fS}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const l=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?l&&!String(r.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(r.stack+=`
57`+l):r.stack=l}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ac(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:l}=n;r!==void 0&&Rg.assertOptions(r,{silentJSONParsing:po.transitional(po.boolean),forcedJSONParsing:po.transitional(po.boolean),clarifyTimeoutError:po.transitional(po.boolean)},!1),s!=null&&(ne.isFunction(s)?n.paramsSerializer={serialize:s}:Rg.assertOptions(s,{encode:po.function,serialize:po.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Rg.assertOptions(n,{baseUrl:po.spelling("baseURL"),withXsrfToken:po.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let c=l&&ne.merge(l.common,l[n.method]);l&&ne.forEach(["delete","get","head","post","put","patch","common"],b=>{delete l[b]}),n.headers=hi.concat(c,l);const d=[];let p=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(n)===!1||(p=p&&R.synchronous,d.unshift(R.fulfilled,R.rejected))});const g=[];this.interceptors.response.forEach(function(R){g.push(R.fulfilled,R.rejected)});let v,_=0,E;if(!p){const b=[_S.bind(this),void 0];for(b.unshift.apply(b,d),b.push.apply(b,g),E=b.length,v=Promise.resolve(n);_<E;)v=v.then(b[_++],b[_++]);return v}E=d.length;let x=n;for(_=0;_<E;){const b=d[_++],R=d[_++];try{x=b(x)}catch(I){R.call(this,I);break}}try{v=_S.call(this,x)}catch(b){return Promise.reject(b)}for(_=0,E=g.length;_<E;)v=v.then(g[_++],g[_++]);return v}getUri(t){t=ac(this.defaults,t);const n=IC(t.baseURL,t.url,t.allowAbsoluteUrls);return xC(n,t.params,t.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(t){tc.prototype[t]=function(n,r){return this.request(ac(r||{},{method:t,url:n,data:(r||{}).data}))}});ne.forEach(["post","put","patch"],function(t){function n(r){return function(l,c,d){return this.request(ac(d||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}tc.prototype[t]=n(),tc.prototype[t+"Form"]=n(!0)});let f9=class MC{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const r=this;this.promise.then(s=>{if(!r._listeners)return;let l=r._listeners.length;for(;l-- >0;)r._listeners[l](s);r._listeners=null}),this.promise.then=s=>{let l;const c=new Promise(d=>{r.subscribe(d),l=d}).then(s);return c.cancel=function(){r.unsubscribe(l)},c},t(function(l,c,d){r.reason||(r.reason=new Nd(l,c,d),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new MC(function(s){t=s}),cancel:t}}};function d9(e){return function(n){return e.apply(null,n)}}function p9(e){return ne.isObject(e)&&e.isAxiosError===!0}const r2={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
57alContent: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(r2).forEach(([e,t])=>{r2[t]=e});function DC(e){const t=new tc(e),n=pC(tc.prototype.request,t);return ne.extend(n,tc.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return DC(ac(e,s))},n}const Rn=DC(sm);Rn.Axios=tc;Rn.CanceledError=Nd;Rn.CancelToken=f9;Rn.isCancel=kC;Rn.VERSION=NC;Rn.toFormData=x0;Rn.AxiosError=ft;Rn.Cancel=Rn.CanceledError;Rn.all=function(t){return Promise.all(t)};Rn.spread=d9;Rn.isAxiosError=p9;Rn.mergeConfig=ac;Rn.AxiosHeaders=hi;Rn.formToJSON=e=>TC(ne.isHTMLForm(e)?new FormData(e):e);Rn.getAdapter=LC.getAdapter;Rn.HttpStatusCode=r2;Rn.default=Rn;const{Axios:uW,AxiosError:mv,CanceledError:cW,isCancel:fW,CancelToken:dW,VERSION:pW,all:hW,Cancel:mW,isAxiosError:gW,spread:yW,toFormData:vW,AxiosHeaders:_W,HttpStatusCode:wW,formToJSON:SW,getAdapter:EW,mergeConfig:CW}=Rn;class h9{constructor({securityWorker:t,secure:n,format:r,...s}={}){Ln(this,"instance");Ln(this,"securityData",null);Ln(this,"securityWorker");Ln(this,"secure");Ln(this,"format");Ln(this,"setSecurityData",t=>{this.securityData=t});Ln(this,"request",async({secure:t,path:n,type:r,query:s,format:l,body:c,...d})=>{const p=(typeof t=="boolean"?t:this.secure)&&this.securityWorker&&await this.securityWorker(this.securityData)||{}
57,g=this.mergeRequestParams(d,p),v=l||this.format||void 0;return r==="multipart/form-data"&&c&&c!==null&&typeof c=="object"&&(c=this.createFormData(c)),r==="text/plain"&&c&&c!==null&&typeof c!="string"&&(c=JSON.stringify(c)),this.instance.request({...g,headers:{...g.headers||{},...r?{"Content-Type":r}:{}},params:s,responseType:v,data:c,url:n}).then(_=>_.data)});this.instance=Rn.create({...s,baseURL:s.baseURL||"http://localhost:3000"}),this.secure=n,this.format=r,this.securityWorker=t}mergeRequestParams(t,n){const r=t.method||n&&n.method;return{...this.instance.defaults,...t,...n||{},headers:{...r&&this.instance.defaults.headers[r.toLowerCase()]||{},...t.headers||{},...n&&n.headers||{}}}}stringifyFormItem(t){return typeof t=="object"&&t!==null?JSON.stringify(t):`${t}`}createFormData(t){return t instanceof FormData?t:Object.keys(t||{}).reduce((n,r)=>{const s=t[r],l=s instanceof Array?s:[s];for(const c of l){const d=c instanceof Blob||c instanceof File;n.append(r,d?c:this.stringifyFormItem(c))}return n},new FormData)}}class m9 extends h9{constructor(){super(...arguments);Ln(this,"test",{testList:(n={})=>this.request({path:"/test",method:"GET",format:"json",...n})});Ln(this,"v1",{passwordProtectedCreate:(n,r={})=>this.request({path:"/v1/password-protected",method:"POST",body:n,type:"application/json",...r}),usersCreate:(n,r={})=>this.request({path:"/v1/users",method:"POST",body:n,type:"application/json",format:"json",...r}),usersMeList:(n={})=>this.request({path:"/v1/users/me",method:"GET",format:"json",...n}),usersMePartialUpdate:(n,r={})=>this.request({path:"/v1/users/me",method:"PATCH",body:n,type:"application/json",format:"json",...r}),usersDetail:(n,r={})=>this.request({path:`/v1/users/${n}`,method:"GET",format:"json",...r}),usersFavoritesList:(n,r={})=>this.request({path:`/v1/users/${n}/favorites`,method:"GET",format:"json",...r}),usersMeCoinsList:(n={})=>this.request({path:"/v1/users/me/coins",method:"GET",format:"json",...n}),charactersCreate:(n,r={})=>this.request({path:"/v1/characters",method:"POST",body:n,type:"application/json",format:"json",...r}),charactersPartialUpdate:(n,r,s={})=>this.request({path:`/v1/characters/${n}`,method:"PATCH",body:r,type:"application/json",format:"json",...s}),charactersDelete:(n,r={})=>this.request({path:`/v1/characters/${n}`,method:"DELETE",format:"json",...r}),charactersDetail:(n,r,s={})=>this.request({path:`/v1/characters/${n}`,method:"GET",query:r,format:"json",...s}),charactersReviewStatusPartialUpdate:(n,r,s={})=>this.request({path:`/v1/characters/${n}/review_status`,method:"PATCH",body:r,type:"application/json",format:"json",...s}),charactersSearchCreate:(n,r={})=>this.request({path:"/v1/characters/search",method:"POST",body:n,type:"application/json",format:"json",...r}),usersMeCharactersList:(n={})=>this.request({path:"/v1/users/me/characters",method:"GET",format:"json",...n}),usersMeCharactersDetail:(n,r={})=>this.request({path:`/v1/users/me/characters/${n}`,method:"GET",format:"json",...r}),charactersFavoritesList:(n,r={})=>this.request({path:`/v1/characters/${n}/favorites`,method:"GET",format:"json",...r}),charactersFavoritesCreate:(n,r={})=>this.request({path:`/v1/characters/${n}/favorites`,method:"POST",format:"json",...r}),charactersFavoritesDelete:(n,r={})=>this.request({path:`/v1/characters/${n}/favorites`,method:"DELETE",format:"json",...r}),charactersPhotosList:(n,r,s={})=>this.request({path:`/v1/characters/${n}/photos`,method:"GET",query:r,format:"json",...s}),charactersPhotosSuggestedPromptsList:(n,r={})=>this.request({path:`/v1/characters/${n}/photos/suggested-prompts`,method:"GET",format:"json",...r}),charactersPhotosAccessCreate:(n,r,s={})=>this.request({path:`/v1/characters/${n}/photos/${r}/access`,method:"POST",format:"json",...s}),adminInferenceModelCreate:(n,r={})=>this.request({path:"/v1/admin/inference-model",method:"POST",body:n,type:"application/json",format:"json",...r}),inferenceModelsList:(n={})=>this.request({path:"/v1/inference-models",method:"GET",format:"json",...n}),conversationsCreate:(n,r={})=>this.request({path:"/v1/conversations",method:"POST",body:n,type:"application/json",format:"json",...r}),conversationsList:(n,r={})=>this.request({path:"/v1/conversations",method:"GET",query:n,format:"json",...r}),conversationsMessagesCreate:(n,r,s={})=>this.request({path:`/v1/conversations/${n}/messages`,method:"POST",body:r,type:"application/json",...s}),conversationsMessagesList:(n,r={})=>this.request({path:`/v1/conversations/${n}/messages`,method:"GET",format:"json",...r}),conversationsMessagesAudioList:(n,r,s={})=>this.request({path:`/v1/conversations/${n}/messages/${r}/audio`,method:"GET",...s}),conversationsDelete:(n,r={})=>this.request({path:`/v1/conversations/${n}`,method:"DELETE",...r}),checkoutSubscriptionCreate:(n,r={})=>this.request({path:"/v1/checkout/subscription",method:"POST",body:n,type:"application/json",format:"json",...r}),subscriptionsManageCreate:(n={})=>this.request({path:"/v1/subscriptions/manage",method:"POST",format:"json",...n}),subscriptionsCancelCreate:(n={})=>this.request({path:"/v1/subscriptions/cancel",method:"POST",...n}),subscriptionsRenewCreate:(n={})=>this.request({path:"/v1/subscriptions/renew",method:"POST",...n}),checkoutSessionDetail:(n,r,s={})=>this.request({path:`/v1/checkout/session/${n}`,method:"GET",query:r,format:"json",...s}),subscriptionsStripeEventsCreate:(n={})=>this.request({path:"/v1/subscriptions/stripe-events",method:"POST",...n}),subscriptionsBoomfiEventsCreate:(n={})=>this.request({path:"/v1/subscriptions/boomfi-events",method:"POST",...n}),subscriptionsSubscribestarAuthExchangeCreate:(n,r={})=>this.request({path:"/v1/subscriptions/subscribestar/auth-exchange",method:"POST",body:n,type:"application/json",format:"json",...r}),subscriptionsTantumpayEventsCreate:(n,r={})=>this.request({path:"/v1/subscriptions/tantumpay-events",method:"POST",body:n,type:"application/json",...r}),subscriptionsMariafinanceEventsCreate:(n,r={})=>this.request({path:"/v1/subscriptions/mariafinance-events",method:"POST",body:n,type:"application/json",...r}),imagesGenerateCreate:(n,r={})=>this.request({path:"/v1/images/generate",method:"POST",body:n,type:"application/json",format:"json",...r}),checkoutCoinsCreate:(n,r={})=>this.request({path:"/v1/checkout/coins",method:"POST",body:n,type:"application/json",format:"json",...r})})}}const xW="https://www.ourdreamersai.com/6JP65CH/3QQG7/?uid=176",Ls={apiBaseUrl:"https://api.desirex.ai",appBaseUrl:"https://desirex.ai",kindeClientId:"e081389f6d5a4cd3bde0c8bba84e01d1",kindeDomain:"https://desirex.kinde.com",kindeAudience:"https://api.desirex.ai/",kindeEmailCodeConnectionId:"conn_0195bcbb8dfad3acdcc7797c1c51650e",tapfili
57ateAccountId:"60183-dfb1f8",sentryDsn:"https://baa9ffb932ee85a7ecd9a418c5d3165c@o4509397155381248.ingest.us.sentry.io/4509397156691968",subscribeStarClientId:"jfhBoggJXXEsl4gH2KmkHg1UYR_6_2j5kUk7DD2YPqA"},T_="auth_token",k_=()=>localStorage.getItem(T_),g9=e=>{localStorage.setItem(T_,e)},zg=()=>{localStorage.removeItem(T_)},om=new m9({baseURL:Ls.apiBaseUrl});om.instance.interceptors.request.use(e=>{const t=k_();return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));om.instance.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===404?Promise.resolve({data:null,error:null}):Promise.reject(e)});const FC=C.createContext(null),y9=()=>{const[e,t]=C.useState(!0),[n,r]=C.useState(!1),[s,l]=C.useState(null),c=async()=>{if(!k_()){t(!1),r(!1),l(null);return}t(!0);try{const g=await om.v1.usersMeList();r(!0),l(g)}catch{l(null),r(!1),zg()}finally{t(!1)}};C.useEffect(()=>{c()},[]);const d={isLoading:e,isAuthenticated:n,user:s,refetchUser:c};return P.jsx(FC.Provider,{value:d,children:P.jsx(v0,{})})},k0=()=>{const e=C.useContext(FC);if(!e)throw new Error("useUser must be used within a UserProvider");return e},v9=()=>{const e=sC(),t=Ea(),{isLoading:n,isAuthenticated:r}=k0();return C.useEffect(()=>{!n&&!r&&t(Be.HOME,{replace:!0,state:{requestSignIn:!0}})},[n,r,t]),n||!r?null:P.jsx(v0,{context:e})};var Md=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},lc=typeof window>"u"||"Deno"in globalThis;function is(){}function _9(e,t){return typeof e=="function"?e(t):e}function i2(e){return typeof e=="number"&&e>=0&&e!==1/0}function $C(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rd(e,t){return typeof e=="function"?e(t):e}function Ps(e,t){return typeof e=="function"?e(t):e}function SS(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:l,queryKey:c,stale:d}=e;if(c){if(r){if(t.queryHash!==R_(c,t.options))return!1}else if(!Uh(t.queryKey,c))return!1}if(n!=="all"){const p=t.isActive();if(n==="active"&&!p||n==="inactive"&&p)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||s&&s!==t.state.fetchStatus||l&&!l(t))}function ES(e,t){const{exact:n,status:r,predicate:s,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(uc(t.options.mutationKey)!==uc(l))return!1}else if(!Uh(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function R_(e,t){return((t==null?void 0:t.queryKeyHashFn)||uc)(e)}function uc(e){return JSON.stringify(e,(t,n)=>s2(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Uh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Uh(e[n],t[n])):!1}function jC(e,t){if(e===t)return e;const n=CS(e)&&CS(t);if(n||s2(e)&&s2(t)){const r=n?e:Object.keys(e),s=r.length,l=n?t:Object.keys(t),c=l.length,d=n?[]:{};let p=0;for(let g=0;g<c;g++){const v=n?g:l[g];(!n&&r.includes(v)||n)&&e[v]===void 0&&t[v]===void 0?(d[v]=void 0,p++):(d[v]=jC(e[v],t[v]),d[v]===e[v]&&e[v]!==void 0&&p++)}return s===c&&p===s?e:d}return t}function Wg(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function CS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function s2(e){if(!xS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!xS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function xS(e){return Object.prototype.toString.call(e)==="[object Object]"}function w9(e){return new Promise(t=>{setTimeout(t,e)})}function o2(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?jC(e,t):t}function S9(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function E9(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var I_=Symbol();function UC(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===I_?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Vu,gl,od,$3,C9=($3=class extends Md{constructor(){super();Ke(this,Vu);Ke(this,gl);Ke(this,od);Ae(this,od,t=>{if(!lc&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){F(this,gl)||this.setEventListener(F(this,od))}onUnsubscribe(){var t;this.hasListeners()||((t=F(this,gl))==null||t.call(this),Ae(this,gl,void 0))}setEventListener(t){var n;Ae(this,od,t),(n=F(this,gl))==null||n.call(this),Ae(this,gl,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){F(this,Vu)!==t&&(Ae(this,Vu,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 14,390 bytes, line 57
57this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof F(this,Vu)=="boolean"?F(this,Vu):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Vu=new WeakMap,gl=new WeakMap,od=new WeakMap,$3),O_=new C9,ad,yl,ld,j3,x9=(j3=class extends Md{constructor(){super();Ke(this,ad,!0);Ke(this,yl);Ke(this,ld);Ae(this,ld,t=>{if(!lc&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){F(this,yl)||this.setEventListener(F(this,ld))}onUnsubscribe(){var t;this.hasListeners()||((t=F(this,yl))==null||t.call(this),Ae(this,yl,void 0))}setEventListener(t){var n;Ae(this,ld,t),(n=F(this,yl))==null||n.call(this),Ae(this,yl,t(this.setOnline.bind(this)))}setOnline(t){F(this,ad)!==t&&(Ae(this,ad,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return F(this,ad)}},ad=new WeakMap,yl=new WeakMap,ld=new WeakMap,j3),qg=new x9;function a2(){let e,t;const n=new Promise((s,l)=>{e=s,t=l});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function b9(e){return Math.min(1e3*2**e,3e4)}function HC(e){return(e??"online")==="online"?qg.isOnline():!0}var BC=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gv(e){return e instanceof BC}function zC(e){let t=!1,n=0,r=!1,s;const l=a2(),c=R=>{var I;r||(E(new BC(R)),(I=e.abort)==null||I.call(e))},d=()=>{t=!0},p=()=>{t=!1},g=()=>O_.isFocused()&&(e.networkMode==="always"||qg.isOnline())&&e.canRun(),v=()=>HC(e.networkMode)&&e.canRun(),_=R=>{var I;r||(r=!0,(I=e.onSuccess)==null||I.call(e,R),s==null||s(),l.resolve(R))},E=R=>{var I;r||(r=!0,(I=e.onError)==null||I.call(e,R),s==null||s(),l.reject(R))},x=()=>new Promise(R=>{var I;s=L=>{(r||g())&&R(L)},(I=e.onPause)==null||I.call(e)}).then(()=>{var R;s=void 0,r||(R=e.onContinue)==null||R.call(e)}),b=()=>{if(r)return;let R;const I=n===0?e.initialPromise:void 0;try{R=I??e.fn()}catch(L){R=Promise.reject(L)}Promise.resolve(R).then(_).catch(L=>{var D;if(r)return;const H=e.retry??(lc?0:3),W=e.retryDelay??b9,Q=typeof W=="function"?W(n,L):W,te=H===!0||typeof H=="number"&&n<H||typeof H=="function"&&H(n,L);if(t||!te){E(L);return}n++,(D=e.onFail)==null||D.call(e,n,L),w9(Q).then(()=>g()?void 0:x()).then(()=>{t?E(L):b()})})};return{promise:l,cancel:c,continue:()=>(s==null||s(),l),cancelRetry:d,continueRetry:p,canStart:v,start:()=>(v()?b():x().then(b),l)}}function T9(){let e=[],t=0,n=d=>{d()},r=d=>{d()},s=d=>setTimeout(d,0);const l=d=>{t?e.push(d):s(()=>{n(d)})},c=()=>{const d=e;e=[],d.length&&s(()=>{r(()=>{d.forEach(p=>{n(p)})})})};return{batch:d=>{let p;t++;try{p=d()}finally{t--,t||c()}return p},batchCalls:d=>(...p)=>{l(()=>{d(...p)})},schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{s=d}}}var Bn=T9(),Gu,U3,WC=(U3=class{constructor(){Ke(this,Gu)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),i2(this.gcTime)&&Ae(this,Gu,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(lc?1/0:5*60*1e3))}clearGcTimeout(){F(this,Gu)&&(clearTimeout(F(this,Gu)),Ae(this,Gu,void 0))}},Gu=new WeakMap,U3),ud,cd,rs,Ku,Tr,Qh,Yu,Is,ta,H3,k9=(H3=class extends WC{constructor(t){super();Ke(this,Is);Ke(this,ud);Ke(this,cd);Ke(this,rs);Ke(this,Ku);Ke(this,Tr);Ke(this,Qh);Ke(this,Yu);Ae(this,Yu,!1),Ae(this,Qh,t.defaultOptions),this.setOptions(t.options),this.observers=[],Ae(this,Ku,t.client),Ae(this,rs,F(this,Ku).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Ae(this,ud,R9(this.options)),this.state=t.state??F(this,ud),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=F(this,Tr))==null?void 0:t.promise}setOptions(t){this.options={...F(this,Qh),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&F(this,rs).remove(this)}setData(t,n){const r=o2(this.state.data,t,this.options);return gt(this,Is,ta).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){gt(this,Is,ta).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=F(this,Tr))==null?void 0:r.promise;return(s=F(this,Tr))==null||s.cancel(t),n?n.then(is).catch(is):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(F(this,ud))}isActive(){return this.observers.some(t=>Ps(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===I_||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!$C(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=F(this,Tr))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=F(this,Tr))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),F(this,rs).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(F(this,Tr)&&(F(this,Yu)?F(this,Tr).cancel({revert:!0}):F(this,Tr).cancelRetry()),this.scheduleGc()),F(this,rs).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||gt(this,Is,ta).call(this,{type:"invalidate"})}fetch(t,n){var p,g,v;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(F(this,Tr))return F(this,Tr).continueRetry(),F(this,Tr).promise}if(t&&this.setOptions(t),!this.options.queryFn){const _=this.observers.find(E=>E.options.queryFn);_&&this.setOptions(_.options)}const r=new AbortController,s=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(Ae(this,Yu,!0),r.signal)})},l=()=>{const _=UC(this.options,n),E={client:F(this,Ku),queryKey:this.queryKey,meta:this.meta};return s(E),Ae(this,Yu,!1),this.options.persister?this.options.persister(_,E,this):_(E)},c={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:F(this,Ku),state:this.state,fetchFn:l};s(c),(p=this.options.behavior)==null||p.onFetch(c,this),Ae(this,cd,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=c.fetchOptions)==null?void 0:g.meta))&&gt(this,Is,ta).call(this,{type:"fetch",meta:(v=c.fetchOptions)==null?void 0:v.meta});const d=_=>{var E,x,b,R;gv(_)&&_.silent||gt(this,Is,ta).call(this,{type:"error",error:_}),gv(_)||((x=(E=F(this,rs).config).onError)==null||x.call(E,_,this),(R=(b=F(this,rs).config).onSettled)==null||R.call(b,this.state.data,_,this)),this.scheduleGc()};return Ae(this,Tr,zC({initialPromise:n==null?void 0:n.initialPromise,fn:c.fetchFn,abort:r.abort.bind(r),onSuccess:_=>{var E,x,b,R;if(_===void 0){d(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(_)}catch(I){d(I);return}(x=(E=F(this,rs).config).onSuccess)==null||x.call(E,_,this),(R=(b=F(this,rs).config).onSettled)==null||R.call(b,_,this.state.error,this),this.scheduleGc()},onError:d,onFail:(_,E)=>{gt(this,Is,ta).call(this,{type:"failed",failureCount:_,error:E})},onPause:()=>{gt(this,Is,ta).call(this,{type:"pause"})},onContinue:()=>{gt(this,Is,ta).call(this,{type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0})),F(this,Tr).start()}},ud=new WeakMap,cd=new WeakMap,rs=new WeakMap,Ku=new WeakMap,Tr=new WeakMap,Qh=new WeakMap,Yu=new WeakMap,Is=new WeakSet,ta=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...qC(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return gv(s)&&s.revert&&F(this,cd)?{...F(this,cd),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Bn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),F(this,rs).notify({query:this,type:"updated",action:t})})},H3);function qC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:HC(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function R9(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var mo,B3,VC=(B3=class extends Md{constructor(t={}){super();Ke(this,mo);this.config=t,Ae(this,mo,new Map)}build(t,n,r){const s=n.queryKey,l=n.queryHash??R_(s,n);let c=this.get(l);return c||(c=new k9({client:t,queryKey:s,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(c)),c}add(t){F(this,mo).has(t.queryHash)||(F(this,mo).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=F(this,mo).get(t.queryHash);n&&(t.destroy(),n===t&&F(this,mo).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Bn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return F(this,mo).get(t)}getAll(){return[...F(this,mo).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>SS(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>SS(t,r)):n}notify(t){Bn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Bn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Bn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},mo=new WeakMap,B3),go,Ur,Qu,yo,cl,z3,I9=(z3=class extends WC{constructor(t){super();Ke(this,yo);Ke(this,go);Ke(this,Ur);Ke(this,Qu);this.mutationId=t.mutationId,Ae(this,Ur,t.mutationCache),Ae(this,go,[]),this.state=t.state||GC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){F(this,go).includes(t)||(F(this,go).push(t),this.clearGcTimeout(),F(this,Ur).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Ae(this,go,F(this,go).filter(n=>n!==t)),this.scheduleGc(),F(this,Ur).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){F(this,go).length||(this.state.status==="pending"?this.scheduleGc():F(this,Ur).remove(this))}continue(){var t;return((t=F(this,Qu))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,l,c,d,p,g,v,_,E,x,b,R,I,L,H,W,Q,te,D,Z;Ae(this,Qu,zC({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(ue,X)=>{gt(this,yo,cl).call(this,{type:"failed",failureCount:ue,error:X})},onPause:()=>{gt(this,yo,cl).call(this,{type:"pause"})},onContinue:()=>{gt(this,yo,cl).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>F(this,Ur).canRun(this)}));const n=this.state.status==="pending",r=!F(this,Qu).canStart();try{if(!n){gt(this,yo,cl).call(this,{type:"pending",variables:t,isPaused:r}),await((l=(s=F(this,Ur).config).onMutate)==null?void 0:l.call(s,t,this));const X=await((d=(c=this.options).onMutate)==null?void 0:d.call(c,t));X!==this.state.context&&gt(this,yo,cl).call(this,{type:"pending",context:X,variables:t,isPaused:r})}const ue=await F(this,Qu).start();return await((g=(p=F(this,Ur).config).onSuccess)==null?void 0:g.call(p,ue,t,this.state.context,this)),await((_=(v=this.options).onSuccess)==null?void 0:_.call(v,ue,t,this.state.context)),await((x=(E=F(this,Ur).config).onSettled)==null?void 0:x.call(E,ue,null,this.state.variables,this.state.context,this)),await((R=(b=this.options).onSettled)==null?void 0:R.call(b,ue,null,t,this.state.context)),gt(this,yo,cl).call(this,{type:"success",data:ue}),ue}catch(ue){try{throw await((L=(I=F(this,Ur).config).onError)==null?void 0:L.call(I,ue,t,this.state.context,this)),await((W=(H=this.options).onError)==null?void 0:W.call(H,ue,t,this.state.context)),await((te=(Q=F(this,Ur).config).onSettled)==null?void 0:te.call(Q,void 0,ue,this.state.variables,this.state.context,this)),await((Z=(D=this.options).onSettled)==null?void 0:Z.call(D,void 0,ue,t,this.state.context)),ue}finally{gt(this,yo,cl).call(this,{type:"error",error:ue})}}finally{F(this,Ur).runNext(this)}}},go=new WeakMap,Ur=new WeakMap,Qu=new WeakMap,yo=new WeakSet,cl=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Bn.batch(()=>
57{F(this,go).forEach(r=>{r.onMutationUpdate(t)}),F(this,Ur).notify({mutation:this,type:"updated",action:t})})},z3);function GC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var sa,Os,Xh,W3,KC=(W3=class extends Md{constructor(t={}){super();Ke(this,sa);Ke(this,Os);Ke(this,Xh);this.config=t,Ae(this,sa,new Set),Ae(this,Os,new Map),Ae(this,Xh,0)}build(t,n,r){const s=new I9({mutationCache:this,mutationId:++Z1(this,Xh)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){F(this,sa).add(t);const n=rg(t);if(typeof n=="string"){const r=F(this,Os).get(n);r?r.push(t):F(this,Os).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(F(this,sa).delete(t)){const n=rg(t);if(typeof n=="string"){const r=F(this,Os).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&F(this,Os).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=rg(t);if(typeof n=="string"){const r=F(this,Os).get(n),s=r==null?void 0:r.find(l=>l.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=rg(t);if(typeof n=="string"){const s=(r=F(this,Os).get(n))==null?void 0:r.find(l=>
vendor: 17,176 bytes, line 57
57l!==t&&l.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Bn.batch(()=>{F(this,sa).forEach(t=>{this.notify({type:"removed",mutation:t})}),F(this,sa).clear(),F(this,Os).clear()})}getAll(){return Array.from(F(this,sa))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ES(n,r))}findAll(t={}){return this.getAll().filter(n=>ES(t,n))}notify(t){Bn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Bn.batch(()=>Promise.all(t.map(n=>n.continue().catch(is))))}},sa=new WeakMap,Os=new WeakMap,Xh=new WeakMap,W3);function rg(e){var t;return(t=e.options.scope)==null?void 0:t.id}function bS(e){return{onFetch:(t,n)=>{var v,_,E,x,b;const r=t.options,s=(E=(_=(v=t.fetchOptions)==null?void 0:v.meta)==null?void 0:_.fetchMore)==null?void 0:E.direction,l=((x=t.state.data)==null?void 0:x.pages)||[],c=((b=t.state.data)==null?void 0:b.pageParams)||[];let d={pages:[],pageParams:[]},p=0;const g=async()=>{let R=!1;const I=W=>{Object.defineProperty(W,"signal",{enumerable:!0,get:()=>(t.signal.aborted?R=!0:t.signal.addEventListener("abort",()=>{R=!0}),t.signal)})},L=UC(t.options,t.fetchOptions),H=async(W,Q,te)=>{if(R)return Promise.reject();if(Q==null&&W.pages.length)return Promise.resolve(W);const D={client:t.client,queryKey:t.queryKey,pageParam:Q,direction:te?"backward":"forward",meta:t.options.meta};I(D);const Z=await L(D),{maxPages:ue}=t.options,X=te?E9:S9;return{pages:X(W.pages,Z,ue),pageParams:X(W.pageParams,Q,ue)}};if(s&&l.length){const W=s==="backward",Q=W?YC:l2,te={pages:l,pageParams:c},D=Q(r,te);d=await H(te,D,W)}else{const W=e??l.length;do{const Q=p===0?c[0]??r.initialPageParam:l2(r,d);if(p>0&&Q==null)break;d=await H(d,Q),p++}while(p<W)}return d};t.options.persister?t.fetchFn=()=>{var R,I;return(I=(R=t.options).persister)==null?void 0:I.call(R,g,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=g}}}function l2(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function YC(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function bW(e,t){return t?l2(e,t)!=null:!1}function TW(e,t){return!t||!e.getPreviousPageParam?!1:YC(e,t)!=null}var wn,vl,_l,fd,dd,wl,pd,hd,q3,O9=(q3=class{constructor(e={}){Ke(this,wn);Ke(this,vl);Ke(this,_l);Ke(this,fd);Ke(this,dd);Ke(this,wl);Ke(this,pd);Ke(this,hd);Ae(this,wn,e.queryCache||new VC),Ae(this,vl,e.mutationCache||new KC),Ae(this,_l,e.defaultOptions||{}),Ae(this,fd,new Map),Ae(this,dd,new Map),Ae(this,wl,0)}mount(){Z1(this,wl)._++,F(this,wl)===1&&(Ae(this,pd,O_.subscribe(async e=>{e&&(await this.resumePausedMutations(),F(this,wn).onFocus())})),Ae(this,hd,qg.subscribe(async e=>{e&&(await this.resumePausedMutations(),F(this,wn).onOnline())})))}unmount(){var e,t;Z1(this,wl)._--,F(this,wl)===0&&((e=F(this,pd))==null||e.call(this),Ae(this,pd,void 0),(t=F(this,hd))==null||t.call(this),Ae(this,hd,void 0))}isFetching(e){return F(this,wn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return F(this,vl).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=F(this,wn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=F(this,wn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(rd(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return F(this,wn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=F(this,wn).get(r.queryHash),l=s==null?void 0:s.state.data,c=_9(t,l);if(c!==void 0)return F(this,wn).build(this,r).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Bn.batch(()=>F(this,wn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=F(this,wn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=F(this,wn);Bn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=F(this,wn);return Bn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Bn.batch(()=>F(this,wn).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(is).catch(is)}invalidateQueries(e,t={}){return Bn.batch(()=>(F(this,wn).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Bn.batch(()=>F(this,wn).findAll(e).filter(s=>!s.isDisabled()).map(s=>{let l=s.fetch(void 0,n);return n.throwOnError||(l=l.catch(is)),s.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(is)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=F(this,wn).build(this,t);return n.isStaleByTime(rd(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(is).catch(is)}fetchInfiniteQuery(e){return e.behavior=bS(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(is).catch(is)}ensureInfiniteQueryData(e){return e.behavior=bS(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qg.isOnline()?F(this,vl).resumePausedMutations():Promise.resolve()}getQueryCache(){return F(this,wn)}getMutationCache(){return F(this,vl)}getDefaultOptions(){return F(this,_l)}setDefaultOptions(e){Ae(this,_l,e)}setQueryDefaults(e,t){F(this,fd).set(uc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...F(this,fd).values()],n={};return t.forEach(r=>{Uh(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){F(this,dd).set(uc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...F(this,dd).values()],n={};return t.forEach(r=>{Uh(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...F(this,_l).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=R_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===I_&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...F(this,_l).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){F(this,wn).clear(),F(this,vl).clear()}},wn=new WeakMap,vl=new WeakMap,_l=new WeakMap,fd=new WeakMap,dd=new WeakMap,wl=new WeakMap,pd=new WeakMap,hd=new WeakMap,q3),fi,bt,Jh,Hr,Xu,md,Sl,vo,Zh,gd,yd,Ju,Zu,El,vd,zt,bh,u2,c2,f2,d2,p2,h2,m2,QC,V3,A9=(V3=class extends Md{constructor(t,n){super();Ke(this,zt);Ke(this,fi);Ke(this,bt);Ke(this,Jh);Ke(this,Hr);Ke(this,Xu);Ke(this,md);Ke(this,Sl);Ke(this,vo);Ke(this,Zh);Ke(this,gd);Ke(this,yd);Ke(this,Ju);Ke(this,Zu);Ke(this,El);Ke(this,vd,new Set);this.options=n,Ae(this,fi,t),Ae(this,vo,null),Ae(this,Sl,a2()),this.options.experimental_prefetchInRender||F(this,Sl).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&&(F(this,bt).addObserver(this),TS(F(this,bt),this.options)?gt(this,zt,bh).call(this):this.updateResult(),gt(this,zt,d2).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return g2(F(this,bt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return g2(F(this,bt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,gt(this,zt,p2).call(this),gt(this,zt,h2).call(this),F(this,bt).removeObserver(this)}setOptions(t,n){const r=this.options,s=F(this,bt);if(this.options=F(this,fi).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ps(this.options.enabled,F(this,bt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");gt(this,zt,m2).call(this),F(this,bt).setOptions(this.options),r._defaulted&&!Wg(this.options,r)&&F(this,fi).getQueryCache().notify({type:"observerOptionsUpdated",query:F(this,bt),observer:this});const l=this.hasListeners();l&&kS(F(this,bt),s,this.options,r)&&gt(this,zt,bh).call(this),this.updateResult(n),l&&(F(this,bt)!==s||Ps(this.options.enabled,F(this,bt))!==Ps(r.enabled,F(this,bt))||rd(this.options.staleTime,F(this,bt))!==rd(r.staleTime,F(this,bt)))&&gt(this,zt,u2).call(this);const c=gt(this,zt,c2).call(this);l&&(F(this,bt)!==s||Ps(this.options.enabled,F(this,bt))!==Ps(r.enabled,F(this,bt))||c!==F(this,El))&&gt(this,zt,f2).call(this,c)}getOptimisticResult(t){const n=F(this,fi).getQueryCache().build(F(this,fi),t),r=this.createResult(n,t);return L9(this,r)&&(Ae(this,Hr,r),Ae(this,md,this.options),Ae(this,Xu,F(this,bt).state)),r}getCurrentResult(){return F(this,Hr)}trackResult(t,n){const r={};return Object.keys(t).forEach(s=>{Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),n==null||n(s),t[s])})}),r}trackProp(t){F(this,vd).add(t)}getCurrentQuery(){return F(this,bt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=F(this,fi).defaultQueryOptions(t),r=F(this,fi).getQueryCache().build(F(this,fi),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return gt(this,zt,bh).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),F(this,Hr)))}createResult(t,n){var ue;const r=F(this,bt),s=this.options,l=F(this,Hr),c=F(this,Xu),d=F(this,md),g=t!==r?t.state:F(this,Jh),{state:v}=t;let _={...v},E=!1,x;if(n._optimisticResults){const X=this.hasListeners(),ce=!X&&TS(t,n),ye=X&&kS(t,r,n,s);(ce||ye)&&(_={..._,...qC(v.data,t.options)}),n._optimisticResults==="isRestoring"&&(_.fetchStatus="idle")}let{error:b,errorUpdatedAt:R,status:I}=_;if(n.select&&_.data!==void 0)if(l&&_.data===(c==null?void 0:c.data)&&n.select===F(this,Zh))x=F(this,gd);else try{Ae(this,Zh,n.select),x=n.select(_.data),x=o2(l==null?void 0:l.data,x,n),Ae(this,gd,x),Ae(this,vo,null)}catch(X){Ae(this,vo,X)}else x=_.data;if(n.placeholderData!==void 0&&x===void 0&&I==="pending"){let X;if(l!=null&&l.isPlaceholderData&&n.placeholderData===(d==null?void 0:d.placeholderData))X=l.data;else if(X=typeof n.placeholderData=="function"?n.placeholderData((ue=F(this,yd))==null?void 0:ue.state.data,F(this,yd)):n.placeholderData,n.select&&X!==void 0)try{X=n.select(X),Ae(this,vo,null)}catch(ce){Ae(this,vo,ce)}X!==void 0&&(I="success",x=o2(l==null?void 0:l.data,X,n),E=!0)}F(this,vo)&&(b=F(this,vo),x=F(this,gd),R=Date.now(),I="error");const L=_.fetchStatus==="fetching",H=I==="pending",W=I==="error",Q=H&&L,te=x!==void 0,Z={status:I,fetchStatus:_.fetchStatus,isPending:H,isSuccess:I==="success",isError:W,isInitialLoading:Q,isLoading:Q,data:x,dataUpdatedAt:_.dataUpdatedAt,error:b,errorUpdatedAt:R,failureCount:_.fetchFailureCount,failureReason:_.fetchFailureReason,errorUpdateCount:_.errorUpdateCount,isFetched:_.dataUpdateCount>0||_.errorUpdateCount>0,isFetchedAfterMount:_.dataUpdateCount>g.dataUpdateCount||_.errorUpdateCount>g.errorUpdateCount,isFetching:L,isRefetching:L&&!H,isLoadingError:W&&!te,isPaused:_.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:W&&te,isStale:A_(t,n),refetch:this.refetch,promise:F(this,Sl)};if(this.options.experimental_prefetchInRender){const X=de=>{Z.status==="error"?de.reject(Z.error):Z.data!==void 0&&de.resolve(Z.data)},ce=()=>{const de=Ae(this,Sl,Z.promise=a2());X(de)},ye=F(this,Sl);switch(ye.status){case"pending":t.queryHash===r.queryHash&&X(ye);break;case"fulfilled":(Z.status==="error"||Z.data!==ye.value)&&ce();break;case"rejected":(Z.status!=="error"||Z.error!==ye.reason)&&ce();break}}return Z}updateResult(t){const n=F(this,Hr),r=this.createResult(F(this,bt),this.options);if(Ae(this,Xu,F(this,bt).state),Ae(this,md,this.options),F(this,Xu).data!==void 0&&Ae(this,yd,F(this,bt)),Wg(r,n))return;Ae(this,Hr,r);const s={},l=()=>{if(!n)return!0;const{notifyOnChangeProps:c}=this.options,d=typeof c=="function"?c():c;if(d==="all"||!d&&!F(this,vd).size)return!0;const p=new Set(d??F(this,vd));return this.options.throwOnError&&p.add("error"),Object.keys(F(this,Hr)).some(g=>{const v=g;return F(this,Hr)[v]!==n[v]&&p.has(v)})};(t==null?void 0:t.listeners)!==!1&&l()&&(s.listeners=!0),gt(this,zt,QC).call(this,{...s,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&gt(this,zt,d2).call(this)}},fi=new WeakMap,bt=new WeakMap,Jh=new WeakMap,Hr=new WeakMap,Xu=new WeakMap,md=new WeakMap,Sl=new WeakMap,vo=new WeakMap,Zh=new WeakMap,gd=new WeakMap,yd=new WeakMap,Ju=new WeakMap,Zu=new WeakMap,El=new WeakMap,vd=new WeakMap,zt=new WeakSet,bh=function(t){gt(this,zt,m2).call(this);let n=F(this,bt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(is)),n},u2=function(){gt(this,zt,p2).call(this);const t=rd(this.options.staleTime,F(this,bt));if(lc||F(this,Hr).isStale||!i2(t))return;const r=$C(F(this,Hr).dataUpdatedAt,t)+1;Ae(this,Ju,setTimeout(()=>{F(this,Hr).isStale||this.updateResult()},r))},c2=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(F(this,bt)):this.options.refetchInterval)??!1},f2=function(t){gt(this,zt,h2).call(this),Ae(this,El,t),!(lc||Ps(this.options.enabled,F(this,bt))===!1||!i2(F(this,El))||F(this,El)===0)&&Ae(this,Zu,setInterval(()=>{(this.options.refetchIntervalInBackground||O_.isFocused())&&gt(this,zt,bh).call(this)},F(this,El)))},d2=function(){gt(this,zt,u2).call(this),gt(this,zt,f2).call(this,gt(this,zt,c2).call(this))},p2=function(){F(this,Ju)&&(clearTimeout(F(this,Ju)),Ae(this,Ju,void 0))},h2=function(){F(this,Zu)&&(clearInterval(F(this,Zu)),Ae(this,Zu,void 0))},m2=function(){const t=F(this,fi).getQueryCache().build(F(this,fi),this.options);if(t===F(this,bt))return;const n=F(this,bt);Ae(this,bt,t),Ae(this,Jh,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},QC=function(t){Bn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(F(this,Hr))}),F(this,fi).getQueryCache().notify({query:F(this,bt),type:"observerResultsUpdated"})})},V3);function P9(e,t){return Ps(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function TS(e,t){return P9(e,t)||e.state.data!==void 0&&g2(e,t,t.refetchOnMount)}function g2(e,t,n){if(Ps(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&A_(e,t)}return!1}function kS(e,t,n,r){return(e!==t||Ps(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&A_(e,n)}function A_(e,t){return Ps(t.enabled,e)!==!1&&e.isStaleByTime(rd(t.staleTime,e))}function L9(e,t){return!Wg(e.getCurrentResult(),t)}var Cl,xl,di,oa,pa,Ig,y2,G3,N9=(G3=class extends Md{constructor(n,r){super();Ke(this,pa);Ke(this,Cl);Ke(this,xl);Ke(this,di);Ke(this,oa);Ae(this,Cl,n),this.setOptions(r),this.bindMethods(),gt(this,pa,Ig).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const r=this.options;this.options=F(this,Cl).defaultMutationOptions(n),Wg(this.options,r)||F(this,Cl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:F(this,di),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&uc(r.mutationKey)!==uc(this.options.mutationKey)?this.reset():((s=F(this,di))==null?void 0:s.state.status)==="pending"&&F(this,di).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=F(this,di))==null||n.removeObserver(this)}onMutationUpdate(n){gt(this,pa,Ig).call(this),gt(this,pa,y2).call(this,n)}getCurrentResult(){return F(this,xl)}reset(){var n;(n=F(this,di))==null||n.removeObserver(this),Ae(this,di,void 0),gt(this,pa,Ig).call(this),gt(this,pa,y2).call(this)}mutate(n,r){var s;return Ae(this,oa,r),(s=F(this,di))==null||s.removeObserver(this),Ae(this,di,F(this,Cl).getMutationCache().build(F(this,Cl),this.options)),F(this,di).addObserver(this),F(this,di).execute(n)}},Cl=new WeakMap,xl=new WeakMap,di=new WeakMap,oa=new WeakMap,pa=new WeakSet,Ig=function(){var r;const n=((r=F(this,di))==null?void 0:r.state)??GC();Ae(this,xl,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},y2=function(n){Bn.batch(()=>{var r,s,l,c,d,p,g,v;if(F(this,oa)&&this.hasListeners()){const _=F(this,xl).variables,E=F(this,xl).context;(n==null?void 0:n.type)==="success"?((s=(r=F(this,oa)).onSuccess)==null||s.call(r,n.data,_,E),(c=(l=F(this,oa)).onSettled)==null||c.call(l,n.data,null,_,E)):(n==null?void 0:n.type)==="error"&&((p=(d=F(this,oa)).onError)==null||p.call(d,n.error,_,E),(v=(g=F(this,oa)).onSettled)==null||v.call(g,void 0,n.error,_,E))}
57this.listeners.forEach(_=>{_(F(this,xl))})})},G3),XC=C.createContext(void 0),P_=e=>{const t=C.useContext(XC);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},M9=({client:e,children:t})=>(C.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),P.jsx(XC.Provider,{value:e,children:t})),JC=C.createContext(!1),D9=()=>C.useContext(JC);JC.Provider;function F9(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $9=C.createContext(F9()),j9=()=>C.useContext($9);function ZC(e,t){return typeof e=="function"?e(...t):!!e}function v2(){}var U9=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},H9=e=>{C.useEffect(()=>{e.clearReset()},[e])},B9=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||ZC(n,[e.error,r])),z9=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},W9=(e,t)=>e.isLoading&&e.isFetching&&!t,q9=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,RS=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function V9(e,t,n){var _,E,x,b,R;const r=P_(),s=D9(),l=j9(),c=r.defaultQueryOptions(e);(E=(_=r.getDefaultOptions().queries)==null?void 0:_._experimental_beforeQuery)==null||E.call(_,c),c._optimisticResults=s?"isRestoring":"optimistic",z9(c),U9(c,l),H9(l);const d=!r.getQueryCache().get(c.queryHash),[p]=C.useState(()=>new t(r,c)),g=p.getOptimisticResult(c),v=!s&&e.subscribed!==!1;if(C.useSyncExternalStore(C.useCallback(I=>{const L=v?p.subscribe(Bn.batchCalls(I)):v2;return p.updateResult(),L},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),C.useEffect(()=>{p.setOptions(c,{listeners:!1})},[c,p]),q9(c,g))throw RS(c,p,l);if(B9({result:g,errorResetBoundary:l,throwOnError:c.throwOnError,query:r.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw g.error;if((b=(x=r.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||b.call(x,c,g),c.experimental_prefetchInRender&&!lc&&W9(g,s)){const I=d?RS(c,p,l):(R=r.getQueryCache().get(c.queryHash))==null?void 0:R.promise;I==null||I.catch(v2).finally(()=>{p.updateResult()})}return c.notifyOnChangeProps?g:p.trackResult(g)}function G9(e,t){return V9(e,A9)}function K9(e,t){const n=P_(),[r]=C.useState(()=>new N9(n,e));C.useEffect(()=>{r.setOptions(e)},[r,e]);const s=C.useSyncExternalStore(C.useCallback(c=>r.subscribe(Bn.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=C.useCallback((c,d)=>{r.mutate(c,d).catch(v2)},[r]);if(s.error&&ZC(r.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}const Y9=e=>new O9({defaultOptions:{queries:{retry:(t,n)=>{var s,l;const r=n;return((s=r.response)==null?void 0:s.status)!==401&&((l=r.response)==null?void 0:l.status)!==403&&t<3},staleTime:6e4,refetchOnWindowFocus:!0}},mutationCache:new KC({onError:t=>{var n;t instanceof mv&&((n=t.response)==null?void 0:n.status)===401&&(zg(),window.location.href=Be.HOME)}}),queryCache:new VC({onError:(t,n)=>{var r,s,l,c,d;if(t instanceof mv){if(t instanceof mv&&((r=t.response)==null?void 0:r.status)===401){zg(),window.location.href=Be.HOME;return}if((s=n.meta)!=null&&s.suppressError&&Array.isArray((l=n.meta)==null?void 0:l.suppressError)&&((d=n.meta)!=null&&d.suppressError.includes((c=t.response)==null?void 0:c.status)))return;e==null||e(t)}}})});/**
58 * @license lucide-react v0.482.0 - ISC
59 *
60 * This source code is licensed under the ISC license.
61 * See the LICENSE file in the root directory of this source tree.
62 */const Q9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),e5=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
63 * @license lucide-react v0.482.0 - ISC
64 *
65 * This source code is licensed under the ISC license.
66 * See the LICENSE file in the root directory of this source tree.
67 */var X9={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"};/**
68 * @license lucide-react v0.482.0 - ISC
69 *
70 * This source code is licensed under the ISC license.
71 * See the LICENSE file in the root directory of this source tree.
72 */const J9=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:l,iconNode:c,...d},p)=>C.createElement("svg",{ref:p,...X9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:e5("lucide",s),...d},[...c.map(([g,v])=>C.createElement(g,v)),...Array.isArray(l)?l:[l]]));/**
73 * @license lucide-react v0.482.0 - ISC
74 *
75 * This source code is licensed under the ISC license.
76 * See the LICENSE file in the root directory of this source tree.
77 */const Nl=(e,t)=>{const n=C.forwardRef(({className:r,...s},l)=>C.createElement(J9,{ref:l,iconNode:t,className:e5(`lucide-${Q9(e)}`,r),...s}));return n.displayName=`${e}`,n};/**
78 * @license lucide-react v0.482.0 - ISC
79 *
80 * This source code is licensed under the ISC license.
81 * See the LICENSE file in the root directory of this source tree.
82 */const Z9=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Vg=Nl("Check",Z9);/**
83 * @license lucide-react v0.482.0 - ISC
84 *
85 * This source code is licensed under the ISC license.
86 * See the LICENSE file in the root directory of this source tree.
87 */const eR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],tR=Nl("ChevronLeft",eR);/**
88 * @license lucide-react v0.482.0 - ISC
89 *
90 * This source code is licensed under the ISC license.
91 * See the LICENSE file in the root directory of this source tree.
92 */const nR=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],rR=Nl("Lock",nR);/**
93 * @license lucide-react v0.482.0 - ISC
94 *
95 * This source code is licensed under the ISC license.
96 * See the LICENSE file in the root directory of this source tree.
97 */const iR=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],sR=Nl("Sparkles",iR);/**
98 * @license lucide-react v0.482.0 - ISC
99 *
100 * This source code is licensed under the ISC license.
101 * See the LICENSE file in the root directory of this source tree.
102 */const oR=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aR=Nl("TriangleAlert",oR);/**
103 * @license lucide-react v0.482.0 - ISC
104 *
105 * This source code is licensed under the ISC license.
106 * See the LICENSE file in the root directory of this source tree.
107 */const lR=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],uR=Nl("UserRoundCheck",lR);/**
108 * @license lucide-react v0.482.0 - ISC
109 *
110 * This source code is licensed under the ISC license.
111 * See the LICENSE file in the root directory of this source tree.
112 */const cR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
112],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Dd=Nl("X",cR);/**
113 * @license lucide-react v0.482.0 - ISC
114 *
115 * This source code is licensed under the ISC license.
116 * See the LICENSE file in the root directory of this source tree.
117 */const fR=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],dR=Nl("Zap",fR),pR={"top-right":"top-0 right-0","top-left":"top-0 left-0","bottom-right":"bottom-0 right-0","bottom-left":"bottom-0 left-0"},hR=({position:e,color:t,size:n})=>P.jsx("div",{className:`pointer-events-none absolute z-0 ${pR[e]}`,style:{width:n,height:n,background:`radial-gradient(circle at ${e.replace("-"," ")}, ${t} 0%, rgba(0, 0, 0, 0) 70%)`},"aria-hidden":"true"}),mR=e=>C.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M6 16H14M9.0177 1.764L2.23539 7.03912C1.78202 7.39175 1.55534 7.56806 1.39203 7.78886C1.24737 7.98444 1.1396 8.20478 1.07403 8.43905C1 8.70352 1 8.9907 1 9.56505V16.8C1 17.9201 1 18.4801 1.21799 18.908C1.40973 19.2843 1.71569 19.5903 2.09202 19.782C2.51984 20 3.07989 20 4.2 20H15.8
117C16.9201 20 17.4802 20 17.908 19.782C18.2843 19.5903 18.5903 19.2843 18.782 18.908C19 18.4801 19 17.9201 19 16.8V9.56505C19 8.9907 19 8.70352 18.926 8.43905C18.8604 8.20478 18.7526 7.98444 18.608 7.78886C18.4447 7.56806 18.218 7.39175 17.7646 7.03913L10.9823 1.764C10.631 1.49075 10.4553 1.35412 10.2613 1.3016C10.0902 1.25526 9.9098 1.25526 9.73865 1.3016C9.54468 1.35412 9.36902 1.49075 9.0177 1.764Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),gR=e=>C.createElement("svg",{width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M9 14L5.92474 17.1137C5.49579 17.548 5.28131 17.7652 5.09695 17.7805C4.93701 17.7938 4.78042 17.7295 4.67596 17.6076C4.55556 17.4672 4.55556 17.162 4.55556 16.5515V14.9916C4.55556 14.444 4.10707 14.0477 3.5652 13.9683V13.9683C2.25374 13.7762 1.22378 12.7463 1.03168 11.4348C1 11.2186 1 10.9605 1 10.4444V5.8C1 4.11984 1 3.27976 1.32698 2.63803C1.6146 2.07354 2.07354 1.6146 2.63803 1.32698C3.27976 1 4.11984 1 5.8 1H13.2C14.8802 1 15.7202 1 16.362 1.32698C16.9265 1.6146 17.3854 2.07354 17.673 2.63803C18 3.27976 18 4.11984 18 5.8V10M18 21L15.8236 19.4869C15.5177 19.2742 15.3647 19.1678 15.1982 19.0924C15.0504 19.0255 14.8951 18.9768 14.7356 18.9474C14.5558 18.9143 14.3695 18.9143 13.9969 18.9143H12.2C11.0799 18.9143 10.5198 18.9143 10.092 18.6963C9.71569 18.5046 9.40973 18.1986 9.21799 17.8223C9 17.3944 9 16.8344 9 15.7143V13.2C9 12.0799 9 11.5198 9.21799 11.092C9.40973 10.7157 9.71569 10.4097 10.092 10.218C10.5198 10 11.0799 10 12.2 10H17.8C18.9201 10 19.4802 10 19.908 10.218C20.2843 10.4097 20.5903 10.7157 20.782 11.092C21 11.5198 21 12.0799 21 13.2V15.9143C21 16.8462 21 17.3121 20.8478 17.6797C20.6448 18.1697 20.2554 18.5591 19.7654 18.762C19.3978 18.9143 18.9319 18.9143 18 18.9143V21Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),yR=e=>C.createElement("svg",{width:20,height:21,viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M10 11.5V5.5M7 8.5H13M5 16V18.3355C5 18.8684 5 19.1348 5.10923 19.2716C5.20422 19.3906 5.34827 19.4599 5.50054 19.4597C5.67563 19.4595 5.88367 19.2931 6.29976 18.9602L8.68521 17.0518C9.17252 16.662 9.41617 16.4671 9.68749 16.3285C9.9282 16.2055 10.1844 16.1156 10.4492 16.0613C10.7477 16 11.0597 16 11.6837 16H14.2C15.8802 16 16.7202 16 17.362 15.673C17.9265 15.3854 18.3854 14.9265 18.673 14.362C19 13.7202 19 12.8802 19 11.2V5.8C19 4.11984 19 3.27976 18.673 2.63803C18.3854 2.07354 17.9265 1.6146 17.362 1.32698C16.7202 1 15.8802 1 14.2 1H5.8C4.11984 1 3.27976 1 2.63803 1.32698C2.07354 1.6146 1.6146 2.07354 1.32698 2.63803C1 3.27976 1 4.11984 1 5.8V12C1 12.93 1 13.395 1.10222 13.7765C1.37962 14.8117 2.18827 15.6204 3.22354 15.8978C3.60504 16 4.07003 16 5 16Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),vR=e=>C.createElement("svg",{width:22,height:20,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M21 19V17C21 15.1362 19.7252 13.5701 18 13.126M14.5 1.29076C15.9659 1.88415 17 3.32131 17 5C17 6.67869 15.9659 8.11585 14.5 8.70924M16 19C16 17.1362 16 16.2044 15.6955 15.4693C15.2895 14.4892 14.5108 13.7105 13.5307 13.3045C12.7956 13 11.8638 13 10 13H7C5.13623 13 4.20435 13 3.46927 13.3045C2.48915 13.7105 1.71046 14.4892 1.30448 15.4693C1 16.2044 1 17.1362 1 19M12.5 5C12.5 7.20914 10.7091 9 8.5 9C6.29086 9 4.5 7.20914 4.5 5C4.5 2.79086 6.29086 1 8.5 1C10.7091 1 12.5 2.79086 12.5 5Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_R=e=>C.createElement("svg",{width:22,height:21,viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M10.2827 2.45332C10.5131 1.98638 10.6284 1.75291 10.7848 1.67831C10.9209 1.61341 11.0791 1.61341 11.2152 1.67831C11.3717 1.75291 11.4869 1.98638 11.7174 2.45332L13.9041 6.88328C13.9721 7.02113 14.0061 7.09006 14.0558 7.14358C14.0999 7.19096 14.1527 7.22935 14.2113 7.25662C14.2776 7.28742 14.3536 7.29854 14.5057 7.32077L19.397 8.03571C19.9121 8.11099 20.1696 8.14863 20.2888 8.27444C20.3925 8.38389 20.4412 8.5343 20.4215 8.68377C20.3988 8.85558 20.2124 9.03718 19.8395 9.40038L16.3014 12.8464C16.1912 12.9538 16.136 13.0076 16.1004 13.0715C16.0689 13.128 16.0487 13.1902 16.0409 13.2545C16.0321 13.3271 16.0451 13.403 16.
1170711 13.5547L16.906 18.4221C16.994 18.9355 17.038 19.1922 16.9553 19.3445C16.8833 19.477 16.7554 19.57 16.6071 19.5975C16.4366 19.6291 16.2061 19.5078 15.7451 19.2654L11.3724 16.9658C11.2361 16.8942 11.168 16.8584 11.0962 16.8443C11.0327 16.8318 10.9673 16.8318 10.9038 16.8443C10.832 16.8584 10.7639 16.8942 10.6277 16.9658L6.25492 19.2654C5.79392 19.5078 5.56341 19.6291 5.39297 19.5975C5.24468 19.57 5.11672 19.477 5.04474 19.3445C4.962 19.1922 5.00603 18.9355 5.09407 18.4221L5.92889 13.5547C5.95491 13.403 5.96793 13.3271 5.95912 13.2545C5.95132 13.1902 5.93111 13.128 5.89961 13.0715C5.86402 13.0076 5.80888 12.9538 5.69859 12.8464L2.16056 9.40038C1.78766 9.03718 1.60121 8.85558 1.57853 8.68377C1.55879 8.5343 1.60755 8.38389 1.71125 8.27444C1.83044 8.14863 2.08797 8.11099 2.60304 8.03571L7.49431 7.32077C7.64642 7.29854 7.72248 7.28742 7.78872 7.25662C7.84736 7.22935 7.90016 7.19096 7.94419 7.14358C7.99391 7.09006 8.02793 7.02113 8.09597 6.88328L10.2827 2.45332Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),wR=e=>C.createElement("svg",{width:22,height:20,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M1.49954 7H20.4995M8.99954 1L6.99954 7L10.9995 18.5L14.9995 7L12.9995 1M11.614
1171 18.2625L20.5727 7.51215C20.7246 7.32995 20.8005 7.23885 20.8295 7.13717C20.8551 7.04751 20.8551 6.95249 20.8295 6.86283C20.8005 6.76114 20.7246 6.67005 20.5727 6.48785L16.2394 1.28785C16.1512 1.18204 16.1072 1.12914 16.0531 1.09111C16.0052 1.05741 15.9518 1.03238 15.8953 1.01717C15.8314 1 15.7626 1 15.6248 1H6.37424C6.2365 1 6.16764 1 6.10382 1.01717C6.04728 1.03238 5.99385 1.05741 5.94596 1.09111C5.89192 1.12914 5.84783 1.18204 5.75966 1.28785L1.42633 6.48785C1.2745 6.67004 1.19858 6.76114 1.16957 6.86283C1.144 6.95249 1.144 7.04751 1.16957 7.13716C1.19858 7.23885 1.2745 7.32995 1.42633 7.51215L10.385 18.2625C10.596 18.5158 10.7015 18.6424 10.8279 18.6886C10.9387 18.7291 11.0603 18.7291 11.1712 18.6886C11.2975 18.6424 11.4031 18.5158 11.6141 18.2625Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),SR=e=>C.createElement("svg",{width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M8.09 8C8.3251 7.33167 8.78915 6.76811 9.39995 6.40913C10.0108 6.05016 10.7289 5.91894 11.4272 6.03871C12.1255 6.15849 12.7588 6.52152 13.2151 7.06353C13.6713 7.60553 13.9211 8.29152 13.92 9C13.92 11 10.92 12 10.92 12M11 16H11.01M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),IS=e=>C.createElement("svg",{width:20,height:10,viewBox:"0 0 20 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M1 1.5H19M1 8.5H19",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ER=e=>C.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M16.5 16.5L13.5834 13.5833M15.6667 8.58333C15.6667 12.4954 12.4954 15.6667 8.58333 15.6667C4.67132 15.6667 1.5 12.4954 1.5 8.58333C1.5 4.67132 4.67132 1.5 8.58333 1.5C12.4954 1.5 15.6667 4.67132 15.6667 8.58333Z",stroke:"#94969C",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"})),CR=e=>C.createElement("svg",{width:170,height:32,viewBox:"0 0 170 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M14.5432 1.70193C17.4781 1.70193 19.8874 3.87241 20.3254 6.70731C20.3692 7.01738 20.0188 7.23886 19.756 7.06168C18.3542 5.95429 16.6458 5.42275 14.9374 5.42275H11.6521C8.71715 5.42275 6.30789 3.25227 5.86984 0.417363C5.82604 0.107296 6.17648 -0.114181 6.43931 0.0630005C7.84106 1.17039 9.54944 1.70193 11.2578 1.70193H14.5432Z",fill:"#E93774"}),C.createElement("path",{d:"M14.5432 1.70193C17.4781 1.70193 19.8874 3.87241 20.3254 6.70731C20.3692 7.01738 20.0188 7.23886 19.756 7.06168C18.3542 5.95429 16.6458 5.42275 14.9374 5.42275H11.6521C8.71715 5.42275 6.30789 3.25227 5.86984 0.417363C5.82604 0.107296 6.17648 -0.114181 6.43931 0.0630005C7.84106 1.17039 9.54944 1.70193 11.2578 1.70193H14.5432Z",fill:"url(#paint0_radial_12185_9962)"}),C.createElement("path",{d:"M12.3091 31.5128C13.1414 30.2725 13.4043 28.5893 12.572 26.8617C11.8711 25.4 10.3379 24.6027 8.71715 24.6027C4.86233 24.6027 1.75219 21.0147 1.44556 16.4523C1.44556 16.1865 1.75219 16.0537 1.92741 16.1865C3.85482 17.8255 6.30789 18.6671 8.71715 18.6671H11.9149C14.2365 18.6671 16.5582 19.4644 18.398 21.1033C18.617 21.2805 18.9237 21.1033 18.8799 20.8376C18.5294 17.1167 15.4193 14.1932 11.6083 14.1932H8.71715C4.11765 14.1932 0.350438 10.6053 0 6.04289C0 5.77711 0.306633 5.59993 0.481852 5.77711C2.40926 7.41604 4.86233 8.25766 7.27159 8.25766H10.2065C16.3392 8.25766 22.428 10.561 27.2028 15.1234C27.4218 15.3006 27.7284 15.1677 27.7284 14.902C27.5532 11.4026 26.1076 8.25766 23.8736 5.8657C23.6984 5.68852 23.8298 5.33416 24.0926 5.37846C30.1377 5.82141 35 10.9154 35 17.2053C35 17.2496 35 17.2939 35 17.3825C34.9562 25.4886 28.3417 32 20.3254 32C17.0401 32 13.8423 32 12.572 32C12.3091 31.9557 12.1777 31.6899 12.3091 31.5128Z",fill:"#E93774"}),C.createElement("path",{d:"M12.3091 31.5128C13.1414 30.2725 13.4043 28.5893 12.572 26.8617C11.8711 25.4 10.3379 24.6027 8.71715 24.6027C4.86233 24.6027 1.75219 21.0147 1.44556 16.4523C1.44556 16.1865 1.75219 16.0537 1.92741 16.1865C3.85482 17.8255 6.30789 18.6671 8.71715 18.6671H11.9149C14.2365 18.6671 16.5582 19.4644 18.398 21.1033C18.617 21.2805 18.9237 21.1033 18.8799 20.8376C18.5294 17.1167 15.4193 14.1932 11.6083 14.1932H8.71715C4.11765 14.1932 0.350438 10.6053 0 6.04289C0 5.77711 0.306633 5.59993 0.481852 5.77711C2.40926 7.41604 4.86233 8.25766 7.27159 8.25766H10.2065C16.3392 8.25766 22.428 10.561 27.2028 15.1234C27.4218 15.3006 27.7284 15.1677 27.7284 14.902C27.5532 11.4026 26.1076 8.25766 23.8736 5.8657C23.6984 5.68852 23.8298 5.33416 24.0926 5.37846C30.1377 5.82141 35 10.9154 35 17.2053C35 17.2496 35 17.2939 35 17.3825C34.9562 25.4886 28.3417 32 20.3254 32C17.0401 32 13.8423 32 12.572 32C12.3091 31.9557 12.1777 31.6899 12.3091 31.5128Z",fill:"url(#paint1_radial_12185_9962)"}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M124.367 26.334L129.519 18.802L130.5 17.418H128.58L124.619 11.578H129.183L132.095 16.226L134.951 11.578H139.375L134.447 18.886L133.5 20.418H135.53L139.711 26.334H135.147L131.927 21.49L128.735 26.334H124.367Z",fill:"white"}),C.createElement("path",{d:"M117.215 26.53C115.666 26.53 114.35 26.222 113.267 25.606C112.184 24.99 111.354 24.122 110.775 23.002C110.196 21.8633 109.907 20.538 109.907 19.026C109.907 17.4953 110.206 16.1606 110.803 15.022C111.4 13.8646 112.24 12.9593 113.323 12.306C114.424 11.6526 115.722 11.326 117.215 11.326C118.335 11.326 119.3
11715 11.5126 120.155 11.886C121.014 12.2593 121.732 12.782 122.311 13.454C122.908 14.126 123.347 14.91 123.627 15.806C123.926 16.6833 124.066 17.6353 124.047 18.662C124.047 18.9233 124.038 19.1753 124.019 19.418C124 19.6606 123.963 19.9033 123.907 20.146H113.799C113.855 20.706 114.014 21.2193 114.275 21.686C114.536 22.1526 114.9 22.526 115.367 22.806C115.852 23.0673 116.45 23.198 117.159 23.198C117.626 23.198 118.055 23.1513 118.447 23.058C118.839 22.946 119.175 22.778 119.455 22.554C119.735 22.33 119.931 22.0686 120.043 21.77H123.907C123.664 22.8713 123.207 23.7766 122.535 24.486C121.882 25.1953 121.088 25.718 120.155 26.054C119.222 26.3713 118.242 26.53 117.215 26.53ZM113.883 17.402H120.295C120.276 16.898 120.146 16.4313 119.903 16.002C119.679 15.554 119.334 15.1993 118.867 14.938C118.419 14.658 117.84 14.518 117.131 14.518C116.422 14.518 115.824 14.658 115.339 14.938C114.872 15.218 114.518 15.582 114.275 16.03C114.051 16.4593 113.92 16.9166 113.883 17.402Z",fill:"white"}),C.createElement("path",{d:"M100.308 26.334V11.578H103.836L104.088 13.342C104.462 12.782 104.882 12.362 105.348 12.082C105.815 11.7833 106.3 11.5873 106.804 11.494C107.308 11.382 107.822 11.326 108.344 11.326C108.587 11.326 108.811 11.3353 109.016 11.354C109.222 11.354 109.371 11.354 109.464 11.354V15.134H108.54C107.663 15.134 106.898 15.2833 106.244 15.582C105.591 15.8806 105.087 16.3473 104.732 16.982C104.396 17.6166 104.228 18.4286 104.228 19.418V26.334H100.308Z",fill:"white"}),C.createElement("path",{d:"M93.8409 26.334V11.578H97.7609V26.334H93.8409ZM95.8009 10.094C95.0729 10.094 94.4849 9.87929 94.0369 9.44996C93.5889 9.00196 93.3649 8.43263 93.3649 7.74196C93.3649 7.01396 93.5983 6.42596 94.0649 5.97796C94.5316 5.52996 95.1196 5.30596 95.8289 5.30596C96.4823 5.30596 97.0423 5.52996 97.5089 5.97796C97.9943 6.40729 98.2369 6.98596 98.2369 7.71396C98.2369 8.42329 98.0036 9.00196 97.5369 9.44996C97.0889 9.87929 96.5103 10.094 95.8009 10.094Z",fill:"white"}),C.createElement("path",{d:"M85.8135 26.53C85.1228 26.53 84.4135 26.4553 83.6855 26.306C82.9575 26.1566 82.2855 25.9046 81.6695 25.55C81.0535 25.1766 80.5308 24.682 80.1015 24.066C79.6721 23.4313 79.3921 22.6473 79.2615 21.714H83.2375C83.3495 22.05 83.5455 22.3393 83.8255 22.582C84.1241 22.8246 84.4601 23.002 84.8335 23.114C85.2255 23.226 85.6175 23.282 86.0095 23.282C86.2708 23.282 86.5321 23.2633 86.7935 23.226C87.0548 23.1886 87.2975 23.114 87.5215 23.002C87.7455 22.89 87.9228 22.75 88.0535 22.582C88.1841 22.3953 88.2495 22.162 88.2495 21.882C88.2495 21.5833 88.1561 21.35 87.9695 21.182C87.7828 21.014 87.5215 20.8833 87.1855 20.79C86.8495 20.678 86.4668 20.5753 86.0375 20.482C85.2721 20.314 84.4508 20.1273 83.5735 19.922C82.6961 19.7166 81.9401 19.418 81.3055 19.026C81.0441 18.8393 80.8108 18.634 80.6055 18.41C80.4001 18.186 80.2321 17.934 80.1015 17.654C79.9708 17.374 79.8681 17.0846 79.7935 16.786C79.7188 16.4686 79.6815 16.1326 79.6815 15.778C79.6815 14.9753 79.8495 14.294 80.1855 13.734C80.5401 13.1553 81.0068 12.6886 81.5855 12.334C82.1641 11.9793 82.8081 11.7273 83.5175 11.578C84.2268 11.41 84.9548 11.326 85.7015 11.326C86.7095 11.326 87.6428 11.494 88.5015 11.83C89.3601 12.1473 90.0695 12.6513 90.6295 13.342C91.1895 14.014 91.5348 14.8913 91.6655 15.974H87.9135C87.8388 15.5633 87.5868 15.2366 87.1575 14.994C86.7281 14.7326 86.1961 14.602 85.5615 14.602C85.3375 14.602 85.0948 14.6206 84.8335 14.658C84.5908 14.6953 84.3668 14.7606 84.1615 14.854C83.9561 14.9473 83.7881 15.078 83.6575 15.246C83.5268 15.3953 83.4615 15.6006 83.4615 15.862C83.4615 16.0673 83.5175 16.254 83.6295 16.422C83.7601 16.59 83.9375 16.73 84.1615 16.842C84.4041 16.954 84.6935 17.0566 85.0295 17.15C85.6641 17.2993 86.2988 17.4393 86.9335 17.57C87.5868 17.682 88.1655 17.8033 88.6695 17.934C89.2855 18.0646 89.8455 18.2793 90.3495 18.578C90.8721 18.8766 91.2921 19.2873 91.6095 19.81C91.9455 20.314 92.1135 20.9766 92.1135 21.798C92.1135 22.7313 91.9268 23.506 91.5535 24.122C91.1801 24.7193 90.6761 25.1953 90.0415 25.55C89.4255 25.9046 88.7441 26.1566 87.9975 26.306C87.2695 26.4553 86.5415 26.53 85.8135 26.53Z",fill:"white"}),C.createElement("path",{d:"M71.248 26.53C69.6987 26.53 68.3827 26.222 67.3 25.606C66.2173 24.99 65.3867 24.122 64.808 23.002C64.2293 21.8633 63.94 20.538 63.94 19.026C63.94 17.4953 64.2387 16.1606 64.836 15.022C65.4333 13.8646 66.2733 12.9593 67.356 12.306C68.4573 11.6526 69.7
117547 11.326 71.248 11.326C72.368 11.326 73.348 11.5126 74.188 11.886C75.0467 12.2593 75.7653 12.782 76.344 13.454C76.9413 14.126 77.38 14.91 77.66 15.806C77.9587 16.6833 78.0987 17.6353 78.08 18.662C78.08 18.9233 78.0707 19.1753 78.052 19.418C78.0333 19.6606 77.996 19.9033 77.94 20.146H67.832C67.888 20.706 68.0467 21.2193 68.308 21.686C68.5693 22.1526 68.9333 22.526 69.4 22.806C69.8853 23.0673 70.4827 23.198 71.192 23.198C71.6587 23.198 72.088 23.1513 72.48 23.058C72.872 22.946 73.208 22.778 73.488 22.554C73.768 22.33 73.964 22.0686 74.076 21.77H77.94C77.6973 22.8713 77.24 23.7766 76.568 24.486C75.9147 25.1953 75.1213 25.718 74.188 26.054C73.2547 26.3713 72.2747 26.53 71.248 26.53ZM67.916 17.402H74.328C74.3093 16.898 74.1787 16.4313 73.936 16.002C73.712 15.554 73.3667 15.1993 72.9 14.938C72.452 14.658 71.8733 14.518 71.164 14.518C70.4547 14.518 69.8573 14.658 69.372 14.938C68.9053 15.218 68.5507 15.582 68.308 16.03C68.084 16.4593 67.9533 16.9166 67.916 17.402Z",fill:"white"}),C.createElement("path",{d:"M53.636 26.53C52.1427 26.53 50.9013 26.194 49.912 25.522C48.9413 24.8313 48.2133 23.9166 47.728 22.778C47.2427 21.6206 47 20.342 47 18.942C47 17.4673 47.2613 16.1606 47.784 15.022C48.3067 13.8646 49.0813 12.9593 50.108 12.306C51.1347 11.6526 52.4133 11.326 53.944 11.326C54.4667 11.326 54.98 11.3913 55.484 11.522C56.0067 11.634 56.4827 11.8113 56.912 12.054C57.36 12.278 57.7427 12.5766 58.06 12.95V6.50996H61.98V26.334H58.172L58.116 24.682C57.78 25.1113 57.3693 25.466 56.884 25.746C56.4173 26.0073 55.9133 26.2033 55.372 26.334C54.8307 26.4646 54.252 26.53 53.636 26.53ZM54.42 23.002C55.26 23.002 55.9413 22.806 56.464 22.414C57.0053 22.022 57.4067 21.518 57.668 20.902C57.9293 20.286 58.06 19.6233 58.06 18.914C58.06 18.186 57.9293 17.5233 57.668 16.926C57.4253 16.31 57.0333 15.8246 56.492 15.47C55.9693 15.0966 55.2787 14.91 54.42 14.91C53.5613 14.91 52.8707 15.106 52.348 15.498C51.8253 15.89 51.452 16.4033 51.228 17.038C51.0227 17.654 50.92 18.3166 50.92 19.026C50.92 19.5486 50.976 20.0526 51.088 20.538C51.2187 21.0046 51.424 21.4246 51.704 21.798C51.984 22.1713 52.348 22.47 52.796 22.694C53.244 22.8993 53.7853 23.002 54.42 23.002Z",fill:"white"}),C.createElement("path",{d:"M163.999 26.332V11.576H167.919V26.332H163.999ZM165.959 10.092C165.231 10.092 164.643 9.87729 164.195 9.44796C163.747 8.99996 163.523 8.43062 163.523 7.73996C163.523 7.01196 163.756 6.42396 164.223 5.97595C164.69 5.52795 165.278 5.30396 165.987 5.30396C166.64 5.30396 167.2 5.52795 167.667 5.97595C168.152 6.40529 168.395 6.98395 168.395 7.71196C168.395 8.42129 168.162 8.99996 167.695 9.44796C167.247 9.87729 166.668 10.092 165.959 10.092Z",fill:"white"}),C.createElement("path",{d:"M153.321 26.528C152.649 26.528 151.996 26.444 151.361 26.276C150.745 26.0893 150.194 25.8093 149.709 25.436C149.224 25.0626 148.841 24.596 148.561 24.036C148.281 23.476 148.141 22.8226 148.141 22.076C148.141 21.068 148.346 20.2653 148.757 19.668C149.168 19.052 149.718 18.5853 150.409 18.268C151.1 17.9506 151.893 17.736 152.789 17.624C153.704 17.512 154.646 17.456 155.617 17.456H157.745C157.745 16.9146 157.642 16.4386 157.437 16.028C157.25 15.5986 156.961 15.272 156.569 15.048C156.177 14.8053 155.673 14.684 155.057 14.684C154.665 14.684 154.282 14.74 153.909 14.852C153.554 14.9453 153.256 15.0853 153.013 15.272C152.77 15.4586 152.612 15.7013 152.537 16H148.561C148.673 15.1786 148.934 14.4786 149.345 13.9C149.756 13.3026 150.269 12.8173 150.885 12.444C151.501 12.0706 152.173 11.8 152.901 11.632C153.648 11.4453 154.413 11.352 155.197 11.352C157.344 11.352 158.93 11.968 159.957 13.2C160.984 14.4133 161.497 16.14 161.497 18.38V26.332H157.969L157.913 24.428C157.446 25.0813 156.914 25.5573 156.317 25.856C155.738 26.1546 155.178 26.3413 154.637 26.416C154.096 26.4906 153.657 26.528 153.321 26.528ZM154.217 23.42C154.87 23.42 155.468 23.2893 156.009 23.028C156.55 22.7666 156.98 22.412 157.297 21.964C157.614 21.516 157.773 21.012 157.773 20.452V20.088H155.085C154.693 20.088 154.31 20.1066 153.937 20.144C153.582 20.1813 153.256 20.256 152.957 20.368C152.677 20.4613 152.453 20.62 152.285 20.844C152.117 21.068 152.033 21.3666 152.033 21.74C152.033 22.1133 152.126 22.4306 152.313 22.692C152.518 22.9346 152.789 23.1213 153.125 23.252C153.461 23.364 153.825 23.42 154.217 23.42Z",fill:"white"}),C.createElement("path",{d:"M143.738 26.696C143.066 26.696 142.497 26.4906 142.03 26.08C141.563 25.6693 141.33 25.0813 141.33 24.316C141.33 23.532 141.563 22.916 142.03 22.468C142.515 22.02 143.085 21.796 143.738 21.796C144.391 21.796 144.951 22.02 145.418 22.468C145.885 22.8973 146.118 23.504 146.118 24.288C146.118 25.072 145.885 25.6693 145.418 26.08C144.951 26.4906 144.391 26.696 143.738 26.696Z",fill:"white"}),C.createElement("defs",null,C.createElement("radialGradient",{id:"paint0_radial_12185_9962",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(42.4362) scale(47.4236 51.8696)"},C.createElement("stop",{stopColor:"#EE6792"}),C.createElement("stop",{offset:1,stopColor:"#E93774"})),C.createElement("radialGradient",{id:"paint1_radial_12185_9962",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(42.4362) scale(47.4236 51.8696)"},C.createElement("stop",{stopColor:"#EE6792"}),C.createElement("stop",{offset:1,stopColor:"#E93774"})))),OS=e=>C.createElement("svg",{width:35,height:32,viewBox:"0 0 35 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M14.5432 1.70193C17.4781 1.70193 19.8874 3.87241 20.3254 6.70731C20.3692 7.01738 20.0188 7.23886 19.756 7.06168C18.3542 5.95429 16.6458 5.42275 14.9374 5.42275H11.
1176521C8.71715 5.42275 6.30789 3.25227 5.86984 0.417363C5.82604 0.107296 6.17648 -0.114181 6.43931 0.0630005C7.84106 1.17039 9.54944 1.70193 11.2578 1.70193H14.5432Z",fill:"#E93774"}),C.createElement("path",{d:"M14.5432 1.70193C17.4781 1.70193 19.8874 3.87241 20.3254 6.70731C20.3692 7.01738 20.0188 7.23886 19.756 7.06168C18.3542 5.95429 16.6458 5.42275 14.9374 5.42275H11.6521C8.71715 5.42275 6.30789 3.25227 5.86984 0.417363C5.82604 0.107296 6.17648 -0.114181 6.43931 0.0630005C7.84106 1.17039 9.54944 1.70193 11.2578 1.70193H14.5432Z",fill:"url(#paint0_radial_12185_9962)"}),C.createElement("path",{d:"M12.3091 31.5128C13.1414 30.2725 13.4043 28.5893 12.572 26.8617C11.8711 25.4 10.3379 24.6027 8.71715 24.6027C4.86233 24.6027 1.75219 21.0147 1.44556 16.4523C1.44556 16.1865 1.75219 16.0537 1.92741 16.1865C3.85482 17.8255 6.30789 18.6671 8.71715 18.6671H11.9149C14.2365 18.6671 16.5582 19.4644 18.398 21.1033C18.617 21.2805 18.9237 21.1033 18.8799 20.8376C18.5294 17.1167 15.4193 14.1932 11.6083 14.1932H8.71715C4.11765 14.1932 0.350438 10.6053 0 6.04289C0 5.77711 0.306633 5.59993 0.481852 5.77711C2.40926 7.41604 4.86233 8.25766 7.27159 8.25766H10.2065C16.3392 8.25766 22.428 10.561 27.2028 15.1234C27.4218 15.3006 27.7284 15.1677 27.7284 14.902C27.5532 11.4026 26.1076 8.25766 23.8736 5.8657C23.6984 5.68852 23.8298 5.33416 24.0926 5.37846C30.1377 5.82141 35 10.9154 35 17.2053C35 17.2496 35 17.2939 35 17.3825C34.9562 25.4886 28.3417 32 20.3254 32C17.0401 32 13.8423 32 12.572 32C12.3091 31.9557 12.1777 31.6899 12.3091 31.5128Z",fill:"#E93774"}),C.createElement("path",{d:"M12.3091 31.5128C13.1414 30.2725 13.4043 28.5893 12.572 26.8617C11.8711 25.4 10.3379 24.6027 8.71715 24.6027C4.86233 24.6027 1.75219 21.0147 1.44556 16.4523C1.44556 16.1865 1.75219 16.0537 1.92741 16.1865C3.85482 17.8255 6.30789 18.6671 8.71715 18.6671H11.9149C14.2365 18.6671 16.5582 19.4644 18.398 21.1033C18.617 21.2805 18.9237 21.1033 18.8799 20.8376C18.5294 17.1167 15.4193 14.1932 11.6083 14.1932H8.71715C4.11765 14.1932 0.350438 10.6053 0 6.04289C0 5.77711 0.306633 5.59993 0.481852 5.77711C2.40926 7.41604 4.86233 8.25766 7.27159 8.25766H10.2065C16.3392 8.25766 22.428 10.561 27.2028 15.1234C27.4218 15.3006 27.7284 15.1677 27.7284 14.902C27.5532 11.4026 26.1076 8.25766 23.8736 5.8657C23.6984 5.68852 23.8298 5.33416 24.0926 5.37846C30.1377 5.82141 35 10.9154 35 17.2053C35 17.2496 35 17.2939 35 17.3825C34.9562 25.4886 28.3417 32 20.3254 32C17.0401 32 13.8423 32 12.572 32C12.3091 31.9557 12.1777 31.6899 12.3091 31.5128Z",fill:"url(#paint1_radial_12185_9962)"}),C.createElement("defs",null,C.createElement("radialGradient",{id:"paint0_radial_12185_9962",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(42.4362) scale(47.4236 51.8696)"},C.createElement("stop",{stopColor:"#EE6792"}),C.createElement("stop",{offset:1,stopColor:"#E93774"})),C.createElement("radialGradient",{id:"paint1_radial_12185_9962",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(42.4362) scale(47.4236 51.8696)"},C.createElement("stop",{stopColor:"#EE6792"}),C.createElement("stop",{offset:1,stopColor:"#E93774"})))),t5=typeof document<"u"?Me.useLayoutEffect:()=>{};function xR(e){const t=C.useRef(null);return t5(()=>{t.current=e},[e]),C.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Ml=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Hu=e=>e&&"window"in e&&e.window===e?e:Ml(e).defaultView||window;function bR(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function TR(e){return bR(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let kR=!1;function L_(){return kR}function n5(e,t){if(!L_())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:TR(n)?n=n.host:n=n.parentNode}return!1}const _2=(e=document)=>{var t;if(!L_())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function r5(e){return L_()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function i5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=i5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function s5(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=i5(e))&&(r&&(r+=" "),r+=t);return r}function RR(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function IR(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function o5(e){let t=null;return()=>(t==null&&(t=e()),t)}const OR=o5(function(){return IR(/^Mac/i)}),AR=o5(function(){return RR(/Android/i)});function a5(){let e=C.useRef(new Map),t=C.useCallback((s,l,c,d)=>{let p=d!=null&&d.once?(...g)=>{e.current.delete(c),c(...g)}:c;e.current.set(c,{type:l,eventTarget:s,fn:p,options:d}),s.addEventListener(l,p,d)},[]),n=C.useCallback((s,l,c,d)=>{var p;let g=((p=e.current.get(c))===null||p===void 0?void 0:p.fn)||c;s.removeEventListener(l,g,d),e.current.delete(c)},[]),r=C.useCallback(()=>{e.current.forEach((s,l)=>{n(s.eventTarget,s.type,l,s.options)})},[n]);return C.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function PR(e){return e.mozInputSource===0&&e.isTrusted?!0:AR()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class l5{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function u5(e){let t=C.useRef({isFocused:!1,observer:null});t5(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=xR(r=>{e==null||e(r)});return C.useCallback(r=>
vendor: 9,316 bytes, line 117
117{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let s=r.target,l=c=>{t.current.isFocused=!1,s.disabled&&n(new l5("blur",c)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};s.addEventListener("focusout",l,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&s.disabled){var c;(c=t.current.observer)===null||c===void 0||c.disconnect();let d=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:d})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:d}))}}),t.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let LR=!1,am=null,w2=new Set,Rh=new Map,cc=!1,S2=!1;const NR={Tab:!0,Escape:!0};function N_(e,t){for(let n of w2)n(e,t)}function MR(e){return!(e.metaKey||!OR()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Gg(e){cc=!0,MR(e)&&(am="keyboard",N_("keyboard",e))}function ss(e){am="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(cc=!0,N_("pointer",e))}function c5(e){PR(e)&&(cc=!0,am="virtual")}function f5(e){e.target===window||e.target===document||LR||!e.isTrusted||(!cc&&!S2&&(am="virtual",N_("virtual",e)),cc=!1,S2=!1)}function d5(){cc=!1,S2=!0}function E2(e){if(typeof window>"u"||Rh.get(Hu(e)))return;const t=Hu(e),n=Ml(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){cc=!0,r.apply(this,arguments)},n.addEventListener("keydown",Gg,!0),n.addEventListener("keyup",Gg,!0),n.addEventListener("click",c5,!0),t.addEventListener("focus",f5,!0),t.addEventListener("blur",d5,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ss,!0),n.addEventListener("pointermove",ss,!0),n.addEventListener("pointerup",ss,!0)):(n.addEventListener("mousedown",ss,!0),n.addEventListener("mousemove",ss,!0),n.addEventListener("mouseup",ss,!0)),t.addEventListener("beforeunload",()=>{p5(e)},{once:!0}),Rh.set(t,{focus:r})}const p5=(e,t)=>{const n=Hu(e),r=Ml(e);t&&r.removeEventListener("DOMContentLoaded",t),Rh.has(n)&&(n.HTMLElement.prototype.focus=Rh.get(n).focus,r.removeEventListener("keydown",Gg,!0),r.removeEventListener("keyup",Gg,!0),r.removeEventListener("click",c5,!0),n.removeEventListener("focus",f5,!0),n.removeEventListener("blur",d5,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ss,!0),r.removeEventListener("pointermove",ss,!0),r.removeEventListener("pointerup",ss,!0)):(r.removeEventListener("mousedown",ss,!0),r.removeEventListener("mousemove",ss,!0),r.removeEventListener("mouseup",ss,!0)),Rh.delete(n))};function DR(e){const t=Ml(e);let n;return t.readyState!=="loading"?E2(e):(n=()=>{E2(e)},t.addEventListener("DOMContentLoaded",n)),()=>p5(e,n)}typeof document<"u"&&DR();function h5(){return am!=="pointer"}const FR=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $R(e,t,n){let r=Ml(n==null?void 0:n.target);const s=typeof window<"u"?Hu(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,l=typeof window<"u"?Hu(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,c=typeof window<"u"?Hu(n==null?void 0:n.target).HTMLElement:HTMLElement,d=typeof window<"u"?Hu(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof s&&!FR.has(r.activeElement.type)||r.activeElement instanceof l||r.activeElement instanceof c&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof d&&!NR[n.key])}function jR(e,t,n){E2(),C.useEffect(()=>{let r=(s,l)=>{$R(!!(n!=null&&n.isTextInput),s,l)&&e(h5())};return w2.add(r),()=>{w2.delete(r)}},t)}function UR(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:s}=e;const l=C.useCallback(p=>{if(p.target===p.currentTarget)return r&&r(p),s&&s(!1),!0},[r,s]),c=u5(l),d=C.useCallback(p=>{const g=Ml(p.target),v=g?_2(g):_2();p.target===p.currentTarget&&v===r5(p.nativeEvent)&&(n&&n(p),s&&s(!0),c(p))},[s,n,c]);return{focusProps:{onFocus:!t&&(n||s||r)?d:void 0,onBlur:!t&&(r||s)?l:void 0}}}function HR(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:s}=e,l=C.useRef({isFocusWithin:!1}),{addGlobalListener:c,removeAllGlobalListeners:d}=a5(),p=C.useCallback(_=>{_.currentTarget.contains(_.target)&&l.current.isFocusWithin&&!_.currentTarget.contains(_.relatedTarget)&&(l.current.isFocusWithin=!1,d(),n&&n(_),s&&s(!1))},[n,s,l,d]),g=u5(p),v=C.useCallback(_=>{if(!_.currentTarget.contains(_.target))return;const E=Ml(_.target),x=_2(E);if(!l.current.isFocusWithin&&x===r5(_.nativeEvent)){r&&r(_),s&&s(!0),l.current.isFocusWithin=!0,g(_);let b=_.currentTarget;c(E,"focus",R=>{if(l.current.isFocusWithin&&!n5(b,R.target)){let I=new l5("blur",new E.defaultView.FocusEvent("blur",{relatedTarget:R.target}));I.target=b,I.currentTarget=b,p(I)}},{capture:!0})}},[r,s,g,c,p]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:v,onBlur:p}}}let Kg=!1,yv=0;function C2(){Kg=!0,setTimeout(()=>{Kg=!1},50)}function AS(e){e.pointerType==="touch"&&C2()}function BR(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",AS):document.addEventListener("touchend",C2),yv++,()=>{yv--,!(yv>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",AS):document.removeEventListener("touchend",C2))}}function zR(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:s}=e,[l,c]=C.useState(!1),d=C.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;C.useEffect(BR,[]);let{addGlobalListener:p,removeAllGlobalListeners:g}=a5(),{hoverProps:v,triggerHoverEnd:_}=C.useMemo(()=>{let E=(R,I)=>{if(d.pointerType=I,s||I==="touch"||d.isHovered||!R.currentTarget.contains(R.target))return;d.isHovered=!0;let L=R.currentTarget;d.target=L,p(Ml(R.target),"pointerover",H=>{d.isHovered&&d.target&&!n5(d.target,H.target)&&x(H,H.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:L,pointerType:I}),n&&n(!0),c(!0)},x=(R,I)=>{let L=d.target;d.pointerType="",d.target=null,!(I==="touch"||!d.isHovered||!L)&&(d.isHovered=!1,g(),r&&r({type:"hoverend",target:L,pointerType:I}),n&&n(!1),c(!1))},b={};return typeof PointerEvent<"u"?(b.onPointerEnter=R=>{Kg&&R.pointerType==="mouse"||E(R,R.pointerType)},b.onPointerLeave=R=>{!s&&R.currentTarget.contains(R.target)&&x(R,R.pointerType)}):(b.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},b.onMouseEnter=R=>{!d.ignoreEmulatedMouseEvents&&!Kg&&E(R,"mouse"),d.ignoreEmulatedMouseEvents=!1},b.onMouseLeave=R=>{!s&&R.currentTarget.contains(R.target)&&x(R,"mouse")}),{hoverProps:b,triggerHoverEnd:x}},[t,n,r,s,d,p,g]);return C.useEffect(()=>{s&&_({currentTarget:d.target},d.pointerType)},[s]),{hoverProps:v,isHovered:l}}function WR(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,s=C.useRef({isFocused:!1,isFocusVisible:t||h5()}),[l,c]=C.useState(!1),[d,p]=C.useState(()=>s.current.isFocused&&s.current.isFocusVisible),g=C.useCallback(()=>p(s.current.isFocused&&s.current.isFocusVisible),[]),v=C.useCallback(x=>{s.current.isFocused=x,c(x),g()},[g]);jR(x=>{s.current.isFocusVisible=x,g()},[],{isTextInput:n});let{focusProps:_}=UR({isDisabled:r,onFocusChange:v}),{focusWithinProps:E}=HR({isDisabled:!r,onFocusWithinChange:v});return{isFocused:l,isFocusVisible:d,focusProps:r?E:_}}var qR=Object.defineProperty,VR=(e,t,n)=>t in e?qR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vv=(e,t,n)=>(VR(e,typeof t!="symbol"?t+"":t,n),n);let GR=class{constructor(){vv(this,"current",this.detect()),vv(this,"handoffState","pending"),vv(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},nc=new GR;function lm(e){return nc.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function R0(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Dl(){let e=[],t={addEventListener(n,r,s,l){return n.addEventListener(r,s,l),t.add(()=>n.removeEventListener(r,s,l))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return R0(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,s){let l=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:s}),this.add(()=>{Object.assign(n.style,{[r]:l})})},group(n){let r=Dl();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let s of e.splice(r,1))s()}},dispose(){for(let n of e.splice(0))n()}};return t}function Fd(){let[e]=C.useState(Dl);return C.useEffect(()=>()=>
vendor: 15,441 bytes, lines 117-120
117e.dispose(),[e]),e}let Rr=(e,t)=>{nc.isServer?C.useEffect(e,t):C.useLayoutEffect(e,t)};function mc(e){let t=C.useRef(e);return Rr(()=>{t.current=e},[e]),t}let Ft=function(e){let t=mc(e);return Me.useCallback((...n)=>t.current(...n),[t])};function KR(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function YR(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function QR({disabled:e=!1}={}){let t=C.useRef(null),[n,r]=C.useState(!1),s=Fd(),l=Ft(()=>{t.current=null,r(!1),s.dispose()}),c=Ft(d=>{if(s.dispose(),t.current===null){t.current=d.currentTarget,r(!0);{let p=lm(d.currentTarget);s.addEventListener(p,"pointerup",l,!1),s.addEventListener(p,"pointermove",g=>{if(t.current){let v=KR(g);r(YR(v,t.current.getBoundingClientRect()))}},!1),s.addEventListener(p,"pointercancel",l,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:c,onPointerUp:l,onClick:l}}}let XR=C.createContext(void 0);function M_(){return C.useContext(XR)}function x2(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Rl(e,t,...n){if(e in t){let s=t[e];return typeof s=="function"?s(...n):s}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Rl),r}var Yg=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Yg||{}),bl=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(bl||{});function mi(){let e=ZR();return C.useCallback(t=>JR({mergeRefs:e,...t}),[e])}function JR({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:s,visible:l=!0,name:c,mergeRefs:d}){d=d??eI;let p=m5(t,e);if(l)return ig(p,n,r,c,d);let g=s??0;if(g&2){let{static:v=!1,..._}=p;if(v)return ig(_,n,r,c,d)}if(g&1){let{unmount:v=!0,..._}=p;return Rl(v?0:1,{0(){return null},1(){return ig({..._,hidden:!0,style:{display:"none"}},n,r,c,d)}})}return ig(p,n,r,c,d)}function ig(e,t={},n,r,s){let{as:l=n,children:c,refName:d="ref",...p}=_v(e,["unmount","static"]),g=e.ref!==void 0?{[d]:e.ref}:{},v=typeof c=="function"?c(t):c;"className"in p&&p.className&&typeof p.className=="function"&&(p.className=p.className(t)),p["aria-labelledby"]&&p["aria-labelledby"]===p.id&&(p["aria-labelledby"]=void 0);let _={};if(t){let E=!1,x=[];for(let[b,R]of Object.entries(t))typeof R=="boolean"&&(E=!0),R===!0&&x.push(b.replace(/([A-Z])/g,I=>`-${I.toLowerCase()}`));if(E){_["data-headlessui-state"]=x.join(" ");for(let b of x)_[`data-${b}`]=""}}if(l===C.Fragment&&(Object.keys(fl(p)).length>0||Object.keys(fl(_)).length>0))if(!C.isValidElement(v)||Array.isArray(v)&&v.length>1){if(Object.keys(fl(p)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(fl(p)).concat(Object.keys(fl(_))).map(E=>`  - ${E}`).join(`
118`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(E=>`  - ${E}`).join(`
119`)].join(`
120`))}else{let E=v.props,x=E==null?void 0:E.className,b=typeof x=="function"?(...L)=>x2(x(...L),p.className):x2(x,p.className),R=b?{className:b}:{},I=m5(v.props,fl(_v(p,["ref"])));for(let L in _)L in I&&delete _[L];return C.cloneElement(v,Object.assign({},I,_,g,{ref:s(nI(v),g.ref)},R))}return C.createElement(l,Object.assign({},_v(p,["ref"]),l!==C.Fragment&&g,l!==C.Fragment&&_),v)}function ZR(){let e=C.useRef([]),t=C.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function eI(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function m5(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let s in r)s.startsWith("on")&&typeof r[s]=="function"?(n[s]!=null||(n[s]=[]),n[s].push(r[s])):t[s]=r[s];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[s=>{var l;return(l=s==null?void 0:s.preventDefault)==null?void 0:l.call(s)}]);for(let r in n)Object.assign(t,{[r](s,...l){let c=n[r];for(let d of c){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;d(s,...l)}}});return t}function tI(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let s in r)s.startsWith("on")&&typeof r[s]=="function"?(n[s]!=null||(n[s]=[]),n[s].push(r[s])):t[s]=r[s];for(let r in n)Object.assign(t,{[r](...s){let l=n[r];for(let c of l)c==null||c(...s)}});return t}function Or(e){var t;return Object.assign(C.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function fl(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function _v(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function nI(e){return Me.version.split(".")[0]>="19"?e.props.ref:e.ref}function rI(e,t,n){let[r,s]=C.useState(n),l=e!==void 0,c=C.useRef(l),d=C.useRef(!1),p=C.useRef(!1);return l&&!c.current&&!d.current?(d.current=!0,c.current=l,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!l&&c.current&&!p.current&&(p.current=!0,c.current=l,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[l?e:r,Ft(g=>(l||s(g),t==null?void 0:t(g)))]}function iI(e){let[t]=C.useState(e);return t}function g5(e={},t=null,n=[]){for(let[r,s]of Object.entries(e))v5(n,y5(t,r),s);return n}function y5(e,t){return e?e+"["+t+"]":t}function v5(e,t,n){if(Array.isArray(n))for(let[r,s]of n.entries())v5(e,y5(t,r.toString()),s);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):g5(n,t,e)}function sI(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let s of r.elements)if(s!==e&&(s.tagName==="INPUT"&&s.type==="submit"||s.tagName==="BUTTON"&&s.type==="submit"||s.nodeName==="INPUT"&&s.type==="image")){s.click();return}(n=r.requestSubmit)==null||n.call(r)}}let oI="span";var _d=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(_d||{});function aI(e,t){var n;let{features:r=1,...s}=e,l={ref:t,"aria-hidden":(r&2)===2?!0:(n=s["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return mi()({ourProps:l,theirProps:s,slot:{},defaultTag:oI,name:"Hidden"})}let Hh=Or(aI),lI=C.createContext(null);function uI({children:e}){let t=C.useContext(lI);if(!t)return Me.createElement(Me.Fragment,null,e);let{target:n}=t;return n?w0.createPortal(Me.createElement(Me.Fragment,null,e),n):null}function cI({data:e,form:t,disabled:n,onReset:r,overrides:s}){let[l,c]=C.useState(null),d=Fd();return C.useEffect(()=>{if(r&&l)return d.addEventListener(l,"reset",r)},[l,t,r]),Me.createElement(uI,null,Me.createElement(fI,{setForm:c,formId:t}),g5(e).map(([p,g])=>Me.createElement(Hh,{features:_d.Hidden,...fl({key:p,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:p,value:g,...s})})))}function fI({setForm:e,formId:t}){return C.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:Me.createElement(Hh,{features:_d.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let dI=C.createContext(void 0);function _5(){return C.useContext(dI)}function pI(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&hI(n)?!1:r}function hI(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let w5=Symbol();function mI(e,t=!0){return Object.assign(e,{[w5]:t})}function Us(...e){let t=C.useRef(e);C.useEffect(()=>{t.current=e},[e]);let n=Ft(r=>{for(let s of t.current)s!=null&&(typeof s=="function"?s(r):s.current=r)});return e.every(r=>r==null||(r==null?void 0:r[w5]))?void 0:n}let I0=C.createContext(null);I0.displayName="DescriptionContext";function S5(){let e=C.useContext(I0);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,S5),t}return e}function gI(){var e,t;return(t=(e=C.useContext(I0))==null?void 0:e.value)!=null?t:void 0}function yI(){let[e,t]=C.useState([]);return[e.length>0?e.join(" "):void 0,C.useMemo(()=>function(n){let r=Ft(l=>(t(c=>[...c,l]),()=>t(c=>{let d=c.slice(),p=d.indexOf(l);return p!==-1&&d.splice(p,1),d}))),s=C.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return Me.createElement(I0.Provider,{value:s},n.children)},[t])]}let vI="p";function _I(e,t){let n=C.useId(),r=M_(),{id:s=`headlessui-description-${n}`,...l}=e,c=S5(),d=Us(t);Rr(()=>c.register(s),[s,c.register]);let p=r||!1,g=C.useMemo(()=>({...c.slot,disabled:p}),[c.slot,p]),v={ref:d,...c.props,id:s};return mi()({ourProps:v,theirProps:l,slot:g,defaultTag:vI,name:c.name||"Description"})}let wI=Or(_I),SI=Object.assign(wI,{});var Qg=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Qg||{});let O0=C.createContext(null);O0.displayName="LabelContext";function E5(){let e=C.useContext(O0);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,E5),t}return e}function C5(e){var t,n,r;let s=(n=(t=C.useContext(O0))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[s,...e].filter(Boolean).join(" "):s}function IW({inherit:e=!1}={}){let t=C5(),[n,r]=C.useState([]),s=e?[t,...n].filter(Boolean):n;return[s.length>0?s.join(" "):void 0,C.useMemo(()=>function(l){let c=Ft(p=>(r(g=>[...g,p]),()=>r(g=>{let v=g.slice(),_=v.indexOf(p);return _!==-1&&v.splice(_,1),v}))),d=C.useMemo(()=>({register:c,slot:l.slot,name:l.name,props:l.props,value:l.value}),[c,l.slot,l.name,l.props,l.value]);return Me.createElement(O0.Provider,{value:d},l.children)},[r])]}let EI="label";function CI(e,t){var n;let r=C.useId(),s=E5(),l=_5(),c=M_(),{id:d=`headlessui-label-${r}`,htmlFor:p=l??((n=s.props)==null?void 0:n.htmlFor),passive:g=!1,...v}=e,_=Us(t);Rr(()=>s.register(d),[d,s.register]);let E=Ft(I=>{let L=I.currentTarget;if(L instanceof HTMLLabelElement&&I.preventDefault(),s.props&&"onClick"in s.props&&typeof s.props.onClick=="function"&&s.props.onClick(I),L instanceof HTMLLabelElement){let H=document.getElementById(L.htmlFor);if(H){let W=H.getAttribute("disabled");if(W==="true"||W==="")return;let Q=H.getAttribute("aria-disabled");if(Q==="true"||Q==="")return;(H instanceof HTMLInputElement&&(H.type==="radio"||H.type==="checkbox")||H.role==="radio"||H.role==="checkbox"||H.role==="switch")&&H.click(),H.focus({preventScroll:!0})}}}),x=c||!1,b=C.useMemo(()=>({...s.slot,disabled:x}),[s.slot,x]),R={ref:_,...s.props,id:d,htmlFor:p,onClick:E};return g&&("onClick"in R&&(delete R.htmlFor,delete R.onClick),"onClick"in v&&delete v.onClick),mi()({ourProps:R,theirProps:v,slot:b,defaultTag:p?EI:"div",name:s.name||"Label"})}let xI=Or(CI),OW=Object.assign(xI,{}),bI="span";function TI(e,t){let n=C.useId(),r=_5(),s=M_(),{id:l=r||`headlessui-checkbox-${n}`,disabled:c=s||!1,autoFocus:d=!1,checked:p,defaultChecked:g,onChange:v,name:_,value:E,form:x,indeterminate:b=!1,...R}=e,I=iI(g),[L,H]=rI(p,v,I??!1),W=C5(),Q=gI(),te=Fd(),[D,Z]=C.useState(!1),ue=Ft(()=>{Z(!0),H==null||H(!L),te.nextFrame(()=>{Z(!1)})}),X=Ft(re=>{if(pI(re.currentTarget))return re.preventDefault();re.preventDefault(),ue()}),ce=Ft(re=>{re.key===Qg.Space?(re.preventDefault(),ue()):re.key===Qg.Enter&&sI(re.currentTarget)}),ye=Ft(re=>re.preventDefault()),{isFocusVisible:de,focusProps:xe}=WR({autoFocus:d}),{isHovered:Re,hoverProps:We}=zR({isDisabled:c}),{pressed:fe,pressProps:Ie}=QR({disabled:c}),ee=tI({ref:t,id:l,role:"checkbox","aria-checked":b?"mixed":L?"true":"false","aria-labelledby":W,"aria-describedby":Q,"aria-disabled":c?!0:void 0,indeterminate:b?"true":void 0,tabIndex:c?void 0:0,onKeyUp:c?void 0:ce,onKeyPress:c?void 0:ye,onClick:c?void 0:X},xe,We,Ie),ve=C.useMemo(()=>({checked:L,disabled:c,hover:Re,focus:de,active:fe,indeterminate:b,changing:D,autofocus:d}),[L,b,c,Re,de,fe,D,d]),_e=C.useCallback(()=>{if(I!==void 0)return H==null?void 0:H(I)},[H,I]),$=mi();return Me.createElement(Me.Fragment,null,_!=null&&Me.createElement(cI,{disabled:c,data:{[_]:E||"on"},overrides:{type:"checkbox",checked:L},form:x,onReset:_e}),$({ourProps:ee,theirProps:R,slot:ve,defaultTag:bI,name:"Checkbox"}))}let kI=Or(TI),RI=C.createContext(()=>{});function II({value:e,children:t}){return Me.createElement(RI.Provider,{value:e},t)}let OI=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function x5(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(s){return r.add(s),()=>r.delete(s)},dispatch(s,...l){let c=t[s].call(n,...l);c&&(n=c,r.forEach(d=>d()))}}}function b5(e){return C.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}let AI=new OI(()=>x5(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function $d(e,t){let n=AI.get(t),r=C.useId(),s=b5(n);if(Rr(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let l=s.indexOf(r),c=s.length;return l===-1&&(l=c,c+=1),l===c-1}let b2=new Map,Ih=new Map;function PS(e){var t;let n=(t=Ih.get(e))!=null?t:0;return Ih.set(e,n+1),n!==0?()=>LS(e):(b2.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>LS(e))}function LS(e){var t;let n=(t=Ih.get(e))!=null?t:1;if(n===1?Ih.delete(e):Ih.set(e,n-1),n!==1)return;let r=b2.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,b2.delete(e))}function PI(e,{allowed:t,disallowed:n}={}){let r=$d(e,"inert-others");Rr(()=>{var s,l;if(!r)return;let c=Dl();for(let p of(s=n==null?void 0:n())!=null?s:[])p&&c.add(PS(p));let d=(l=t==null?void 0:t())!=null?l:[];for(let p of d){if(!p)continue;let g=lm(p);if(!g)continue;let v=p.parentElement;for(;v&&v!==g.body;){for(let _ of v.children)d.some(E=>_.contains(E))||c.add(PS(_));v=v.parentElement}}return c.dispose},[r,t,n])}function LI(e,t,n){let r=mc(s=>
120{let l=s.getBoundingClientRect();l.x===0&&l.y===0&&l.width===0&&l.height===0&&n()});C.useEffect(()=>{if(!e)return;let s=t===null?null:t instanceof HTMLElement?t:t.current;if(!s)return;let l=Dl();if(typeof ResizeObserver<"u"){let c=new ResizeObserver(()=>r.current(s));c.observe(s),l.add(()=>c.disconnect())}if(typeof IntersectionObserver<"u"){let c=new IntersectionObserver(()=>r.current(s));c.observe(s),l.add(()=>c.disconnect())}return()=>l.dispose()},[t,r,e])}let Xg=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),NI=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var aa=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(aa||{}),T2=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(T2||{}),MI=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(MI||{});function DI(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Xg)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function FI(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(NI)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var T5=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(T5||{});function $I(e,t=0){var n;return e===((n=lm(e))==null?void 0:n.body)?!1:Rl(t,{0(){return e.matches(Xg)},1(){let r=e;for(;r!==null;){if(r.matches(Xg))return!0;r=r.parentElement}return!1}})}var jI=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(jI||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ua(e){e==null||e.focus({preventScroll:!0})}let UI=["textarea","input"].join(",");function HI(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,UI))!=null?n:!1}function BI(e,t=n=>n){return e.slice().sort((n,r)=>{let s=t(n),l=t(r);if(s===null||l===null)return 0;let c=s.compareDocumentPosition(l);return c&Node.DOCUMENT_POSITION_FOLLOWING?-1:c&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Oh(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:s=[]}={}){let l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?n?BI(e):e:t&64?FI(e):DI(e);s.length>0&&c.length>1&&(c=c.filter(x=>!s.some(b=>b!=null&&"current"in b?(b==null?void 0:b.current)===x:b===x))),r=r??l.activeElement;let d=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=(()=>
vendor: 4,651 bytes, line 120
120{if(t&1)return 0;if(t&2)return Math.max(0,c.indexOf(r))-1;if(t&4)return Math.max(0,c.indexOf(r))+1;if(t&8)return c.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),g=t&32?{preventScroll:!0}:{},v=0,_=c.length,E;do{if(v>=_||v+_<=0)return 0;let x=p+v;if(t&16)x=(x+_)%_;else{if(x<0)return 3;if(x>=_)return 1}E=c[x],E==null||E.focus(g),v+=d}while(E!==l.activeElement);return t&6&&HI(E)&&E.select(),2}function k5(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function zI(){return/Android/gi.test(window.navigator.userAgent)}function WI(){return k5()||zI()}function Sh(e,t,n,r){let s=mc(n);C.useEffect(()=>{if(!e)return;function l(c){s.current(c)}return document.addEventListener(t,l,r),()=>document.removeEventListener(t,l,r)},[e,t,r])}function R5(e,t,n,r){let s=mc(n);C.useEffect(()=>{if(!e)return;function l(c){s.current(c)}return window.addEventListener(t,l,r),()=>window.removeEventListener(t,l,r)},[e,t,r])}const NS=30;function qI(e,t,n){let r=$d(e,"outside-click"),s=mc(n),l=C.useCallback(function(p,g){if(p.defaultPrevented)return;let v=g(p);if(v===null||!v.getRootNode().contains(v)||!v.isConnected)return;let _=function E(x){return typeof x=="function"?E(x()):Array.isArray(x)||x instanceof Set?x:[x]}(t);for(let E of _)if(E!==null&&(E.contains(v)||p.composed&&p.composedPath().includes(E)))return;return!$I(v,T5.Loose)&&v.tabIndex!==-1&&p.preventDefault(),s.current(p,v)},[s,t]),c=C.useRef(null);Sh(r,"pointerdown",p=>{var g,v;c.current=((v=(g=p.composedPath)==null?void 0:g.call(p))==null?void 0:v[0])||p.target},!0),Sh(r,"mousedown",p=>{var g,v;c.current=((v=(g=p.composedPath)==null?void 0:g.call(p))==null?void 0:v[0])||p.target},!0),Sh(r,"click",p=>{WI()||c.current&&(l(p,()=>c.current),c.current=null)},!0);let d=C.useRef({x:0,y:0});Sh(r,"touchstart",p=>{d.current.x=p.touches[0].clientX,d.current.y=p.touches[0].clientY},!0),Sh(r,"touchend",p=>{let g={x:p.changedTouches[0].clientX,y:p.changedTouches[0].clientY};if(!(Math.abs(g.x-d.current.x)>=NS||Math.abs(g.y-d.current.y)>=NS))return l(p,()=>p.target instanceof HTMLElement?p.target:null)},!0),R5(r,"blur",p=>l(p,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function um(...e){return C.useMemo(()=>lm(...e),[...e])}function I5(e,t,n,r){let s=mc(n);C.useEffect(()=>{e=e??window;function l(c){s.current(c)}return e.addEventListener(t,l,r),()=>e.removeEventListener(t,l,r)},[e,t,r])}function VI(){let e;return{before({doc:t}){var n;let r=t.documentElement,s=(n=t.defaultView)!=null?n:window;e=Math.max(0,s.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,s=Math.max(0,r.clientWidth-r.offsetWidth),l=Math.max(0,e-s);n.style(r,"paddingRight",`${l}px`)}}}function GI(){return k5()?{before({doc:e,d:t,meta:n}){function r(s){return n.containers.flatMap(l=>l()).some(l=>l.contains(s))}t.microTask(()=>{var s;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let d=Dl();d.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>d.dispose()))}let l=(s=window.scrollY)!=null?s:window.pageYOffset,c=null;t.addEventListener(e,"click",d=>{if(d.target instanceof HTMLElement)try{let p=d.target.closest("a");if(!p)return;let{hash:g}=new URL(p.href),v=e.querySelector(g);v&&!r(v)&&(c=v)}catch{}},!0),t.addEventListener(e,"touchstart",d=>{if(d.target instanceof HTMLElement)if(r(d.target)){let p=d.target;for(;p.parentElement&&r(p.parentElement);)p=p.parentElement;t.style(p,"overscrollBehavior","contain")}else t.style(d.target,"touchAction","none")}),t.addEventListener(e,"touchmove",d=>{if(d.target instanceof HTMLElement){if(d.target.tagName==="INPUT")return;if(r(d.target)){let p=d.target;for(;p.parentElement&&p.dataset.headlessuiPortal!==""&&!(p.scrollHeight>p.clientHeight||p.scrollWidth>p.clientWidth);)p=p.parentElement;p.dataset.headlessuiPortal===""&&d.preventDefault()}else d.preventDefault()}},{passive:!1}),t.add(()=>{var d;let p=(d=window.scrollY)!=null?d:window.pageYOffset;l!==p&&window.scrollTo(0,l),c&&c.isConnected&&(c.scrollIntoView({block:"nearest"}),c=null)})})}}:{}}function KI(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function YI(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Bu=x5(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Dl(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:YI(n)},s=[GI(),VI(),KI()];
vendor: 5,319 bytes, lines 120-121
120s.forEach(({before:l})=>l==null?void 0:l(r)),s.forEach(({after:l})=>l==null?void 0:l(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Bu.subscribe(()=>{let e=Bu.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",s=n.count!==0;(s&&!r||!s&&r)&&Bu.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Bu.dispatch("TEARDOWN",n)}});function QI(e,t,n=()=>({containers:[]})){let r=b5(Bu),s=t?r.get(t):void 0,l=s?s.count>0:!1;return Rr(()=>{if(!(!t||!e))return Bu.dispatch("PUSH",t,n),()=>Bu.dispatch("POP",t,n)},[e,t]),l}function XI(e,t,n=()=>[document.body]){let r=$d(e,"scroll-lock");QI(r,t,s=>{var l;return{containers:[...(l=s.containers)!=null?l:[],n]}})}function JI(e=0){let[t,n]=C.useState(e),r=C.useCallback(p=>n(p),[t]),s=C.useCallback(p=>n(g=>g|p),[t]),l=C.useCallback(p=>(t&p)===p,[t]),c=C.useCallback(p=>n(g=>g&~p),[n]),d=C.useCallback(p=>n(g=>g^p),[n]);return{flags:t,setFlag:r,addFlag:s,hasFlag:l,removeFlag:c,toggleFlag:d}}var ZI={},MS,DS;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((MS=process==null?void 0:ZI)==null?void 0:MS.NODE_ENV)==="test"&&typeof((DS=Element==null?void 0:Element.prototype)==null?void 0:DS.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
121`)),[]});var eO=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(eO||{});function tO(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function nO(e,t,n,r){let[s,l]=C.useState(n),{hasFlag:c,addFlag:d,removeFlag:p}=JI(e&&s?3:0),g=C.useRef(!1),v=C.useRef(!1),_=Fd();return Rr(()=>{var E;if(e){if(n&&l(!0),!t){n&&d(3);return}return(E=r==null?void 0:r.start)==null||E.call(r,n),rO(t,{inFlight:g,prepare(){v.current?v.current=!1:v.current=g.current,g.current=!0,!v.current&&(n?(d(3),p(4)):(d(4),p(2)))},run(){v.current?n?(p(3),d(4)):(p(4),d(3)):n?p(1):d(1)},done(){var x;v.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(g.current=!1,p(7),n||l(!1),(x=r==null?void 0:r.end)==null||x.call(r,n))}})}},[e,n,t,_]),e?[s,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function rO(e,{prepare:t,run:n,done:r,inFlight:s}){let l=Dl();return sO(e,{prepare:t,inFlight:s}),l.nextFrame(()=>{n(),l.requestAnimationFrame(()=>{l.add(iO(e,r))})}),l.dispose}function iO(e,t){var n,r;let s=Dl();if(!e)return s.dispose;let l=!1;s.add(()=>{l=!0});let c=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(d=>d instanceof CSSTransition))!=null?r:[];return c.length===0?(t(),s.dispose):(Promise.allSettled(c.map(d=>d.finished)).then(()=>{l||t()}),s.dispose)}function sO(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function D_(e,t){let n=C.useRef([]),r=Ft(e);C.useEffect(()=>{let s=[...n.current];for(let[l,c]of t.entries())if(n.current[l]!==c){let d=r(t,s);return n.current=t,d}},[r,...t])}let A0=C.createContext(null);A0.displayName="OpenClosedContext";var Ns=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ns||{});function P0(){return C.useContext(A0)}function oO({value:e,children:t}){return Me.createElement(A0.Provider,{value:e},t)}function aO({children:e}){return Me.createElement(A0.Provider,{value:null},e)}function lO(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let hl=[];lO(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||hl[0]===t.target)return;let n=t.target;n=n.closest(Xg),hl.unshift(n??t.target),hl=hl.filter(r=>r!=null&&r.isConnected),hl.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function O5(e){let t=Ft(e),n=C.useRef(!1);C.useEffect(()=>(n.current=!1,()=>{n.current=!0,R0(()=>{n.current&&t()})}),[t])}function uO(){let e=typeof document>"u";return"useSyncExternalStore"in tS?(t=>t.useSyncExternalStore)(tS)(()=>()=>{},()=>!1,()=>!e):!1}function cm(){let e=uO(),[t,n]=C.useState(nc.isHandoffComplete);return t&&nc.isHandoffComplete===!1&&n(!1),C.useEffect(()=>{t!==!0&&n(!0)},[t]),C.useEffect(()=>nc.handoff(),[]),e?!1:t}let A5=C.createContext(!1);function cO(){return C.useContext(A5)}function FS(e){return Me.createElement(A5.Provider,{value:e.force},e.children)}function fO(e){let t=cO(),n=C.useContext(L5),r=um(e),[s,l]=C.useState(()=>{var c;if(!t&&n!==null)return(c=n.current)!=null?c:null;if(nc.isServer)return null;let d=r==null?void 0:r.getElementById("headlessui-portal-root");
vendor: 8,612 bytes, line 121
121if(d)return d;if(r===null)return null;let p=r.createElement("div");return p.setAttribute("id","headlessui-portal-root"),r.body.appendChild(p)});return C.useEffect(()=>{s!==null&&(r!=null&&r.body.contains(s)||r==null||r.body.appendChild(s))},[s,r]),C.useEffect(()=>{t||n!==null&&l(n.current)},[n,l,t]),s}let P5=C.Fragment,dO=Or(function(e,t){let n=e,r=C.useRef(null),s=Us(mI(_=>{r.current=_}),t),l=um(r),c=fO(r),[d]=C.useState(()=>{var _;return nc.isServer?null:(_=l==null?void 0:l.createElement("div"))!=null?_:null}),p=C.useContext(k2),g=cm();Rr(()=>{!c||!d||c.contains(d)||(d.setAttribute("data-headlessui-portal",""),c.appendChild(d))},[c,d]),Rr(()=>{if(d&&p)return p.register(d)},[p,d]),O5(()=>{var _;!c||!d||(d instanceof Node&&c.contains(d)&&c.removeChild(d),c.childNodes.length<=0&&((_=c.parentElement)==null||_.removeChild(c)))});let v=mi();return g?!c||!d?null:w0.createPortal(v({ourProps:{ref:s},theirProps:n,slot:{},defaultTag:P5,name:"Portal"}),d):null});function pO(e,t){let n=Us(t),{enabled:r=!0,...s}=e,l=mi();return r?Me.createElement(dO,{...s,ref:n}):l({ourProps:{ref:n},theirProps:s,slot:{},defaultTag:P5,name:"Portal"})}let hO=C.Fragment,L5=C.createContext(null);function mO(e,t){let{target:n,...r}=e,s={ref:Us(t)},l=mi();return Me.createElement(L5.Provider,{value:n},l({ourProps:s,theirProps:r,defaultTag:hO,name:"Popover.Group"}))}let k2=C.createContext(null);function gO(){let e=C.useContext(k2),t=C.useRef([]),n=Ft(l=>(t.current.push(l),e&&e.register(l),()=>r(l))),r=Ft(l=>{let c=t.current.indexOf(l);c!==-1&&t.current.splice(c,1),e&&e.unregister(l)}),s=C.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,C.useMemo(()=>function({children:l}){return Me.createElement(k2.Provider,{value:s},l)},[s])]}let yO=Or(pO),N5=Or(mO),vO=Object.assign(yO,{Group:N5});function _O(e,t=typeof document<"u"?document.defaultView:null,n){let r=$d(e,"escape");I5(t,"keydown",s=>{r&&(s.defaultPrevented||s.key===Qg.Escape&&n(s))})}function wO(){var e;let[t]=C.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=C.useState((e=t==null?void 0:t.matches)!=null?e:!1);return Rr(()=>{if(!t)return;function s(l){r(l.matches)}return t.addEventListener("change",s),()=>t.removeEventListener("change",s)},[t]),n}function SO({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=um(n),s=Ft(()=>{var l,c;let d=[];for(let p of e)p!==null&&(p instanceof HTMLElement?d.push(p):"current"in p&&p.current instanceof HTMLElement&&d.push(p.current));if(t!=null&&t.current)for(let p of t.current)d.push(p);for(let p of(l=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?l:[])p!==document.body&&p!==document.head&&p instanceof HTMLElement&&p.id!=="headlessui-portal-root"&&(n&&(p.contains(n)||p.contains((c=n==null?void 0:n.getRootNode())==null?void 0:c.host))||d.some(g=>p.contains(g))||d.push(p));return d});return{resolveContainers:s,contains:Ft(l=>s().some(c=>c.contains(l)))}}let M5=C.createContext(null);function $S({children:e,node:t}){let[n,r]=C.useState(null),s=D5(t??n);return Me.createElement(M5.Provider,{value:s},e,s===null&&Me.createElement(Hh,{features:_d.Hidden,ref:l=>{var c,d;if(l){for(let p of(d=(c=lm(l))==null?void 0:c.querySelectorAll("html > *, body > *"))!=null?d:[])if(p!==document.body&&p!==document.head&&p instanceof HTMLElement&&p!=null&&p.contains(l)){r(p);break}}}}))}function D5(e=null){var t;return(t=C.useContext(M5))!=null?t:e}function F_(){let e=C.useRef(!1);return Rr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Th=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Th||{});function EO(){let e=C.useRef(0);return R5(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function F5(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let CO="div";var $u=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))($u||{});function xO(e,t){let n=C.useRef(null),r=Us(n,t),{initialFocus:s,initialFocusFallback:l,containers:c,features:d=15,...p}=e;cm()||(d=0);let g=um(n);RO(d,{ownerDocument:g});let v=IO(d,{ownerDocument:g,container:n,initialFocus:s,initialFocusFallback:l});OO(d,{ownerDocument:g,container:n,containers:c,previousActiveElement:v});let _=EO(),E=Ft(H=>{let W=n.current;W&&(Q=>Q())(()=>{Rl(_.current,{[Th.Forwards]:()=>{Oh(W,aa.First,{skipElements:[H.relatedTarget,l]})},[Th.Backwards]:()=>{Oh(W,aa.Last,{skipElements:[H.relatedTarget,l]})}})})}),x=$d(!!(d&2),"focus-trap#tab-lock"),b=Fd(),R=C.useRef(!1),I={ref:r,onKeyDown(H){H.key=="Tab"&&(R.current=!0,b.requestAnimationFrame(()=>{R.current=!1}))},onBlur(H){if(!(d&4))return;let W=F5(c);n.current instanceof HTMLElement&&W.add(n.current);let Q=H.relatedTarget;Q instanceof HTMLElement&&Q.dataset.headlessuiFocusGuard!=="true"&&($5(W,Q)||(R.current?Oh(n.current,Rl(_.current,{[Th.Forwards]:()=>aa.Next,[Th.Backwards]:()=>aa.Previous})|aa.WrapAround,{relativeTo:H.target}):H.target instanceof HTMLElement&&ua(H.target)))}},L=mi();return Me.createElement(Me.Fragment,null,x&&Me.createElement(Hh,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:E,features:_d.Focusable}),L({ourProps:I,theirProps:p,defaultTag:CO,name:"FocusTrap"}),x&&Me.createElement(Hh,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:E,features:_d.Focusable}))}let bO=Or(xO),TO=Object.assign(bO,{features:$u});function kO(e=!0){let t=C.useRef(hl.slice());return D_(([n],[r])=>{r===!0&&n===!1&&R0(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=hl.slice())},[e,hl,t]),Ft(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function RO(e,{ownerDocument:t}){let n=!!(e&8),r=kO(n);D_(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&ua(r())},[n]),O5(()=>{n&&ua(r())})}function IO(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:s}){let l=C.useRef(null),c=$d(!!(e&1),"focus-trap#initial-focus"),d=F_();return D_(()=>{if(e===0)return;if(!c){s!=null&&s.current&&ua(s.current);return}let p=n.current;p&&R0(()=>{if(!d.current)return;let g=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===g){l.current=g;return}}else if(p.contains(g)){l.current=g;return}if(r!=null&&r.current)ua(r.current);else{if(e&16){if(Oh(p,aa.First|aa.AutoFocus)!==T2.Error)return}else if(Oh(p,aa.First)!==T2.Error)return;if(s!=null&&s.current&&(ua(s.current),(t==null?void 0:t.activeElement)===s.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}l.current=t==null?void 0:t.activeElement})},[s,c,e]),l}function OO(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:s}){let l=F_(),c=!!(e&4);I5(t==null?void 0:t.defaultView,"focus",d=>{if(!c||!l.current)return;let p=F5(r);n.current instanceof HTMLElement&&p.add(n.current);let g=s.current;if(!g)return;let v=d.target;v&&v instanceof HTMLElement?$5(p,v)?(s.current=v,ua(v)):(d.preventDefault(),d.stopPropagation(),ua(g)):ua(s.current)},!0)}function $5(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function j5(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:H5)!==C.Fragment||Me.Children.count(e.children)===1}let L0=C.createContext(null);L0.displayName="TransitionContext";var AO=(e=>(e.Visible="visible",e.Hidden="hidden",e))(AO||{});function PO(){let e=C.useContext(L0);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function LO(){let e=C.useContext(N0);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let N0=C.createContext(null);N0.displayName="NestingContext";function M0(e){return"children"in e?M0(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function U5(e,t){let n=mc(e),r=C.useRef([]),s=F_(),l=Fd(),c=Ft((x,b=bl.Hidden)=>{let R=r.current.findIndex(({el:I})=>I===x);R!==-1&&(Rl(b,{[bl.Unmount](){r.current.splice(R,1)},[bl.Hidden](){r.current[R].state="hidden"}}),l.microTask(()=>{var I;!M0(r)&&s.current&&((I=n.current)==null||I.call(n))}))}),d=Ft(x=>{let b=r.current.find(({el:R})=>R===x);return b?b.state!=="visible"&&(b.state="visible"):r.current.push({el:x,state:"visible"}),()=>c(x,bl.Unmount)}),p=C.useRef([]),g=C.useRef(Promise.resolve()),v=C.useRef({enter:[],leave:[]}
vendor: 4,517 bytes, line 121
121),_=Ft((x,b,R)=>{p.current.splice(0),t&&(t.chains.current[b]=t.chains.current[b].filter(([I])=>I!==x)),t==null||t.chains.current[b].push([x,new Promise(I=>{p.current.push(I)})]),t==null||t.chains.current[b].push([x,new Promise(I=>{Promise.all(v.current[b].map(([L,H])=>H)).then(()=>I())})]),b==="enter"?g.current=g.current.then(()=>t==null?void 0:t.wait.current).then(()=>R(b)):R(b)}),E=Ft((x,b,R)=>{Promise.all(v.current[b].splice(0).map(([I,L])=>L)).then(()=>{var I;(I=p.current.shift())==null||I()}).then(()=>R(b))});return C.useMemo(()=>({children:r,register:d,unregister:c,onStart:_,onStop:E,wait:g,chains:v}),[d,c,r,_,E,v,g])}let H5=C.Fragment,B5=Yg.RenderStrategy;function NO(e,t){var n,r;let{transition:s=!0,beforeEnter:l,afterEnter:c,beforeLeave:d,afterLeave:p,enter:g,enterFrom:v,enterTo:_,entered:E,leave:x,leaveFrom:b,leaveTo:R,...I}=e,[L,H]=C.useState(null),W=C.useRef(null),Q=j5(e),te=Us(...Q?[W,t,H]:t===null?[]:[t]),D=(n=I.unmount)==null||n?bl.Unmount:bl.Hidden,{show:Z,appear:ue,initial:X}=PO(),[ce,ye]=C.useState(Z?"visible":"hidden"),de=LO(),{register:xe,unregister:Re}=de;Rr(()=>xe(W),[xe,W]),Rr(()=>{if(D===bl.Hidden&&W.current){if(Z&&ce!=="visible"){ye("visible");return}return Rl(ce,{hidden:()=>Re(W),visible:()=>xe(W)})}},[ce,W,xe,Re,Z,D]);let We=cm();Rr(()=>{if(Q&&We&&ce==="visible"&&W.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[W,ce,We,Q]);let fe=X&&!ue,Ie=ue&&Z&&X,ee=C.useRef(!1),ve=U5(()=>{ee.current||(ye("hidden"),Re(W))},de),_e=Ft(ot=>{ee.current=!0;let et=ot?"enter":"leave";ve.onStart(W,et,dt=>{dt==="enter"?l==null||l():dt==="leave"&&(d==null||d())})}),$=Ft(ot=>{let et=ot?"enter":"leave";ee.current=!1,ve.onStop(W,et,dt=>{dt==="enter"?c==null||c():dt==="leave"&&(p==null||p())}),et==="leave"&&!M0(ve)&&(ye("hidden"),Re(W))});C.useEffect(()=>{Q&&s||(_e(Z),$(Z))},[Z,Q,s]);let re=!(!s||!Q||!We||fe),[,Oe]=nO(re,L,Z,{start:_e,end:$}),Fe=fl({ref:te,className:((r=x2(I.className,Ie&&g,Ie&&v,Oe.enter&&g,Oe.enter&&Oe.closed&&v,Oe.enter&&!Oe.closed&&_,Oe.leave&&x,Oe.leave&&!Oe.closed&&b,Oe.leave&&Oe.closed&&R,!Oe.transition&&Z&&E))==null?void 0:r.trim())||void 0,...tO(Oe)}),oe=0;ce==="visible"&&(oe|=Ns.Open),ce==="hidden"&&(oe|=Ns.Closed),Oe.enter&&(oe|=Ns.Opening),Oe.leave&&(oe|=Ns.Closing);let Le=mi();return Me.createElement(N0.Provider,{value:ve},Me.createElement(oO,{value:oe},Le({ourProps:Fe,theirProps:I,defaultTag:H5,features:B5,visible:ce==="visible",name:"Transition.Child"})))}function MO(e,t){let{show:n,appear:r=!1,unmount:s=!0,...l}=e,c=C.useRef(null),d=j5(e),p=Us(...d?[c,t]:t===null?[]:[t]);cm();let g=P0();if(n===void 0&&g!==null&&(n=(g&Ns.Open)===Ns.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[v,_]=C.useState(n?"visible":"hidden"),E=U5(()=>{n||_("hidden")}),[x,b]=C.useState(!0),R=C.useRef([n]);Rr(()=>{x!==!1&&R.current[R.current.length-1]!==n&&(R.current.push(n),b(!1))},[R,n]);let I=C.useMemo(()=>({show:n,appear:r,initial:x}),[n,r,x]);Rr(()=>{n?_("visible"):!M0(E)&&c.current!==null&&_("hidden")},[n,E]);let L={unmount:s},H=Ft(()=>{var te;x&&b(!1),(te=e.beforeEnter)==null||te.call(e)}),W=Ft(()=>{var te;x&&b(!1),(te=e.beforeLeave)==null||te.call(e)}),Q=mi();return Me.createElement(N0.Provider,{value:E},Me.createElement(L0.Provider,{value:I},Q({ourProps:{...L,as:C.Fragment,children:Me.createElement(z5,{ref:p,...L,...l,beforeEnter:H,beforeLeave:W})},theirProps:{},defaultTag:C.Fragment,features:B5,visible:v==="visible",name:"Transition"})))}function DO(e,t){let n=C.useContext(L0)!==null,r=P0()!==null;return Me.createElement(Me.Fragment,null,!n&&r?Me.createElement(R2,{ref:t,...e}):Me.createElement(z5,{ref:t,...e}))}let R2=Or(MO),z5=Or(NO),$_=Or(DO),FO=Object.assign(R2,{Child:$_,Root:R2});var $O=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))($O||{}),jO=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(jO||{});let UO={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},j_=C.createContext(null);j_.displayName="DialogContext";function D0(e){let t=C.useContext(j_);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,D0),n}return t}function HO(e,t){return Rl(t.type,UO,e,t)}let jS=Or(function(e,t){let n=C.useId(),{id:r=`headlessui-dialog-${n}`,open:s,onClose:l,initialFocus:c,role:d="dialog",autoFocus:p=!0,__demoMode:g=!1,unmount:v=!1,..._}=e,E=C.useRef(!1);d=function(){return d==="dialog"||d==="alertdialog"?d:(E.current||(E.current=!0,
vendor: 4,496 bytes, line 121
121console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let x=P0();s===void 0&&x!==null&&(s=(x&Ns.Open)===Ns.Open);let b=C.useRef(null),R=Us(b,t),I=um(b),L=s?0:1,[H,W]=C.useReducer(HO,{titleId:null,descriptionId:null,panelRef:C.createRef()}),Q=Ft(()=>l(!1)),te=Ft($=>W({type:0,id:$})),D=cm()?L===0:!1,[Z,ue]=gO(),X={get current(){var $;return($=H.panelRef.current)!=null?$:b.current}},ce=D5(),{resolveContainers:ye}=SO({mainTreeNode:ce,portals:Z,defaultContainers:[X]}),de=x!==null?(x&Ns.Closing)===Ns.Closing:!1;PI(g||de?!1:D,{allowed:Ft(()=>{var $,re;return[(re=($=b.current)==null?void 0:$.closest("[data-headlessui-portal]"))!=null?re:null]}),disallowed:Ft(()=>{var $;return[($=ce==null?void 0:ce.closest("body > *:not(#headlessui-portal-root)"))!=null?$:null]})}),qI(D,ye,$=>{$.preventDefault(),Q()}),_O(D,I==null?void 0:I.defaultView,$=>{$.preventDefault(),$.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),Q()}),XI(g||de?!1:D,I,ye),LI(D,b,Q);let[xe,Re]=yI(),We=C.useMemo(()=>[{dialogState:L,close:Q,setTitleId:te,unmount:v},H],[L,H,Q,te,v]),fe=C.useMemo(()=>({open:L===0}),[L]),Ie={ref:R,id:r,role:d,tabIndex:-1,"aria-modal":g?void 0:L===0?!0:void 0,"aria-labelledby":H.titleId,"aria-describedby":xe,unmount:v},ee=!wO(),ve=$u.None;D&&!g&&(ve|=$u.RestoreFocus,ve|=$u.TabLock,p&&(ve|=$u.AutoFocus),ee&&(ve|=$u.InitialFocus));let _e=mi();return Me.createElement(aO,null,Me.createElement(FS,{force:!0},Me.createElement(vO,null,Me.createElement(j_.Provider,{value:We},Me.createElement(N5,{target:b},Me.createElement(FS,{force:!1},Me.createElement(Re,{slot:fe},Me.createElement(ue,null,Me.createElement(TO,{initialFocus:c,initialFocusFallback:b,containers:ye,features:ve},Me.createElement(II,{value:Q},_e({ourProps:Ie,theirProps:_,slot:fe,defaultTag:BO,features:zO,visible:L===0,name:"Dialog"})))))))))))}),BO="div",zO=Yg.RenderStrategy|Yg.Static;function WO(e,t){let{transition:n=!1,open:r,...s}=e,l=P0(),c=e.hasOwnProperty("open")||l!==null,d=e.hasOwnProperty("onClose");if(!c&&!d)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!c)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!d)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!l&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!s.static?Me.createElement($S,null,Me.createElement(FO,{show:r,transition:n,unmount:s.unmount},Me.createElement(jS,{ref:t,...s}))):Me.createElement($S,null,Me.createElement(jS,{ref:t,open:r,...s}))}let qO="div";function VO(e,t){let n=C.useId(),{id:r=`headlessui-dialog-panel-${n}`,transition:s=!1,...l}=e,[{dialogState:c,unmount:d},p]=D0("Dialog.Panel"),g=Us(t,p.panelRef),v=C.useMemo(()=>({open:c===0}),[c]),_=Ft(I=>{I.stopPropagation()}),E={ref:g,id:r,onClick:_},x=s?$_:C.Fragment,b=s?{unmount:d}:{},R=mi();return Me.createElement(x,{...b},R({ourProps:E,theirProps:l,slot:v,defaultTag:qO,name:"Dialog.Panel"}))}let GO="div";function KO(e,t){let{transition:n=!1,...r}=e,[{dialogState:s,unmount:l}]=D0("Dialog.Backdrop"),c=C.useMemo(()=>({open:s===0}),[s]),d={ref:t,"aria-hidden":!0},p=n?$_:C.Fragment,g=n?{unmount:l}:{},v=mi();return Me.createElement(p,{...g},v({ourProps:d,theirProps:r,slot:c,defaultTag:GO,name:"Dialog.Backdrop"}))}let YO="h2";function QO(e,t){let n=C.useId(),{id:r=`headlessui-dialog-title-${n}`,...s}=e,[{dialogState:l,setTitleId:c}]=D0("Dialog.Title"),d=Us(t);C.useEffect(()=>(c(r),()=>c(null)),[r,c]);let p=C.useMemo(()=>({open:l===0}),[l]),g={ref:d,id:r};return mi()({ourProps:g,theirProps:s,slot:p,defaultTag:YO,name:"Dialog.Title"})}let XO=Or(WO),JO=Or(VO);Or(KO);let ZO=Or(QO),Il=Object.assign(XO,{Panel:JO,Title:ZO,Description:SI});const W5=e=>C.createElement("svg",{width:35,height:32,viewBox:"0 0 35 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M14.5432 1.70193C17.4781 1.70193 19.8874 3.87241 20.3254 6.70731C20.3692 7.01738 20.0188 7.23886 19.756 7.06168C18.3542 5.95429 16.6458 5.42275 14.9374 5.42275H11.
1216521C8.71715 5.42275 6.30789 3.25227 5.86984 0.417363C5.82604 0.107296 6.17648 -0.114181 6.43931 0.0630005C7.84106 1.17039 9.54944 1.70193 11.2578 1.70193H14.5432Z",fill:"#E93774"}),C.createElement("path",{d:"M14.5432 1.70193C17.4781 1.70193 19.8874 3.87241 20.3254 6.70731C20.3692 7.01738 20.0188 7.23886 19.756 7.06168C18.3542 5.95429 16.6458 5.42275 14.9374 5.42275H11.6521C8.71715 5.42275 6.30789 3.25227 5.86984 0.417363C5.82604 0.107296 6.17648 -0.114181 6.43931 0.0630005C7.84106 1.17039 9.54944 1.70193 11.2578 1.70193H14.5432Z",fill:"url(#paint0_radial_12185_6709)"}),C.createElement("path",{d:"M12.3091 31.5128C13.1414 30.2725 13.4043 28.5893 12.572 26.8617C11.8711 25.4 10.3379 24.6027 8.71715 24.6027C4.86233 24.6027 1.75219 21.0147 1.44556 16.4523C1.44556 16.1865 1.75219 16.0537 1.92741 16.1865C3.85482 17.8255 6.30789 18.6671 8.71715 18.6671H11.9149C14.2365 18.6671 16.5582 19.4644 18.398 21.1033C18.617 21.2805 18.9237 21.1033 18.8799 20.8376C18.5294 17.1167 15.4193 14.1932 11.6083 14.1932H8.71715C4.11765 14.1932 0.350438 10.6053 0 6.04289C0 5.77711 0.306633 5.59993 0.481852 5.77711C2.40926 7.41604 4.86233 8.25766 7.27159 8.25766H10.2065C16.3392 8.25766 22.428 10.561 27.2028 15.1234C27.4218 15.3006 27.7284 15.1677 27.7284 14.902C27.5532 11.4026 26.1076 8.25766 23.8736 5.8657C23.6984 5.68852 23.8298 5.33416 24.0926 5.37846C30.1377 5.82141 35 10.9154 35 17.2053C35 17.2496 35 17.2939 35 17.3825C34.9562 25.4886 28.3417 32 20.3254 32C17.0401 32 13.8423 32 12.572 32C12.3091 31.9557 12.1777 31.6899 12.3091 31.5128Z",fill:"#E93774"}),C.createElement("path",{d:"M12.3091 31.5128C13.1414 30.2725 13.4043 28.5893 12.572 26.8617C11.8711 25.4 10.3379 24.6027 8.71715 24.6027C4.86233 24.6027 1.75219 21.0147 1.44556 16.4523C1.44556 16.1865 1.75219 16.0537 1.92741 16.1865C3.85482 17.8255 6.30789 18.6671 8.71715 18.6671H11.9149C14.2365 18.6671 16.5582 19.4644 18.398 21.1033C18.617 21.2805 18.9237 21.1033 18.8799 20.8376C18.5294 17.1167 15.4193 14.1932 11.6083 14.1932H8.71715C4.11765 14.1932 0.350438 10.6053 0 6.04289C0 5.77711 0.306633 5.59993 0.481852 5.77711C2.40926 7.41604 4.86233 8.25766 7.27159 8.25766H10.2065C16.3392 8.25766 22.428 10.561 27.2028 15.1234C27.4218 15.3006 27.7284 15.1677 27.7284 14.902C27.5532 11.4026 26.1076 8.25766 23.8736 5.8657C23.6984 5.68852 23.8298 5.33416 24.0926 5.37846C30.1377 5.82141 35 10.9154 35 17.2053C35 17.2496 35 17.2939 35 17.3825C34.9562 25.4886 28.3417 32 20.3254 32C17.0401 32 13.8423 32 12.572 32C12.3091 31.9557 12.1777 31.6899 12.3091 31.5128Z",fill:"url(#paint1_radial_12185_6709)"}),C.createElement("defs",null,C.createElement("radialGradient",{id:"paint0_radial_12185_6709",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(42.4362) scale(47.4236 51.8696)"},C.createElement("stop",{stopColor:"#EE6792"}),C.createElement("stop",{offset:1,stopColor:"#E93774"})),C.createElement("radialGradient",{id:"paint1_radial_12185_6709",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"rotate(42.4362) scale(47.4236 51.8696)"},C.createElement("stop",{stopColor:"#EE6792"}),C.createElement("stop",{offset:1,stopColor:"#E93774"}))));var wv={},sg={},US;function eA(){if(US)return sg;US=1;const e=tm(),t={isLoading:!0,isAuthenticated:!1},n={...t},r=e.createContext(n),s=()=>{const l=e.useContext(r);if(l===void 0)throw new Error("Oooops! useKindeAuth must be used within a KindeProvider");return l};return sg.KindeContext=r,sg.useKindeAuth=s,sg}var HS;function tA(){return HS||(HS=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eA(),n=Y3(),r=tm();var s=(B=>(B.none="none",B.create="create",B.login="login",B))(s||{}),l=(B=>(B.logout="logout",B.login="login",B.register="registration",B.token="token",B.profile="profile",B))(l||{});const c=B=>{const Ee=Ye=>btoa(Ye).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");if(B instanceof ArrayBuffer){const Ye=new Uint8Array(B),st=String.fromCharCode(...Ye);return Ee(st)}const ae=new TextEncoder().encode(B),Se=String.fromCharCode(...ae);return Ee(Se)},d=(B=28)=>{if(crypto){const Ee=new Uint8Array(B/2);return crypto.getRandomValues(Ee),Array.from(Ee,p).join("")}else return g(B)};function p(B){return B.toString(16).padStart(2,"0")}function g(B=28){const Ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let ae="";
121const Se=Ee.length;for(let Ye=0;Ye<B;Ye++)ae+=Ee.charAt(Math.floor(Math.random()*Se));return ae}const v=B=>B.replace(/\/$/,""),_=(B,Ee=!1)=>{var Se,Ye,st;const ae={login_hint:B.loginHint,is_create_org:(Se=B.isCreateOrg)==null?void 0:Se.toString(),connection_id:B.connectionId,redirect_uri:B.redirectURL?Ee?B.redirectURL:v(B.redirectURL):void 0,audience:B.audience||"",scope:((Ye=B.scope)==null?void 0:Ye.join(" "))||"email profile openid offline",prompt:B.prompt,lang:B.lang,org_code:B.orgCode,org_name:B.orgName,has_success_page:(st=B.hasSuccessPage)==null?void 0:st.toString(),workflow_deployment_id:B.workflowDeploymentId};return Object.keys(ae).forEach(tt=>ae[tt]===void 0&&delete ae[tt]),ae},E=async(B,Ee=l.login,ae,Se)=>{const Ye=`${B}/oauth2/auth`,st=Le(),tt={client_id:ae.clientId,response_type:ae.responseType||"code",..._(ae,Se==null?void 0:Se.disableUrlSanitization)};ae.state||(ae.state=d(32)),st&&st.setSessionItem(D.state,ae.state),tt.state=ae.state,ae.nonce||(ae.nonce=d(16)),tt.nonce=ae.nonce,st&&st.setSessionItem(D.nonce,ae.nonce);let In="";if(ae.codeChallenge)tt.code_challenge=ae.codeChallenge;else{const{codeVerifier:ir,codeChallenge:jt}=await x();In=ir,st&&st.setSessionItem(D.codeVerifier,ir),tt.code_challenge=jt}tt.code_challenge_method="S256",ae.codeChallengeMethod&&(tt.code_challenge_method=ae.codeChallengeMethod),!ae.prompt&&Ee===l.register&&(tt.prompt=s.create);const rr=new URLSearchParams(tt).toString();return{url:new URL(`${Ye}?${rr}`),state:tt.state,nonce:tt.nonce,codeChallenge:tt.code_challenge,codeVerifier:In}};async function x(){const B=d(52),Ee=new TextEncoder().encode(B);let ae="";if(!crypto)ae=c(btoa(B));else{const Se=await crypto.subtle.digest("SHA-256",Ee);ae=c(Se)}return{codeVerifier:B,codeChallenge:ae}}let b;function R(B,Ee){if(I(),typeof window>"u")throw new Error("setRefreshTimer requires a browser environment");if(B<=0)throw new Error("Timer duration must be positive");b=window.setTimeout(Ee,B*1e3-1e4)}function I(){b!==void 0&&(window.clearTimeout(b),b=void 0)}const L={framework:"",frameworkVersion:"",sdkVersion:""},H=async()=>{var B;await((B=Le())==null?void 0:B.removeItems(D.state,D.nonce,D.codeVerifier))},W=async({urlParams:B,domain:Ee,clientId:ae,redirectURL:Se,autoRefresh:Ye=!1})=>{const st=B.get("state"),tt=B.get("code");if(!st||!tt)return console.error("Invalid state or code"),{success:!1,error:"Invalid state or code"};const In=Le();if(!In)return console.error("No active storage found"),{success:!1,error:"Authentication storage is not initialized"};(!L.framework||!L.frameworkVersion)&&console.warn("Framework and version not set. Please set the framework and version in the config object");const rr=await In.getSessionItem(D.state);if(st!==rr)return console.error("Invalid state"),{success:!1,error:`Invalid state; supplied ${st}, expected ${rr}`};const ir=await In.getSessionItem(D.codeVerifier);if(ir===null)return console.error("Code verifier not found"),{success:!1,error:"Code verifier not found"};const jt={"Content-type":"application/x-www-form-urlencoded; charset=UTF-8"};L.framework&&(jt["Kinde-SDK"]=`${L.framework}/${L.sdkVersion}/${L.frameworkVersion}/Javascript`);const cs={method:"POST",...!ye.useInsecureForRefreshToken&&zn(Ee)?{credentials:"include"}:{},headers:new Headers(jt),body:new URLSearchParams({client_id:ae,code:tt,code_verifier:ir,grant_type:"authorization_code",redirect_uri:Se})};let pn;I();try{if(pn=await fetch(`${Ee}/oauth2/token`,cs),!(pn!=null&&pn.ok)){const sr=await pn.text();return console.error("Token exchange failed:",pn.status,sr),{success:!1,error:`Token exchange failed: ${pn.status} - ${sr}`}}}catch(sr){return H(),console.error("Token exchange failed:",sr),{success:!1,error:`Token exchange failed: ${sr}`}}const En=await pn.json(),gi=Fe();gi&&gi.setItems({[D.accessToken]:En.access_token,[D.idToken]:En.id_token,[D.refreshToken]:En.refresh_token}),(ye.useInsecureForRefreshToken||!zn(Ee))&&In.setSessionItem(D.refreshToken,En.refresh_token),Ye&&R(En.expires_in,async()=>{et({domain:Ee,clientId:ae})}),H();const Fi=(sr=>(sr.search="",sr))(new URL(window.location.toString()));return window.history.replaceState(window.history.state,"",Fi),!En.access_token||!En.id_token||!En.refresh_token?{success:!1,error:"No access token recieved"}:{success:!0,[D.accessToken]:En.access_token,[D.idToken]:En.id_token,[D.refreshToken]:En.refresh_token}};function Q(B){const Ee=document.cookie.split("; ").find(ae=>ae.startsWith(`${B}=`));if(!Ee)return null;try{const ae=Ee.split("=")[1];return ae?decodeURIComponent(ae):null}catch(ae){return console.error(`Error parsing cookie ${B}:`,ae),null}}function te(B,Ee){if(!B)return null;const ae=B.split(".");if(ae.length!==3)return null;const Se=ae[1].replace(/-/g,"+").replace(/_/g,"/"),Ye=decodeURIComponent(atob(Se).split("").map(st=>"%"+("00"+st.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(Ye)}var D=(B=>(B.accessToken="accessToken",B.idToken="idToken",B.refreshToken="refreshToken",B.state="state",B.nonce="nonce",B.codeVerifier="codeVerifier",B))(D||{});class Z{async setItems(Ee){await Promise.all(Object.entries(Ee).map(([ae,Se])=>this.setSessionItem(ae,Se)))}async removeItems(...Ee){await Promise.all(Ee.map(ae=>this.removeSessionItem(ae)))}}function ue(B,Ee){return Ee<=0?[]:B.match(new RegExp(`.{1,${Ee}}`,"g"))||[]}class X extends Z{constructor(){super(...arguments);Ln(this,"memCache",{})}async destroySession(){this.memCache={}}async setSessionItem(ae,Se){if(await this.removeSessionItem(ae),typeof Se=="string"){ue(Se,ye.maxLength).forEac
121h((Ye,st)=>{this.memCache[`${ye.keyPrefix}${ae}${st}`]=Ye});return}this.memCache[`${ye.keyPrefix}${String(ae)}0`]=Se}async getSessionItem(ae){if(this.memCache[`${ye.keyPrefix}${String(ae)}0`]===void 0)return null;let Se="",Ye=0,st=`${ye.keyPrefix}${String(ae)}${Ye}`;for(;this.memCache[st]!==void 0;)Se+=this.memCache[st],Ye++,st=`${ye.keyPrefix}${String(ae)}${Ye}`;return Se}async removeSessionItem(ae){for(const Se in this.memCache)Se.startsWith(`${ye.keyPrefix}${String(ae)}`)&&delete this.memCache[Se]}}class ce extends Z{constructor(){super();Ln(this,"internalItems",new Set);ye.useInsecureForRefreshToken&&console.warn("LocalStorage store should not be used in production")}async destroySession(){this.internalItems.forEach(ae=>{this.removeSessionItem(ae)})}async setSessionItem(ae,Se){if(await this.removeSessionItem(ae),this.internalItems.add(ae),typeof Se=="string"){ue(Se,ye.maxLength).forEach((Ye,st)=>{localStorage.setItem(`${ye.keyPrefix}${ae}${st}`,Ye)});return}localStorage.setItem(`${ye.keyPrefix}${ae}0`,Se)}async getSessionItem(ae){if(localStorage.getItem(`${ye.keyPrefix}${ae}0`)===null)return null;let Se="",Ye=0,st=`${ye.keyPrefix}${String(ae)}${Ye}`;for(;localStorage.getItem(st)!==null;)Se+=localStorage.getItem(st),Ye++,st=`${ye.keyPrefix}${String(ae)}${Ye}`;return Se}async removeSessionItem(ae){let Se=0;for(;localStorage.getItem(`${ye.keyPrefix}${String(ae)}${Se}`)!==null;)localStorage.removeItem(`${ye.keyPrefix}${String(ae)}${Se}`),Se++;this.internalItems.delete(ae)}}const ye={keyPrefix:"kinde-",maxLength:2e3,useInsecureForRefreshToken:!1},de=async(B=D.accessToken)=>{const Ee=Fe();if(!Ee)return null;const ae=await Ee.getSessionItem(B==="accessToken"?D.accessToken:D.idToken);if(!ae)return null;const Se=te(ae);return Se||console.warn("No decoded token found"),Se},xe=async(B="accessToken")=>de(B),Re=async(B,Ee="accessToken")=>{const ae=await xe(Ee);return ae?{name:B,value:ae[B]}:null},We=async()=>{const B=await de();return B?B.org_code||B["x-hasura-org-code"]:null},fe=async B=>{var Se;const Ee=await de();if(!Ee)return null;const ae=Ee.feature_flags||Ee["x-hasura-feature-flags"];return ae?((Se=ae[B])==null?void 0:Se.v)??null:null},Ie=async()=>{const B=await xe("idToken");if(!B)return null;const{sub:Ee}=B;return Ee?{id:B.sub,givenName:B.given_name,familyName:B.family_name,email:B.email,picture:B.picture}:(console.error("No sub in idToken"),null)},ee=async B=>{const Ee=await de();if(!Ee)return{permissionKey:B,orgCode:null,isGranted:!1};const ae=Ee.permissions||[];return{permissionKey:B,orgCode:Ee.org_code,isGranted:!!ae.includes(B)}},ve=async()=>{const B=await de();if(!B)return{orgCode:null,permissions:[]};const Ee=B.permissions||B["x-hasura-permissions"]||[];return{orgCode:B.org_code||B["x-hasura-org-code"],permissions:Ee}},_e=async()=>{const B=await de("idToken");return B?!B.org_codes&&!B["x-hasura-org-codes"]?(console.warn("Org codes not found in token, ensure org codes have been included in the token customisation within the application settings"),null):B.org_codes||B["x-hasura-org-codes"]:null},$=async()=>{const B=await de();return B?!B.roles&&!B["x-hasura-roles"]?(console.warn("No roles found in token, ensure roles have been included in the token customisation within the application settings"),[]):B.roles||B["x-hasura-roles"]:[]},re={secure:null,insecure:null},Oe=B=>{re.secure=B},Fe=()=>re.secure||null,oe=B=>{re.insecure=B},Le=()=>re.insecure||re.secure||null;var ot=(B=>(B[B.refreshToken=0]="refreshToken",B[B.cookie=1]="cookie",B))(ot||{});const et=async({domain:B,clientId:Ee,refreshType:ae=0})=>{try{if(!B)return{success:!1,error:"Domain is required for token refresh"};if(!Ee)return{success:!1,error:"Client ID is required for token refresh"};let Se="",Ye;if(ye.useInsecureForRefreshToken||!zn(B)?Ye=Le():Ye=Fe(),ae===0){if(!Ye)return{success:!1,error:"No active storage found"};if(Se=await Ye.getSessionItem(D.refreshToken),!Se)return{success:!1,error:"No refresh token found"}}I();try{const st=await fetch(`${v(B)}/oauth2/token`,{method:"POST",...ae===1&&{credentials:"include"},headers:{"Content-type":"application/x-www-form-urlencoded; charset=UTF-8"},body:new URLSearchParams({...ae===0&&{refresh_token:Se},grant_type:"refresh_token",client_id:Ee}).toString()});if(!st.ok)return{success:!1,error:"Failed to refresh token"};const tt=await st.json();if(tt.access_token){const In=Fe();return In?(R(tt.expires_in,async()=>{et({domain:B,clientId:Ee,refreshType:ae})}),Ye&&(await In.setSessionItem(D.accessToken,tt.access_token),tt.id_token&&await In.setSessionItem(D.idToken,tt.id_token),tt.refresh_token&&await Ye.setSessionItem(D.refreshToken,tt.refresh_token)),{success:!0,[D.accessToken]:tt.access_token,[D.idToken]:tt.id_token,[D.refreshToken]:tt.refresh_token}):{success:!1,error:"No active storage found"}}}catch(st){return{success:!1,error:`No access token recieved: ${st}`}}return{success:!1,error:"No access token recieved"}}catch(Se){return{success:!1,error:`Error refreshing token: ${Se.message}`}}},dt="_kbrte",ln=async({domain:B,clientId:Ee})=>
121{if(!B)return{success:!1,error:"Domain is required for authentication check"};if(!Ee)return{success:!1,error:"Client ID is required for authentication check"};const ae=zn(B),Se=ye.useInsecureForRefreshToken;let Ye=null;return ae&&!Se&&(Ye=Q(dt)),await et({domain:B,clientId:Ee,refreshType:Ye?ot.cookie:ot.refreshToken})},zn=B=>!B.match(/^(?:https?:\/\/)?[a-zA-Z0-9][.-a-zA-Z0-9]*\.kinde\.com$/i),Sn=Object.freeze(Object.defineProperty({__proto__:null,IssuerRouteTypes:l,LocalStorage:ce,MemoryStorage:X,PromptTypes:s,StorageKeys:D,base64UrlEncode:c,checkAuth:ln,clearRefreshTimer:I,exchangeAuthCode:W,frameworkSettings:L,generateAuthUrl:E,generateRandomString:d,getActiveStorage:Fe,getClaim:Re,getClaims:xe,getCurrentOrganization:We,getDecodedToken:de,getFlag:fe,getInsecureStorage:Le,getPermission:ee,getPermissions:ve,getRoles:$,getUserOrganizations:_e,getUserProfile:Ie,isCustomDomain:zn,mapLoginMethodParamsForUrl:_,refreshToken:et,sanitizeUrl:v,setActiveStorage:Oe,setInsecureStorage:oe,setRefreshTimer:R,storageSettings:ye},Symbol.toStringTag,{value:"Module"}));var dn=(B=>(B.domain="domain",B.clientId="client_id",B.audience="audience",B.redirectUri="redirect_uri",B.logoutUri="logout_uri",B))(dn||{});const At=new X,Mn=new ce;Oe(At),oe(Mn);const Mi=B=>B||window.location.origin,Dn="5.0.5",Di={version:Dn};ye.keyPrefix="";const us=()=>{window.history.replaceState({},document.title,window.location.pathname)},at={onSuccess:us},Mt=({audience:B,scope:Ee,clientId:ae,children:Se,domain:Ye,useInsecureForRefreshToken:st=!1,redirectUri:tt,callbacks:In={},logoutUri:rr,forceChildrenRender:ir=!1})=>{const jt={...at,...In};L.framework="react",L.frameworkVersion=r.version,L.sdkVersion=Di.version,ye.useInsecureForRefreshToken=st;const[cs,pn]=r.useState({user:void 0,isAuthenticated:!1,isLoading:!0}),En=r.useRef(!1);r.useEffect(()=>{At.setItems({[dn.domain]:Ye,[dn.clientId]:ae,[dn.audience]:B,[dn.redirectUri]:tt,[dn.logoutUri]:rr})},[B,Ee,ae,Ye,tt,rr]);const gi=r.useCallback(async(He={})=>{const Pt=He.state||{};He.state=void 0;const or={audience:B,clientId:ae,...He,state:c(JSON.stringify({kinde:{event:"login"},...Pt})),redirectURL:Mi(He.redirectURL||tt)},Gr=await At.getSessionItem(dn.domain),gr=await E(Gr,l.login,or);document.location=gr.url.toString()},[B,ae,tt]),Fi=r.useCallback(async(He={})=>{var Gr;const Pt=He.state||{};He.state=void 0;const or={...He,state:c(JSON.stringify({kinde:{event:"register"},...Pt})),audience:await At.getSessionItem(dn.audience),clientId:await At.getSessionItem(dn.clientId),redirectURL:Mi((He==null?void 0:He.redirectURL)||tt),prompt:s.create};try{const gr=await At.getSessionItem(dn.domain),xo=await E(gr,l.register,or);document.location=xo.url.toString()}catch(gr){console.error("Register error:",gr),(Gr=jt.onError)==null||Gr.call(jt,{error:"ERR_REGISTER",errorDescription:String(gr)},{},Vr)}},[tt]),sr=r.useCallback(async He=>{var Pt;try{const or=await At.getSessionItem(dn.domain),Gr=new URLSearchParams;He&&Gr.append("redirect",He),pn(gr=>({...gr,user:void 0,isAuthenticated:!1})),await Promise.all([At.destroySession(),Mn.destroySession()]),document.location=`${or}/logout?${Gr.toString()}`}catch(or){console.error("Logout error:",or),(Pt=jt.onError)==null||Pt.call(jt,{error:"ERR_LOGOUT",errorDescription:String(or)},{},Vr)}},[]),Vr=r.useMemo(()=>({login:gi,logout:sr,register:Fi,getIdToken:async()=>{var He;return await((He=Fe())==null?void 0:He.getSessionItem(D.idToken))},getAccessToken:async()=>{var He;return await((He=Fe())==null?void 0:He.getSessionItem(D.accessToken))},getToken:async()=>{var He;return await((He=Fe())==null?void 0:He.getSessionItem(D.accessToken))},getClaim:async He=>{const{getClaim:Pt}=await Promise.resolve().then(()=>Sn);return Pt(He)},getClaims:async(...He)=>{const{getClaims:Pt}=await Promise.resolve().then(()=>Sn);return Pt(...He)},getOrganization:async()=>{const{getCurrentOrganization:He}=await Promise.resolve().then(()=>Sn);return await He()},getCurrentOrganization:async()=>{const{getCurrentOrganization:He}=await Promise.resolve().then(()=>Sn);return await He()},getFlag:async He=>{const{getFlag:Pt}=await Promise.resolve().then(()=>Sn);return await Pt(He)},getUserProfile:async()=>{const{getUserProfile:He}=await Promise.resolve().then(()=>Sn);return He()},getPermission:async He=>{const{getPermission:Pt}=await Promise.resolve().then(()=>Sn);return await Pt(He)},getPermissions:async()=>{const{getPermissions:He}=await Promise.resolve().then(()=>Sn);return He()},getUserOrganizations:async()=>{const{getUserOrganizations:He}=await Promise.resolve().then(()=>Sn);return await He()},getRoles:async()=>{const{getRoles:He}=await Promise.resolve().then(()=>Sn);return await He()},refreshToken:async(...He)=>{const{refreshToken:Pt}=await Promise.resolve().then(()=>Sn);return await Pt(...He)},...cs}),[cs,gi,sr,Fi]),Ca=r.useCallback(async()=>{var xo,xa,ba,Hl;if(En.current)return;await ln({domain:Ye,clientId:ae}),En.current=!0;
121const He=new URLSearchParams(window.location.search);let Pt,or;if(He.has("code")){const hn=atob(He.get("state")||"");try{Pt=JSON.parse(hn),or=Object.assign(Pt.kinde||{event:s.login})}catch(yr){console.error("Error parsing state:",yr),(xo=jt.onError)==null||xo.call(jt,{error:"ERR_STATE_PARSE",errorDescription:String(yr)},{},Vr),Pt={},or={event:"login"}}finally{pn(yr=>({...yr,isLoading:!1}))}}else{try{const hn=await Ie();hn&&pn(yr=>({...yr,user:hn,isAuthenticated:!0}))}catch(hn){console.warn("Error getting user profile",hn)}finally{pn(hn=>({...hn,isLoading:!1}))}return}const Gr=await At.getSessionItem(dn.redirectUri),gr=await W({urlParams:new URLSearchParams(window.location.search),domain:Ye,clientId:ae,redirectURL:Mi(Gr||tt),autoRefresh:!0});if(gr.success){const hn=await Ie();hn&&(pn(yr=>({...yr,user:hn,isAuthenticated:!0})),(xa=jt.onSuccess)==null||xa.call(jt,hn,{...Pt,kinde:void 0},Vr),(ba=jt.onEvent)==null||ba.call(jt,or.event,{...Pt,kinde:void 0},Vr))}else(Hl=jt.onError)==null||Hl.call(jt,{error:"ERR_CODE_EXCHANGE",errorDescription:gr.error},Pt,Vr);pn(hn=>({...hn,isLoading:!1}))},[ae,Ye,tt,jt,Vr]);return r.useEffect(()=>{const He={current:!0};return He.current&&Ca(),()=>{He.current=!1}},[Ca]),ir||En.current?n.jsx(t.KindeContext.Provider,{value:Vr,children:Se}):n.jsx(n.Fragment,{})};e.KindeContext=t.KindeContext,e.useKindeAuth=t.useKindeAuth,e.KindeProvider=Mt}(wv)),wv}var U_=tA();const BS=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zS=s5,fm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return zS(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:l}=t,c=Object.keys(s).map(g=>{const v=n==null?void 0:n[g],_=l==null?void 0:l[g];if(v===null)return null;const E=BS(v)||BS(_);return s[g][E]}),d=n&&Object.entries(n).reduce((g,v)=>{let[_,E]=v;return E===void 0||(g[_]=E),g},{}),p=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((g,v)=>{let{class:_,className:E,...x}=v;return Object.entries(x).every(b=>{let[R,I]=b;return Array.isArray(I)?I.includes({...l,...d}[R]):{...l,...d}[R]===I})?[...g,_,E]:g},[]);return zS(e,c,p,n==null?void 0:n.class,n==null?void 0:n.className)},H_="-",nA=e=>{const t=iA(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{const d=c.split(H_);return d[0]===""&&d.length!==1&&d.shift(),q5(d,t)||rA(c)},getConflictingClassGroupIds:(c,d)=>{const p=n[c]||[];return d&&r[c]?[...p,...r[c]]:p}}},q5=(e,t)=>{var c;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?q5(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const l=e.join(H_);return(c=t.validators.find(({validator:d})=>d(l)))==null?void 0:c.classGroupId},WS=/^\[(.+)\]$/,rA=e=>{if(WS.test(e)){const t=WS.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},iA=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const s in n)I2(n[s],r,s,t);return r},I2=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const l=s===""?t:qS(t,s);l.classGroupId=n;return}if(typeof s=="function"){if(sA(s)){I2(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([l,c])=>{I2(c,qS(t,l),n,r)})})},qS=(e,t)=>{let n=e;return t.split(H_).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},sA=e=>e.isThemeGetter,oA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(l,c)=>{n.set(l,c),t++,t>e&&(t=0,r=n,n=new Map)};return{get(l){let c=n.get(l);if(c!==void 0)return c;if((c=r.get(l))!==void 0)return s(l,c),c},set(l,c){n.has(l)?n.set(l,c):s(l,c)}}},O2="!",A2=":",aA=A2.length,lA=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const l=[];let c=0,d=0,p=0,g;for(let b=0;b<s.length;b++){let R=s[b];if(c===0&&d===0){if(R===A2){l.push(s.slice(p,b)),p=b+aA;continue}if(R==="/"){g=b;continue}}R==="["?c++:R==="]"?c--:R==="("?d++:R===")"&&d--}const v=l.length===0?s:s.substring(p),_=uA(v),E=_!==v,x=g&&g>p?g-p:void 0;return{modifiers:l,hasImportantModifier:E,baseClassName:_,maybePostfixModifierPosition:x}};if(t){const s=t+A2,l=r;r=c=>c.startsWith(s)?l(c.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(n){const s=r;r=l=>n({className:l,parseClassName:s})}return r},uA=e=>e.endsWith(O2)?e.substring(0,e.length-1):e.startsWith(O2)?e.substring(1):e,cA=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const s=[];let l=[];return r.forEach(c=>{c[0]==="["||t[c]?(s.push(...l.sort(),c),l=[]):l.push(c)}),s.push(...l.sort()),s}},fA=e=>({cache:oA(e.cacheSize),parseClassName:lA(e),sortModifiers:cA(e),...nA(e)}),dA=/\s+/,pA=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:l}=t,c=[],d=e.trim().split(dA);let p="";for(let g=d.length-1;g>=0;g-=1){const v=d[g],{isExternal:_,modifiers:E,hasImportantModifier:x,baseClassName:b,maybePostfixModifierPosition:R}=n(v);if(_){p=v+(p.length>0?" "+p:p);continue}let I=!!R,L=r(I?b.substring(0,R):b);if(!L){if(!I){p=v+(p.length>0?" "+p:p);continue}if(L=r(b),!L){p=v+(p.length>0?" "+p:p);continue}I=!1}const H=l(E).join(":"),W=x?H+O2:H,Q=W+L;if(c.includes(Q))continue;
vendor: 9,785 bytes, line 121
121c.push(Q);const te=s(L,I);for(let D=0;D<te.length;++D){const Z=te[D];c.push(W+Z)}p=v+(p.length>0?" "+p:p)}return p};function hA(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=V5(t))&&(r&&(r+=" "),r+=n);return r}const V5=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=V5(e[r]))&&(n&&(n+=" "),n+=t);return n};function mA(e,...t){let n,r,s,l=c;function c(p){const g=t.reduce((v,_)=>_(v),e());return n=fA(g),r=n.cache.get,s=n.cache.set,l=d,d(p)}function d(p){const g=r(p);if(g)return g;const v=pA(p,n);return s(p,v),v}return function(){return l(hA.apply(null,arguments))}}const Zn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},G5=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,K5=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gA=/^\d+\/\d+$/,yA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vA=/\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$/,_A=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,SA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gf=e=>gA.test(e),St=e=>!!e&&!Number.isNaN(Number(e)),Du=e=>!!e&&Number.isInteger(Number(e)),VS=e=>e.endsWith("%")&&St(e.slice(0,-1)),ul=e=>yA.test(e),EA=()=>!0,CA=e=>vA.test(e)&&!_A.test(e),B_=()=>!1,xA=e=>wA.test(e),bA=e=>SA.test(e),TA=e=>!$e(e)&&!je(e),kA=e=>jd(e,X5,B_),$e=e=>G5.test(e),Fu=e=>jd(e,J5,CA),Sv=e=>jd(e,$A,St),RA=e=>jd(e,Y5,B_),IA=e=>jd(e,Q5,bA),OA=e=>jd(e,B_,xA),je=e=>K5.test(e),og=e=>Ud(e,J5),AA=e=>Ud(e,jA),PA=e=>Ud(e,Y5),LA=e=>Ud(e,X5),NA=e=>Ud(e,Q5),MA=e=>Ud(e,UA,!0),jd=(e,t,n)=>{const r=G5.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ud=(e,t,n=!1)=>{const r=K5.exec(e);return r?r[1]?t(r[1]):n:!1},Y5=e=>e==="position",DA=new Set(["image","url"]),Q5=e=>DA.has(e),FA=new Set(["length","size","percentage"]),X5=e=>FA.has(e),J5=e=>e==="length",$A=e=>e==="number",jA=e=>e==="family-name",UA=e=>e==="shadow",HA=()=>{const e=Zn("color"),t=Zn("font"),n=Zn("text"),r=Zn("font-weight"),s=Zn("tracking"),l=Zn("leading"),c=Zn("breakpoint"),d=Zn("container"),p=Zn("spacing"),g=Zn("radius"),v=Zn("shadow"),_=Zn("inset-shadow"),E=Zn("drop-shadow"),x=Zn("blur"),b=Zn("perspective"),R=Zn("aspect"),I=Zn("ease"),L=Zn("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["auto","hidden","clip","visible","scroll"],te=()=>["auto","contain","none"],D=()=>[je,$e,p],Z=()=>[Gf,"full","auto",...D()],ue=()=>[Du,"none","subgrid",je,$e],X=()=>["auto",{span:["full",Du,je,$e]},je,$e],ce=()=>[Du,"auto",je,$e],ye=()=>["auto","min","max","fr",je,$e],de=()=>["start","end","center","between","around","evenly","stretch","baseline"],xe=()=>["start","end","center","stretch"],Re=()=>["auto",...D()],We=()=>[Gf,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],fe=()=>[e,je,$e],Ie=()=>[VS,Fu],ee=()=>["","none","full",g,je,$e],ve=()=>["",St,og,Fu],_e=()=>["solid","dashed","dotted","double"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["","none",x,je,$e],Oe=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",je,$e],Fe=()=>["none",St,je,$e],oe=()=>["none",St,je,$e],Le=()=>[St,je,$e],ot=()=>[Gf,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ul],breakpoint:[ul],color:[EA],container:[ul],"drop-shadow":[ul],ease:["in","out","in-out"],font:[TA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ul],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ul],shadow:[ul],spacing:["px",St],text:[ul],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Gf,$e,je,R]}],container:["container"],columns:[{columns:[St,$e,je,d]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"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:[...W(),$e,je]}],overflow:[{overflow:Q()}],"overflow-x":[{"overflow-x":Q()}],"overflow-y":[{"overflow-y":Q()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{start:Z()}],end:[{end:Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Du,"auto",je,$e]}],basis:[{basis:[Gf,"full","auto",d,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[St,Gf,"auto","initial","none",$e]}],grow:[{grow:["",St,je,$e]}],shrink:[{shrink:["",St,je,$e]}],order:[{order:[Du,"first","last","none",je,$e]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ye()}],"auto-rows":[{"auto-rows":ye()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...xe(),"normal"]}],"justify-self":[{"justify-self":["auto",...xe()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...xe(),"baseline"]}],"align-self":[{self:["auto",...xe(),"baseline"]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...xe(),"baseline"]}],"place-self":[{"place-self":["auto",...xe()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:Re()}],mx:[{mx:Re()}],my:[{my:Re()}],ms:[{ms:Re()}],me:[{me:Re()}],mt:[{mt:Re()}],mr:[{mr:Re()}],mb:[{mb:Re()}],ml:[{ml:Re()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:We()}],w:[{w:[d,"screen",...We()]}],"min-w":[{"min-w":[d,"screen","none",...We()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...We()]}],h:[{h:["screen",...We()]}],"min-h":[{"min-h":["screen","none",...We()]}],"max-h":[{"max-h":["screen",...We()]}],"font-size":[{text:["base",n,og,Fu]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,je,Sv]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",VS,$e]}],"font-family":[{font:[AA,$e,t]}],"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,je,$e]}],"line-clamp":[{"line-clamp":[St,"none",je,Sv]}],leading:[{leading:[l,...D()]}],"list-image":[{"list-image":["none",je,$e]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",je,$e]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:fe()}],"text-color":[{text:fe()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:[St,"from-font","auto",je,Fu]}],"text-decoration-color":[{decoration:fe()}],"underline-offset":[{"underline-offset":[St,"auto",je,$e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",je,$e]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",je,$e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),PA,RA]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",LA,kA]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Du,je,$e],radial:["",je,$e],conic:[Du,je,$e]},NA,IA]}],"bg-color":[{bg:fe()}],"gradient-from-pos":[{from:Ie()}
vendor: 4,572 bytes, line 121
121],"gradient-via-pos":[{via:Ie()}],"gradient-to-pos":[{to:Ie()}],"gradient-from":[{from:fe()}],"gradient-via":[{via:fe()}],"gradient-to":[{to:fe()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:ve()}],"border-w-x":[{"border-x":ve()}],"border-w-y":[{"border-y":ve()}],"border-w-s":[{"border-s":ve()}],"border-w-e":[{"border-e":ve()}],"border-w-t":[{"border-t":ve()}],"border-w-r":[{"border-r":ve()}],"border-w-b":[{"border-b":ve()}],"border-w-l":[{"border-l":ve()}],"divide-x":[{"divide-x":ve()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ve()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._e(),"hidden","none"]}],"divide-style":[{divide:[..._e(),"hidden","none"]}],"border-color":[{border:fe()}],"border-color-x":[{"border-x":fe()}],"border-color-y":[{"border-y":fe()}],"border-color-s":[{"border-s":fe()}],"border-color-e":[{"border-e":fe()}],"border-color-t":[{"border-t":fe()}],"border-color-r":[{"border-r":fe()}],"border-color-b":[{"border-b":fe()}],"border-color-l":[{"border-l":fe()}],"divide-color":[{divide:fe()}],"outline-style":[{outline:[..._e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[St,je,$e]}],"outline-w":[{outline:["",St,og,Fu]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",v,MA,OA]}],"shadow-color":[{shadow:fe()}],"inset-shadow":[{"inset-shadow":["none",je,$e,_]}],"inset-shadow-color":[{"inset-shadow":fe()}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:fe()}],"ring-offset-w":[{"ring-offset":[St,Fu]}],"ring-offset-color":[{"ring-offset":fe()}],"inset-ring-w":[{"inset-ring":ve()}],"inset-ring-color":[{"inset-ring":fe()}],opacity:[{opacity:[St,je,$e]}],"mix-blend":[{"mix-blend":[...$(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none",je,$e]}],blur:[{blur:re()}],brightness:[{brightness:[St,je,$e]}],contrast:[{contrast:[St,je,$e]}],"drop-shadow":[{"drop-shadow":["","none",E,je,$e]}],grayscale:[{grayscale:["",St,je,$e]}],"hue-rotate":[{"hue-rotate":[St,je,$e]}],invert:[{invert:["",St,je,$e]}],saturate:[{saturate:[St,je,$e]}],sepia:[{sepia:["",St,je,$e]}],"backdrop-filter":[{"backdrop-filter":["","none",je,$e]}],"backdrop-blur":[{"backdrop-blur":re()}],"backdrop-brightness":[{"backdrop-brightness":[St,je,$e]}],"backdrop-contrast":[{"backdrop-contrast":[St,je,$e]}],"backdrop-grayscale":[{"backdrop-grayscale":["",St,je,$e]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[St,je,$e]}],"backdrop-invert":[{"backdrop-invert":["",St,je,$e]}],"backdrop-opacity":[{"backdrop-opacity":[St,je,$e]}],"backdrop-saturate":[{"backdrop-saturate":[St,je,$e]}],"backdrop-sepia":[{"backdrop-sepia":["",St,je,$e]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",je,$e]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[St,"initial",je,$e]}],ease:[{ease:["linear","initial",I,je,$e]}],delay:[{delay:[St,je,$e]}],animate:[{animate:["none",L,je,$e]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,je,$e]}],"perspective-origin":[{"perspective-origin":Oe()}],rotate:[{rotate:Fe()}],"rotate-x":[{"rotate-x":Fe()}],"rotate-y":[{"rotate-y":Fe()}],"rotate-z":[{"rotate-z":Fe()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:Le()}],"skew-x":[{"skew-x":Le()}],"skew-y":[{"skew-y":Le()}],transform:[{transform:[je,$e,"","none","gpu","cpu"]}],"transform-origin":[{origin:Oe()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ot()}],"translate-x":[{"translate-x":ot()}],"translate-y":[{"translate-y":ot()}],"translate-z":[{"translate-z":ot()}],"translate-none":["translate-none"],accent:[{accent:fe()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:fe()}
vendor: 4,460 bytes, line 121
121],"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",je,$e]}],"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":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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",je,$e]}],fill:[{fill:["none",...fe()]}],"stroke-w":[{stroke:[St,og,Fu,Sv]}],stroke:[{stroke:["none",...fe()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],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:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},BA=mA(HA);function ca(...e){return BA(s5(e))}async function PW(){try{return await fetch("https://script.tapfili
121ate.com/tapfiliate.js",{method:"HEAD",mode:"no-cors"}),!0}catch{return!1}}const zA=fm("animate-spin",{variants:{size:{xs:"h-4 w-4",sm:"h-5 w-5",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},defaultVariants:{size:"md"}}),Z5=({size:e,className:t})=>P.jsxs("svg",{className:ca(zA({size:e}),t),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[P.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),P.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),WA=fm("",{variants:{intent:{brand:"hover:bg-m-pink-800/36 hover:text-m-pink-300 bg-m-pink-800/20 text-m-pink-700 border border-m-pink-400/16 hover:border-m-pink-400/32 font-medium px-4 disabled:bg-m-gray-800",primary:"hover:bg-m-pink-700 bg-m-pink-900 text-white font-medium px-4 disabled:bg-m-gray-800  disabled:text-m-gray-650 ",secondary:"bg-m-gray-800 text-m-gray-350 font-medium px-4 disabled:text-m-gray-650 hover:bg-m-gray-700 disabled:bg-m-gray-800",tertiary:"text-m-gray-300 font-regular",confirmation:"hover:bg-m-green-600 bg-m-green-700 text-white font-medium px-4 disabled:bg-m-gray-800  disabled:text-m-gray-650 ",destructive:"hover:bg-m-red-600 bg-m-red-700 text-white font-medium px-4 disabled:bg-m-gray-800  disabled:text-m-gray-650 "}},defaultVariants:{intent:"primary"}}),GS=fm("flex-shrink-0",{variants:{size:{md:"h-5 w-5",mdh:"h-5",lg:"h-6 w-6",lgh:"h-6",xl:"h-8 w-8",xlh:"h-8"}},defaultVariants:{size:"md"}}),wd=C.forwardRef(({label:e,loading:t=!1,intent:n,iconSize:r,className:s,disabled:l,leadingIcon:c,trailingIcon:d,...p},g)=>P.jsxs("button",{className:ca("text-md disabled:text-m-gray-650 flex cursor-pointer items-center justify-center gap-x-1 rounded-lg py-3 whitespace-nowrap disabled:cursor-not-allowed",WA({intent:n}),s),ref:g,disabled:l||t,...p,children:[t&&P.jsx(Z5,{size:"xs"}),c&&P.jsx(c,{className:GS({size:r})}),e,d&&P.jsx(d,{className:GS({size:r})})]})),qA=e=>C.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M8.00065 5.33325V7.99992M8.00065 10.6666H8.00732M14.6673 7.99992C14.6673 11.6818 11.6826 14.6666 8.00065 14.6666C4.31875 14.6666 1.33398 11.6818 1.33398 7.99992C1.33398 4.31802 4.31875 1.33325 8.00065 1.33325C11.6826 1.33325 14.6673 4.31802 14.6673 7.99992Z",stroke:"currentColor",strokeWidth:1.33333,strokeLinecap:"round",strokeLinejoin:"round"})),VA=C.forwardRef(({hint:e,error:t,leftAddon:n,className:r,...s},l)=>P.jsxs("div",{children:[P.jsxs("div",{className:"relative",children:[n&&P.jsx("div",{className:"pointer-events-auto absolute inset-y-0 left-0 flex items-center",children:n}),P.jsx("input",{ref:l,className:ca("bg-m-gray-950 text-md placeholder-m-gray-600 border-m-gray-650 block w-full rounded-lg border px-3 py-2 font-extralight text-white focus:ring-0 focus:outline-none","autofill:shadow-[inset_0_0_0px_1000px_theme(colors.m-gray-950)] autofill:[-webkit-text-fill-color:white]",{"border-red-500 pr-10":t,"focus:border-m-gray-400":!t,"pl-10":n},r),...s}),t&&P.jsx("div",{className:"text-m-red-500 pointer-events-none absolute inset-y-0 right-3 flex items-center",children:P.jsx(qA,{className:"h-[18px] w-[18px]"})})]}),e&&!t&&P.jsx("div",{className:"text-m-gray-500 mt-1 text-sm font-light",children:e}),t&&P.jsx("p",{className:"text-m-red-500 mt-1 text-sm",children:t.message})]})),z_="post_login_action";var ex=(e=>(e.CREATE_CONVERSATION="create_conversation",e))(ex||{});const GA=()=>{const e=localStorage.getItem(z_);return e?JSON.parse(e):null},KA=e=>{localStorage.setItem(z_,JSON.stringify(e))},YA=()=>{localStorage.removeItem(z_)},QA=({open:e,onClose:t,postLoginAction:n})=>{const{register:r}=U_.useKindeAuth(),[s,l]=C.useState(""),[c,d]=C.useState(!1),[p,g]=C.useState(!1),v=async E=>{E.preventDefault(),d(!0),n&&KA(n),await r({loginHint:s,connectionId:Ls.kindeEmailCodeConnectionId})},_=()=>{l(""),d(!1),g(!1),t()};return P.jsxs(Il,{open:e,onClose:_,className:"relative z-[9999]",children:[P.jsx("div",{className:"bg-opacity-40 fixed inset-0 backdrop-blur-xs","aria-hidden":"true"}),P.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:P.jsxs(Il.Panel,{className:"bg-m-gray-900 border-m-gray-700 mx-auto flex max-h-full w-md flex-col items-center overflow-y-auto rounded-xl border p-6",children:[P.jsx("div",{className:"flex w-full justify-end",children:P.jsx("button",{onClick:_,className:"cursor-pointer text-white",children:P.jsx(Dd,{size:24})})}),P.jsx(W5,{className:"h-14 w-14 flex-shrink-0"}),P.jsx("div",{className:"py-5 text-3xl font-medium text-white",children:"Sign in"}),P.jsx("span",{className:"text-m-gray-500 text-md pb-8 text-center font-light",children:"Enter your email and we'll send a code to your inbox. No passwords needed."}),P.jsxs("form",{className:"flex w-full flex-col gap-y-2",onSubmit:v,children:[P.jsx(VA,{type:"email",name:"email",autoComplete:"email",placeholder:"Enter your email",value:s,onChange:E=>{l(E.target.value)}}),P.jsx(wd,{type:"submit",label:"Continue",className:"w-full",loading:c,disabled:!p}),P.jsxs("div",{className:"mt-2 flex flex-row items-center justify-center",children:[P.jsx(kI,{checked:p,onChange:g,className:`mr-2 flex h-5 w-5 cursor-pointer items-center justify-center rounded focus:outline-none ${p?"bg-m-pink-900":"border border-gray-600"}`,children:p&&P.jsx(Vg,{size:16,className:"text-white"})}),P.jsx("label",{className:"text-m-gray-400 cursor-pointer text-sm",onClick:()=>g(!p),children:"I confirm that I am 18 years old or older."})]})]})]})})]})};var kh={exports:{}};/**
122 * @license
123 * Lodash <https://lodash.com/>
124 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
125 * Released under MIT license <https://lodash.com/license>
126 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
127 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
128 */var XA=kh.exports,KS;function JA(){return KS||(KS=1,function(e,t){(function(){var n,r="4.17.21",s=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",d="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",g=500,v="__lodash_placeholder__",_=1,E=2,x=4,b=1,R=2,I=1,L=2,H=4,W=8,Q=16,te=32,D=64,Z=128,ue=256,X=512,ce=30,ye="...",de=800,xe=16,Re=1,We=2,fe=3,Ie=1/0,ee=9007199254740991,ve=17976931348623157e292,_e=NaN,$=4294967295,re=$-1,Oe=$>>>1,Fe=[["ary",Z],["bind",I],["bindKey",L],["curry",W],["curryRight",Q],["flip",X],["partial",te],["partialRight",D],["rearg",ue]],oe="[object Arguments]",Le="[object Array]",ot="[object AsyncFunction]",et="[object Boolean]",dt="[object Date]",ln="[object DOMException]",zn="[object Error]",Sn="[object Function]",dn="[object GeneratorFunction]",At="[object Map]",Mn="[object Number]",Mi="[object Null]",Dn="[object Object]",Di="[object Promise]",us="[object Proxy]",at="[object RegExp]",Mt="[object Set]",B="[object String]",Ee="[object Symbol]",ae="[object Undefined]",Se="[object WeakMap]",Ye="[object WeakSet]",st="[object ArrayBuffer]",tt="[object DataView]",In="[object Float32Array]",rr="[object Float64Array]",ir="[object Int8Array]",jt="[object Int16Array]",cs="[object Int32Array]",pn="[object Uint8Array]",En="[object Uint8ClampedArray]",gi="[object Uint16Array]",Fi="[object Uint32Array]",sr=/\b__p \+= '';/g,Vr=/\b(__p \+=) '' \+/g,Ca=/(__e\(.*?\)|\b__t\)) \+\n'';/g,He=/&(?:amp|lt|gt|quot|#39);/g,Pt=/[&<>"']/g,or=RegExp(He.source),Gr=RegExp(Pt.source),gr=/<%-([\s\S]+?)%>/g,xo=/<%([\s\S]+?)%>/g,xa=/<%=([\s\S]+?)%>/g,ba=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hl=/^\w*$/,hn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yr=/[\\^$.*+?()[\]{}|]/g,Bl=RegExp(yr.source),Kd=/^\s+/,zl=/\s/,Sc=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ec=/\{\n\/\* \[wrapped with (.+)\] \*/,Yd=/,? & /,ey=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ty=/[()=,{}\[\]\/\s]/,ny=/\\(\\)?/g,bo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qd=/\w*$/,bm=/^[-+]0x[0-9a-f]+$/i,ry=/^0b[01]+$/i,Tm=/^\[object .+?Constructor\]$/,km=/^0o[0-7]+$/i,Rm=/^(?:0|[1-9]\d*)$/,Im=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,131 bytes, line 128
1287f]/g,Cc=/($^)/,iy=/['\n\r\u2028\u2029\\]/g,Xt="\\ud800-\\udfff",sy="\\u0300-\\u036f",Xd="\\ufe20-\\ufe2f",Om="\\u20d0-\\u20ff",Wl=sy+Xd+Om,Am="\\u2700-\\u27bf",Jd="a-z\\xdf-\\xf6\\xf8-\\xff",xc="\\xac\\xb1\\xd7\\xf7",$i="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",oy="\\u2000-\\u206f",yi=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pm="A-Z\\xc0-\\xd6\\xd8-\\xde",Lm="\\ufe0e\\ufe0f",Nm=xc+$i+oy+yi,Ta="['’]",bc="["+Xt+"]",ka="["+Nm+"]",To="["+Wl+"]",Mm="\\d+",ay="["+Am+"]",Tc="["+Jd+"]",Zd="[^"+Xt+Nm+Mm+Am+Jd+Pm+"]",ql="\\ud83c[\\udffb-\\udfff]",Vl="(?:"+To+"|"+ql+")",Dm="[^"+Xt+"]",Gl="(?:\\ud83c[\\udde6-\\uddff]){2}",Lt="[\\ud800-\\udbff][\\udc00-\\udfff]",ko="["+Pm+"]",ep="\\u200d",kc="(?:"+Tc+"|"+Zd+")",Fm="(?:"+ko+"|"+Zd+")",tp="(?:"+Ta+"(?:d|ll|m|re|s|t|ve))?",np="(?:"+Ta+"(?:D|LL|M|RE|S|T|VE))?",Rc=Vl+"?",Kl="["+Lm+"]?",Hs="(?:"+ep+"(?:"+[Dm,Gl,Lt].join("|")+")"+Kl+Rc+")*",Bs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ra=Kl+Rc+Hs,Yl="(?:"+[ay,Gl,Lt].join("|")+")"+Ra,Ws="(?:"+[Dm+To+"?",To,Gl,Lt,bc].join("|")+")",ly=RegExp(Ta,"g"),$m=RegExp(To,"g"),Ro=RegExp(ql+"(?="+ql+")|"+Ws+Ra,"g"),uy=RegExp([ko+"?"+Tc+"+"+tp+"(?="+[ka,ko,"$"].join("|")+")",Fm+"+"+np+"(?="+[ka,ko+kc,"$"].join("|")+")",ko+"?"+kc+"+"+tp,ko+"+"+np,zs,Bs,Mm,Yl].join("|"),"g"),jm=RegExp("["+ep+Xt+Wl+Lm+"]"),Ic=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Um=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],cy=-1,$t={};$t[In]=$t[rr]=$t[ir]=$t[jt]=$t[cs]=$t[pn]=$t[En]=$t[gi]=$t[Fi]=!0,$t[oe]=$t[Le]=$t[st]=$t[et]=$t[tt]=$t[dt]=$t[zn]=$t[Sn]=$t[At]=$t[Mn]=$t[Dn]=$t[at]=$t[Mt]=$t[B]=$t[Se]=!1;var Dt={};Dt[oe]=Dt[Le]=Dt[st]=Dt[tt]=Dt[et]=Dt[dt]=Dt[In]=Dt[rr]=Dt[ir]=Dt[jt]=Dt[cs]=Dt[At]=Dt[Mn]=Dt[Dn]=Dt[at]=Dt[Mt]=Dt[B]=Dt[Ee]=Dt[pn]=Dt[En]=Dt[gi]=Dt[Fi]=!0,Dt[zn]=Dt[Sn]=Dt[Se]=!1;var Ia={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Oc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fy={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},dy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rp=parseFloat,Ac=parseInt,Pc=typeof eg=="object"&&eg&&eg.Object===Object&&eg,Hm=typeof self=="object"&&self&&self.Object===Object&&self,Jt=Pc||Hm||Function("return this")(),Ql=t&&!t.nodeType&&t,ji=Ql&&!0&&e&&!e.nodeType&&e,ip=ji&&ji.exports===Ql,Oa=ip&&Pc.process,ar=function(){try{var q=ji&&ji.require&&ji.require("util").t
vendor: 10,993 bytes, line 128
128ypes;return q||Oa&&Oa.binding&&Oa.binding("util")}catch{}}(),sp=ar&&ar.isArrayBuffer,vr=ar&&ar.isDate,Io=ar&&ar.isMap,Lc=ar&&ar.isRegExp,Aa=ar&&ar.isSet,Bm=ar&&ar.isTypedArray;function lr(q,ie,Y){switch(Y.length){case 0:return q.call(ie);case 1:return q.call(ie,Y[0]);case 2:return q.call(ie,Y[0],Y[1]);case 3:return q.call(ie,Y[0],Y[1],Y[2])}return q.apply(ie,Y)}function op(q,ie,Y,Te){for(var nt=-1,kt=q==null?0:q.length;++nt<kt;){var mn=q[nt];ie(Te,mn,Y(mn),q)}return Te}function Wn(q,ie){for(var Y=-1,Te=q==null?0:q.length;++Y<Te&&ie(q[Y],Y,q)!==!1;);return q}function Nc(q,ie){for(var Y=q==null?0:q.length;Y--&&ie(q[Y],Y,q)!==!1;);return q}function ap(q,ie){for(var Y=-1,Te=q==null?0:q.length;++Y<Te;)if(!ie(q[Y],Y,q))return!1;return!0}function qs(q,ie){for(var Y=-1,Te=q==null?0:q.length,nt=0,kt=[];++Y<Te;){var mn=q[Y];ie(mn,Y,q)&&(kt[nt++]=mn)}return kt}function Mc(q,ie){var Y=q==null?0:q.length;return!!Y&&Pa(q,ie,0)>-1}function lp(q,ie,Y){for(var Te=-1,nt=q==null?0:q.length;++Te<nt;)if(Y(ie,q[Te]))return!0;return!1}function Wt(q,ie){for(var Y=-1,Te=q==null?0:q.length,nt=Array(Te);++Y<Te;)nt[Y]=ie(q[Y],Y,q);return nt}function Vs(q,ie){for(var Y=-1,Te=ie.length,nt=q.length;++Y<Te;)q[nt+Y]=ie[Y];return q}function up(q,ie,Y,Te){var nt=-1,kt=q==null?0:q.length;for(Te&&kt&&(Y=q[++nt]);++nt<kt;)Y=ie(Y,q[nt],nt,q);return Y}function py(q,ie,Y,Te){var nt=q==null?0:q.length;for(Te&&nt&&(Y=q[--nt]);nt--;)Y=ie(Y,q[nt],nt,q);return Y}function cp(q,ie){for(var Y=-1,Te=q==null?0:q.length;++Y<Te;)if(ie(q[Y],Y,q))return!0;return!1}var hy=dp("length");function zm(q){return q.split("")}function my(q){return q.match(ey)||[]}function Wm(q,ie,Y){var Te;return Y(q,function(nt,kt,mn){if(ie(nt,kt,mn))return Te=kt,!1}),Te}function Dc(q,ie,Y,Te){for(var nt=q.length,kt=Y+(Te?1:-1);Te?kt--:++kt<nt;)if(ie(q[kt],kt,q))return kt;return-1}function Pa(q,ie,Y){return ie===ie?jc(q,ie,Y):Dc(q,qm,Y)}function fp(q,ie,Y,Te){for(var nt=Y-1,kt=q.length;++nt<kt;)if(Te(q[nt],ie))return nt;return-1}function qm(q){return q!==q}function Vm(q,ie){var Y=q==null?0:q.length;return Y?pp(q,ie)/Y:_e}function dp(q){return function(ie){return ie==null?n:ie[q]}}function Fc(q){return function(ie){return q==null?n:q[ie]}}function Gm(q,ie,Y,Te,nt){return nt(q,function(kt,mn,Ut){Y=Te?(Te=!1,kt):ie(Y,kt,mn,Ut)}),Y}function gy(q,ie){var Y=q.length;for(q.sort(ie);Y--;)q[Y]=q[Y].value;return q}function pp(q,ie){for(var Y,Te=-1,nt=q.length;++Te<nt;){var kt=ie(q[Te]);kt!==n&&(Y=Y===n?kt:Y+kt)}return Y}function hp(q,ie){for(var Y=-1,Te=Array(q);++Y<q;)Te[Y]=ie(Y);return Te}function yy(q,ie){return Wt(ie,function(Y){return[Y,q[Y]]})}function Km(q){return q&&q.slice(0,Uc(q)+1).replace(Kd,"")}function Ar(q){return function(ie){return q(ie)}}function Xl(q,ie){return Wt(ie,function(Y){return q[Y]})}function fs(q,ie){return q.has(ie)}function Ym(q,ie){for(var Y=-1,Te=q.length;++Y<Te&&Pa(ie,q[Y],0)>-1;);return Y}function mp(q,ie){for(var Y=q.length;Y--&&Pa(ie,q[Y],0)>-1;);return Y}function Qm(q,ie){for(var Y=q.length,Te=0;Y--;)q[Y]===ie&&++Te;return Te}var Xm=Fc(Ia),Jm=Fc(Oc);function Zm(q){return"\\"+dy[q]}function La(q,ie){return q==null?n:q[ie]}function Na(q){return jm.test(q)}function vy(q){return Ic.test(q)}function _y(q){for(var ie,Y=[];!(ie=q.next()).done;)Y.push(ie.value);return Y}function $c(q){var ie=-1,Y=Array(q.size);return q.forEach(function(Te,nt){Y[++ie]=[nt,Te]}),Y}function gp(q,ie){return function(Y){return q(ie(Y))}}function Kr(q,ie){for(var Y=-1,Te=q.length,nt=0,kt=[];++Y<Te;){var mn=q[Y];(mn===ie||mn===v)&&(q[Y]=v,kt[nt++]=Y)}return kt}function Gs(q){var ie=-1,Y=Array(q.size);return q.forEach(function(Te){Y[++ie]=Te}),Y}function wy(q){var ie=-1,Y=Array(q.size);return q.forEach(function(Te){Y[++ie]=[Te,Te]}),Y}function jc(q,ie,Y){for(var Te=Y-1,nt=q.length;++Te<nt;)if(q[Te]===ie)return Te;return-1}function Sy(q,ie,Y){for(var Te=Y+1;Te--;)if(q[Te]===ie)return Te;return Te}function Oo(q){return Na(q)?t1(q):hy(q)}function Pr(q){return Na(q)?n1(q):zm(q)}function Uc(q){for(var ie=q.length;ie--&&zl.test(q.charAt(ie)););return ie}var e1=Fc(fy);function t1(q){for(var ie=Ro.lastIndex=0;Ro.test(q);)++ie;return ie}function n1(q){return q.match(Ro)||[]}function Ey(q){return q.match(uy)||[]}var Cy=function q(ie){ie=ie==null?Jt:Ma.defaults(Jt.Object(),ie,Ma.pick(Jt,Um));var Y=ie.Array,Te=ie.Date,nt=ie.Error,kt=ie.Function,mn=ie.Math,Ut=ie.Object,Jl=ie.RegExp,xy=ie.String,Yr=ie.TypeError,ds=Y.prototype,yp=kt.prototype,Ui=Ut.prototype,Da=ie["__core-js_shared__"],Zl=yp.toString,Rt=Ui.hasOwnProperty,Fa=0,Hc=function(){var a=/[^.]+$/.exec(Da&&Da.keys&&Da.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),eu=Ui.toString,Bc=Zl.call(Ut),r1=Jt._,i1=Jl("^"+Zl.call(Rt).replace(yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tu=ip?ie.Buffer:n,ps=ie.Symbol,nu=ie.Uint8Array,vp=tu?tu.allocUnsafe:n,vi=gp(Ut.getPrototypeOf,Ut),zc=Ut.create,Wc=Ui.propertyIsEnumerable,qc=ds.splice,s1=ps?ps.isConcatSpreadable:n,hs=ps?ps.iterator:n,Ao=ps?ps.toStringTag:n,ru=function(){try{var a=io(Ut,"defineProperty");return a({},"",{}),a}catch{}}(),o1=ie.clearTimeout!==Jt.clearTimeout&&ie.clearTimeout,Gt=Te&&Te.now!==Jt.Date.now&&Te.now,_p=ie.setTimeout!==Jt.setTimeout&&ie.setTimeout,Po=mn.ceil,Ks=mn.floor,Vc=Ut.getOwnPropertySymbols,wp=tu?tu.isBuffer:n,$a=ie.isFinite,Gc=ds.join,ja=gp(Ut.keys,Ut),gn=mn.max,qn=mn.min,by=Te.now,a1=ie.parseInt,iu=mn.random,Kc=ds.reverse,su=io(ie,"DataView"),Lo=io(ie,"Map"),ou=io(ie,"Promise"),Ys=io(ie,"Set"),au=io(ie,"WeakMap"),Ua=io(Ut,"create"),Yc=au&&new au,Ha={},Sp=so(su),Qs=so(Lo),l1=so(ou),Ba=so(Ys),Hi=so(au),Xs=ps?ps.prototype:n,Lr=Xs?Xs.valueOf:n,Qc=Xs?Xs.toString:n;function O(a){if(vn(a)&&!ct(a)&&!(a instanceof ut)){if(a instanceof Vn)return a;if(Rt.call(a,"__wrapped__"))return D1(a)}return new Vn(a)}var za=function(){function a(){}return function(u){if(!fn(u))return{};if(zc)return zc(u);a.prototype=u;var m=new a;return a.prototype=n,m}}();function Bi(){}function Vn(a,u){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}O.templateSettings={escape:gr,evaluate:xo,interpolate:xa,variable:"",imports:{_:O}},O.prototype=Bi.prototype,O.prototype.constructor=O,Vn.prototype=za(Bi.prototype),Vn.prototype.constructor=Vn;function ut(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=$,this.__views__=[]}function Xc(){var a=new ut(this.__wrapped__);return a.__actions__=cr(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=cr(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=cr(this.__views__),a}function Ep(){if(this.__filtered__){var a=new ut(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Wa(){var a=this.__wrapped__.value(),u=this.__dir__,m=ct(a),S=u<0,T=m?a.length:0,A=Qp(0,T,this.__views__),M=A.start,U=A.end,V=U-M,se=S?U:M-1,le=this.__iteratees__,me=le.length,be=0,ze=qn(V,this.__takeCount__);if(!m||!S&&T==V&&ze==V)return Ja(a,this.__actions__);var Je=[];e:for(;V--&&be<ze;){se+=u;for(var mt=-1,Ze=a[se];++mt<me;){var wt=le[mt],xt=wt.iteratee,Ri=wt.type,$r=xt(Ze);if(Ri==We)Ze=$r;else if(!$r){if(Ri==Re)continue e;break e}}Je[be++]=Ze}return Je}ut.prototype=za(Bi.prototype),ut.prototype.constructor=ut;function _r(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var S=a[u];this.set(S[0],S[1])}}function Kt(){this.__data__=Ua?Ua(null):{},this.size=0}function qt(a){var u=this.has(a)&&delete this.__data__[a];return this.size-=u?1:0,u}function Js(a){var u=this.__data__;if(Ua){var m=u[a];return m===p?n:m}return Rt.call(u,a)?u[a]:n}function Gn(a){var u=this.__data__;return Ua?u[a]!==n:Rt.call(u,a)}function wr(a,u){var m=this.__data__;return this.size+=this.has(a)?0:1,m[a]=Ua&&u===n?p:u,this}_r.prototype.clear=Kt,_r.prototype.delete=qt,_r.prototype.get=Js,_r.prototype.has=Gn,_r.prototype.set=wr;function ur(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var S=a[u];this.set(S[0],S[1])}}function qa(){this.__data__=[],this.size=0}function Sr(a){var u=this.__data__,m=Yn(u,a);if(m<0)return!1;var S=u.length-1;return m==S?u.pop():qc.call(u,m,1),--this.size,!0}function Jc(a){var u=this.__data__,m=Yn(u,a);return m<0?n:u[m][1]}function u1(a){return Yn(this.__data__,a)>-1}function c1(a,u){var m=this.__data__,S=Yn(m,a);return S<0?(++this.size,m.push([a,u])):m[S][1]=u,this}ur.prototype.clear=qa,ur.prototype.delete=Sr,ur.prototype.get=Jc,ur.prototype.has=u1,ur.prototype.set=c1;function Qr(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u<m;){var S=a[u];this.set(S[0],S[1])}}function f1(){this.size=0,this.__data__={hash:new _r,map:new(Lo||ur),string:new _r}}function ms(a){var u=Cu(this,a).delete(a);return this.size-=u?1:0,u}function Zc(a){return Cu(this,a).get(a)}function Cp(a){return Cu(this,a).has(a)}function d1(a,u){var m=Cu(this,a),S=m.size;return m.set(a,u),this.size+=m.size==S?0:1,this}Qr.prototype.clear=f1,Qr.prototype.delete=ms,Qr.prototype.get=Zc,Qr.prototype.has=Cp,Qr.prototype.set=d1;function No(a){var u=-1,m=a==null?0:a.length;for(this.__data__=new Qr;++u<m;)this.add(a[u])}function Zs(a){return this.__data__.set(a,p),this}function Va(a){return this.__data__.has(a)}No.prototype.add=No.prototype.push=Zs,No.prototype.has=Va;function Kn(a){var u=this.__data__=new ur(a);this.size=u.size}function ef(){this.__data__=new ur,this.size=0}function tf(a){var u=this.__data__,m=u.delete(a);return this.size=u.size,m}function Xr(a){return this.__data__.get(a)}function Jr(a){return this.__data__.has(a)}function Mo(a,u){var m=this.__data__;if(m instanceof ur){var S=m.__data__;if(!Lo||S.length<s-1)return S.push([a,u]),this.size=++m.size,this;m=this.__data__=new Qr(S)}return m.set(a,u),this.size=m.size,this}Kn.prototype.clear=ef,Kn.prototype.delete=tf,Kn.prototype.get=Xr,Kn.prototype.has=Jr,Kn.prototype.set=Mo;function zi(a,u){var m=ct(a),S=!m&&Mu(a),T=!m&&!S&&ll(a),A=!m&&!S&&!T&&qf(a),M=m||S||T||A,U=M?hp(a.length,xy):[],V=U.length;for(var se in a)(u||Rt.call(a,se))&&!(M&&(se=="length"||T&&(se=="offset"||se=="parent")||A&&(se=="buffer"||se=="byteLength"||se=="byteOffset")||en(se,V)))&&U.push(se);return U}function Wi(a){var u=a.length;return u?a[Qa(0,u-1)]:n}function Do(a,u){return Rf(cr(a),gs(u,0,a.length))}function p1(a){return Rf(cr(a))}function lu(a,u,m){(m!==n&&!Ts(a[u],m)||m===n&&!(u in a))&&qi(a,u,m)}function Fo(a,u,m){var S=a[u];(!(Rt.call(a,u)&&Ts(S,m))||m===n&&!(u in a))&&qi(a,u,m)}function Yn(a,u){for(var m=a.length;m--;)if(Ts(a[m][0],u))return m;return-1}function Nr(a,u,m,S){return Gi(a,function(T,A,M){u(S,T,m(T),M)}),S}function Yt(a,u){return a&&wi(u,Jn(u),a)}function _i(a,u){return a&&wi(u,ai(u),a)}function qi(a,u,m){u=="__proto__"&&ru?ru(a,u,{configurable:!0,enumerable:!0,value:m,writable:!0}):a[u]=m}function nf(a,u){for(var m=-1,S=u.length,T=Y(S),A=a==null;++m<S;)T[m]=A?n:Yy(a,u[m]);return T}function gs(a,u,m){return a===a&&(m!==n&&(a=a<=m?a:m),u!==n&&(a=a>=u?a:u)),a}function Er(a,u,m,S,T,A){var M,U=u&_,V=u&E,se=u&x;
vendor: 13,983 bytes, line 128
128if(m&&(M=T?m(a,S,T,A):m(a)),M!==n)return M;if(!fn(a))return a;var le=ct(a);if(le){if(M=bu(a),!U)return cr(a,M)}else{var me=jn(a),be=me==Sn||me==dn;if(ll(a))return $p(a,U);if(me==Dn||me==oe||be&&!T){if(M=V||be?{}:Un(a),!U)return V?ky(a,_i(M,a)):gf(a,Yt(M,a))}else{if(!Dt[me])return T?a:{};M=Ry(a,me,U)}}A||(A=new Kn);var ze=A.get(a);if(ze)return ze;A.set(a,M),Iw(a)?a.forEach(function(Ze){M.add(Er(Ze,u,m,Ze,a,A))}):kw(a)&&a.forEach(function(Ze,wt){M.set(wt,Er(Ze,u,m,wt,a,A))});var Je=se?V?Eu:Su:V?ai:Jn,mt=le?n:Je(a);return Wn(mt||a,function(Ze,wt){mt&&(wt=Ze,Ze=a[wt]),Fo(M,wt,Er(Ze,u,m,wt,a,A))}),M}function h1(a){var u=Jn(a);return function(m){return uu(m,a,u)}}function uu(a,u,m){var S=m.length;if(a==null)return!S;for(a=Ut(a);S--;){var T=m[S],A=u[T],M=a[T];if(M===n&&!(T in a)||!A(M))return!1}return!0}function xp(a,u,m){if(typeof a!="function")throw new Yr(c);return sl(function(){a.apply(n,m)},u)}function Vi(a,u,m,S){var T=-1,A=Mc,M=!0,U=a.length,V=[],se=u.length;if(!U)return V;m&&(u=Wt(u,Ar(m))),S?(A=lp,M=!1):u.length>=s&&(A=fs,M=!1,u=new No(u));e:for(;++T<U;){var le=a[T],me=m==null?le:m(le);if(le=S||le!==0?le:0,M&&me===me){for(var be=se;be--;)if(u[be]===me)continue e;V.push(le)}else A(u,me,S)||V.push(le)}return V}var Gi=ri(Mr),m1=ri(eo,!0);function cu(a,u){var m=!0;return Gi(a,function(S,T,A){return m=!!u(S,T,A),m}),m}function $o(a,u,m){for(var S=-1,T=a.length;++S<T;){var A=a[S],M=u(A);if(M!=null&&(U===n?M===M&&!ki(M):m(M,U)))var U=M,V=A}return V}function g1(a,u,m,S){var T=a.length;for(m=ht(m),m<0&&(m=-m>T?0:T+m),S=S===n||S>T?T:ht(S),S<0&&(S+=T),S=m>S?0:Aw(S);m<S;)a[m++]=u;return a}function bp(a,u){var m=[];return Gi(a,function(S,T,A){u(S,T,A)&&m.push(S)}),m}function on(a,u,m,S,T){var A=-1,M=a.length;for(m||(m=bf),T||(T=[]);++A<M;){var U=a[A];u>0&&m(U)?u>1?on(U,u-1,m,S,T):Vs(T,U):S||(T[T.length]=U)}return T}var rf=vf(),fu=vf(!0);function Mr(a,u){return a&&rf(a,u,Jn)}function eo(a,u){return a&&fu(a,u,Jn)}function Ga(a,u){return qs(u,function(m){return Xo(a[m])})}function ys(a,u){u=Qi(u,a);for(var m=0,S=u.length;a!=null&&m<S;)a=a[xi(u[m++])];return m&&m==S?a:n}function sf(a,u,m){var S=u(a);return ct(a)?S:Vs(S,m(a))}function Fn(a){return a==null?a===n?ae:Mi:Ao&&Ao in Ut(a)?xf(a):Jp(a)}function to(a,u){return a>u}function Zr(a,u){return a!=null&&Rt.call(a,u)}function jo(a,u){return a!=null&&u in Ut(a)}function Tp(a,u,m){return a>=qn(u,m)&&a<gn(u,m)}function of(a,u,m){for(var S=m?lp:Mc,T=a[0].length,A=a.length,M=A,U=Y(A),V=1/0,se=[];M--;){var le=a[M];M&&u&&(le=Wt(le,Ar(u))),V=qn(le.length,V),U[M]=!m&&(u||T>=120&&le.length>=120)?new No(M&&le):n}le=a[0];var me=-1,be=U[0];e:for(;++me<T&&se.length<V;){var ze=le[me],Je=u?u(ze):ze;if(ze=m||ze!==0?ze:0,!(be?fs(be,Je):S(se,Je,m))){for(M=A;--M;){var mt=U[M];if(!(mt?fs(mt,Je):S(a[M],Je,m)))continue e}be&&be.push(Je),se.push(ze)}}return se}function vs(a,u,m,S){return Mr(a,function(T,A,M){u(S,m(T),A,M)}),S}function ei(a,u,m){u=Qi(u,a),a=On(a,u);var S=a==null?a:a[xi(pr(u))];return S==null?n:lr(S,a,m)}function af(a){return vn(a)&&Fn(a)==oe}function y1(a){return vn(a)&&Fn(a)==st}function _s(a){return vn(a)&&Fn(a)==dt}function ti(a,u,m,S,T){return a===u?!0:a==null||u==null||!vn(a)&&!vn(u)?a!==a&&u!==u:lf(a,u,m,S,ti,T)}function lf(a,u,m,S,T,A){var M=ct(a),U=ct(u),V=M?Le:jn(a),se=U?Le:jn(u);V=V==oe?Dn:V,se=se==oe?Dn:se;var le=V==Dn,me=se==Dn,be=V==se;if(be&&ll(a)){if(!ll(u))return!1;M=!0,le=!1}if(be&&!le)return A||(A=new Kn),M||qf(a)?Kp(a,u,m,S,T,A):Yp(a,u,V,m,S,T,A);if(!(m&b)){var ze=le&&Rt.call(a,"__wrapped__"),Je=me&&Rt.call(u,"__wrapped__");if(ze||Je){var mt=ze?a.value():a,Ze=Je?u.value():u;return A||(A=new Kn),T(mt,Ze,m,S,A)}}return be?(A||(A=new Kn),R1(a,u,m,S,T,A)):!1}function v1(a){return vn(a)&&jn(a)==At}function Ka(a,u,m,S){var T=m.length,A=T,M=!S;if(a==null)return!A;for(a=Ut(a);T--;){var U=m[T];if(M&&U[2]?U[1]!==a[U[0]]:!(U[0]in a))return!1}for(;++T<A;){U=m[T];var V=U[0],se=a[V],le=U[1];if(M&&U[2]){if(se===n&&!(V in a))return!1}else{var me=new Kn;if(S)var be=S(se,le,V,a,u,me);if(!(be===n?ti(le,se,b|R,S,me):be))return!1}}return!0}function kp(a){if(!fn(a)||A1(a))return!1;var u=Xo(a)?i1:Tm;return u.test(so(a))}function du(a){return vn(a)&&Fn(a)==at}function Ki(a){return vn(a)&&jn(a)==Mt}function pu(a){return vn(a)&&Q1(a.length)&&!!$t[Fn(a)]}function Ya(a){return typeof a=="function"?a:a==null?li:typeof a=="object"?ct(a)?Zt(a[0],a[1]):uf(a):Bw(a)}function ws(a){if(!xs(a))return ja(a);var u=[];for(var m in Ut(a))Rt.call(a,m)&&m!="constructor"&&u.push(m);return u}function Rp(a){if(!fn(a))return N1(a);var u=xs(a),m=[];for(var S in a)S=="constructor"&&(u||!Rt.call(a,S))||m.push(S);return m}function no(a,u){return a<u}function Ip(a,u){var m=-1,S=oi(a)?Y(a.length):[];return Gi(a,function(T,A,M){S[++m]=u(T,A,M)}),S}function uf(a){var u=xu(a);return u.length==1&&u[0][2]?Tf(u[0][0],u[0][1]):function(m){return m===a||Ka(m,a,u)}}function Zt(a,u){return Pe(a)&&ku(u)?Tf(xi(a),u):function(m){var S=Yy(m,a);return S===n&&S===u?Qy(m,a):ti(u,S,b|R)}}function Uo(a,u,m,S,T){a!==u&&rf(u,function(A,M){if(T||(T=new Kn),fn(A))Op(a,u,M,m,Uo,S,T);else{var U=S?S(Zi(a,M),A,M+"",a,u,T):n;U===n&&(U=A),lu(a,M,U)}},ai)}function Op(a,u,m,S,T,A,M){var U=Zi(a,m),V=Zi(u,m),se=M.get(V);if(se){lu(a,m,se);return}var le=A?A(U,V,m+"",a,u,M):n,me=le===n;if(me){var be=ct(V),ze=!be&&ll(V),Je=!be&&!ze&&qf(V);le=V,be||ze||Je?ct(U)?le=U:bn(U)?le=cr(U):ze?(me=!1,le=$p(V,!0)):Je?(me=!1,le=C1(V,!0)):le=[]:gh(V)||Mu(V)?(le=U,Mu(U)?le=Pw(U):(!fn(U)||Xo(U))&&(le=Un(V))):me=!1}me&&(M.set(V,le),T(le,V,S,A,M),M.delete(V)),lu(a,m,le)}function cf(a,u){var m=a.length;if(m)return u+=u<0?m:0,en(u,m)?a[u]:n}function hu(a,u,m){u.length?u=Wt(u,function(A){return ct(A)?function(M){return ys(M,A.length===1?A[0]:A)}:A}):u=[li];var S=-1;u=Wt(u,Ar(Ge()));var T=Ip(a,function(A,M,U){var V=Wt(u,function(se){return se(A)});return{criteria:V,index:++S,value:A}});return gy(T,function(A,M){return Ty(A,M,m)})}function Ap(a,u){return ro(a,u,function(m,S){return Qy(a,S)})}function ro(a,u,m){for(var S=-1,T=u.length,A={};++S<T;){var M=u[S],U=ys(a,M);m(U,M)&&Bo(A,Qi(M,a),U)}return A}function rn(a){return function(u){return ys(u,a)}}function un(a,u,m,S){var T=S?fp:Pa,A=-1,M=u.length,U=a;for(a===u&&(u=cr(u)),m&&(U=Wt(a,Ar(m)));++A<M;)for(var V=0,se=u[A],le=m?m(se):se;(V=T(U,le,V,S))>-1;)U!==a&&qc.call(U,V,1),qc.call(a,V,1);return a}function Cn(a,u){for(var m=a?u.length:0,S=m-1;m--;){var T=u[m];if(m==S||T!==A){var A=T;en(T)?qc.call(a,T,1):pf(a,T)}}return a}function Qa(a,u){return a+Ks(iu()*(u-a+1))}function mu(a,u,m,S){for(var T=-1,A=gn(Po((u-a)/(m||1)),0),M=Y(A);A--;)M[S?A:++T]=a,a+=m;return M}function Ho(a,u){var m="";if(!a||u<1||u>ee)return m;do u%2&&(m+=a),u=Ks(u/2),u&&(a+=a);while(u);return m}function pt(a,u){return Dr(kf(a,u,li),a+"")}function Qn(a){return Wi(Vf(a))}function Pp(a,u){var m=Vf(a);return Rf(m,gs(u,0,m.length))}function Bo(a,u,m,S){if(!fn(a))return a;u=Qi(u,a);for(var T=-1,A=u.length,M=A-1,U=a;U!=null&&++T<A;){var V=xi(u[T]),se=m;if(V==="__proto__"||V==="constructor"||V==="prototype")return a;if(T!=M){var le=U[V];se=S?S(le,V,U):n,se===n&&(se=fn(le)?le:en(u[T+1])?[]:{})}Fo(U,V,se),U=U[V]}return a}var ff=Yc?function(a,u){return Yc.set(a,u),a}:li,Yi=ru?function(a,u){return ru(a,"toString",{configurable:!0,enumerable:!1,value:Jy(u),writable:!0})}:li;function ni(a){return Rf(Vf(a))}function Xn(a,u,m){var S=-1,T=a.length;u<0&&(u=-u>T?0:T+u),m=m>T?T:m,m<0&&(m+=T),T=u>m?0:m-u>>>0,u>>>=0;for(var A=Y(T);++S<T;)A[S]=a[S+u];return A}function Lp(a,u){var m;return Gi(a,function(S,T,A){return m=u(S,T,A),!m}),!!m}function Xa(a,u,m){var S=0,T=a==null?S:a.length;if(typeof u=="number"&&u===u&&T<=Oe){for(;S<T;){var A=S+T>>>1,M=a[A];M!==null&&!ki(M)&&(m?M<=u:M<u)?S=A+1:T=A}return T}return df(a,u,li,m)}function df(a,u,m,S){var T=0,A=a==null?0:a.length;if(A===0)return 0;u=m(u);for(var M=u!==u,U=u===null,V=ki(u),se=u===n;T<A;){var le=Ks((T+A)/2),me=m(a[le]),be=me!==n,ze=me===null,Je=me===me,mt=ki(me);if(M)var Ze=S||Je;else se?Ze=Je&&(S||be):U?Ze=Je&&be&&(S||!ze):V?Ze=Je&&be&&!ze&&(S||!mt):ze||mt?Ze=!1:Ze=S?me<=u:me<u;Ze?T=le+1:A=le}return qn(A,re)}function Np(a,u){for(var m=-1,S=a.length,T=0,A=[];++m<S;){var M=a[m],U=u?u(M):M;if(!m||!Ts(U,V)){var V=U;A[T++]=M===0?0:M}}return A}function Mp(a){return typeof a=="number"?a:ki(a)?_e:+a}function Cr(a){if(typeof a=="string")return a;if(ct(a))return Wt(a,Cr)+"";if(ki(a))return Qc?Qc.call(a):"";var u=a+"";return u=="0"&&1/a==-1/0?"-0":u}function Ss(a,u,m){var S=-1,T=Mc,A=a.length,M=!0,U=[],V=U;if(m)M=!1,T=lp;else if(A>=s){var se=u?null:k1(a);if(se)return Gs(se);M=!1,T=fs,V=new No}else V=u?[]:U;e:for(;++S<A;){var le=a[S],me=u?u(le):le;if(le=m||le!==0?le:0,M&&me===me){for(var be=V.length;be--;)if(V[be]===me)continue e;u&&V.push(me),U.push(le)}else T(V,me,m)||(V!==U&&V.push(me),U.push(le))}return U}function pf(a,u){return u=Qi(u,a),a=On(a,u),a==null||delete a[xi(pr(u))]}function Dp(a,u,m,S){return Bo(a,u,m(ys(a,u)),S)}function gu(a,u,m,S){for(var T=a.length,A=S?T:-1;(S?A--:++A<T)&&u(a[A],A,a););return m?Xn(a,S?0:A,S?A+1:T):Xn(a,S?A+1:0,S?T:A)}function Ja(a,u){var m=a;return m instanceof ut&&(m=m.value()),up(u,function(S,T){return T.func.apply(T.thisArg,Vs([S],T.args))},m)}function hf(a,u,m){var S=a.length;if(S<2)return S?Ss(a[0]):[];for(var T=-1,A=Y(S);++T<S;)for(var M=a[T],U=-1;++U<S;)U!=T&&(A[T]=Vi(A[T]||M,a[U],u,m));return Ss(on(A,1),u,m)}function yu(a,u,m){for(var S=-1,T=a.length,A=u.length,M={};++S<T;){var U=S<A?u[S]:n;m(M,a[S],U)}return M}function Za(a){return bn(a)?a:[]}function mf(a){return typeof a=="function"?a:li}function Qi(a,u){return ct(a)?a:Pe(a,u)?[a]:th(Ht(a))}var _1=pt;function Es(a,u,m){var S=a.length;return m=m===n?S:m,!u&&m>=S?a:Xn(a,u,m)}var Fp=o1||function(a){return Jt.clearTimeout(a)};function $p(a,u){if(u)return a.slice();var m=a.length,S=vp?vp(m):new a.constructor(m);return a.copy(S),S}function vu(a){var u=new a.constructor(a.byteLength);return new nu(u).set(new nu(a)),u}function w1(a,u){var m=u?vu(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.byteLength)}function S1(a){var u=new a.constructor(a.source,Qd.exec(a));return u.lastIndex=a.lastIndex,u}function E1(a){return Lr?Ut(Lr.call(a)):{}}function C1(a,u){var m=u?vu(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.length)}function jp(a,u){if(a!==u){var m=a!==n,S=a===null,T=a===a,A=ki(a),M=u!==n,U=u===null,V=u===u,se=ki(u);if(!U&&!se&&!A&&a>u||A&&M&&V&&!U&&!se||S&&M&&V||!m&&V||!T)return 1;if(!S&&!A&&!se&&a<u||se&&m&&T&&!S&&!A||U&&m&&T||!M&&T||!V)return-1}return 0}function Ty(a,u,m){for(var S=-1,T=a.criteria,A=u.criteria,M=T.length,U=m.length;++S<M;){var V=jp(T[S],A[S]);if(V){if(S>=U)return V;var se=m[S];return V*(se=="desc"?-1:1)}}return a.index-u.index}function x1(a,u,m,S){for(var T=-1,A=a.length,M=m.length,U=-1,V=u.length,se=gn(A-M,0),le=Y(V+se),me=!S;++U<V;)le[U]=u[U];for(;++T<M;)(me||T<A)&&(le[m[T]]=a[T]);for(;se--;)le[U++]=a[T++];return le}function Up(a,u,m,S){for(var T=-1,A=a.length,M=-1,U=m.length,V=-1,se=u.length,le=gn(A-U,0),me=Y(le+se),be=!S;++T<le;)me[T]=a[T];for(var ze=T;++V<se;)me[ze+V]=u[V];for(;++M<U;)(be||T<A)&&(me[ze+m[M]]=a[T++]);return me}function cr(a,u){var m=-1,S=a.length;for(u||(u=Y(S));++m<S;)u[m]=a[m];return u}function wi(a,u,m,S){var T=!m;m||(m={});for(var A=-1,M=u.length;++A<M;){var U=u[A],V=S?S(m[U],a[U],U,m,a):n;V===n&&(V=a[U]),T?qi(m,U,V):Fo(m,U,V)}return m}function gf(a,u){return wi(a,Si(a),u)}function ky(a,u){return wi(a,I1(a),u)}function yf(a,u){return function(m,S){var T=ct(m)?op:Nr,A=u?u():{};return T(m,a,Ge(S,2),A)}}function el(a){return pt(function(u,m){var S=-1,T=m.length,A=T>1?m[T-1]:n,M=T>2?m[2]:n;for(A=a.length>3&&typeof A=="function"?(T--,A):n,M&&dr(m[0],m[1],M)&&(A=T<3?n:A,T=1),u=Ut(u);++S<T;){var U=m[S];U&&a(u,U,S,A)}return u})}function ri(a,u){return function(m,S){if(m==null)return m;if(!oi(m))return a(m,S);for(var T=m.length,A=u?T:-1,M=Ut(m);(u?A--:++A<T)&&S(M[A],A,M)!==!1;);return m}}function vf(a){return function(u,m,S){for(var T=-1,A=Ut(u),M=S(u),U=M.length;U--;){var V=M[a?U:++T];if(m(A[V],V,A)===!1)break}return u}}function _f(a,u,m){var S=u&I,T=tl(a);function A(){var M=this&&this!==Jt&&this instanceof A?T:a;return M.apply(S?m:this,arguments)}return A}function Hp(a){return function(u){u=Ht(u);var m=Na(u)?Pr(u):n,S=m?m[0]:u.charAt(0),T=m?Es(m,1).join(""):u.slice(1);return S[a]()+T}}function zo(a){return function(u){return up(Uw(jw(u).replace(ly,"")),a,"")}}function tl(a){return function(){var u=arguments;switch(u.length){case 0:return new a;case 1:return new a(u[0]);case 2:return new a(u[0],u[1]);case 3:return new a(u[0],u[1],u[2]);case 4:return new a(u[0],u[1],u[2],u[3]);case 5:return new a(u[0],u[1],u[2],u[3],u[4]);case 6:return new a(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new a(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var m=za(a.prototype),S=a.apply(m,u);return fn(S)?S:m}}function Bp(a,u,m){var S=tl(a);function T(){for(var A=arguments.length,M=Y(A),U=A,V=Cs(T);U--;)M[U]=arguments[U];var se=A<3&&M[0]!==V&&M[A-1]!==V?[]:Kr(M,V);if(A-=se.length,A<m)return fr(a,u,nl,T.placeholder,n,M,se,n,n,m-A);var le=this&&this!==Jt&&this instanceof T?S:a;return lr(le,this,M)}return T}function Wo(a){return function(u,m,S){var T=Ut(u);if(!oi(u)){var A=Ge(m,3);u=Jn(u),m=function(U){return A(T[U],U,T)}}var M=a(u,m,S);return M>-1?T[A?u[M]:M]:n}}function wf(a){return Ji(function(u){var m=u.length,S=m,T=Vn.prototype.thru;for(a&&u.reverse();S--;){var A=u[S];if(typeof A!="function")throw new Yr(c);if(T&&!M&&rl(A)=="wrapper")var M=new Vn([],!0)}for(S=M?S:m;++S<m;){A=u[S];var U=rl(A),V=U=="wrapper"?Cf(A):n;V&&Tu(V[0])&&V[1]==(Z|W|te|ue)&&!V[4].length&&V[9]==1?M=M[rl(V[0])].apply(M,V[3]):M=A.length==1&&Tu(A)?M[U]():M.thru(A)}return function(){var se=arguments,le=se[0];if(M&&se.length==1&&ct(le))return M.plant(le).value();for(var me=0,be=m?u[me].apply(this,se):le;++me<m;)be=u[me].call(this,be);return be}})}function nl(a,u,m,S,T,A,M,U,V,se){var le=u&Z,me=u&I,be=u&L,ze=u&(W|Q),Je=u&X,mt=be?n:tl(a);function Ze(){for(var wt=arguments.length,xt=Y(wt),Ri=wt;Ri--;)xt[Ri]=arguments[Ri];if(ze)var $r=Cs(Ze),Ii=Qm(xt,$r);
vendor: 7,516 bytes, lines 128-130
128if(S&&(xt=x1(xt,S,T,ze)),A&&(xt=Up(xt,A,M,ze)),wt-=Ii,ze&&wt<se){var Tn=Kr(xt,$r);return fr(a,u,nl,Ze.placeholder,m,xt,Tn,U,V,se-wt)}var ks=me?m:this,Zo=be?ks[a]:a;return wt=xt.length,U?xt=Ei(xt,U):Je&&wt>1&&xt.reverse(),le&&V<wt&&(xt.length=V),this&&this!==Jt&&this instanceof Ze&&(Zo=mt||tl(Zo)),Zo.apply(ks,xt)}return Ze}function b1(a,u){return function(m,S){return vs(m,a,u(S),{})}}function _u(a,u){return function(m,S){var T;if(m===n&&S===n)return u;if(m!==n&&(T=m),S!==n){if(T===n)return S;typeof m=="string"||typeof S=="string"?(m=Cr(m),S=Cr(S)):(m=Mp(m),S=Mp(S)),T=a(m,S)}return T}}function Sf(a){return Ji(function(u){return u=Wt(u,Ar(Ge())),pt(function(m){var S=this;return a(u,function(T){return lr(T,S,m)})})})}function wu(a,u){u=u===n?" ":Cr(u);var m=u.length;if(m<2)return m?Ho(u,a):u;var S=Ho(u,Po(a/Oo(u)));return Na(u)?Es(Pr(S),0,a).join(""):S.slice(0,a)}function T1(a,u,m,S){var T=u&I,A=tl(a);function M(){for(var U=-1,V=arguments.length,se=-1,le=S.length,me=Y(le+V),be=this&&this!==Jt&&this instanceof M?A:a;++se<le;)me[se]=S[se];for(;V--;)me[se++]=arguments[++U];return lr(be,T?m:this,me)}return M}function zp(a){return function(u,m,S){return S&&typeof S!="number"&&dr(u,m,S)&&(m=S=n),u=Jo(u),m===n?(m=u,u=0):m=Jo(m),S=S===n?u<m?1:-1:Jo(S),mu(u,m,S,a)}}function Ef(a){return function(u,m){return typeof u=="string"&&typeof m=="string"||(u=es(u),m=es(m)),a(u,m)}}function fr(a,u,m,S,T,A,M,U,V,se){var le=u&W,me=le?M:n,be=le?n:M,ze=le?A:n,Je=le?n:A;u|=le?te:D,u&=~(le?D:te),u&H||(u&=-4);var mt=[a,u,T,ze,me,Je,be,U,V,se],Ze=m.apply(n,mt);return Tu(a)&&Zp(Ze,mt),Ze.placeholder=S,eh(Ze,a,u)}function $n(a){var u=mn[a];return function(m,S){if(m=es(m),S=S==null?0:qn(ht(S),292),S&&$a(m)){var T=(Ht(m)+"e").split("e"),A=u(T[0]+"e"+(+T[1]+S));return T=(Ht(A)+"e").split("e"),+(T[0]+"e"+(+T[1]-S))}return u(m)}}var k1=Ys&&1/Gs(new Ys([,-0]))[1]==Ie?function(a){return new Ys(a)}:tv;function Wp(a){return function(u){var m=jn(u);return m==At?$c(u):m==Mt?wy(u):yy(u,a(u))}}function Xi(a,u,m,S,T,A,M,U){var V=u&L;if(!V&&typeof a!="function")throw new Yr(c);var se=S?S.length:0;if(se||(u&=-97,S=T=n),M=M===n?M:gn(ht(M),0),U=U===n?U:ht(U),se-=T?T.length:0,u&D){var le=S,me=T;S=T=n}var be=V?n:Cf(a),ze=[a,u,m,S,T,le,me,A,M,U];if(be&&L1(ze,be),a=ze[0],u=ze[1],m=ze[2],S=ze[3],T=ze[4],U=ze[9]=ze[9]===n?V?0:a.length:gn(ze[9]-se,0),!U&&u&(W|Q)&&(u&=-25),!u||u==I)var Je=_f(a,u,m);else u==W||u==Q?Je=Bp(a,u,U):(u==te||u==(I|te))&&!T.length?Je=T1(a,u,m,S):Je=nl.apply(n,ze);var mt=be?ff:Zp;return eh(mt(Je,ze),a,u)}function qp(a,u,m,S){return a===n||Ts(a,Ui[m])&&!Rt.call(S,m)?u:a}function Vp(a,u,m,S,T,A){return fn(a)&&fn(u)&&(A.set(u,a),Uo(a,u,n,Vp,A),A.delete(u)),a}function Gp(a){return gh(a)?n:a}function Kp(a,u,m,S,T,A){var M=m&b,U=a.length,V=u.length;if(U!=V&&!(M&&V>U))return!1;var se=A.get(a),le=A.get(u);if(se&&le)return se==u&&le==a;var me=-1,be=!0,ze=m&R?new No:n;for(A.set(a,u),A.set(u,a);++me<U;){var Je=a[me],mt=u[me];if(S)var Ze=M?S(mt,Je,me,u,a,A):S(Je,mt,me,a,u,A);if(Ze!==n){if(Ze)continue;be=!1;break}if(ze){if(!cp(u,function(wt,xt){if(!fs(ze,xt)&&(Je===wt||T(Je,wt,m,S,A)))return ze.push(xt)})){be=!1;break}}else if(!(Je===mt||T(Je,mt,m,S,A))){be=!1;break}}return A.delete(a),A.delete(u),be}function Yp(a,u,m,S,T,A,M){switch(m){case tt:if(a.byteLength!=u.byteLength||a.byteOffset!=u.byteOffset)return!1;a=a.buffer,u=u.buffer;case st:return!(a.byteLength!=u.byteLength||!A(new nu(a),new nu(u)));case et:case dt:case Mn:return Ts(+a,+u);case zn:return a.name==u.name&&a.message==u.message;case at:case B:return a==u+"";case At:var U=$c;case Mt:var V=S&b;if(U||(U=Gs),a.size!=u.size&&!V)return!1;var se=M.get(a);if(se)return se==u;S|=R,M.set(a,u);var le=Kp(U(a),U(u),S,T,A,M);return M.delete(a),le;case Ee:if(Lr)return Lr.call(a)==Lr.call(u)}return!1}function R1(a,u,m,S,T,A){var M=m&b,U=Su(a),V=U.length,se=Su(u),le=se.length;if(V!=le&&!M)return!1;for(var me=V;me--;){var be=U[me];if(!(M?be in u:Rt.call(u,be)))return!1}var ze=A.get(a),Je=A.get(u);if(ze&&Je)return ze==u&&Je==a;var mt=!0;A.set(a,u),A.set(u,a);for(var Ze=M;++me<V;){be=U[me];var wt=a[be],xt=u[be];if(S)var Ri=M?S(xt,wt,be,u,a,A):S(wt,xt,be,a,u,A);if(!(Ri===n?wt===xt||T(wt,xt,m,S,A):Ri)){mt=!1;break}Ze||(Ze=be=="constructor")}if(mt&&!Ze){var $r=a.constructor,Ii=u.constructor;$r!=Ii&&"constructor"in a&&"constructor"in u&&!(typeof $r=="function"&&$r instanceof $r&&typeof Ii=="function"&&Ii instanceof Ii)&&(mt=!1)}return A.delete(a),A.delete(u),mt}function Ji(a){return Dr(kf(a,n,Of),a+"")}function Su(a){return sf(a,Jn,Si)}function Eu(a){return sf(a,ai,I1)}var Cf=Yc?function(a){return Yc.get(a)}:tv;function rl(a){for(var u=a.name+"",m=Ha[u],S=Rt.call(Ha,u)?m.length:0;S--;){var T=m[S],A=T.func;if(A==null||A==a)return T.name}return u}function Cs(a){var u=Rt.call(O,"placeholder")?O:a;return u.placeholder}function Ge(){var a=O.iteratee||Zy;return a=a===Zy?Ya:a,arguments.length?a(arguments[0],arguments[1]):a}function Cu(a,u){var m=a.__data__;return il(u)?m[typeof u=="string"?"string":"hash"]:m.map}function xu(a){for(var u=Jn(a),m=u.length;m--;){var S=u[m],T=a[S];u[m]=[S,T,ku(T)]}return u}function io(a,u){var m=La(a,u);return kp(m)?m:n}function xf(a){var u=Rt.call(a,Ao),m=a[Ao];try{a[Ao]=n;var S=!0}catch{}var T=eu.call(a);return S&&(u?a[Ao]=m:delete a[Ao]),T}var Si=Vc?function(a){return a==null?[]:(a=Ut(a),qs(Vc(a),function(u){return Wc.call(a,u)}))}:nv,I1=Vc?function(a){for(var u=[];a;)Vs(u,Si(a)),a=vi(a);return u}:nv,jn=Fn;(su&&jn(new su(new ArrayBuffer(1)))!=tt||Lo&&jn(new Lo)!=At||ou&&jn(ou.resolve())!=Di||Ys&&jn(new Ys)!=Mt||au&&jn(new au)!=Se)&&(jn=function(a){var u=Fn(a),m=u==Dn?a.constructor:n,S=m?so(m):"";if(S)switch(S){case Sp:return tt;case Qs:return At;case l1:return Di;case Ba:return Mt;case Hi:return Se}return u});function Qp(a,u,m){for(var S=-1,T=m.length;++S<T;){var A=m[S],M=A.size;switch(A.type){case"drop":a+=M;break;case"dropRight":u-=M;break;case"take":u=qn(u,a+M);break;case"takeRight":a=gn(a,u-M);break}}return{start:a,end:u}}function O1(a){var u=a.match(Ec);return u?u[1].split(Yd):[]}function Xp(a,u,m){u=Qi(u,a);for(var S=-1,T=u.length,A=!1;++S<T;){var M=xi(u[S]);if(!(A=a!=null&&m(a,M)))break;a=a[M]}return A||++S!=T?A:(T=a==null?0:a.length,!!T&&Q1(T)&&en(M,T)&&(ct(a)||Mu(a)))}function bu(a){var u=a.length,m=new a.constructor(u);return u&&typeof a[0]=="string"&&Rt.call(a,"index")&&(m.index=a.index,m.input=a.input),m}function Un(a){return typeof a.constructor=="function"&&!xs(a)?za(vi(a)):{}}function Ry(a,u,m){var S=a.constructor;switch(u){case st:return vu(a);case et:case dt:return new S(+a);case tt:return w1(a,m);case In:case rr:case ir:case jt:case cs:case pn:case En:case gi:case Fi:return C1(a,m);case At:return new S;case Mn:case B:return new S(a);case at:return S1(a);case Mt:return new S;case Ee:return E1(a)}}function Iy(a,u){var m=u.length;if(!m)return a;var S=m-1;return u[S]=(m>1?"& ":"")+u[S],u=u.join(m>2?", ":" "),a.replace(Sc,`{
129/* [wrapped with `+u+`] */
130`)}function bf(a){return ct(a)||Mu(a)||!!(s1&&a&&a[s1])}function en(a,u){var m=typeof a;return u=u??ee,!!u&&(m=="number"||m!="symbol"&&Rm.test(a))&&a>-1&&a%1==0&&a<u}function dr(a,u,m){if(!fn(m))return!1;var S=typeof u;return(S=="number"?oi(m)&&en(u,m.length):S=="string"&&u in m)?Ts(m[u],a):!1}function Pe(a,u){if(ct(a))return!1;var m=typeof a;return m=="number"||m=="symbol"||m=="boolean"||a==null||ki(a)?!0:Hl.test(a)||!ba.test(a)||u!=null&&a in Ut(u)}function il(a){var u=typeof a;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?a!=="__proto__":a===null}function Tu(a){var u=rl(a),m=O[u];
vendor: 35,965 bytes, lines 130-147
130if(typeof m!="function"||!(u in ut.prototype))return!1;if(a===m)return!0;var S=Cf(m);return!!S&&a===S[0]}function A1(a){return!!Hc&&Hc in a}var Oy=Da?Xo:rv;function xs(a){var u=a&&a.constructor,m=typeof u=="function"&&u.prototype||Ui;return a===m}function ku(a){return a===a&&!fn(a)}function Tf(a,u){return function(m){return m==null?!1:m[a]===u&&(u!==n||a in Ut(m))}}function P1(a){var u=K(a,function(S){return m.size===g&&m.clear(),S}),m=u.cache;return u}function L1(a,u){var m=a[1],S=u[1],T=m|S,A=T<(I|L|Z),M=S==Z&&m==W||S==Z&&m==ue&&a[7].length<=u[8]||S==(Z|ue)&&u[7].length<=u[8]&&m==W;if(!(A||M))return a;S&I&&(a[2]=u[2],T|=m&I?0:H);var U=u[3];if(U){var V=a[3];a[3]=V?x1(V,U,u[4]):U,a[4]=V?Kr(a[3],v):u[4]}return U=u[5],U&&(V=a[5],a[5]=V?Up(V,U,u[6]):U,a[6]=V?Kr(a[5],v):u[6]),U=u[7],U&&(a[7]=U),S&Z&&(a[8]=a[8]==null?u[8]:qn(a[8],u[8])),a[9]==null&&(a[9]=u[9]),a[0]=u[0],a[1]=T,a}function N1(a){var u=[];if(a!=null)for(var m in Ut(a))u.push(m);return u}function Jp(a){return eu.call(a)}function kf(a,u,m){return u=gn(u===n?a.length-1:u,0),function(){for(var S=arguments,T=-1,A=gn(S.length-u,0),M=Y(A);++T<A;)M[T]=S[u+T];T=-1;for(var U=Y(u+1);++T<u;)U[T]=S[T];return U[u]=m(M),lr(a,this,U)}}function On(a,u){return u.length<2?a:ys(a,Xn(u,0,-1))}function Ei(a,u){for(var m=a.length,S=qn(u.length,m),T=cr(a);S--;){var A=u[S];a[S]=en(A,m)?T[A]:n}return a}function Zi(a,u){if(!(u==="constructor"&&typeof a[u]=="function")&&u!="__proto__")return a[u]}var Zp=Ci(ff),sl=_p||function(a,u){return Jt.setTimeout(a,u)},Dr=Ci(Yi);function eh(a,u,m){var S=u+"";return Dr(a,Iy(S,M1(O1(S),m)))}function Ci(a){var u=0,m=0;return function(){var S=by(),T=xe-(S-m);if(m=S,T>0){if(++u>=de)return arguments[0]}else u=0;return a.apply(n,arguments)}}function Rf(a,u){var m=-1,S=a.length,T=S-1;for(u=u===n?S:u;++m<u;){var A=Qa(m,T),M=a[A];a[A]=a[m],a[m]=M}return a.length=u,a}var th=P1(function(a){var u=[];return a.charCodeAt(0)===46&&u.push(""),a.replace(hn,function(m,S,T,A){u.push(T?A.replace(ny,"$1"):S||m)}),u});function xi(a){if(typeof a=="string"||ki(a))return a;var u=a+"";return u=="0"&&1/a==-1/0?"-0":u}function so(a){if(a!=null){try{return Zl.call(a)}catch{}try{return a+""}catch{}}return""}function M1(a,u){return Wn(Fe,function(m){var S="_."+m[0];u&m[1]&&!Mc(a,S)&&a.push(S)}),a.sort()}function D1(a){if(a instanceof ut)return a.clone();var u=new Vn(a.__wrapped__,a.__chain__);return u.__actions__=cr(a.__actions__),u.__index__=a.__index__,u.__values__=a.__values__,u}function If(a,u,m){(m?dr(a,u,m):u===n)?u=1:u=gn(ht(u),0);var S=a==null?0:a.length;if(!S||u<1)return[];for(var T=0,A=0,M=Y(Po(S/u));T<S;)M[A++]=Xn(a,T,T+=u);return M}function nh(a){for(var u=-1,m=a==null?0:a.length,S=0,T=[];++u<m;){var A=a[u];A&&(T[S++]=A)}return T}function ii(){var a=arguments.length;if(!a)return[];for(var u=Y(a-1),m=arguments[0],S=a;S--;)u[S-1]=arguments[S];return Vs(ct(m)?cr(m):[m],on(u,1))}var Ct=pt(function(a,u){return bn(a)?Vi(a,on(u,1,bn,!0)):[]}),An=pt(function(a,u){var m=pr(u);return bn(m)&&(m=n),bn(a)?Vi(a,on(u,1,bn,!0),Ge(m,2)):[]}),yn=pt(function(a,u){var m=pr(u);return bn(m)&&(m=n),bn(a)?Vi(a,on(u,1,bn,!0),n,m):[]});function Hn(a,u,m){var S=a==null?0:a.length;return S?(u=m||u===n?1:ht(u),Xn(a,u<0?0:u,S)):[]}function Fr(a,u,m){var S=a==null?0:a.length;return S?(u=m||u===n?1:ht(u),u=S-u,Xn(a,0,u<0?0:u)):[]}function ol(a,u){return a&&a.length?gu(a,Ge(u,3),!0,!0):[]}function xn(a,u){return a&&a.length?gu(a,Ge(u,3),!0):[]}function Ru(a,u,m,S){var T=a==null?0:a.length;return T?(m&&typeof m!="number"&&dr(a,u,m)&&(m=0,S=T),g1(a,u,m,S)):[]}function oo(a,u,m){var S=a==null?0:a.length;if(!S)return-1;var T=m==null?0:ht(m);return T<0&&(T=gn(S+T,0)),Dc(a,Ge(u,3),T)}function Iu(a,u,m){var S=a==null?0:a.length;if(!S)return-1;var T=S-1;return m!==n&&(T=ht(m),T=m<0?gn(S+T,0):qn(T,S-1)),Dc(a,Ge(u,3),T,!0)}function Of(a){var u=a==null?0:a.length;return u?on(a,1):[]}function Ou(a){var u=a==null?0:a.length;return u?on(a,Ie):[]}function xr(a,u){var m=a==null?0:a.length;return m?(u=u===n?1:ht(u),on(a,u)):[]}function rh(a){for(var u=-1,m=a==null?0:a.length,S={};++u<m;){var T=a[u];S[T[0]]=T[1]}return S}function qo(a){return a&&a.length?a[0]:n}function bs(a,u,m){var S=a==null?0:a.length;if(!S)return-1;var T=m==null?0:ht(m);return T<0&&(T=gn(S+T,0)),Pa(a,u,T)}function Af(a){var u=a==null?0:a.length;return u?Xn(a,0,-1):[]}var ih=pt(function(a){var u=Wt(a,Za);return u.length&&u[0]===a[0]?of(u):[]}),ao=pt(function(a){var u=pr(a),m=Wt(a,Za);return u===pr(m)?u=n:m.pop(),m.length&&m[0]===a[0]?of(m,Ge(u,2)):[]}),Pf=pt(function(a){var u=pr(a),m=Wt(a,Za);return u=typeof u=="function"?u:n,u&&m.pop(),m.length&&m[0]===a[0]?of(m,n,u):[]});function lo(a,u){return a==null?"":Gc.call(a,u)}function pr(a){var u=a==null?0:a.length;return u?a[u-1]:n}function Au(a,u,m){var S=a==null?0:a.length;if(!S)return-1;var T=S;return m!==n&&(T=ht(m),T=T<0?gn(S+T,0):qn(T,S-1)),u===u?Sy(a,u,T):Dc(a,qm,T,!0)}function sh(a,u){return a&&a.length?cf(a,ht(u)):n}var Lf=pt(Pu);function Pu(a,u){return a&&a.length&&u&&u.length?un(a,u):a}function hr(a,u,m){return a&&a.length&&u&&u.length?un(a,u,Ge(m,2)):a}function uo(a,u,m){return a&&a.length&&u&&u.length?un(a,u,n,m):a}var bi=Ji(function(a,u){var m=a==null?0:a.length,S=nf(a,u);return Cn(a,Wt(u,function(T){return en(T,m)?+T:T}).sort(jp)),S});function br(a,u){var m=[];if(!(a&&a.length))return m;var S=-1,T=[],A=a.length;for(u=Ge(u,3);++S<A;){var M=a[S];u(M,S,a)&&(m.push(M),T.push(S))}return Cn(a,T),m}function Nf(a){return a==null?a:Kc.call(a)}function oh(a,u,m){var S=a==null?0:a.length;return S?(m&&typeof m!="number"&&dr(a,u,m)?(u=0,m=S):(u=u==null?0:ht(u),m=m===n?S:ht(m)),Xn(a,u,m)):[]}function ah(a,u){return Xa(a,u)}function Ay(a,u,m){return df(a,u,Ge(m,2))}function co(a,u){var m=a==null?0:a.length;if(m){var S=Xa(a,u);if(S<m&&Ts(a[S],u))return S}return-1}function F1(a,u){return Xa(a,u,!0)}function lh(a,u,m){return df(a,u,Ge(m,2),!0)}function Vo(a,u){var m=a==null?0:a.length;if(m){var S=Xa(a,u,!0)-1;if(Ts(a[S],u))return S}return-1}function uh(a){return a&&a.length?Np(a):[]}function Go(a,u){return a&&a.length?Np(a,Ge(u,2)):[]}function $1(a){var u=a==null?0:a.length;return u?Xn(a,1,u):[]}function j1(a,u,m){return a&&a.length?(u=m||u===n?1:ht(u),Xn(a,0,u<0?0:u)):[]}function ch(a,u,m){var S=a==null?0:a.length;return S?(u=m||u===n?1:ht(u),u=S-u,Xn(a,u<0?0:u,S)):[]}function Mf(a,u){return a&&a.length?gu(a,Ge(u,3),!1,!0):[]}function Py(a,u){return a&&a.length?gu(a,Ge(u,3)):[]}var Ly=pt(function(a){return Ss(on(a,1,bn,!0))}),U1=pt(function(a){var u=pr(a);return bn(u)&&(u=n),Ss(on(a,1,bn,!0),Ge(u,2))}),H1=pt(function(a){var u=pr(a);return u=typeof u=="function"?u:n,Ss(on(a,1,bn,!0),n,u)});function Ko(a){return a&&a.length?Ss(a):[]}function Ny(a,u){return a&&a.length?Ss(a,Ge(u,2)):[]}function al(a,u){return u=typeof u=="function"?u:n,a&&a.length?Ss(a,n,u):[]}function Df(a){if(!(a&&a.length))return[];var u=0;return a=qs(a,function(m){if(bn(m))return u=gn(m.length,u),!0}),hp(u,function(m){return Wt(a,dp(m))})}function sn(a,u){if(!(a&&a.length))return[];var m=Df(a);return u==null?m:Wt(m,function(S){return lr(u,n,S)})}var My=pt(function(a,u){return bn(a)?Vi(a,u):[]}),B1=pt(function(a){return hf(qs(a,bn))}),Dy=pt(function(a){var u=pr(a);return bn(u)&&(u=n),hf(qs(a,bn),Ge(u,2))}),Fy=pt(function(a){var u=pr(a);return u=typeof u=="function"?u:n,hf(qs(a,bn),n,u)}),z1=pt(Df);function W1(a,u){return yu(a||[],u||[],Fo)}function $y(a,u){return yu(a||[],u||[],Bo)}var si=pt(function(a){var u=a.length,m=u>1?a[u-1]:n;return m=typeof m=="function"?(a.pop(),m):n,sn(a,m)});function Ff(a){var u=O(a);return u.__chain__=!0,u}function jy(a,u){return u(a),a}function Ti(a,u){return u(a)}var $f=Ji(function(a){var u=a.length,m=u?a[0]:0,S=this.__wrapped__,T=function(A){return nf(A,a)};return u>1||this.__actions__.length||!(S instanceof ut)||!en(m)?this.thru(T):(S=S.slice(m,+m+(u?1:0)),S.__actions__.push({func:Ti,args:[T],thisArg:n}),new Vn(S,this.__chain__).thru(function(A){return u&&!A.length&&A.push(n),A}))});function Yo(){return Ff(this)}function jf(){return new Vn(this.value(),this.__chain__)}function fh(){this.__values__===n&&(this.__values__=Ow(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function dh(){return this}function Uy(a){for(var u,m=this;m instanceof Bi;){var S=D1(m);S.__index__=0,S.__values__=n,u?T.__wrapped__=S:u=S;var T=S;m=m.__wrapped__}return T.__wrapped__=a,u}function ph(){var a=this.__wrapped__;if(a instanceof ut){var u=a;return this.__actions__.length&&(u=new ut(this)),u=u.reverse(),u.__actions__.push({func:Ti,args:[Nf],thisArg:n}),new Vn(u,this.__chain__)}return this.thru(Nf)}function Hy(){return Ja(this.__wrapped__,this.__actions__)}var q1=yf(function(a,u,m){Rt.call(a,m)?++a[m]:qi(a,m,1)});function V1(a,u,m){var S=ct(a)?ap:cu;return m&&dr(a,u,m)&&(u=n),S(a,Ge(u,3))}function Uf(a,u){var m=ct(a)?qs:bp;return m(a,Ge(u,3))}var Hf=Wo(oo),G1=Wo(Iu);function hh(a,u){return on(Qo(a,u),1)}function By(a,u){return on(Qo(a,u),Ie)}function K1(a,u,m){return m=m===n?1:ht(m),on(Qo(a,u),m)}function Bf(a,u){var m=ct(a)?Wn:Gi;return m(a,Ge(u,3))}function Lu(a,u){var m=ct(a)?Nc:m1;return m(a,Ge(u,3))}var mh=yf(function(a,u,m){Rt.call(a,m)?a[m].push(u):qi(a,m,[u])});function zf(a,u,m,S){a=oi(a)?a:Vf(a),m=m&&!S?ht(m):0;var T=a.length;return m<0&&(m=gn(T+m,0)),X1(a)?m<=T&&a.indexOf(u,m)>-1:!!T&&Pa(a,u,m)>-1}var Y1=pt(function(a,u,m){var S=-1,T=typeof u=="function",A=oi(a)?Y(a.length):[];return Gi(a,function(M){A[++S]=T?lr(u,M,m):ei(M,u,m)}),A}),zy=yf(function(a,u,m){qi(a,m,u)});function Qo(a,u){var m=ct(a)?Wt:Ip;return m(a,Ge(u,3))}function Wy(a,u,m,S){return a==null?[]:(ct(u)||(u=u==null?[]:[u]),m=S?n:m,ct(m)||(m=m==null?[]:[m]),hu(a,u,m))}var Nu=yf(function(a,u,m){a[m?0:1].push(u)},function(){return[[],[]]});function qy(a,u,m){var S=ct(a)?up:Gm,T=arguments.length<3;return S(a,Ge(u,4),m,T,Gi)}function Wf(a,u,m){var S=ct(a)?py:Gm,T=arguments.length<3;return S(a,Ge(u,4),m,T,m1)}function i(a,u){var m=ct(a)?qs:bp;return m(a,we(Ge(u,3)))}function o(a){var u=ct(a)?Wi:Qn;return u(a)}function f(a,u,m){(m?dr(a,u,m):u===n)?u=1:u=ht(u);var S=ct(a)?Do:Pp;return S(a,u)}function h(a){var u=ct(a)?p1:ni;return u(a)}function y(a){if(a==null)return 0;if(oi(a))return X1(a)?Oo(a):a.length;var u=jn(a);return u==At||u==Mt?a.size:ws(a).length}function w(a,u,m){var S=ct(a)?cp:Lp;return m&&dr(a,u,m)&&(u=n),S(a,Ge(u,3))}var k=pt(function(a,u){if(a==null)return[];var m=u.length;return m>1&&dr(a,u[0],u[1])?u=[]:m>2&&dr(u[0],u[1],u[2])&&(u=[u[0]]),hu(a,on(u,1),[])}),N=Gt||function(){return Jt.Date.now()};function j(a,u){if(typeof u!="function")throw new Yr(c);return a=ht(a),function(){if(--a<1)return u.apply(this,arguments)}}function J(a,u,m){return u=m?n:u,u=a&&u==null?a.length:u,Xi(a,Z,n,n,n,n,u)}function he(a,u){var m;if(typeof u!="function")throw new Yr(c);return a=ht(a),function(){return--a>0&&(m=u.apply(this,arguments)),a<=1&&(u=n),m}}var ge=pt(function(a,u,m){var S=I;if(m.length){var T=Kr(m,Cs(ge));S|=te}return Xi(a,S,u,m,T)}),pe=pt(function(a,u,m){var S=I|L;if(m.length){var T=Kr(m,Cs(pe));S|=te}return Xi(u,S,a,m,T)});function ke(a,u,m){u=m?n:u;var S=Xi(a,W,n,n,n,n,n,u);return S.placeholder=ke.placeholder,S}function Ne(a,u,m){u=m?n:u;var S=Xi(a,Q,n,n,n,n,n,u);return S.placeholder=Ne.placeholder,S}function De(a,u,m){var S,T,A,M,U,V,se=0,le=!1,me=!1,be=!0;if(typeof a!="function")throw new Yr(c);u=es(u)||0,fn(m)&&(le=!!m.leading,me="maxWait"in m,A=me?gn(es(m.maxWait)||0,u):A,be="trailing"in m?!!m.trailing:be);function ze(Tn){var ks=S,Zo=T;return S=T=n,se=Tn,M=a.apply(Zo,ks),M}function Je(Tn){return se=Tn,U=sl(wt,u),le?ze(Tn):M}function mt(Tn){var ks=Tn-V,Zo=Tn-se,zw=u-ks;return me?qn(zw,A-Zo):zw}function Ze(Tn){var ks=Tn-V,Zo=Tn-se;return V===n||ks>=u||ks<0||me&&Zo>=A}function wt(){var Tn=N();if(Ze(Tn))return xt(Tn);U=sl(wt,mt(Tn))}function xt(Tn){return U=n,be&&S?ze(Tn):(S=T=n,M)}function Ri(){U!==n&&Fp(U),se=0,S=V=T=U=n}function $r(){return U===n?M:xt(N())}function Ii(){var Tn=N(),ks=Ze(Tn);if(S=arguments,T=this,V=Tn,ks){if(U===n)return Je(V);if(me)return Fp(U),U=sl(wt,u),ze(V)}return U===n&&(U=sl(wt,u)),M}return Ii.cancel=Ri,Ii.flush=$r,Ii}var cn=pt(function(a,u){return xp(a,1,u)}),G=pt(function(a,u,m){return xp(a,es(u)||0,m)});function z(a){return Xi(a,X)}function K(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new Yr(c);var m=function(){var S=arguments,T=u?u.apply(this,S):S[0],A=m.cache;if(A.has(T))return A.get(T);var M=a.apply(this,S);return m.cache=A.set(T,M)||A,M};return m.cache=new(K.Cache||Qr),m}K.Cache=Qr;function we(a){if(typeof a!="function")throw new Yr(c);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function Ue(a){return he(2,a)}var Ve=_1(function(a,u){u=u.length==1&&ct(u[0])?Wt(u[0],Ar(Ge())):Wt(on(u,1),Ar(Ge()));var m=u.length;return pt(function(S){for(var T=-1,A=qn(S.length,m);++T<A;)S[T]=u[T].call(this,S[T]);return lr(a,this,S)})}),qe=pt(function(a,u){var m=Kr(u,Cs(qe));return Xi(a,te,n,u,m)}),Xe=pt(function(a,u){var m=Kr(u,Cs(Xe));return Xi(a,D,n,u,m)}),Pn=Ji(function(a,u){return Xi(a,ue,n,n,n,u)});function It(a,u){if(typeof a!="function")throw new Yr(c);return u=u===n?u:ht(u),pt(a,u)}function fo(a,u){if(typeof a!="function")throw new Yr(c);return u=u==null?0:gn(ht(u),0),pt(function(m){var S=m[u],T=Es(m,0,u);return S&&Vs(T,S),lr(a,this,T)})}function Vy(a,u,m){var S=!0,T=!0;if(typeof a!="function")throw new Yr(c);return fn(m)&&(S="leading"in m?!!m.leading:S,T="trailing"in m?!!m.trailing:T),De(a,u,{leading:S,maxWait:u,trailing:T})}function Nb(a){return J(a,1)}function Mb(a,u){return qe(mf(u),a)}function Db(){if(!arguments.length)return[];var a=arguments[0];return ct(a)?a:[a]}function Fb(a){return Er(a,x)}function $b(a,u){return u=typeof u=="function"?u:n,Er(a,x,u)}function jb(a){return Er(a,_|x)}function Ub(a,u){return u=typeof u=="function"?u:n,Er(a,_|x,u)}function Hb(a,u){return u==null||uu(a,u,Jn(u))}function Ts(a,u){return a===u||a!==a&&u!==u}var Bb=Ef(to),zb=Ef(function(a,u){return a>=u}),Mu=af(function(){return arguments}())?af:function(a){return vn(a)&&Rt.call(a,"callee")&&!Wc.call(a,"callee")},ct=Y.isArray,Wb=sp?Ar(sp):y1;function oi(a){return a!=null&&Q1(a.length)&&!Xo(a)}function bn(a){return vn(a)&&oi(a)}function qb(a){return a===!0||a===!1||vn(a)&&Fn(a)==et}var ll=wp||rv,Vb=vr?Ar(vr):_s;function Gb(a){return vn(a)&&a.nodeType===1&&!gh(a)}function Kb(a){if(a==null)return!0;if(oi(a)&&(ct(a)||typeof a=="string"||typeof a.splice=="function"||ll(a)||qf(a)||Mu(a)))return!a.length;var u=jn(a);if(u==At||u==Mt)return!a.size;if(xs(a))return!ws(a).length;for(var m in a)if(Rt.call(a,m))return!1;return!0}function Yb(a,u){return ti(a,u)}function Qb(a,u,m){m=typeof m=="function"?m:n;var S=m?m(a,u):n;return S===n?ti(a,u,n,m):!!S}function Gy(a){if(!vn(a))return!1;var u=Fn(a);return u==zn||u==ln||typeof a.message=="string"&&typeof a.name=="string"&&!gh(a)}function Xb(a){return typeof a=="number"&&$a(a)}function Xo(a){if(!fn(a))return!1;var u=Fn(a);return u==Sn||u==dn||u==ot||u==us}function Tw(a){return typeof a=="number"&&a==ht(a)}function Q1(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=ee}function fn(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function vn(a){return a!=null&&typeof a=="object"}var kw=Io?Ar(Io):v1;function Jb(a,u){return a===u||Ka(a,u,xu(u))}function Zb(a,u,m){return m=typeof m=="function"?m:n,Ka(a,u,xu(u),m)}function e4(a){return Rw(a)&&a!=+a}function t4(a){if(Oy(a))throw new nt(l);return kp(a)}function n4(a){return a===null}function r4(a){return a==null}function Rw(a){return typeof a=="number"||vn(a)&&Fn(a)==Mn}function gh(a){if(!vn(a)||Fn(a)!=Dn)return!1;var u=vi(a);if(u===null)return!0;var m=Rt.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&Zl.call(m)==Bc}var Ky=Lc?Ar(Lc):du;function i4(a){return Tw(a)&&a>=-9007199254740991&&a<=ee}var Iw=Aa?Ar(Aa):Ki;function X1(a){return typeof a=="string"||!ct(a)&&vn(a)&&Fn(a)==B}function ki(a){return typeof a=="symbol"||vn(a)&&Fn(a)==Ee}var qf=Bm?Ar(Bm):pu;function s4(a){return a===n}function o4(a){return vn(a)&&jn(a)==Se}function a4(a){return vn(a)&&Fn(a)==Ye}var l4=Ef(no),u4=Ef(function(a,u){return a<=u});function Ow(a){if(!a)return[];if(oi(a))return X1(a)?Pr(a):cr(a);if(hs&&a[hs])return _y(a[hs]());var u=jn(a),m=u==At?$c:u==Mt?Gs:Vf;return m(a)}function Jo(a){if(!a)return a===0?a:0;if(a=es(a),a===Ie||a===-1/0){var u=a<0?-1:1;return u*ve}return a===a?a:0}function ht(a){var u=Jo(a),m=u%1;return u===u?m?u-m:u:0}function Aw(a){return a?gs(ht(a),0,$):0}function es(a){if(typeof a=="number")return a;if(ki(a))return _e;if(fn(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=fn(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=Km(a);var m=ry.test(a);return m||km.test(a)?Ac(a.slice(2),m?2:8):bm.test(a)?_e:+a}function Pw(a){return wi(a,ai(a))}function c4(a){return a?gs(ht(a),-9007199254740991,ee):a===0?a:0}function Ht(a){return a==null?"":Cr(a)}var f4=el(function(a,u){if(xs(u)||oi(u)){wi(u,Jn(u),a);return}for(var m in u)Rt.call(u,m)&&Fo(a,m,u[m])}),Lw=el(function(a,u){wi(u,ai(u),a)}),J1=el(function(a,u,m,S){wi(u,ai(u),a,S)}),d4=el(function(a,u,m,S){wi(u,Jn(u),a,S)}),p4=Ji(nf);function h4(a,u){var m=za(a);return u==null?m:Yt(m,u)}var m4=pt(function(a,u){a=Ut(a);var m=-1,S=u.length,T=S>2?u[2]:n;for(T&&dr(u[0],u[1],T)&&(S=1);++m<S;)for(var A=u[m],M=ai(A),U=-1,V=M.length;++U<V;){var se=M[U],le=a[se];(le===n||Ts(le,Ui[se])&&!Rt.call(a,se))&&(a[se]=A[se])}return a}),g4=pt(function(a){return a.push(n,Vp),lr(Nw,n,a)});function y4(a,u){return Wm(a,Ge(u,3),Mr)}function v4(a,u){return Wm(a,Ge(u,3),eo)}function _4(a,u){return a==null?a:rf(a,Ge(u,3),ai)}function w4(a,u){return a==null?a:fu(a,Ge(u,3),ai)}function S4(a,u){return a&&Mr(a,Ge(u,3))}function E4(a,u){return a&&eo(a,Ge(u,3))}function C4(a){return a==null?[]:Ga(a,Jn(a))}function x4(a){return a==null?[]:Ga(a,ai(a))}function Yy(a,u,m){var S=a==null?n:ys(a,u);return S===n?m:S}function b4(a,u){return a!=null&&Xp(a,u,Zr)}function Qy(a,u){return a!=null&&Xp(a,u,jo)}var T4=b1(function(a,u,m){u!=null&&typeof u.toString!="function"&&(u=eu.call(u)),a[u]=m},Jy(li)),k4=b1(function(a,u,m){u!=null&&typeof u.toString!="function"&&(u=eu.call(u)),Rt.call(a,u)?a[u].push(m):a[u]=[m]},Ge),R4=pt(ei);function Jn(a){return oi(a)?zi(a):ws(a)}function ai(a){return oi(a)?zi(a,!0):Rp(a)}function I4(a,u){var m={};return u=Ge(u,3),Mr(a,function(S,T,A){qi(m,u(S,T,A),S)}),m}function O4(a,u){var m={};return u=Ge(u,3),Mr(a,function(S,T,A){qi(m,T,u(S,T,A))}),m}var A4=el(function(a,u,m){Uo(a,u,m)}),Nw=el(function(a,u,m,S){Uo(a,u,m,S)}),P4=Ji(function(a,u){var m={};if(a==null)return m;var S=!1;u=Wt(u,function(A){return A=Qi(A,a),S||(S=A.length>1),A}),wi(a,Eu(a),m),S&&(m=Er(m,_|E|x,Gp));for(var T=u.length;T--;)pf(m,u[T]);return m});function L4(a,u){return Mw(a,we(Ge(u)))}var N4=Ji(function(a,u){return a==null?{}:Ap(a,u)});function Mw(a,u){if(a==null)return{};var m=Wt(Eu(a),function(S){return[S]});return u=Ge(u),ro(a,m,function(S,T){return u(S,T[0])})}function M4(a,u,m){u=Qi(u,a);var S=-1,T=u.length;for(T||(T=1,a=n);++S<T;){var A=a==null?n:a[xi(u[S])];A===n&&(S=T,A=m),a=Xo(A)?A.call(a):A}return a}function D4(a,u,m){return a==null?a:Bo(a,u,m)}function F4(a,u,m,S){return S=typeof S=="function"?S:n,a==null?a:Bo(a,u,m,S)}var Dw=Wp(Jn),Fw=Wp(ai);function $4(a,u,m){var S=ct(a),T=S||ll(a)||qf(a);if(u=Ge(u,4),m==null){var A=a&&a.constructor;T?m=S?new A:[]:fn(a)?m=Xo(A)?za(vi(a)):{}:m={}}return(T?Wn:Mr)(a,function(M,U,V){return u(m,M,U,V)}),m}function j4(a,u){return a==null?!0:pf(a,u)}function U4(a,u,m){return a==null?a:Dp(a,u,mf(m))}function H4(a,u,m,S){return S=typeof S=="function"?S:n,a==null?a:Dp(a,u,mf(m),S)}function Vf(a){return a==null?[]:Xl(a,Jn(a))}function B4(a){return a==null?[]:Xl(a,ai(a))}function z4(a,u,m){return m===n&&(m=u,u=n),m!==n&&(m=es(m),m=m===m?m:0),u!==n&&(u=es(u),u=u===u?u:0),gs(es(a),u,m)}function W4(a,u,m){return u=Jo(u),m===n?(m=u,u=0):m=Jo(m),a=es(a),Tp(a,u,m)}function q4(a,u,m){if(m&&typeof m!="boolean"&&dr(a,u,m)&&(u=m=n),m===n&&(typeof u=="boolean"?(m=u,u=n):typeof a=="boolean"&&(m=a,a=n)),a===n&&u===n?(a=0,u=1):(a=Jo(a),u===n?(u=a,a=0):u=Jo(u)),a>u){var S=a;a=u,u=S}if(m||a%1||u%1){var T=iu();return qn(a+T*(u-a+rp("1e-"+((T+"").length-1))),u)}return Qa(a,u)}var V4=zo(function(a,u,m){return u=u.toLowerCase(),a+(m?$w(u):u)});function $w(a){return Xy(Ht(a).toLowerCase())}function jw(a){return a=Ht(a),a&&a.replace(Im,Xm).replace($m,"")}function G4(a,u,m){a=Ht(a),u=Cr(u);var S=a.length;m=m===n?S:gs(ht(m),0,S);var T=m;return m-=u.length,m>=0&&a.slice(m,T)==u}function K4(a){return a=Ht(a),a&&Gr.test(a)?a.replace(Pt,Jm):a}function Y4(a){return a=Ht(a),a&&Bl.test(a)?a.replace(yr,"\\$&"):a}var Q4=zo(function(a,u,m){return a+(m?"-":"")+u.toLowerCase()}),X4=zo(function(a,u,m){return a+(m?" ":"")+u.toLowerCase()}),J4=Hp("toLowerCase");function Z4(a,u,m){a=Ht(a),u=ht(u);var S=u?Oo(a):0;if(!u||S>=u)return a;var T=(u-S)/2;return wu(Ks(T),m)+a+wu(Po(T),m)}function e8(a,u,m){a=Ht(a),u=ht(u);var S=u?Oo(a):0;return u&&S<u?a+wu(u-S,m):a}function t8(a,u,m){a=Ht(a),u=ht(u);var S=u?Oo(a):0;return u&&S<u?wu(u-S,m)+a:a}function n8(a,u,m){return m||u==null?u=0:u&&(u=+u),a1(Ht(a).replace(Kd,""),u||0)}function r8(a,u,m){return(m?dr(a,u,m):u===n)?u=1:u=ht(u),Ho(Ht(a),u)}function i8(){var a=arguments,u=Ht(a[0]);return a.length<3?u:u.replace(a[1],a[2])}var s8=zo(function(a,u,m){return a+(m?"_":"")+u.toLowerCase()});function o8(a,u,m){return m&&typeof m!="number"&&dr(a,u,m)&&(u=m=n),m=m===n?$:m>>>0,m?(a=Ht(a),a&&(typeof u=="string"||u!=null&&!Ky(u))&&(u=Cr(u),!u&&Na(a))?Es(Pr(a),0,m):a.split(u,m)):[]}var a8=zo(function(a,u,m){return a+(m?" ":"")+Xy(u)});function l8(a,u,m){return a=Ht(a),m=m==null?0:gs(ht(m),0,a.length),u=Cr(u),a.slice(m,m+u.length)==u}function u8(a,u,m){var S=O.templateSettings;m&&dr(a,u,m)&&(u=n),a=Ht(a),u=J1({},u,S,qp);var T=J1({},u.imports,S.imports,qp),A=Jn(T),M=Xl(T,A),U,V,se=0,le=u.interpolate||Cc,me="__p += '",be=Jl((u.escape||Cc).source+"|"+le.source+"|"+(le===xa?bo:Cc).source+"|"+(u.evaluate||Cc).source+"|$","g"),ze="//# sourceURL="+(Rt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cy+"]")+`
131`;a.replace(be,function(Ze,wt,xt,Ri,$r,Ii){return xt||(xt=Ri),me+=a.slice(se,Ii).replace(iy,Zm),wt&&(U=!0,me+=`' +
132__e(`+wt+`) +
133'`),$r&&(V=!0,me+=`';
134`+$r+`;
135__p += '`),xt&&(me+=`' +
136((__t = (`+xt+`)) == null ? '' : __t) +
137'`),se=Ii+Ze.length,Ze}),me+=`';
138`;var Je=Rt.call(u,"variable")&&u.variable;if(!Je)me=`with (obj) {
139`+me+`
140}
141`;else if(ty.test(Je))throw new nt(d);me=(V?me.replace(sr,""):me).replace(Vr,"$1").replace(Ca,"$1;"),me="function("+(Je||"obj")+`) {
142`+(Je?"":`obj || (obj = {});
143`)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(V?`, __j = Array.prototype.join;
144function print() { __p += __j.call(arguments, '') }
145`:`;
146`)+me+`return __p
147}`;var mt=Hw(function(){return kt(A,ze+"return "+me).apply(n,M)});if(mt.source=me,Gy(mt))throw mt;return mt}function c8(a){return Ht(a).toLowerCase()}function f8(a){return Ht(a).toUpperCase()}function d8(a,u,m){if(a=Ht(a),a&&(m||u===n))return Km(a);if(!a||!(u=Cr(u)))return a;var S=Pr(a),T=Pr(u),A=Ym(S,T),M=mp(S,T)+1;return Es(S,A,M).join("")}function p8(a,u,m){if(a=Ht(a),a&&(m||u===n))return a.slice(0,Uc(a)+1);if(!a||!(u=Cr(u)))return a;var S=Pr(a),T=mp(S,Pr(u))+1;return Es(S,0,T).join("")}function h8(a,u,m){if(a=Ht(a),a&&(m||u===n))return a.replace(Kd,"");if(!a||!(u=Cr(u)))return a;var S=Pr(a),T=Ym(S,Pr(u));return Es(S,T).join("")}function m8(a,u){var m=ce,S=ye;if(fn(u)){var T="separator"in u?u.separator:T;m="length"in u?ht(u.length):m,S="omission"in u?Cr(u.omission):S}a=Ht(a);var A=a.length;if(Na(a)){var M=Pr(a);A=M.length}if(m>=A)return a;var U=m-Oo(S);if(U<1)return S;var V=M?Es(M,0,U).join(""):a.slice(0,U);if(T===n)return V+S;if(M&&(U+=V.length-U),Ky(T)){if(a.slice(U).search(T)){var se,le=V;for(T.global||(T=Jl(T.source,Ht(Qd.exec(T))+"g")),T.lastIndex=0;se=T.exec(le);)var me=se.index;V=V.slice(0,me===n?U:me)}}else if(a.indexOf(Cr(T),U)!=U){var be=V.lastIndexOf(T);be>-1&&(V=V.slice(0,be))}return V+S}function g8(a){return a=Ht(a),a&&or.test(a)?a.replace(He,e1):a}var y8=zo(function(a,u,m){return a+(m?" ":"")+u.toUpperCase()}),Xy=Hp("toUpperCase");function Uw(a,u,m){return a=Ht(a),u=m?n:u,u===n?vy(a)?Ey(a):my(a):a.match(u)||[]}var Hw=pt(function(a,u){try{return lr(a,n,u)}catch(m){return Gy(m)?m:new nt(m)}}),v8=Ji(function(a,u){return Wn(u,function(m){m=xi(m),qi(a,m,ge(a[m],a))}),a});function _8(a){var u=a==null?0:a.length,m=Ge();return a=u?Wt(a,function(S){if(typeof S[1]!="function")throw new Yr(c);return[m(S[0]),S[1]]}):[],pt(function(S){for(var T=-1;++T<u;){var A=a[T];if(lr(A[0],this,S))return lr(A[1],this,S)}})}function w8(a){return h1(Er(a,_))}function Jy(a){return function(){return a}}function S8(a,u){return a==null||a!==a?u:a}var E8=wf(),C8=wf(!0);function li(a){return a}function Zy(a){return Ya(typeof a=="function"?a:Er(a,_))}function x8(a){return uf(Er(a,_))}function b8(a,u){return Zt(a,Er(u,_))}var T8=pt(function(a,u){return function(m){return ei(m,a,u)}}),k8=pt(function(a,u){return function(m){return ei(a,m,u)}});function ev(a,u,m){var S=Jn(u),T=Ga(u,S);m==null&&!(fn(u)&&(T.length||!S.length))&&(m=u,u=a,a=this,T=Ga(u,Jn(u)));var A=!(fn(m)&&"chain"in m)||!!m.chain,M=Xo(a);return Wn(T,function(U){var V=u[U];a[U]=V,M&&(a.prototype[U]=function(){var se=this.__chain__;if(A||se){var le=a(this.__wrapped__),me=le.__actions__=cr(this.__actions__);return me.push({func:V,args:arguments,thisArg:a}),le.__chain__=se,le}return V.apply(a,Vs([this.value()],arguments))})}),a}function R8(){return Jt._===this&&(Jt._=r1),this}function tv(){}function I8(a){return a=ht(a),pt(function(u){return cf(u,a)})}var O8=Sf(Wt),A8=Sf(ap),P8=Sf(cp);function Bw(a){return Pe(a)?dp(xi(a)):rn(a)}function L8(a){return function(u){return a==null?n:ys(a,u)}}var N8=zp(),M8=zp(!0);function nv(){return[]}function rv(){return!1}function D8(){return{}}function F8(){return""}function $8(){return!0}function j8(a,u){if(a=ht(a),a<1||a>ee)return[];var m=$,S=qn(a,$);u=Ge(u),a-=$;for(var T=hp(S,u);++m<a;)u(m);return T}function U8(a){return ct(a)?Wt(a,xi):ki(a)?[a]:cr(th(Ht(a)))}function H8(a){var u=++Fa;return Ht(a)+u}var B8=_u(function(a,u){return a+u},0),z8=$n("ceil"),W8=_u(function(a,u){return a/u},1),q8=$n("floor");function V8(a){return a&&a.length?$o(a,li,to):n}function G8(a,u){return a&&a.length?$o(a,Ge(u,2),to):n}function K8(a){return Vm(a,li)}function Y8(a,u){return Vm(a,Ge(u,2))}function Q8(a){return a&&a.length?$o(a,li,no):n}function X8(a,u){return a&&a.length?$o(a,Ge(u,2),no):n}var J8=_u(function(a,u){return a*u},1),Z8=$n("round"),e7=_u(function(a,u){return a-u},0);function t7(a){return a&&a.length?pp(a,li):0}function n7(a,u){return a&&a.length?pp(a,Ge(u,2)):0}return O.after=j,O.ary=J,O.assign=f4,O.assignIn=Lw,O.assignInWith=J1,O.assignWith=d4,O.at=p4,O.before=he,O.bind=ge,O.bindAll=v8,O.bindKey=pe,O.castArray=Db,O.chain=Ff,O.chunk=If,O.compact=nh,O.concat=ii,O.cond=_8,O.conforms=w8,O.constant=Jy,O.countBy=q1,O.create=h4,O.curry=ke,O.curryRight=Ne,O.debounce=De,O.defaults=m4,O.defaultsDeep=g4,O.defer=cn,O.delay=G,O.difference=Ct,O.differenceBy=An,O.differenceWith=yn,O.drop=Hn,O.dropRight=Fr,O.dropRightWhile=ol,O.dropWhile=xn,O.fill=Ru,O.filter=Uf,O.flatMap=hh,O.flatMapDeep=By,O.flatMapDepth=K1,O.flatten=Of,O.flattenDeep=Ou,O.flattenDepth=xr,O.flip=z,O.flow=E8,O.flowRight=C8,O.fromPairs=rh,O.functions=C4,O.functionsIn=x4,O.groupBy=mh,O.initial=Af,O.intersection=ih,O.intersectionBy=ao,O.intersectionWith=Pf,O.invert=T4,O.invertBy=k4,O.invokeMap=Y1,O.iteratee=Zy,O.keyBy=zy,O.keys=Jn,O.keysIn=ai,O.map=Qo,O.mapKeys=I4,O.mapValues=O4,O.matches=x8,O.matchesProperty=b8,O.memoize=K,O.merge=A4,O.mergeWith=Nw,O.method=T8,O.methodOf=k8,O.mixin=ev,O.negate=we,O.nthArg=I8,O.omit=P4,O.omitBy=L4,O.once=Ue,O.orderBy=Wy,O.over=O8,O.overArgs=Ve,O.overEvery=A8,O.overSome=P8,O.partial=qe,O.partialRight=Xe,O.partition=Nu,O.pick=N4,O.pickBy=Mw,O.property=Bw,O.propertyOf=L8,O.pull=Lf,O.pullAll=Pu,O.pullAllBy=hr,O.pullAllWith=uo,O.pullAt=bi,O.range=N8,O.rangeRight=M8,O.rearg=Pn,O.reject=i,O.remove=br,O.rest=It,O.reverse=Nf,O.sampleSize=f,O.set=D4,O.setWith=F4,O.shuffle=h,O.slice=oh,O.sortBy=k,O.sortedUniq=uh,O.sortedUniqBy=Go,O.split=o8,O.spread=fo,O.tail=$1,O.take=j1,O.takeRight=ch,O.takeRightWhile=Mf,O.takeWhile=Py,O.tap=jy,O.throttle=Vy,O.thru=Ti,O.toArray=Ow,O.toPairs=Dw,O.toPairsIn=Fw,O.toPath=U8,O.toPlainObject=Pw,O.transform=$4,O.unary=Nb,O.union=Ly,O.unionBy=U1,O.unionWith=H1,O.uniq=Ko,O.uniqBy=Ny,O.uniqWith=al,O.unset=j4,O.unzip=Df,O.unzipWith=sn,O.update=U4,O.updateWith=H4,O.values=Vf,O.valuesIn=B4,O.without=My,O.words=Uw,O.wrap=Mb,O.xor=B1,O.xorBy=Dy,O.xorWith=Fy,O.zip=z1,O.zipObject=W1,O.zipObjectDeep=$y,O.zipWith=si,O.entries=Dw,O.entriesIn=Fw,O.extend=Lw,O.extendWith=J1,ev(O,O),O.add=B8,O.attempt=Hw,O.camelCase=V4,O.capitalize=$w,O.ceil=z8,O.clamp=z4,O.clone=Fb,O.cloneDeep=jb,O.cloneDeepWith=Ub,O.cloneWith=$b,O.conformsTo=Hb,O.deburr=jw,O.defaultTo=S8,O.divide=W8,O.endsWith=G4,O.eq=Ts,O.escape=K4,O.escapeRegExp=Y4,O.every=V1,O.find=Hf,O.findIndex=oo,O.findKey=y4,O.findLast=G1,O.findLastIndex=Iu,O.findLastKey=v4,O.floor=q8,O.forEach=Bf,O.forEachRight=Lu,O.forIn=_4,O.forInRight=w4,O.forOwn=S4,O.forOwnRight=E4,O.get=Yy,O.gt=Bb,O.gte=zb,O.has=b4,O.hasIn=Qy,O.head=qo,O.identity=li,O.includes=zf,O.indexOf=bs,O.inRange=W4,O.invoke=R4,O.isArguments=Mu,O.isArray=ct,O.isArrayBuffer=Wb,O.isArrayLike=oi,O.isArrayLikeObject=bn,O.isBoolean=qb,O.isBuffer=ll,O.isDate=Vb,O.isElement=Gb,O.isEmpty=Kb,O.isEqual=Yb,O.isEqualWith=Qb,O.isError=Gy,O.isFinite=Xb,O.isFunction=Xo,O.isInteger=Tw,O.isLength=Q1,O.isMap=kw,O.isMatch=Jb,O.isMatchWith=Zb,O.isNaN=e4,O.isNative=t4,O.isNil=r4,O.isNull=n4,O.isNumber=Rw,O.isObject=fn,O.isObjectLike=vn,O.isPlainObject=gh,O.isRegExp=Ky,O.isSafeInteger=i4,O.isSet=Iw,O.isString=X1,O.isSymbol=ki,O.isTypedArray=qf,O.isUndefined=s4,O.isWeakMap=o4,O.isWeakSet=a4,O.join=lo,O.kebabCase=Q4,O.last=pr,O.lastIndexOf=Au,O.lowerCase=X4,O.lowerFirst=J4,O.lt=l4,O.lte=u4,O.max=V8,O.maxBy=G8,O.mean=K8,O.meanBy=Y8,O.min=Q8,O.minBy=X8,O.stubArray=nv,O.stubFalse=rv,O.stubObject=D8,O.stubString=F8,O.stubTrue=$8,O.multiply=J8,O.nth=sh,O.noConflict=R8,O.noop=tv,O.now=N,O.pad=Z4,O.padEnd=e8,O.padStart=t8,O.parseInt=n8,O.random=q4,O.reduce=qy,O.reduceRight=Wf,O.repeat=r8,O.replace=i8,O.result=M4,O.round=Z8,O.runInContext=q,O.sample=o,O.size=y,O.snakeCase=s8,O.some=w,O.sortedIndex=ah,O.sortedIndexBy=Ay,O.sortedIndexOf=co,O.sortedLastIndex=F1,O.sortedLastIndexBy=lh,O.sortedLastIndexOf=Vo,O.startCase=a8,O.startsWith=l8,O.subtract=e7,O.sum=t7,O.sumBy=n7,O.template=u8,O.times=j8,O.toFinite=Jo,O.toInteger=ht,O.toLength=Aw,O.toLower=c8,O.toNumber=es,O.toSafeInteger=c4,O.toString=Ht,O.toUpper=f8,O.trim=d8,O.trimEnd=p8,O.trimStart=h8,O.truncate=m8,O.unescape=g8,O.uniqueId=H8,O.upperCase=y8,O.upperFirst=Xy,O.each=Bf,O.eachRight=Lu,O.first=qo,ev(O,function(){var a={};return Mr(O,function(u,m){Rt.call(O.prototype,m)||(a[m]=u)}),a}(),{chain:!1}),O.VERSION=r,Wn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){O[a].placeholder=O}),Wn(["drop","take"],function(a,u){ut.prototype[a]=function(m){m=m===n?1:gn(ht(m),0);var S=this.__filtered__&&!u?new ut(this):this.clone();return S.__filtered__?S.__takeCount__=qn(m,S.__takeCount__):S.__views__.push({size:qn(m,$),type:a+(S.__dir__<0?"Right":"")}),S},ut.prototype[a+"Right"]=function(m){return this.reverse()[a](m).reverse()}}),Wn(["filter","map","takeWhile"],function(a,u){var m=u+1,S=m==Re||m==fe;ut.prototype[a]=function(T){var A=this.clone();return A.__iteratees__.push({iteratee:Ge(T,3),type:m}),A.__filtered__=A.__filtered__||S,A}}),Wn(["head","last"],function(a,u){var m="take"+(u?"Right":"");ut.prototype[a]=function(){return this[m](1).value()[0]}}),Wn(["initial","tail"],function(a,u){var m="drop"+(u?"":"Right");ut.prototype[a]=function(){return this.__filtered__?new ut(this):this[m](1)}}),ut.prototype.compact=function(){return this.filter(li)},ut.prototype.find=function(a){return this.filter(a).head()},ut.prototype.findLast=function(a){return this.reverse().find(a)},ut.prototype.invokeMap=pt(function(a,u){return typeof a=="function"?new ut(this):this.map(function(m){return ei(m,a,u)})}),ut.prototype.reject=function(a){return this.filter(we(Ge(a)))},ut.prototype.slice=function(a,u){a=ht(a);var m=this;return m.__filtered__&&(a>0||u<0)?new ut(m):(a<0?m=m.takeRight(-a):a&&(m=m.drop(a)),u!==n&&(u=ht(u),m=u<0?m.dropRight(-u):m.take(u-a)),m)},ut.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},ut.prototype.toArray=function(){return this.take($)},Mr(ut.prototype,function(a,u){var m=/^(?:filter|find|map|reject)|While$/.test(u),S=/^(?:head|last)$/.test(u),T=O[S?"take"+(u=="last"?"Right":""):u],A=S||/^find/.test(u);T&&(O.prototype[u]=function(){var M=this.__wrapped__,U=S?[1]:arguments,V=M instanceof ut,se=U[0],le=V||ct(M),me=function(wt){var xt=T.apply(O,Vs([wt],U));return S&&be?xt[0]:xt};le&&m&&typeof se=="function"&&se.length!=1&&(V=le=!1);var be=this.__chain__,ze=!!this.__actions__.length,Je=A&&!be,mt=V&&!ze;if(!A&&le){M=mt?M:new ut(this);var Ze=a.apply(M,U);return Ze.__actions__.push({func:Ti,args:[me],thisArg:n}),new Vn(Ze,be)}return Je&&mt?a.apply(this,U):(Ze=this.thru(me),Je?S?Ze.value()[0]:Ze.value():Ze)})}),Wn(["pop","push","shift","sort","splice","unshift"],function(a){var u=ds[a],m=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",S=/^(?:pop|shift)$/.test(a);O.prototype[a]=function(){var T=arguments;if(S&&!this.__chain__){var A=this.value();return u.apply(ct(A)?A:[],T)}return this[m](function(M){return u.apply(ct(M)?M:[],T)})}}),Mr(ut.prototype,function(a,u){var m=O[u];if(m){var S=m.name+"";Rt.call(Ha,S)||(Ha[S]=[]),Ha[S].push({name:u,func:m})}}),Ha[nl(n,L).name]=[{name:"wrapper",func:n}],ut.prototype.clone=Xc,ut.prototype.reverse=Ep,ut.prototype.value=Wa,O.prototype.at=$f,O.prototype.chain=Yo,O.prototype.commit=jf,O.prototype.next=fh,O.prototype.plant=Uy,O.prototype.reverse=ph,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=Hy,O.prototype.first=O.prototype.head,hs&&(O.prototype[hs]=dh),O},Ma=Cy();ji?((ji.exports=Ma)._=Ma,Ql._=Ma):Jt._=Ma}).call(XA)}(kh,kh.exports)),kh.exports}var tx=JA();const ag=({icon:e,label:t,badge:n,route:r,isSelected:s,hideLabel:l})=>P.jsxs(So,{to:r,className:"bg-m-gray-900 hover:bg-m-gray-800 flex min-h-12 items-center gap-3 rounded-md p-3 transition-colors",children:[P.jsx(e,{className:s?"text-m-pink-700":"text-m-gray-400"}),!l&&P.jsxs("div",{className:"flex gap-x-2",children:[P.jsx("span",{className:"text-white",children:t}),!tx.isEmpty(n)&&P.jsx("span",{className:"bg-m-pink-900 flex flex-row items-center rounded-xl px-2 py-1 text-xs font-semibold text-white",children:n})]})]}),ZA=e=>C.createElement("svg",{width:22,height:16,viewBox:"0 0 22 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M18.2701 1.33C16.9401 0.71 15.5001 0.26 14.0001 0C13.9737 0.000375705 13.9486 0.0111588 13.9301 0.0300002C13.7501 0.36 13.5401 0.79 13.4001 1.12C11.8091 0.880151 10.1911 0.880151 8.60012 1.12C8.46012 0.78 8.25012 0.36 8.06012 0.0300002C8.05012 0.0100002 8.02012 0 7.99012 0C6.49012 0.26 5.06012 0.71 3.72012 1.33C3.71012 1.33 3.70012 1.34 3.69012 1.35C0.970117 5.42 0.220117 9.38 0.590117 13.3C0.590117 13.32 0.600117 13.34 0.620117 13.35C2.42012 14.67 4.15012 15.47 5.86012 16C5.89012 16.01 5.92012 16 5.93012 15.98C6.33012 15.43 6.69012 14.85 7.00012 14.24C7.02012 14.2 7.00012 14.16 6.96012 14.15C6.39012 13.93 5.85012 13.67 5.32012 13.37C5.28012 13.35 5.28012 13.29 5.31012 13.26C5.42012 13.18 5.53012 13.09 5.64012 13.01C5.66012 12.99 5.69012 12.99 5.71012 13C9.15012 14.57 12.8601 14.57 16.2601 13C16.2801 12.99 16.3101 12.99 16.3301 13.01C16.4401 13.1 16.5501 13.18 16.6601 13.27C16.7001 13.3 16.7001 13.36 16.6501 13.38C16.1301 13.69 15.5801 13.94 15.0101 14.16C14.9701 14.17 14.9601 14.22 14.9701 14.25C15.2901 14.86 15.6501 15.44 16.0401 15.99C16.0701 16 16.
1471001 16.01 16.1301 16C17.8501 15.47 19.5801 14.67 21.3801 13.35C21.4001 13.34 21.4101 13.32 21.4101 13.3C21.8501 8.77 20.6801 4.84 18.3101 1.35C18.3001 1.34 18.2901 1.33 18.2701 1.33ZM7.52012 10.91C6.49012 10.91 5.63012 9.96 5.63012 8.79C5.63012 7.62 6.47012 6.67 7.52012 6.67C8.58012 6.67 9.42012 7.63 9.41012 8.79C9.41012 9.96 8.57012 10.91 7.52012 10.91ZM14.4901 10.91C13.4601 10.91 12.6001 9.96 12.6001 8.79C12.6001 7.62 13.4401 6.67 14.4901 6.67C15.5501 6.67 16.3901 7.63 16.3801 8.79C16.3801 9.96 15.5501 10.91 14.4901 10.91Z",fill:"currentColor"})),eP=e=>C.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M15.6868 0.0629883L10.6908 5.77399L6.37082 0.0629883H0.111816L7.58882 9.83899L0.502816 17.938H3.53682L9.00582 11.688L13.7858 17.938H19.8878L12.0938 7.63399L18.7188 0.0629883H15.6868ZM14.6228 16.123L3.65382 1.78199H5.45682L16.3028 16.122L14.6228 16.123Z",fill:"currentColor"})),YS=()=>P.jsxs("div",{className:"flex items-center gap-4 pb-6 pl-2",children:[P.jsx("a",{href:"https://discord.gg/hXJvdR46ac",className:"text-m-gray-400 hover:text-white","aria-label":"Discord",children:P.jsx(ZA,{})}),P.jsx("a",{href:"https://x.com/DesirexAI",className:"text-m-gray-400 hover:text-white","aria-label":"X",children:P.jsx(eP,{})})]}),QS=()=>P.jsx("div",{className:"text-m-gray-300 px-2 pb-2 text-xs",children:P.jsxs("div",{className:"flex flex-wrap gap-2",children:[P.jsx(So,{to:"https://affiliate.desirex.ai/",className:"hover:text-white hover:underline",children:"Affiliate Program"}),P.jsx(So,{to:Be.TAC,className:"hover:text-white hover:underline",children:"Terms & Conditions"}),P.jsx(So,{to:Be.PRIVACY_POLICY,className:"hover:text-white hover:underline",children:"Privacy Policy"})]})}),tP=e=>C.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.9993 25.4287C20.3112 25.4287 25.4279 20.3119 25.4279 14.0001C25.4279 7.68826 20.3112 2.57151 13.9993 2.57151C7.68752 2.57151 2.57078 7.68826 2.57078 14.0001C2.57078 20.3119 7.68752 25.4287 13.9993 25.4287ZM13.9993 27.3334C21.3631 27.3334 27.3327 21.3639 27.3327 14.0001C27.3327 6.63628 21.3631 0.666748 13.9993 0.666748C6.63555 0.666748 0.666016 6.63628 0.666016 14.0001C0.666016 21.3639 6.63555 27.3334 13.9993 27.3334Z",fill:"#E93774"}),C.createElement("path",{d:"M12.3914 7.18695C13.7968 7.18695 14.9505 8.21479 15.1603 9.55726C15.1813 9.7041 15.0134 9.80898 14.8876 9.72507C14.2163 9.20067 13.3983 8.94895 12.5802 8.94895H11.007C9.60157 8.94895 8.44788 7.92112 8.23812 6.57864C8.21714 6.43181 8.38495 6.32692 8.51081 6.41083C9.18205 6.93524 10.0001 7.18695 10.8182 7.18695H12.3914Z",fill:"#E93774"}),C.createElement("path",{d:"M11.3216 21.304C11.7202 20.7166 11.846 19.9195 11.4475 19.1015C11.1119 18.4092 10.3777 18.0317 9.60157 18.0317C7.75566 18.0317 6.26635 16.3326 6.11952 14.172C6.11952 14.0462 6.26635 13.9833 6.35026 14.0462C7.27321 14.8223 8.44788 15.2208 9.60157 15.2208H11.1328C12.2446 15.2208 13.3563 15.5984 14.2373 16.3745C14.3422 16.4584 14.489 16.3745 14.4681 16.2487C14.3002 14.4867 12.8109 13.1022 10.986 13.1022H9.60157C7.39907 13.1022 5.59511 11.4032 5.4273 9.24262C5.4273 9.11677 5.57413 9.03286 5.65804 9.11677C6.58099 9.89289 7.75566 10.2914 8.90936 10.2914H10.3148C13.2514 10.2914 16.1671 11.3822 18.4535 13.5428C18.5584 13.6267 18.7053 13.5637 18.7053 13.4379C18.6214 11.7807 17.9291 10.2914 16.8593 9.15872C16.7754 9.07481 16.8384 8.907 16.9642 8.92798C19.8589 9.13774 22.1873 11.55 22.1873 14.5286C22.1873 14.5496 22.1873 14.5706 22.1873 14.6125C22.1663 18.4512 18.9989 21.5347 15.1603 21.5347C13.5871 21.5347 12.0558 21.5347 11.4475 21.5347C11.3216 21.5137 11.2587 21.3879 11.3216 21.304Z",fill:"#E93774"})),nP=e=>C.createElement("svg",{width:18,height:17,viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M1.5 15.6667C3.44649 13.6021 6.08918 12.3333 9 12.3333C11.9108 12.3333 14.5535 13.6021 16.5 15.6667M12.75 5.25C12.75 7.32107 11.0711 9 9 9C6.92893 9 5.25 7.32107 5.25 5.25C5.25 3.17893 6.92893 1.5 9 1.5C11.0711 1.5 12.75 3.17893 12.75 5.25Z",stroke:"#94969C",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"})),rP=e=>C.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M12.3333 13.1667L16.5 9M16.5 9L12.3333 4.83333M16.5 9H6.5M6.5 1.5H5.5C4.09987 1.5 3.3998 1.5 2.86502 1.77248C2.39462 2.01217 2.01217 2.39462 1.77248 2.86502C1.5 3.3998 1.5 4.09987 1.5 5.5V12.5C1.5 13.9001 1.5 14.6002 1.77248 15.135C2.01217 15.6054 2.39462 15.9878 2.86502 16.2275C3.3998 16.5 4.09987 16.5 5.5 16.5H6.5",stroke:"#94969C",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"})),iP=fm("bg-m-gray-700/25 hover:bg-m-gray-700/50 flex cursor-pointer items-center justify-center rounded-lg",{variants:{size:{lg:"p-2",md:"p-3"}},defaultVariants:{size:"md"}}),sP=fm("text-m-gray-500",{variants:{size:{lg:"h-6 w-6",md:"h-4 w-4"}},defaultVariants:{size:"md"}}),XS=C.forwardRef(({icon:e,size:t,border:n,className:r,disabled:s,...l},c)=>P.jsx("button",{className:ca(iP({size:t}),r,{"border border-white/12":n}),ref:c,disabled:s,...l,children:P.jsx(e,{className:ca(sP({size:t}))})})),JS=({openSignInDialog:e,logout:t,className:n})=>{var d;const r=Ea(),{isAuthenticated:s}=k0(),c=(((d=G9({queryKey:["user","me","coins"],queryFn:()=>om.v1.usersMeCoinsList(),enabled:s}
147).data)==null?void 0:d.amount)??0).toLocaleString("en-US");return P.jsx(P.Fragment,{children:P.jsxs("div",{className:ca("w-full items-center justify-between gap-2",n),children:[s&&P.jsxs(P.Fragment,{children:[P.jsxs(So,{to:Be.COINS,className:"flex items-center gap-2 pr-4 hover:opacity-80 transition-opacity",children:[P.jsx(tP,{}),P.jsxs("div",{className:"flex flex-col whitespace-nowrap",children:[P.jsx("span",{className:"text-m-gray-300 text-xs font-light",children:"D-Coins:"}),P.jsx("span",{className:"text-md font-medium text-white",children:c})]})]}),P.jsxs("div",{className:"flex gap-2",children:[P.jsx(XS,{icon:nP,size:"md",border:!0,onClick:()=>r(Be.EDIT_MY_PROFILE)}),P.jsx(XS,{icon:rP,size:"md",border:!0,onClick:t})]})]}),!s&&P.jsx("button",{className:"bg-m-pink-800/20 border-m-pink-200/20 text-m-pink-700 text-md flex w-full cursor-pointer items-center justify-center rounded-lg border px-4 py-2 font-semibold whitespace-nowrap",onClick:()=>e(),children:"Sign in"})]})})},oP="admin:full",aP="moderator:full",lP=e=>{var t;return(t=e==null?void 0:e.permissions)==null?void 0:t.includes(oP)},Jg=e=>{var t;return lP(e)||((t=e==null?void 0:e.permissions)==null?void 0:t.includes(aP))},uP=({open:e,onClose:t})=>P.jsxs(Il,{open:e,onClose:t,className:"relative z-[9999]",children:[P.jsx("div",{className:"bg-opacity-40 fixed inset-0 backdrop-blur-xs","aria-hidden":"true"}),P.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:P.jsxs(Il.Panel,{className:"bg-m-gray-900 border-m-gray-700 mx-auto flex max-h-full w-md flex-col items-center overflow-y-auto rounded-xl border p-6",children:[P.jsx("div",{className:"flex w-full justify-end",children:P.jsx("button",{onClick:t,className:"cursor-pointer text-white",children:P.jsx(Dd,{size:24})})}),P.jsx(W5,{className:"h-14 w-14 flex-shrink-0"}),P.jsx("div",{className:"py-5 text-3xl font-medium text-white",children:"Not yet, fam!"}),P.jsx("span",{className:"text-m-gray-500 text-md pb-8 text-center font-light",children:"Devs are still cooking this one up. It's gonna slap, coming soon!"})]})})]}),ZS=({icon:e,iconColor:t,children:n})=>P.jsxs("div",{className:"text-m-gray-300 flex w-1/2 flex-row items-center justify-center gap-x-1 pt-4 text-xs font-light whitespace-nowrap",children:[P.jsx(e,{size:16,className:t}),n]}),cP=({open:e,onClose:t})=>{const n=Ea(),r=[["Talk as much as you want","no limits, no interruptions"],["Explore every fantasy","chat with any character you crave"],["Create your dream lovers","build exactly who turns you on"],["Unlock deeper pleasure","with smarter, more intense AI"],["Pick up where you left off","your chats remember everything"],["Keep your favorites forever","never lose a connection you love"]];return P.jsxs(Il,{open:e,onClose:t,className:"relative z-[9999]",children:[P.jsx("div",{className:"bg-opacity-40 fixed inset-0 backdrop-blur-xs","aria-hidden":"true"}),P.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:P.jsxs(Il.Panel,{className:"bg-m-gray-900 border-m-gray-700 items-left mx-auto flex max-h-full w-md flex-col overflow-y-auto rounded-xl border",children:[P.jsxs("div",{className:"relative h-96 w-full",children:[P.jsx("div",{className:"absolute inset-0 bg-cover bg-[position:50%_20%]",style:{backgroundImage:"url(/upgrade.jpeg)"}}),P.jsx("div",{className:"to-m-gray-900 absolute inset-0 bg-gradient-to-b from-black/10 via-black/1"}),P.jsxs("div",{className:"relative flex items-start justify-between p-4",children:[P.jsxs("span",{className:"bg-m-pink-900 flex flex-row items-center gap-x-1 rounded-lg px-2 py-1 text-sm font-semibold text-white",children:[P.jsx(aR,{size:16})," Free limits reached"]}),P.jsx("button",{onClick:t,className:"cursor-pointer text-white",children:P.jsx(Dd,{size:24})})]})]}),P.jsxs("div",{className:"relative -mt-16 flex flex-col items-center justify-center px-6 pb-4 text-white",children:[P.jsxs("h1",{className:"mb-1 flex flex-row items-center justify-center gap-x-2 text-3xl font-bold",children:[P.jsxs("span",{className:"text-m-pink-700 flex flex-row items-center gap-x-1",children:[P.jsx(sR,{size:24})," Unlock"]}),"Premium"]}),P.jsx("span",{className:"text-m-gray-300 mt-1 mb-5 block text-sm",children:"Continue with premium benef
147its"}),P.jsx("div",{className:"text-m-gray-300 bg-m-gray-800 border-m-gray-700 flex w-full flex-col gap-y-2 rounded-xl border p-4 text-sm",children:r.map((s,l)=>P.jsxs("div",{className:"flex items-start",children:[P.jsx(Vg,{className:"text-m-pink-700 mt-0.5 mr-1 shrink-0",size:16}),P.jsxs("div",{children:[P.jsx("span",{className:"font-semibold text-white",children:s[0]}),P.jsx("span",{className:"text-m-gray-300 mx-1",children:"—"}),P.jsxs("span",{className:"text-m-gray-300",children:[s[1],"."]})]})]},l))}),P.jsxs("div",{className:"bg-m-pink-800/20 text-m-pink-700 border-m-pink-400/16 mt-4 w-full items-center justify-center rounded-lg border px-4 py-2 text-center text-sm text-white",children:["Get up to ",P.jsx("span",{className:"text-m-pink-700 font-bold",children:"60% OFF"})," your subscription!"]}),P.jsx(wd,{type:"submit",leadingIcon:dR,label:"Unlock Premium",className:"mt-4 w-full font-bold",loading:!1,onClick:()=>{t(),n(Be.SUBSCRIBE)}}),P.jsxs("div",{className:"flex flex-row gap-x-5",children:[P.jsx(ZS,{icon:Vg,iconColor:"text-m-green-500",children:"Discreet billing"}),P.jsx(ZS,{icon:rR,iconColor:"text-m-pink-700",children:"Secure payment"})]})]})]})})]})};var Ev,eE;function fP(){if(eE)return Ev;eE=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(l,c){if(l===c)return!0;if(l&&c&&typeof l=="object"&&typeof c=="object"){if(l.constructor!==c.constructor)return!1;var d,p,g;if(Array.isArray(l)){if(d=l.length,d!=c.length)return!1;for(p=d;p--!==0;)if(!s(l[p],c[p]))return!1;return!0}var v;if(t&&l instanceof Map&&c instanceof Map){if(l.size!==c.size)return!1;for(v=l.entries();!(p=v.next()).done;)if(!c.has(p.value[0]))return!1;for(v=l.entries();!(p=v.next()).done;)if(!s(p.value[1],c.get(p.value[0])))return!1;return!0}if(n&&l instanceof Set&&c instanceof Set){if(l.size!==c.size)return!1;for(v=l.entries();!(p=v.next()).done;)if(!c.has(p.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(l)&&ArrayBuffer.isView(c)){if(d=l.length,d!=c.length)return!1;for(p=d;p--!==0;)if(l[p]!==c[p])return!1;return!0}if(l.constructor===RegExp)return l.source===c.source&&l.flags===c.flags;if(l.valueOf!==Object.prototype.valueOf&&typeof l.valueOf=="function"&&typeof c.valueOf=="function")return l.valueOf()===c.valueOf();if(l.toString!==Object.prototype.toString&&typeof l.toString=="function"&&typeof c.toString=="function")return l.toString()===c.toString();if(g=Object.keys(l),d=g.length,d!==Object.keys(c).length)return!1;for(p=d;p--!==0;)if(!Object.prototype.hasOwnProperty.call(c,g[p]))return!1;if(e&&l instanceof Element)return!1;for(p=d;p--!==0;)if(!((g[p]==="_owner"||g[p]==="__v"||g[p]==="__o")&&l.$$typeof)&&!s(l[g[p]],c[g[p]]))return!1;return!0}return l!==l&&c!==c}return Ev=function(c,d){try{return s(c,d)}catch(p){if((p.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw p}},Ev}var dP=fP();const pP=em(dP);var Cv,tE;function hP(){if(tE)return Cv;tE=1;var e=function(t,n,r,s,l,c,d,p){if(!t){var g;if(n===void 0)g=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var v=[r,s,l,c,d,p],_=0;g=new Error(n.replace(/%s/g,function(){return v[_++]})),g.name="Invariant Violation"}throw g.framesToPop=1,g}};return Cv=e,Cv}var mP=hP();const nE=em(mP);var xv,rE;function gP(){return rE||(rE=1,xv=function(t,n,r,s){var l=r?r.call(s,t,n):void 0;if(l!==void 0)return!!l;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var c=Object.keys(t),d=Object.keys(n);if(c.length!==d.length)return!1;for(var p=Object.prototype.hasOwnProperty.bind(n),g=0;g<c.length;g++){var v=c[g];if(!p(v))return!1;var _=t[v],E=n[v];if(l=r?r.call(s,_,E,v):void 0,l===!1||l===void 0&&_!==E)return!1}return!0}),xv}var yP=gP();const vP=em(yP);var nx=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(nx||{}),bv={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]}
147,meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},iE=Object.values(nx),W_={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_P=Object.entries(W_).reduce((e,[t,n])=>(e[n]=t,e),{}),Ms="data-rh",id={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},sd=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},wP=e=>{let t=sd(e,"title");const n=sd(e,id.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=sd(e,id.DEFAULT_TITLE);return t||r||void 0},SP=e=>sd(e,id.ON_CHANGE_CLIENT_STATE)||(()=>{}),Tv=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),EP=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let l=0;l<s.length;l+=1){const d=s[l].toLowerCase();if(e.indexOf(d)!==-1&&r[d])return n.concat(r)}}return n},[]),CP=e=>console&&typeof console.warn=="function"&&console.warn(e),Eh=(e,t,n)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&CP(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,l)=>{const c={};l.filter(p=>{let g;const v=Object.keys(p);for(let E=0;E<v.length;E+=1){const x=v[E],b=x.toLowerCase();t.indexOf(b)!==-1&&!(g==="rel"&&p[g].toLowerCase()==="canonical")&&!(b==="rel"&&p[b].toLowerCase()==="stylesheet")&&(g=b),t.indexOf(x)!==-1&&(x==="innerHTML"||x==="cssText"||x==="itemprop")&&(g=x)}if(!g||!p[g])return!1;const _=p[g].toLowerCase();return r[g]||(r[g]={}),c[g]||(c[g]={}),r[g][_]?!1:(c[g][_]=!0,!0)}).reverse().forEach(p=>s.push(p));const d=Object.keys(c);for(let p=0;p<d.length;p+=1){const g=d[p],v={...r[g],...c[g]};r[g]=v}return s},[]).reverse()},xP=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},bP=e=>({baseTag:EP(["href"],e),bodyAttributes:Tv("bodyAttributes",e),defer:sd(e,id.DEFER),encode:sd(e,id.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Tv("htmlAttributes",e),linkTags:Eh("link",["rel","href"],e),metaTags:Eh("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Eh("noscript",["innerHTML"],e),onChangeClientState:SP(e),scriptTags:Eh("script",["src","innerHTML"],e),styleTags:Eh("style",["cssText"],e),title:wP(e),titleAttributes:Tv("titleAttributes",e),prioritizeSeoTags:xP(e,id.PRIORITIZE_SEO_TAGS)}),rx=e=>Array.isArray(e)?e.join(""):e,TP=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},kv=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(TP(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},sE=(e,t)=>({...e,[t]:void 0}),kP=["noscript","script","style"],P2=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),ix=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),RP=(e,t,n,r)=>{const s=ix(n),l=rx(t);return s?`<${e} ${Ms}="true" ${s}>${P2(l,r)}</${e}>`:`<${e} ${Ms}="true">${P2(l,r)}</${e}>`},IP=(e,t,n=!0)=>t.reduce((r,s)=>{const l=s,c=Object.keys(l).filter(g=>!(g==="innerHTML"||g==="cssText")).reduce((g,v)=>{const _=typeof l[v]>"u"?v:`${v}="${P2(l[v],n)}"`;return g?`${g} ${_}`:_},""),d=l.innerHTML||l.cssText||"",p=kP.indexOf(e)===-1;return`${r}<${e} ${Ms}="true" ${c}${p?"/>":`>${d}</${e}>`}`},""),sx=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=W_[r];return n[s||r]=e[r],n},t),OP=(e,t,n)=>{const r={key:t,[Ms]:!0},s=sx(n,r);return[Me.createElement("title",s,t)]},Og=(e,t)=>t.map((n,r)=>{const s={key:r,[Ms]:!0};
147return Object.keys(n).forEach(l=>{const d=W_[l]||l;if(d==="innerHTML"||d==="cssText"){const p=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:p}}else s[d]=n[l]}),Me.createElement(e,s)}),ns=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>OP(e,t.title,t.titleAttributes),toString:()=>RP(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>sx(t),toString:()=>ix(t)};default:return{toComponent:()=>Og(e,t),toString:()=>IP(e,t,n)}}},AP=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=kv(e,bv.meta),l=kv(t,bv.link),c=kv(n,bv.script);return{priorityMethods:{toComponent:()=>[...Og("meta",s.priority),...Og("link",l.priority),...Og("script",c.priority)],toString:()=>`${ns("meta",s.priority,r)} ${ns("link",l.priority,r)} ${ns("script",c.priority,r)}`},metaTags:s.default,linkTags:l.default,scriptTags:c.default}},PP=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:l,styleTags:c,title:d="",titleAttributes:p,prioritizeSeoTags:g}=e;let{linkTags:v,metaTags:_,scriptTags:E}=e,x={toComponent:()=>{},toString:()=>""};return g&&({priorityMethods:x,linkTags:v,metaTags:_,scriptTags:E}=AP(e)),{priority:x,base:ns("base",t,r),bodyAttributes:ns("bodyAttributes",n,r),htmlAttributes:ns("htmlAttributes",s,r),link:ns("link",v,r),meta:ns("meta",_,r),noscript:ns("noscript",l,r),script:ns("script",E,r),style:ns("style",c,r),title:ns("title",{title:d,titleAttributes:p},r)}},L2=PP,lg=[],ox=!!(typeof window<"u"&&window.document&&window.document.createElement),N2=class{constructor(e,t){Ln(this,"instances",[]);Ln(this,"canUseDOM",ox);Ln(this,"context");Ln(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?lg:this.instances,add:e=>{(this.canUseDOM?lg:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?lg:this.instances).indexOf(e);(this.canUseDOM?lg:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=L2({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},LP={},ax=Me.createContext(LP),ec,lx=(ec=class extends C.Component{constructor(n){super(n);Ln(this,"helmetData");this.helmetData=new N2(this.props.context||{},ec.canUseDOM)}render(){return Me.createElement(ax.Provider,{value:this.helmetData.value},this.props.children)}},Ln(ec,"canUseDOM",ox),ec),Kf=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Ms}]`),s=[].slice.call(r),l=[];let c;return t&&t.length&&t.forEach(d=>{const p=document.createElement(e);for(const g in d)if(Object.prototype.hasOwnProperty.call(d,g))if(g==="innerHTML")p.innerHTML=d.innerHTML;else if(g==="cssText")p.styleSheet?p.styleSheet.cssText=d.cssText:p.appendChild(document.createTextNode(d.cssText));else{const v=g,_=typeof d[v]>"u"?"":d[v];p.setAttribute(g,_)}p.setAttribute(Ms,"true"),s.some((g,v)=>(c=v,p.isEqualNode(g)))?s.splice(c,1):l.push(p)}),s.forEach(d=>{var p;return(p=d.parentNode)==null?void 0:p.removeChild(d)}),l.forEach(d=>n.appendChild(d)),{oldTags:s,newTags:l}},M2=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Ms),s=r?r.split(","):[],l=[...s],c=Object.keys(t);for(const d of c){const p=t[d]||"";n.getAttribute(d)!==p&&n.setAttribute(d,p),s.indexOf(d)===-1&&s.push(d);const g=l.indexOf(d);g!==-1&&l.splice(g,1)}for(let d=l.length-1;d>=0;d-=1)n.removeAttribute(l[d]);s.length===l.length?n.removeAttribute(Ms):n.getAttribute(Ms)!==c.join(",")&&n.setAttribute(Ms,c.join(","))},NP=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=rx(e)),M2("title",t)},oE=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:l,metaTags:c,noscriptTags:d,onChangeClientState:p,scriptTags:g,styleTags:v,title:_,titleAttributes:E}=e;M2("body",r),M2("html",s),NP(_,E);const x={baseTag:Kf("base",n),linkTags:Kf("link",l),metaTags:Kf("meta",c),noscriptTags:Kf("noscript",d),scriptTags:Kf("script",g),styleTags:Kf("style",v)},b={},R={};Object.keys(x).forEach(I=>{const{newTags:L,oldTags:H}=x[I];L.length&&(b[I]=L),H.length&&(R[I]=x[I].oldTags)}),t&&t(),p(e,b,R)},Ch=null,MP=e=>{Ch&&cancelAnimationFrame(Ch),e.defer?Ch=requestAnimationFrame(()=>{oE(e,()=>{Ch=null})}):(oE(e),Ch=null)},DP=MP,aE=class extends C.Component{constructor(){super(...arguments);Ln(this,"rendered",!1)}shouldComponentUpdate(t){return!vP(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=bP(t.get().map(l=>{const c={...l.props};return delete c.context,c}));lx.canUseDOM?DP(s):L2&&(r=L2(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Kv,FP=(Kv=class extends C.Component{shouldComponentUpdate(e){return!pP(sE(this.props,"helmetData"),sE(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}
147warnOnInvalidChildren(e,t){return nE(iE.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${iE.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),nE(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return Me.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...l}=r.props,c=Object.keys(l).reduce((p,g)=>(p[_P[g]||g]=l[g],p),{});let{type:d}=r;switch(typeof d=="symbol"?d=d.toString():this.warnOnInvalidChildren(r,s),d){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,c,s);break;default:t=this.mapObjectTypeChildren(r,t,c,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof N2)){const s=r;r=new N2(s.context,!0),delete n.helmetData}return r?Me.createElement(aE,{...n,context:r.value}):Me.createElement(ax.Consumer,null,s=>Me.createElement(aE,{...n,context:s}))}},Ln(Kv,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Kv);const $P=()=>P.jsx(FP,{children:P.jsx("link",{rel:"canonical",href:`${Ls.appBaseUrl}${location.pathname}`})}),Ag=[{code:"",name:"English",flag:"🇺🇸"},{code:"pl",name:"Polski",flag:"🇵🇱"},{code:"es",name:"Español",flag:"🇪🇸"},{code:"ja",name:"日本語",flag:"🇯🇵"},{code:"de",name:"Deutsch",flag:"🇩🇪"},{code:"fr",name:"Français",flag:"🇫🇷"},{code:"ko",name:"한국어",flag:"🇰🇷"},{code:"zh-CN",name:"中文",flag:"🇨🇳"},{code:"vi",name:"Tiếng Việt",flag:"🇻🇳"},{code:"it",name:"Italiano",flag:"🇮🇹"},{code:"nl",name:"Nederlands",flag:"🇳🇱"},{code:"ru",name:"Русский",flag:"🇷🇺"}],D2=Ag.map(e=>e.code).filter(e=>!tx.isEmpty(e)),jP=({open:e,onClose:t})=>{const n=Ea();return P.jsxs(Il,{open:e,onClose:t,className:"relative z-[9999]",children:[P.jsx("div",{className:"bg-opacity-40 fixed inset-0 backdrop-blur-xs","aria-hidden":"true"}),P.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center p-4",children:P.jsxs(Il.Panel,{className:"bg-m-gray-900 border-m-gray-700 items-left mx-auto flex max-h-full w-md flex-col overflow-y-auto rounded-xl border",children:[P.jsxs("div",{className:"relative h-72 w-full",children:[P.jsx("div",{className:"absolute inset-0 bg-cover bg-[position:50%_20%]",style:{backgroundImage:"url(/coins.jpg)"}}),P.jsx("div",{className:"to-m-gray-900 absolute inset-0 bg-gradient-to-b from-black/10 via-black/1"}),P.jsx("div",{className:"relative flex items-end justify-end p-4",children:P.jsx("button",{onClick:t,className:"cursor-pointer text-white",children:P.jsx(Dd,{size:24})})})]}),P.jsxs("div",{className:"relative flex flex-col items-start justify-start px-6 pb-4 text-white",children:[P.jsx("h1",{className:"my-2 flex flex-row items-center justify-center gap-x-2 text-3xl font-bold",children:"Oh no, looks like you have ran out of D-coins"}),P.jsx("span",{className:"text-m-gray-300 mt-1 mb-1 block text-sm font-extralight",children:"No worries, you can always top-up your account with D-coin packs and continue using all of our features"}),P.jsx(wd,{type:"submit",label:"Buy D-coins",className:"mt-4 w-full font-bold",loading:!1,onClick:()=>{t(),n(Be.COINS)}}),P.jsxs("div",{className:"text-m-green-500 flex w-full flex-row items-center justify-center gap-x-1 pt-4 text-sm whitespace-nowrap",children:[P.jsx(Vg,{size:16,className:"text-m-green-500"}),"No adult transaction in your bank statement"]})]})]})})]})},lE=[{icon:mR,label:"Home",route:Be.HOME},{icon:gR,label:"Chats",route:Be.MY_CONVERSATIONS},{icon:yR,label:"Create",route:Be.CREATE_CHARACTER},{icon:vR,label:"My characters",route:Be.MY_CHARACTERS},{icon:_R,label:"Favorites",route:Be.FAVORITES},{icon:wR,label:"Subscribe",badge:"75% OFF",route:Be.SUBSCRIBE},{icon:SR,label:"FAQ",route:Be.FAQ}],uE=[{icon:uR,label:"Characters Moderation",route:Be.CHARACTERS_MODERATION}],cE=[Be.ONBOARDING,Be.FAQ,Be.PRIVACY_POLICY,Be.TAC],UP=[Be.MY_CONVERSATIONS,Be.MY_CONVERSATION],HP=()=>{var Fe;const e=P_(),t=$s(),n=Ea(),{isLoading:r,isAuthenticated:s,user:l,refetchUser:c}=k0(),{isLoading:d,isAuthenticated:p,getToken:g,logout:v}=U_.useKindeAuth(),[_,E]=C.useState(!1),[x,b]=C.useState(!1),[R,I]=C.useState(!1),[L,H]=C.useState(!1),[W,Q]=C.useState(!1),[te,D]=C.useState(!1),[Z,ue]=C.useState(!0),[X,ce]=C.useState(""),[ye,de]=C.useState(null),xe=C.useRef(null),Re=C.useRef(null);C.useEffect(()=>{xe.current&&xe.current.scrollTo(0,0)},[t.pathname]),C.useEffect(()=>{(async()=>
147{if(!d&&p&&!k_())try{const Le=await g();if(Le){g9(Le),await c();return}}catch(Le){console.error(Le)}})()},[d,p,g,c]);const We=C.useMemo(()=>!r&&s&&!l,[r,s,l]),fe=C.useMemo(()=>UP.some(oe=>$h(oe,t.pathname)!==null),[t.pathname]),Ie=C.useMemo(()=>{const Le=t.pathname.split("/")[1];return D2.includes(Le)},[t.pathname]);C.useEffect(()=>{We&&!cE.includes(t.pathname)&&n(Be.ONBOARDING,{replace:!0})},[We,t.pathname,n]),C.useEffect(()=>{var oe;((oe=t.state)==null?void 0:oe.requestSignIn)===!0&&(b(!0),window.history.replaceState({...t.state,requestSignIn:!1},document.title,t.pathname))},[(Fe=t.state)==null?void 0:Fe.requestSignIn,b]);const ee=K9({mutationFn:async oe=>await om.v1.conversationsCreate(oe),onSuccess:oe=>{e.invalidateQueries({queryKey:["conversations"]}),n(Be.MY_CONVERSATION.replace(":conversationId",oe.id))}});C.useEffect(()=>{if(l){const oe=GA();oe&&(YA(),oe.type===ex.CREATE_CONVERSATION&&ee.mutate({character_id:oe[oe.type].character_id}))}},[l]),C.useEffect(()=>{E(!1)},[t.pathname]),C.useEffect(()=>{const oe=()=>{window.innerWidth>=768&&E(!1)};return window.addEventListener("resize",oe),()=>window.removeEventListener("resize",oe)},[]);const ve=C.useCallback(()=>{zg(),v(Ls.appBaseUrl)},[v]),_e=C.useCallback(oe=>{de(oe??null),b(!0)},[de,b]),$=C.useCallback(()=>{I(!0)},[I]),re=C.useCallback(()=>{H(!0)},[H]),Oe=C.useCallback(()=>{Q(!0)},[Q]);return P.jsxs(P.Fragment,{children:[P.jsx($P,{}),P.jsx(QA,{open:x,onClose:()=>{de(null),b(!1)},postLoginAction:ye}),P.jsx(cP,{open:R,onClose:()=>I(!1)}),P.jsx(jP,{open:L,onClose:()=>H(!1)}),P.jsx(uP,{open:W,onClose:()=>Q(!1)}),P.jsxs("div",{className:"bg-m-gray-900 flex h-screen flex-col overflow-hidden text-white",children:[_&&P.jsx("div",{className:"bg-opacity-40 fixed inset-0 z-40 backdrop-blur-xs md:hidden",onClick:()=>E(!1)}),P.jsx("div",{className:`bg-m-gray-900 fixed inset-y-0 left-0 z-50 w-64 transform overflow-x-hidden overflow-y-auto transition-transform duration-300 ease-in-out md:hidden ${_?"translate-x-0":"-translate-x-full"}`,children:P.jsxs("div",{className:"flex h-full flex-col",children:[P.jsxs("div",{className:"flex justify-between pt-4 pr-4",children:[P.jsx(So,{to:Be.HOME,className:"flex focus:!shadow-none focus:!outline-none focus-visible:!outline-none","aria-label":"Home",children:P.jsx(CR,{className:"h-7 pl-2"})}),P.jsx("button",{onClick:()=>E(!1),className:"p-0.5 text-gray-400 hover:text-white","aria-label":"Close menu",children:P.jsx(Dd,{size:24})})]}),P.jsxs("nav",{className:"flex-shrink-0 space-y-1 px-2 pt-4 pb-2",children:[lE.map((oe,Le)=>P.jsx(ag,{icon:oe.icon,label:oe.label,badge:oe.badge,route:oe.route,isSelected:oe.route===Be.HOME?t.pathname===oe.route:t.pathname.startsWith(oe.route)},Le)),l&&Jg(l)&&P.jsx("div",{className:"border-m-gray-700 border-t pt-1",children:uE.map((oe,Le)=>P.jsx(ag,{icon:oe.icon,label:oe.label,route:oe.route,isSelected:oe.route===Be.HOME?t.pathname===oe.route:t.pathname.startsWith(oe.route)},Le))})]}),P.jsxs("div",{className:"mt-auto p-2 pb-6",children:[P.jsx(YS,{}),P.jsx(QS,{}),P.jsx("hr",{className:"mt-4 mb-6 w-full border-t border-gray-700"}),P.jsx(JS,{openSignInDialog:_e,logout:ve,openComingSoonDialog:Oe,className:"flex px-2"})]})]})}),P.jsxs("div",{className:"flex h-full flex-1 overflow-hidden",children:[P.jsx("div",{className:ca("border-m-gray-700 bg-m-gray-900 hidden border-r md:block",{"md:w-16":fe,"md:w-64":!fe}),children:P.jsxs("div",{className:"flex h-full flex-col",children:[P.jsx("div",{className:"px-2 pt-0.5 pb-2",children:P.jsxs(So,{to:Be.HOME,className:ca("flex items-center gap-x-3 pt-4 pl-1 focus:!shadow-none focus:!outline-none focus-visible:!outline-none"),"aria-label":"Home",children:[P.jsx(OS,{}),!fe&&P.jsx("h1",{className:"text-[27px] leading-none font-semibold",children:"desirex.ai"})]})}),P.jsxs("nav",{className:"flex-1 space-y-1 overflow-y-auto px-2 pt-16 pb-2",children:[lE.map((oe,Le)=>P.jsx(ag,{icon:oe.icon,label:oe.label,badge:oe.badge,route:oe.route,isSelected:oe.route===Be.HOME?t.pathname===oe.route:t.pathname.startsWith(oe.route),hideLabel:fe},Le)),l&&Jg(l)&&P.jsx("div",{className:"border-m-gray-700 border-t pt-1",children:uE.map((oe,Le)=>P.jsx(ag,{icon:oe.icon,label:oe.label,route:oe.route,isSelected:oe.route===Be.HOME?t.pathname===oe.route:t.pathname.startsWith(oe.route),hideLabel:fe},Le))})]}),P.jsxs("div",{className:"mt-auto p-2",children:[fe&&P.jsxs(P.Fragment,{children:[P.jsx("button",{onClick:()=>D(!te),className:"py-2 pl-3",children:P.jsx(IS,{className:"text-m-gray-400 h-6 w-6 cursor-pointer"})}),te&&P.jsx("div",{className:"bg-m-gray-650 text-m-gray-200 absolute bottom-10 left-10 mt-1 w-40 rounded-md shadow-lg",ref:Re,onMouseLeave:()=>D(!1),children:P.jsxs("ul",{className:"max-h-60 overflow-auto rounded-md py-2 text-sm",role:"menu","aria-orientation":"vertical",children:[P.jsx("li",{onClick:oe=>{oe.stopPropagation(),D(!1),n(Be.TAC)},className:"hover:bg-m-gray-550 mx-2 cursor-pointer rounded-md p-2 text-white",children:"Terms & Conditions"},"Terms & Conditions"),P.jsx("li",{onClick:oe=>{oe.stopPropagation(),D(!1),n(Be.PRIVACY_POLICY)},className:"hover:bg-m-gray-550 mx-2 cursor-pointer rounded-md p-2 text-white",children:"Privacy Policy"},"Privacy Policy")]})})]}),!fe&&P.jsxs(P.Fragment,{children:[P.jsx(YS,{}),P.jsx(QS,{})]})]})]})}),P.jsxs("div",{className:"flex h-full flex-1 flex-col overflow-hidden",children:[Z&&P.jsxs("header",{className:ca("bg-m-gray-950 sticky top-0 z-10 block flex touch-none items-center justify-between p-3",{"md:hidden":fe}),children:[P.jsx(hR,{position:"top-right",color:"rgba(95, 7, 40, 0.7)",size:"300
147px"}),P.jsx("div",{className:"relative z-1 flex w-full items-center md:pr-2",children:!We&&P.jsxs(P.Fragment,{children:[P.jsxs(P.Fragment,{children:[t.pathname===Be.HOME||fe&&P.jsx(So,{to:Be.HOME,className:"flex pr-3 focus:!shadow-none focus:!outline-none focus-visible:!outline-none md:pr-0","aria-label":"Home",children:P.jsx(OS,{className:"mt-1 md:hidden"})}),(t.pathname===Be.HOME||Ie)&&P.jsxs("div",{className:"relative flex w-full",children:[P.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:P.jsx(ER,{className:"h-4 w-4 text-gray-400"})}),P.jsx("input",{type:"text",className:"bg-m-gray-700/25 text-md text-m-gray-600 placeholder-m-gray-600 block w-full rounded-lg border border-white/12 p-2 pl-10 font-extralight focus:ring-0 focus:outline-none",placeholder:"Search characters",value:X,onChange:oe=>{ce(oe.target.value)}})]})]}),t.pathname!==Be.HOME&&!fe&&!Ie&&P.jsx(wd,{leadingIcon:tR,intent:"tertiary",label:"Back",onClick:()=>n(-1),className:"py-2"})]})}),P.jsxs("div",{className:"relative z-1 flex",children:[!fe&&P.jsx(JS,{openSignInDialog:_e,logout:ve,openComingSoonDialog:Oe,className:"hidden pl-2 md:flex"}),P.jsx("button",{onClick:()=>E(!0),className:"py-2 pr-2 pl-5 text-white hover:text-white md:hidden","aria-label":"Menu",children:P.jsx(IS,{className:"h-6 w-6 cursor-pointer text-white"})})]})]}),P.jsx("div",{className:"flex-1 overflow-hidden",children:P.jsx("main",{className:"bg-m-gray-950 h-full overflow-y-auto pb-28 md:pb-0",ref:xe,children:(!We||cE.includes(t.pathname))&&P.jsx(v0,{context:{searchText:X,openSignInModal:_e,mainRef:xe,openComingSoonModal:Oe,setIsHeaderVisible:ue,openUpgradeModal:$,openOutOfCoinsModal:re}})})})]})]})]})]})};let BP={data:""},zP=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||BP,WP=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,qP=/\/\*[^]*?\*\/|  +/g,fE=/\n+/g,ml=(e,t)=>{let n="",r="",s="";for(let l in e){let c=e[l];l[0]=="@"?l[1]=="i"?n=l+" "+c+";":r+=l[1]=="f"?ml(c,l):l+"{"+ml(c,l[1]=="k"?"":t)+"}":typeof c=="object"?r+=ml(c,t?t.replace(/([^,])+/g,d=>l.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,p=>/&/.test(p)?p.replace(/&/g,d):d?d+" "+p:p)):l):c!=null&&(l=/^--/.test(l)?l:l.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=ml.p?ml.p(l,c):l+":"+c+";")}return n+(t&&s?t+"{"+s+"}":s)+r},ea={},ux=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+ux(e[n]);return t}return e},VP=(e,t,n,r,s)=>{let l=ux(e),c=ea[l]||(ea[l]=(p=>{let g=0,v=11;for(;g<p.length;)v=101*v+p.charCodeAt(g++)>>>0;return"go"+v})(l));if(!ea[c]){let p=l!==e?e:(g=>{let v,_,E=[{}];for(;v=WP.exec(g.replace(qP,""));)v[4]?E.shift():v[3]?(_=v[3].replace(fE," ").trim(),E.unshift(E[0][_]=E[0][_]||{})):E[0][v[1]]=v[2].replace(fE," ").trim();return E[0]})(e);ea[c]=ml(s?{["@keyframes "+c]:p}:p,n?"":"."+c)}let d=n&&ea.g?ea.g:null;return n&&(ea.g=ea[c]),((p,g,v,_)=>{_?g.data=g.data.replace(_,p):g.data.indexOf(p)===-1&&(g.data=v?p+g.data:g.data+p)})(ea[c],t,r,d),c},GP=(e,t,n)=>e.reduce((r,s,l)=>{let c=t[l];if(c&&c.call){let d=c(n),p=d&&d.props&&d.props.className||/^go/.test(d)&&d;c=p?"."+p:d&&typeof d=="object"?d.props?"":ml(d,""):d===!1?"":d}return r+s+(c??"")},"");function F0(e){let t=this||{},n=e.call?e(t.p):e;return VP(n.unshift?n.raw?GP(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,zP(t.target),t.g,t.o,t.k)}let cx,F2,$2;F0.bind({g:1});let ma=F0.bind({k:1});function KP(e,t,n,r){ml.p=t,cx=e,F2=n,$2=r}function Fl(e,t){let n=this||{};return function(){let r=arguments;function s(l,c){let d=Object.assign({},l),p=d.className||s.className;n.p=Object.assign({theme:F2&&F2()},d),n.o=/ *go\d+/.test(p),d.className=F0.apply(n,r)+(p?" "+p:"");let g=e;return e[0]&&(g=d.as||e,delete d.as),$2&&g[0]&&$2(d),cx(g,d)}return s}}var YP=e=>typeof e=="function",Zg=(e,t)=>YP(e)?e(t):e,QP=(()=>{let e=0;return()=>(++e).toString()})(),fx=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),XP=20,dx=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,XP)};
147case 1:return{...e,toasts:e.toasts.map(l=>l.id===t.toast.id?{...l,...t.toast}:l)};case 2:let{toast:n}=t;return dx(e,{type:e.toasts.find(l=>l.id===n.id)?1:0,toast:n});case 3:let{toastId:r}=t;return{...e,toasts:e.toasts.map(l=>l.id===r||r===void 0?{...l,dismissed:!0,visible:!1}:l)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(l=>l.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(l=>({...l,pauseDuration:l.pauseDuration+s}))}}},Pg=[],zu={toasts:[],pausedAt:void 0},gc=e=>{zu=dx(zu,e),Pg.forEach(t=>{t(zu)})},JP={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ZP=(e={})=>{let[t,n]=C.useState(zu),r=C.useRef(zu);C.useEffect(()=>(r.current!==zu&&n(zu),Pg.push(n),()=>{let l=Pg.indexOf(n);l>-1&&Pg.splice(l,1)}),[]);let s=t.toasts.map(l=>{var c,d,p;return{...e,...e[l.type],...l,removeDelay:l.removeDelay||((c=e[l.type])==null?void 0:c.removeDelay)||(e==null?void 0:e.removeDelay),duration:l.duration||((d=e[l.type])==null?void 0:d.duration)||(e==null?void 0:e.duration)||JP[l.type],style:{...e.style,...(p=e[l.type])==null?void 0:p.style,...l.style}}});return{...t,toasts:s}},eL=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||QP()}),dm=e=>(t,n)=>{let r=eL(t,e,n);return gc({type:2,toast:r}),r.id},Br=(e,t)=>dm("blank")(e,t);Br.error=dm("error");Br.success=dm("success");Br.loading=dm("loading");Br.custom=dm("custom");Br.dismiss=e=>{gc({type:3,toastId:e})};Br.remove=e=>gc({type:4,toastId:e});Br.promise=(e,t,n)=>{let r=Br.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(s=>{let l=t.success?Zg(t.success,s):void 0;return l?Br.success(l,{id:r,...n,...n==null?void 0:n.success}):Br.dismiss(r),s}).catch(s=>{let l=t.error?Zg(t.error,s):void 0;l?Br.error(l,{id:r,...n,...n==null?void 0:n.error}):Br.dismiss(r)}),e};var tL=(e,t)=>{gc({type:1,toast:{id:e,height:t}})},nL=()=>{gc({type:5,time:Date.now()})},Ah=new Map,rL=1e3,iL=(e,t=rL)=>{if(Ah.has(e))return;let n=setTimeout(()=>{Ah.delete(e),gc({type:4,toastId:e})},t);Ah.set(e,n)},sL=e=>{let{toasts:t,pausedAt:n}=ZP(e);C.useEffect(()=>{if(n)return;let l=Date.now(),c=t.map(d=>{if(d.duration===1/0)return;let p=(d.duration||0)+d.pauseDuration-(l-d.createdAt);if(p<0){d.visible&&Br.dismiss(d.id);return}return setTimeout(()=>Br.dismiss(d.id),p)});return()=>{c.forEach(d=>d&&clearTimeout(d))}},[t,n]);let r=C.useCallback(()=>{n&&gc({type:6,time:Date.now()})},[n]),s=C.useCallback((l,c)=>{let{reverseOrder:d=!1,gutter:p=8,defaultPosition:g}=c||{},v=t.filter(x=>(x.position||g)===(l.position||g)&&x.height),_=v.findIndex(x=>x.id===l.id),E=v.filter((x,b)=>b<_&&x.visible).length;return v.filter(x=>x.visible).slice(...d?[E+1]:[0,E]).reduce((x,b)=>x+(b.height||0)+p,0)},[t]);return C.useEffect(()=>{t.forEach(l=>{if(l.dismissed)iL(l.id,l.removeDelay);else{let c=Ah.get(l.id);c&&(clearTimeout(c),Ah.delete(l.id))}})},[t]),{toasts:t,handlers:{updateHeight:tL,startPause:nL,endPause:r,calculateOffset:s}}},oL=ma`
148from {
149  transform: scale(0) rotate(45deg);
150	opacity: 0;
151}
152to {
153 transform: scale(1) rotate(45deg);
154  opacity: 1;
155}`,aL=ma`
156from {
157  transform: scale(0);
158  opacity: 0;
159}
160to {
161  transform: scale(1);
162  opacity: 1;
163}`,lL=ma`
164from {
165  transform: scale(0) rotate(90deg);
166	opacity: 0;
167}
168to {
169  transform: scale(1) rotate(90deg);
170	opacity: 1;
171}`,uL=Fl("div")`
172  width: 20px;
173  opacity: 0;
174  height: 20px;
175  border-radius: 10px;
176  background: ${e=>e.primary||"#ff4b4b"};
177  position: relative;
178  transform: rotate(45deg);
179
180  animation: ${oL} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
181    forwards;
182  animation-delay: 100ms;
183
184  &:after,
185  &:before {
186    content: '';
187    animation: ${aL} 0.15s ease-out forwards;
188    animation-delay: 150ms;
189    position: absolute;
190    border-radius: 3px;
191    opacity: 0;
192    background: ${e=>e.secondary||"#fff"};
193    bottom: 9px;
194    left: 4px;
195    height: 2px;
196    width: 12px;
197  }
198
199  &:before {
200    animation: ${lL} 0.15s ease-out forwards;
201    animation-delay: 180ms;
202    transform: rotate(90deg);
203  }
204`,cL=ma`
205  from {
206    transform: rotate(0deg);
207  }
208  to {
209    transform: rotate(360deg);
210  }
211`,fL=Fl("div")`
212  width: 12px;
213  height: 12px;
214  box-sizing: border-box;
215  border: 2px solid;
216  border-radius: 100%;
217  border-color: ${e=>e.secondary||"#e0e0e0"};
218  border-right-color: ${e=>e.primary||"#616161"};
219  animation: ${cL} 1s linear infinite;
220`,dL=ma`
221from {
222  transform: scale(0) rotate(45deg);
223	opacity: 0;
224}
225to {
226  transform: scale(1) rotate(45deg);
227	opacity: 1;
228}`,pL=ma`
2290% {
230	height: 0;
231	width: 0;
232	opacity: 0;
233}
23440% {
235  height: 0;
236	width: 6px;
237	opacity: 1;
238}
239100% {
240  opacity: 1;
241  height: 10px;
242}`,hL=Fl("div")`
243  width: 20px;
244  opacity: 0;
245  height: 20px;
246  border-radius: 10px;
247  background: ${e=>e.primary||"#61d345"};
248  position: relative;
249  transform: rotate(45deg);
250
251  animation: ${dL} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
252    forwards;
253  animation-delay: 100ms;
254  &:after {
255    content: '';
256    box-sizing: border-box;
257    animation: ${pL} 0.2s ease-out forwards;
258    opacity: 0;
259    animation-delay: 200ms;
260    position: absolute;
261    border-right: 2px solid;
262    border-bottom: 2px solid;
263    border-color: ${e=>e.secondary||"#fff"};
264    bottom: 6px;
265    left: 6px;
266    height: 10px;
267    width: 6px;
268  }
269`,mL=Fl("div")`
270  position: absolute;
271`,gL=Fl("div")`
272  position: relative;
273  display: flex;
274  justify-content: center;
275  align-items: center;
276  min-width: 20px;
277  min-height: 20px;
278`,yL=ma`
279from {
280  transform: scale(0.6);
281  opacity: 0.4;
282}
283to {
284  transform: scale(1);
285  opacity: 1;
286}`,vL=Fl("div")`
287  position: relative;
288  transform: scale(0.6);
289  opacity: 0.4;
290  min-width: 20px;
291  animation: ${yL} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
292    forwards;
293`,_L=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?C.createElement(vL,null,t):t:n==="blank"?null:C.createElement(gL,null,C.createElement(fL,{...r}),n!=="loading"&&C.createElement(mL,null,n==="error"?C.createElement(uL,{...r}):C.createElement(hL,{...r})))},wL=e=>`
2940% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
295100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
296`,SL=e=>`
2970% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
298100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
299`,EL="0%{opacity:0;} 100%{opacity:1;}",CL="0%{opacity:1;} 100%{opacity:0;}",xL=Fl("div")`
300  display: flex;
301  align-items: center;
302  background: #fff;
303  color: #363636;
304  line-height: 1.3;
305  will-change: transform;
306  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
307  max-width: 350px;
308  pointer-events: auto;
309  padding: 8px 10px;
310  border-radius: 8px;
311`,bL=Fl("div")`
312  display: flex;
313  justify-content: center;
314  margin: 4px 10px;
315  color: inherit;
316  flex: 1 1 auto;
317  white-space: pre-line;
318`,TL=(e,t)=>{let n=e.includes("top")?1:-1,[r,s]=fx()?[EL,CL]:[wL(n),SL(n)];return{animation:t?`${ma(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ma(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},kL=C.memo(({toast:e,position:t,style:n,children:r})=>{let s=e.height?TL(e.position||t||"top-center",e.visible):{opacity:0},l=C.createElement(_L,{toast:e}),c=C.createElement(bL,{...e.ariaProps},Zg(e.message,e));return C.createElement(xL,{className:e.className,style:{...s,...n,...e.style}},typeof r=="function"?r({icon:l,message:c}):C.createElement(C.Fragment,null,l,c))});KP(C.createElement);var RL=({id:e,className:t,style:n,onHeightUpdate:r,children:s})=>{let l=C.useCallback(c=>{if(c){let d=()=>{let p=c.getBoundingClientRect().height;r(e,p)};d(),new MutationObserver(d).observe(c,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return C.createElement("div",{ref:l,className:t,style:n},s)},IL=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:fx()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...s}},OL=F0`
319  z-index: 9999;
320  > * {
321    pointer-events: auto;
322  }
323`,ug=16,AL=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:l,containerClassName:c})=>{let{toasts:d,handlers:p}=sL(n);return C.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:ug,left:ug,right:ug,bottom:ug,pointerEvents:"none",...l},className:c,onMouseEnter:p.startPause,onMouseLeave:p.endPause},d.map(g=>{let v=g.position||t,_=p.calculateOffset(g,{reverseOrder:e,gutter:r,defaultPosition:t}),E=IL(v,_);return C.createElement(RL,{id:g.id,key:g.id,onHeightUpdate:p.updateHeight,className:g.visible?OL:"",style:E},g.type==="custom"?Zg(g.message,g):s?s(g):C.createElement(kL,{toast:g,position:v}))}))},LW=Br;const PL=e=>C.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M7 1H13M1 4H19M17 4L16.2987 14.5193C16.1935 16.0975 16.1409 16.8867 15.8 17.485C15.4999 18.0118 15.0472 18.4353 14.5017 18.6997C13.882 19 13.0911 19 11.5093 19H8.49065C6.90891 19 6.11803 19 5.49834 18.6997C4.95276 18.4353 4.50009 18.0118 4.19998 17.485C3.85911 16.8867 3.8065 16.0975 3.70129 14.5193L3 4",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),LL=e=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M20 6L9 17L4 12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),NL=e=>C.createElement("svg",{width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M15 15C15 15 13.5 13 11 13C8.5 13 7 15 7 15M14 8H14.01M8 8H8.01M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C16.5228 1 21 5.47715 21 11ZM14.5 8C14.5 8.27614 14.2761 8.5 14 8.5C13.7239 8.5 13.5 8.27614 13.5 8C13.5 7.72386 13.7239 7.5 14 7.5C14.2761 7.5 14.5 7.72386 14.5 8ZM8.5 8C8.5 8.27614 8.27614 8.5 8 8.5C7.72386 8.5 7.5 8.27614 7.5 8C7.5 7.72386 7.72386 7.5 8 7.5C8.27614 7.5 8.5 7.72386 8.5 8Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ML=e=>C.createElement("svg",{width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},C.createElement("path",{d:"M8 8H8.01M14 14H14.01M15 7L7 15M16.9012 3.99851C17.1071 4.49653 17.5024 4.8924 18.0001 5.09907L19.7452 5.82198C20.2433 6.02828 20.639 6.42399 20.8453 6.92206C21.0516 7.42012 21.0516 7.97974 20.8453 8.47781L20.1229 10.2218C19.9165 10.7201 19.9162 11.2803 20.1236 11.7783L20.8447 13.5218C20.9469 13.7685 20.9996 14.0329 20.9996 14.2999C20.9997 14.567 20.9471 14.8314 20.8449 15.0781C20.7427 15.3249 20.5929 15.549 20.4041 15.7378C20.2152 15.9266 19.991 16.0764 19.7443 16.1785L18.0004 16.9009C17.5023 17.1068 17.1065 17.5021 16.8998 17.9998L16.1769 19.745C15.9706 20.2431 15.575 20.6388 15.0769 20.8451C14.5789 21.0514 14.0193 21.0514 13.5212 20.8451L11.7773 20.1227C11.2792 19.9169 10.7198 19.9173 10.2221 20.1239L8.47689 20.8458C7.97912 21.0516 7.42001 21.0514 6.92237 20.8453C6.42473 20.6391 6.02925 20.2439 5.82281 19.7464L5.09972 18.0006C4.8938 17.5026 4.49854 17.1067 4.00085 16.9L2.25566 16.1771C1.75783 15.9709 1.36226 15.5754 1.15588 15.0777C0.949508 14.5799 0.949228 14.0205 1.1551 13.5225L1.87746 11.7786C2.08325 11.2805 2.08283 10.7211 1.8763 10.2233L1.15497 8.47678C1.0527 8.2301 1.00004 7.96568 1 7.69863C0.999957 7.43159 1.05253 7.16715 1.15472 6.92043C1.25691 6.67372 1.40671 6.44955 1.59557 6.26075C1.78442 6.07195 2.00862 5.92222 2.25537 5.8201L3.9993 5.09772C4.49687 4.89197 4.89248 4.4972 5.0993 4.00006L5.82218 2.25481C6.02848 1.75674 6.42418 1.36103 6.92222 1.15473C7.42027 0.948424 7.97987 0.948424 8.47792 1.15473L10.2218 1.87712C10.7199 2.08291 11.2793 2.08249 11.7771 1.87595L13.523 1.15585C14.021 0.94966 14.5804 0.949702 15.0784 
3231.15597C15.5763 1.36223 15.972 1.75783 16.1783 2.25576L16.9014 4.00153L16.9012 3.99851ZM8.5 8C8.5 8.27614 8.27614 8.5 8 8.5C7.72386 8.5 7.5 8.27614 7.5 8C7.5 7.72386 7.72386 7.5 8 7.5C8.27614 7.5 8.5 7.72386 8.5 8ZM14.5 14C14.5 14.2761 14.2761 14.5 14 14.5C13.7239 14.5 13.5 14.2761 13.5 14C13.5 13.7239 13.7239 13.5 14 13.5C14.2761 13.5 14.5 13.7239 14.5 14Z",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Rv={destructive:{icon:P.jsx(PL,{className:"text-m-red-500 h-6 w-6"}),iconCircleClassName:"bg-m-red-600/20",defaultCancelText:"No, Cancel",defaultConfirmText:"Yes, Confirm"},confirmation:{icon:P.jsx(LL,{className:"text-m-green-500 h-6 w-6"}),iconCircleClassName:"bg-m-green-600/20",defaultCancelText:"No, Cancel",defaultConfirmText:"Yes, Confirm"},regret:{icon:P.jsx(NL,{className:"text-m-gray-300 h-6 w-6"}),iconCircleClassName:"bg-gray-300/20",defaultCancelText:"Yes, Unsubscribe",defaultConfirmText:"No, Stay"},sale:{icon:P.jsx(ML,{className:"text-m-pink-700 h-6 w-6"}),iconCircleClassName:"bg-m-pink-700/20",defaultCancelText:"Unsubscribe",defaultConfirmText:"Claim Voucher"}},DL=C.createContext(null),FL=({children:e})=>{const[t,n]=C.useState({isOpen:!1,title:"",message:"",confirmText:"",cancelText:"",type:"confirmation",resolveRef:null}),r=c=>{const{title:d,message:p,type:g,confirmText:v,cancelText:_}=c;return new Promise(E=>{const x=Rv[g];n({isOpen:!0,type:g,title:d||"",message:p||"",confirmText:v||x.defaultConfirmText,cancelText:_||x.defaultCancelText,resolveRef:E})})},s=c=>{t.resolveRef&&t.resolveRef(c),n({...t,isOpen:!1})},l={openDialog:r};return P.jsxs(DL.Provider,{value:l,children:[e,t.isOpen&&w0.createPortal(P.jsxs("div",{className:"relative z-[9999]",children:[P.jsx("div",{className:"bg-opacity-40 fixed inset-0 backdrop-blur-xs","aria-hidden":"true"}),P.jsx("div",{className:"fixed inset-0 flex w-screen items-center justify-center",children:P.jsxs("div",{className:"bg-m-gray-900 border-m-gray-700 relative mx-auto flex w-sm flex-col rounded-xl border p-6 shadow-lg lg:w-md",children:[P.jsx("button",{onClick:()=>s(!1),className:"text-m-gray-400 absolute top-6 right-6 hover:text-white focus:outline-none",children:P.jsx(Dd,{size:24})}),P.jsx("div",{className:"flex items-center justify-center",children:P.jsxs("div",{className:"flex w-full flex-col",children:[P.jsx("div",{className:`${Rv[t.type].iconCircleClassName} flex h-12 w-12 items-center justify-center rounded-full`,children:Rv[t.type].icon}),P.jsxs("div",{className:"mt-4",children:[P.jsx("h3",{className:"text-md font-medium text-white",children:t.title}),P.jsx("p",{className:"text-m-gray-400 mt-1 text-sm font-light",children:t.message})]}),P.jsxs("div",{className:"mt-6 flex w-full flex-col gap-2 lg:flex-row",children:[P.jsx(wd,{onClick:()=>s(!1),label:t.cancelText,intent:t.type==="destructive"?"destructive":"secondary",className:"w-full"}),P.jsx(wd,{onClick:()=>s(!0),label:t.confirmText,intent:t.type==="destructive"?"secondary":t.type==="confirmation"?"confirmation":"primary",className:"w-full"})]})]})})]})})]}),document.body)]})},$L=()=>{const e=sC(),t=Ea(),{isLoading:n,isAuthenticated:r,user:s}=k0();return C.useEffect(()=>{!n&&(!r||!s||!Jg(s))&&t(Be.HOME,{replace:!0,state:{requestSignIn:!0}})},[n,r,s,t]),n||!r||!s||!Jg(s)?null:P.jsx(v0,{context:e})},Qe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,rc="9.22.0",Tt=globalThis;function yc(){return $0(Tt),Tt}function $0(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||rc,t[rc]=t[rc]||{}}function j0(e,t,n=Tt){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[rc]=r[rc]||{};return s[e]||(s[e]=t())}const px=Object.prototype.toString;function q_(e){switch(px.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return ga(e,Error)}}function Hd(e,t){return px.call(e)===`[object ${t}]`}function hx(e){return Hd(e,"ErrorEvent")}function dE(e){return Hd(e,"DOMError")}function jL(e){return Hd(e,"DOMException")}function fa(e){return Hd(e,"String")}function V_(e){return typeof e=="object"&&e!==null&&"__sentry_template_str
323ing__"in e&&"__sentry_template_values__"in e}function G_(e){return e===null||V_(e)||typeof e!="object"&&typeof e!="function"}function Bh(e){return Hd(e,"Object")}function U0(e){return typeof Event<"u"&&ga(e,Event)}function UL(e){return typeof Element<"u"&&ga(e,Element)}function HL(e){return Hd(e,"RegExp")}function H0(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function BL(e){return Bh(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function ga(e,t){try{return e instanceof t}catch{return!1}}function mx(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function gx(e){return typeof Request<"u"&&ga(e,Request)}const K_=Tt,zL=80;function ya(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let l=0,c=0;const d=" > ",p=d.length;let g;const v=Array.isArray(t)?t:t.keyAttrs,_=!Array.isArray(t)&&t.maxStringLength||zL;for(;n&&l++<r&&(g=WL(n,v),!(g==="html"||l>1&&c+s.length*p+g.length>=_));)s.push(g),c+=g.length,n=n.parentNode;return s.reverse().join(d)}catch{return"<unknown>"}}function WL(e,t){const n=e,r=[];if(!(n!=null&&n.tagName))return"";if(K_.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=t!=null&&t.length?t.filter(c=>n.getAttribute(c)).map(c=>[c,n.getAttribute(c)]):null;if(s!=null&&s.length)s.forEach(c=>{r.push(`[${c[0]}="${c[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const c=n.className;if(c&&fa(c)){const d=c.split(/\s+/);for(const p of d)r.push(`.${p}`)}}const l=["aria-label","type","name","title","alt"];for(const c of l){const d=n.getAttribute(c);d&&r.push(`[${c}="${d}"]`)}return r.join("")}function Bd(){try{return K_.document.location.href}catch{return""}}function yx(e){if(!K_.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const qL="Sentry Logger ",j2=["debug","info","warn","error","log","assert","trace"],e0={};function $l(e){if(!("console"in Tt))return e();const t=Tt.console,n={},r=Object.keys(e0);r.forEach(s=>{const l=e0[s];n[s]=t[s],t[s]=l});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function VL(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Qe?j2.forEach(n=>{t[n]=(...r)=>{e&&$l(()=>{Tt.console[n](`${qL}[${n}]:`,...r)})}}):j2.forEach(n=>{t[n]=()=>{}}),t}const Ce=j0("logger",VL);function t0(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function pE(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{mx(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function GL(e,t,n=!1){return fa(e)?HL(t)?t.test(e):fa(t)?n?e===t:e.includes(t):!1:!1}function Tl(e,t=[],n=!1){return t.some(r=>GL(e,r,n))}function pi(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&vx(s,r);try{e[t]=s}catch{Qe&&Ce.log(`Failed to replace method "${t}" in object`,e)}}function Li(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Qe&&Ce.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function vx(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Li(e,"__sentry_original__",t)}catch{}}function Y_(e){return e.__sentry_original__}function _x(e){if(q_(e))return{message:e.message,name:e.name,stack:e.stack,...mE(e)};if(U0(e)){const t={type:e.type,target:hE(e.target),currentTarget:hE(e.currentTarget),...mE(e)};return typeof CustomEvent<"u"&&ga(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function hE(e){try{return UL(e)?ya(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function mE(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function KL(e,t=40){const n=Object.keys(_x(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return t0(r,t);for(let s=n.length;s>0;s--){const l=n.slice(0,s).join(", ");
vendor: 8,827 bytes, line 323
323if(!(l.length>t))return s===n.length?l:t0(l,t)}return""}function YL(){const e=Tt;return e.crypto||e.msCrypto}function Pi(e=YL()){let t=()=>Math.random()*16;try{if(e!=null&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e!=null&&e.getRandomValues&&(t=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function wx(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function ju(e){const{message:t,event_id:n}=e;if(t)return t;const r=wx(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function U2(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],l=s[0]=s[0]||{};l.value||(l.value=t||""),l.type||(l.type="Error")}function Sd(e,t){const n=wx(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const l={...s==null?void 0:s.data,...t.data};n.mechanism.data=l}}function gE(e){if(QL(e))return!0;try{Li(e,"__sentry_captured__",!0)}catch{}return!1}function QL(e){try{return e.__sentry_captured__}catch{}}const Sx=1e3;function pm(){return Date.now()/Sx}function XL(){const{performance:e}=Tt;if(!(e!=null&&e.now))return pm;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Sx}const Wr=XL();let Iv;function JL(){var v;const{performance:e}=Tt;if(!(e!=null&&e.now))return[void 0,"none"];const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,l=s<t,c=(v=e.timing)==null?void 0:v.navigationStart,p=typeof c=="number"?Math.abs(c+n-r):t,g=p<t;return l||g?s<=p?[e.timeOrigin,"timeOrigin"]:[c,"navigationStart"]:[r,"dateNow"]}function Ni(){return Iv||(Iv=JL()),Iv[0]}function ZL(e){const t=Wr(),n={sid:Pi(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>tN(n)};return e&&Ed(n,e),n}function Ed(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Wr(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Pi()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function eN(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Ed(e,n)}function tN(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function hm(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=hm(r[s],t[s],n-1));return r}const H2="_sentrySpan";function zh(e,t){t?Li(e,H2,t):delete e[H2]}function n0(e){return e[H2]}function Ol(){return Pi()}function mm(){return Pi().substring(16)}const nN=100;class Eo{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:Ol(),sampleRand:Math.random()}}clone(){const t=new Eo;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,zh(t,n0(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ed(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof Eo?n.getScopeData():Bh(n)?t:void 0,{tags:s,extra:l,user:c,contexts:d,level:p,fingerprint:g=[],propagationContext:v}=r||{};return this._tags={...this._tags,...s},this._extra={...this._extra,...l},this._contexts={...this._contexts,...d},c&&Object.keys(c).length&&(this._user=c),p&&(this._level=p),g.length&&(this._fingerprint=g),v&&(this._propagationContext=v),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._session=void 0,zh(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ol(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var l;const r=typeof n=="number"?n:nN;if(r<=0)return this;const s={timestamp:pm(),...t,message:t.message?t0(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(l=this._client)==null||l.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),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:n0(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=hm(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=(n==null?void 0:n.event_id)||Pi();if(!this._client)return Ce.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=(r==null?void 0:r.event_id)||Pi();if(!this._client)return Ce.warn("No client configured on scope - will not capture message!"),s;const l=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:l,...r,event_id:s},this),s}captureEvent(t,n){const r=(n==null?void 0:n.event_id)||Pi();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Ce.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
323h(t=>{t(this)}),this._notifyingListeners=!1)}}function rN(){return j0("defaultCurrentScope",()=>new Eo)}function iN(){return j0("defaultIsolationScope",()=>new Eo)}class sN{constructor(t,n){let r;t?r=t:r=new Eo;let s;n?s=n:s=new Eo,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return H0(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 t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Cd(){const e=yc(),t=$0(e);return t.stack=t.stack||new sN(rN(),iN())}function oN(e){return Cd().withScope(e)}function aN(e,t){const n=Cd();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function yE(e){return Cd().withScope(()=>e(Cd().getIsolationScope()))}function lN(){return{withIsolationScope:yE,withScope:oN,withSetScope:aN,withSetIsolationScope:(e,t)=>yE(t),getCurrentScope:()=>Cd().getScope(),getIsolationScope:()=>Cd().getIsolationScope()}}function zd(e){const t=$0(e);return t.acs?t.acs:lN()}function Qt(){const e=yc();return zd(e).getCurrentScope()}function Co(){const e=yc();return zd(e).getIsolationScope()}function uN(){return j0("globalScope",()=>new Eo)}function Q_(...e){const t=yc(),n=zd(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function Et(){return Qt().getClient()}function cN(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=t,l={trace_id:n,span_id:s||mm()};return r&&(l.parent_span_id=r),l}const _o="sentry.source",X_="sentry.sample_rate",Ex="sentry.previous_trace_sample_rate",fc="sentry.op",nr="sentry.origin",r0="sentry.idle_span_finish_reason",B0="sentry.measurement_unit",z0="sentry.measurement_value",vE="sentry.custom_span_name",J_="sentry.profile_id",gm="sentry.exclusive_time",fN="sentry.link.type",dN=0,Cx=1,er=2;function pN(e){if(e<400&&e>=100)return{code:Cx};if(e>=400&&e<500)switch(e){case 401:return{code:er,message:"unauthenticated"};case 403:return{code:er,message:"permission_denied"};case 404:return{code:er,message:"not_found"};case 409:return{code:er,message:"already_exists"};case 413:return{code:er,message:"failed_precondition"};case 429:return{code:er,message:"resource_exhausted"};case 499:return{code:er,message:"cancelled"};default:return{code:er,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:er,message:"unimplemented"};case 503:return{code:er,message:"unavailable"};case 504:return{code:er,message:"deadline_exceeded"};default:return{code:er,message:"internal_error"}}return{code:er,message:"unknown_error"}}function xx(e,t){e.setAttribute("http.response.status_code",t);const n=pN(t);n.message!=="unknown_error"&&e.setStatus(n)}const bx="_sentryScope",Tx="_sentryIsolationScope";function hN(e,t,n){e&&(Li(e,Tx,n),Li(e,bx,t))}function i0(e){return{scope:e[bx],isolationScope:e[Tx]}}function dc(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const Z_="sentry-",mN=/^sentry-/,gN=8192;function kx(e){const t=vN(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,l])=>{if(s.match(mN)){const c=s.slice(Z_.length);r[c]=l}return r},{});if(Object.keys(n).length>0)return n}function yN(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${Z_}${r}`]=s),n),{});return _N(t)}function vN(e){if(!(!e||!fa(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=_E(n);return Object.entries(r).forEach(([s,l])=>{t[s]=l}),t},{}):_E(e)}function _E(e){return e.split(",").map(t=>t.split("=").map(n=>{try{return decodeURIComponent(n.trim())}catch{return}})).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function _N(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const l=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,c=s===0?l:`${t},${l}`;return c.length>gN?(Qe&&Ce.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):c},"")}const Rx=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function wN(e){if(!e)return;const t=e.match(Rx);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function SN(e,t){const n=wN(e),r=kx(t);if(!(n!=null&&n.traceId))return{traceId:Ol(),sampleRand:Math.random()};const s=EN(n,r);r&&(r.sample_rand=s.toString());const{traceId:l,parentSpanId:c,parentSampled:d}=n;return{traceId:l,parentSpanId:c,sampled:d,dsc:r||{},sampleRand:s}}function Ix(e=Ol(),t=mm(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function EN(e,t){const n=dc(t==null?void 0:t.sample_rand);if(n!==void 0)return n;const r=dc(t==null?void 0:t.sample_rate);return r&&(e==null?void 0:e.parentSampled)!==void 0?e.parentSampled?Math.random()*r:r+Math.random()*(1-r):Math.random()}const Ox=0,ew=1;let wE=!1;function CN(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:l,status:c,origin:d,links:p}=Bt(e);return{parent_span_id:l,span_id:t,trace_id:n,data:r,op:s,status:c,origin:d,links:p}}function xN(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:Bt(e).parent_span_id,l=i0(e).scope,c=r?(l==null?void 0:l.getPropagationContext().propagationSpanId)||mm():t;return{parent_span_id:s,span_id:c,trace_id:n}}function bN(e){const{traceId:t,spanId:n}=e.spanContext(),r=vc(e);return Ix(t,n,r)}function Ax(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:l})=>({span_id:t,trace_id:n,sampled:r===ew,attributes:l,...s}))}function ic(e){return typeof e=="number"?SE(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?SE(e.getTime()):Wr()}function SE(e){return e>9999999999?e/1e3:e}function Bt(e){var r;if(kN(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(TN(e)){const{attributes:s,startTime:l,name:c,endTime:d,status:p,links:g}=e,v="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(r=e.parentSpanContext)==null?void 0:r.spanId:void 0;return{span_id:t,trace_id:n,data:s,description:c,parent_span_id:v,start_timestamp:ic(l),timestamp:ic(d)||void 0,status:Px(p),op:s[fc],origin:s[nr],links:Ax(g)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function TN(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function kN(e){return typeof e.getSpanJSON=="function"}function vc(e){const{traceFlags:t}=e.spanContext();return t===ew}function Px(e){if(!(!e||e.code===dN))return e.code===Cx?"ok":e.message||"unknown_error"}const sc="_sentryChildSpans",B2="_sentryRootSpan";function Lx(e,t){const n=e[B2]||e;Li(t,B2,n),e[sc]?e[sc].add(t):Li(e,sc,new Set([t]))}function RN(e,t){e[sc]&&e[sc].delete(t)}function Lg(e){const t=new Set;function n(r){if(!t.has(r)&&vc(r)){t.add(r);const s=r[sc]?Array.from(r[sc]):[];for(const l of s)n(l)}}return n(e),Array.from(t)}function Ir(e){return e[B2]||e}function qr(){const e=yc(),t=zd(e);return t.getActiveSpan?t.getActiveSpan():n0(Qt())}function z2(){wE||($l(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),wE=!0)}const Nx=50,pc="?",EE=/\(error: (.*)\)/,CE=/captureMessage|captureException/;function Mx(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const l=[],c=n.split(`
324`);for(let d=r;d<c.length;d++){const p=c[d];if(p.length>1024)continue;const g=EE.test(p)?p.replace(EE,"$1"):p;if(!g.match(/\S*Error: /)){for(const v of t){const _=v(g);if(_){l.push(_);break}}if(l.length>=Nx+s)break}}return ON(l.slice(s))}}function IN(e){return Array.isArray(e)?Mx(...e):e}function ON(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(cg(t).function||"")&&t.pop(),t.reverse(),CE.test(cg(t).function||"")&&(t.pop(),CE.test(cg(t).function||"")&&t.pop()),t.slice(0,Nx).map(n=>({...n,filename:n.filename||cg(t).filename,function:n.function||pc}))}function cg(e){return e[e.length-1]||{}}const Ov="<anonymous>";function va(e){try{return!e||typeof e!="function"?Ov:e.name||Ov}catch{return Ov}}function xE(e){const t=e.exception;if(t){const n=[];
vendor: 4,125 bytes, lines 324-327
324try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const Ng={},bE={};function jl(e,t){Ng[e]=Ng[e]||[],Ng[e].push(t)}function Ul(e,t){if(!bE[e]){bE[e]=!0;try{t()}catch(n){Qe&&Ce.error(`Error while instrumenting ${e}`,n)}}}function os(e,t){const n=e&&Ng[e];if(n)for(const r of n)try{r(t)}catch(s){Qe&&Ce.error(`Error while triggering instrumentation handler.
325Type: ${e}
326Name: ${va(r)}
327Error:`,s)}}let Av=null;function Dx(e){const t="error";jl(t,e),Ul(t,AN)}function AN(){Av=Tt.onerror,Tt.onerror=function(e,t,n,r,s){return os("error",{column:r,error:s,line:n,msg:e,url:t}),Av?Av.apply(this,arguments):!1},Tt.onerror.__SENTRY_INSTRUMENTED__=!0}let Pv=null;function Fx(e){const t="unhandledrejection";jl(t,e),Ul(t,PN)}function PN(){Pv=Tt.onunhandledrejection,Tt.onunhandledrejection=function(e){return os("unhandledrejection",e),Pv?Pv.apply(this,arguments):!0},Tt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let TE=!1;function LN(){TE||(TE=!0,Dx(W2),Fx(W2))}function W2(){const e=qr(),t=e&&Ir(e);if(t){const n="internal_error";Qe&&Ce.log(`[Tracing] Root span: ${n} -> Global error occurred`),t.setStatus({code:er,message:n})}}W2.tag="sentry_tracingErrorCallback";function Al(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||((n=Et())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}const tw="production",NN=/^o(\d+)\./,MN=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function DN(e){return e==="http"||e==="https"}function ym(e,t=!1){const{host:n,path:r,pass:s,port:l,projectId:c,protocol:d,publicKey:p}=e;return`${d}://${p}${t&&s?`:${s}`:""}@${n}${l?`:${l}`:""}/${r&&`${r}/`}${c}`}function FN(e){const t=MN.exec(e);if(!t){$l(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",l="",c="",d=""]=t.slice(1);let p="",g=d;const v=g.split("/");if(v.length>1&&(p=v.slice(0,-1).join("/"),g=v.pop()),g){const _=g.match(/^\d+/);_&&(g=_[0])}return $x({host:l,pass:s,path:p,projectId:g,port:c,protocol:n,publicKey:r})}function $x(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function $N(e){if(!Qe)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(c=>e[c]?!1:(Ce.error(`Invalid Sentry Dsn: ${c} missing`),!0))?!1:n.match(/^\d+$/)?DN(r)?t&&isNaN(parseInt(t,10))?(Ce.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Ce.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Ce.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function jN(e){const t=e.match(NN);return t==null?void 0:t[1]}function UN(e){const t=typeof e=="string"?FN(e):$x(e);if(!(!t||!$N(t)))return t}const jx="_frozenDsc";function Mg(e,t){Li(e,jx,t)}function Ux(e,t){const n=t.getOptions(),{publicKey:r,host:s}=t.getDsn()||{};let l;n.orgId?l=String(n.orgId):s&&(l=jN(s));const c={environment:n.environment||tw,release:n.release,public_key:r,trace_id:e,org_id:l};return t.emit("createDsc",c),c}function Hx(e,t){const n=t.getPropagationContext();return n.dsc||Ux(n.traceId,e)}function _a(e){var b;const t=Et();if(!t)return{};const n=Ir(e),r=Bt(n),s=r.data,l=n.spanContext().traceState,c=(l==null?void 0:l.get("sentry.sample_rate"))??s[X_]??s[Ex];function d(R){return(typeof c=="number"||typeof c=="string")&&(R.sample_rate=`${c}`),R}const p=n[jx];if(p)return d(p);const g=l==null?void 0:l.get("sentry.dsc"),v=g&&kx(g);if(v)return d(v);const _=Ux(e.spanContext().traceId,t),E=s[_o],x=r.description;return E!=="url"&&x&&(_.transaction=x),Al()&&(_.sampled=String(vc(n)),_.sample_rand=(l==null?void 0:l.get("sentry.sample_rand"))??((b=i0(n).scope)==null?void 0:b.getPropagationContext().sampleRand.toString())),d(_),t.emit("createDsc",_,n),_}class hc{constructor(t={}){this._traceId=t.traceId||Ol(),this._spanId=t.spanId||mm()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Ox}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}
327addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function HN(e){if(!Qe)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=Bt(e),{spanId:s}=e.spanContext(),l=vc(e),c=Ir(e),d=c===e,p=`[Tracing] Starting ${l?"sampled":"unsampled"} ${d?"root ":""}span`,g=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&g.push(`parent ID: ${r}`),!d){const{op:v,description:_}=Bt(c);g.push(`root ID: ${c.spanContext().spanId}`),v&&g.push(`root op: ${v}`),_&&g.push(`root description: ${_}`)}Ce.log(`${p}
328  ${g.join(`
329  `)}`)}function BN(e){if(!Qe)return;const{description:t="< unknown name >",op:n="< unknown op >"}=Bt(e),{spanId:r}=e.spanContext(),l=Ir(e)===e,c=`[Tracing] Finishing "${n}" ${l?"root ":""}span "${t}" with ID ${r}`;Ce.log(c)}function zN(e,t,n){if(!Al(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:d=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):d}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const l=dc(s);if(l===void 0)return Qe&&Ce.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!l)return Qe&&Ce.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,l,r];const c=n<l;return c||Qe&&Ce.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[c,l,r]}function As(e,t=100,n=1/0){try{return q2("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Bx(e,t=3,n=100*1024){const r=As(e,t);return GN(r)>n?Bx(e,t-1,n):r}function q2(e,t,n=1/0,r=1/0,s=KN()){const[l,c]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const d=WN(e,t);if(!d.startsWith("[object "))return d;if(t.__sentry_skip_normalization__)return t;const p=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(p===0)return d.replace("object ","");if(l(t))return"[Circular ~]";const g=t;if(g&&typeof g.toJSON=="function")try{const x=g.toJSON();return q2("",x,p-1,r,s)}catch{}const v=Array.isArray(t)?[]:{};let _=0;const E=_x(t);for(const x in E){if(!Object.prototype.hasOwnProperty.call(E,x))continue;if(_>=r){v[x]="[MaxProperties ~]";break}const b=E[x];v[x]=q2(x,b,p-1,r,s),_++}return c(t),v}function WN(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(mx(t))return"[VueViewModel]";if(BL(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${va(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=qN(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function qN(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function VN(e){return~-encodeURI(e).split(/%..|./).length}function GN(e){return VN(JSON.stringify(e))}function KN(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function _c(e,t=[]){return[e,t]}function YN(e,t){const[n,r]=e;return[n,[...r,t]]}function kE(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function V2(e){const t=$0(Tt);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function QN(e){const[t,n]=e;let r=JSON.stringify(t);function s(l){typeof r=="string"?r=typeof l=="string"?r+l:[V2(r),l]:r.push(typeof l=="string"?V2(l):l)}for(const l of n){const[c,d]=l;if(s(`
330${JSON.stringify(c)}
331`),typeof d=="string"||d instanceof Uint8Array)s(d);else{let p;try{p=JSON.stringify(d)}catch{p=JSON.stringify(As(d))}s(p)}}return typeof r=="string"?r:XN(r)}function XN(e){const t=e.reduce((s,l)=>s+l.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function JN(e){return[{type:"span"},e]}function ZN(e){const t=typeof e.data=="string"?V2(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const eM={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",raw_security:"security",log:"log_item"};function RE(e){return eM[e]}function nw(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function zx(e,t,n,r){var l;const s=(l=e.sdkProcessingMetadata)==null?void 0:l.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:ym(r)},...s&&{trace:s}}}function tM(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function nM(e,t,n,r){const s=nw(n),l={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:ym(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return _c(l,[c])}function rM(e,t,n,r){const s=nw(n),l=e.type&&e.type!=="replay_event"?e.type:"event";tM(e,n==null?void 0:n.sdk);const c=zx(e,s,r,t);return delete e.sdkProcessingMetadata,_c(c,[[{type:l},e]])}function iM(e,t){function n(v){return!!v.trace_id&&!!v.public_key}const r=_a(e[0]),s=t==null?void 0:t.getDsn(),l=t==null?void 0:t.getOptions().tunnel,c={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!l&&s&&{dsn:ym(s)}},d=t==null?void 0:t.getOptions().beforeSendSpan,p=d?v=>{const _=Bt(v),E=d(_);return E||(z2(),_)}:Bt,g=[];for(const v of e){const _=p(v);_&&g.push(JN(_))}return _c(c,g)}function sM(e,t,n,r=qr()){const s=r&&Ir(r);s&&(Qe&&Ce.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[z0]:t,[B0]:n}))}function IE(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[B0],l=r[z0];typeof s=="string"&&typeof l=="number"&&(t[n.name]={value:l,unit:s})}),t}const OE=1e3;class rw{constructor(t={}){this._traceId=t.traceId||Ol(),this._spanId=t.spanId||mm(),this._startTime=t.startTimestamp||Wr(),this._links=t.links,this._attributes={},this.setAttributes({[nr]:"manual",[fc]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?ew:Ox}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=ic(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(_o,"custom"),this}end(t){this._endTime||(this._endTime=ic(t),BN(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[fc],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Px(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[nr],profile_id:this._attributes[J_],exclusive_time:this._attributes[gm],measurements:IE(this._events),is_segment:this._isStandaloneSpan&&Ir(this)===this||void 0,segment_id:this._isStandaloneSpan?Ir(this).spanContext().spanId:void 0,links:Ax(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){Qe&&Ce.log("[Tracing] Adding an event to span:",t);const s=AE(n)?n:r||Wr(),l=AE(n)?{}:n||{},c={name:t,time:ic(s),attributes:l};return this._events.push(c),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=Et();if(t&&t.emit("spanEnd",this),!(this._isStandaloneSpan||this===Ir(this)))return;if(this._isStandaloneSpan){this._sampled?aM(iM([this],t)):(Qe&&Ce.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}const r=this._convertSpanToTransaction();r&&(i0(this).scope||Qt()).captureEvent(r)}_convertSpanToTransaction(){var v;if(!PE(Bt(this)))return;this._name||(Qe&&Ce.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=i0(this),r=(v=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:v.normalizedRequest;if(this._sampled!==!0)return;const l=Lg(this).filter(_=>_!==this&&!oM(_)).map(_=>Bt(_)).filter(PE),c=this._attributes[_o];delete this._attributes[vE],l.forEach(_=>{delete _.data[vE]});const d={contexts:{trace:CN(this)},spans:l.length>OE?l.sort((_,E)=>_.start_timestamp-E.start_timestamp).slice(0,OE):l,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:_a(this)},request:r,...c&&{transaction_info:{source:c}}},p=IE(this._events);return p&&Object.keys(p).length&&(Qe&&Ce.log("[Measurements] Adding measurements to transaction event",JSON.stringify(p,void 0,2)),d.measurements=p),d}}function AE(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function PE(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function oM(e){return e instanceof rw&&e.isStandaloneSpan()}function aM(e){const t=Et();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}const Wx="__SENTRY_SUPPRESS_TRACING__";function vm(e){const t=Vx();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=uM(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?c=>Q_(e.scope,c):s!==void 0?c=>qx(s,c):c=>c())(()=>{const c=Qt(),d=fM(c);return e.onlyIfParent&&!d?new hc:lM({parentSpan:d,spanArguments:n,forceTransaction:r,scope:c})})}function qx(e,t){const n=Vx();return n.withActiveSpan?n.withActiveSpan(e,t):Q_(r=>(zh(r,e||void 0),t(r)))}function lM({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Al()){const c=new hc;if(n||!e){const d={sampled:"false",sample_rate:"0",transaction:t.name,..._a(c)};Mg(c,d)}return c}const s=Co();let l;if(e&&!n)l=cM(e,r,t),Lx(e,l);else if(e){const c=_a(e),{traceId:d,spanId:p}=e.spanContext(),g=vc(e);l=LE({traceId:d,parentSpanId:p,...t},r,g),Mg(l,c)}else{const{traceId:c,dsc:d,parentSpanId:p,sampled:g}={...s.getPropagationContext(),...r.getPropagationContext()};l=LE({traceId:c,parentSpanId:p,...t},r,g),d&&Mg(l,d)}return HN(l),hN(l,r,s),l}function uM(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=ic(e.startTime),delete r.startTime,r}return n}function Vx(){const e=yc();return zd(e)}function LE(e,t,n){var b;const r=Et(),s=(r==null?void 0:r.getOptions())||{},{name:l=""}=e,c={spanAttributes:{...e.attributes},spanName:l,parentSampled:n};r==null||r.emit("beforeSampling",c,{decision:!1});const d=c.parentSampled??n,p=c.spanAttributes,g=t.getPropagationContext(),[v,_,E]=t.getScopeData().sdkProcessingMetadata[Wx]?[!1]:zN(s,{name:l,parentSampled:d,attributes:p,parentSampleRate:dc((b=g.dsc)==null?void 0:b.sample_rate)},g.sampleRand),x=new rw({...e,attributes:{[_o]:"custom",[X_]:_!==void 0&&E?_:void 0,...p},sampled:v});return!v&&r&&(Qe&&Ce.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate","transaction")),r&&r.emit("spanStart",x),x}function cM(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),l=t.getScopeData().sdkProcessingMetadata[Wx]?!1:vc(e),c=l?new rw({...n,parentSpanId:r,traceId:s,sampled:l}):new hc({traceId:s});Lx(e,c);const d=Et();return d&&(d.emit("spanStart",c),n.endTimestamp&&d.emit("spanEnd",c)),c}function fM(e){const t=n0(e);if(!t)return;const n=Et();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?Ir(t):t}const Dg={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},dM="heartbeatFailed",pM="idleTimeout",hM="finalTimeout",mM="externalFinish";function Gx(e,t={}){const n=new Map;let r=!1,s,l=mM,c=!t.disableAutoFinish;const d=[],{idleTimeout:p=Dg.idleTimeout,finalTimeout:g=Dg.finalTimeout,childSpanTimeout:v=Dg.childSpanTimeout,beforeSpanEnd:_}=t,E=Et();if(!E||!Al()){const D=new hc,Z={sample_rate:"0",sampled:"false",..._a(D)};return Mg(D,Z),D}const x=Qt(),b=qr(),R=gM(e);R.end=new Proxy(R.end,{apply(D,Z,ue){if(_&&_(R),Z instanceof hc)return;const[X,...ce]=ue,ye=X||Wr(),de=ic(ye),xe=Lg(R).filter(ee=>ee!==R);if(!xe.length)return te(de),Reflect.apply(D,Z,[de,...ce]);const Re=xe.map(ee=>Bt(ee).timestamp).filter(ee=>!!ee),We=Re.length?Math.max(...Re):void 0,fe=Bt(R).start_timestamp,Ie=Math.min(fe?fe+g/1e3:1/0,Math.max(fe||-1/0,Math.min(de,We||1/0)));return te(Ie),Reflect.apply(D,Z,[Ie,...ce])}});function I(){s&&(clearTimeout(s),s=void 0)}function L(D){I(),s=setTimeout(()=>{!r&&n.size===0&&c&&(l=pM,R.end(D))},p)}function H(D){s=setTimeout(()=>{!r&&c&&(l=dM,R.end(D))},v)}function W(D){I(),n.set(D,!0);const Z=Wr();H(Z+v/1e3)}function Q(D){if(n.has(D)&&n.delete(D),n.size===0){const Z=Wr();L(Z+p/1e3)}}function te(D){r=!0,n.clear(),d.forEach(de=>de()),zh(x,b);const Z=Bt(R),{start_timestamp:ue}=Z;if(!ue)return;Z.data[r0]||R.setAttribute(r0,l),Ce.log(`[Tracing] Idle span "${Z.op}" finished`);const ce=Lg(R).filter(de=>de!==R);let ye=0;ce.forEach(de=>{de.isRecording()&&(de.setStatus({code:er,message:"cancelled"}),de.end(D),Qe&&Ce.log("[Tracing] Cancelling span since span ended early",JSON.stringify(de,void 0,2)));const xe=Bt(de),{timestamp:Re=0,start_timestamp:We=0}=xe,fe=We<=D,Ie=(g+p)/1e3,ee=Re-We<=Ie;if(Qe){const ve=JSON.stringify(de,void 0,2);fe?ee||Ce.log("[Tracing] Discarding span since it finished after idle span final timeout",ve):Ce.log("[Tracing] Discarding span since it happened after idle span was finished",ve)}(!ee||!fe)&&(RN(R,de),ye++)}),ye>0&&R.setAttribute("sentry.idle_span_discarded_spans",ye)}return d.push(E.on("spanStart",D=>{if(r||D===R||Bt(D).timestamp)return;Lg(R).includes(D)&&W(D.spanContext().spanId)})),d.push(E.on("spanEnd",D=>{r||Q(D.spanContext().spanId)})),d.push(E.on("idleSpanEnableAutoFinish",D=>{D===R&&(c=!0,L(),n.size&&H())})),t.disableAutoFinish||L(),setTimeout(()=>{r||(R.setStatus({code:er,message:"deadline_exceeded"}),l=hM,R.end())},g),R}function gM(e){const t=vm(e);
vendor: 20,101 bytes, lines 331-332
331return zh(Qt(),t),Qe&&Ce.log("[Tracing] Started span is an idle span"),t}var ra;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(ra||(ra={}));function wa(e){return new Pl(t=>{t(e)})}function s0(e){return new Pl((t,n)=>{n(e)})}class Pl{constructor(t){this._state=ra.PENDING,this._handlers=[],this._runExecutor(t)}then(t,n){return new Pl((r,s)=>{this._handlers.push([!1,l=>{if(!t)r(l);else try{r(t(l))}catch(c){s(c)}},l=>{if(!n)s(l);else try{r(n(l))}catch(c){s(c)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Pl((n,r)=>{let s,l;return this.then(c=>{l=!1,s=c,t&&t()},c=>{l=!0,s=c,t&&t()}).then(()=>{if(l){r(s);return}n(s)})})}_executeHandlers(){if(this._state===ra.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===ra.RESOLVED&&n[1](this._value),this._state===ra.REJECTED&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(l,c)=>{if(this._state===ra.PENDING){if(H0(c)){c.then(r,s);return}this._state=l,this._value=c,this._executeHandlers()}},r=l=>{n(ra.RESOLVED,l)},s=l=>{n(ra.REJECTED,l)};try{t(r,s)}catch(l){s(l)}}}function G2(e,t,n,r=0){return new Pl((s,l)=>{const c=e[r];if(t===null||typeof c!="function")s(t);else{const d=c({...t},n);Qe&&c.id&&d===null&&Ce.log(`Event processor "${c.id}" dropped event`),H0(d)?d.then(p=>G2(e,p,n,r+1).then(s)).then(null,l):G2(e,d,n,r+1).then(s).then(null,l)}})}let fg,NE,dg;function yM(e){const t=Tt._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return dg&&n.length===NE||(NE=n.length,dg=n.reduce((r,s)=>{fg||(fg={});const l=fg[s];if(l)r[l[0]]=l[1];else{const c=e(s);for(let d=c.length-1;d>=0;d--){const p=c[d],g=p==null?void 0:p.filename,v=t[s];if(g&&v){r[g]=v,fg[s]=[g,v];break}}}return r},{})),dg}function vM(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:l}=t;_M(e,t),r&&EM(e,r),CM(e,n),wM(e,s),SM(e,l)}function ME(e,t){const{extra:n,tags:r,user:s,contexts:l,level:c,sdkProcessingMetadata:d,breadcrumbs:p,fingerprint:g,eventProcessors:v,attachments:_,propagationContext:E,transactionName:x,span:b}=t;pg(e,"extra",n),pg(e,"tags",r),pg(e,"user",s),pg(e,"contexts",l),e.sdkProcessingMetadata=hm(e.sdkProcessingMetadata,d,2),c&&(e.level=c),x&&(e.transactionName=x),b&&(e.span=b),p.length&&(e.breadcrumbs=[...e.breadcrumbs,...p]),g.length&&(e.fingerprint=[...e.fingerprint,...g]),v.length&&(e.eventProcessors=[...e.eventProcessors,...v]),_.length&&(e.attachments=[...e.attachments,..._]),e.propagationContext={...e.propagationContext,...E}}function pg(e,t,n){e[t]=hm(e[t],n,1)}function _M(e,t){const{extra:n,tags:r,user:s,contexts:l,level:c,transactionName:d}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(l).length&&(e.contexts={...l,...e.contexts}),c&&(e.level=c),d&&e.type!=="transaction"&&(e.transaction=d)}function wM(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function SM(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function EM(e,t){e.contexts={trace:xN(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:_a(t),...e.sdkProcessingMetadata};const n=Ir(t),r=Bt(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function CM(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function Kx(e,t,n,r,s,l){const{normalizeDepth:c=3,normalizeMaxBreadth:d=1e3}=e,p={...t,event_id:t.event_id||n.event_id||Pi(),timestamp:t.timestamp||pm()},g=n.integrations||e.integrations.map(I=>I.name);xM(p,e),kM(p,g),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&bM(p,e.stackParser);const v=IM(r,n.captureContext);n.mechanism&&Sd(p,n.mechanism);const _=s?s.getEventProcessors():[],E=uN().getScopeData();if(l){const I=l.getScopeData();ME(E,I)}if(v){const I=v.getScopeData();ME(E,I)}const x=[...n.attachments||[],...E.attachments];x.length&&(n.attachments=x),vM(p,E);const b=[..._,...E.eventProcessors];return G2(b,p,n).then(I=>(I&&TM(I),typeof c=="number"&&c>0?RM(I,c,d):I))}function xM(e,t){const{environment:n,release:r,dist:s,maxValueLength:l=250}=t;e.environment=e.environment||n||tw,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const c=e.request;c!=null&&c.url&&(c.url=t0(c.url,l))}function bM(e,t){var r,s;const n=yM(t);(s=(r=e.exception)==null?void 0:r.values)==null||s.forEach(l=>{var c,d;(d=(c=l.stacktrace)==null?void 0:c.frames)==null||d.forEach(p=>{p.filename&&(p.debug_id=n[p.filename])})})}function TM(e){var r,s;const t={};if((s=(r=e.exception)==null?void 0:r.values)==null||s.forEach(l=>{var c,d;(d=(c=l.stacktrace)==null?void 0:c.frames)==null||d.forEach(p=>{p.debug_id&&(p.abs_path?t[p.abs_path]=p.debug_id:p.filename&&(t[p.filename]=p.debug_id),delete p.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([l,c])=>{n.push({type:"sourcemap",code_file:l,debug_id:c})})}function kM(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function RM(e,t,n){var s,l;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(c=>({...c,...c.data&&{data:As(c.data,t,n)}}))},...e.user&&{user:As(e.user,t,n)},...e.contexts&&{contexts:As(e.contexts,t,n)},...e.extra&&{extra:As(e.extra,t,n)}};return(s=e.contexts)!=null&&s.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=As(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(c=>({...c,...c.data&&{data:As(c.data,t,n)}}))),(l=e.contexts)!=null&&l.flags&&r.contexts&&(r.contexts.flags=As(e.contexts.flags,3,n)),r}function IM(e,t){if(!t)return e;const n=e?e.clone():new Eo;return n.update(t),n}function OM(e){if(e)return AM(e)?{captureContext:e}:LM(e)?{captureContext:e}:e}function AM(e){return e instanceof Eo||typeof e=="function"}const PM=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function LM(e){return Object.keys(e).some(t=>PM.includes(t))}function iw(e,t){return Qt().captureException(e,OM(t))}function Yx(e,t){return Qt().captureEvent(e,t)}function Qx(e,t){Co().setContext(e,t)}function NM(){const e=Et();return(e==null?void 0:e.getOptions().enabled)!==!1&&!!(e!=null&&e.getTransport())}function MM(e){Co().addEventProcessor(e)}function DE(e){const t=Co(),n=Qt(),{userAgent:r}=Tt.navigator||{},s=ZL({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),l=t.getSession();return(l==null?void 0:l.status)==="ok"&&Ed(l,{status:"exited"}),Xx(),t.setSession(s),s}function Xx(){const e=Co(),n=Qt().getSession()||e.getSession();n&&eN(n),Jx(),e.setSession()}function Jx(){const e=Co(),t=Et(),n=e.getSession();n&&t&&t.captureSession(n)}function FE(e=!1){if(e){Xx();return}Jx()}const DM="7";function FM(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function $M(e){return`${FM(e)}${e.projectId}/envelope/`}function jM(e,t){const n={sentry_version:DM};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function UM(e,t,n){return t||`${$M(e)}?${jM(e,n)}`}const $E=[];function HM(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function BM(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return HM(r)}function zM(e,t){const n={};return t.forEach(r=>{r&&Zx(e,r,n)}),n}function jE(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function Zx(e,t,n){if(n[t.name]){Qe&&Ce.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,$E.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),$E.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,l)=>r(s,l,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((l,c)=>r(l,c,e),{id:t.name});e.addEventProcessor(s)}Qe&&Ce.log(`Integration installed: ${t.name}`)}function e6(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function WM(e){var p;const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:l,data:c,op:d}=((p=e.contexts)==null?void 0:p.trace)??{};return{data:c??{},description:e.transaction,op:d,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:l,profile_id:c==null?void 0:c[J_],exclusive_time:c==null?void 0:c[gm],measurements:e.measurements,is_segment:!0}}function qM(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[J_]:e.profile_id},...e.exclusive_time&&{[gm]:e.exclusive_time}}}},measurements:e.measurements}}function VM(e,t,n){const r=[{type:"client_report"},{timestamp:pm(),discarded_events:e}];return _c(t?{dsn:t}:{},[r])}const UE="Not capturing exception because it's already been captured.",HE="Discarded session because of missing or non-string release",t6=Symbol.for("SentryInternalError"),n6=Symbol.for("SentryDoNotSendEventError");function Fg(e){return{message:e,[t6]:!0}}function Lv(e){return{message:e,[n6]:!0}}function BE(e){return!!e&&typeof e=="object"&&t6 in e}function zE(e){return!!e&&typeof e=="object"&&n6 in e}class GM{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=UN(t.dsn):Qe&&Ce.warn("No DSN provided, client will not send events."),this._dsn){const n=UM(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){const s=Pi();if(gE(t))return Qe&&Ce.log(UE),s;const l={event_id:s,...n};return this._process(this.eventFromException(t,l).then(c=>this._captureEvent(c,l,r))),l.event_id}captureMessage(t,n,r,s){const l={event_id:Pi(),...r},c=V_(t)?t:String(t),d=G_(t)?this.eventFromMessage(c,n,l):this.eventFromException(t,l);return this._process(d.then(p=>this._captureEvent(p,l,s))),l.event_id}captureEvent(t,n,r){const s=Pi();if(n!=null&&n.originalException&&gE(n.originalException))return Qe&&Ce.log(UE),s;const l={event_id:s,...n},c=t.sdkProcessingMetadata||{},d=c.capturedSpanScope,p=c.capturedSpanIsolationScope;return this._process(this._captureEvent(t,l,d||r,p)),l.event_id}captureSession(t){this.sendSession(t),Ed(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.emit("flush"),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):wa(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.emit("close"),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];Zx(this,t,this._integrations),n||jE(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=rM(t,this._dsn,this._options._metadata,this._options.tunnel);for(const l of n.attachments||[])r=YN(r,ZN(l));const s=this.sendEnvelope(r);s&&s.then(l=>this.emit("afterSendEvent",t,l),null)}sendSession(t){const{release:n,environment:r=tw}=this._options;if("aggregates"in t){const l=t.attrs||{};if(!l.release&&!n){Qe&&Ce.warn(HE);return}l.release=l.release||n,l.environment=l.environment||r,t.attrs=l}else{if(!t.release&&!n){Qe&&Ce.warn(HE);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=nM(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;Qe&&Ce.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||[];return r.push(n),()=>{const s=r.indexOf(n);s>-1&&r.splice(s,1)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}sendEnvelope(t){return this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport?this._transport.send(t).then(null,n=>(Qe&&Ce.error("Error while sending envelope:",n),n)):(Qe&&Ce.error("Transport disabled"),wa({}))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=zM(this,t),jE(this,t)}_updateSessionFromEvent(t,n){var p;let r=n.level==="fatal",s=!1;const l=(p=n.exception)==null?void 0:p.values;if(l){s=!0;for(const g of l){const v=g.mechanism;if((v==null?void 0:v.handled)===!1){r=!0;break}}}const c=t.status==="ok";(c&&t.errors===0||c&&r)&&(Ed(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Pl(n=>{let r=0;const s=1,l=setInterval(()=>{this._numProcessing==0?(clearInterval(l),n(!0)):(r+=s,t&&r>=t&&(clearInterval(l),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const l=this.getOptions(),c=Object.keys(this._integrations);return!n.integrations&&(c!=null&&c.length)&&(n.integrations=c),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),Kx(l,t,n,r,this,s).then(d=>{if(d===null)return d;this.emit("postprocessEvent",d,n),d.contexts={trace:cN(r),...d.contexts};const p=Hx(this,r);return d.sdkProcessingMetadata={dynamicSamplingContext:p,...d.sdkProcessingMetadata},d})}_captureEvent(t,n={},r=Qt(),s=Co()){return Qe&&K2(t)&&Ce.log(`Captured error event \`${e6(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(l=>l.event_id,l=>{Qe&&(zE(l)?Ce.log(l.message):BE(l)?Ce.warn(l.message):Ce.warn(l))})}_processEvent(t,n,r,s){const l=this.getOptions(),{sampleRate:c}=l,d=r6(t),p=K2(t),g=t.type||"error",v=`before send for type \`${g}\``,_=typeof c>"u"?void 0:dc(c);if(p&&typeof _=="number"&&Math.random()>_)return this.recordDroppedEvent("sample_rate","error"),s0(Lv(`Discarding event because it's not included in the random sample (sampling rate = ${c})`));const E=g==="replay_event"?"replay":g;return this._prepareEvent(t,n,r,s).then(x=>{if(x===null)throw this.recordDroppedEvent("event_processor",E),Lv("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return x;const R=YM(this,l,x,n);return KM(R,v)}).then(x=>{var I;if(x===null){if(this.recordDroppedEvent("before_send",E),d){const H=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",H)}throw Lv(`${v} returned \`null\`, will not send event.`)}const b=r.getSession()||s.getSession();if(p&&b&&this._updateSessionFromEvent(b,x),d){const L=((I=x.sdkProcessingMetadata)==null?void 0:I.spanCountBeforeProcessing)||0,H=x.spans?x.spans.length:0,W=L-H;W>0&&this.recordDroppedEvent("before_send","span",W)}const R=x.transaction_info;if(d&&R&&x.transaction!==t.transaction){const L="custom";x.transaction_info={...R,source:L}}return this.sendEvent(x,n),x}).then(null,x=>{throw zE(x)||BE(x)?x:(this.captureException(x,{data:{__sentry__:!0},originalException:x}),Fg(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
332Reason: ${x}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,l]=n.split(":");return{reason:s,category:l,quantity:r}})}_flushOutcomes(){Qe&&Ce.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Qe&&Ce.log("No outcomes to send");return}if(!this._dsn){Qe&&Ce.log("No dsn provided, will not send outcomes");return}Qe&&Ce.log("Sending outcomes:",t);const n=VM(t,this._options.tunnel&&ym(this._dsn));this.sendEnvelope(n)}}function KM(e,t){const n=`${t} must return \`null\` or a valid event.`;if(H0(e))return e.then(r=>{if(!Bh(r)&&r!==null)throw Fg(n);return r},r=>{throw Fg(`${t} rejected with ${r}`)});if(!Bh(e)&&e!==null)throw Fg(n);return e}function YM(e,t,n,r){const{beforeSend:s,beforeSendTransaction:l,beforeSendSpan:c}=t;let d=n;if(K2(d)&&s)return s(d,r);if(r6(d)){if(c){const p=c(WM(d));if(p?d=hm(n,qM(p)):z2(),d.spans){const g=[];for(const v of d.spans){const _=c(v);_?g.push(_):(z2(),g.push(v))}d.spans=g}}if(l){if(d.spans){const p=d.spans.length;d.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:p}}return l(d,r)}}return d}function K2(e){return e.type===void 0}function r6(e){return e.type==="transaction"}function QM(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function XM(e,t,n,r){const s={};return t!=null&&t.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=ym(r)),_c(s,[QM(e)])}Tt._sentryClientToLogBufferMap=new WeakMap;function Nv(e,t){var l;const n=JM(e)??[];if(n.length===0)return;const r=e.getOptions(),s=XM(n,r._metadata,r.tunnel,e.getDsn());(l=Tt._sentryClientToLogBufferMap)==null||l.set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function JM(e){var t;return(t=Tt._sentryClientToLogBufferMap)==null?void 0:t.get(e)}function ZM(e,t){t.debug===!0&&(Qe?Ce.enable():$l(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Qt().update(t.initialScope);const r=new e(t);return eD(r),r.init(),r}function eD(e){Qt().setClient(e)}const i6=Symbol.for("SentryBufferFullError");function tD(e){const t=[];function n(){return e===void 0||t.length<e}function r(c){return t.splice(t.indexOf(c),1)[0]||Promise.resolve(void 0)}function s(c){if(!n())return s0(i6);const d=c();return t.indexOf(d)===-1&&t.push(d),d.then(()=>r(d)).then(null,()=>r(d).then(null,()=>{})),d}function l(c){return new Pl((d,p)=>{let g=t.length;if(!g)return d(!0);const v=setTimeout(()=>{c&&c>0&&d(!1)},c);t.forEach(_=>{wa(_).then(()=>{--g||(clearTimeout(v),d(!0))},p)})})}return{$:t,add:s,drain:l}}const nD=60*1e3;function rD(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?nD:r-t}function iD(e,t){return e[t]||e.all||0}function s6(e,t,n=Date.now()){return iD(e,t)>n}function o6(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},l=n==null?void 0:n["x-sentry-rate-limits"],c=n==null?void 0:n["retry-after"];if(l)for(const d of l.trim().split(",")){const[p,g,,,v]=d.split(":",5),_=parseInt(p,10),E=(isNaN(_)?60:_)*1e3;if(!g)s.all=r+E;else for(const x of g.split(";"))x==="metric_bucket"?(!v||v.split(";").includes("custom"))&&(s[x]=r+E):s[x]=r+E}else c?s.all=r+rD(c,r):t===429&&(s.all=r+60*1e3);return s}const sD=64;function oD(e,t,n=tD(e.bufferSize||sD)){let r={};const s=c=>n.drain(c);function l(c){const d=[];if(kE(c,(_,E)=>{const x=RE(E);s6(r,x)?e.recordDroppedEvent("ratelimit_backoff",x):d.push(_)}),d.length===0)return wa({});const p=_c(c[0],d),g=_=>{kE(p,(E,x)=>{e.recordDroppedEvent(_,RE(x))})},v=()=>t({body:QN(p)}).then(_=>(_.statusCode!==void 0&&(_.statusCode<200||_.statusCode>=300)&&Qe&&Ce.warn(`Sentry responded with status code ${_.statusCode} to sent event.`),r=o6(r,_),_),_=>{throw g("network_error"),Qe&&Ce.error("Encountered error running transport request:",_),_});return n.add(v).then(_=>_,_=>
332{if(_===i6)return Qe&&Ce.error("Skipped sending event because buffer is full."),g("queue_overflow"),wa({});throw _})}return{send:l,flush:s}}function aD(e,t){const n=t==null?void 0:t.getDsn(),r=t==null?void 0:t.getOptions().tunnel;return uD(e,n)||lD(e,r)}function lD(e,t){return t?WE(e)===WE(t):!1}function uD(e,t){return t?e.includes(t.host):!1}function WE(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function cD(e){var t;((t=e.user)==null?void 0:t.ip_address)===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function fD(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function a6(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(l=>({name:`${r}:@sentry/${l}`,version:rc})),version:rc}),e._metadata=s}function l6(e={}){const t=Et();if(!NM()||!t)return{};const n=yc(),r=zd(n);if(r.getTraceData)return r.getTraceData(e);const s=Qt(),l=e.span||qr(),c=l?bN(l):dD(s),d=l?_a(l):Hx(t,s),p=yN(d);return Rx.test(c)?{"sentry-trace":c,baggage:p}:(Ce.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function dD(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Ix(t,r,n)}const pD=100;function Ll(e,t){const n=Et(),r=Co();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:l=pD}=n.getOptions();if(l<=0)return;const d={timestamp:pm(),...e},p=s?$l(()=>s(d,t)):d;p!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",p,t),r.addBreadcrumb(p,l))}let qE;const hD="FunctionToString",VE=new WeakMap,mD=()=>({name:hD,setupOnce(){qE=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Y_(this),n=VE.has(Et())&&t!==void 0?t:this;return qE.apply(n,e)}}catch{}},setup(e){VE.set(e,!0)}}),gD=mD,yD=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,`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+$/,/^Java exception was raised during method invocation$/],vD="EventFilters",_D=(e={})=>{let t;return{name:vD,setup(n){const r=n.getOptions();t=GE(e,r)},processEvent(n,r,s){if(!t){const l=s.getOptions();t=GE(e,l)}return SD(n,t)?null:n}}},wD=(e={})=>({..._D(e),name:"InboundFilters"});function GE(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:yD],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function SD(e,t){if(e.type){if(e.type==="transaction"&&CD(e,t.ignoreTransactions))return Qe&&Ce.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
333Event: ${ju(e)}`),!0}else{if(ED(e,t.ignoreErrors))return Qe&&Ce.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
334Event: ${ju(e)}`),!0;if(kD(e))return Qe&&Ce.warn(`Event dropped due to not having an error message, error type or stacktrace.
335Event: ${ju(e)}`),!0;if(xD(e,t.denyUrls))return Qe&&Ce.warn(`Event dropped due to being matched by \`denyUrls\` option.
336Event: ${ju(e)}.
337Url: ${o0(e)}`),!0;if(!bD(e,t.allowUrls))return Qe&&Ce.warn(`Event dropped due to not being matched by \`allowUrls\` option.
338Event: ${ju(e)}.
339Url: ${o0(e)}`),!0}return!1}function ED(e,t){return t!=null&&t.length?e6(e).some(n=>Tl(n,t)):!1}function CD(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?Tl(n,t):!1}function xD(e,t){if(!(t!=null&&t.length))return!1;const n=o0(e);return n?Tl(n,t):!1}function bD(e,t){if(!(t!=null&&t.length))return!0;const n=o0(e);return n?Tl(n,t):!0}function TD(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function o0(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(l=>{var c,d,p;
339return((c=l.mechanism)==null?void 0:c.parent_id)===void 0&&((p=(d=l.stacktrace)==null?void 0:d.frames)==null?void 0:p.length)}),s=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return s?TD(s):null}catch{return Qe&&Ce.error(`Cannot extract url for event ${ju(e)}`),null}}function kD(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function RD(e,t,n,r,s,l){var d;if(!((d=s.exception)!=null&&d.values)||!l||!ga(l.originalException,Error))return;const c=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;c&&(s.exception.values=Y2(e,t,r,l.originalException,n,s.exception.values,c,0))}function Y2(e,t,n,r,s,l,c,d){if(l.length>=n+1)return l;let p=[...l];if(ga(r[s],Error)){KE(c,d);const g=e(t,r[s]),v=p.length;YE(g,s,v,d),p=Y2(e,t,n,r[s],s,[g,...p],g,v)}return Array.isArray(r.errors)&&r.errors.forEach((g,v)=>{if(ga(g,Error)){KE(c,d);const _=e(t,g),E=p.length;YE(_,`errors[${v}]`,E,d),p=Y2(e,t,n,g,s,[_,...p],_,E)}}),p}function KE(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function YE(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function ID(e){const t="console";jl(t,e),Ul(t,OD)}function OD(){"console"in Tt&&j2.forEach(function(e){e in Tt.console&&pi(Tt.console,e,function(t){return e0[e]=t,function(...n){os("console",{args:n,level:e});const s=e0[e];s==null||s.apply(Tt.console,n)}})})}function u6(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const AD="Dedupe",PD=()=>{let e;return{name:AD,processEvent(t){if(t.type)return t;try{if(ND(t,e))return Qe&&Ce.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},LD=PD;function ND(e,t){return t?!!(MD(e,t)||DD(e,t)):!1}function MD(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!f6(e,t)||!c6(e,t))}function DD(e,t){const n=QE(t),r=QE(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!f6(e,t)||!c6(e,t))}function c6(e,t){let n=xE(e),r=xE(t);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 l=r[s],c=n[s];if(l.filename!==c.filename||l.lineno!==c.lineno||l.colno!==c.colno||l.function!==c.function)return!1}return!0}function f6(e,t){let n=e.fingerprint,r=t.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 QE(e){var t;return((t=e.exception)==null?void 0:t.values)&&e.exception.values[0]}const FD="thismessage:/";function d6(e){return"isRelative"in e}function p6(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?FD:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function $D(e){if(d6(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function oc(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function jD(e){return e.split(/[?#]/,1)[0]}function UD(e,t,n,r,s="auto.http.browser"){if(!e.fetchData)return;const{method:l,url:c}=e.fetchData,d=Al()&&t(c);if(e.endTimestamp&&d){const _=e.fetchData.__span;if(!_)return;const E=r[_];E&&(BD(E,e),delete r[_]);return}const p=!!qr(),g=d&&p?vm(WD(c,l,s)):new hc;if(e.fetchData.__span=g.spanContext().spanId,r[g.spanContext().spanId]=g,n(e.fetchData.url)){const _=e.args[0],E=e.args[1]||{},x=HD(_,E,Al()&&p?g:void 0);x&&(e.args[1]=E,E.headers=x)}const v=Et();if(v){const _={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};v.emit("beforeOutgoingRequestSpan",g,_)}return g}
339function HD(e,t,n){const r=l6({span:n}),s=r["sentry-trace"],l=r.baggage;if(!s)return;const c=t.headers||(gx(e)?e.headers:void 0);if(c)if(zD(c)){const d=new Headers(c);if(d.get("sentry-trace")||d.set("sentry-trace",s),l){const p=d.get("baggage");p?hg(p)||d.set("baggage",`${p},${l}`):d.set("baggage",l)}return d}else if(Array.isArray(c)){const d=[...c];c.find(g=>g[0]==="sentry-trace")||d.push(["sentry-trace",s]);const p=c.find(g=>g[0]==="baggage"&&hg(g[1]));return l&&!p&&d.push(["baggage",l]),d}else{const d="sentry-trace"in c?c["sentry-trace"]:void 0,p="baggage"in c?c.baggage:void 0,g=p?Array.isArray(p)?[...p]:[p]:[],v=p&&(Array.isArray(p)?p.find(_=>hg(_)):hg(p));return l&&!v&&g.push(l),{...c,"sentry-trace":d??s,baggage:g.length>0?g.join(","):void 0}}else return{...r}}function BD(e,t){var n;if(t.response){xx(e,t.response.status);const r=((n=t.response)==null?void 0:n.headers)&&t.response.headers.get("content-length");if(r){const s=parseInt(r);s>0&&e.setAttribute("http.response_content_length",s)}}else t.error&&e.setStatus({code:er,message:"internal_error"});e.end()}function hg(e){return e.split(",").some(t=>t.trim().startsWith(Z_))}function zD(e){return typeof Headers<"u"&&ga(e,Headers)}function WD(e,t,n){const r=p6(e);return{name:r?`${t} ${$D(r)}`:t,attributes:qD(e,r,t,n)}}function qD(e,t,n,r){const s={url:e,type:"fetch","http.method":n,[nr]:r,[fc]:"http.client"};return t&&(d6(t)||(s["http.url"]=t.href,s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function h6(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const Wh=Tt;function VD(){return"history"in Wh&&!!Wh.history}function GD(){if(!("fetch"in Wh))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Q2(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function KD(){var n;if(typeof EdgeRuntime=="string")return!0;if(!GD())return!1;if(Q2(Wh.fetch))return!0;let e=!1;const t=Wh.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=Q2(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){Qe&&Ce.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function m6(e,t){const n="fetch";jl(n,e),Ul(n,()=>g6(void 0,t))}function YD(e){const t="fetch-body-resolved";jl(t,e),Ul(t,()=>g6(XD))}function g6(e,t=!1){t&&!KD()||pi(Tt,"fetch",function(n){return function(...r){const s=new Error,{method:l,url:c}=JD(r),d={args:r,fetchData:{method:l,url:c},startTimestamp:Wr()*1e3,virtualError:s,headers:ZD(r)};return e||os("fetch",{...d}),n.apply(Tt,r).then(async p=>(e?e(p):os("fetch",{...d,endTimestamp:Wr()*1e3,response:p}),p),p=>{if(os("fetch",{...d,endTimestamp:Wr()*1e3,error:p}),q_(p)&&p.stack===void 0&&(p.stack=s.stack,Li(p,"framesToPop",1)),p instanceof TypeError&&(p.message==="Failed to fetch"||p.message==="Load failed"||p.message==="NetworkError when attempting to fetch resource."))try{const g=new URL(d.fetchData.url);p.message=`${p.message} (${g.host})`}catch{}throw p})}})}async function QD(e,t){if(e!=null&&e.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let l=!0;for(;l;){let c;try{c=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:d}=await r.read();clearTimeout(c),d&&(t(),l=!1)}catch{l=!1}finally{clearTimeout(c)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function XD(e){let t;try{t=e.clone()}catch{return}QD(t,()=>{os("fetch-body-resolved",{endTimestamp:Wr()*1e3,response:e})})}function X2(e,t){return!!e&&typeof e=="object"&&!!e[t]}function XE(e){return typeof e=="string"?e:e?X2(e,"url")?e.url:e.toString?e.toString():"":""}function JD(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:XE(n),method:X2(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:XE(t),method:X2(t,"method")?String(t.method).toUpperCase():"GET"}}function ZD(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(gx(t))return new Headers(t.headers)}catch{}}function eF(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function tF(){return"npm"}function nF(){return!eF()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function JE(){return typeof window<"u"&&(!nF()||rF())}function rF(){const e=Tt.process;return(e==null?void 0:e.type)==="renderer"}const Nt=Tt;let J2=0;function y6(){return J2>0}function iF(){J2++,setTimeout(()=>{J2--})}function xd(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(Y_(e))return e}catch{return e}const r=function(...s){try{const l=s.map(c=>xd(c,t));return e.apply(this,l)}catch(l){throw iF(),Q_(c=>{c.addEventProcessor(d=>(t.mechanism&&(U2(d,void 0),Sd(d,t.mechanism)),d.extra={...d.extra,arguments:s},d)),iw(l)}),l}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}vx(r,e),Li(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Z2(){const e=Bd(),{referrer:t}=Nt.document||{},{userAgent:n}=Nt.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function sw(e,t){const n=ow(e,t),r={type:uF(t),value:cF(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function sF(e,t,n,r){const s=Et(),l=s==null?void 0:s.getOptions().normalizeDepth,c=mF(t),d={__serialized__:Bx(t,l)};if(c)return{exception:{values:[sw(e,c)]},extra:d};const p={exception:{values:[{type:U0(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:pF(t,{isUnhandledRejection:r})}]},extra:d};if(n){const g=ow(e,n);g.length&&(p.exception.values[0].stacktrace={frames:g})}return p}function Mv(e,t){return{exception:{values:[sw(e,t)]}}}function ow(e,t){const n=t.stacktrace||t.stack||"",r=aF(t),s=lF(t);try{return e(n,r,s)}catch{}return[]}const oF=/Minified React error #\d+;/i;function aF(e){return e&&oF.test(e.message)?1:0}function lF(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function v6(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function uF(e){const t=e==null?void 0:e.name;return!t&&v6(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function cF(e){const t=e==null?void 0:e.message;return v6(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function fF(e,t,n,r){const s=(n==null?void 0:n.syntheticException)||void 0,l=aw(e,t,s,r);return Sd(l),l.level="error",n!=null&&n.event_id&&(l.event_id=n.event_id),wa(l)}function dF(e,t,n="info",r,s){const l=(r==null?void 0:r.syntheticException)||void 0,c=e_(e,t,l,s);return c.level=n,r!=null&&r.event_id&&(c.event_id=r.event_id),wa(c)}
339function aw(e,t,n,r,s){let l;if(hx(t)&&t.error)return Mv(e,t.error);if(dE(t)||jL(t)){const c=t;if("stack"in t)l=Mv(e,t);else{const d=c.name||(dE(c)?"DOMError":"DOMException"),p=c.message?`${d}: ${c.message}`:d;l=e_(e,p,n,r),U2(l,p)}return"code"in c&&(l.tags={...l.tags,"DOMException.code":`${c.code}`}),l}return q_(t)?Mv(e,t):Bh(t)||U0(t)?(l=sF(e,t,n,s),Sd(l,{synthetic:!0}),l):(l=e_(e,t,n,r),U2(l,`${t}`),Sd(l,{synthetic:!0}),l)}function e_(e,t,n,r){const s={};if(r&&n){const l=ow(e,n);l.length&&(s.exception={values:[{value:t,stacktrace:{frames:l}}]}),Sd(s,{synthetic:!0})}if(V_(t)){const{__sentry_template_string__:l,__sentry_template_values__:c}=t;return s.logentry={message:l,params:c},s}return s.message=t,s}function pF(e,{isUnhandledRejection:t}){const n=KL(e),r=t?"promise rejection":"exception";return hx(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:U0(e)?`Event \`${hF(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function hF(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function mF(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}const gF=5e3;class yF extends GM{constructor(t){const n={parentSpanIsAlwaysRootSpan:!0,...t},r=Nt.SENTRY_SDK_SOURCE||tF();a6(n,"browser",["browser"],r),super(n);const s=this,{sendDefaultPii:l,_experiments:c}=s._options,d=c==null?void 0:c.enableLogs;n.sendClientReports&&Nt.document&&Nt.document.addEventListener("visibilitychange",()=>{Nt.document.visibilityState==="hidden"&&(this._flushOutcomes(),d&&Nv(s))}),d&&(s.on("flush",()=>{Nv(s)}),s.on("afterCaptureLog",()=>{s._logFlushIdleTimeout&&clearTimeout(s._logFlushIdleTimeout),s._logFlushIdleTimeout=setTimeout(()=>{Nv(s)},gF)})),l&&(s.on("postprocessEvent",cD),s.on("beforeSendSession",fD))}eventFromException(t,n){return fF(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return dF(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}const qh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vF=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",Wd=(e,t,n,r)=>{let s,l;return c=>{t.value>=0&&(c||r)&&(l=t.value-(s||0),(l||s===void 0)&&(s=t.value,t.delta=l,t.rating=vF(t.value,n),e(t)))}},vt=Tt,_F=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,_m=(e=!0)=>{var n,r;const t=(r=(n=vt.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},wm=()=>{const e=_m();return(e==null?void 0:e.activationStart)||0},qd=(e,t)=>{var l,c;const n=_m();let r="navigate";return n&&((l=vt.document)!=null&&l.prerendering||wm()>0?r="prerender":(c=vt.document)!=null&&c.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:_F(),navigationType:r}},wc=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Vd=e=>{const t=n=>{var r;(n.type==="pagehide"||((r=vt.document)==null?void 0:r.visibilityState)==="hidden")&&e(n)};vt.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},W0=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Ph=-1;const wF=()=>vt.document.visibilityState==="hidden"&&!vt.document.prerendering?0:1/0,a0=e=>{vt.document.visibilityState==="hidden"&&Ph>-1&&(Ph=e.type==="visibilitychange"?e.timeStamp:0,EF())},SF=()=>{addEventListener("visibilitychange",a0,!0),addEventListener("prerenderingchange",a0,!0)},EF=()=>{removeEventListener("visibilitychange",a0,!0),removeEventListener("prerenderingchange",a0,!0)},q0=()=>(vt.document&&Ph<0&&(Ph=wF(),SF()),{get firstHiddenTime(){return Ph}}),Sm=e=>{var t;(t=vt.document)!=null&&t.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},CF=[1800,3e3],xF=(e,t={})=>{Sm(()=>{const n=q0(),r=qd("FCP");let s;const c=wc("paint",d=>{d.forEach(p=>{p.name==="first-contentful-paint"&&(c.disconnect(),p.startTime<n.firstHiddenTime&&(r.value=Math.max(p.startTime-wm(),0),r.entries.push(p),s(!0)))})});c&&(s=Wd(e,r,CF,t.reportAllChanges))})},bF=[.1,.25],TF=(e,t={})=>{xF(W0(()=>{const n=qd("CLS",0);let r,s=0,l=[];const c=p=>{p.forEach(g=>{if(!g.hadRecentInput){const v=l[0],_=l[l.length-1];s&&v&&_&&g.startTime-_.startTime<1e3&&g.startTime-v.startTime<5e3?(s+=g.value,l.push(g)):(s=g.value,l=[g])}}),s>n.value&&(n.value=s,n.entries=l,r())},d=wc("layout-shift",c);d&&(r=Wd(e,n,bF,t.reportAllChanges),Vd(()=>{c(d.takeRecords()),r(!0)}),setTimeout(r,0))}))},kF=[100,300],RF=(e,t={})=>{Sm(()=>{const n=q0(),r=qd("FID");let s;const l=p=>{p.startTime<n.firstHiddenTime&&(r.value=p.processingStart-p.startTime,r.entries.push(p),s(!0))},c=p=>{p.forEach(l)},d=wc("first-input",c);s=Wd(e,r,kF,t.reportAllChanges),d&&Vd(W0(()=>{c(d.takeRecords()),d.disconnect()}))})};let _6=0,Dv=1/0,mg=0;const IF=e=>{e.forEach(t=>{t.interactionId&&(Dv=Math.min(Dv,t.interactionId),mg=Math.max(mg,t.interactionId),_6=mg?(mg-Dv)/7+1:0)})};let t_;const OF=()=>t_?_6:performance.interactionCount||0,AF=()=>{"interactionCount"in performance||t_||(t_=wc("event",IF,{type:"event",buffered:!0,durationThreshold:0}))},ia=[],Fv=new Map,PF=40;let LF=0;const NF=()=>OF()-LF,MF=()=>{const e=Math.min(ia.length-1,Math.floor(NF()/50));return ia[e]},$v=10,DF=[],FF=e=>{var r;
339if(DF.forEach(s=>s(e)),!(e.interactionId||e.entryType==="first-input"))return;const t=ia[ia.length-1],n=Fv.get(e.interactionId);if(n||ia.length<$v||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===((r=n.entries[0])==null?void 0:r.startTime)&&n.entries.push(e);else{const s={id:e.interactionId,latency:e.duration,entries:[e]};Fv.set(s.id,s),ia.push(s)}ia.sort((s,l)=>l.latency-s.latency),ia.length>$v&&ia.splice($v).forEach(s=>Fv.delete(s.id))}},w6=e=>{var r;const t=vt.requestIdleCallback||vt.setTimeout;let n=-1;return e=W0(e),((r=vt.document)==null?void 0:r.visibilityState)==="hidden"?e():(n=t(e),Vd(e)),n},$F=[200,500],jF=(e,t={})=>{"PerformanceEventTiming"in vt&&"interactionId"in PerformanceEventTiming.prototype&&Sm(()=>{AF();const n=qd("INP");let r;const s=c=>{w6(()=>{c.forEach(FF);const d=MF();d&&d.latency!==n.value&&(n.value=d.latency,n.entries=d.entries,r())})},l=wc("event",s,{durationThreshold:t.durationThreshold!=null?t.durationThreshold:PF});r=Wd(e,n,$F,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),Vd(()=>{s(l.takeRecords()),r(!0)}))})},UF=[2500,4e3],ZE={},HF=(e,t={})=>{Sm(()=>{const n=q0(),r=qd("LCP");let s;const l=d=>{t.reportAllChanges||(d=d.slice(-1)),d.forEach(p=>{p.startTime<n.firstHiddenTime&&(r.value=Math.max(p.startTime-wm(),0),r.entries=[p],s())})},c=wc("largest-contentful-paint",l);if(c){s=Wd(e,r,UF,t.reportAllChanges);const d=W0(()=>{ZE[r.id]||(l(c.takeRecords()),c.disconnect(),ZE[r.id]=!0,s(!0))});["keydown","click"].forEach(p=>{vt.document&&addEventListener(p,()=>w6(d),{once:!0,capture:!0})}),Vd(d)}})},BF=[800,1800],n_=e=>{var t,n;(t=vt.document)!=null&&t.prerendering?Sm(()=>n_(e)):((n=vt.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>n_(e),!0):setTimeout(e,0)},zF=(e,t={})=>{const n=qd("TTFB"),r=Wd(e,n,BF,t.reportAllChanges);n_(()=>{const s=_m();s&&(n.value=Math.max(s.responseStart-wm(),0),n.entries=[s],r(!0))})},Lh={},l0={};let S6,E6,C6,x6,b6;function lw(e,t=!1){return Em("cls",e,qF,S6,t)}function T6(e,t=!1){return Em("lcp",e,GF,C6,t)}function k6(e){return Em("fid",e,VF,E6)}function WF(e){return Em("ttfb",e,KF,x6)}function R6(e){return Em("inp",e,YF,b6)}function bd(e,t){return I6(e,t),l0[e]||(QF(e),l0[e]=!0),O6(e,t)}function Gd(e,t){const n=Lh[e];if(n!=null&&n.length)for(const r of n)try{r(t)}catch(s){qh&&Ce.error(`Error while triggering instrumentation handler.
340Type: ${e}
341Name: ${va(r)}
342Error:`,s)}}function qF(){return TF(e=>{Gd("cls",{metric:e}),S6=e},{reportAllChanges:!0})}function VF(){return RF(e=>{Gd("fid",{metric:e}),E6=e})}function GF(){return HF(e=>{Gd("lcp",{metric:e}),C6=e},{reportAllChanges:!0})}function KF(){return zF(e=>{Gd("ttfb",{metric:e}),x6=e})}function YF(){return jF(e=>{Gd("inp",{metric:e}),b6=e})}function Em(e,t,n,r,s=!1){I6(e,t);let l;return l0[e]||(l=n(),l0[e]=!0),r&&t({metric:r}),O6(e,t,s?l:void 0)}function QF(e){const t={};e==="event"&&(t.durationThreshold=0),wc(e,n=>{Gd(e,{entries:n})},t)}function I6(e,t){Lh[e]=Lh[e]||[],Lh[e].push(t)}function O6(e,t,n){return()=>{n&&n();const r=Lh[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function XF(e){return"duration"in e}function jv(e){return typeof e=="number"&&isFinite(e)}function Sa(e,t,n,{...r}){const s=Bt(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),qx(e,()=>{const l=vm({startTime:t,...r});return l&&l.end(n),l})}function A6(e){var I;const t=Et();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:l}=e,{release:c,environment:d,sendDefaultPii:p}=t.getOptions(),g=t.getIntegrationByName("Replay"),v=g==null?void 0:g.getReplayId(),_=Qt(),E=_.getUser(),x=E!==void 0?E.email||E.id||E.ip_address:void 0;let b;try{b=_.getScopeData().contexts.profile.profile_id}catch{}const R={release:c,environment:d,user:x||void 0,profile_id:b||void 0,replay_id:v||void 0,transaction:r,"user_agent.original":(I=vt.navigator)==null?void 0:I.userAgent,"client.address":p?"{{auto}}":void 0,...s};return vm({name:n,attributes:R,startTime:l,experimental:{standalone:!0}})}function uw(){return vt.addEventListener&&vt.performance}function kn(e){return e/1e3}function P6(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}
342return r===e&&(t=r),{name:t,version:n}}function JF(){let e=0,t,n;if(!e$())return;let r=!1;function s(){r||(r=!0,n&&ZF(e,t,n),l())}const l=lw(({metric:c})=>{const d=c.entries[c.entries.length-1];d&&(e=c.value,t=d)},!0);Vd(()=>{s()}),setTimeout(()=>{const c=Et();if(!c)return;const d=c.on("startNavigationSpan",()=>{s(),d==null||d()}),p=qr();if(p){const g=Ir(p);Bt(g).op==="pageload"&&(n=g.spanContext().spanId)}},0)}function ZF(e,t,n){var p;qh&&Ce.log(`Sending CLS span (${e})`);const r=kn((Ni()||0)+((t==null?void 0:t.startTime)||0)),s=Qt().getScopeData().transactionName,l=t?ya((p=t.sources[0])==null?void 0:p.node):"Layout shift",c={[nr]:"auto.http.browser.cls",[fc]:"ui.webvital.cls",[gm]:(t==null?void 0:t.duration)||0,"sentry.pageload.span_id":n},d=A6({name:l,transaction:s,attributes:c,startTime:r});d&&(d.addEvent("cls",{[B0]:"",[z0]:e}),d.end(r))}function e$(){try{return PerformanceObserver.supportedEntryTypes.includes("layout-shift")}catch{return!1}}const t$=2147483647;let e3=0,mr={},ci,Jf;function n$({recordClsStandaloneSpans:e}){const t=uw();if(t&&Ni()){t.mark&&vt.performance.mark("sentry-tracing-init");const n=l$(),r=a$(),s=u$(),l=e?JF():o$();return()=>{n(),r(),s(),l==null||l()}}return()=>{}}function r$(){bd("longtask",({entries:e})=>{const t=qr();if(!t)return;const{op:n,start_timestamp:r}=Bt(t);for(const s of e){const l=kn(Ni()+s.startTime),c=kn(s.duration);n==="navigation"&&r&&l<r||Sa(t,l,l+c,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[nr]:"auto.ui.browser.metrics"}})}})}function i$(){new PerformanceObserver(t=>{const n=qr();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=kn(Ni()+r.startTime),{start_timestamp:l,op:c}=Bt(n);if(c==="navigation"&&l&&s<l)continue;const d=kn(r.duration),p={[nr]:"auto.ui.browser.metrics"},g=r.scripts[0],{invoker:v,invokerType:_,sourceURL:E,sourceFunctionName:x,sourceCharPosition:b}=g;p["browser.script.invoker"]=v,p["browser.script.invoker_type"]=_,E&&(p["code.filepath"]=E),x&&(p["code.function"]=x),b!==-1&&(p["browser.script.source_char_position"]=b),Sa(n,s,s+d,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:p})}}).observe({type:"long-animation-frame",buffered:!0})}function s$(){bd("event",({entries:e})=>{const t=qr();if(t){for(const n of e)if(n.name==="click"){const r=kn(Ni()+n.startTime),s=kn(n.duration),l={name:ya(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[nr]:"auto.ui.browser.metrics"}},c=yx(n.target);c&&(l.attributes["ui.component_name"]=c),Sa(t,r,r+s,l)}}})}function o$(){return lw(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(mr.cls={value:e.value,unit:""},Jf=t)},!0)}function a$(){return T6(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(mr.lcp={value:e.value,unit:"millisecond"},ci=t)},!0)}function l$(){return k6(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=kn(Ni()),r=kn(t.startTime);mr.fid={value:e.value,unit:"millisecond"},mr["mark.fid"]={value:n+r,unit:"second"}})}function u$(){return WF(({metric:e})=>{e.entries[e.entries.length-1]&&(mr.ttfb={value:e.value,unit:"millisecond"})})}function c$(e,t){const n=uw(),r=Ni();if(!(n!=null&&n.getEntries)||!r)return;const s=kn(r),l=n.getEntries(),{op:c,start_timestamp:d}=Bt(e);if(l.slice(e3).forEach(p=>{const g=kn(p.startTime),v=kn(Math.max(0,p.duration));if(!(c==="navigation"&&d&&s+g<d))switch(p.entryType){case"navigation":{d$(e,p,s);break}case"mark":case"paint":case"measure":{f$(e,p,g,v,s);const _=q0(),E=p.startTime<_.firstHiddenTime;p.name==="first-paint"&&E&&(mr.fp={value:p.startTime,unit:"millisecond"}),p.name==="first-contentful-paint"&&E&&(mr.fcp={value:p.startTime,unit:"millisecond"});break}case"resource":{m$(e,p,p.name,g,v,s);break}}}),e3=Math.max(l.length-1,0),g$(e),c==="pageload"){v$(mr);const p=mr["mark.fid"];p&&mr.fid&&(Sa(e,p.value,p.value+kn(mr.fid.value),{name:"first input delay",op:"ui.action",attributes:{[nr]:"auto.ui.browser.metrics"}}),delete mr["mark.fid"]),(!("fcp"in mr)||!t.recordClsOnPageloadSpan)&&delete mr.cls,Object.entries(mr).forEach(([g,v])=>{sM(g,v.value,v.unit)}),e.setAttribute("performance.timeOrigin",s),e.setAttribute("performance.activationStart",wm()),y$(e)}ci=void 0,Jf=void 0,mr={}}
342function f$(e,t,n,r,s){const l=_m(!1),c=kn(l?l.requestStart:0),d=s+Math.max(n,c),p=s+n,g=p+r,v={[nr]:"auto.resource.browser.metrics"};d!==p&&(v["sentry.browser.measure_happened_before_request"]=!0,v["sentry.browser.measure_start_time"]=d),d<=g&&Sa(e,d,g,{name:t.name,op:t.entryType,attributes:v})}function d$(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{gg(e,t,r,n)}),gg(e,t,"secureConnection",n,"TLS/SSL"),gg(e,t,"fetch",n,"cache"),gg(e,t,"domainLookup",n,"DNS"),h$(e,t,n)}function gg(e,t,n,r,s=n){const l=p$(n),c=t[l],d=t[`${n}Start`];!d||!c||Sa(e,r+kn(d),r+kn(c),{op:`browser.${s}`,name:t.name,attributes:{[nr]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function p$(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function h$(e,t,n){const r=n+kn(t.requestStart),s=n+kn(t.responseEnd),l=n+kn(t.responseStart);t.responseEnd&&(Sa(e,r,s,{op:"browser.request",name:t.name,attributes:{[nr]:"auto.ui.browser.metrics"}}),Sa(e,l,s,{op:"browser.response",name:t.name,attributes:{[nr]:"auto.ui.browser.metrics"}}))}function m$(e,t,n,r,s,l){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const c=oc(n),d={[nr]:"auto.resource.browser.metrics"};Uv(d,t,"transferSize","http.response_transfer_size"),Uv(d,t,"encodedBodySize","http.response_content_length"),Uv(d,t,"decodedBodySize","http.decoded_response_content_length");const p=t.deliveryType;p!=null&&(d["http.response_delivery_type"]=p);const g=t.renderBlockingStatus;g&&(d["resource.render_blocking_status"]=g),c.protocol&&(d["url.scheme"]=c.protocol.split(":").pop()),c.host&&(d["server.address"]=c.host),d["url.same_origin"]=n.includes(vt.location.origin);const{name:v,version:_}=P6(t.nextHopProtocol);d["network.protocol.name"]=v,d["network.protocol.version"]=_;const E=l+r,x=E+s;Sa(e,E,x,{name:n.replace(vt.location.origin,""),op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",attributes:d})}function g$(e){const t=vt.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setAttribute("effectiveConnectionType",n.effectiveType),n.type&&e.setAttribute("connectionType",n.type),jv(n.rtt)&&(mr["connection.rtt"]={value:n.rtt,unit:"millisecond"})),jv(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),jv(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}function y$(e){ci&&(ci.element&&e.setAttribute("lcp.element",ya(ci.element)),ci.id&&e.setAttribute("lcp.id",ci.id),ci.url&&e.setAttribute("lcp.url",ci.url.trim().slice(0,200)),ci.loadTime!=null&&e.setAttribute("lcp.loadTime",ci.loadTime),ci.renderTime!=null&&e.setAttribute("lcp.renderTime",ci.renderTime),e.setAttribute("lcp.size",ci.size)),Jf!=null&&Jf.sources&&Jf.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,ya(t.node)))}function Uv(e,t,n,r){const s=t[n];s!=null&&s<t$&&(e[r]=s)}function v$(e){const t=_m(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const _$=1e3;let t3,r_,i_;function L6(e){const t="dom";jl(t,e),Ul(t,w$)}function w$(){if(!vt.document)return;const e=os.bind(null,"dom"),t=n3(e,!0);vt.document.addEventListener("click",t,!1),vt.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var l,c;const s=(l=vt[n])==null?void 0:l.prototype;(c=s==null?void 0:s.hasOwnProperty)!=null&&c.call(s,"addEventListener")&&(pi(s,"addEventListener",function(d){return function(p,g,v){if(p==="click"||p=="keypress")try{const _=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},E=_[p]=_[p]||{refCount:0};if(!E.handler){const x=n3(e);E.handler=x,d.call(this,p,x,v)}E.refCount++}catch{}return d.call(this,p,g,v)}}),pi(s,"removeEventListener",function(d){return function(p,g,v){if(p==="click"||p=="keypress")try{const _=this.__sentry_instrumentation_handlers__||{},E=_[p];E&&(E.refCount--,E.refCount<=0&&(d.call(this,p,E.handler,v),E.handler=void 0,delete _[p]),Object.keys(_).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return d.call(this,p,g,v)}}))})}function S$(e){if(e.type!==r_)return!1;try{if(!e.target||e.target._sentryId!==i_)return!1}catch{}return!0}function E$(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function n3(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=C$(n);if(E$(n.type,r))return;Li(n,"_sentryCaptured",!0),r&&!r._sentryId&&Li(r,"_sentryId",Pi());
342const s=n.type==="keypress"?"input":n.type;S$(n)||(e({event:n,name:s,global:t}),r_=n.type,i_=r?r._sentryId:void 0),clearTimeout(t3),t3=vt.setTimeout(()=>{i_=void 0,r_=void 0},_$)}}function C$(e){try{return e.target}catch{return null}}let yg;function V0(e){const t="history";jl(t,e),Ul(t,x$)}function x$(){if(vt.addEventListener("popstate",()=>{const t=vt.location.href,n=yg;if(yg=t,n===t)return;os("history",{from:n,to:t})}),!VD())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=yg,l=b$(String(r));if(yg=l,s===l)return t.apply(this,n);os("history",{from:s,to:l})}return t.apply(this,n)}}pi(vt.history,"pushState",e),pi(vt.history,"replaceState",e)}function b$(e){try{return new URL(e,vt.location.origin).toString()}catch{return e}}const $g={};function N6(e){const t=$g[e];if(t)return t;let n=vt[e];if(Q2(n))return $g[e]=n.bind(vt);const r=vt.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const l=s.contentWindow;l!=null&&l[e]&&(n=l[e]),r.head.removeChild(s)}catch(s){qh&&Ce.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&($g[e]=n.bind(vt))}function r3(e){$g[e]=void 0}function Td(...e){return N6("setTimeout")(...e)}const Wu="__sentry_xhr_v3__";function M6(e){const t="xhr";jl(t,e),Ul(t,T$)}function T$(){if(!vt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,l=Wr()*1e3,c=fa(r[0])?r[0].toUpperCase():void 0,d=k$(r[1]);if(!c||!d)return t.apply(n,r);n[Wu]={method:c,url:d,request_headers:{}},c==="POST"&&d.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const p=()=>{const g=n[Wu];if(g&&n.readyState===4){try{g.status_code=n.status}catch{}const v={endTimestamp:Wr()*1e3,startTimestamp:l,xhr:n,virtualError:s};os("xhr",v)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(g,v,_){return p(),g.apply(v,_)}}):n.addEventListener("readystatechange",p),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(g,v,_){const[E,x]=_,b=v[Wu];return b&&fa(E)&&fa(x)&&(b.request_headers[E.toLowerCase()]=x),g.apply(v,_)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[Wu];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const l={startTimestamp:Wr()*1e3,xhr:n};return os("xhr",l),t.apply(n,r)}})}function k$(e){if(fa(e))return e;try{return e.toString()}catch{}}function D6(e){return new URLSearchParams(e).toString()}function F6(e,t=Ce){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[D6(e)];if(!e)return[void 0]}catch(n){return qh&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return qh&&t.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function $6(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}const Hv=[],jg=new Map;function R$(){if(uw()&&Ni()){const t=I$();return()=>{t()}}return()=>{}}const i3={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 I$(){return R6(({metric:e})=>{if(e.value==null)return;const t=e.entries.find(b=>b.duration===e.value&&i3[b.name]);if(!t)return;const{interactionId:n}=t,r=i3[t.name],s=kn(Ni()+t.startTime),l=kn(e.value),c=qr(),d=c?Ir(c):void 0,g=(n!=null?jg.get(n):void 0)||d,v=g?Bt(g).description:Qt().getScopeData().transactionName,_=ya(t.target),E={[nr]:"auto.http.browser.inp",[fc]:`ui.interaction.${r}`,[gm]:t.duration},x=A6({name:_,transaction:v,attributes:E,startTime:s});x&&(x.addEvent("inp",{[B0]:"millisecond",[z0]:e.value}),x.end(s+l))})}function O$(){const e=({entries:t})=>{const n=qr(),r=n&&Ir(n);t.forEach(s=>{if(!XF(s)||!r)return;const l=s.interactionId;if(l!=null&&!jg.has(l)){if(Hv.length>10){const c=Hv.shift();jg.delete(c)}Hv.push(l),jg.set(l,r)}})};bd("event",e),bd("first-input",e)}function A$(e,t=N6("fetch")){let n=0,r=0;function s(l){const c=l.body.length;n+=c,r++;
vendor: 9,984 bytes, line 342
342const d={body:l.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return r3("fetch"),s0("No fetch implementation available");try{return t(e.url,d).then(p=>(n-=c,r--,{statusCode:p.status,headers:{"x-sentry-rate-limits":p.headers.get("X-Sentry-Rate-Limits"),"retry-after":p.headers.get("Retry-After")}}))}catch(p){return r3("fetch"),n-=c,r--,s0(p)}}return oD(e,s)}const P$=30,L$=50;function s_(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?pc:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const N$=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,M$=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,D$=/\((\S*)(?::(\d+))(?::(\d+))\)/,F$=e=>{const t=N$.exec(e);if(t){const[,r,s,l]=t;return s_(r,pc,+s,+l)}const n=M$.exec(e);if(n){if(n[2]&&n[2].indexOf("eval")===0){const c=D$.exec(n[2]);c&&(n[2]=c[1],n[3]=c[2],n[4]=c[3])}const[s,l]=j6(n[1]||pc,n[2]);return s_(l,s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}},$$=[P$,F$],j$=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,U$=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,H$=e=>{const t=j$.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const l=U$.exec(t[3]);l&&(t[1]=t[1]||"eval",t[3]=l[1],t[4]=l[2],t[5]="")}let r=t[3],s=t[1]||pc;return[s,r]=j6(s,r),s_(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},B$=[L$,H$],z$=[$$,B$],W$=Mx(...z$),j6=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:pc,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ds=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vg=1024,q$="Breadcrumbs",V$=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:q$,setup(n){t.console&&ID(Q$(n)),t.dom&&L6(Y$(n,t.dom)),t.xhr&&M6(X$(n)),t.fetch&&m6(J$(n)),t.history&&V0(Z$(n)),t.sentry&&n.on("beforeSendEvent",K$(n))}}},G$=V$;function K$(e){return function(n){Et()===e&&Ll({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ju(n)},{event:n})}}function Y$(e,t){return function(r){if(Et()!==e)return;let s,l,c=typeof t=="object"?t.serializeAttribute:void 0,d=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;d&&d>vg&&(Ds&&Ce.warn(`\`dom.maxStringLength\` cannot exceed ${vg}, but a value of ${d} was configured. Sentry will use ${vg} instead.`),d=vg),typeof c=="string"&&(c=[c]);try{const g=r.event,v=ej(g)?g.target:g;s=ya(v,{keyAttrs:c,maxStringLength:d}),l=yx(v)}catch{s="<unknown>"}if(s.length===0)return;const p={category:`ui.${r.name}`,message:s};l&&(p.data={"ui.component_name":l}),Ll(p,{event:r.event,name:r.name,global:r.global})}}function Q$(e){return function(n){if(Et()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:u6(n.level),message:pE(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${pE(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Ll(r,{input:n.args,level:n.level})}}function X$(e){return function(n){if(Et()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,l=n.xhr[Wu];if(!r||!s||!l)return;const{method:c,url:d,status_code:p,body:g}=l,v={method:c,url:d,status_code:p},_={xhr:n.xhr,input:g,startTimestamp:r,endTimestamp:s},E={category:"xhr",data:v,type:"http",level:h6(p)};e.emit("beforeOutgoingRequestBreadcrumb",E,_),Ll(E,_)}}function J$(e){return function(n){if(Et()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){const l=n.fetchData,c={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},d={category:"fetch",data:l,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",d,c),Ll(d,c)}else{const l=n.response,c={...n.fetchData,status_code:l==null?void 0:l.status};n.fetchData.request_body_size,n.fetchData.response_body_size,l==null||l.status;const d={input:n.args,response:l,startTimestamp:r,endTimestamp:s},p={category:"fetch",data:c,type:"http",level:h6(c.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",p,d),Ll(p,d)}}}function Z$(e){return function(n){if(Et()!==e)return;let r=n.from,s=n.to;const l=oc(Nt.location.href);let c=r?oc(r):void 0;const d=oc(s);c!=null&&c.path||(c=l),l.protocol===d.protocol&&l.host===d.host&&(s=d.relative),l.protocol===c.protocol&&l.host===c.host&&(r=c.relative),Ll({category:"navigation",data:{from:r,to:s}})}}function ej(e){return!!e&&!!e.target}const tj=["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"],nj="BrowserApiErrors",rj=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:nj,setupOnce(){t.setTimeout&&pi(Nt,"setTimeout",s3),t.setInterval&&pi(Nt,"setInterval",s3),t.requestAnimationFrame&&pi(Nt,"requestAnimationFrame",sj),t.XMLHttpRequest&&"XMLHttpRequest"in Nt&&pi(XMLHttpRequest.prototype,"send",oj);const n=t.eventTarget;n&&(Array.isArray(n)?n:tj).forEach(aj)}}},ij=rj;function s3(e){return function(...t){const n=t[0];return t[0]=xd(n,{mechanism:{data:{function:va(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function sj(e){return function(t){return e.apply(this,[xd(t,{mechanism:{data:{function:"requestAnimationFrame",handler:va(e)},handled:!1,type:"instrument"}})])}}function oj(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&pi(n,s,function(l){const c={mechanism:{data:{function:s,handler:va(l)},handled:!1,type:"instrument"}},d=Y_(l);return d&&(c.mechanism.data.handler=va(d)),xd(l,c)})}),e.apply(this,t)}}function aj(e){var r,s;const n=(r=Nt[e])==null?void 0:r.prototype;(s=n==null?void 0:n.hasOwnProperty)!=null&&s.call(n,"addEventListener")&&(pi(n,"addEventListener",function(l){return function(c,d,p){try{lj(d)&&(d.handleEvent=xd(d.handleEvent,{mechanism:{data:{function:"handleEvent",handler:va(d),target:e},handled:!1,type:"instrument"}}))}catch{}return l.apply(this,[c,xd(d,{mechanism:{data:{function:"addEventListener",handler:va(d),target:e},handled:!1,type:"instrument"}}),p])}}),pi(n,"removeEventListener",function(l){return function(c,d,p){try{const g=d.__sentry_wrapped__;g&&l.call(this,c,g,p)}catch{}return l.call(this,c,d,p)}}))}function lj(e){return typeof e.handleEvent=="function"}const uj=()=>({name:"BrowserSession",setupOnce(){if(typeof Nt.document>"u"){Ds&&Ce.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}DE({ignoreDuration:!0}),FE(),V0(({from:e,to:t})=>{e!==void 0&&e!==t&&(DE({ignoreDuration:!0}),FE())})}}),cj="GlobalHandlers",fj=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:cj,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(pj(n),o3("onerror")),t.onunhandledrejection&&(hj(n),o3("onunhandledrejection"))}}},dj=fj;function pj(e){Dx(t=>{const{stackParser:n,attachStacktrace:r}=U6();if(Et()!==e||y6())return;const{msg:s,url:l,line:c,column:d,error:p}=t,g=yj(aw(n,p||s,void 0,r,!1),l,c,d);g.level="error",Yx(g,{originalException:p,mechanism:{handled:!1,type:"onerror"}})})}function hj(e){Fx(t=>{const{stackParser:n,attachStacktrace:r}=U6();if(Et()!==e||y6())return;const s=mj(t),l=G_(s)?gj(s):aw(n,s,void 0,r,!0);l.level="error",Yx(l,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function mj(e){if(G_(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function gj(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function yj(e,t,n,r){const s=e.exception=e.exception||{},l=s.values=s.values||[],c=l[0]=l[0]||{},d=c.stacktrace=c.stacktrace||{},p=d.frames=d.frames||[],g=r,v=n,_=fa(t)&&t.length>0?t:Bd();return p.length===0&&p.push({colno:g,filename:_,function:pc,in_app:!0,lineno:v}),e}function o3(e){Ds&&Ce.log(`Global Handler attached: ${e}`)}function U6(){const e=Et();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}const vj=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!Nt.navigator&&!Nt.location&&!Nt.document)return;const t=Z2(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}}}),_j="cause",wj=5,Sj="LinkedErrors",Ej=(e={})=>{const t=e.limit||wj,n=e.key||_j;return{name:Sj,preprocessEvent(r,s,l){const c=l.getOptions();RD(sw,c.stackParser,n,t,r,s)}}},Cj=Ej;function xj(e){return[wD(),gD(),ij(),G$(),dj(),Cj(),LD(),vj(),uj()]}function bj(e={}){var n;return{...{defaultIntegrations:xj(),release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(n=Nt.SENTRY_RELEASE)==null?void 0:n.id,sendClientReports:!0},...Tj(e)}}function Tj(e){const t={};for(const n of Object.getOwnPropertyNames(e)){const r=n;e[r]!==void 0&&(t[r]=e[r])}return t}function kj(e={}){if(!e.skipBrowserExtensionCheck&&Ij())return;const t=bj(e),n={...t,stackParser:IN(t.stackParser||W$),integrations:BM(t),transport:t.transport||A$};return ZM(yF,n)}function Rj(){var l;if(typeof Nt.window>"u")return!1;const e=Nt;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((l=t==null?void 0:t.runtime)!=null&&l.id))return!1;const n=Bd(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];
342return!(Nt===Nt.top&&r.some(c=>n.startsWith(`${c}://`)))}function Ij(){if(Rj())return Ds&&$l(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0}const nn=Tt,cw="sentryReplaySession",Oj="replay_event",fw="Unable to send Replay",Aj=3e5,Pj=9e5,Lj=5e3,Nj=5500,Mj=6e4,Dj=5e3,Fj=3,a3=15e4,_g=5e3,$j=3e3,jj=300,dw=2e7,Uj=4999,Hj=15e3,l3=36e5;var Bj=Object.defineProperty,zj=(e,t,n)=>t in e?Bj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u3=(e,t,n)=>zj(e,typeof t!="symbol"?t+"":t,n),tr=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(tr||{});function Wj(e){return e.nodeType===e.ELEMENT_NODE}function Nh(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function Mh(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function qj(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Vj(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function u0(e){try{const t=e.rules||e.cssRules;return t?qj(Array.from(t,H6).join("")):null}catch{return null}}function Gj(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],l=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${l?" !important":""};`}return`${e.selectorText} { ${t} }`}function H6(e){let t;if(Yj(e))try{t=u0(e.styleSheet)||Vj(e)}catch{}else if(Qj(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=Gj(e)),r&&(n=Kj(n)),r||s)return n}return t||e.cssText}function Kj(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function Yj(e){return"styleSheet"in e}function Qj(e){return"selectorText"in e}class B6{constructor(){u3(this,"idNodeMap",new Map),u3(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Xj(){return new B6}function G0({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Vh({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function kd(e){return e.toLowerCase()}function o_(e){return e.toUpperCase()}const c3="__rrweb_original__";function Jj(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const l=t.getImageData,c=c3 in l?l[c3]:l;if(new Uint32Array(c.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(p=>p!==0))return!1}return!0}function pw(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?kd(t):null}function c0(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function z6(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,s=n.pathname.match(r);return(s==null?void 0:s[1])??null}const f3={};function W6(e){const t=f3[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const l=s.contentWindow;l&&l[e]&&(r=l[e]),n.head.removeChild(s)}catch{}return f3[e]=r.bind(window)}function a_(...e){return W6("setTimeout")(...e)}
342function q6(...e){return W6("clearTimeout")(...e)}function V6(e){try{return e.contentDocument}catch{}}let Zj=1;const eU=new RegExp("[^a-z0-9-_:]"),Gh=-2;function hw(){return Zj++}function tU(e){if(e instanceof HTMLFormElement)return"form";const t=kd(e.tagName);return eU.test(t)?"div":t}function nU(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Yf,d3;const rU=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,iU=/^(?:[a-z+]+:)?\/\//i,sU=/^www\..*/i,oU=/^(data:)([^,]*),(.*)/i;function f0(e,t){return(e||"").replace(rU,(n,r,s,l,c,d)=>{const p=s||c||d,g=r||l||"";if(!p)return n;if(iU.test(p)||sU.test(p))return`url(${g}${p}${g})`;if(oU.test(p))return`url(${g}${p}${g})`;if(p[0]==="/")return`url(${g}${nU(t)+p}${g})`;const v=t.split("/"),_=p.split("/");v.pop();for(const E of _)E!=="."&&(E===".."?v.pop():v.push(E));return`url(${g}${v.join("/")}${g})`})}const aU=/^[^ \t\n\r\u000c]+/,lU=/^[, \t\n\r\u000c]+/;function uU(e,t){if(t.trim()==="")return t;let n=0;function r(l){let c;const d=l.exec(t.substring(n));return d?(c=d[0],n+=c.length,c):""}const s=[];for(;r(lU),!(n>=t.length);){let l=r(aU);if(l.slice(-1)===",")l=Zf(e,l.substring(0,l.length-1)),s.push(l);else{let c="";l=Zf(e,l);let d=!1;for(;;){const p=t.charAt(n);if(p===""){s.push((l+c).trim());break}else if(d)p===")"&&(d=!1);else if(p===","){n+=1,s.push((l+c).trim());break}else p==="("&&(d=!0);c+=p,n+=1}}}return s.join(", ")}const p3=new WeakMap;function Zf(e,t){return!t||t.trim()===""?t:K0(e,t)}function cU(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function K0(e,t){let n=p3.get(e);if(n||(n=e.createElement("a"),p3.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function G6(e,t,n,r,s,l){return r&&(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#")||n==="xlink:href"&&r[0]!=="#"||n==="background"&&(t==="table"||t==="td"||t==="th")?Zf(e,r):n==="srcset"?uU(e,r):n==="style"?f0(r,K0(e)):t==="object"&&n==="data"?Zf(e,r):typeof l=="function"?l(n,r,s):r)}function K6(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Y6(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const l=e.classList[s];if(t.test(l))return!0}if(n)return e.matches(n)}catch{}return!1}function fU(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function qu(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:qu(e.parentNode,t,n,r+1)}function ed(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(fU(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function Rd(e,t,n,r,s,l){try{const c=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(c===null)return!1;if(c.tagName==="INPUT"){const g=c.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(g))return!0}let d=-1,p=-1;if(l){if(p=qu(c,ed(r,s)),p<0)return!0;d=qu(c,ed(t,n),p>=0?p:1/0)}else{if(d=qu(c,ed(t,n)),d<0)return!1;p=qu(c,ed(r,s),d>=0?d:1/0)}return d>=0?p>=0?d<=p:!0:p>=0?!1:!!l}catch{}return!!l}function dU(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,l;try{l=r.document.readyState}catch{return}if(l!=="complete"){const d=a_(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{q6(d),s=!0,t()});return}const c="about:blank";if(r.location.href!==c||e.src===c||e.src==="")return a_(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function pU(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const l=a_(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{q6(l),r=!0,t()})}function hU(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:d,maskAttributeFn:p,maskTextClass:g,unmaskTextClass:v,maskTextSelector:_,unmaskTextSelector:E,inlineStylesheet:x,maskInputOptions:b={},maskTextFn:R,maskInputFn:I,dataURLOptions:L={},inlineImages:H,recordCanvas:W,keepIframeSrcFn:Q,newlyAddedElement:te=!1}=t,D=mU(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:tr.Document,childNodes:[],compatMode:e.compatMode}:{type:tr.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:tr.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:D};case e.ELEMENT_NODE:return yU(e,{doc:n,blockClass:s,blockSelector:l,unblockSelector:c,inlineStylesheet:x,maskAttributeFn:p,maskInputOptions:b,maskInputFn:I,dataURLOptions:L,inlineImages:H,recordCanvas:W,keepIframeSrcFn:Q,newlyAddedElement:te,rootId:D,maskTextClass:g,unmaskTextClass:v,maskTextSelector:_,unmaskTextSelector:E});case e.TEXT_NODE:return gU(e,{doc:n,maskAllText:d,maskTextClass:g,unmaskTextClass:v,maskTextSelector:_,unmaskTextSelector:E,maskTextFn:R,maskInputOptions:b,maskInputFn:I,rootId:D});case e.CDATA_SECTION_NODE:return{type:tr.CDATA,textContent:"",rootId:D};case e.COMMENT_NODE:return{type:tr.Comment,textContent:e.textContent||"",rootId:D};default:return!1}}function mU(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function gU(e,t){var L;const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:l,unmaskTextSelector:c,maskTextFn:d,maskInputOptions:p,maskInputFn:g,rootId:v}=t,_=e.parentNode&&e.parentNode.tagName;let E=e.textContent;const x=_==="STYLE"?!0:void 0,b=_==="SCRIPT"?!0:void 0,R=_==="TEXTAREA"?!0:void 0;if(x&&E){try{e.nextSibling||e.previousSibling||(L=e.parentNode.sheet)!=null&&L.cssRules&&(E=u0(e.parentNode.sheet))}catch(H){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${H}`,e)}E=f0(E,K0(t.doc))}b&&(E="SCRIPT_PLACEHOLDER");const I=Rd(e,r,l,s,c,n);if(!x&&!b&&!R&&E&&I&&(E=d?d(E,e.parentElement):E.replace(/[\S]/g,"*")),R&&E&&(p.textarea||I)&&(E=g?g(E,e.parentNode):E.replace(/[\S]/g,"*")),_==="OPTION"&&E){const H=G0({type:null,tagName:_,maskInputOptions:p});E=Vh({isMasked:Rd(e,r,l,s,c,H),element:e,value:E,maskInputFn:g})}return{type:tr.Text,textContent:E||"",isStyle:x,rootId:v}}function yU(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:l,inlineStylesheet:c,maskInputOptions:d={},maskAttributeFn:p,maskInputFn:g,dataURLOptions:v={},inlineImages:_,recordCanvas:E,keepIframeSrcFn:x,newlyAddedElement:b=!1,rootId:R,maskTextClass:I,unmaskTextClass:L,maskTextSelector:H,unmaskTextSelector:W}=t,Q=Y6(e,r,s,l),te=tU(e);let D={};const Z=e.attributes.length;for(let X=0;X<Z;X++){const ce=e.attributes[X];ce.name&&!K6(te,ce.name,ce.value)&&(D[ce.name]=G6(n,te,kd(ce.name),ce.value,e,p))}if(te==="link"&&c){const X=Array.from(n.styleSheets).find(ye=>ye.href===e.href);let ce=null;X&&(ce=u0(X)),ce&&(D.rel=null,D.href=null,D.crossorigin=null,D._cssText=f0(ce,X.href))}if(te==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const X=u0(e.sheet);
342X&&(D._cssText=f0(X,K0(n)))}if(te==="input"||te==="textarea"||te==="select"||te==="option"){const X=e,ce=pw(X),ye=c0(X,o_(te),ce),de=X.checked;if(ce!=="submit"&&ce!=="button"&&ye){const xe=Rd(X,I,H,L,W,G0({type:ce,tagName:o_(te),maskInputOptions:d}));D.value=Vh({isMasked:xe,element:X,value:ye,maskInputFn:g})}de&&(D.checked=de)}if(te==="option"&&(e.selected&&!d.select?D.selected=!0:delete D.selected),te==="canvas"&&E){if(e.__context==="2d")Jj(e)||(D.rr_dataURL=e.toDataURL(v.type,v.quality));else if(!("__context"in e)){const X=e.toDataURL(v.type,v.quality),ce=n.createElement("canvas");ce.width=e.width,ce.height=e.height;const ye=ce.toDataURL(v.type,v.quality);X!==ye&&(D.rr_dataURL=X)}}if(te==="img"&&_){Yf||(Yf=n.createElement("canvas"),d3=Yf.getContext("2d"));const X=e,ce=X.currentSrc||X.getAttribute("src")||"<unknown-src>",ye=X.crossOrigin,de=()=>{X.removeEventListener("load",de);try{Yf.width=X.naturalWidth,Yf.height=X.naturalHeight,d3.drawImage(X,0,0),D.rr_dataURL=Yf.toDataURL(v.type,v.quality)}catch(xe){if(X.crossOrigin!=="anonymous"){X.crossOrigin="anonymous",X.complete&&X.naturalWidth!==0?de():X.addEventListener("load",de);return}else console.warn(`Cannot inline img src=${ce}! Error: ${xe}`)}X.crossOrigin==="anonymous"&&(ye?D.crossOrigin=ye:X.removeAttribute("crossorigin"))};X.complete&&X.naturalWidth!==0?de():X.addEventListener("load",de)}if((te==="audio"||te==="video")&&(D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime),b||(e.scrollLeft&&(D.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(D.rr_scrollTop=e.scrollTop)),Q){const{width:X,height:ce}=e.getBoundingClientRect();D={class:D.class,rr_width:`${X}px`,rr_height:`${ce}px`}}te==="iframe"&&!x(D.src)&&(!Q&&!V6(e)&&(D.rr_src=D.src),delete D.src);let ue;try{customElements.get(te)&&(ue=!0)}catch{}return{type:tr.Element,tagName:te,attributes:D,childNodes:[],isSVG:cU(e)||void 0,needBlock:Q,rootId:R,isCustom:ue}}function tn(e){return e==null?"":e.toLowerCase()}function vU(e,t){if(t.comment&&e.type===tr.Comment)return!0;if(e.type===tr.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&z6(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(tn(e.attributes.name).match(/^msapplication-tile(image|color)$/)||tn(e.attributes.name)==="application-name"||tn(e.attributes.rel)==="icon"||tn(e.attributes.rel)==="apple-touch-icon"||tn(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&tn(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(tn(e.attributes.property).match(/^(og|twitter|fb):/)||tn(e.attributes.name).match(/^(og|twitter):/)||tn(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(tn(e.attributes.name)==="robots"||tn(e.attributes.name)==="googlebot"||tn(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(tn(e.attributes.name)==="author"||tn(e.attributes.name)==="generator"||tn(e.attributes.name)==="framework"||tn(e.attributes.name)==="publisher"||tn(e.attributes.name)==="progid"||tn(e.attributes.property).match(/^article:/)||tn(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(tn(e.attributes.name)==="google-site-verification"||tn(e.attributes.name)==="yandex-verification"||tn(e.attributes.name)==="csrf-token"||tn(e.attributes.name)==="p:domain_verify"||tn(e.attributes.name)==="verify-v1"||tn(e.attributes.name)==="verification"||tn(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function td(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:d,maskTextClass:p,unmaskTextClass:g,maskTextSelector:v,unmaskTextSelector:_,skipChild:E=!1,inlineStylesheet:x=!0,maskInputOptions:b={},maskAttributeFn:R,maskTextFn:I,maskInputFn:L,slimDOMOptions:H,dataURLOptions:W={},inlineImages:Q=!1,recordCanvas:te=!1,onSerialize:D,onIframeLoad:Z,iframeLoadTimeout:ue=5e3,onStylesheetLoad:X,stylesheetLoadTimeout:ce=5e3,keepIframeSrcFn:ye=()=>!1,newlyAddedElement:de=!1}=t;let{preserveWhiteSpace:xe=!0}=t;const Re=hU(e,{doc:n,mirror:r,blockClass:s,blockSelector:l,maskAllText:d,unblockSelector:c,maskTextClass:p,unmaskTextClass:g,maskTextSelector:v,unmaskTextSelector:_,inlineStylesheet:x,maskInputOptions:b,maskAttributeFn:R,maskTextFn:I,maskInputFn:L,dataURLOptions:W,inlineImages:Q,recordCanvas:te,keepIframeSrcFn:ye,newlyAddedElement:de});if(!Re)return console.warn(e,"not serialized"),null;let We;r.hasNode(e)?We=r.getId(e):vU(Re,H)||!xe&&Re.type===tr.Text&&!Re.isStyle&&!Re.textContent.replace(/^\s+|\s+$/gm,"").length?We=Gh:We=hw();const fe=Object.assign(Re,{id:We});if(r.add(e,fe),We===Gh)return null;D&&D(e);let Ie=!E;if(fe.type===tr.Element){Ie=Ie&&!fe.needBlock,delete fe.needBlock;const ee=e.shadowRoot;ee&&Mh(ee)&&(fe.isShadowHost=!0)}if((fe.type===tr.Document||fe.type===tr.Element)&&Ie){H.headWhitespace&&fe.type===tr.Element&&fe.tagName==="head"&&(xe=!1);const ee={doc:n,mirror:r,blockClass:s,blockSelector:l,maskAllText:d,unblockSelector:c,maskTextClass:p,unmaskTextClass:g,maskTextSelector:v,unmaskTextSelector:_,skipChild:E,inlineStylesheet:x,maskInputOptions:b,maskAttributeFn:R,maskTextFn:I,maskInputFn:L,slimDOMOptions:H,dataURLOptions:W,inlineImages:Q,recordCanvas:te,preserveWhiteSpace:xe,onSerialize:D,onIframeLoad:Z,iframeLoadTimeout:ue,onStylesheetLoad:X,stylesheetLoadTimeout:ce,keepIframeSrcFn:ye};for(const ve of Array.from(e.childNodes)){const _e=td(ve,ee);_e&&fe.childNodes.push(_e)}if(Wj(e)&&e.shadowRoot)for(const ve of Array.from(e.shadowRoot.childNodes)){const _e=td(ve,ee);_e&&(Mh(e.shadowRoot)&&(_e.isShadow=!0),fe.childNodes.push(_e))}}return e.parentNode&&Nh(e.parentNode)&&Mh(e.parentNode)&&(fe.isShadow=!0),fe.type===tr.Element&&fe.tagName==="iframe"&&!Y6(e,s,l,c)&&dU(e,()=>{const ee=V6(e);if(ee&&Z){const ve=td(ee,{doc:ee,mirror:r,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:d,maskTextClass:p,unmaskTextClass:g,maskTextSelector:v,unmaskTextSelector:_,skipChild:!1,inlineStylesheet:x,maskInputOptions:b,maskAttributeFn:R,maskTextFn:I,maskInputFn:L,slimDOMOptions:H,dataURLOptions:W,inlineImages:Q,recordCanvas:te,preserveWhiteSpace:xe,onSerialize:D,onIframeLoad:Z,iframeLoadTimeout:ue,onStylesheetLoad:X,stylesheetLoadTimeout:ce,keepIframeSrcFn:ye});ve&&Z(e,ve)}},ue),fe.type===tr.Element&&fe.tagName==="link"&&typeof fe.attributes.rel=="string"&&(fe.attributes.rel==="stylesheet"||fe.attributes.rel==="preload"&&typeof fe.attributes.href=="string"&&z6(fe.attributes.href)==="css")&&pU(e,()=>{if(X){const ee=td(e,{doc:n,mirror:r,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:d,maskTextClass:p,unmaskTextClass:g,maskTextSelector:v,unmaskTextSelector:_,skipChild:!1,inlineStylesheet:x,maskInputOptions:b,maskAttributeFn:R,maskTextFn:I,maskInputFn:L,slimDOMOptions:H,dataURLOptions:W,inlineImages:Q,recordCanvas:te,preserveWhiteSpace:xe,onSerialize:D,onIframeLoad:Z,iframeLoadTimeout:ue,onStylesheetLoad:X,stylesheetLoadTimeout:ce,keepIframeSrcFn:ye});ee&&X(e,ee)}},ce),fe}function _U(e,t){const{mirror:n=new B6,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:l=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:g=null,unmaskTextSelector:v=null,inlineStylesheet:_=!0,inlineImages:E=!1,recordCanvas:x=!1,maskAllInputs:b=!1,maskAttributeFn:R,maskTextFn:I,maskInputFn:L,slimDOM:H=!1,dataURLOptions:W,preserveWhiteSpace:Q,onSerialize:te,onIframeLoad:D,iframeLoadTimeout:Z,onStylesheetLoad:ue,stylesheetLoadTimeout:X,keepIframeSrcFn:ce=()=>!1}=t||{};return td(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:l,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:g,unmaskTextSelector:v,skipChild:!1,inlineStylesheet:_,maskInputOptions:b===!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}:b===!1?{}:b,maskAttributeFn:R,maskTextFn:I,maskInputFn:L,slimDOMOptions:H===!0||H==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:H==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}
vendor: 1,372 bytes, lines 342-344
342:H===!1?{}:H,dataURLOptions:W,inlineImages:E,recordCanvas:x,preserveWhiteSpace:Q,onSerialize:te,onIframeLoad:D,iframeLoadTimeout:Z,onStylesheetLoad:ue,stylesheetLoadTimeout:X,keepIframeSrcFn:ce,newlyAddedElement:!1})}function zr(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Qf=`Please stop import mirror directly. Instead of that,\r
343now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
344or you can use record.mirror to access the mirror instance during recording.`;let h3={map:{},getId(){return console.error(Qf),-1},getNode(){return console.error(Qf),null},removeNodeFromMap(){console.error(Qf)},has(){return console.error(Qf),!1},reset(){console.error(Qf)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(h3=new Proxy(h3,{get(e,t,n){return t==="map"&&console.error(Qf),Reflect.get(e,t,n)}}));function Kh(e,t,n={}){let r=null,s=0;return function(...l){const c=Date.now();!s&&n.leading===!1&&(s=c);const d=t-(c-s),p=this;d<=0||d>t?(r&&(TU(r),r=null),s=c,e.apply(p,l)):!r&&n.trailing!==!1&&(r=Y0(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(p,l)},d))}}function Q6(e,t,n,r,s=window){const l=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(c){Y0(()=>{n.set.call(this,c)},0),l&&l.set&&l.set.call(this,c)}}),()=>Q6(e,t,l||{},!0)}
344function mw(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let d0=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(d0=()=>new Date().getTime());function X6(e){var n,r,s,l,c,d;const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(t==null?void 0:t.documentElement.scrollLeft)||((r=(n=t==null?void 0:t.body)==null?void 0:n.parentElement)==null?void 0:r.scrollLeft)||((s=t==null?void 0:t.body)==null?void 0:s.scrollLeft)||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(t==null?void 0:t.documentElement.scrollTop)||((c=(l=t==null?void 0:t.body)==null?void 0:l.parentElement)==null?void 0:c.scrollTop)||((d=t==null?void 0:t.body)==null?void 0:d.scrollTop)||0}}function J6(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Z6(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function eb(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Oi(e,t,n,r,s){if(!e)return!1;const l=eb(e);if(!l)return!1;const c=ed(t,n);if(!s){const g=r&&l.matches(r);return c(l)&&!g}const d=qu(l,c);let p=-1;return d<0?!1:(r&&(p=qu(l,ed(null,r))),d>-1&&p<0?!0:d<p)}function wU(e,t){return t.getId(e)!==-1}function Bv(e,t){return t.getId(e)===Gh}function tb(e,t){if(Nh(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?tb(e.parentNode,t):!0:!0}function l_(e){return!!e.changedTouches}function SU(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function nb(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function rb(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function u_(e){return!!(e!=null&&e.shadowRoot)}class EU{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function ib(e){var n,r;let t=null;return((r=(n=e.getRootNode)==null?void 0:n.call(e))==null?void 0:r.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function CU(e){let t=e,n;for(;n=ib(t);)t=n;return t}function xU(e){const t=e.ownerDocument;if(!t)return!1;const n=CU(e);return t.contains(n)}function sb(e){const t=e.ownerDocument;return t?t.contains(e)||xU(e):!1}const m3={};function gw(e){const t=m3[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const l=s.contentWindow;l&&l[e]&&(r=l[e]),n.head.removeChild(s)}catch{}return m3[e]=r.bind(window)}function bU(...e){return gw("requestAnimationFrame")(...e)}function Y0(...e){return gw("setTimeout")(...e)}function TU(...e){return gw("clearTimeout")(...e)}var yt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(yt||{}),lt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(lt||{}),jr=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(jr||{}),na=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(na||{}),Xf=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Xf||{});function yw(e){try{return e.contentDocument}catch{}}function kU(e){try{return e.contentWindow}catch{}}function g3(e){return"__ln"in e}class RU{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=(n==null?void 0:n.next)||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&g3(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&g3(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;
vendor: 5,098 bytes, line 344
344n.previous=r,n.next=t.nextSibling.__ln,t.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(t){const n=t.__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),t.__ln&&delete t.__ln,this.length--)}}const y3=(e,t)=>`${e}@${t}`;class IU{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=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new RU,s=p=>{let g=p,v=Gh;for(;v===Gh;)g=g&&g.nextSibling,v=g&&this.mirror.getId(g);return v},l=p=>{if(!p.parentNode||!sb(p))return;const g=Nh(p.parentNode)?this.mirror.getId(ib(p)):this.mirror.getId(p.parentNode),v=s(p);if(g===-1||v===-1)return r.addNode(p);const _=td(p,{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.inlineImages,onSerialize:E=>{nb(E,this.mirror)&&!Oi(E,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(E),rb(E,this.mirror)&&this.stylesheetManager.trackLinkElement(E),u_(p)&&this.shadowDomManager.addShadowRoot(p.shadowRoot,this.doc)},onIframeLoad:(E,x)=>{Oi(E,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(E,x),E.contentWindow&&this.canvasManager.addWindow(E.contentWindow),this.shadowDomManager.observeAttachShadow(E))},onStylesheetLoad:(E,x)=>{this.stylesheetManager.attachLinkElement(E,x)}});_&&(t.push({parentId:g,nextId:v,node:_}),n.add(_.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet)v3(this.removes,p,this.mirror)&&!this.movedSet.has(p.parentNode)||l(p);for(const p of this.addedSet)!_3(this.droppedSet,p)&&!v3(this.removes,p,this.mirror)||_3(this.movedSet,p)?l(p):this.droppedSet.add(p);let c=null;for(;r.length;){let p=null;if(c){const g=this.mirror.getId(c.value.parentNode),v=s(c.value);g!==-1&&v!==-1&&(p=c)}if(!p){let g=r.tail;for(;g;){const v=g;if(g=g.previous,v){const _=this.mirror.getId(v.value.parentNode);if(s(v.value)===-1)continue;if(_!==-1){p=v;break}else{const x=v.value;if(x.parentNode&&x.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const b=x.parentNode.host;if(this.mirror.getId(b)!==-1){p=v;break}}}}}}if(!p){for(;r.head;)r.removeNode(r.head.value);break}c=p.previous,r.removeNode(p.value),l(p.value)}const d={texts:this.texts.map(p=>({id:this.mirror.getId(p.node),value:p.value})).filter(p=>!n.has(p.id)).filter(p=>this.mirror.has(p.id)),attributes:this.attributes.map(p=>{const{attributes:g}=p;if(typeof g.style=="string"){const v=JSON.stringify(p.styleDiff),_=JSON.stringify(p._unchangedStyles);v.length<g.style.length&&(v+_).split("var(").length===g.style.split("var(").length&&(g.style=p.styleDiff)}return{id:this.mirror.getId(p.node),attributes:g}}).filter(p=>!n.has(p.id)).filter(p=>this.mirror.has(p.id)),removes:this.removes,adds:t};!d.texts.length&&!d.attributes.length&&!d.removes.length&&!d.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(d))},this.processMutation=t=>{if(!Bv(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Oi(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:Rd(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,eb(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const c=pw(n),d=n.tagName;s=c0(n,d,c);const p=G0({maskInputOptions:this.maskInputOptions,tagName:d,type:c}),g=Rd(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,p);s=Vh({isMasked:g,element:n,value:s,maskInputFn:this.maskInputFn})}if(Oi(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let l=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!yw(n))r="rr_src";else return;
vendor: 4,537 bytes, line 344
344if(l||(l={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(l),this.attributeMap.set(t.target,l)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!K6(n.tagName,r)&&(l.attributes[r]=G6(this.doc,kd(n.tagName),kd(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const c=this.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(const d of Array.from(n.style)){const p=n.style.getPropertyValue(d),g=n.style.getPropertyPriority(d);p!==c.style.getPropertyValue(d)||g!==c.style.getPropertyPriority(d)?g===""?l.styleDiff[d]=p:l.styleDiff[d]=[p,g]:l._unchangedStyles[d]=[p,g]}for(const d of Array.from(c.style))n.style.getPropertyValue(d)===""&&(l.styleDiff[d]=!1)}break}case"childList":{if(Oi(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=Nh(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Oi(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Bv(n,this.mirror)||!wU(n,this.mirror)||(this.addedSet.has(n)?(c_(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||tb(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[y3(r,s)]?c_(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:Nh(t.target)&&Mh(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Bv(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[y3(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Oi(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),u_(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["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]=t[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 c_(e,t){e.delete(t),t.childNodes.forEach(n=>c_(e,n))}function v3(e,t,n){return e.length===0?!1:OU(e,t,n)}function OU(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(l=>l.id===s))return!0;r=r.parentNode}return!1}function _3(e,t){return e.size===0?!1:ob(e,t)}function ob(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:ob(e,n):!1}let Dh;function AU(e){Dh=e}function PU(){Dh=void 0}const Ot=e=>Dh?(...n)=>{try{return e(...n)}catch(r){if(Dh&&Dh(r)===!0)return()=>{};throw r}}:e,nd=[];function Cm(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function ab(e,t){var c,d;const n=new IU;nd.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=(d=(c=window==null?void 0:window.Zone)==null?void 0:c.__symbol__)==null?void 0:d.call(c,"MutationObserver");s&&window[s]&&(r=window[s]);const l=new r(Ot(p=>{e.onMutation&&e.onMutation(p)===!1||n.processMutations.bind(n)(p)}));return l.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),l}function LU({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,l=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let c=[],d;const p=Kh(Ot(_=>{const E=Date.now()-d;e(c.map(x=>(x.timeOffset-=E,x)),_),c=[],d=null}),l),g=Ot(Kh(Ot(_=>{const E=Cm(_),{clientX:x,clientY:b}=l_(_)?_.changedTouches[0]:_;
vendor: 4,928 bytes, line 344
344d||(d=d0()),c.push({x,y:b,id:r.getId(E),timeOffset:d0()-d}),p(typeof DragEvent<"u"&&_ instanceof DragEvent?lt.Drag:_ instanceof MouseEvent?lt.MouseMove:lt.TouchMove)}),s,{trailing:!1})),v=[zr("mousemove",g,n),zr("touchmove",g,n),zr("drag",g,n)];return Ot(()=>{v.forEach(_=>_())})}function NU({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:l,sampling:c}){if(c.mouseInteraction===!1)return()=>{};const d=c.mouseInteraction===!0||c.mouseInteraction===void 0?{}:c.mouseInteraction,p=[];let g=null;const v=_=>E=>{const x=Cm(E);if(Oi(x,r,s,l,!0))return;let b=null,R=_;if("pointerType"in E){switch(E.pointerType){case"mouse":b=na.Mouse;break;case"touch":b=na.Touch;break;case"pen":b=na.Pen;break}b===na.Touch?jr[_]===jr.MouseDown?R="TouchStart":jr[_]===jr.MouseUp&&(R="TouchEnd"):na.Pen}else l_(E)&&(b=na.Touch);b!==null?(g=b,(R.startsWith("Touch")&&b===na.Touch||R.startsWith("Mouse")&&b===na.Mouse)&&(b=null)):jr[_]===jr.Click&&(b=g,g=null);const I=l_(E)?E.changedTouches[0]:E;if(!I)return;const L=n.getId(x),{clientX:H,clientY:W}=I;Ot(e)({type:jr[R],id:L,x:H,y:W,...b!==null&&{pointerType:b}})};return Object.keys(jr).filter(_=>Number.isNaN(Number(_))&&!_.endsWith("_Departed")&&d[_]!==!1).forEach(_=>{let E=kd(_);const x=v(_);if(window.PointerEvent)switch(jr[_]){case jr.MouseDown:case jr.MouseUp:E=E.replace("mouse","pointer");break;case jr.TouchStart:case jr.TouchEnd:return}p.push(zr(E,x,t))}),Ot(()=>{p.forEach(_=>_())})}function lb({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:l,sampling:c}){const d=Ot(Kh(Ot(p=>{const g=Cm(p);if(!g||Oi(g,r,s,l,!0))return;const v=n.getId(g);if(g===t&&t.defaultView){const _=X6(t.defaultView);e({id:v,x:_.left,y:_.top})}else e({id:v,x:g.scrollLeft,y:g.scrollTop})}),c.scroll||100));return zr("scroll",d,t)}function MU({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=Ot(Kh(Ot(()=>{const l=J6(),c=Z6();(n!==l||r!==c)&&(e({width:Number(c),height:Number(l)}),n=l,r=c)}),200));return zr("resize",s,t)}const DU=["INPUT","TEXTAREA","SELECT"],w3=new WeakMap;function FU({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:l,ignoreClass:c,ignoreSelector:d,maskInputOptions:p,maskInputFn:g,sampling:v,userTriggeredOnInput:_,maskTextClass:E,unmaskTextClass:x,maskTextSelector:b,unmaskTextSelector:R}){function I(Z){let ue=Cm(Z);const X=Z.isTrusted,ce=ue&&o_(ue.tagName);if(ce==="OPTION"&&(ue=ue.parentElement),!ue||!ce||DU.indexOf(ce)<0||Oi(ue,r,s,l,!0))return;const ye=ue;if(ye.classList.contains(c)||d&&ye.matches(d))return;const de=pw(ue);let xe=c0(ye,ce,de),Re=!1;const We=G0({maskInputOptions:p,tagName:ce,type:de}),fe=Rd(ue,E,b,x,R,We);(de==="radio"||de==="checkbox")&&(Re=ue.checked),xe=Vh({isMasked:fe,element:ue,value:xe,maskInputFn:g}),L(ue,_?{text:xe,isChecked:Re,userTriggered:X}:{text:xe,isChecked:Re});const Ie=ue.name;de==="radio"&&Ie&&Re&&t.querySelectorAll(`input[type="radio"][name="${Ie}"]`).forEach(ee=>{if(ee!==ue){const ve=Vh({isMasked:fe,element:ee,value:c0(ee,ce,de),maskInputFn:g});L(ee,_?{text:ve,isChecked:!Re,userTriggered:!1}:{text:ve,isChecked:!Re})}})}function L(Z,ue){const X=w3.get(Z);if(!X||X.text!==ue.text||X.isChecked!==ue.isChecked){w3.set(Z,ue);const ce=n.getId(Z);Ot(e)({...ue,id:ce})}}const W=(v.input==="last"?["change"]:["input","change"]).map(Z=>zr(Z,Ot(I),t)),Q=t.defaultView;if(!Q)return()=>{W.forEach(Z=>Z())};const te=Q.Object.getOwnPropertyDescriptor(Q.HTMLInputElement.prototype,"value"),D=[[Q.HTMLInputElement.prototype,"value"],[Q.HTMLInputElement.prototype,"checked"],[Q.HTMLSelectElement.prototype,"value"],[Q.HTMLTextAreaElement.prototype,"value"],[Q.HTMLSelectElement.prototype,"selectedIndex"],[Q.HTMLOptionElement.prototype,"selected"]];return te&&te.set&&W.push(...D.map(Z=>Q6(Z[0],Z[1],{set(){Ot(I)({target:this,isTrusted:!1})}},!1,Q))),Ot(()=>{W.forEach(Z=>Z())})}function p0(e){const t=[];function n(r,s){if(wg("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||wg("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||wg("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||wg("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const c=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(c)}else if(r.parentStyleSheet){const c=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(c)}return s}return n(e,t)}function dl(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function $U({styleSheetRuleCb:e,mirror:t,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:Ot((v,_,E)=>{const[x,b]=E,{id:R,styleId:I}=dl(_,t,n.styleMirror);return(R&&R!==-1||I&&I!==-1)&&e({id:R,styleId:I,adds:[{rule:x,index:b}]}),v.apply(_,E)})});const l=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(l,{apply:Ot((v,_,E)=>
vendor: 5,827 bytes, line 344
344{const[x]=E,{id:b,styleId:R}=dl(_,t,n.styleMirror);return(b&&b!==-1||R&&R!==-1)&&e({id:b,styleId:R,removes:[{index:x}]}),v.apply(_,E)})});let c;r.CSSStyleSheet.prototype.replace&&(c=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:Ot((v,_,E)=>{const[x]=E,{id:b,styleId:R}=dl(_,t,n.styleMirror);return(b&&b!==-1||R&&R!==-1)&&e({id:b,styleId:R,replace:x}),v.apply(_,E)})}));let d;r.CSSStyleSheet.prototype.replaceSync&&(d=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(d,{apply:Ot((v,_,E)=>{const[x]=E,{id:b,styleId:R}=dl(_,t,n.styleMirror);return(b&&b!==-1||R&&R!==-1)&&e({id:b,styleId:R,replaceSync:x}),v.apply(_,E)})}));const p={};Sg("CSSGroupingRule")?p.CSSGroupingRule=r.CSSGroupingRule:(Sg("CSSMediaRule")&&(p.CSSMediaRule=r.CSSMediaRule),Sg("CSSConditionRule")&&(p.CSSConditionRule=r.CSSConditionRule),Sg("CSSSupportsRule")&&(p.CSSSupportsRule=r.CSSSupportsRule));const g={};return Object.entries(p).forEach(([v,_])=>{g[v]={insertRule:_.prototype.insertRule,deleteRule:_.prototype.deleteRule},_.prototype.insertRule=new Proxy(g[v].insertRule,{apply:Ot((E,x,b)=>{const[R,I]=b,{id:L,styleId:H}=dl(x.parentStyleSheet,t,n.styleMirror);return(L&&L!==-1||H&&H!==-1)&&e({id:L,styleId:H,adds:[{rule:R,index:[...p0(x),I||0]}]}),E.apply(x,b)})}),_.prototype.deleteRule=new Proxy(g[v].deleteRule,{apply:Ot((E,x,b)=>{const[R]=b,{id:I,styleId:L}=dl(x.parentStyleSheet,t,n.styleMirror);return(I&&I!==-1||L&&L!==-1)&&e({id:I,styleId:L,removes:[{index:[...p0(x),R]}]}),E.apply(x,b)})})}),Ot(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=l,c&&(r.CSSStyleSheet.prototype.replace=c),d&&(r.CSSStyleSheet.prototype.replaceSync=d),Object.entries(p).forEach(([v,_])=>{_.prototype.insertRule=g[v].insertRule,_.prototype.deleteRule=g[v].deleteRule})})}function ub({mirror:e,stylesheetManager:t},n){var c,d,p;let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?(c=n.defaultView)==null?void 0:c.Document:(p=(d=n.ownerDocument)==null?void 0:d.defaultView)==null?void 0:p.ShadowRoot,l=s!=null&&s.prototype?Object.getOwnPropertyDescriptor(s==null?void 0:s.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!l?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var g;return(g=l.get)==null?void 0:g.call(this)},set(g){var _;const v=(_=l.set)==null?void 0:_.call(this,g);if(r!==null&&r!==-1)try{t.adoptStyleSheets(g,r)}catch{}return v}}),Ot(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function jU({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const l=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(l,{apply:Ot((d,p,g)=>{var R;const[v,_,E]=g;if(n.has(v))return l.apply(p,[v,_,E]);const{id:x,styleId:b}=dl((R=p.parentRule)==null?void 0:R.parentStyleSheet,t,r.styleMirror);return(x&&x!==-1||b&&b!==-1)&&e({id:x,styleId:b,set:{property:v,value:_,priority:E},index:p0(p.parentRule)}),d.apply(p,g)})});const c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Ot((d,p,g)=>{var x;const[v]=g;if(n.has(v))return c.apply(p,[v]);const{id:_,styleId:E}=dl((x=p.parentRule)==null?void 0:x.parentStyleSheet,t,r.styleMirror);return(_&&_!==-1||E&&E!==-1)&&e({id:_,styleId:E,remove:{property:v},index:p0(p.parentRule)}),d.apply(p,g)})}),Ot(()=>{s.CSSStyleDeclaration.prototype.setProperty=l,s.CSSStyleDeclaration.prototype.removeProperty=c})}function UU({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:l,doc:c}){const d=Ot(g=>Kh(Ot(v=>{const _=Cm(v);if(!_||Oi(_,t,n,r,!0))return;const{currentTime:E,volume:x,muted:b,playbackRate:R}=_;e({type:g,id:s.getId(_),currentTime:E,volume:x,muted:b,playbackRate:R})}),l.media||500)),p=[zr("play",d(Xf.Play),c),zr("pause",d(Xf.Pause),c),zr("seeked",d(Xf.Seeked),c),zr("volumechange",d(Xf.VolumeChange),c),zr("ratechange",d(Xf.RateChange),c)];return Ot(()=>{p.forEach(g=>g())})}function HU({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,l=n.FontFace;n.FontFace=function(p,g,v){const _=new l(p,g,v);return s.set(_,{family:p,buffer:typeof g!="string",descriptors:v,fontSource:typeof g=="string"?g:JSON.stringify(Array.from(new Uint8Array(g)))}),_};const c=mw(t.fonts,"add",function(d){return function(p){return Y0(Ot(()=>{const g=s.get(p);g&&(e(g),s.delete(p))}),0),d.apply(this,[p])}});return r.push(()=>{n.FontFace=l}),r.push(c),Ot(()=>{r.forEach(d=>d())})}function BU(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:l,selectionCb:c}=e;let d=!0;const p=Ot(()=>{const g=t.getSelection();if(!g||d&&(g!=null&&g.isCollapsed))return;d=g.isCollapsed||!1;const v=[],_=g.rangeCount||0;for(let E=0;E<_;E++){const x=g.getRangeAt(E),{startContainer:b,startOffset:R,endContainer:I,endOffset:L}=x;Oi(b,r,s,l,!0)||Oi(I,r,s,l,!0)||v.push({start:n.getId(b),startOffset:R,end:n.getId(I),endOffset:L})}c({ranges:v})});return p(),zr("selectionchange",p)}function zU({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:mw(n.customElements,"define",function(s){return function(l,c,d){try{t({define:{name:l}})}catch{}return s.apply(this,[l,c,d])}})}function WU(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=ab(e,e.doc));const s=LU(e),l=NU(e),c=lb(e),d=MU(e,{win:n}),p=FU(e),g=UU(e);let v=()=>{},_=()=>{},E=()=>{},x=()=>{};e.recordDOM&&(v=$U(e,{win:n}),_=ub(e,e.doc),E=jU(e,{win:n}),e.collectFonts&&(x=HU(e)));const b=BU(e),R=zU(e),I=[];for(const L of e.plugins)I.push(L.observer(L.callback,n,L.options));return Ot(()=>
vendor: 4,345 bytes, line 344
344{nd.forEach(L=>L.reset()),r==null||r.disconnect(),s(),l(),c(),d(),p(),g(),v(),_(),E(),x(),b(),R(),I.forEach(L=>L())})}function wg(e){return typeof window[e]<"u"}function Sg(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class f_{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const l=r||this.getIdToRemoteIdMap(t),c=s||this.getRemoteIdToIdMap(t);let d=l.get(n);return d||(d=this.generateIdFn(),l.set(n,d),c.set(d,n)),d}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(l=>this.getId(t,l,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const l=s.get(n);return l||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class qU{constructor(){this.crossOriginIframeMirror=new f_(hw),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class VU{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new f_(hw),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new f_(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var s,l;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((s=t.contentWindow)==null||s.addEventListener("message",this.handleMessage.bind(this))),(l=this.loadListener)==null||l.call(this,t);const r=yw(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const l=this.transformCrossOriginEvent(s,n.data.event);l&&this.wrappedEmit(l,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case yt.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const s=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,s),this.patchRootIdOnNode(n.data.node,s),{timestamp:n.timestamp,type:yt.IncrementalSnapshot,data:{source:lt.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case yt.Meta:case yt.Load:case yt.DomContentLoaded:return!1;case yt.Plugin:return n;case yt.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case yt.IncrementalSnapshot:switch(n.data.source){case lt.Mutation:return n.data.adds.forEach(s=>{this.replaceIds(s,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(s.node,t);const l=this.crossOriginIframeRootIdMap.get(t);l&&this.patchRootIdOnNode(s.node,l)}),n.data.removes.forEach(s=>{this.replaceIds(s,t,["parentId","id"])}),n.data.attributes.forEach(s=>{this.replaceIds(s,t,["id"])}),n.data.texts.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case lt.Drag:case lt.TouchMove:case lt.MouseMove:return n.data.positions.forEach(s=>{this.replaceIds(s,t,["id"])}),n;case lt.ViewportResize:return!1;case lt.MediaInteraction:case lt.MouseInteraction:case lt.Scroll:case lt.CanvasMutation:case lt.Input:return this.replaceIds(n.data,t,["i
344d"]),n;case lt.StyleSheetRule:case lt.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case lt.Font:return n;case lt.Selection:return n.data.ranges.forEach(s=>{this.replaceIds(s,t,["start","end"])}),n;case lt.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)==null||r.forEach(s=>{this.replaceStyleIds(s,t,["styleId"])}),n}}return!1}replace(t,n,r,s){for(const l of s)!Array.isArray(n[l])&&typeof n[l]!="number"||(Array.isArray(n[l])?n[l]=t.getIds(r,n[l]):n[l]=t.getId(r,n[l]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==tr.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class GU{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class KU{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Mh(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=ab({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(lb({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),Y0(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(ub({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=yw(t),r=kU(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(mw(t.prototype,"attachShadow",function(s){return function(l){const c=s.call(this,l);return this.shadowRoot&&sb(this)&&r.addShadowRoot(this.shadowRoot,n),c}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var S3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",YU=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Eg=0;Eg<S3.length;Eg++)YU[S3.charCodeAt(Eg)]=Eg;class E3{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class QU{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new EU,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const l of t){let c;this.styleMirror.has(l)?c=this.styleMirror.getId(l):(c=this.styleMirror.add(l),s.push({styleId:c,rules:Array.from(l.rules||CSSRule,(d,p)=>({rule:H6(d),index:p}))})),r.styleIds.push(c)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class XU{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,bU(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let _n,h0;var K3;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((K3=e.contentWindow)==null?void 0:K3.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Rs=Xj();function da(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr
344-block",blockSelector:l=null,unblockSelector:c=null,ignoreClass:d="rr-ignore",ignoreSelector:p=null,maskAllText:g=!1,maskTextClass:v="rr-mask",unmaskTextClass:_=null,maskTextSelector:E=null,unmaskTextSelector:x=null,inlineStylesheet:b=!0,maskAllInputs:R,maskInputOptions:I,slimDOMOptions:L,maskAttributeFn:H,maskInputFn:W,maskTextFn:Q,maxCanvasSize:te=null,packFn:D,sampling:Z={},dataURLOptions:ue={},mousemoveWait:X,recordDOM:ce=!0,recordCanvas:ye=!1,recordCrossOriginIframes:de=!1,recordAfter:xe=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:Re=!1,collectFonts:We=!1,inlineImages:fe=!1,plugins:Ie,keepIframeSrcFn:ee=()=>!1,ignoreCSSAttributes:ve=new Set([]),errorHandler:_e,onMutation:$,getCanvasManager:re}=e;AU(_e);const Oe=de?window.parent===window:!0;let Fe=!1;if(!Oe)try{window.parent.document&&(Fe=!1)}catch{Fe=!0}if(Oe&&!t)throw new Error("emit function is required");if(!Oe&&!Fe)return()=>{};X!==void 0&&Z.mousemove===void 0&&(Z.mousemove=X),Rs.reset();const oe=R===!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}:I!==void 0?I:{},Le=L===!0||L==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:L==="all",headMetaDescKeywords:L==="all"}:L||{};SU();let ot,et=0;const dt=at=>{for(const Mt of Ie||[])Mt.eventProcessor&&(at=Mt.eventProcessor(at));return D&&!Fe&&(at=D(at)),at};_n=(at,Mt)=>{var Ee;const B=at;if(B.timestamp=d0(),(Ee=nd[0])!=null&&Ee.isFrozen()&&B.type!==yt.FullSnapshot&&!(B.type===yt.IncrementalSnapshot&&B.data.source===lt.Mutation)&&nd.forEach(ae=>ae.unfreeze()),Oe)t==null||t(dt(B),Mt);else if(Fe){const ae={type:"rrweb",event:dt(B),origin:window.location.origin,isCheckout:Mt};window.parent.postMessage(ae,"*")}if(B.type===yt.FullSnapshot)ot=B,et=0;else if(B.type===yt.IncrementalSnapshot){if(B.data.source===lt.Mutation&&B.data.isAttachIframe)return;et++;const ae=r&&et>=r,Se=n&&ot&&B.timestamp-ot.timestamp>n;(ae||Se)&&us(!0)}};const ln=at=>{_n({type:yt.IncrementalSnapshot,data:{source:lt.Mutation,...at}})},zn=at=>_n({type:yt.IncrementalSnapshot,data:{source:lt.Scroll,...at}}),Sn=at=>_n({type:yt.IncrementalSnapshot,data:{source:lt.CanvasMutation,...at}}),dn=at=>_n({type:yt.IncrementalSnapshot,data:{source:lt.AdoptedStyleSheet,...at}}),At=new QU({mutationCb:ln,adoptedStyleSheetCb:dn}),Mn=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new qU:new VU({mirror:Rs,mutationCb:ln,stylesheetManager:At,recordCrossOriginIframes:de,wrappedEmit:_n});for(const at of Ie||[])at.getMirror&&at.getMirror({nodeMirror:Rs,crossOriginIframeMirror:Mn.crossOriginIframeMirror,crossOriginIframeStyleMirror:Mn.crossOriginIframeStyleMirror});const Mi=new XU,Dn=ZU(re,{mirror:Rs,win:window,mutationCb:at=>_n({type:yt.IncrementalSnapshot,data:{source:lt.CanvasMutation,...at}}),recordCanvas:ye,blockClass:s,blockSelector:l,unblockSelector:c,maxCanvasSize:te,sampling:Z.canvas,dataURLOptions:ue,errorHandler:_e}),Di=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new GU:new KU({mutationCb:ln,scrollCb:zn,bypassOptions:{onMutation:$,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:g,maskTextClass:v,unmaskTextClass:_,maskTextSelector:E,unmaskTextSelector:x,inlineStylesheet:b,maskInputOptions:oe,dataURLOptions:ue,maskAttributeFn:H,maskTextFn:Q,maskInputFn:W,recordCanvas:ye,inlineImages:fe,sampling:Z,slimDOMOptions:Le,iframeManager:Mn,stylesheetManager:At,canvasManager:Dn,keepIframeSrcFn:ee,processedNodeManager:Mi},mirror:Rs}),us=(at=!1)=>{if(!ce)return;_n({type:yt.Meta,data:{href:window.location.href,width:Z6(),height:J6()}},at),At.reset(),Di.init(),nd.forEach(B=>B.lock());const Mt=_U(document,{mirror:Rs,blockClass:s,blockSelector:l,unblockSelector:c,maskAllText:g,maskTextClass:v,unmaskTextClass:_,maskTextSelector:E,unmaskTextSelector:x,inlineStylesheet:b,maskAllInputs:oe,maskAttributeFn:H,maskInputFn:W,maskTextFn:Q,slimDOM:Le,dataURLOptions:ue,recordCanvas:ye,inlineImages:fe,onSerialize:B=>{nb(B,Rs)&&Mn.addIframe(B),rb(B,Rs)&&At.trackLinkElement(B),u_(B)&&Di.addShadowRoot(B.shadowRoot,document)},onIframeLoad:(B,Ee)=>{Mn.attachIframe(B,Ee),B.contentWindow&&Dn.addWindow(B.contentWindow),Di.observeAttachShadow(B)},onStylesheetLoad:(B,Ee)=>{At.attachLinkElement(B,Ee)},keepIframeSrcFn:ee});if(!Mt)return console.warn("Failed to snapshot the document");_n({type:yt.FullSnapshot,data:{node:Mt,initialOffset:X6(window)}}
344),nd.forEach(B=>B.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&At.adoptStyleSheets(document.adoptedStyleSheets,Rs.getId(document))};h0=us;try{const at=[],Mt=Ee=>{var ae;return Ot(WU)({onMutation:$,mutationCb:ln,mousemoveCb:(Se,Ye)=>_n({type:yt.IncrementalSnapshot,data:{source:Ye,positions:Se}}),mouseInteractionCb:Se=>_n({type:yt.IncrementalSnapshot,data:{source:lt.MouseInteraction,...Se}}),scrollCb:zn,viewportResizeCb:Se=>_n({type:yt.IncrementalSnapshot,data:{source:lt.ViewportResize,...Se}}),inputCb:Se=>_n({type:yt.IncrementalSnapshot,data:{source:lt.Input,...Se}}),mediaInteractionCb:Se=>_n({type:yt.IncrementalSnapshot,data:{source:lt.MediaInteraction,...Se}}),styleSheetRuleCb:Se=>_n({type:yt.IncrementalSnapshot,data:{source:lt.StyleSheetRule,...Se}}),styleDeclarationCb:Se=>_n({type:yt.IncrementalSnapshot,data:{source:lt.StyleDeclaration,...Se}}),canvasMutationCb:Sn,fontCb:Se=>_n({type:yt.IncrementalSnapshot,data:{source:lt.Font,...Se}}),selectionCb:Se=>{_n({type:yt.IncrementalSnapshot,data:{source:lt.Selection,...Se}})},customElementCb:Se=>{_n({type:yt.IncrementalSnapshot,data:{source:lt.CustomElement,...Se}})},blockClass:s,ignoreClass:d,ignoreSelector:p,maskAllText:g,maskTextClass:v,unmaskTextClass:_,maskTextSelector:E,unmaskTextSelector:x,maskInputOptions:oe,inlineStylesheet:b,sampling:Z,recordDOM:ce,recordCanvas:ye,inlineImages:fe,userTriggeredOnInput:Re,collectFonts:We,doc:Ee,maskAttributeFn:H,maskInputFn:W,maskTextFn:Q,keepIframeSrcFn:ee,blockSelector:l,unblockSelector:c,slimDOMOptions:Le,dataURLOptions:ue,mirror:Rs,iframeManager:Mn,stylesheetManager:At,shadowDomManager:Di,processedNodeManager:Mi,canvasManager:Dn,ignoreCSSAttributes:ve,plugins:((ae=Ie==null?void 0:Ie.filter(Se=>Se.observer))==null?void 0:ae.map(Se=>({observer:Se.observer,options:Se.options,callback:Ye=>_n({type:yt.Plugin,data:{plugin:Se.name,payload:Ye}})})))||[]},{})};Mn.addLoadListener(Ee=>{try{at.push(Mt(Ee.contentDocument))}catch(ae){console.warn(ae)}});const B=()=>{us(),at.push(Mt(document))};return document.readyState==="interactive"||document.readyState==="complete"?B():(at.push(zr("DOMContentLoaded",()=>{_n({type:yt.DomContentLoaded,data:{}}),xe==="DOMContentLoaded"&&B()})),at.push(zr("load",()=>{_n({type:yt.Load,data:{}}),xe==="load"&&B()},window))),()=>{at.forEach(Ee=>Ee()),Mi.destroy(),h0=void 0,PU()}}catch(at){console.warn(at)}}function JU(e){if(!h0)throw new Error("please take full snapshot after start recording");h0(e)}da.mirror=Rs;da.takeFullSnapshot=JU;function ZU(e,t){try{return e?e(t):new E3}catch{return console.warn("Unable to initialize CanvasManager"),new E3}}var C3;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(C3||(C3={}));const eH=3,tH=5;function vw(e){return e>9999999999?e:e*1e3}function zv(e){return e>9999999999?e/1e3:e}function xm(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:yt.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:As(t,10,1e3)}}),t.category==="console")))}const nH="button,a";function cb(e){return e.closest(nH)||e}function fb(e){const t=db(e);return!t||!(t instanceof Element)?t:cb(t)}function db(e){return rH(e)?e.target:e}function rH(e){return typeof e=="object"&&!!e&&"target"in e}let pl;function iH(e){return pl||(pl=[],sH()),pl.push(e),()=>{const t=pl?pl.indexOf(e):-1;t>-1&&pl.splice(t,1)}}function sH(){pi(nn,"open",function(e){return function(...t){if(pl)try{pl.forEach(n=>n())}catch{}return e.apply(nn,t)}})}const oH=new Set([lt.Mutation,lt.StyleSheetRule,lt.StyleDeclaration,lt.AdoptedStyleSheet,lt.CanvasMutation,lt.Selection,lt.MediaInteraction]);function aH(e,t,n){e.handleClick(t,n)}class lH{constructor(t,n,r=xm){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=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=iH(()=>{this._lastMutation=x3()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(cH(n,this._ignoreSelector)||!fH(t))return;const r={timestamp:zv(t.timestamp),clickBreadcrumb:t,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(t=Date.now()){this._lastMutation=zv(t)}registerScroll(t=Date.now()){this._lastScroll=zv(t)}registerClick(t){const n=cb(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>
344{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=x3();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&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,l=!r&&!s,{clickCount:c,clickBreadcrumb:d}=t;if(l){const p=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,g=p<this._timeout*1e3?"mutation":"timeout",v={type:"default",message:d.message,timestamp:d.timestamp,category:"ui.slowClickDetected",data:{...d.data,url:nn.location.href,route:n.getCurrentRoute(),timeAfterClickMs:p,endReason:g,clickCount:c||1}};this._addBreadcrumbEvent(n,v);return}if(c>1){const p={type:"default",message:d.message,timestamp:d.timestamp,category:"ui.multiClick",data:{...d.data,url:nn.location.href,route:n.getCurrentRoute(),clickCount:c,metric:!0}};this._addBreadcrumbEvent(n,p)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Td(()=>this._checkClicks(),1e3)}}const uH=["A","BUTTON","INPUT"];function cH(e,t){return!!(!uH.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function fH(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function x3(){return Date.now()/1e3}function dH(e,t){try{if(!pH(t))return;const{source:n}=t.data;if(oH.has(n)&&e.registerMutation(t.timestamp),n===lt.Scroll&&e.registerScroll(t.timestamp),hH(t)){const{type:r,id:s}=t.data,l=da.mirror.getNode(s);l instanceof HTMLElement&&r===jr.Click&&e.registerClick(l)}}catch{}}function pH(e){return e.type===eH}function hH(e){return e.data.source===lt.MouseInteraction}function wo(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var _w=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(_w||{});const mH=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function gH(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(mH.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const yH=e=>t=>{if(!e.isEnabled())return;const n=vH(t);if(!n)return;const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&aH(e.clickDetector,n,fb(t.event)),xm(e,n)};function pb(e,t){const n=da.mirror.getId(e),r=n&&da.mirror.getNode(n),s=r&&da.mirror.getMeta(r),l=s&&wH(s)?s:null;return{message:t,data:l?{nodeId:n,node:{id:n,tagName:l.tagName,textContent:Array.from(l.childNodes).map(c=>c.type===_w.Text&&c.textContent).filter(Boolean).map(c=>c.trim()).join(""),attributes:gH(l.attributes)}}:{}}}function vH(e){const{target:t,message:n}=_H(e);return wo({category:`ui.${e.name}`,...pb(t,n)})}function _H(e){const t=e.name==="click";let n,r=null;try{r=t?fb(e.event):db(e.event),n=ya(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function wH(e){return e.type===_w.Element}function SH(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=EH(t);n&&xm(e,n)}function EH(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:l,target:c}=e;if(!c||CH(c)||!l)return null;const d=t||r||s,p=l.length===1;if(!d&&p)return null;const g=ya(c,{maxStringLength:200})||"<unknown>",v=pb(c,g);return wo({category:"ui.keyDown",message:g,data:{...v.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:l}})}function CH(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const xH={resource:IH,paint:kH,navigation:RH};function Cg(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}
344function bH(e){return e.map(TH).filter(Boolean)}function TH(e){const t=xH[e.entryType];return t?t(e):null}function Id(e){return((Ni()||nn.performance.timeOrigin)+e)/1e3}function kH(e){const{duration:t,entryType:n,name:r,startTime:s}=e,l=Id(s);return{type:n,name:r,start:l,end:l+t,data:void 0}}function RH(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:l,encodedBodySize:c,domContentLoadedEventStart:d,domContentLoadedEventEnd:p,domInteractive:g,loadEventStart:v,loadEventEnd:_,redirectCount:E,startTime:x,transferSize:b,type:R}=e;return s===0?null:{type:`${t}.${R}`,start:Id(x),end:Id(l),name:n,data:{size:b,decodedBodySize:r,encodedBodySize:c,duration:s,domInteractive:g,domContentLoadedEventStart:d,domContentLoadedEventEnd:p,loadEventStart:v,loadEventEnd:_,domComplete:l,redirectCount:E}}}function IH(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:l,decodedBodySize:c,encodedBodySize:d,responseStatus:p,transferSize:g}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Id(l),end:Id(s),name:r,data:{size:g,statusCode:p,decodedBodySize:c,encodedBodySize:d}}}function OH(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.element?[t.element]:void 0;return Q0(e,"largest-contentful-paint",n)}function AH(e){return e.sources!==void 0}function PH(e){const t=[],n=[];for(const r of e.entries)if(AH(r)){const s=[];for(const l of r.sources)if(l.node){n.push(l.node);const c=da.mirror.getId(l.node);c&&s.push(c)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return Q0(e,"cumulative-layout-shift",n,t)}function LH(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.target?[t.target]:void 0;return Q0(e,"first-input-delay",n)}function NH(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.target?[t.target]:void 0;return Q0(e,"interaction-to-next-paint",n)}function Q0(e,t,n,r){const s=e.value,l=e.rating,c=Id(s);return{type:"web-vital",name:t,start:c,end:c,data:{value:s,size:s,rating:l,nodeIds:n?n.map(d=>da.mirror.getId(d)):void 0,attributions:r}}}function MH(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(bd(s,n))}),r.push(T6(Cg(OH,e)),lw(Cg(PH,e)),k6(Cg(LH,e)),R6(Cg(NH,e))),()=>{r.forEach(s=>s())}}const rt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,DH='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]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(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,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,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 344
344,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=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=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:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort((function(t,n){return p[n.s]-p[t.s]||t.f-n.f}));s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},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,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}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 s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,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[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,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[s[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=w,P=p,Q=y,R=g;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,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];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(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-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(s[t]^s[t+1]<<A^s[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||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),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(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;
344++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|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,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 s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),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(s),32768),this.s.z=n.length-s+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.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!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.prototype.flush=function(){G.prototype.flush.call(this)},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)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}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),s=i.length;return q(i,n),j(i,s-8,r.d()),j(i,s-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 FH(){const e=new Blob([DH]);return URL.createObjectURL(e)}const b3=["info","warn","error","log"],Ug="[Replay] ";
344function Wv(e,t="info"){Ll({category:"console",data:{logger:"replay"},level:t,message:`${Ug}${e}`},{level:t})}function $H(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return rt?(b3.forEach(r=>{n[r]=(...s)=>{Ce[r](Ug,...s),t&&Wv(s.join(""),u6(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),Ce.error(Ug,r),e?iw(r):t&&Wv(r,"error")},n.infoTick=(...r)=>{Ce.info(Ug,...r),t&&setTimeout(()=>Wv(r[0]),0)}):b3.forEach(r=>{n[r]=()=>{}}),n}const it=$H();class ww extends Error{constructor(){super(`Event buffer exceeded maximum size of ${dw}.`)}}class hb{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(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>dw)throw new ww;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const t=this.events.map(n=>n.timestamp).sort()[0];return t?vw(t):null}}class jH{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){rt&&it.info("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,l)=>{const c=({data:d})=>{const p=d;if(p.method===t&&p.id===r){if(this._worker.removeEventListener("message",c),!p.success){rt&&it.error("Error in compression worker: ",p.response),l(new Error("Error in compression worker"));return}s(p.response)}};this._worker.addEventListener("message",c),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class UH{constructor(t){this._worker=new jH(t),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(t){const n=vw(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>dw?Promise.reject(new ww):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{rt&&it.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class HH{constructor(t){this._fallback=new hb,this._compression=new UH(t),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(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){rt&&it.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const l of t)s.push(this._compression.addEvent(l));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(l){rt&&it.exception(l,"Failed to add events when switching buffers.")}}}function BH({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=zH(t);if(n)return n}return rt&&it.info("Using simple buffer"),new hb}function zH(e){try{const t=e||WH();if(!t)return;rt&&it.info(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new HH(n)}catch(t){rt&&it.exception(t,"Failed to create compression worker")}}function WH(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?FH():""}function Sw(){try{return"sessionStorage"in nn&&!!nn.sessionStorage}catch{return!1}}function qH(e){VH(),e.session=void 0}function VH(){if(Sw())try{nn.sessionStorage.removeItem(cw)}catch{}}function mb(e){return e===void 0?!1:Math.random()<e}function Ew(e){if(Sw())try{nn.sessionStorage.setItem(cw,JSON.stringify(e))}catch{}}function gb(e){const t=Date.now(),n=e.id||Pi(),r=e.started||t,s=e.lastActivity||t,l=e.segmentId||0,c=e.sampled,d=e.previousSessionId;return{id:n,started:r,lastActivity:s,segmentId:l,sampled:c,previousSessionId:d}}function GH(e,t){return mb(e)?"session":t?"buffer":!1}function T3({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=GH(e,t),l=gb({sampled:s,previousSessionId:r});return n&&Ew(l),l}function KH(){if(!Sw())return null;try{const e=nn.sessionStorage.getItem(cw);if(!e)return null;const t=JSON.parse(e);return rt&&it.infoTick("Loading existing session"),gb(t)}catch{return null}}function d_(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function yb(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return d_(e.started,t,r)||d_(e.lastActivity,n,r)}function vb(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!yb(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function qv({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&KH();return s?vb(s,{sessionIdleExpire:e,maxReplayDuration:t})?(rt&&it.infoTick("Session in sessionStorage is expired, creating new one..."),T3(r,{previousSessionId:s.id})):s:(rt&&it.infoTick("Creating new session"),T3(r,{previousSessionId:n}))}function YH(e){return e.type===yt.Custom}function Cw(e,t,n){return wb(e,t)?(_b(e,t,n),!0):!1}function QH(e,t,n){return wb(e,t)?_b(e,t,n):Promise.resolve(null)}async function _b(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";
344try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const l=e.getOptions(),c=XH(t,l.beforeAddRecordingEvent);return c?await r.addEvent(c):void 0}catch(l){const c=l&&l instanceof ww,d=c?"addEventSizeExceeded":"addEvent";if(c&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(l),await e.stop({reason:d});const p=Et();p&&p.recordDroppedEvent("internal_sdk_error","replay")}}function wb(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=vw(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(rt&&it.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function XH(e,t){try{if(typeof t=="function"&&YH(e))return t(e)}catch(n){return rt&&it.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function xw(e){return!e.type}function p_(e){return e.type==="transaction"}function JH(e){return e.type==="replay_event"}function k3(e){return e.type==="feedback"}function ZH(e){return(t,n)=>{if(!e.isEnabled()||!xw(t)&&!p_(t))return;const r=n==null?void 0:n.statusCode;if(!(!r||r<200||r>=300)){if(p_(t)){eB(e,t);return}tB(e,t)}}}function eB(e,t){var r,s;const n=e.getContext();(s=(r=t.contexts)==null?void 0:r.trace)!=null&&s.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function tB(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Td(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function nB(e){return t=>{!e.isEnabled()||!xw(t)||rB(e,t)}}function rB(e,t){var r,s,l;const n=(l=(s=(r=t.exception)==null?void 0:r.values)==null?void 0:s[0])==null?void 0:l.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 c=wo({category:"replay.hydrate-error",data:{url:Bd()}});xm(e,c)}}function iB(e){const t=Et();t&&t.on("beforeAddBreadcrumb",n=>sB(e,n))}function sB(e,t){if(!e.isEnabled()||!Sb(t))return;const n=oB(t);n&&xm(e,n)}function oB(e){return!Sb(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?aB(e):wo(e)}function aB(e){var s;const t=(s=e.data)==null?void 0:s.arguments;if(!Array.isArray(t)||t.length===0)return wo(e);let n=!1;const r=t.map(l=>{if(!l)return l;if(typeof l=="string")return l.length>_g?(n=!0,`${l.slice(0,_g)}…`):l;if(typeof l=="object")try{const c=As(l,7);return JSON.stringify(c).length>_g?(n=!0,`${JSON.stringify(c,null,2).slice(0,_g)}…`):c}catch{}return l});return wo({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function Sb(e){return!!e.category}function lB(e,t){var n;return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!((n=t.originalException)!=null&&n.__rrweb__)}function Eb(){const e=Qt().getPropagationContext().dsc;e&&delete e.replay_id;const t=qr();if(t){const n=_a(t);delete n.replay_id}}function uB(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:yt.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function cB(e,t){return e.recordingMode!=="buffer"||t.message===fw||!t.exception||t.type?!1:mb(e.getOptions().errorSampleRate)}function fB(e){return Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:JH(t)?(delete t.breadcrumbs,t):!xw(t)&&!p_(t)&&!k3(t)?t:e.checkAndHandleExpiredSession()?k3(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),uB(e,t),t):lB(t,n)&&!e.getOptions()._experiments.captureExceptions?(rt&&it.log("Ignoring error from rrweb internals",t),null):((cB(e,t)||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(Eb(),t),{id:"Replay"})}function X0(e,t){return t.map(({type:n,start:r,end:s,name:l,data:c})=>{const d=e.throttledAddEvent({type:yt.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:l,startTimestamp:r,endTimestamp:s,data:c}}});
344return typeof d=="string"?Promise.resolve(null):d})}function dB(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function pB(e){return t=>{if(!e.isEnabled())return;const n=dB(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(X0(e,[n]),!1)))}}function hB(e,t){return rt&&e.getOptions()._experiments.traceInternals?!1:aD(t,Et())}function Cb(e,t){e.isEnabled()&&t!==null&&(hB(e,t.name)||e.addUpdate(()=>(X0(e,[t]),!0)))}function J0(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=D6(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function xb(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function m0(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function bb(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:l,statusCode:c,request:d,response:p}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:l,statusCode:c,request:d,response:p}}}function Yh(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function kl(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:l}=mB(n);return r.body=s,l!=null&&l.length&&(r._meta={warnings:l}),r}function h_(e,t){return Object.entries(e).reduce((n,[r,s])=>{const l=r.toLowerCase();return t.includes(l)&&e[r]&&(n[l]=s),n},{})}function mB(e){if(!e||typeof e!="string")return{body:e};const t=e.length>a3,n=gB(e);if(t){const r=e.slice(0,a3);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function gB(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function g0(e,t){const n=yB(e);return Tl(n,t)}function yB(e,t=nn.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(nn.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function vB(e,t,n){try{const r=await wB(e,t,n),s=bb("resource.fetch",r);Cb(n.replay,s)}catch(r){rt&&it.exception(r,"Failed to capture fetch breadcrumb")}}function _B(e,t){const{input:n,response:r}=t,s=n?$6(n):void 0,l=J0(s),c=r?xb(r.headers.get("content-length")):void 0;l!==void 0&&(e.data.request_body_size=l),c!==void 0&&(e.data.response_body_size=c)}async function wB(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:l=r}=t,{url:c,method:d,status_code:p=0,request_body_size:g,response_body_size:v}=e.data,_=g0(c,n.networkDetailAllowUrls)&&!g0(c,n.networkDetailDenyUrls),E=_?SB(n,t.input,g):Yh(g),x=await EB(_,n,t.response,v);return{startTimestamp:s,endTimestamp:l,url:c,method:d,statusCode:p,request:E,response:x}}function SB({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?bB(n,t):{};if(!e)return kl(s,r,void 0);const l=$6(n),[c,d]=F6(l,it),p=kl(s,r,c);return d?m0(p,d):p}async function EB(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==void 0)return Yh(s);const l=r?Tb(r.headers,n):{};if(!r||!t&&s!==void 0)return kl(l,s,void 0);const[c,d]=await xB(r),p=CB(c,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:l});return d?m0(p,d):p}function CB(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const l=e!=null&&e.length&&n===void 0?J0(e):n;return r?t?kl(s,l,e):kl(s,l,void 0):Yh(l)}catch(l){return rt&&it.exception(l,"Failed to serialize response body"),kl(s,n,void 0)}}async function xB(e){const t=TB(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await kB(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(rt&&it.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(rt&&it.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function Tb(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}
344function bB(e,t){return e.length===1&&typeof e[0]!="string"?R3(e[0],t):e.length===2?R3(e[1],t):{}}function R3(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?Tb(n,t):Array.isArray(n)?{}:h_(n,t):{}}function TB(e){try{return e.clone()}catch(t){rt&&it.exception(t,"Failed to clone response body")}}function kB(e){return new Promise((t,n)=>{const r=Td(()=>n(new Error("Timeout while trying to read response body")),500);RB(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function RB(e){return await e.text()}async function IB(e,t,n){try{const r=AB(e,t,n),s=bb("resource.xhr",r);Cb(n.replay,s)}catch(r){rt&&it.exception(r,"Failed to capture xhr breadcrumb")}}function OB(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=J0(r),l=n.getResponseHeader("content-length")?xb(n.getResponseHeader("content-length")):MB(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),l!==void 0&&(e.data.response_body_size=l)}function AB(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:l=r,input:c,xhr:d}=t,{url:p,method:g,status_code:v=0,request_body_size:_,response_body_size:E}=e.data;if(!p)return null;if(!d||!g0(p,n.networkDetailAllowUrls)||g0(p,n.networkDetailDenyUrls)){const D=Yh(_),Z=Yh(E);return{startTimestamp:s,endTimestamp:l,url:p,method:g,statusCode:v,request:D,response:Z}}const x=d[Wu],b=x?h_(x.request_headers,n.networkRequestHeaders):{},R=h_(PB(d),n.networkResponseHeaders),[I,L]=n.networkCaptureBodies?F6(c,it):[void 0],[H,W]=n.networkCaptureBodies?LB(d):[void 0],Q=kl(b,_,I),te=kl(R,E,H);return{startTimestamp:s,endTimestamp:l,url:p,method:g,statusCode:v,request:L?m0(Q,L):Q,response:W?m0(te,W):te}}function PB(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
345`).reduce((n,r)=>{const[s,l]=r.split(": ");return l&&(n[s.toLowerCase()]=l),n},{}):{}}function LB(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return NB(e.response,e.responseType)}catch(n){t.push(n)}return rt&&it.warn("Failed to get xhr response body",...t),[void 0]}function NB(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return rt&&it.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return rt&&it.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function MB(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return J0(n)}catch{return}}function DB(e){const t=Et();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:l,networkResponseHeaders:c}=e.getOptions(),d={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:l,networkResponseHeaders:c};t&&t.on("beforeAddBreadcrumb",(p,g)=>FB(d,p,g))}catch{}}function FB(e,t,n){if(t.data)try{$B(t)&&UB(n)&&(OB(t,n),IB(t,n,e)),jB(t)&&HB(n)&&(_B(t,n),vB(t,n,e))}catch(r){rt&&it.exception(r,"Error when enriching network breadcrumb")}}function $B(e){return e.category==="xhr"}function jB(e){return e.category==="fetch"}function UB(e){return e==null?void 0:e.xhr}function HB(e){return e==null?void 0:e.response}function BB(e,{autoFlushOnFeedback:t}){const n=Et();L6(yH(e)),V0(pB(e)),iB(e),DB(e);const r=fB(e);MM(r),n&&(n.on("beforeSendEvent",nB(e)),n.on("afterSendEvent",ZH(e)),n.on("createDsc",s=>{const l=e.getSessionId();l&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(s.replay_id=l)}),n.on("spanStart",s=>{e.lastActiveSpan=s}),n.on("spanEnd",s=>{e.lastActiveSpan=s}),n.on("beforeSendFeedback",async(s,l)=>{var d;const c=e.getSessionId();l!=null&&l.includeReplay&&e.isEnabled()&&c&&((d=s.contexts)!=null&&d.feedback)&&(s.contexts.feedback.source==="api"&&t&&await e.flush(),s.contexts.feedback.replay_id=c)}),t&&n.on("openFeedbackWidget",async()=>{await e.flush()}))}async function zB(e){try{return Promise.all(X0(e,[WB(nn.performance.memory)]))}catch{return[]}}function WB(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function qB(e,t,n){let r,s,l;const c=n!=null&&n.maxWait?Math.max(n.maxWait,t):0;function d(){return p(),r=e(),r}function p(){s!==void 0&&clearTimeout(s),l!==void 0&&clearTimeout(l),s=l=void 0}function g(){return s!==void 0||l!==void 0?d():r}function v(){return s&&clearTimeout(s),s=Td(d,t),c&&l===void 0&&(l=Td(d,c)),r}return v.cancel=p,v.flush=g,v}const ts=Tt.navigator;function VB(){return/iPhone|iPad|iPod/i.test((ts==null?void 0:ts.userAgent)??"")||/Macintosh/i.test((ts==null?void 0:ts.userAgent)??"")&&(ts!=null&&ts.maxTouchPoints)&&(ts==null?void 0:ts.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}}function GB(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){rt&&it.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,e.clickDetector&&dH(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!Cw(e,n,s))return!0;
345if(!s)return!1;const l=e.session;if(YB(e,s),e.recordingMode==="buffer"&&l&&e.eventBuffer){const c=e.eventBuffer.getEarliestTimestamp();c&&(rt&&it.info(`Updating session start time to earliest event in buffer to ${new Date(c)}`),l.started=c,e.getOptions().stickySession&&Ew(l))}return l!=null&&l.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function KB(e){const t=e.getOptions();return{type:yt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function YB(e,t){!t||!e.session||e.session.segmentId!==0||Cw(e,KB(e),!1)}function QB(e,t,n,r){return _c(zx(e,nw(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function XB({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
346`;if(typeof e=="string")n=`${r}${e}`;else{const l=new TextEncoder().encode(r);n=new Uint8Array(l.length+e.length),n.set(l),n.set(e,l.length)}return n}async function JB({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,l={event_id:n,integrations:s};e.emit("preprocessEvent",r,l);const c=await Kx(e.getOptions(),r,l,t,e,Co());if(!c)return null;e.emit("postprocessEvent",c,l),c.platform=c.platform||"javascript";const d=e.getSdkMetadata(),{name:p,version:g}=(d==null?void 0:d.sdk)||{};return c.sdk={...c.sdk,name:p||"sentry.javascript.unknown",version:g||"0.0.0"},c}async function ZB({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:l}){const c=XB({recordingData:e,headers:{segment_id:n}}),{urls:d,errorIds:p,traceIds:g,initialTimestamp:v}=r,_=Et(),E=Qt(),x=_==null?void 0:_.getTransport(),b=_==null?void 0:_.getDsn();if(!_||!x||!b||!l.sampled)return wa({});const R={type:Oj,replay_start_timestamp:v/1e3,timestamp:s/1e3,error_ids:p,trace_ids:g,urls:d,replay_id:t,segment_id:n,replay_type:l.sampled},I=await JB({scope:E,client:_,replayId:t,event:R});if(!I)return _.recordDroppedEvent("event_processor","replay"),rt&&it.info("An event processor returned `null`, will not send event."),wa({});delete I.sdkProcessingMetadata;const L=QB(I,c,b,_.getOptions().tunnel);let H;try{H=await x.send(L)}catch(Q){const te=new Error(fw);try{te.cause=Q}catch{}throw te}if(typeof H.statusCode=="number"&&(H.statusCode<200||H.statusCode>=300))throw new kb(H.statusCode);const W=o6({},H);if(s6(W,"replay"))throw new bw(W);return H}class kb extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class bw extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}async function Rb(e,t={count:0,interval:Dj}){const{recordingData:n,onError:r}=e;if(n.length)try{return await ZB(e),!0}catch(s){if(s instanceof kb||s instanceof bw)throw s;if(Qx("Replays",{_retryCount:t.count}),r&&r(s),t.count>=Fj){const l=new Error(`${fw} - max retries exceeded`);try{l.cause=s}catch{}throw l}return t.interval*=++t.count,new Promise((l,c)=>{Td(async()=>{try{await Rb(e,t),l(!0)}catch(d){c(d)}},t.interval)})}}const Ib="__THROTTLED",ez="__SKIPPED";function tz(e,t,n){const r=new Map,s=d=>{const p=d-n;r.forEach((g,v)=>{v<p&&r.delete(v)})},l=()=>[...r.values()].reduce((d,p)=>d+p,0);let c=!1;return(...d)=>{const p=Math.floor(Date.now()/1e3);if(s(p),l()>=t){const v=c;return c=!0,v?ez:Ib}c=!1;const g=r.get(p)||0;return r.set(p,g+1),e(...d)}}class nz{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Aj,sessionIdleExpire:Pj},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=t,this._debouncedFlush=qB(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=tz((c,d)=>QH(this,c,d),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),l=r?{threshold:Math.min($j,r),timeout:r,scrollTimeout:jj,ignoreSelector:s?s.join(","):""}:void 0;if(l&&(this.clickDetector=new lH(this,l)),rt){const c=t._experiments;it.setConfig({captureExceptions:!!c.captureExceptions,traceInternals:!!c.traceInternals})}this._handleVisibilityChange=()=>{nn.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroun
346dTasks()},this._handleWindowBlur=()=>{const c=wo({category:"ui.blur"});this._doChangeToBackgroundTasks(c)},this._handleWindowFocus=()=>{const c=wo({category:"ui.focus"});this._doChangeToForegroundTasks(c)},this._handleKeyboardEvent=c=>{SH(this,c)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){rt&&it.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){rt&&it.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",rt&&it.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){rt&&it.info("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){rt&&it.info("Buffering is in progress, call `flush()` to save the replay");return}rt&&it.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=qv({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled){rt&&it.info("Buffering is in progress, call `flush()` to save the replay");return}rt&&it.infoTick("Starting replay in buffer mode");const t=qv({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=da({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:Mj}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:GB(this),...VB(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){var r;if(this._isEnabled){this._isEnabled=!1;try{rt&&it.info(`Stopping Replay${n?` triggered by ${n}`:""}`),Eb(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),(r=this.eventBuffer)==null||r.destroy(),this.eventBuffer=null,qH(this)}catch(s){this.handleException(s)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),rt&&it.info("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),rt&&it.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();rt&&it.info("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();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(){var t;return(t=this.session)==null?void 0:t.id}
346checkAndHandleExpiredSession(){if(this._lastActivity&&d_(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${nn.location.pathname}${nn.location.hash}${nn.location.search}`,n=`${nn.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===Ib){const s=wo({category:"replay.throttled"});this.addUpdate(()=>!Cw(this,{type:tH,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||qr(),n=t&&Ir(t),s=(n&&Bt(n).data||{})[_o];if(!(!n||!s||!["route","custom"].includes(s)))return Bt(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=BH({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=qv({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return vb(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{nn.document.addEventListener("visibilitychange",this._handleVisibilityChange),nn.addEventListener("blur",this._handleWindowBlur),nn.addEventListener("focus",this._handleWindowFocus),nn.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(BB(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=MH(this)}_removeListeners(){try{nn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),nn.removeEventListener("blur",this._handleWindowBlur),nn.removeEventListener("focus",this._handleWindowFocus),nn.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||yb(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){rt&&it.info("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:yt.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=bH(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(X0(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();
346r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={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(),t}async _runFlush(){var n;const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){rt&&it.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!((n=this.eventBuffer)!=null&&n.hasEvents)&&(await zB(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const r=Date.now();if(r-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const s=this._popEventContext(),l=this.session.segmentId++;this._maybeSaveSession();const c=await this.eventBuffer.finish();await Rb({replayId:t,recordingData:c,segmentId:l,eventContext:s,session:this.session,timestamp:r,onError:d=>this.handleException(d)})}catch(r){this.handleException(r),this.stop({reason:"sendReplay"});const s=Et();if(s){const l=r instanceof bw?"ratelimit_backoff":"send_error";s.recordDroppedEvent(l,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){rt&&it.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 l=s<this._options.minReplayDuration,c=s>this._options.maxReplayDuration+5e3;if(l||c){rt&&it.info(`Session duration (${Math.floor(s/1e3)}s) is too ${l?"short":"long"}, not sending replay.`),l&&this._debouncedFlush();return}const d=this.eventBuffer;d&&this.session.segmentId===0&&!d.hasCheckout&&rt&&it.info("Flushing initial segment without checkout.");const p=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(g){this.handleException(g)}finally{this._flushLock=void 0,p&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ew(this.session)}_onMutationHandler(t){const n=t.length,r=this._options.mutationLimit,s=this._options.mutationBreadcrumbLimit,l=r&&n>r;if(n>s||l){const c=wo({category:"replay.mutations",data:{count:n,limit:l}});this._createCustomBreadcrumb(c)}return l?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function xh(e,t){return[...e,...t].join(",")}function rz({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const l=["base","iframe[srcdoc]:not([src])"],c=xh(e,[".sentry-mask","[data-sentry-mask]"]),d=xh(t,[]);return{maskTextSelector:c,unmaskTextSelector:d,blockSelector:xh(n,[".sentry-block","[data-sentry-block]",...l]),unblockSelector:xh(r,[]),ignoreSelector:xh(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function iz({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:l}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?l:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?l.replace(/[\S]/g,"*"):l}const I3='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',sz=["content-length","content-type","accept"];let O3=!1;const oz=e=>new az(e);class az{constructor({flushMinDelay:t=Lj,flushMaxDelay:n=Nj,minReplayDuration:r=Uj,maxReplayDuration:s=l3,stickySession:l=!0,useCompression:c=!0,workerUrl:d,_experiments:p={},maskAllText:g=!0,maskAllInputs:v=!0,blockAllMedia:_=!0,mutationBreadcrumbLimit:E=750,mutationLimit:x=1e4,slowClickTimeout:b=7e3,slowClickIgnoreSelectors:R=[],networkDetailAllowUrls:I=[],networkDetailDenyUrls:L=[],networkCaptureBodies:H=!0,networkRequestHeaders:W=[],networkResponseHeaders:Q=[],mask:te=[],maskAttributes:D=["title","placeholder","aria-label"],unmask:Z=[],block:ue=[],unblock:X=[],ignore:ce=[],maskFn:ye,beforeAddRecordingEvent:de,beforeErrorSampling:xe,onError:Re}={}){this.name="Replay";const We=rz({mask:te,unmask:Z,block:ue,unblock:X,ignore:ce});if(this._recordingOptions={maskAllInputs:v,maskAllText:g,maskInputOptions:{password:!0},maskTextFn:ye,maskInputFn:ye,maskAttributeFn:(fe,Ie,ee)=>iz({maskAttributes:D,maskAllText:g,privacyOptions:We,key:fe,value:Ie,el:ee}),...We,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:fe=>{try{fe.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!p.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,Hj),maxReplayDuration:Math.min(s,l3),stickySession:l,useCompression:c,workerUrl:d,blockAllMedia:_,maskAllInputs:v,maskAllText:g,mutationBreadcrumbLimit:E,mutationLimit:x,slowClickTimeout:b,slowClickIgnoreSelectors:R,networkDetailAllowUrls:I,networkDetailDenyUrls:L,networkCaptureBodies:H,networkRequestHeaders:A3(W),networkResponseHeaders:A3(Q),beforeAddRecordingEvent:de,beforeErrorSampling:xe,onError:Re,_experiments:p},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${I3}`:I3),this._isInitialized&&JE())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return O3}set _isInitialized(t){O3=t}afterAllSetup(t){!JE()||this._replay||(this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}
346startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){var t;if((t=this._replay)!=null&&t.isEnabled())return this._replay.getSessionId()}getRecordingMode(){var t;if((t=this._replay)!=null&&t.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=lz(this._initialOptions,t);this._replay=new nz({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function lz(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=dc(n.replaysSessionSampleRate),l=dc(n.replaysOnErrorSampleRate);return s==null&&l==null&&$l(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),l!=null&&(r.errorSampleRate=l),r}function A3(e){return[...sz,...e.map(t=>t.toLowerCase())]}const P3=new WeakMap,Vv=new Map,Ob={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function uz(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:l,enableHTTPTimings:c,tracePropagationTargets:d,onRequestSpanStart:p}={...Ob,...t},g=typeof l=="function"?l:E=>!0,v=E=>dz(E,d),_={};n&&(e.addEventProcessor(E=>(E.type==="transaction"&&E.spans&&E.spans.forEach(x=>{if(x.op==="http.client"){const b=Vv.get(x.span_id);b&&(x.timestamp=b/1e3,Vv.delete(x.span_id))}}),E)),s&&YD(E=>{if(E.response){const x=P3.get(E.response);x&&E.endTimestamp&&Vv.set(x,E.endTimestamp)}}),m6(E=>{const x=UD(E,g,v,_);if(E.response&&E.fetchData.__span&&P3.set(E.response,E.fetchData.__span),x){const b=Ab(E.fetchData.url),R=b?oc(b).host:void 0;x.setAttributes({"http.url":b,"server.address":R}),c&&L3(x),p==null||p(x,{headers:E.headers})}})),r&&M6(E=>{var b;const x=pz(E,g,v,_);if(x){c&&L3(x);let R;try{R=new Headers((b=E.xhr.__sentry_xhr_v3__)==null?void 0:b.request_headers)}catch{}p==null||p(x,{headers:R})}})}function cz(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function L3(e){const{url:t}=Bt(e).data;if(!t||typeof t!="string")return;const n=bd("resource",({entries:r})=>{r.forEach(s=>{cz(s)&&s.name.endsWith(t)&&(fz(s).forEach(c=>e.setAttribute(...c)),setTimeout(n))})})}function ho(e=0){return((Ni()||performance.timeOrigin)+e)/1e3}function fz(e){const{name:t,version:n}=P6(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Ni()?[...r,["http.request.redirect_start",ho(e.redirectStart)],["http.request.fetch_start",ho(e.fetchStart)],["http.request.domain_lookup_start",ho(e.domainLookupStart)],["http.request.domain_lookup_end",ho(e.domainLookupEnd)],["http.request.connect_start",ho(e.connectStart)],["http.request.secure_connection_start",ho(e.secureConnectionStart)],["http.request.connection_end",ho(e.connectEnd)],["http.request.request_start",ho(e.requestStart)],["http.request.response_start",ho(e.responseStart)],["http.request.response_end",ho(e.responseEnd)]]:r}function dz(e,t){const n=Bd();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const l=r.origin===s;return t?Tl(r.toString(),t)||l&&Tl(r.pathname,t):l}else{const r=!!e.match(/^\/(?!\/)/);return t?Tl(e,t):r}}function pz(e,t,n,r){const s=e.xhr,l=s==null?void 0:s[Wu];if(!s||s.__sentry_own_request__||!l)return;const{url:c,method:d}=l,p=Al()&&t(c);if(e.endTimestamp&&p){const R=s.__sentry_xhr_span_id__;if(!R)return;const I=r[R];I&&l.status_code!==void 0&&(xx(I,l.status_code),I.end(),delete r[R]);return}const g=Ab(c),v=oc(g||c),_=jD(c),E=!!qr(),x=p&&E?vm({name:`${d} ${_}`,attributes:{url:c,type:"xhr","http.method":d,"http.url":g,"server.address":v==null?void 0:v.host,[nr]:"auto.http.browser",[fc]:"http.client",...(v==null?void 0:v.search)&&{"http.query":v==null?void 0:v.search},...(v==null?void 0:v.hash)&&{"http.fragment":v==null?void 0:v.hash}}}):new hc;s.__sentry_xhr_span_id__=x.spanContext().spanId,r[s.__sentry_xhr_span_id__]=x,n(c)&&hz(s,Al()&&E?x:void 0);const b=Et();return b&&b.emit("beforeOutgoingRequestSpan",x,e),x}function hz(e,t){const{"sentry-trace":n,baggage:r}=l6({span:t});n&&mz(e,n,r)}function mz(e,t,n){var s;const r=(s=e.__sentry_xhr_v3__)==null?void 0:s.request_headers;
346if(!(r!=null&&r["sentry-trace"]))try{if(e.setRequestHeader("sentry-trace",t),n){const l=r==null?void 0:r.baggage;(!l||!gz(l))&&e.setRequestHeader("baggage",n)}}catch{}}function gz(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function Ab(e){try{return new URL(e,Nt.location.origin).href}catch{return}}function yz(){Nt.document?Nt.document.addEventListener("visibilitychange",()=>{const e=qr();if(!e)return;const t=Ir(e);if(Nt.document.hidden&&t){const n="cancelled",{op:r,status:s}=Bt(t);Ds&&Ce.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:er,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Ds&&Ce.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const vz=3600,Pb="sentry_previous_trace",_z="sentry.previous_trace";function wz(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?Cz():void 0;e.on("spanStart",c=>{if(Ir(c)!==c)return;const d=Qt().getPropagationContext();s=Sz(s,c,d),r&&Ez(s)});let l=!0;n&&e.on("beforeSampling",c=>{if(!s)return;const d=Qt(),p=d.getPropagationContext();if(l&&p.parentSpanId){l=!1;return}d.setPropagationContext({...p,dsc:{...p.dsc,sample_rate:String(s.sampleRate),sampled:String(m_(s.spanContext))},sampleRand:s.sampleRand}),c.parentSampled=m_(s.spanContext),c.parentSampleRate=s.sampleRate,c.spanAttributes={...c.spanAttributes,[Ex]:s.sampleRate}})}function Sz(e,t,n){const r=Bt(t);function s(){var d,p;try{return Number((d=n.dsc)==null?void 0:d.sample_rate)??Number((p=r.data)==null?void 0:p[X_])}catch{return 0}}const l={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return l;const c=e.spanContext;return c.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=vz&&(Ds&&Ce.info(`Adding previous_trace ${c} link to span ${{op:r.op,...t.spanContext()}}`),t.addLink({context:c,attributes:{[fN]:"previous_trace"}}),t.setAttribute(_z,`${c.traceId}-${c.spanId}-${m_(c)?1:0}`)),l)}function Ez(e){try{Nt.sessionStorage.setItem(Pb,JSON.stringify(e))}catch(t){Ds&&Ce.warn("Could not store previous trace in sessionStorage",t)}}function Cz(){var e;try{const t=(e=Nt.sessionStorage)==null?void 0:e.getItem(Pb);return JSON.parse(t)}catch{return}}function m_(e){return e.traceFlags===1}const xz="BrowserTracing",bz={...Dg,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...Ob};let N3=!1;const Tz=(e={})=>{N3&&$l(()=>{console.warn("Multiple browserTracingIntegration instances are not supported.")}),N3=!0;const t=Nt.document;LN();const{enableInp:n,enableLongTask:r,enableLongAnimationFrame:s,_experiments:{enableInteractions:l,enableStandaloneClsSpans:c},beforeStartSpan:d,idleTimeout:p,finalTimeout:g,childSpanTimeout:v,markBackgroundSpan:_,traceFetch:E,traceXHR:x,trackFetchStreamPerformance:b,shouldCreateSpanForRequest:R,enableHTTPTimings:I,instrumentPageLoad:L,instrumentNavigation:H,linkPreviousTrace:W,consistentTraceSampling:Q,onRequestSpanStart:te}={...bz,...e},D=n$({recordClsStandaloneSpans:c||!1});n&&R$(),s&&Tt.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?i$():r&&r$(),l&&s$();const Z={name:void 0,source:void 0};function ue(X,ce){const ye=ce.op==="pageload",de=d?d(ce):ce,xe=de.attributes||{};ce.name!==de.name&&(xe[_o]="custom",de.attributes=xe),Z.name=de.name,Z.source=xe[_o];const Re=Gx(de,{idleTimeout:p,finalTimeout:g,childSpanTimeout:v,disableAutoFinish:ye,beforeSpanEnd:fe=>{D(),c$(fe,{recordClsOnPageloadSpan:!c}),D3(X,void 0);const Ie=Qt(),ee=Ie.getPropagationContext();Ie.setPropagationContext({...ee,traceId:Re.spanContext().traceId,sampled:vc(Re),dsc:_a(fe)})}});D3(X,Re);function We(){t&&["interactive","complete"].includes(t.readyState)&&X.emit("idleSpanEnableAutoFinish",Re)}ye&&t&&(t.addEventListener("readystatechange",()=>{We()}),We())}return{name:xz,afterAllSetup(X){let ce=Bd();function ye(){const de=Z0(X);de&&!Bt(de).timestamp&&(Ds&&Ce.log(`[Tracing] Finishing current active span with op: ${Bt(de).op}`),de.setAttribute(r0,"cancelled"),de.end())}if(X.on("startNavigationSpan",de=>{if(Et()!==X)return;ye(),Co().setPropagationContext({traceId:Ol(),sampleRand:Math.random()});const xe=Qt();xe.setPropagationContext({traceId:Ol(),sampleRand:Math.random()}),xe.setSDKProcessingMetadata({normalizedRequest:void 0}),ue(X,{op:"navigation",...de})}),X.on("startPageLoadSpan",(de,xe={})=>
346{if(Et()!==X)return;ye();const Re=xe.sentryTrace||M3("sentry-trace"),We=xe.baggage||M3("baggage"),fe=SN(Re,We),Ie=Qt();Ie.setPropagationContext(fe),Ie.setSDKProcessingMetadata({normalizedRequest:Z2()}),ue(X,{op:"pageload",...de})}),W!=="off"&&wz(X,{linkPreviousTrace:W,consistentTraceSampling:Q}),Nt.location){if(L){const de=Ni();kz(X,{name:Nt.location.pathname,startTime:de?de/1e3:void 0,attributes:{[_o]:"url",[nr]:"auto.pageload.browser"}})}H&&V0(({to:de,from:xe})=>{if(xe===void 0&&(ce==null?void 0:ce.indexOf(de))!==-1){ce=void 0;return}ce=void 0;const Re=p6(de);Rz(X,{name:(Re==null?void 0:Re.pathname)||Nt.location.pathname,attributes:{[_o]:"url",[nr]:"auto.navigation.browser"}}),Qt().setSDKProcessingMetadata({normalizedRequest:{...Z2(),url:de}})})}_&&yz(),l&&Iz(X,p,g,v,Z),n&&O$(),uz(X,{traceFetch:E,traceXHR:x,trackFetchStreamPerformance:b,tracePropagationTargets:X.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:R,enableHTTPTimings:I,onRequestSpanStart:te})}}};function kz(e,t,n){return e.emit("startPageLoadSpan",t,n),Qt().setTransactionName(t.name),Z0(e)}function Rz(e,t){return e.emit("startNavigationSpan",t),Qt().setTransactionName(t.name),Z0(e)}function M3(e){const t=Nt.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function Iz(e,t,n,r,s){const l=Nt.document;let c;const d=()=>{const p="ui.action.click",g=Z0(e);if(g){const v=Bt(g).op;if(["navigation","pageload"].includes(v)){Ds&&Ce.warn(`[Tracing] Did not create ${p} span because a pageload or navigation span is in progress.`);return}}if(c&&(c.setAttribute(r0,"interactionInterrupted"),c.end(),c=void 0),!s.name){Ds&&Ce.warn(`[Tracing] Did not create ${p} transaction because _latestRouteName is missing.`);return}c=Gx({name:s.name,op:p,attributes:{[_o]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};l&&addEventListener("click",d,{once:!1,capture:!0})}const Lb="_sentry_idleSpan";function Z0(e){return e[Lb]}function D3(e,t){Li(e,Lb,t)}function Oz(e){const t={...e};return a6(t,"react"),Qx("react",{version:C.version}),kj(t)}const Az=()=>{const[e,t]=C.useState(""),[n,r]=C.useState(!1),[s,l]=C.useState(!1),[c,d]=C.useState(window.innerWidth<768),p=$s(),g=p.pathname.slice(1),v=Ag.find(E=>E.code===e)||Ag[0];C.useEffect(()=>{if(g&&D2.includes(g))t(g);else{const E=document.cookie.split(";");for(const x of E){const[b,R]=x.trim().split("=");if(b==="googtrans"){const I=R.split("/");if(I.length>=3){const L=I[2];t(L==="en"?"":L)}break}}}},[g]),C.useEffect(()=>{const E=()=>{document.querySelectorAll('[class*="goog-te"]').length>0?l(!0):setTimeout(E,500)};setTimeout(E,1e3)},[]),C.useEffect(()=>{s&&g&&D2.includes(g)&&_(g)},[s,g]),C.useEffect(()=>{const E=()=>{d(window.innerWidth<768)};return window.addEventListener("resize",E),()=>window.removeEventListener("resize",E)},[]),C.useEffect(()=>{const E=x=>{var b;n&&!((b=x.target)!=null&&b.closest(".translate-widget"))&&r(!1)};return document.addEventListener("click",E),()=>document.removeEventListener("click",E)},[n]);const _=E=>{if(t(E),r(!1),E===""){const x=()=>{var R;const b=document.getElementById(":1.container");if(b)try{const I=b.contentDocument||((R=b.contentWindow)==null?void 0:R.document),L=I==null?void 0:I.getElementById(":1.restore");L?L.click():setTimeout(x,100)}catch(I){console.log("Cannot access iframe content:",I),setTimeout(x,100)}else setTimeout(x,100)};setTimeout(x,50)}else{const x=document.querySelectorAll(".goog-te-combo"),b=x.length>1?x[1]:x[0];b&&(b.value=E,b.dispatchEvent(new Event("change",{bubbles:!0})))}};return c&&p.pathname.startsWith("/chat")?null:P.jsxs("div",{className:"translate-widget notranslate fixed right-5.5 bottom-5.5 z-50",children:[n&&P.jsx("div",{className:"bg-m-gray-800 border-m-gray-700 animate-in slide-in-from-bottom-4 absolute right-0 bottom-16 max-h-72 w-64 overflow-y-auto rounded-lg border shadow-2xl duration-200",children:P.jsx("div",{children:Ag.map(E=>P.jsxs("button",{onClick:()=>_(E.code),className:`hover:bg-m-gray-650 flex w-full cursor-pointer items-center gap-3 px-4 py-3 text-left transition-colors duration-150 ${e===E.code?"bg-m-gray-650 font-medium text-white":"text-m-gray-300"}`,children:[P.jsx("span",{className:"text-lg",children:E.flag}),P.jsx("span",{className:"text-sm",children:E.name})]},E.code))})}),P.jsx("button",{onClick:()=>r(!n),disabled:!s,className:`flex h-14 w-14 items-center justify-center rounded-full border-2 shadow-lg transition-all duration-200 ${s?"bg-m-gray-800 border-m-gray-700 hover:border-m-gray-600 hover:bg-m-gray-700 transform cursor-pointer hover:scale-105 hover:shadow-xl active:scale-95":"bg-m-gray-900 border-m-gray-700 cursor-not-allowed"} ${n?"border-m-gray-600 bg-m-gray-700 rotate-180 shadow-xl":""} `,children:s?P.jsx("span",{className:"text-2xl",style:{transform:n?"rotate(-180deg)":"none"},children:v.flag}):P.jsx("div",{className:"border-m-gray-400 h-5 w-5 animate-spin rounded-full border-2 border-t-transparent"})})]})},Gv=C.lazy(()=>Nn(()=>import("./Home-BvposLGt.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17])
346)),Pz=C.lazy(()=>Nn(()=>import("./TagCharacters-BBDlaIKR.js"),__vite__mapDeps([18,1,2,3,5,6,7,4,8,9,10,11,12,13,14,15,19,17,16]))),Lz=C.lazy(()=>Nn(()=>import("./ProfileEdit-CCH7GsS7.js"),__vite__mapDeps([20,21,22,3,23,2,12,5,11,24,25]))),F3=C.lazy(()=>Nn(()=>import("./MyConversations-D25MQ8Zc.js"),__vite__mapDeps([26,11,14,9,4,10,12,24,2,27,28]))),Nz=C.lazy(()=>Nn(()=>import("./MyCharacters-Di_mAOmR.js"),__vite__mapDeps([29,7,4,8,9,10,11,12,13,14,2]))),Mz=C.lazy(()=>Nn(()=>import("./CreateCharacter-4tycyKcC.js"),__vite__mapDeps([30,31,21,22,3,23,2,12,4,5,11,16,17]))),Dz=C.lazy(()=>Nn(()=>import("./EditCharacter-DkwvJSZN.js"),__vite__mapDeps([32,31,21,22,3,23,2,12,4,5,11,16,17]))),Fz=C.lazy(()=>Nn(()=>import("./Favorites-Bygevg5J.js"),__vite__mapDeps([33,6,7,4,8,9,10,11,12,13,14,2,15]))),$z=C.lazy(()=>Nn(()=>import("./Subscribe-oq7feX4O.js"),__vite__mapDeps([34,24,25,11,14,2]))),jz=C.lazy(()=>Nn(()=>import("./Coins-DSkv-8yJ.js"),__vite__mapDeps([35,11]))),Uz=C.lazy(()=>Nn(()=>import("./SubscribeStar-DE3eAfKN.js"),[])),Hz=C.lazy(()=>Nn(()=>import("./Faq-5FOggJp7.js"),__vite__mapDeps([36,19,17]))),Bz=C.lazy(()=>Nn(()=>import("./TermsAndConditions-BqntfYCM.js"),[])),zz=C.lazy(()=>Nn(()=>import("./PrivacyPolicy-iMjdmiXK.js"),[])),Wz=C.lazy(()=>Nn(()=>import("./Onboarding-oTOTxgaW.js"),__vite__mapDeps([37,21,5,11,27]))),qz=C.lazy(()=>Nn(()=>import("./NotFound-Bk46mEtt.js"),[])),Vz=C.lazy(()=>Nn(()=>import("./UserProfile-DLrE7dvg.js"),__vite__mapDeps([38,1,2,3,5,8,9,4,10,11,12,6,7,13,14,15,16,17]))),Gz=C.lazy(()=>Nn(()=>import("./CharacterProfile-C0Yu9Yng.js"),__vite__mapDeps([39,8,9,4,10,11,12,13,14,2]))),Kz=C.lazy(()=>Nn(()=>import("./CharacterPhotoAlbum-B3tp3F7e.js"),__vite__mapDeps([40,13,11,14,10,2,15,28]))),Yz=C.lazy(()=>Nn(()=>import("./CharactersModeration-BiXYceew.js"),__vite__mapDeps([41,6,7,4,8,9,10,11,12,13,14,2,15,23]))),Qz=()=>P.jsx("div",{className:"bg-m-gray-900 flex h-screen items-center justify-center text-xl text-white",children:P.jsx(Z5,{size:"xl"})}),Xz=Y9(e=>{console.error(e),iw(e)}),Jz=()=>P.jsx(IT,{children:P.jsx(M9,{client:Xz,children:P.jsx(U_.KindeProvider,{clientId:Ls.kindeClientId,domain:Ls.kindeDomain,audience:Ls.kindeAudience,redirectUri:Ls.appBaseUrl,logoutUri:Ls.appBaseUrl,children:P.jsxs(lx,{children:[P.jsx(Az,{}),P.jsx(AL,{position:"bottom-right",toastOptions:{duration:2500}}),P.jsx(FL,{children:P.jsx(C.Suspense,{fallback:P.jsx(Qz,{}),children:P.jsxs(sT,{children:[P.jsx(Vt,{element:P.jsx(y9,{}),children:P.jsxs(Vt,{element:P.jsx(HP,{}),children:[P.jsx(Vt,{path:Be.HOME,element:P.jsx(Gv,{})}),P.jsx(Vt,{path:Be.HOME_SFW,element:P.jsx(Gv,{includeNsfwDefault:!1})}),P.jsx(Vt,{path:Be.HOME_WITH_LANG,element:P.jsx(Gv,{})}),P.jsx(Vt,{path:Be.CATEGORY,element:P.jsx(Pz,{})}),P.jsx(Vt,{path:Be.CHARACTER_PROFILE,element:P.jsx(Gz,{})}),P.jsx(Vt,{path:Be.CHARACTER_PHOTO_ALBUM,element:P.jsx(Kz,{})}),P.jsx(Vt,{path:Be.USER_PROFILE,element:P.jsx(Vz,{})}),P.jsx(Vt,{path:Be.FAQ,element:P.jsx(Hz,{})}),P.jsx(Vt,{path:Be.TAC,element:P.jsx(Bz,{})}),P.jsx(Vt,{path:Be.PRIVACY_POLICY,element:P.jsx(zz,{})}),P.jsx(Vt,{path:Be.MY_CONVERSATIONS,element:P.jsx(F3,{})}),P.jsx(Vt,{path:Be.MY_CONVERSATION,element:P.jsx(F3,{})}),P.jsxs(Vt,{element:P.jsx(v9,{}),children:[P.jsx(Vt,{path:Be.ONBOARDING,element:P.jsx(Wz,{})}),P.jsx(Vt,{path:Be.EDIT_MY_PROFILE,element:P.jsx(Lz,{})}),P.jsx(Vt,{path:Be.MY_CHARACTERS,element:P.jsx(Nz,{})}),P.jsx(Vt,{path:Be.CREATE_CHARACTER,element:P.jsx(Mz,{})}),P.jsx(Vt,{path:Be.EDIT_CHARACTER,element:P.jsx(Dz,{})}),P.jsx(Vt,{path:Be.FAVORITES,element:P.jsx(Fz,{})}),P.jsx(Vt,{path:Be.SUBSCRIBE,element:P.jsx($z,{})}),P.jsx(Vt,{path:Be.COINS,element:P.jsx(jz,{})}),P.jsx(Vt,{path:Be.SUBSCRIBESTAR,element:P.jsx(Uz,{})}),P.jsx(Vt,{element:P.jsx($L,{}),children:P.jsx(Vt,{path:Be.CHARACTERS_MODERATION,element:P.jsx(Yz,{})})})]})]})}),P.jsx(Vt,{path:Be.NOT_FOUND,element:P.jsx(qz,{})})]})})})]})})})}),Zz={get:function(e,t){return e.hasOwnProperty(t)?e[t]:(...n)=>{window.__tap(t,...n)}}},eW={init:(e,t={integration:"npm-module"},n,r={},s)=>{if(!window.__tap){(function(c,d,p){c.TapfiliateObject=d,c[d]=c[d]||function(){(c[d].q=c[d].q||[]).push(arguments)}})(window,"__tap");var l=document.createElement("script");
346l.src="https://script.tapfiliate.com/tapfiliate.js",l.type="text/javascript",l.async=!0,document.getElementsByTagName("head")[0].appendChild(l),l.addEventListener("error",()=>{new Error(`${(void 0).src} failed to load.`)}),window.__tap("create",e,t,n),window.__tap("detect",r,s)}}};var tW=new Proxy(eW,Zz);Oz({dsn:Ls.sentryDsn,sendDefaultPii:!0,integrations:[Tz(),oz({maskAllText:!1,blockAllMedia:!1})],tracesSampleRate:1,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1});tW.init(Ls.tapfiliateAccountId,{integration:"stripe"});d7.createRoot(document.getElementById("root")).render(P.jsx(Me.StrictMode,{children:P.jsx(Jz,{})}));export{nO as $,Be as A,wd as B,XS as C,sR as D,_R as E,PW as F,xW as G,FP as H,VA as I,sW as J,rR as K,So as L,Or as M,iW as N,Us as O,ex as P,mI as Q,Me as R,tP as S,tW as T,Ft as U,mi as V,II as W,Dd as X,oO as Y,Rl as Z,P0 as _,ca as a,Ns as a0,tO as a1,aO as a2,WR as a3,zR as a4,QR as a5,tI as a6,lm as a7,Yg as a8,pI as a9,bW as aA,V9 as aB,DL as aC,w0 as aD,tS as aE,oW as aF,LW as aG,LL as aH,Qg as aa,SI as ab,OW as ac,M_ as ad,IW as ae,yI as af,iI as ag,rI as ah,Oh as ai,aa as aj,T2 as ak,sI as al,cI as am,_5 as an,C5 as ao,gI as ap,mc as aq,Rr as ar,BI as as,eP as at,ZA as au,Fd as av,fm as aw,A9 as ax,bS as ay,TW as az,Ea as b,Nl as c,rW as d,sC as e,k0 as f,K9 as g,om as h,tx as i,P as j,P_ as k,D2 as l,G9 as m,tR as n,Z5 as o,iw as p,k_ as q,C as r,Ls as s,kI as t,$s as u,Vg as v,Jg as w,em as x,Il as y,FO as z};
347//# sourceMappingURL=index-lN6KuZcC.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.