var oY=Object.defineProperty;var aY=(e,t,n)=>t in e?oY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var K=(e,t,n)=>(aY(e,typeof t!="symbol"?t+"":t,n),n);function lY(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uY(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var L2={exports:{}},u0={},F2={exports:{}},lt={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Cv=Symbol.for("react.element"),cY=Symbol.for("react.portal"),fY=Symbol.for("react.fragment"),dY=Symbol.for("react.strict_mode"),hY=Symbol.for("react.profiler"),pY=Symbol.for("react.provider"),vY=Symbol.for("react.context"),mY=Symbol.for("react.forward_ref"),gY=Symbol.for("react.suspense"),_Y=Symbol.for("react.memo"),yY=Symbol.for("react.lazy"),IA=Symbol.iterator;function wY(e){return e===null||typeof e!="object"?null:(e=IA&&e[IA]||e["@@iterator"],typeof e=="function"?e:null)}var N2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$2=Object.assign,B2={};function Ld(e,t,n){this.props=e,this.context=t,this.refs=B2,this.updater=n||N2}Ld.prototype.isReactComponent={};Ld.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ld.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function U2(){}U2.prototype=Ld.prototype;function yP(e,t,n){this.props=e,this.context=t,this.refs=B2,this.updater=n||N2}var wP=yP.prototype=new U2;wP.constructor=yP;$2(wP,Ld.prototype);wP.isPureReactComponent=!0;var MA=Array.isArray,V2=Object.prototype.hasOwnProperty,SP={current:null},j2={key:!0,ref:!0,__self:!0,__source:!0};function W2(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)V2.call(t,r)&&!j2.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var u=Array(a),f=0;f<a;f++)u[f]=arguments[f+2];i.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Cv,type:e,key:s,ref:o,props:i,_owner:SP.current}}function SY(e,t){return{$$typeof:Cv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function bP(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cv}function bY(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var DA=/\/+/g;function $w(e,t){return typeof e=="object"&&e!==null&&e.key!=null?bY(""+e.key):t.toString(36)}function Vg(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Cv:case cY:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+$w(o,0):r,MA(i)?(n="",e!=null&&(n=e.replace(DA,"$&/")+"/"),Vg(i,t,n,"",function(f){return f})):i!=null&&(bP(i)&&(i=SY(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(DA,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",MA(e))for(var a=0;a<e.length;a++){s=e[a];var u=r+$w(s,a);o+=Vg(s,t,n,u,i)}else if(u=wY(e),typeof u=="function")for(e=u.call(e),a=0;!(s=e.next()).done;)s=s.value,u=r+$w(s,a++),o+=Vg(s,t,n,u,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Gm(e,t,n){if(e==null)return e;var r=[],i=0;return Vg(e,r,"","",function(s){return t.call(n,s,i++)}),r}function xY(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Wr={current:null},jg={transition:null},EY={ReactCurrentDispatcher:Wr,ReactCurrentBatchConfig:jg,ReactCurrentOwner:SP};lt.Children={map:Gm,forEach:function(e,t,n){Gm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gm(e,function(){t++}),t},toArray:function(e){return Gm(e,function(t){return t})||[]},only:function(e){if(!bP(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};lt.Component=Ld;lt.Fragment=fY;lt.Profiler=hY;lt.PureComponent=yP;lt.StrictMode=dY;lt.Suspense=gY;lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=EY;lt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=$2({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=SP.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in t)V2.call(t,u)&&!j2.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&a!==void 0?a[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){a=Array(u);for(var f=0;f<u;f++)a[f]=arguments[f+2];r.children=a}return{$$typeof:Cv,type:e.type,key:i,ref:s,props:r,_owner:o}};lt.createContext=function(e){return e={$$typeof:vY,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:pY,_context:e},e.Consumer=e};lt.createElement=W2;lt.createFactory=function(e){var t=W2.bind(null,e);return t.type=e,t};lt.createRef=function(){return{current:null}};lt.forwardRef=function(e){return{$$typeof:mY,render:e}};lt.isValidElement=bP;lt.lazy=function(e){return{$$typeof:yY,_payload:{_status:-1,_result:e},_init:xY}};lt.memo=function(e,t){return{$$typeof:_Y,type:e,compare:t===void 0?null:t}};lt.startTransition=function(e){var t=jg.transition;jg.transition={};try{e()}finally{jg.transition=t}};lt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};lt.useCallback=function(e,t){return Wr.current.useCallback(e,t)};lt.useContext=function(e){return Wr.current.useContext(e)};lt.useDebugValue=function(){};lt.useDeferredValue=function(e){return Wr.current.useDeferredValue(e)};lt.useEffect=function(e,t){return Wr.current.useEffect(e,t)};lt.useId=function(){return Wr.current.useId()};lt.useImperativeHandle=function(e,t,n){return Wr.current.useImperativeHandle(e,t,n)};lt.useInsertionEffect=function(e,t){return Wr.current.useInsertionEffect(e,t)};lt.useLayoutEffect=function(e,t){return Wr.current.useLayoutEffect(e,t)};lt.useMemo=function(e,t){return Wr.current.useMemo(e,t)};lt.useReducer=function(e,t,n){return Wr.current.useReducer(e,t,n)};lt.useRef=function(e){return Wr.current.useRef(e)};lt.useState=function(e){return Wr.current.useState(e)};lt.useSyncExternalStore=function(e,t,n){return Wr.current.useSyncExternalStore(e,t,n)};lt.useTransition=function(){return Wr.current.useTransition()};lt.version="18.2.0";F2.exports=lt;var N=F2.exports;const rd=l0(N),LA=lY({__proto__:null,default:rd},[N]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var PY=N,OY=Symbol.for("react.element"),TY=Symbol.for("react.fragment"),CY=Object.prototype.hasOwnProperty,kY=PY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,AY={key:!0,ref:!0,__self:!0,__source:!0};function z2(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)CY.call(t,r)&&!AY.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:OY,type:e,key:s,ref:o,props:i,_owner:kY.current}}u0.Fragment=TY;u0.jsx=z2;u0.jsxs=z2;L2.exports=u0;var xP=L2.exports;const kb=xP.Fragment,de=xP.jsx,$l=xP.jsxs;var H2={exports:{}},Ai={},G2={exports:{}},Y2={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(X,te){var ve=X.length;X.push(te);e:for(;0<ve;){var he=ve-1>>>1,we=X[he];if(0<i(we,te))X[he]=te,X[ve]=we,ve=he;else break e}}function n(X){return X.length===0?null:X[0]}function r(X){if(X.length===0)return null;var te=X[0],ve=X.pop();if(ve!==te){X[0]=ve;e:for(var he=0,we=X.length,_e=we>>>1;he<_e;){var Ie=2*(he+1)-1,me=X[Ie],Ae=Ie+1,De=X[Ae];if(0>i(me,ve))Ae<we&&0>i(De,me)?(X[he]=De,X[Ae]=ve,he=Ae):(X[he]=me,X[Ie]=ve,he=Ie);else if(Ae<we&&0>i(De,ve))X[he]=De,X[Ae]=ve,he=Ae;else break e}}return te}function i(X,te){var ve=X.sortIndex-te.sortIndex;return ve!==0?ve:X.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var u=[],f=[],d=1,h=null,v=3,m=!1,y=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(X){for(var te=n(f);te!==null;){if(te.callback===null)r(f);else if(te.startTime<=X)r(f),te.sortIndex=te.expirationTime,t(u,te);else break;te=n(f)}}function O(X){if(w=!1,b(X),!y)if(n(u)!==null)y=!0,oe(I);else{var te=n(f);te!==null&&ue(O,te.startTime-X)}}function I(X,te){y=!1,w&&(w=!1,S(P),P=-1),m=!0;var ve=v;try{for(b(te),h=n(u);h!==null&&(!(h.expirationTime>te)||X&&!V());){var he=h.callback;if(typeof he=="function"){h.callback=null,v=h.priorityLevel;var we=he(h.expirationTime<=te);te=e.unstable_now(),typeof we=="function"?h.callback=we:h===n(u)&&r(u),b(te)}else r(u);h=n(u)}if(h!==null)var _e=!0;else{var Ie=n(f);Ie!==null&&ue(O,Ie.startTime-te),_e=!1}return _e}finally{h=null,v=ve,m=!1}}var A=!1,C=null,P=-1,M=5,D=-1;function V(){return!(e.unstable_now()-D<M)}function Q(){if(C!==null){var X=e.unstable_now();D=X;var te=!0;try{te=C(!0,X)}finally{te?se():(A=!1,C=null)}}else A=!1}var se;if(typeof _=="function")se=function(){_(Q)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,q=ie.port2;ie.port1.onmessage=Q,se=function(){q.postMessage(null)}}else se=function(){E(Q,0)};function oe(X){C=X,A||(A=!0,se())}function ue(X,te){P=E(function(){X(e.unstable_now())},te)}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(X){X.callback=null},e.unstable_continueExecution=function(){y||m||(y=!0,oe(I))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(X){switch(v){case 1:case 2:case 3:var te=3;break;default:te=v}var ve=v;v=te;try{return X()}finally{v=ve}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,te){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var ve=v;v=X;try{return te()}finally{v=ve}},e.unstable_scheduleCallback=function(X,te,ve){var he=e.unstable_now();switch(typeof ve=="object"&&ve!==null?(ve=ve.delay,ve=typeof ve=="number"&&0<ve?he+ve:he):ve=he,X){case 1:var we=-1;break;case 2:we=250;break;case 5:we=1073741823;break;case 4:we=1e4;break;default:we=5e3}return we=ve+we,X={id:d++,callback:te,priorityLevel:X,startTime:ve,expirationTime:we,sortIndex:-1},ve>he?(X.sortIndex=ve,t(f,X),n(u)===null&&X===n(f)&&(w?(S(P),P=-1):w=!0,ue(O,ve-he))):(X.sortIndex=we,t(u,X),y||m||(y=!0,oe(I))),X},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(X){var te=v;return function(){var ve=v;v=te;try{return X.apply(this,arguments)}finally{v=ve}}}})(Y2);G2.exports=Y2;var RY=G2.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var q2=N,Ti=RY;function ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var K2=new Set,$p={};function uc(e,t){id(e,t),id(e+"Capture",t)}function id(e,t){for($p[e]=t,e=0;e<t.length;e++)K2.add(t[e])}var Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ab=Object.prototype.hasOwnProperty,IY=/^[: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]*$/,FA={},NA={};function MY(e){return Ab.call(NA,e)?!0:Ab.call(FA,e)?!1:IY.test(e)?NA[e]=!0:(FA[e]=!0,!1)}function DY(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function LY(e,t,n,r){if(t===null||typeof t>"u"||DY(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function zr(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ur={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ur[e]=new zr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ur[t]=new zr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ur[e]=new zr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ur[e]=new zr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ur[e]=new zr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ur[e]=new zr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ur[e]=new zr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ur[e]=new zr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ur[e]=new zr(e,5,!1,e.toLowerCase(),null,!1,!1)});var EP=/[\-:]([a-z])/g;function PP(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(EP,PP);ur[t]=new zr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(EP,PP);ur[t]=new zr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(EP,PP);ur[t]=new zr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ur[e]=new zr(e,1,!1,e.toLowerCase(),null,!1,!1)});ur.xlinkHref=new zr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ur[e]=new zr(e,1,!1,e.toLowerCase(),null,!0,!0)});function OP(e,t,n,r){var i=ur.hasOwnProperty(t)?ur[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(LY(t,n,i,r)&&(n=null),r||i===null?MY(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ma=q2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ym=Symbol.for("react.element"),hf=Symbol.for("react.portal"),pf=Symbol.for("react.fragment"),TP=Symbol.for("react.strict_mode"),Rb=Symbol.for("react.profiler"),X2=Symbol.for("react.provider"),J2=Symbol.for("react.context"),CP=Symbol.for("react.forward_ref"),Ib=Symbol.for("react.suspense"),Mb=Symbol.for("react.suspense_list"),kP=Symbol.for("react.memo"),al=Symbol.for("react.lazy"),Q2=Symbol.for("react.offscreen"),$A=Symbol.iterator;function Rh(e){return e===null||typeof e!="object"?null:(e=$A&&e[$A]||e["@@iterator"],typeof e=="function"?e:null)}var fn=Object.assign,Bw;function Zh(e){if(Bw===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Bw=t&&t[1]||""}return`
`+Bw+e}var Uw=!1;function Vw(e,t){if(!e||Uw)return"";Uw=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(`
`),s=r.stack.split(`
`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var u=`
`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=a);break}}}finally{Uw=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Zh(e):""}function FY(e){switch(e.tag){case 5:return Zh(e.type);case 16:return Zh("Lazy");case 13:return Zh("Suspense");case 19:return Zh("SuspenseList");case 0:case 2:case 15:return e=Vw(e.type,!1),e;case 11:return e=Vw(e.type.render,!1),e;case 1:return e=Vw(e.type,!0),e;default:return""}}function Db(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case pf:return"Fragment";case hf:return"Portal";case Rb:return"Profiler";case TP:return"StrictMode";case Ib:return"Suspense";case Mb:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case J2:return(e.displayName||"Context")+".Consumer";case X2:return(e._context.displayName||"Context")+".Provider";case CP:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kP:return t=e.displayName||null,t!==null?t:Db(e.type)||"Memo";case al:t=e._payload,e=e._init;try{return Db(e(t))}catch{}}return null}function NY(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Db(t);case 8:return t===TP?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Bl(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Z2(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function $Y(e){var t=Z2(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qm(e){e._valueTracker||(e._valueTracker=$Y(e))}function eF(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Z2(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function A_(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Lb(e,t){var n=t.checked;return fn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function BA(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Bl(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function tF(e,t){t=t.checked,t!=null&&OP(e,"checked",t,!1)}function Fb(e,t){tF(e,t);var n=Bl(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Nb(e,t.type,n):t.hasOwnProperty("defaultValue")&&Nb(e,t.type,Bl(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function UA(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Nb(e,t,n){(t!=="number"||A_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ep=Array.isArray;function Ff(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Bl(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function $b(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ce(91));return fn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function VA(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ce(92));if(ep(n)){if(1<n.length)throw Error(ce(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Bl(n)}}function nF(e,t){var n=Bl(t.value),r=Bl(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function jA(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function rF(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Bb(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?rF(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Km,iF=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Km=Km||document.createElement("div"),Km.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Km.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cp={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},BY=["Webkit","ms","Moz","O"];Object.keys(cp).forEach(function(e){BY.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),cp[t]=cp[e]})});function sF(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||cp.hasOwnProperty(e)&&cp[e]?(""+t).trim():t+"px"}function oF(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=sF(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var UY=fn({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 Ub(e,t){if(t){if(UY[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function Vb(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jb=null;function AP(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wb=null,Nf=null,$f=null;function WA(e){if(e=Rv(e)){if(typeof Wb!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=p0(t),Wb(e.stateNode,e.type,t))}}function aF(e){Nf?$f?$f.push(e):$f=[e]:Nf=e}function lF(){if(Nf){var e=Nf,t=$f;if($f=Nf=null,WA(e),t)for(e=0;e<t.length;e++)WA(t[e])}}function uF(e,t){return e(t)}function cF(){}var jw=!1;function fF(e,t,n){if(jw)return e(t,n);jw=!0;try{return uF(e,t,n)}finally{jw=!1,(Nf!==null||$f!==null)&&(cF(),lF())}}function Up(e,t){var n=e.stateNode;if(n===null)return null;var r=p0(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(ce(231,t,typeof n));return n}var zb=!1;if(Ea)try{var Ih={};Object.defineProperty(Ih,"passive",{get:function(){zb=!0}}),window.addEventListener("test",Ih,Ih),window.removeEventListener("test",Ih,Ih)}catch{zb=!1}function VY(e,t,n,r,i,s,o,a,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(d){this.onError(d)}}var fp=!1,R_=null,I_=!1,Hb=null,jY={onError:function(e){fp=!0,R_=e}};function WY(e,t,n,r,i,s,o,a,u){fp=!1,R_=null,VY.apply(jY,arguments)}function zY(e,t,n,r,i,s,o,a,u){if(WY.apply(this,arguments),fp){if(fp){var f=R_;fp=!1,R_=null}else throw Error(ce(198));I_||(I_=!0,Hb=f)}}function cc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function dF(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function zA(e){if(cc(e)!==e)throw Error(ce(188))}function HY(e){var t=e.alternate;if(!t){if(t=cc(e),t===null)throw Error(ce(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return zA(i),e;if(s===r)return zA(i),t;s=s.sibling}throw Error(ce(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(ce(189))}}if(n.alternate!==r)throw Error(ce(190))}if(n.tag!==3)throw Error(ce(188));return n.stateNode.current===n?e:t}function hF(e){return e=HY(e),e!==null?pF(e):null}function pF(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pF(e);if(t!==null)return t;e=e.sibling}return null}var vF=Ti.unstable_scheduleCallback,HA=Ti.unstable_cancelCallback,GY=Ti.unstable_shouldYield,YY=Ti.unstable_requestPaint,Sn=Ti.unstable_now,qY=Ti.unstable_getCurrentPriorityLevel,RP=Ti.unstable_ImmediatePriority,mF=Ti.unstable_UserBlockingPriority,M_=Ti.unstable_NormalPriority,KY=Ti.unstable_LowPriority,gF=Ti.unstable_IdlePriority,c0=null,yo=null;function XY(e){if(yo&&typeof yo.onCommitFiberRoot=="function")try{yo.onCommitFiberRoot(c0,e,void 0,(e.current.flags&128)===128)}catch{}}var Ms=Math.clz32?Math.clz32:ZY,JY=Math.log,QY=Math.LN2;function ZY(e){return e>>>=0,e===0?32:31-(JY(e)/QY|0)|0}var Xm=64,Jm=4194304;function tp(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function D_(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=tp(a):(s&=o,s!==0&&(r=tp(s)))}else o=n&~i,o!==0?r=tp(o):s!==0&&(r=tp(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ms(t),i=1<<n,r|=e[n],t&=~i;return r}function e9(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function t9(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Ms(s),a=1<<o,u=i[o];u===-1?(!(a&n)||a&r)&&(i[o]=e9(a,t)):u<=t&&(e.expiredLanes|=a),s&=~a}}function Gb(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function _F(){var e=Xm;return Xm<<=1,!(Xm&4194240)&&(Xm=64),e}function Ww(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kv(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ms(t),e[t]=n}function n9(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ms(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function IP(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ms(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ut=0;function yF(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var wF,MP,SF,bF,xF,Yb=!1,Qm=[],Pl=null,Ol=null,Tl=null,Vp=new Map,jp=new Map,vl=[],r9="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 GA(e,t){switch(e){case"focusin":case"focusout":Pl=null;break;case"dragenter":case"dragleave":Ol=null;break;case"mouseover":case"mouseout":Tl=null;break;case"pointerover":case"pointerout":Vp.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jp.delete(t.pointerId)}}function Mh(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Rv(t),t!==null&&MP(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function i9(e,t,n,r,i){switch(t){case"focusin":return Pl=Mh(Pl,e,t,n,r,i),!0;case"dragenter":return Ol=Mh(Ol,e,t,n,r,i),!0;case"mouseover":return Tl=Mh(Tl,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Vp.set(s,Mh(Vp.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,jp.set(s,Mh(jp.get(s)||null,e,t,n,r,i)),!0}return!1}function EF(e){var t=Fu(e.target);if(t!==null){var n=cc(t);if(n!==null){if(t=n.tag,t===13){if(t=dF(n),t!==null){e.blockedOn=t,xF(e.priority,function(){SF(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wg(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qb(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);jb=r,n.target.dispatchEvent(r),jb=null}else return t=Rv(n),t!==null&&MP(t),e.blockedOn=n,!1;t.shift()}return!0}function YA(e,t,n){Wg(e)&&n.delete(t)}function s9(){Yb=!1,Pl!==null&&Wg(Pl)&&(Pl=null),Ol!==null&&Wg(Ol)&&(Ol=null),Tl!==null&&Wg(Tl)&&(Tl=null),Vp.forEach(YA),jp.forEach(YA)}function Dh(e,t){e.blockedOn===t&&(e.blockedOn=null,Yb||(Yb=!0,Ti.unstable_scheduleCallback(Ti.unstable_NormalPriority,s9)))}function Wp(e){function t(i){return Dh(i,e)}if(0<Qm.length){Dh(Qm[0],e);for(var n=1;n<Qm.length;n++){var r=Qm[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Pl!==null&&Dh(Pl,e),Ol!==null&&Dh(Ol,e),Tl!==null&&Dh(Tl,e),Vp.forEach(t),jp.forEach(t),n=0;n<vl.length;n++)r=vl[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<vl.length&&(n=vl[0],n.blockedOn===null);)EF(n),n.blockedOn===null&&vl.shift()}var Bf=Ma.ReactCurrentBatchConfig,L_=!0;function o9(e,t,n,r){var i=Ut,s=Bf.transition;Bf.transition=null;try{Ut=1,DP(e,t,n,r)}finally{Ut=i,Bf.transition=s}}function a9(e,t,n,r){var i=Ut,s=Bf.transition;Bf.transition=null;try{Ut=4,DP(e,t,n,r)}finally{Ut=i,Bf.transition=s}}function DP(e,t,n,r){if(L_){var i=qb(e,t,n,r);if(i===null)Zw(e,t,r,F_,n),GA(e,r);else if(i9(i,e,t,n,r))r.stopPropagation();else if(GA(e,r),t&4&&-1<r9.indexOf(e)){for(;i!==null;){var s=Rv(i);if(s!==null&&wF(s),s=qb(e,t,n,r),s===null&&Zw(e,t,r,F_,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Zw(e,t,r,null,n)}}var F_=null;function qb(e,t,n,r){if(F_=null,e=AP(r),e=Fu(e),e!==null)if(t=cc(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dF(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return F_=e,null}function PF(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(qY()){case RP:return 1;case mF:return 4;case M_:case KY:return 16;case gF:return 536870912;default:return 16}default:return 16}}var gl=null,LP=null,zg=null;function OF(){if(zg)return zg;var e,t=LP,n=t.length,r,i="value"in gl?gl.value:gl.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return zg=i.slice(e,1<r?1-r:void 0)}function Hg(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Zm(){return!0}function qA(){return!1}function Ri(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Zm:qA,this.isPropagationStopped=qA,this}return fn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Zm)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Zm)},persist:function(){},isPersistent:Zm}),t}var Fd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},FP=Ri(Fd),Av=fn({},Fd,{view:0,detail:0}),l9=Ri(Av),zw,Hw,Lh,f0=fn({},Av,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:NP,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Lh&&(Lh&&e.type==="mousemove"?(zw=e.screenX-Lh.screenX,Hw=e.screenY-Lh.screenY):Hw=zw=0,Lh=e),zw)},movementY:function(e){return"movementY"in e?e.movementY:Hw}}),KA=Ri(f0),u9=fn({},f0,{dataTransfer:0}),c9=Ri(u9),f9=fn({},Av,{relatedTarget:0}),Gw=Ri(f9),d9=fn({},Fd,{animationName:0,elapsedTime:0,pseudoElement:0}),h9=Ri(d9),p9=fn({},Fd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),v9=Ri(p9),m9=fn({},Fd,{data:0}),XA=Ri(m9),g9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_9={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"},y9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function w9(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=y9[e])?!!t[e]:!1}function NP(){return w9}var S9=fn({},Av,{key:function(e){if(e.key){var t=g9[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hg(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_9[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:NP,charCode:function(e){return e.type==="keypress"?Hg(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hg(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),b9=Ri(S9),x9=fn({},f0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),JA=Ri(x9),E9=fn({},Av,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:NP}),P9=Ri(E9),O9=fn({},Fd,{propertyName:0,elapsedTime:0,pseudoElement:0}),T9=Ri(O9),C9=fn({},f0,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),k9=Ri(C9),A9=[9,13,27,32],$P=Ea&&"CompositionEvent"in window,dp=null;Ea&&"documentMode"in document&&(dp=document.documentMode);var R9=Ea&&"TextEvent"in window&&!dp,TF=Ea&&(!$P||dp&&8<dp&&11>=dp),QA=String.fromCharCode(32),ZA=!1;function CF(e,t){switch(e){case"keyup":return A9.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kF(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vf=!1;function I9(e,t){switch(e){case"compositionend":return kF(t);case"keypress":return t.which!==32?null:(ZA=!0,QA);case"textInput":return e=t.data,e===QA&&ZA?null:e;default:return null}}function M9(e,t){if(vf)return e==="compositionend"||!$P&&CF(e,t)?(e=OF(),zg=LP=gl=null,vf=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return TF&&t.locale!=="ko"?null:t.data;default:return null}}var D9={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 eR(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!D9[e.type]:t==="textarea"}function AF(e,t,n,r){aF(r),t=N_(t,"onChange"),0<t.length&&(n=new FP("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hp=null,zp=null;function L9(e){VF(e,0)}function d0(e){var t=_f(e);if(eF(t))return e}function F9(e,t){if(e==="change")return t}var RF=!1;if(Ea){var Yw;if(Ea){var qw="oninput"in document;if(!qw){var tR=document.createElement("div");tR.setAttribute("oninput","return;"),qw=typeof tR.oninput=="function"}Yw=qw}else Yw=!1;RF=Yw&&(!document.documentMode||9<document.documentMode)}function nR(){hp&&(hp.detachEvent("onpropertychange",IF),zp=hp=null)}function IF(e){if(e.propertyName==="value"&&d0(zp)){var t=[];AF(t,zp,e,AP(e)),fF(L9,t)}}function N9(e,t,n){e==="focusin"?(nR(),hp=t,zp=n,hp.attachEvent("onpropertychange",IF)):e==="focusout"&&nR()}function $9(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return d0(zp)}function B9(e,t){if(e==="click")return d0(t)}function U9(e,t){if(e==="input"||e==="change")return d0(t)}function V9(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ns=typeof Object.is=="function"?Object.is:V9;function Hp(e,t){if(Ns(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ab.call(t,i)||!Ns(e[i],t[i]))return!1}return!0}function rR(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function iR(e,t){var n=rR(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rR(n)}}function MF(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?MF(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function DF(){for(var e=window,t=A_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=A_(e.document)}return t}function BP(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function j9(e){var t=DF(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&MF(n.ownerDocument.documentElement,n)){if(r!==null&&BP(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=iR(n,s);var o=iR(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var W9=Ea&&"documentMode"in document&&11>=document.documentMode,mf=null,Kb=null,pp=null,Xb=!1;function sR(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xb||mf==null||mf!==A_(r)||(r=mf,"selectionStart"in r&&BP(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),pp&&Hp(pp,r)||(pp=r,r=N_(Kb,"onSelect"),0<r.length&&(t=new FP("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mf)))}function eg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var gf={animationend:eg("Animation","AnimationEnd"),animationiteration:eg("Animation","AnimationIteration"),animationstart:eg("Animation","AnimationStart"),transitionend:eg("Transition","TransitionEnd")},Kw={},LF={};Ea&&(LF=document.createElement("div").style,"AnimationEvent"in window||(delete gf.animationend.animation,delete gf.animationiteration.animation,delete gf.animationstart.animation),"TransitionEvent"in window||delete gf.transitionend.transition);function h0(e){if(Kw[e])return Kw[e];if(!gf[e])return e;var t=gf[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in LF)return Kw[e]=t[n];return e}var FF=h0("animationend"),NF=h0("animationiteration"),$F=h0("animationstart"),BF=h0("transitionend"),UF=new Map,oR="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 Wl(e,t){UF.set(e,t),uc(t,[e])}for(var Xw=0;Xw<oR.length;Xw++){var Jw=oR[Xw],z9=Jw.toLowerCase(),H9=Jw[0].toUpperCase()+Jw.slice(1);Wl(z9,"on"+H9)}Wl(FF,"onAnimationEnd");Wl(NF,"onAnimationIteration");Wl($F,"onAnimationStart");Wl("dblclick","onDoubleClick");Wl("focusin","onFocus");Wl("focusout","onBlur");Wl(BF,"onTransitionEnd");id("onMouseEnter",["mouseout","mouseover"]);id("onMouseLeave",["mouseout","mouseover"]);id("onPointerEnter",["pointerout","pointerover"]);id("onPointerLeave",["pointerout","pointerover"]);uc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));uc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));uc("onBeforeInput",["compositionend","keypress","textInput","paste"]);uc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));uc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));uc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var np="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(" "),G9=new Set("cancel close invalid load scroll toggle".split(" ").concat(np));function aR(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,zY(r,t,void 0,e),e.currentTarget=null}function VF(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],u=a.instance,f=a.currentTarget;if(a=a.listener,u!==s&&i.isPropagationStopped())break e;aR(i,a,f),s=u}else for(o=0;o<r.length;o++){if(a=r[o],u=a.instance,f=a.currentTarget,a=a.listener,u!==s&&i.isPropagationStopped())break e;aR(i,a,f),s=u}}}if(I_)throw e=Hb,I_=!1,Hb=null,e}function Jt(e,t){var n=t[tx];n===void 0&&(n=t[tx]=new Set);var r=e+"__bubble";n.has(r)||(jF(t,e,2,!1),n.add(r))}function Qw(e,t,n){var r=0;t&&(r|=4),jF(n,e,r,t)}var tg="_reactListening"+Math.random().toString(36).slice(2);function Gp(e){if(!e[tg]){e[tg]=!0,K2.forEach(function(n){n!=="selectionchange"&&(G9.has(n)||Qw(n,!1,e),Qw(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tg]||(t[tg]=!0,Qw("selectionchange",!1,t))}}function jF(e,t,n,r){switch(PF(t)){case 1:var i=o9;break;case 4:i=a9;break;default:i=DP}n=i.bind(null,t,n,e),i=void 0,!zb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Zw(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Fu(a),o===null)return;if(u=o.tag,u===5||u===6){r=s=o;continue e}a=a.parentNode}}r=r.return}fF(function(){var f=s,d=AP(n),h=[];e:{var v=UF.get(e);if(v!==void 0){var m=FP,y=e;switch(e){case"keypress":if(Hg(n)===0)break e;case"keydown":case"keyup":m=b9;break;case"focusin":y="focus",m=Gw;break;case"focusout":y="blur",m=Gw;break;case"beforeblur":case"afterblur":m=Gw;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=KA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=c9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=P9;break;case FF:case NF:case $F:m=h9;break;case BF:m=T9;break;case"scroll":m=l9;break;case"wheel":m=k9;break;case"copy":case"cut":case"paste":m=v9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=JA}var w=(t&4)!==0,E=!w&&e==="scroll",S=w?v!==null?v+"Capture":null:v;w=[];for(var _=f,b;_!==null;){b=_;var O=b.stateNode;if(b.tag===5&&O!==null&&(b=O,S!==null&&(O=Up(_,S),O!=null&&w.push(Yp(_,O,b)))),E)break;_=_.return}0<w.length&&(v=new m(v,y,null,n,d),h.push({event:v,listeners:w}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",v&&n!==jb&&(y=n.relatedTarget||n.fromElement)&&(Fu(y)||y[Pa]))break e;if((m||v)&&(v=d.window===d?d:(v=d.ownerDocument)?v.defaultView||v.parentWindow:window,m?(y=n.relatedTarget||n.toElement,m=f,y=y?Fu(y):null,y!==null&&(E=cc(y),y!==E||y.tag!==5&&y.tag!==6)&&(y=null)):(m=null,y=f),m!==y)){if(w=KA,O="onMouseLeave",S="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(w=JA,O="onPointerLeave",S="onPointerEnter",_="pointer"),E=m==null?v:_f(m),b=y==null?v:_f(y),v=new w(O,_+"leave",m,n,d),v.target=E,v.relatedTarget=b,O=null,Fu(d)===f&&(w=new w(S,_+"enter",y,n,d),w.target=b,w.relatedTarget=E,O=w),E=O,m&&y)t:{for(w=m,S=y,_=0,b=w;b;b=Qc(b))_++;for(b=0,O=S;O;O=Qc(O))b++;for(;0<_-b;)w=Qc(w),_--;for(;0<b-_;)S=Qc(S),b--;for(;_--;){if(w===S||S!==null&&w===S.alternate)break t;w=Qc(w),S=Qc(S)}w=null}else w=null;m!==null&&lR(h,v,m,w,!1),y!==null&&E!==null&&lR(h,E,y,w,!0)}}e:{if(v=f?_f(f):window,m=v.nodeName&&v.nodeName.toLowerCase(),m==="select"||m==="input"&&v.type==="file")var I=F9;else if(eR(v))if(RF)I=U9;else{I=$9;var A=N9}else(m=v.nodeName)&&m.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(I=B9);if(I&&(I=I(e,f))){AF(h,I,n,d);break e}A&&A(e,v,f),e==="focusout"&&(A=v._wrapperState)&&A.controlled&&v.type==="number"&&Nb(v,"number",v.value)}switch(A=f?_f(f):window,e){case"focusin":(eR(A)||A.contentEditable==="true")&&(mf=A,Kb=f,pp=null);break;case"focusout":pp=Kb=mf=null;break;case"mousedown":Xb=!0;break;case"contextmenu":case"mouseup":case"dragend":Xb=!1,sR(h,n,d);break;case"selectionchange":if(W9)break;case"keydown":case"keyup":sR(h,n,d)}var C;if($P)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else vf?CF(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(TF&&n.locale!=="ko"&&(vf||P!=="onCompositionStart"?P==="onCompositionEnd"&&vf&&(C=OF()):(gl=d,LP="value"in gl?gl.value:gl.textContent,vf=!0)),A=N_(f,P),0<A.length&&(P=new XA(P,e,null,n,d),h.push({event:P,listeners:A}),C?P.data=C:(C=kF(n),C!==null&&(P.data=C)))),(C=R9?I9(e,n):M9(e,n))&&(f=N_(f,"onBeforeInput"),0<f.length&&(d=new XA("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:f}),d.data=C))}VF(h,t)})}function Yp(e,t,n){return{instance:e,listener:t,currentTarget:n}}function N_(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Up(e,n),s!=null&&r.unshift(Yp(e,s,i)),s=Up(e,t),s!=null&&r.push(Yp(e,s,i))),e=e.return}return r}function Qc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function lR(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,u=a.alternate,f=a.stateNode;if(u!==null&&u===r)break;a.tag===5&&f!==null&&(a=f,i?(u=Up(n,s),u!=null&&o.unshift(Yp(n,u,a))):i||(u=Up(n,s),u!=null&&o.push(Yp(n,u,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Y9=/\r\n?/g,q9=/\u0000|\uFFFD/g;function uR(e){return(typeof e=="string"?e:""+e).replace(Y9,`
`).replace(q9,"")}function ng(e,t,n){if(t=uR(t),uR(e)!==t&&n)throw Error(ce(425))}function $_(){}var Jb=null,Qb=null;function Zb(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ex=typeof setTimeout=="function"?setTimeout:void 0,K9=typeof clearTimeout=="function"?clearTimeout:void 0,cR=typeof Promise=="function"?Promise:void 0,X9=typeof queueMicrotask=="function"?queueMicrotask:typeof cR<"u"?function(e){return cR.resolve(null).then(e).catch(J9)}:ex;function J9(e){setTimeout(function(){throw e})}function eS(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Wp(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Wp(t)}function Cl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function fR(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Nd=Math.random().toString(36).slice(2),co="__reactFiber$"+Nd,qp="__reactProps$"+Nd,Pa="__reactContainer$"+Nd,tx="__reactEvents$"+Nd,Q9="__reactListeners$"+Nd,Z9="__reactHandles$"+Nd;function Fu(e){var t=e[co];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pa]||n[co]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fR(e);e!==null;){if(n=e[co])return n;e=fR(e)}return t}e=n,n=e.parentNode}return null}function Rv(e){return e=e[co]||e[Pa],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function _f(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ce(33))}function p0(e){return e[qp]||null}var nx=[],yf=-1;function zl(e){return{current:e}}function en(e){0>yf||(e.current=nx[yf],nx[yf]=null,yf--)}function Kt(e,t){yf++,nx[yf]=e.current,e.current=t}var Ul={},Er=zl(Ul),ri=zl(!1),ec=Ul;function sd(e,t){var n=e.type.contextTypes;if(!n)return Ul;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ii(e){return e=e.childContextTypes,e!=null}function B_(){en(ri),en(Er)}function dR(e,t,n){if(Er.current!==Ul)throw Error(ce(168));Kt(Er,t),Kt(ri,n)}function WF(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(ce(108,NY(e)||"Unknown",i));return fn({},n,r)}function U_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ul,ec=Er.current,Kt(Er,e),Kt(ri,ri.current),!0}function hR(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=WF(e,t,ec),r.__reactInternalMemoizedMergedChildContext=e,en(ri),en(Er),Kt(Er,e)):en(ri),Kt(ri,n)}var ia=null,v0=!1,tS=!1;function zF(e){ia===null?ia=[e]:ia.push(e)}function eq(e){v0=!0,zF(e)}function Hl(){if(!tS&&ia!==null){tS=!0;var e=0,t=Ut;try{var n=ia;for(Ut=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ia=null,v0=!1}catch(i){throw ia!==null&&(ia=ia.slice(e+1)),vF(RP,Hl),i}finally{Ut=t,tS=!1}}return null}var wf=[],Sf=0,V_=null,j_=0,Xi=[],Ji=0,tc=null,ua=1,ca="";function Cu(e,t){wf[Sf++]=j_,wf[Sf++]=V_,V_=e,j_=t}function HF(e,t,n){Xi[Ji++]=ua,Xi[Ji++]=ca,Xi[Ji++]=tc,tc=e;var r=ua;e=ca;var i=32-Ms(r)-1;r&=~(1<<i),n+=1;var s=32-Ms(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ua=1<<32-Ms(t)+i|n<<i|r,ca=s+e}else ua=1<<s|n<<i|r,ca=e}function UP(e){e.return!==null&&(Cu(e,1),HF(e,1,0))}function VP(e){for(;e===V_;)V_=wf[--Sf],wf[Sf]=null,j_=wf[--Sf],wf[Sf]=null;for(;e===tc;)tc=Xi[--Ji],Xi[Ji]=null,ca=Xi[--Ji],Xi[Ji]=null,ua=Xi[--Ji],Xi[Ji]=null}var Pi=null,xi=null,on=!1,ks=null;function GF(e,t){var n=ts(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function pR(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Pi=e,xi=Cl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Pi=e,xi=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=tc!==null?{id:ua,overflow:ca}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ts(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Pi=e,xi=null,!0):!1;default:return!1}}function rx(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ix(e){if(on){var t=xi;if(t){var n=t;if(!pR(e,t)){if(rx(e))throw Error(ce(418));t=Cl(n.nextSibling);var r=Pi;t&&pR(e,t)?GF(r,n):(e.flags=e.flags&-4097|2,on=!1,Pi=e)}}else{if(rx(e))throw Error(ce(418));e.flags=e.flags&-4097|2,on=!1,Pi=e}}}function vR(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Pi=e}function rg(e){if(e!==Pi)return!1;if(!on)return vR(e),on=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Zb(e.type,e.memoizedProps)),t&&(t=xi)){if(rx(e))throw YF(),Error(ce(418));for(;t;)GF(e,t),t=Cl(t.nextSibling)}if(vR(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ce(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xi=Cl(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xi=null}}else xi=Pi?Cl(e.stateNode.nextSibling):null;return!0}function YF(){for(var e=xi;e;)e=Cl(e.nextSibling)}function od(){xi=Pi=null,on=!1}function jP(e){ks===null?ks=[e]:ks.push(e)}var tq=Ma.ReactCurrentBatchConfig;function Ps(e,t){if(e&&e.defaultProps){t=fn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var W_=zl(null),z_=null,bf=null,WP=null;function zP(){WP=bf=z_=null}function HP(e){var t=W_.current;en(W_),e._currentValue=t}function sx(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Uf(e,t){z_=e,WP=bf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ti=!0),e.firstContext=null)}function cs(e){var t=e._currentValue;if(WP!==e)if(e={context:e,memoizedValue:t,next:null},bf===null){if(z_===null)throw Error(ce(308));bf=e,z_.dependencies={lanes:0,firstContext:e}}else bf=bf.next=e;return t}var Nu=null;function GP(e){Nu===null?Nu=[e]:Nu.push(e)}function qF(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,GP(t)):(n.next=i.next,i.next=n),t.interleaved=n,Oa(e,r)}function Oa(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ll=!1;function YP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function KF(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function pa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kl(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,_t&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Oa(e,n)}return i=r.interleaved,i===null?(t.next=t,GP(r)):(t.next=i.next,i.next=t),r.interleaved=t,Oa(e,n)}function Gg(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,IP(e,n)}}function mR(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function H_(e,t,n,r){var i=e.updateQueue;ll=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var u=a,f=u.next;u.next=null,o===null?s=f:o.next=f,o=u;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=f:a.next=f,d.lastBaseUpdate=u))}if(s!==null){var h=i.baseState;o=0,d=f=u=null,a=s;do{var v=a.lane,m=a.eventTime;if((r&v)===v){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,w=a;switch(v=t,m=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){h=y.call(m,h,v);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,v=typeof y=="function"?y.call(m,h,v):y,v==null)break e;h=fn({},h,v);break e;case 2:ll=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,v=i.effects,v===null?i.effects=[a]:v.push(a))}else m={eventTime:m,lane:v,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(f=d=m,u=h):d=d.next=m,o|=v;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;v=a,a=v.next,v.next=null,i.lastBaseUpdate=v,i.shared.pending=null}}while(1);if(d===null&&(u=h),i.baseState=u,i.firstBaseUpdate=f,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);rc|=o,e.lanes=o,e.memoizedState=h}}function gR(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(ce(191,i));i.call(r)}}}var XF=new q2.Component().refs;function ox(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:fn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var m0={isMounted:function(e){return(e=e._reactInternals)?cc(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=jr(),i=Rl(e),s=pa(r,i);s.payload=t,n!=null&&(s.callback=n),t=kl(e,s,i),t!==null&&(Ds(t,e,i,r),Gg(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=jr(),i=Rl(e),s=pa(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=kl(e,s,i),t!==null&&(Ds(t,e,i,r),Gg(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jr(),r=Rl(e),i=pa(n,r);i.tag=2,t!=null&&(i.callback=t),t=kl(e,i,r),t!==null&&(Ds(t,e,r,n),Gg(t,e,r))}};function _R(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Hp(n,r)||!Hp(i,s):!0}function JF(e,t,n){var r=!1,i=Ul,s=t.contextType;return typeof s=="object"&&s!==null?s=cs(s):(i=ii(t)?ec:Er.current,r=t.contextTypes,s=(r=r!=null)?sd(e,i):Ul),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=m0,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function yR(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&m0.enqueueReplaceState(t,t.state,null)}function ax(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=XF,YP(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=cs(s):(s=ii(t)?ec:Er.current,i.context=sd(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ox(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&m0.enqueueReplaceState(i,i.state,null),H_(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Fh(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(ce(309));var r=n.stateNode}if(!r)throw Error(ce(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;a===XF&&(a=i.refs={}),o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(ce(284));if(!n._owner)throw Error(ce(290,e))}return e}function ig(e,t){throw e=Object.prototype.toString.call(t),Error(ce(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wR(e){var t=e._init;return t(e._payload)}function QF(e){function t(S,_){if(e){var b=S.deletions;b===null?(S.deletions=[_],S.flags|=16):b.push(_)}}function n(S,_){if(!e)return null;for(;_!==null;)t(S,_),_=_.sibling;return null}function r(S,_){for(S=new Map;_!==null;)_.key!==null?S.set(_.key,_):S.set(_.index,_),_=_.sibling;return S}function i(S,_){return S=Il(S,_),S.index=0,S.sibling=null,S}function s(S,_,b){return S.index=b,e?(b=S.alternate,b!==null?(b=b.index,b<_?(S.flags|=2,_):b):(S.flags|=2,_)):(S.flags|=1048576,_)}function o(S){return e&&S.alternate===null&&(S.flags|=2),S}function a(S,_,b,O){return _===null||_.tag!==6?(_=lS(b,S.mode,O),_.return=S,_):(_=i(_,b),_.return=S,_)}function u(S,_,b,O){var I=b.type;return I===pf?d(S,_,b.props.children,O,b.key):_!==null&&(_.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===al&&wR(I)===_.type)?(O=i(_,b.props),O.ref=Fh(S,_,b),O.return=S,O):(O=Qg(b.type,b.key,b.props,null,S.mode,O),O.ref=Fh(S,_,b),O.return=S,O)}function f(S,_,b,O){return _===null||_.tag!==4||_.stateNode.containerInfo!==b.containerInfo||_.stateNode.implementation!==b.implementation?(_=uS(b,S.mode,O),_.return=S,_):(_=i(_,b.children||[]),_.return=S,_)}function d(S,_,b,O,I){return _===null||_.tag!==7?(_=Hu(b,S.mode,O,I),_.return=S,_):(_=i(_,b),_.return=S,_)}function h(S,_,b){if(typeof _=="string"&&_!==""||typeof _=="number")return _=lS(""+_,S.mode,b),_.return=S,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ym:return b=Qg(_.type,_.key,_.props,null,S.mode,b),b.ref=Fh(S,null,_),b.return=S,b;case hf:return _=uS(_,S.mode,b),_.return=S,_;case al:var O=_._init;return h(S,O(_._payload),b)}if(ep(_)||Rh(_))return _=Hu(_,S.mode,b,null),_.return=S,_;ig(S,_)}return null}function v(S,_,b,O){var I=_!==null?_.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return I!==null?null:a(S,_,""+b,O);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ym:return b.key===I?u(S,_,b,O):null;case hf:return b.key===I?f(S,_,b,O):null;case al:return I=b._init,v(S,_,I(b._payload),O)}if(ep(b)||Rh(b))return I!==null?null:d(S,_,b,O,null);ig(S,b)}return null}function m(S,_,b,O,I){if(typeof O=="string"&&O!==""||typeof O=="number")return S=S.get(b)||null,a(_,S,""+O,I);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Ym:return S=S.get(O.key===null?b:O.key)||null,u(_,S,O,I);case hf:return S=S.get(O.key===null?b:O.key)||null,f(_,S,O,I);case al:var A=O._init;return m(S,_,b,A(O._payload),I)}if(ep(O)||Rh(O))return S=S.get(b)||null,d(_,S,O,I,null);ig(_,O)}return null}function y(S,_,b,O){for(var I=null,A=null,C=_,P=_=0,M=null;C!==null&&P<b.length;P++){C.index>P?(M=C,C=null):M=C.sibling;var D=v(S,C,b[P],O);if(D===null){C===null&&(C=M);break}e&&C&&D.alternate===null&&t(S,C),_=s(D,_,P),A===null?I=D:A.sibling=D,A=D,C=M}if(P===b.length)return n(S,C),on&&Cu(S,P),I;if(C===null){for(;P<b.length;P++)C=h(S,b[P],O),C!==null&&(_=s(C,_,P),A===null?I=C:A.sibling=C,A=C);return on&&Cu(S,P),I}for(C=r(S,C);P<b.length;P++)M=m(C,S,P,b[P],O),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?P:M.key),_=s(M,_,P),A===null?I=M:A.sibling=M,A=M);return e&&C.forEach(function(V){return t(S,V)}),on&&Cu(S,P),I}function w(S,_,b,O){var I=Rh(b);if(typeof I!="function")throw Error(ce(150));if(b=I.call(b),b==null)throw Error(ce(151));for(var A=I=null,C=_,P=_=0,M=null,D=b.next();C!==null&&!D.done;P++,D=b.next()){C.index>P?(M=C,C=null):M=C.sibling;var V=v(S,C,D.value,O);if(V===null){C===null&&(C=M);break}e&&C&&V.alternate===null&&t(S,C),_=s(V,_,P),A===null?I=V:A.sibling=V,A=V,C=M}if(D.done)return n(S,C),on&&Cu(S,P),I;if(C===null){for(;!D.done;P++,D=b.next())D=h(S,D.value,O),D!==null&&(_=s(D,_,P),A===null?I=D:A.sibling=D,A=D);return on&&Cu(S,P),I}for(C=r(S,C);!D.done;P++,D=b.next())D=m(C,S,P,D.value,O),D!==null&&(e&&D.alternate!==null&&C.delete(D.key===null?P:D.key),_=s(D,_,P),A===null?I=D:A.sibling=D,A=D);return e&&C.forEach(function(Q){return t(S,Q)}),on&&Cu(S,P),I}function E(S,_,b,O){if(typeof b=="object"&&b!==null&&b.type===pf&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ym:e:{for(var I=b.key,A=_;A!==null;){if(A.key===I){if(I=b.type,I===pf){if(A.tag===7){n(S,A.sibling),_=i(A,b.props.children),_.return=S,S=_;break e}}else if(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===al&&wR(I)===A.type){n(S,A.sibling),_=i(A,b.props),_.ref=Fh(S,A,b),_.return=S,S=_;break e}n(S,A);break}else t(S,A);A=A.sibling}b.type===pf?(_=Hu(b.props.children,S.mode,O,b.key),_.return=S,S=_):(O=Qg(b.type,b.key,b.props,null,S.mode,O),O.ref=Fh(S,_,b),O.return=S,S=O)}return o(S);case hf:e:{for(A=b.key;_!==null;){if(_.key===A)if(_.tag===4&&_.stateNode.containerInfo===b.containerInfo&&_.stateNode.implementation===b.implementation){n(S,_.sibling),_=i(_,b.children||[]),_.return=S,S=_;break e}else{n(S,_);break}else t(S,_);_=_.sibling}_=uS(b,S.mode,O),_.return=S,S=_}return o(S);case al:return A=b._init,E(S,_,A(b._payload),O)}if(ep(b))return y(S,_,b,O);if(Rh(b))return w(S,_,b,O);ig(S,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,_!==null&&_.tag===6?(n(S,_.sibling),_=i(_,b),_.return=S,S=_):(n(S,_),_=lS(b,S.mode,O),_.return=S,S=_),o(S)):n(S,_)}return E}var ad=QF(!0),ZF=QF(!1),Iv={},wo=zl(Iv),Kp=zl(Iv),Xp=zl(Iv);function $u(e){if(e===Iv)throw Error(ce(174));return e}function qP(e,t){switch(Kt(Xp,t),Kt(Kp,e),Kt(wo,Iv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bb(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bb(t,e)}en(wo),Kt(wo,t)}function ld(){en(wo),en(Kp),en(Xp)}function eN(e){$u(Xp.current);var t=$u(wo.current),n=Bb(t,e.type);t!==n&&(Kt(Kp,e),Kt(wo,n))}function KP(e){Kp.current===e&&(en(wo),en(Kp))}var ln=zl(0);function G_(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nS=[];function XP(){for(var e=0;e<nS.length;e++)nS[e]._workInProgressVersionPrimary=null;nS.length=0}var Yg=Ma.ReactCurrentDispatcher,rS=Ma.ReactCurrentBatchConfig,nc=0,cn=null,Dn=null,qn=null,Y_=!1,vp=!1,Jp=0,nq=0;function vr(){throw Error(ce(321))}function JP(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ns(e[n],t[n]))return!1;return!0}function QP(e,t,n,r,i,s){if(nc=s,cn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yg.current=e===null||e.memoizedState===null?oq:aq,e=n(r,i),vp){s=0;do{if(vp=!1,Jp=0,25<=s)throw Error(ce(301));s+=1,qn=Dn=null,t.updateQueue=null,Yg.current=lq,e=n(r,i)}while(vp)}if(Yg.current=q_,t=Dn!==null&&Dn.next!==null,nc=0,qn=Dn=cn=null,Y_=!1,t)throw Error(ce(300));return e}function ZP(){var e=Jp!==0;return Jp=0,e}function io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qn===null?cn.memoizedState=qn=e:qn=qn.next=e,qn}function fs(){if(Dn===null){var e=cn.alternate;e=e!==null?e.memoizedState:null}else e=Dn.next;var t=qn===null?cn.memoizedState:qn.next;if(t!==null)qn=t,Dn=e;else{if(e===null)throw Error(ce(310));Dn=e,e={memoizedState:Dn.memoizedState,baseState:Dn.baseState,baseQueue:Dn.baseQueue,queue:Dn.queue,next:null},qn===null?cn.memoizedState=qn=e:qn=qn.next=e}return qn}function Qp(e,t){return typeof t=="function"?t(e):t}function iS(e){var t=fs(),n=t.queue;if(n===null)throw Error(ce(311));n.lastRenderedReducer=e;var r=Dn,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,u=null,f=s;do{var d=f.lane;if((nc&d)===d)u!==null&&(u=u.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var h={lane:d,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};u===null?(a=u=h,o=r):u=u.next=h,cn.lanes|=d,rc|=d}f=f.next}while(f!==null&&f!==s);u===null?o=r:u.next=a,Ns(r,t.memoizedState)||(ti=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,cn.lanes|=s,rc|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function sS(e){var t=fs(),n=t.queue;if(n===null)throw Error(ce(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Ns(s,t.memoizedState)||(ti=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function tN(){}function nN(e,t){var n=cn,r=fs(),i=t(),s=!Ns(r.memoizedState,i);if(s&&(r.memoizedState=i,ti=!0),r=r.queue,eO(sN.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||qn!==null&&qn.memoizedState.tag&1){if(n.flags|=2048,Zp(9,iN.bind(null,n,r,i,t),void 0,null),Kn===null)throw Error(ce(349));nc&30||rN(n,t,i)}return i}function rN(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=cn.updateQueue,t===null?(t={lastEffect:null,stores:null},cn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function iN(e,t,n,r){t.value=n,t.getSnapshot=r,oN(t)&&aN(e)}function sN(e,t,n){return n(function(){oN(t)&&aN(e)})}function oN(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ns(e,n)}catch{return!0}}function aN(e){var t=Oa(e,1);t!==null&&Ds(t,e,1,-1)}function SR(e){var t=io();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qp,lastRenderedState:e},t.queue=e,e=e.dispatch=sq.bind(null,cn,e),[t.memoizedState,e]}function Zp(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=cn.updateQueue,t===null?(t={lastEffect:null,stores:null},cn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function lN(){return fs().memoizedState}function qg(e,t,n,r){var i=io();cn.flags|=e,i.memoizedState=Zp(1|t,n,void 0,r===void 0?null:r)}function g0(e,t,n,r){var i=fs();r=r===void 0?null:r;var s=void 0;if(Dn!==null){var o=Dn.memoizedState;if(s=o.destroy,r!==null&&JP(r,o.deps)){i.memoizedState=Zp(t,n,s,r);return}}cn.flags|=e,i.memoizedState=Zp(1|t,n,s,r)}function bR(e,t){return qg(8390656,8,e,t)}function eO(e,t){return g0(2048,8,e,t)}function uN(e,t){return g0(4,2,e,t)}function cN(e,t){return g0(4,4,e,t)}function fN(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dN(e,t,n){return n=n!=null?n.concat([e]):null,g0(4,4,fN.bind(null,t,e),n)}function tO(){}function hN(e,t){var n=fs();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&JP(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pN(e,t){var n=fs();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&JP(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function vN(e,t,n){return nc&21?(Ns(n,t)||(n=_F(),cn.lanes|=n,rc|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ti=!0),e.memoizedState=n)}function rq(e,t){var n=Ut;Ut=n!==0&&4>n?n:4,e(!0);var r=rS.transition;rS.transition={};try{e(!1),t()}finally{Ut=n,rS.transition=r}}function mN(){return fs().memoizedState}function iq(e,t,n){var r=Rl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gN(e))_N(t,n);else if(n=qF(e,t,n,r),n!==null){var i=jr();Ds(n,e,r,i),yN(n,t,r)}}function sq(e,t,n){var r=Rl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gN(e))_N(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Ns(a,o)){var u=t.interleaved;u===null?(i.next=i,GP(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=qF(e,t,i,r),n!==null&&(i=jr(),Ds(n,e,r,i),yN(n,t,r))}}function gN(e){var t=e.alternate;return e===cn||t!==null&&t===cn}function _N(e,t){vp=Y_=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yN(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,IP(e,n)}}var q_={readContext:cs,useCallback:vr,useContext:vr,useEffect:vr,useImperativeHandle:vr,useInsertionEffect:vr,useLayoutEffect:vr,useMemo:vr,useReducer:vr,useRef:vr,useState:vr,useDebugValue:vr,useDeferredValue:vr,useTransition:vr,useMutableSource:vr,useSyncExternalStore:vr,useId:vr,unstable_isNewReconciler:!1},oq={readContext:cs,useCallback:function(e,t){return io().memoizedState=[e,t===void 0?null:t],e},useContext:cs,useEffect:bR,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qg(4194308,4,fN.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qg(4194308,4,e,t)},useInsertionEffect:function(e,t){return qg(4,2,e,t)},useMemo:function(e,t){var n=io();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=io();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=iq.bind(null,cn,e),[r.memoizedState,e]},useRef:function(e){var t=io();return e={current:e},t.memoizedState=e},useState:SR,useDebugValue:tO,useDeferredValue:function(e){return io().memoizedState=e},useTransition:function(){var e=SR(!1),t=e[0];return e=rq.bind(null,e[1]),io().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=cn,i=io();if(on){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),Kn===null)throw Error(ce(349));nc&30||rN(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,bR(sN.bind(null,r,s,e),[e]),r.flags|=2048,Zp(9,iN.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=io(),t=Kn.identifierPrefix;if(on){var n=ca,r=ua;n=(r&~(1<<32-Ms(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jp++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=nq++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},aq={readContext:cs,useCallback:hN,useContext:cs,useEffect:eO,useImperativeHandle:dN,useInsertionEffect:uN,useLayoutEffect:cN,useMemo:pN,useReducer:iS,useRef:lN,useState:function(){return iS(Qp)},useDebugValue:tO,useDeferredValue:function(e){var t=fs();return vN(t,Dn.memoizedState,e)},useTransition:function(){var e=iS(Qp)[0],t=fs().memoizedState;return[e,t]},useMutableSource:tN,useSyncExternalStore:nN,useId:mN,unstable_isNewReconciler:!1},lq={readContext:cs,useCallback:hN,useContext:cs,useEffect:eO,useImperativeHandle:dN,useInsertionEffect:uN,useLayoutEffect:cN,useMemo:pN,useReducer:sS,useRef:lN,useState:function(){return sS(Qp)},useDebugValue:tO,useDeferredValue:function(e){var t=fs();return Dn===null?t.memoizedState=e:vN(t,Dn.memoizedState,e)},useTransition:function(){var e=sS(Qp)[0],t=fs().memoizedState;return[e,t]},useMutableSource:tN,useSyncExternalStore:nN,useId:mN,unstable_isNewReconciler:!1};function ud(e,t){try{var n="",r=t;do n+=FY(r),r=r.return;while(r);var i=n}catch(s){i=`
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function oS(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function lx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var uq=typeof WeakMap=="function"?WeakMap:Map;function wN(e,t,n){n=pa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){X_||(X_=!0,_x=r),lx(e,t)},n}function SN(e,t,n){n=pa(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){lx(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){lx(e,t),typeof r!="function"&&(Al===null?Al=new Set([this]):Al.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function xR(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new uq;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=xq.bind(null,e,t,n),t.then(e,e))}function ER(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function PR(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=pa(-1,1),t.tag=2,kl(n,t,1))),n.lanes|=1),e)}var cq=Ma.ReactCurrentOwner,ti=!1;function Br(e,t,n,r){t.child=e===null?ZF(t,null,n,r):ad(t,e.child,n,r)}function OR(e,t,n,r,i){n=n.render;var s=t.ref;return Uf(t,i),r=QP(e,t,n,r,s,i),n=ZP(),e!==null&&!ti?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ta(e,t,i)):(on&&n&&UP(t),t.flags|=1,Br(e,t,r,i),t.child)}function TR(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!uO(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,bN(e,t,s,r,i)):(e=Qg(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Hp,n(o,r)&&e.ref===t.ref)return Ta(e,t,i)}return t.flags|=1,e=Il(s,r),e.ref=t.ref,e.return=t,t.child=e}function bN(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Hp(s,r)&&e.ref===t.ref)if(ti=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(ti=!0);else return t.lanes=e.lanes,Ta(e,t,i)}return ux(e,t,n,r,i)}function xN(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Kt(Ef,yi),yi|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Kt(Ef,yi),yi|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Kt(Ef,yi),yi|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Kt(Ef,yi),yi|=r;return Br(e,t,i,n),t.child}function EN(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ux(e,t,n,r,i){var s=ii(n)?ec:Er.current;return s=sd(t,s),Uf(t,i),n=QP(e,t,n,r,s,i),r=ZP(),e!==null&&!ti?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ta(e,t,i)):(on&&r&&UP(t),t.flags|=1,Br(e,t,n,i),t.child)}function CR(e,t,n,r,i){if(ii(n)){var s=!0;U_(t)}else s=!1;if(Uf(t,i),t.stateNode===null)Kg(e,t),JF(t,n,r),ax(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var u=o.context,f=n.contextType;typeof f=="object"&&f!==null?f=cs(f):(f=ii(n)?ec:Er.current,f=sd(t,f));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||u!==f)&&yR(t,o,r,f),ll=!1;var v=t.memoizedState;o.state=v,H_(t,r,o,i),u=t.memoizedState,a!==r||v!==u||ri.current||ll?(typeof d=="function"&&(ox(t,n,d,r),u=t.memoizedState),(a=ll||_R(t,n,a,r,v,u,f))?(h||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=f,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,KF(e,t),a=t.memoizedProps,f=t.type===t.elementType?a:Ps(t.type,a),o.props=f,h=t.pendingProps,v=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=cs(u):(u=ii(n)?ec:Er.current,u=sd(t,u));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||v!==u)&&yR(t,o,r,u),ll=!1,v=t.memoizedState,o.state=v,H_(t,r,o,i);var y=t.memoizedState;a!==h||v!==y||ri.current||ll?(typeof m=="function"&&(ox(t,n,m,r),y=t.memoizedState),(f=ll||_R(t,n,f,r,v,y,u)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=u,r=f):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&v===e.memoizedState||(t.flags|=1024),r=!1)}return cx(e,t,n,r,s,i)}function cx(e,t,n,r,i,s){EN(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&hR(t,n,!1),Ta(e,t,s);r=t.stateNode,cq.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ad(t,e.child,null,s),t.child=ad(t,null,a,s)):Br(e,t,a,s),t.memoizedState=r.state,i&&hR(t,n,!0),t.child}function PN(e){var t=e.stateNode;t.pendingContext?dR(e,t.pendingContext,t.pendingContext!==t.context):t.context&&dR(e,t.context,!1),qP(e,t.containerInfo)}function kR(e,t,n,r,i){return od(),jP(i),t.flags|=256,Br(e,t,n,r),t.child}var fx={dehydrated:null,treeContext:null,retryLane:0};function dx(e){return{baseLanes:e,cachePool:null,transitions:null}}function ON(e,t,n){var r=t.pendingProps,i=ln.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Kt(ln,i&1),e===null)return ix(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=w0(o,r,0,null),e=Hu(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=dx(n),t.memoizedState=fx,e):nO(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return fq(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Il(i,u),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Il(a,s):(s=Hu(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?dx(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=fx,r}return s=e.child,e=s.sibling,r=Il(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function nO(e,t){return t=w0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function sg(e,t,n,r){return r!==null&&jP(r),ad(t,e.child,null,n),e=nO(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fq(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=oS(Error(ce(422))),sg(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=w0({mode:"visible",children:r.children},i,0,null),s=Hu(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&ad(t,e.child,null,o),t.child.memoizedState=dx(o),t.memoizedState=fx,s);if(!(t.mode&1))return sg(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(ce(419)),r=oS(s,r,void 0),sg(e,t,o,r)}if(a=(o&e.childLanes)!==0,ti||a){if(r=Kn,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Oa(e,i),Ds(r,e,i,-1))}return lO(),r=oS(Error(ce(421))),sg(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Eq.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,xi=Cl(i.nextSibling),Pi=t,on=!0,ks=null,e!==null&&(Xi[Ji++]=ua,Xi[Ji++]=ca,Xi[Ji++]=tc,ua=e.id,ca=e.overflow,tc=t),t=nO(t,r.children),t.flags|=4096,t)}function AR(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sx(e.return,t,n)}function aS(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function TN(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Br(e,t,r.children,n),r=ln.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&AR(e,n,t);else if(e.tag===19)AR(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Kt(ln,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&G_(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),aS(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&G_(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}aS(t,!0,n,null,s);break;case"together":aS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Kg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ta(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),rc|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ce(153));if(t.child!==null){for(e=t.child,n=Il(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Il(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dq(e,t,n){switch(t.tag){case 3:PN(t),od();break;case 5:eN(t);break;case 1:ii(t.type)&&U_(t);break;case 4:qP(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Kt(W_,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Kt(ln,ln.current&1),t.flags|=128,null):n&t.child.childLanes?ON(e,t,n):(Kt(ln,ln.current&1),e=Ta(e,t,n),e!==null?e.sibling:null);Kt(ln,ln.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return TN(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Kt(ln,ln.current),r)break;return null;case 22:case 23:return t.lanes=0,xN(e,t,n)}return Ta(e,t,n)}var CN,hx,kN,AN;CN=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};hx=function(){};kN=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,$u(wo.current);var s=null;switch(n){case"input":i=Lb(e,i),r=Lb(e,r),s=[];break;case"select":i=fn({},i,{value:void 0}),r=fn({},r,{value:void 0}),s=[];break;case"textarea":i=$b(e,i),r=$b(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=$_)}Ub(n,r);var o;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var a=i[f];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&($p.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var u=r[f];if(a=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&u!==a&&(u!=null||a!=null))if(f==="style")if(a){for(o in a)!a.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&a[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(f,n)),n=u;else f==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(s=s||[]).push(f,u)):f==="children"?typeof u!="string"&&typeof u!="number"||(s=s||[]).push(f,""+u):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&($p.hasOwnProperty(f)?(u!=null&&f==="onScroll"&&Jt("scroll",e),s||a===u||(s=[])):(s=s||[]).push(f,u))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}};AN=function(e,t,n,r){n!==r&&(t.flags|=4)};function Nh(e,t){if(!on)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function mr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hq(e,t,n){var r=t.pendingProps;switch(VP(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mr(t),null;case 1:return ii(t.type)&&B_(),mr(t),null;case 3:return r=t.stateNode,ld(),en(ri),en(Er),XP(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(rg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ks!==null&&(Sx(ks),ks=null))),hx(e,t),mr(t),null;case 5:KP(t);var i=$u(Xp.current);if(n=t.type,e!==null&&t.stateNode!=null)kN(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ce(166));return mr(t),null}if(e=$u(wo.current),rg(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[co]=t,r[qp]=s,e=(t.mode&1)!==0,n){case"dialog":Jt("cancel",r),Jt("close",r);break;case"iframe":case"object":case"embed":Jt("load",r);break;case"video":case"audio":for(i=0;i<np.length;i++)Jt(np[i],r);break;case"source":Jt("error",r);break;case"img":case"image":case"link":Jt("error",r),Jt("load",r);break;case"details":Jt("toggle",r);break;case"input":BA(r,s),Jt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Jt("invalid",r);break;case"textarea":VA(r,s),Jt("invalid",r)}Ub(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&ng(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&ng(r.textContent,a,e),i=["children",""+a]):$p.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Jt("scroll",r)}switch(n){case"input":qm(r),UA(r,s,!0);break;case"textarea":qm(r),jA(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=$_)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=rF(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[co]=t,e[qp]=r,CN(e,t,!1,!1),t.stateNode=e;e:{switch(o=Vb(n,r),n){case"dialog":Jt("cancel",e),Jt("close",e),i=r;break;case"iframe":case"object":case"embed":Jt("load",e),i=r;break;case"video":case"audio":for(i=0;i<np.length;i++)Jt(np[i],e);i=r;break;case"source":Jt("error",e),i=r;break;case"img":case"image":case"link":Jt("error",e),Jt("load",e),i=r;break;case"details":Jt("toggle",e),i=r;break;case"input":BA(e,r),i=Lb(e,r),Jt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=fn({},r,{value:void 0}),Jt("invalid",e);break;case"textarea":VA(e,r),i=$b(e,r),Jt("invalid",e);break;default:i=r}Ub(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var u=a[s];s==="style"?oF(e,u):s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&iF(e,u)):s==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Bp(e,u):typeof u=="number"&&Bp(e,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&($p.hasOwnProperty(s)?u!=null&&s==="onScroll"&&Jt("scroll",e):u!=null&&OP(e,s,u,o))}switch(n){case"input":qm(e),UA(e,r,!1);break;case"textarea":qm(e),jA(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Bl(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Ff(e,!!r.multiple,s,!1):r.defaultValue!=null&&Ff(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=$_)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return mr(t),null;case 6:if(e&&t.stateNode!=null)AN(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ce(166));if(n=$u(Xp.current),$u(wo.current),rg(t)){if(r=t.stateNode,n=t.memoizedProps,r[co]=t,(s=r.nodeValue!==n)&&(e=Pi,e!==null))switch(e.tag){case 3:ng(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ng(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[co]=t,t.stateNode=r}return mr(t),null;case 13:if(en(ln),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(on&&xi!==null&&t.mode&1&&!(t.flags&128))YF(),od(),t.flags|=98560,s=!1;else if(s=rg(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(ce(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(ce(317));s[co]=t}else od(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;mr(t),s=!1}else ks!==null&&(Sx(ks),ks=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ln.current&1?Nn===0&&(Nn=3):lO())),t.updateQueue!==null&&(t.flags|=4),mr(t),null);case 4:return ld(),hx(e,t),e===null&&Gp(t.stateNode.containerInfo),mr(t),null;case 10:return HP(t.type._context),mr(t),null;case 17:return ii(t.type)&&B_(),mr(t),null;case 19:if(en(ln),s=t.memoizedState,s===null)return mr(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Nh(s,!1);else{if(Nn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=G_(e),o!==null){for(t.flags|=128,Nh(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Kt(ln,ln.current&1|2),t.child}e=e.sibling}s.tail!==null&&Sn()>cd&&(t.flags|=128,r=!0,Nh(s,!1),t.lanes=4194304)}else{if(!r)if(e=G_(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Nh(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!on)return mr(t),null}else 2*Sn()-s.renderingStartTime>cd&&n!==1073741824&&(t.flags|=128,r=!0,Nh(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Sn(),t.sibling=null,n=ln.current,Kt(ln,r?n&1|2:n&1),t):(mr(t),null);case 22:case 23:return aO(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?yi&1073741824&&(mr(t),t.subtreeFlags&6&&(t.flags|=8192)):mr(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function pq(e,t){switch(VP(t),t.tag){case 1:return ii(t.type)&&B_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ld(),en(ri),en(Er),XP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return KP(t),null;case 13:if(en(ln),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));od()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return en(ln),null;case 4:return ld(),null;case 10:return HP(t.type._context),null;case 22:case 23:return aO(),null;case 24:return null;default:return null}}var og=!1,Sr=!1,vq=typeof WeakSet=="function"?WeakSet:Set,xe=null;function xf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){pn(e,t,r)}else n.current=null}function px(e,t,n){try{n()}catch(r){pn(e,t,r)}}var RR=!1;function mq(e,t){if(Jb=L_,e=DF(),BP(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,u=-1,f=0,d=0,h=e,v=null;t:for(;;){for(var m;h!==n||i!==0&&h.nodeType!==3||(a=o+i),h!==s||r!==0&&h.nodeType!==3||(u=o+r),h.nodeType===3&&(o+=h.nodeValue.length),(m=h.firstChild)!==null;)v=h,h=m;for(;;){if(h===e)break t;if(v===n&&++f===i&&(a=o),v===s&&++d===r&&(u=o),(m=h.nextSibling)!==null)break;h=v,v=h.parentNode}h=m}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qb={focusedElem:e,selectionRange:n},L_=!1,xe=t;xe!==null;)if(t=xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xe=e;else for(;xe!==null;){t=xe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,E=y.memoizedState,S=t.stateNode,_=S.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ps(t.type,w),E);S.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(O){pn(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,xe=e;break}xe=t.return}return y=RR,RR=!1,y}function mp(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&px(t,n,s)}i=i.next}while(i!==r)}}function _0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vx(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function RN(e){var t=e.alternate;t!==null&&(e.alternate=null,RN(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[co],delete t[qp],delete t[tx],delete t[Q9],delete t[Z9])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function IN(e){return e.tag===5||e.tag===3||e.tag===4}function IR(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||IN(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function mx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$_));else if(r!==4&&(e=e.child,e!==null))for(mx(e,t,n),e=e.sibling;e!==null;)mx(e,t,n),e=e.sibling}function gx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(gx(e,t,n),e=e.sibling;e!==null;)gx(e,t,n),e=e.sibling}var tr=null,Ts=!1;function rl(e,t,n){for(n=n.child;n!==null;)MN(e,t,n),n=n.sibling}function MN(e,t,n){if(yo&&typeof yo.onCommitFiberUnmount=="function")try{yo.onCommitFiberUnmount(c0,n)}catch{}switch(n.tag){case 5:Sr||xf(n,t);case 6:var r=tr,i=Ts;tr=null,rl(e,t,n),tr=r,Ts=i,tr!==null&&(Ts?(e=tr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):tr.removeChild(n.stateNode));break;case 18:tr!==null&&(Ts?(e=tr,n=n.stateNode,e.nodeType===8?eS(e.parentNode,n):e.nodeType===1&&eS(e,n),Wp(e)):eS(tr,n.stateNode));break;case 4:r=tr,i=Ts,tr=n.stateNode.containerInfo,Ts=!0,rl(e,t,n),tr=r,Ts=i;break;case 0:case 11:case 14:case 15:if(!Sr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&px(n,t,o),i=i.next}while(i!==r)}rl(e,t,n);break;case 1:if(!Sr&&(xf(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){pn(n,t,a)}rl(e,t,n);break;case 21:rl(e,t,n);break;case 22:n.mode&1?(Sr=(r=Sr)||n.memoizedState!==null,rl(e,t,n),Sr=r):rl(e,t,n);break;default:rl(e,t,n)}}function MR(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vq),t.forEach(function(r){var i=Pq.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xs(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:tr=a.stateNode,Ts=!1;break e;case 3:tr=a.stateNode.containerInfo,Ts=!0;break e;case 4:tr=a.stateNode.containerInfo,Ts=!0;break e}a=a.return}if(tr===null)throw Error(ce(160));MN(s,o,i),tr=null,Ts=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(f){pn(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)DN(t,e),t=t.sibling}function DN(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xs(t,e),eo(e),r&4){try{mp(3,e,e.return),_0(3,e)}catch(w){pn(e,e.return,w)}try{mp(5,e,e.return)}catch(w){pn(e,e.return,w)}}break;case 1:xs(t,e),eo(e),r&512&&n!==null&&xf(n,n.return);break;case 5:if(xs(t,e),eo(e),r&512&&n!==null&&xf(n,n.return),e.flags&32){var i=e.stateNode;try{Bp(i,"")}catch(w){pn(e,e.return,w)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&tF(i,s),Vb(a,o);var f=Vb(a,s);for(o=0;o<u.length;o+=2){var d=u[o],h=u[o+1];d==="style"?oF(i,h):d==="dangerouslySetInnerHTML"?iF(i,h):d==="children"?Bp(i,h):OP(i,d,h,f)}switch(a){case"input":Fb(i,s);break;case"textarea":nF(i,s);break;case"select":var v=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?Ff(i,!!s.multiple,m,!1):v!==!!s.multiple&&(s.defaultValue!=null?Ff(i,!!s.multiple,s.defaultValue,!0):Ff(i,!!s.multiple,s.multiple?[]:"",!1))}i[qp]=s}catch(w){pn(e,e.return,w)}}break;case 6:if(xs(t,e),eo(e),r&4){if(e.stateNode===null)throw Error(ce(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(w){pn(e,e.return,w)}}break;case 3:if(xs(t,e),eo(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wp(t.containerInfo)}catch(w){pn(e,e.return,w)}break;case 4:xs(t,e),eo(e);break;case 13:xs(t,e),eo(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(sO=Sn())),r&4&&MR(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Sr=(f=Sr)||d,xs(t,e),Sr=f):xs(t,e),eo(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!d&&e.mode&1)for(xe=e,d=e.child;d!==null;){for(h=xe=d;xe!==null;){switch(v=xe,m=v.child,v.tag){case 0:case 11:case 14:case 15:mp(4,v,v.return);break;case 1:xf(v,v.return);var y=v.stateNode;if(typeof y.componentWillUnmount=="function"){r=v,n=v.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(w){pn(r,n,w)}}break;case 5:xf(v,v.return);break;case 22:if(v.memoizedState!==null){LR(h);continue}}m!==null?(m.return=v,xe=m):LR(h)}d=d.sibling}e:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,f?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=h.stateNode,u=h.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,a.style.display=sF("display",o))}catch(w){pn(e,e.return,w)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=f?"":h.memoizedProps}catch(w){pn(e,e.return,w)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:xs(t,e),eo(e),r&4&&MR(e);break;case 21:break;default:xs(t,e),eo(e)}}function eo(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(IN(n)){var r=n;break e}n=n.return}throw Error(ce(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Bp(i,""),r.flags&=-33);var s=IR(e);gx(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=IR(e);mx(e,a,o);break;default:throw Error(ce(161))}}catch(u){pn(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gq(e,t,n){xe=e,LN(e)}function LN(e,t,n){for(var r=(e.mode&1)!==0;xe!==null;){var i=xe,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||og;if(!o){var a=i.alternate,u=a!==null&&a.memoizedState!==null||Sr;a=og;var f=Sr;if(og=o,(Sr=u)&&!f)for(xe=i;xe!==null;)o=xe,u=o.child,o.tag===22&&o.memoizedState!==null?FR(i):u!==null?(u.return=o,xe=u):FR(i);for(;s!==null;)xe=s,LN(s),s=s.sibling;xe=i,og=a,Sr=f}DR(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,xe=s):DR(e)}}function DR(e){for(;xe!==null;){var t=xe;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Sr||_0(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Sr)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ps(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&gR(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}gR(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var d=f.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Wp(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ce(163))}Sr||t.flags&512&&vx(t)}catch(v){pn(t,t.return,v)}}if(t===e){xe=null;break}if(n=t.sibling,n!==null){n.return=t.return,xe=n;break}xe=t.return}}function LR(e){for(;xe!==null;){var t=xe;if(t===e){xe=null;break}var n=t.sibling;if(n!==null){n.return=t.return,xe=n;break}xe=t.return}}function FR(e){for(;xe!==null;){var t=xe;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{_0(4,t)}catch(u){pn(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){pn(t,i,u)}}var s=t.return;try{vx(t)}catch(u){pn(t,s,u)}break;case 5:var o=t.return;try{vx(t)}catch(u){pn(t,o,u)}}}catch(u){pn(t,t.return,u)}if(t===e){xe=null;break}var a=t.sibling;if(a!==null){a.return=t.return,xe=a;break}xe=t.return}}var _q=Math.ceil,K_=Ma.ReactCurrentDispatcher,rO=Ma.ReactCurrentOwner,ss=Ma.ReactCurrentBatchConfig,_t=0,Kn=null,Pn=null,lr=0,yi=0,Ef=zl(0),Nn=0,ev=null,rc=0,y0=0,iO=0,gp=null,ei=null,sO=0,cd=1/0,Zo=null,X_=!1,_x=null,Al=null,ag=!1,_l=null,J_=0,_p=0,yx=null,Xg=-1,Jg=0;function jr(){return _t&6?Sn():Xg!==-1?Xg:Xg=Sn()}function Rl(e){return e.mode&1?_t&2&&lr!==0?lr&-lr:tq.transition!==null?(Jg===0&&(Jg=_F()),Jg):(e=Ut,e!==0||(e=window.event,e=e===void 0?16:PF(e.type)),e):1}function Ds(e,t,n,r){if(50<_p)throw _p=0,yx=null,Error(ce(185));kv(e,n,r),(!(_t&2)||e!==Kn)&&(e===Kn&&(!(_t&2)&&(y0|=n),Nn===4&&ml(e,lr)),si(e,r),n===1&&_t===0&&!(t.mode&1)&&(cd=Sn()+500,v0&&Hl()))}function si(e,t){var n=e.callbackNode;t9(e,t);var r=D_(e,e===Kn?lr:0);if(r===0)n!==null&&HA(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&HA(n),t===1)e.tag===0?eq(NR.bind(null,e)):zF(NR.bind(null,e)),X9(function(){!(_t&6)&&Hl()}),n=null;else{switch(yF(r)){case 1:n=RP;break;case 4:n=mF;break;case 16:n=M_;break;case 536870912:n=gF;break;default:n=M_}n=WN(n,FN.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function FN(e,t){if(Xg=-1,Jg=0,_t&6)throw Error(ce(327));var n=e.callbackNode;if(Vf()&&e.callbackNode!==n)return null;var r=D_(e,e===Kn?lr:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Q_(e,r);else{t=r;var i=_t;_t|=2;var s=$N();(Kn!==e||lr!==t)&&(Zo=null,cd=Sn()+500,zu(e,t));do try{Sq();break}catch(a){NN(e,a)}while(1);zP(),K_.current=s,_t=i,Pn!==null?t=0:(Kn=null,lr=0,t=Nn)}if(t!==0){if(t===2&&(i=Gb(e),i!==0&&(r=i,t=wx(e,i))),t===1)throw n=ev,zu(e,0),ml(e,r),si(e,Sn()),n;if(t===6)ml(e,r);else{if(i=e.current.alternate,!(r&30)&&!yq(i)&&(t=Q_(e,r),t===2&&(s=Gb(e),s!==0&&(r=s,t=wx(e,s))),t===1))throw n=ev,zu(e,0),ml(e,r),si(e,Sn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(ce(345));case 2:ku(e,ei,Zo);break;case 3:if(ml(e,r),(r&130023424)===r&&(t=sO+500-Sn(),10<t)){if(D_(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){jr(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ex(ku.bind(null,e,ei,Zo),t);break}ku(e,ei,Zo);break;case 4:if(ml(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Ms(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=Sn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_q(r/1960))-r,10<r){e.timeoutHandle=ex(ku.bind(null,e,ei,Zo),r);break}ku(e,ei,Zo);break;case 5:ku(e,ei,Zo);break;default:throw Error(ce(329))}}}return si(e,Sn()),e.callbackNode===n?FN.bind(null,e):null}function wx(e,t){var n=gp;return e.current.memoizedState.isDehydrated&&(zu(e,t).flags|=256),e=Q_(e,t),e!==2&&(t=ei,ei=n,t!==null&&Sx(t)),e}function Sx(e){ei===null?ei=e:ei.push.apply(ei,e)}function yq(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Ns(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ml(e,t){for(t&=~iO,t&=~y0,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ms(t),r=1<<n;e[n]=-1,t&=~r}}function NR(e){if(_t&6)throw Error(ce(327));Vf();var t=D_(e,0);if(!(t&1))return si(e,Sn()),null;var n=Q_(e,t);if(e.tag!==0&&n===2){var r=Gb(e);r!==0&&(t=r,n=wx(e,r))}if(n===1)throw n=ev,zu(e,0),ml(e,t),si(e,Sn()),n;if(n===6)throw Error(ce(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,ei,Zo),si(e,Sn()),null}function oO(e,t){var n=_t;_t|=1;try{return e(t)}finally{_t=n,_t===0&&(cd=Sn()+500,v0&&Hl())}}function ic(e){_l!==null&&_l.tag===0&&!(_t&6)&&Vf();var t=_t;_t|=1;var n=ss.transition,r=Ut;try{if(ss.transition=null,Ut=1,e)return e()}finally{Ut=r,ss.transition=n,_t=t,!(_t&6)&&Hl()}}function aO(){yi=Ef.current,en(Ef)}function zu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,K9(n)),Pn!==null)for(n=Pn.return;n!==null;){var r=n;switch(VP(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&B_();break;case 3:ld(),en(ri),en(Er),XP();break;case 5:KP(r);break;case 4:ld();break;case 13:en(ln);break;case 19:en(ln);break;case 10:HP(r.type._context);break;case 22:case 23:aO()}n=n.return}if(Kn=e,Pn=e=Il(e.current,null),lr=yi=t,Nn=0,ev=null,iO=y0=rc=0,ei=gp=null,Nu!==null){for(t=0;t<Nu.length;t++)if(n=Nu[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Nu=null}return e}function NN(e,t){do{var n=Pn;try{if(zP(),Yg.current=q_,Y_){for(var r=cn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Y_=!1}if(nc=0,qn=Dn=cn=null,vp=!1,Jp=0,rO.current=null,n===null||n.return===null){Nn=1,ev=t,Pn=null;break}e:{var s=e,o=n.return,a=n,u=t;if(t=lr,a.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=u,d=a,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var v=d.alternate;v?(d.updateQueue=v.updateQueue,d.memoizedState=v.memoizedState,d.lanes=v.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=ER(o);if(m!==null){m.flags&=-257,PR(m,o,a,s,t),m.mode&1&&xR(s,f,t),t=m,u=f;var y=t.updateQueue;if(y===null){var w=new Set;w.add(u),t.updateQueue=w}else y.add(u);break e}else{if(!(t&1)){xR(s,f,t),lO();break e}u=Error(ce(426))}}else if(on&&a.mode&1){var E=ER(o);if(E!==null){!(E.flags&65536)&&(E.flags|=256),PR(E,o,a,s,t),jP(ud(u,a));break e}}s=u=ud(u,a),Nn!==4&&(Nn=2),gp===null?gp=[s]:gp.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var S=wN(s,u,t);mR(s,S);break e;case 1:a=u;var _=s.type,b=s.stateNode;if(!(s.flags&128)&&(typeof _.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Al===null||!Al.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t;var O=SN(s,a,t);mR(s,O);break e}}s=s.return}while(s!==null)}UN(n)}catch(I){t=I,Pn===n&&n!==null&&(Pn=n=n.return);continue}break}while(1)}function $N(){var e=K_.current;return K_.current=q_,e===null?q_:e}function lO(){(Nn===0||Nn===3||Nn===2)&&(Nn=4),Kn===null||!(rc&268435455)&&!(y0&268435455)||ml(Kn,lr)}function Q_(e,t){var n=_t;_t|=2;var r=$N();(Kn!==e||lr!==t)&&(Zo=null,zu(e,t));do try{wq();break}catch(i){NN(e,i)}while(1);if(zP(),_t=n,K_.current=r,Pn!==null)throw Error(ce(261));return Kn=null,lr=0,Nn}function wq(){for(;Pn!==null;)BN(Pn)}function Sq(){for(;Pn!==null&&!GY();)BN(Pn)}function BN(e){var t=jN(e.alternate,e,yi);e.memoizedProps=e.pendingProps,t===null?UN(e):Pn=t,rO.current=null}function UN(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=pq(n,t),n!==null){n.flags&=32767,Pn=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Nn=6,Pn=null;return}}else if(n=hq(n,t,yi),n!==null){Pn=n;return}if(t=t.sibling,t!==null){Pn=t;return}Pn=t=e}while(t!==null);Nn===0&&(Nn=5)}function ku(e,t,n){var r=Ut,i=ss.transition;try{ss.transition=null,Ut=1,bq(e,t,n,r)}finally{ss.transition=i,Ut=r}return null}function bq(e,t,n,r){do Vf();while(_l!==null);if(_t&6)throw Error(ce(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ce(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(n9(e,s),e===Kn&&(Pn=Kn=null,lr=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ag||(ag=!0,WN(M_,function(){return Vf(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=ss.transition,ss.transition=null;var o=Ut;Ut=1;var a=_t;_t|=4,rO.current=null,mq(e,n),DN(n,e),j9(Qb),L_=!!Jb,Qb=Jb=null,e.current=n,gq(n),YY(),_t=a,Ut=o,ss.transition=s}else e.current=n;if(ag&&(ag=!1,_l=e,J_=i),s=e.pendingLanes,s===0&&(Al=null),XY(n.stateNode),si(e,Sn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(X_)throw X_=!1,e=_x,_x=null,e;return J_&1&&e.tag!==0&&Vf(),s=e.pendingLanes,s&1?e===yx?_p++:(_p=0,yx=e):_p=0,Hl(),null}function Vf(){if(_l!==null){var e=yF(J_),t=ss.transition,n=Ut;try{if(ss.transition=null,Ut=16>e?16:e,_l===null)var r=!1;else{if(e=_l,_l=null,J_=0,_t&6)throw Error(ce(331));var i=_t;for(_t|=4,xe=e.current;xe!==null;){var s=xe,o=s.child;if(xe.flags&16){var a=s.deletions;if(a!==null){for(var u=0;u<a.length;u++){var f=a[u];for(xe=f;xe!==null;){var d=xe;switch(d.tag){case 0:case 11:case 15:mp(8,d,s)}var h=d.child;if(h!==null)h.return=d,xe=h;else for(;xe!==null;){d=xe;var v=d.sibling,m=d.return;if(RN(d),d===f){xe=null;break}if(v!==null){v.return=m,xe=v;break}xe=m}}}var y=s.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var E=w.sibling;w.sibling=null,w=E}while(w!==null)}}xe=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,xe=o;else e:for(;xe!==null;){if(s=xe,s.flags&2048)switch(s.tag){case 0:case 11:case 15:mp(9,s,s.return)}var S=s.sibling;if(S!==null){S.return=s.return,xe=S;break e}xe=s.return}}var _=e.current;for(xe=_;xe!==null;){o=xe;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,xe=b;else e:for(o=_;xe!==null;){if(a=xe,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:_0(9,a)}}catch(I){pn(a,a.return,I)}if(a===o){xe=null;break e}var O=a.sibling;if(O!==null){O.return=a.return,xe=O;break e}xe=a.return}}if(_t=i,Hl(),yo&&typeof yo.onPostCommitFiberRoot=="function")try{yo.onPostCommitFiberRoot(c0,e)}catch{}r=!0}return r}finally{Ut=n,ss.transition=t}}return!1}function $R(e,t,n){t=ud(n,t),t=wN(e,t,1),e=kl(e,t,1),t=jr(),e!==null&&(kv(e,1,t),si(e,t))}function pn(e,t,n){if(e.tag===3)$R(e,e,n);else for(;t!==null;){if(t.tag===3){$R(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Al===null||!Al.has(r))){e=ud(n,e),e=SN(t,e,1),t=kl(t,e,1),e=jr(),t!==null&&(kv(t,1,e),si(t,e));break}}t=t.return}}function xq(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=jr(),e.pingedLanes|=e.suspendedLanes&n,Kn===e&&(lr&n)===n&&(Nn===4||Nn===3&&(lr&130023424)===lr&&500>Sn()-sO?zu(e,0):iO|=n),si(e,t)}function VN(e,t){t===0&&(e.mode&1?(t=Jm,Jm<<=1,!(Jm&130023424)&&(Jm=4194304)):t=1);var n=jr();e=Oa(e,t),e!==null&&(kv(e,t,n),si(e,n))}function Eq(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),VN(e,n)}function Pq(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),VN(e,n)}var jN;jN=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ri.current)ti=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ti=!1,dq(e,t,n);ti=!!(e.flags&131072)}else ti=!1,on&&t.flags&1048576&&HF(t,j_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Kg(e,t),e=t.pendingProps;var i=sd(t,Er.current);Uf(t,n),i=QP(null,t,r,e,i,n);var s=ZP();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ii(r)?(s=!0,U_(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,YP(t),i.updater=m0,t.stateNode=i,i._reactInternals=t,ax(t,r,e,n),t=cx(null,t,r,!0,s,n)):(t.tag=0,on&&s&&UP(t),Br(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Kg(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Tq(r),e=Ps(r,e),i){case 0:t=ux(null,t,r,e,n);break e;case 1:t=CR(null,t,r,e,n);break e;case 11:t=OR(null,t,r,e,n);break e;case 14:t=TR(null,t,r,Ps(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ps(r,i),ux(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ps(r,i),CR(e,t,r,i,n);case 3:e:{if(PN(t),e===null)throw Error(ce(387));r=t.pendingProps,s=t.memoizedState,i=s.element,KF(e,t),H_(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=ud(Error(ce(423)),t),t=kR(e,t,r,n,i);break e}else if(r!==i){i=ud(Error(ce(424)),t),t=kR(e,t,r,n,i);break e}else for(xi=Cl(t.stateNode.containerInfo.firstChild),Pi=t,on=!0,ks=null,n=ZF(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(od(),r===i){t=Ta(e,t,n);break e}Br(e,t,r,n)}t=t.child}return t;case 5:return eN(t),e===null&&ix(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Zb(r,i)?o=null:s!==null&&Zb(r,s)&&(t.flags|=32),EN(e,t),Br(e,t,o,n),t.child;case 6:return e===null&&ix(t),null;case 13:return ON(e,t,n);case 4:return qP(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ad(t,null,r,n):Br(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ps(r,i),OR(e,t,r,i,n);case 7:return Br(e,t,t.pendingProps,n),t.child;case 8:return Br(e,t,t.pendingProps.children,n),t.child;case 12:return Br(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,Kt(W_,r._currentValue),r._currentValue=o,s!==null)if(Ns(s.value,o)){if(s.children===i.children&&!ri.current){t=Ta(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(s.tag===1){u=pa(-1,n&-n),u.tag=2;var f=s.updateQueue;if(f!==null){f=f.shared;var d=f.pending;d===null?u.next=u:(u.next=d.next,d.next=u),f.pending=u}}s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),sx(s.return,n,t),a.lanes|=n;break}u=u.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(ce(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),sx(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Br(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Uf(t,n),i=cs(i),r=r(i),t.flags|=1,Br(e,t,r,n),t.child;case 14:return r=t.type,i=Ps(r,t.pendingProps),i=Ps(r.type,i),TR(e,t,r,i,n);case 15:return bN(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ps(r,i),Kg(e,t),t.tag=1,ii(r)?(e=!0,U_(t)):e=!1,Uf(t,n),JF(t,r,i),ax(t,r,i,n),cx(null,t,r,!0,e,n);case 19:return TN(e,t,n);case 22:return xN(e,t,n)}throw Error(ce(156,t.tag))};function WN(e,t){return vF(e,t)}function Oq(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ts(e,t,n,r){return new Oq(e,t,n,r)}function uO(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tq(e){if(typeof e=="function")return uO(e)?1:0;if(e!=null){if(e=e.$$typeof,e===CP)return 11;if(e===kP)return 14}return 2}function Il(e,t){var n=e.alternate;return n===null?(n=ts(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qg(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")uO(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case pf:return Hu(n.children,i,s,t);case TP:o=8,i|=8;break;case Rb:return e=ts(12,n,t,i|2),e.elementType=Rb,e.lanes=s,e;case Ib:return e=ts(13,n,t,i),e.elementType=Ib,e.lanes=s,e;case Mb:return e=ts(19,n,t,i),e.elementType=Mb,e.lanes=s,e;case Q2:return w0(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X2:o=10;break e;case J2:o=9;break e;case CP:o=11;break e;case kP:o=14;break e;case al:o=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=ts(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Hu(e,t,n,r){return e=ts(7,e,r,t),e.lanes=n,e}function w0(e,t,n,r){return e=ts(22,e,r,t),e.elementType=Q2,e.lanes=n,e.stateNode={isHidden:!1},e}function lS(e,t,n){return e=ts(6,e,null,t),e.lanes=n,e}function uS(e,t,n){return t=ts(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cq(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ww(0),this.expirationTimes=Ww(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ww(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function cO(e,t,n,r,i,s,o,a,u){return e=new Cq(e,t,n,a,u),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ts(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},YP(s),e}function kq(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:hf,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function zN(e){if(!e)return Ul;e=e._reactInternals;e:{if(cc(e)!==e||e.tag!==1)throw Error(ce(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ii(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ce(171))}if(e.tag===1){var n=e.type;if(ii(n))return WF(e,n,t)}return t}function HN(e,t,n,r,i,s,o,a,u){return e=cO(n,r,!0,e,i,s,o,a,u),e.context=zN(null),n=e.current,r=jr(),i=Rl(n),s=pa(r,i),s.callback=t??null,kl(n,s,i),e.current.lanes=i,kv(e,i,r),si(e,r),e}function S0(e,t,n,r){var i=t.current,s=jr(),o=Rl(i);return n=zN(n),t.context===null?t.context=n:t.pendingContext=n,t=pa(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=kl(i,t,o),e!==null&&(Ds(e,i,o,s),Gg(e,i,o)),o}function Z_(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function BR(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fO(e,t){BR(e,t),(e=e.alternate)&&BR(e,t)}function Aq(){return null}var GN=typeof reportError=="function"?reportError:function(e){console.error(e)};function dO(e){this._internalRoot=e}b0.prototype.render=dO.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ce(409));S0(e,t,null,null)};b0.prototype.unmount=dO.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ic(function(){S0(null,e,null,null)}),t[Pa]=null}};function b0(e){this._internalRoot=e}b0.prototype.unstable_scheduleHydration=function(e){if(e){var t=bF();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vl.length&&t!==0&&t<vl[n].priority;n++);vl.splice(n,0,e),n===0&&EF(e)}};function hO(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function x0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function UR(){}function Rq(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var f=Z_(o);s.call(f)}}var o=HN(t,r,e,0,null,!1,!1,"",UR);return e._reactRootContainer=o,e[Pa]=o.current,Gp(e.nodeType===8?e.parentNode:e),ic(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var f=Z_(u);a.call(f)}}var u=cO(e,0,!1,null,null,!1,!1,"",UR);return e._reactRootContainer=u,e[Pa]=u.current,Gp(e.nodeType===8?e.parentNode:e),ic(function(){S0(t,u,n,r)}),u}function E0(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var u=Z_(o);a.call(u)}}S0(t,o,e,i)}else o=Rq(n,t,e,i,r);return Z_(o)}wF=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tp(t.pendingLanes);n!==0&&(IP(t,n|1),si(t,Sn()),!(_t&6)&&(cd=Sn()+500,Hl()))}break;case 13:ic(function(){var r=Oa(e,1);if(r!==null){var i=jr();Ds(r,e,1,i)}}),fO(e,1)}};MP=function(e){if(e.tag===13){var t=Oa(e,134217728);if(t!==null){var n=jr();Ds(t,e,134217728,n)}fO(e,134217728)}};SF=function(e){if(e.tag===13){var t=Rl(e),n=Oa(e,t);if(n!==null){var r=jr();Ds(n,e,t,r)}fO(e,t)}};bF=function(){return Ut};xF=function(e,t){var n=Ut;try{return Ut=e,t()}finally{Ut=n}};Wb=function(e,t,n){switch(t){case"input":if(Fb(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=p0(r);if(!i)throw Error(ce(90));eF(r),Fb(r,i)}}}break;case"textarea":nF(e,n);break;case"select":t=n.value,t!=null&&Ff(e,!!n.multiple,t,!1)}};uF=oO;cF=ic;var Iq={usingClientEntryPoint:!1,Events:[Rv,_f,p0,aF,lF,oO]},$h={findFiberByHostInstance:Fu,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Mq={bundleType:$h.bundleType,version:$h.version,rendererPackageName:$h.rendererPackageName,rendererConfig:$h.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ma.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hF(e),e===null?null:e.stateNode},findFiberByHostInstance:$h.findFiberByHostInstance||Aq,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var lg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lg.isDisabled&&lg.supportsFiber)try{c0=lg.inject(Mq),yo=lg}catch{}}Ai.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Iq;Ai.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hO(t))throw Error(ce(200));return kq(e,t,null,n)};Ai.createRoot=function(e,t){if(!hO(e))throw Error(ce(299));var n=!1,r="",i=GN;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=cO(e,1,!1,null,null,n,!1,r,i),e[Pa]=t.current,Gp(e.nodeType===8?e.parentNode:e),new dO(t)};Ai.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(ce(188)):(e=Object.keys(e).join(","),Error(ce(268,e)));return e=hF(t),e=e===null?null:e.stateNode,e};Ai.flushSync=function(e){return ic(e)};Ai.hydrate=function(e,t,n){if(!x0(t))throw Error(ce(200));return E0(null,e,t,!0,n)};Ai.hydrateRoot=function(e,t,n){if(!hO(e))throw Error(ce(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=GN;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=HN(t,null,e,1,n??null,i,!1,s,o),e[Pa]=t.current,Gp(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new b0(t)};Ai.render=function(e,t,n){if(!x0(t))throw Error(ce(200));return E0(null,e,t,!1,n)};Ai.unmountComponentAtNode=function(e){if(!x0(e))throw Error(ce(40));return e._reactRootContainer?(ic(function(){E0(null,null,e,!1,function(){e._reactRootContainer=null,e[Pa]=null})}),!0):!1};Ai.unstable_batchedUpdates=oO;Ai.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!x0(n))throw Error(ce(200));if(e==null||e._reactInternals===void 0)throw Error(ce(38));return E0(e,t,n,!1,r)};Ai.version="18.2.0-next-9e3b772b8-20220608";function YN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YN)}catch(e){console.error(e)}}YN(),H2.exports=Ai;var qN=H2.exports,ey={exports:{}};ey.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,s=2,o=9007199254740991,a="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",v="[object Error]",m="[object Function]",y="[object GeneratorFunction]",w="[object Map]",E="[object Number]",S="[object Null]",_="[object Object]",b="[object Promise]",O="[object Proxy]",I="[object RegExp]",A="[object Set]",C="[object String]",P="[object Symbol]",M="[object Undefined]",D="[object WeakMap]",V="[object ArrayBuffer]",Q="[object DataView]",se="[object Float32Array]",ie="[object Float64Array]",q="[object Int8Array]",oe="[object Int16Array]",ue="[object Int32Array]",X="[object Uint8Array]",te="[object Uint8ClampedArray]",ve="[object Uint16Array]",he="[object Uint32Array]",we=/[\\^$.*+?()[\]{}|]/g,_e=/^\[object .+?Constructor\]$/,Ie=/^(?:0|[1-9]\d*)$/,me={};me[se]=me[ie]=me[q]=me[oe]=me[ue]=me[X]=me[te]=me[ve]=me[he]=!0,me[a]=me[u]=me[V]=me[d]=me[Q]=me[h]=me[v]=me[m]=me[w]=me[E]=me[_]=me[I]=me[A]=me[C]=me[D]=!1;var Ae=typeof bi=="object"&&bi&&bi.Object===Object&&bi,De=typeof self=="object"&&self&&self.Object===Object&&self,Be=Ae||De||Function("return this")(),nt=t&&!t.nodeType&&t,Xe=nt&&!0&&e&&!e.nodeType&&e,ut=Xe&&Xe.exports===nt,Fe=ut&&Ae.process,yt=function(){try{return Fe&&Fe.binding&&Fe.binding("util")}catch{}}(),Mt=yt&&yt.isTypedArray;function dn(L,j){for(var T=-1,F=L==null?0:L.length,H=0,re=[];++T<F;){var Oe=L[T];j(Oe,T,L)&&(re[H++]=Oe)}return re}function Jn(L,j){for(var T=-1,F=j.length,H=L.length;++T<F;)L[H+T]=j[T];return L}function Yt(L,j){for(var T=-1,F=L==null?0:L.length;++T<F;)if(j(L[T],T,L))return!0;return!1}function Gr(L,j){for(var T=-1,F=Array(L);++T<L;)F[T]=j(T);return F}function Li(L){return function(j){return L(j)}}function qt(L,j){return L.has(j)}function Wt(L,j){return L==null?void 0:L[j]}function Me(L){var j=-1,T=Array(L.size);return L.forEach(function(F,H){T[++j]=[H,F]}),T}function Ye(L,j){return function(T){return L(j(T))}}function Dt(L){var j=-1,T=Array(L.size);return L.forEach(function(F){T[++j]=F}),T}var Et=Array.prototype,Cr=Function.prototype,ht=Object.prototype,it=Be["__core-js_shared__"],Tn=Cr.toString,Cn=ht.hasOwnProperty,kr=function(){var L=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),Fi=ht.toString,He=RegExp("^"+Tn.call(Cn).replace(we,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=ut?Be.Buffer:void 0,Pt=Be.Symbol,Vn=Be.Uint8Array,cr=ht.propertyIsEnumerable,Jd=Et.splice,Ni=Pt?Pt.toStringTag:void 0,yc=Object.getOwnPropertySymbols,tu=mt?mt.isBuffer:void 0,Hs=Ye(Object.keys,Object),nu=dr(Be,"DataView"),Ar=dr(Be,"Map"),ru=dr(Be,"Promise"),iu=dr(Be,"Set"),$a=dr(Be,"WeakMap"),Do=dr(Object,"create"),Qd=di(nu),ci=di(Ar),su=di(ru),Zd=di(iu),ou=di($a),wc=Pt?Pt.prototype:void 0,au=wc?wc.valueOf:void 0;function fr(L){var j=-1,T=L==null?0:L.length;for(this.clear();++j<T;){var F=L[j];this.set(F[0],F[1])}}function eh(){this.__data__=Do?Do(null):{},this.size=0}function th(L){var j=this.has(L)&&delete this.__data__[L];return this.size-=j?1:0,j}function nh(L){var j=this.__data__;if(Do){var T=j[L];return T===r?void 0:T}return Cn.call(j,L)?j[L]:void 0}function rh(L){var j=this.__data__;return Do?j[L]!==void 0:Cn.call(j,L)}function ih(L,j){var T=this.__data__;return this.size+=this.has(L)?0:1,T[L]=Do&&j===void 0?r:j,this}fr.prototype.clear=eh,fr.prototype.delete=th,fr.prototype.get=nh,fr.prototype.has=rh,fr.prototype.set=ih;function kn(L){var j=-1,T=L==null?0:L.length;for(this.clear();++j<T;){var F=L[j];this.set(F[0],F[1])}}function sh(){this.__data__=[],this.size=0}function oh(L){var j=this.__data__,T=Lo(j,L);if(T<0)return!1;var F=j.length-1;return T==F?j.pop():Jd.call(j,T,1),--this.size,!0}function ah(L){var j=this.__data__,T=Lo(j,L);return T<0?void 0:j[T][1]}function lh(L){return Lo(this.__data__,L)>-1}function uh(L,j){var T=this.__data__,F=Lo(T,L);return F<0?(++this.size,T.push([L,j])):T[F][1]=j,this}kn.prototype.clear=sh,kn.prototype.delete=oh,kn.prototype.get=ah,kn.prototype.has=lh,kn.prototype.set=uh;function ms(L){var j=-1,T=L==null?0:L.length;for(this.clear();++j<T;){var F=L[j];this.set(F[0],F[1])}}function Gs(){this.size=0,this.__data__={hash:new fr,map:new(Ar||kn),string:new fr}}function ch(L){var j=Ys(this,L).delete(L);return this.size-=j?1:0,j}function gs(L){return Ys(this,L).get(L)}function lu(L){return Ys(this,L).has(L)}function fh(L,j){var T=Ys(this,L),F=T.size;return T.set(L,j),this.size+=T.size==F?0:1,this}ms.prototype.clear=Gs,ms.prototype.delete=ch,ms.prototype.get=gs,ms.prototype.has=lu,ms.prototype.set=fh;function _s(L){var j=-1,T=L==null?0:L.length;for(this.__data__=new ms;++j<T;)this.add(L[j])}function uu(L){return this.__data__.set(L,r),this}function Sc(L){return this.__data__.has(L)}_s.prototype.add=_s.prototype.push=uu,_s.prototype.has=Sc;function fi(L){var j=this.__data__=new kn(L);this.size=j.size}function dh(){this.__data__=new kn,this.size=0}function bc(L){var j=this.__data__,T=j.delete(L);return this.size=j.size,T}function hh(L){return this.__data__.get(L)}function ph(L){return this.__data__.has(L)}function xc(L,j){var T=this.__data__;if(T instanceof kn){var F=T.__data__;if(!Ar||F.length<n-1)return F.push([L,j]),this.size=++T.size,this;T=this.__data__=new ms(F)}return T.set(L,j),this.size=T.size,this}fi.prototype.clear=dh,fi.prototype.delete=bc,fi.prototype.get=hh,fi.prototype.has=ph,fi.prototype.set=xc;function Ec(L,j){var T=Ya(L),F=!T&&Ga(L),H=!T&&!F&&$o(L),re=!T&&!F&&!H&&Nc(L),Oe=T||F||H||re,Ve=Oe?Gr(L.length,String):[],Te=Ve.length;for(var Ee in L)(j||Cn.call(L,Ee))&&!(Oe&&(Ee=="length"||H&&(Ee=="offset"||Ee=="parent")||re&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||Wa(Ee,Te)))&&Ve.push(Ee);return Ve}function Lo(L,j){for(var T=L.length;T--;)if(Ha(L[T][0],j))return T;return-1}function cu(L,j,T){var F=j(L);return Ya(L)?F:Jn(F,T(L))}function Fo(L){return L==null?L===void 0?M:S:Ni&&Ni in Object(L)?kc(L):za(L)}function fu(L){return Ks(L)&&Fo(L)==a}function No(L,j,T,F,H){return L===j?!0:L==null||j==null||!Ks(L)&&!Ks(j)?L!==L&&j!==j:Pc(L,j,T,F,No,H)}function Pc(L,j,T,F,H,re){var Oe=Ya(L),Ve=Ya(j),Te=Oe?u:$i(L),Ee=Ve?u:$i(j);Te=Te==a?_:Te,Ee=Ee==a?_:Ee;var je=Te==_,zt=Ee==_,pt=Te==Ee;if(pt&&$o(L)){if(!$o(j))return!1;Oe=!0,je=!1}if(pt&&!je)return re||(re=new fi),Oe||Nc(L)?Va(L,j,T,F,H,re):Tc(L,j,Te,T,F,H,re);if(!(T&i)){var Ot=je&&Cn.call(L,"__wrapped__"),An=zt&&Cn.call(j,"__wrapped__");if(Ot||An){var Rr=Ot?L.value():L,Ir=An?j.value():j;return re||(re=new fi),H(Rr,Ir,T,F,re)}}return pt?(re||(re=new fi),Cc(L,j,T,F,H,re)):!1}function Ba(L){if(!Fc(L)||Ic(L))return!1;var j=Yr(L)?He:_e;return j.test(di(L))}function Ua(L){return Ks(L)&&qs(L.length)&&!!me[Fo(L)]}function Oc(L){if(!Mc(L))return Hs(L);var j=[];for(var T in Object(L))Cn.call(L,T)&&T!="constructor"&&j.push(T);return j}function Va(L,j,T,F,H,re){var Oe=T&i,Ve=L.length,Te=j.length;if(Ve!=Te&&!(Oe&&Te>Ve))return!1;var Ee=re.get(L);if(Ee&&re.get(j))return Ee==j;var je=-1,zt=!0,pt=T&s?new _s:void 0;for(re.set(L,j),re.set(j,L);++je<Ve;){var Ot=L[je],An=j[je];if(F)var Rr=Oe?F(An,Ot,je,j,L,re):F(Ot,An,je,L,j,re);if(Rr!==void 0){if(Rr)continue;zt=!1;break}if(pt){if(!Yt(j,function(Ir,Xs){if(!qt(pt,Xs)&&(Ot===Ir||H(Ot,Ir,T,F,re)))return pt.push(Xs)})){zt=!1;break}}else if(!(Ot===An||H(Ot,An,T,F,re))){zt=!1;break}}return re.delete(L),re.delete(j),zt}function Tc(L,j,T,F,H,re,Oe){switch(T){case Q:if(L.byteLength!=j.byteLength||L.byteOffset!=j.byteOffset)return!1;L=L.buffer,j=j.buffer;case V:return!(L.byteLength!=j.byteLength||!re(new Vn(L),new Vn(j)));case d:case h:case E:return Ha(+L,+j);case v:return L.name==j.name&&L.message==j.message;case I:case C:return L==j+"";case w:var Ve=Me;case A:var Te=F&i;if(Ve||(Ve=Dt),L.size!=j.size&&!Te)return!1;var Ee=Oe.get(L);if(Ee)return Ee==j;F|=s,Oe.set(L,j);var je=Va(Ve(L),Ve(j),F,H,re,Oe);return Oe.delete(L),je;case P:if(au)return au.call(L)==au.call(j)}return!1}function Cc(L,j,T,F,H,re){var Oe=T&i,Ve=ja(L),Te=Ve.length,Ee=ja(j),je=Ee.length;if(Te!=je&&!Oe)return!1;for(var zt=Te;zt--;){var pt=Ve[zt];if(!(Oe?pt in j:Cn.call(j,pt)))return!1}var Ot=re.get(L);if(Ot&&re.get(j))return Ot==j;var An=!0;re.set(L,j),re.set(j,L);for(var Rr=Oe;++zt<Te;){pt=Ve[zt];var Ir=L[pt],Xs=j[pt];if(F)var vh=Oe?F(Xs,Ir,pt,j,L,re):F(Ir,Xs,pt,L,j,re);if(!(vh===void 0?Ir===Xs||H(Ir,Xs,T,F,re):vh)){An=!1;break}Rr||(Rr=pt=="constructor")}if(An&&!Rr){var du=L.constructor,jn=j.constructor;du!=jn&&"constructor"in L&&"constructor"in j&&!(typeof du=="function"&&du instanceof du&&typeof jn=="function"&&jn instanceof jn)&&(An=!1)}return re.delete(L),re.delete(j),An}function ja(L){return cu(L,$c,Ac)}function Ys(L,j){var T=L.__data__;return Rc(j)?T[typeof j=="string"?"string":"hash"]:T.map}function dr(L,j){var T=Wt(L,j);return Ba(T)?T:void 0}function kc(L){var j=Cn.call(L,Ni),T=L[Ni];try{L[Ni]=void 0;var F=!0}catch{}var H=Fi.call(L);return F&&(j?L[Ni]=T:delete L[Ni]),H}var Ac=yc?function(L){return L==null?[]:(L=Object(L),dn(yc(L),function(j){return cr.call(L,j)}))}:Nt,$i=Fo;(nu&&$i(new nu(new ArrayBuffer(1)))!=Q||Ar&&$i(new Ar)!=w||ru&&$i(ru.resolve())!=b||iu&&$i(new iu)!=A||$a&&$i(new $a)!=D)&&($i=function(L){var j=Fo(L),T=j==_?L.constructor:void 0,F=T?di(T):"";if(F)switch(F){case Qd:return Q;case ci:return w;case su:return b;case Zd:return A;case ou:return D}return j});function Wa(L,j){return j=j??o,!!j&&(typeof L=="number"||Ie.test(L))&&L>-1&&L%1==0&&L<j}function Rc(L){var j=typeof L;return j=="string"||j=="number"||j=="symbol"||j=="boolean"?L!=="__proto__":L===null}function Ic(L){return!!kr&&kr in L}function Mc(L){var j=L&&L.constructor,T=typeof j=="function"&&j.prototype||ht;return L===T}function za(L){return Fi.call(L)}function di(L){if(L!=null){try{return Tn.call(L)}catch{}try{return L+""}catch{}}return""}function Ha(L,j){return L===j||L!==L&&j!==j}var Ga=fu(function(){return arguments}())?fu:function(L){return Ks(L)&&Cn.call(L,"callee")&&!cr.call(L,"callee")},Ya=Array.isArray;function Dc(L){return L!=null&&qs(L.length)&&!Yr(L)}var $o=tu||Lt;function Lc(L,j){return No(L,j)}function Yr(L){if(!Fc(L))return!1;var j=Fo(L);return j==m||j==y||j==f||j==O}function qs(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=o}function Fc(L){var j=typeof L;return L!=null&&(j=="object"||j=="function")}function Ks(L){return L!=null&&typeof L=="object"}var Nc=Mt?Li(Mt):Ua;function $c(L){return Dc(L)?Ec(L):Oc(L)}function Nt(){return[]}function Lt(){return!1}e.exports=Lc})(ey,ey.exports);var Dq=ey.exports,KN={},pO={exports:{}},XN=function(t,n){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return t.apply(n,i)}},Lq=XN,fc=Object.prototype.toString;function vO(e){return fc.call(e)==="[object Array]"}function bx(e){return typeof e>"u"}function Fq(e){return e!==null&&!bx(e)&&e.constructor!==null&&!bx(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Nq(e){return fc.call(e)==="[object ArrayBuffer]"}function $q(e){return typeof FormData<"u"&&e instanceof FormData}function Bq(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function Uq(e){return typeof e=="string"}function Vq(e){return typeof e=="number"}function JN(e){return e!==null&&typeof e=="object"}function Zg(e){if(fc.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function jq(e){return fc.call(e)==="[object Date]"}function Wq(e){return fc.call(e)==="[object File]"}function zq(e){return fc.call(e)==="[object Blob]"}function QN(e){return fc.call(e)==="[object Function]"}function Hq(e){return JN(e)&&QN(e.pipe)}function Gq(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function Yq(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function qq(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function mO(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),vO(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function xx(){var e={};function t(i,s){Zg(e[s])&&Zg(i)?e[s]=xx(e[s],i):Zg(i)?e[s]=xx({},i):vO(i)?e[s]=i.slice():e[s]=i}for(var n=0,r=arguments.length;n<r;n++)mO(arguments[n],t);return e}function Kq(e,t,n){return mO(t,function(i,s){n&&typeof i=="function"?e[s]=Lq(i,n):e[s]=i}),e}function Xq(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Ii={isArray:vO,isArrayBuffer:Nq,isBuffer:Fq,isFormData:$q,isArrayBufferView:Bq,isString:Uq,isNumber:Vq,isObject:JN,isPlainObject:Zg,isUndefined:bx,isDate:jq,isFile:Wq,isBlob:zq,isFunction:QN,isStream:Hq,isURLSearchParams:Gq,isStandardBrowserEnv:qq,forEach:mO,merge:xx,extend:Kq,trim:Yq,stripBOM:Xq},Zc=Ii;function VR(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var ZN=function(t,n,r){if(!n)return t;var i;if(r)i=r(n);else if(Zc.isURLSearchParams(n))i=n.toString();else{var s=[];Zc.forEach(n,function(u,f){u===null||typeof u>"u"||(Zc.isArray(u)?f=f+"[]":u=[u],Zc.forEach(u,function(h){Zc.isDate(h)?h=h.toISOString():Zc.isObject(h)&&(h=JSON.stringify(h)),s.push(VR(f)+"="+VR(h))}))}),i=s.join("&")}if(i){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},Jq=Ii;function P0(){this.handlers=[]}P0.prototype.use=function(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};P0.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};P0.prototype.forEach=function(t){Jq.forEach(this.handlers,function(r){r!==null&&t(r)})};var Qq=P0,Zq=Ii,e7=function(t,n){Zq.forEach(t,function(i,s){s!==n&&s.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[s])})},e$=function(t,n,r,i,s){return t.config=n,r&&(t.code=r),t.request=i,t.response=s,t.isAxiosError=!0,t.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:this.config,code:this.code}},t},cS,jR;function t$(){if(jR)return cS;jR=1;var e=e$;return cS=function(n,r,i,s,o){var a=new Error(n);return e(a,r,i,s,o)},cS}var fS,WR;function t7(){if(WR)return fS;WR=1;var e=t$();return fS=function(n,r,i){var s=i.config.validateStatus;!i.status||!s||s(i.status)?n(i):r(e("Request failed with status code "+i.status,i.config,null,i.request,i))},fS}var dS,zR;function n7(){if(zR)return dS;zR=1;var e=Ii;return dS=e.isStandardBrowserEnv()?function(){return{write:function(r,i,s,o,a,u){var f=[];f.push(r+"="+encodeURIComponent(i)),e.isNumber(s)&&f.push("expires="+new Date(s).toGMTString()),e.isString(o)&&f.push("path="+o),e.isString(a)&&f.push("domain="+a),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),dS}var hS,HR;function r7(){return HR||(HR=1,hS=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),hS}var pS,GR;function i7(){return GR||(GR=1,pS=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),pS}var vS,YR;function s7(){if(YR)return vS;YR=1;var e=r7(),t=i7();return vS=function(r,i){return r&&!e(i)?t(r,i):i},vS}var mS,qR;function o7(){if(qR)return mS;qR=1;var e=Ii,t=["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"];return mS=function(r){var i={},s,o,a;return r&&e.forEach(r.split(`
`),function(f){if(a=f.indexOf(":"),s=e.trim(f.substr(0,a)).toLowerCase(),o=e.trim(f.substr(a+1)),s){if(i[s]&&t.indexOf(s)>=0)return;s==="set-cookie"?i[s]=(i[s]?i[s]:[]).concat([o]):i[s]=i[s]?i[s]+", "+o:o}}),i},mS}var gS,KR;function a7(){if(KR)return gS;KR=1;var e=Ii;return gS=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function s(o){var a=o;return n&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=s(window.location.href),function(a){var u=e.isString(a)?s(a):a;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),gS}var _S,XR;function JR(){if(XR)return _S;XR=1;var e=Ii,t=t7(),n=n7(),r=ZN,i=s7(),s=o7(),o=a7(),a=t$();return _S=function(f){return new Promise(function(h,v){var m=f.data,y=f.headers,w=f.responseType;e.isFormData(m)&&delete y["Content-Type"];var E=new XMLHttpRequest;if(f.auth){var S=f.auth.username||"",_=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";y.Authorization="Basic "+btoa(S+":"+_)}var b=i(f.baseURL,f.url);E.open(f.method.toUpperCase(),r(b,f.params,f.paramsSerializer),!0),E.timeout=f.timeout;function O(){if(E){var A="getAllResponseHeaders"in E?s(E.getAllResponseHeaders()):null,C=!w||w==="text"||w==="json"?E.responseText:E.response,P={data:C,status:E.status,statusText:E.statusText,headers:A,config:f,request:E};t(h,v,P),E=null}}if("onloadend"in E?E.onloadend=O:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(O)},E.onabort=function(){E&&(v(a("Request aborted",f,"ECONNABORTED",E)),E=null)},E.onerror=function(){v(a("Network Error",f,null,E)),E=null},E.ontimeout=function(){var C="timeout of "+f.timeout+"ms exceeded";f.timeoutErrorMessage&&(C=f.timeoutErrorMessage),v(a(C,f,f.transitional&&f.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",E)),E=null},e.isStandardBrowserEnv()){var I=(f.withCredentials||o(b))&&f.xsrfCookieName?n.read(f.xsrfCookieName):void 0;I&&(y[f.xsrfHeaderName]=I)}"setRequestHeader"in E&&e.forEach(y,function(C,P){typeof m>"u"&&P.toLowerCase()==="content-type"?delete y[P]:E.setRequestHeader(P,C)}),e.isUndefined(f.withCredentials)||(E.withCredentials=!!f.withCredentials),w&&w!=="json"&&(E.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&E.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&E.upload&&E.upload.addEventListener("progress",f.onUploadProgress),f.cancelToken&&f.cancelToken.promise.then(function(C){E&&(E.abort(),v(C),E=null)}),m||(m=null),E.send(m)})},_S}var rr=Ii,QR=e7,l7=e$,u7={"Content-Type":"application/x-www-form-urlencoded"};function ZR(e,t){!rr.isUndefined(e)&&rr.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c7(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=JR()),e}function f7(e,t,n){if(rr.isString(e))try{return(t||JSON.parse)(e),rr.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var O0={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:c7(),transformRequest:[function(t,n){return QR(n,"Accept"),QR(n,"Content-Type"),rr.isFormData(t)||rr.isArrayBuffer(t)||rr.isBuffer(t)||rr.isStream(t)||rr.isFile(t)||rr.isBlob(t)?t:rr.isArrayBufferView(t)?t.buffer:rr.isURLSearchParams(t)?(ZR(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):rr.isObject(t)||n&&n["Content-Type"]==="application/json"?(ZR(n,"application/json"),f7(t)):t}],transformResponse:[function(t){var n=this.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,s=!r&&this.responseType==="json";if(s||i&&rr.isString(t)&&t.length)try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?l7(o,this,"E_JSON_PARSE"):o}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};O0.headers={common:{Accept:"application/json, text/plain, */*"}};rr.forEach(["delete","get","head"],function(t){O0.headers[t]={}});rr.forEach(["post","put","patch"],function(t){O0.headers[t]=rr.merge(u7)});var gO=O0,d7=Ii,h7=gO,p7=function(t,n,r){var i=this||h7;return d7.forEach(r,function(o){t=o.call(i,t,n)}),t},yS,eI;function n$(){return eI||(eI=1,yS=function(t){return!!(t&&t.__CANCEL__)}),yS}var tI=Ii,wS=p7,v7=n$(),m7=gO;function SS(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var g7=function(t){SS(t),t.headers=t.headers||{},t.data=wS.call(t,t.data,t.headers,t.transformRequest),t.headers=tI.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),tI.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||m7.adapter;return n(t).then(function(i){return SS(t),i.data=wS.call(t,i.data,i.headers,t.transformResponse),i},function(i){return v7(i)||(SS(t),i&&i.response&&(i.response.data=wS.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},gr=Ii,r$=function(t,n){n=n||{};var r={},i=["url","method","data"],s=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(v,m){return gr.isPlainObject(v)&&gr.isPlainObject(m)?gr.merge(v,m):gr.isPlainObject(m)?gr.merge({},m):gr.isArray(m)?m.slice():m}function f(v){gr.isUndefined(n[v])?gr.isUndefined(t[v])||(r[v]=u(void 0,t[v])):r[v]=u(t[v],n[v])}gr.forEach(i,function(m){gr.isUndefined(n[m])||(r[m]=u(void 0,n[m]))}),gr.forEach(s,f),gr.forEach(o,function(m){gr.isUndefined(n[m])?gr.isUndefined(t[m])||(r[m]=u(void 0,t[m])):r[m]=u(void 0,n[m])}),gr.forEach(a,function(m){m in n?r[m]=u(t[m],n[m]):m in t&&(r[m]=u(void 0,t[m]))});var d=i.concat(s).concat(o).concat(a),h=Object.keys(t).concat(Object.keys(n)).filter(function(m){return d.indexOf(m)===-1});return gr.forEach(h,f),r};const _7="axios",y7="0.21.4",w7="Promise based HTTP client for the browser and node.js",S7="index.js",b7={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},x7={type:"git",url:"https://github.com/axios/axios.git"},E7=["xhr","http","ajax","promise","node"],P7="Matt Zabriskie",O7="MIT",T7={url:"https://github.com/axios/axios/issues"},C7="https://axios-http.com",k7={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},A7={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},R7="dist/axios.min.js",I7="dist/axios.min.js",M7="./index.d.ts",D7={"follow-redirects":"^1.14.0"},L7=[{path:"./dist/axios.min.js",threshold:"5kB"}],F7={name:_7,version:y7,description:w7,main:S7,scripts:b7,repository:x7,keywords:E7,author:P7,license:O7,bugs:T7,homepage:C7,devDependencies:k7,browser:A7,jsdelivr:R7,unpkg:I7,typings:M7,dependencies:D7,bundlesize:L7};var i$=F7,_O={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){_O[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var nI={},N7=i$.version.split(".");function s$(e,t){for(var n=t?t.split("."):N7,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}_O.transitional=function(t,n,r){var i=n&&s$(n);function s(o,a){return"[Axios v"+i$.version+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return function(o,a,u){if(t===!1)throw new Error(s(a," has been removed in "+n));return i&&!nI[a]&&(nI[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,u):!0}};function $7(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var s=r[i],o=t[s];if(o){var a=e[s],u=a===void 0||o(a,s,e);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(n!==!0)throw Error("Unknown option "+s)}}var B7={isOlderVersion:s$,assertOptions:$7,validators:_O},o$=Ii,U7=ZN,rI=Qq,iI=g7,T0=r$,a$=B7,ef=a$.validators;function Mv(e){this.defaults=e,this.interceptors={request:new rI,response:new rI}}Mv.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=T0(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;n!==void 0&&a$.assertOptions(n,{silentJSONParsing:ef.transitional(ef.boolean,"1.0.0"),forcedJSONParsing:ef.transitional(ef.boolean,"1.0.0"),clarifyTimeoutError:ef.transitional(ef.boolean,"1.0.0")},!1);var r=[],i=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(i=i&&v.synchronous,r.unshift(v.fulfilled,v.rejected))});var s=[];this.interceptors.response.forEach(function(v){s.push(v.fulfilled,v.rejected)});var o;if(!i){var a=[iI,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(s),o=Promise.resolve(t);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=t;r.length;){var f=r.shift(),d=r.shift();try{u=f(u)}catch(h){d(h);break}}try{o=iI(u)}catch(h){return Promise.reject(h)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};Mv.prototype.getUri=function(t){return t=T0(this.defaults,t),U7(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};o$.forEach(["delete","get","head","options"],function(t){Mv.prototype[t]=function(n,r){return this.request(T0(r||{},{method:t,url:n,data:(r||{}).data}))}});o$.forEach(["post","put","patch"],function(t){Mv.prototype[t]=function(n,r,i){return this.request(T0(i||{},{method:t,url:n,data:r}))}});var V7=Mv,bS,sI;function l$(){if(sI)return bS;sI=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,bS=e,bS}var xS,oI;function j7(){if(oI)return xS;oI=1;var e=l$();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var i=this;n(function(o){i.reason||(i.reason=new e(o),r(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var r,i=new t(function(o){r=o});return{token:i,cancel:r}},xS=t,xS}var ES,aI;function W7(){return aI||(aI=1,ES=function(t){return function(r){return t.apply(null,r)}}),ES}var PS,lI;function z7(){return lI||(lI=1,PS=function(t){return typeof t=="object"&&t.isAxiosError===!0}),PS}var uI=Ii,H7=XN,e_=V7,G7=r$,Y7=gO;function u$(e){var t=new e_(e),n=H7(e_.prototype.request,t);return uI.extend(n,e_.prototype,t),uI.extend(n,t),n}var $s=u$(Y7);$s.Axios=e_;$s.create=function(t){return u$(G7($s.defaults,t))};$s.Cancel=l$();$s.CancelToken=j7();$s.isCancel=n$();$s.all=function(t){return Promise.all(t)};$s.spread=W7();$s.isAxiosError=z7();pO.exports=$s;pO.exports.default=$s;var q7=pO.exports,K7=q7,X7=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;t[n]=i;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,n);if(o.value!==i||o.enumerable!==!0)return!1}return!0},cI=typeof Symbol<"u"&&Symbol,J7=X7,Q7=function(){return typeof cI!="function"||typeof Symbol!="function"||typeof cI("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:J7()},fI={foo:{}},Z7=Object,eK=function(){return{__proto__:fI}.foo===fI.foo&&!({__proto__:null}instanceof Z7)},tK="Function.prototype.bind called on incompatible ",OS=Array.prototype.slice,nK=Object.prototype.toString,rK="[object Function]",iK=function(t){var n=this;if(typeof n!="function"||nK.call(n)!==rK)throw new TypeError(tK+n);for(var r=OS.call(arguments,1),i,s=function(){if(this instanceof i){var d=n.apply(this,r.concat(OS.call(arguments)));return Object(d)===d?d:this}else return n.apply(t,r.concat(OS.call(arguments)))},o=Math.max(0,n.length-r.length),a=[],u=0;u<o;u++)a.push("$"+u);if(i=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(s),n.prototype){var f=function(){};f.prototype=n.prototype,i.prototype=new f,f.prototype=null}return i},sK=iK,yO=Function.prototype.bind||sK,oK=yO,aK=oK.call(Function.call,Object.prototype.hasOwnProperty),ot,fd=SyntaxError,c$=Function,jf=TypeError,TS=function(e){try{return c$('"use strict"; return ('+e+").constructor;")()}catch{}},Gu=Object.getOwnPropertyDescriptor;if(Gu)try{Gu({},"")}catch{Gu=null}var CS=function(){throw new jf},lK=Gu?function(){try{return arguments.callee,CS}catch{try{return Gu(arguments,"callee").get}catch{return CS}}}():CS,tf=Q7(),uK=eK(),Yn=Object.getPrototypeOf||(uK?function(e){return e.__proto__}:null),uf={},cK=typeof Uint8Array>"u"||!Yn?ot:Yn(Uint8Array),Yu={"%AggregateError%":typeof AggregateError>"u"?ot:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ot:ArrayBuffer,"%ArrayIteratorPrototype%":tf&&Yn?Yn([][Symbol.iterator]()):ot,"%AsyncFromSyncIteratorPrototype%":ot,"%AsyncFunction%":uf,"%AsyncGenerator%":uf,"%AsyncGeneratorFunction%":uf,"%AsyncIteratorPrototype%":uf,"%Atomics%":typeof Atomics>"u"?ot:Atomics,"%BigInt%":typeof BigInt>"u"?ot:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ot:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ot:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ot:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ot:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ot:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ot:FinalizationRegistry,"%Function%":c$,"%GeneratorFunction%":uf,"%Int8Array%":typeof Int8Array>"u"?ot:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ot:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ot:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":tf&&Yn?Yn(Yn([][Symbol.iterator]())):ot,"%JSON%":typeof JSON=="object"?JSON:ot,"%Map%":typeof Map>"u"?ot:Map,"%MapIteratorPrototype%":typeof Map>"u"||!tf||!Yn?ot:Yn(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ot:Promise,"%Proxy%":typeof Proxy>"u"?ot:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ot:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ot:Set,"%SetIteratorPrototype%":typeof Set>"u"||!tf||!Yn?ot:Yn(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ot:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":tf&&Yn?Yn(""[Symbol.iterator]()):ot,"%Symbol%":tf?Symbol:ot,"%SyntaxError%":fd,"%ThrowTypeError%":lK,"%TypedArray%":cK,"%TypeError%":jf,"%Uint8Array%":typeof Uint8Array>"u"?ot:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ot:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ot:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ot:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ot:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ot:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ot:WeakSet};if(Yn)try{null.error}catch(e){var fK=Yn(Yn(e));Yu["%Error.prototype%"]=fK}var dK=function e(t){var n;if(t==="%AsyncFunction%")n=TS("async function () {}");else if(t==="%GeneratorFunction%")n=TS("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=TS("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Yn&&(n=Yn(i.prototype))}return Yu[t]=n,n},dI={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Dv=yO,ty=aK,hK=Dv.call(Function.call,Array.prototype.concat),pK=Dv.call(Function.apply,Array.prototype.splice),hI=Dv.call(Function.call,String.prototype.replace),ny=Dv.call(Function.call,String.prototype.slice),vK=Dv.call(Function.call,RegExp.prototype.exec),mK=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,gK=/\\(\\)?/g,_K=function(t){var n=ny(t,0,1),r=ny(t,-1);if(n==="%"&&r!=="%")throw new fd("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new fd("invalid intrinsic syntax, expected opening `%`");var i=[];return hI(t,mK,function(s,o,a,u){i[i.length]=a?hI(u,gK,"$1"):o||s}),i},yK=function(t,n){var r=t,i;if(ty(dI,r)&&(i=dI[r],r="%"+i[0]+"%"),ty(Yu,r)){var s=Yu[r];if(s===uf&&(s=dK(r)),typeof s>"u"&&!n)throw new jf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:s}}throw new fd("intrinsic "+t+" does not exist!")},wO=function(t,n){if(typeof t!="string"||t.length===0)throw new jf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new jf('"allowMissing" argument must be a boolean');if(vK(/^%?[^%]*%?$/,t)===null)throw new fd("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=_K(t),i=r.length>0?r[0]:"",s=yK("%"+i+"%",n),o=s.name,a=s.value,u=!1,f=s.alias;f&&(i=f[0],pK(r,hK([0,1],f)));for(var d=1,h=!0;d<r.length;d+=1){var v=r[d],m=ny(v,0,1),y=ny(v,-1);if((m==='"'||m==="'"||m==="`"||y==='"'||y==="'"||y==="`")&&m!==y)throw new fd("property names with quotes must have matching quotes");if((v==="constructor"||!h)&&(u=!0),i+="."+v,o="%"+i+"%",ty(Yu,o))a=Yu[o];else if(a!=null){if(!(v in a)){if(!n)throw new jf("base intrinsic for "+t+" exists, but the property is not available.");return}if(Gu&&d+1>=r.length){var w=Gu(a,v);h=!!w,h&&"get"in w&&!("originalValue"in w.get)?a=w.get:a=a[v]}else h=ty(a,v),a=a[v];h&&!u&&(Yu[o]=a)}}return a},f$={exports:{}};(function(e){var t=yO,n=wO,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||t.call(i,r),o=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),u=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var v=s(t,i,arguments);if(o&&a){var m=o(v,"length");m.configurable&&a(v,"length",{value:1+u(0,h.length-(arguments.length-1))})}return v};var f=function(){return s(t,r,arguments)};a?a(e.exports,"apply",{value:f}):e.exports.apply=f})(f$);var wK=f$.exports,d$=wO,h$=wK,SK=h$(d$("String.prototype.indexOf")),bK=function(t,n){var r=d$(t,!!n);return typeof r=="function"&&SK(t,".prototype.")>-1?h$(r):r};const xK={},EK=Object.freeze(Object.defineProperty({__proto__:null,default:xK},Symbol.toStringTag,{value:"Module"})),PK=uY(EK);var SO=typeof Map=="function"&&Map.prototype,kS=Object.getOwnPropertyDescriptor&&SO?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ry=SO&&kS&&typeof kS.get=="function"?kS.get:null,pI=SO&&Map.prototype.forEach,bO=typeof Set=="function"&&Set.prototype,AS=Object.getOwnPropertyDescriptor&&bO?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,iy=bO&&AS&&typeof AS.get=="function"?AS.get:null,vI=bO&&Set.prototype.forEach,OK=typeof WeakMap=="function"&&WeakMap.prototype,yp=OK?WeakMap.prototype.has:null,TK=typeof WeakSet=="function"&&WeakSet.prototype,wp=TK?WeakSet.prototype.has:null,CK=typeof WeakRef=="function"&&WeakRef.prototype,mI=CK?WeakRef.prototype.deref:null,kK=Boolean.prototype.valueOf,AK=Object.prototype.toString,RK=Function.prototype.toString,IK=String.prototype.match,xO=String.prototype.slice,yl=String.prototype.replace,MK=String.prototype.toUpperCase,gI=String.prototype.toLowerCase,p$=RegExp.prototype.test,_I=Array.prototype.concat,oo=Array.prototype.join,DK=Array.prototype.slice,yI=Math.floor,Ex=typeof BigInt=="function"?BigInt.prototype.valueOf:null,RS=Object.getOwnPropertySymbols,Px=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,dd=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Pr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===dd||"symbol")?Symbol.toStringTag:null,v$=Object.prototype.propertyIsEnumerable,wI=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function SI(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||p$.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-yI(-e):yI(e);if(r!==e){var i=String(r),s=xO.call(t,i.length+1);return yl.call(i,n,"$&_")+"."+yl.call(yl.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return yl.call(t,n,"$&_")}var Ox=PK,bI=Ox.custom,xI=g$(bI)?bI:null,LK=function e(t,n,r,i){var s=n||{};if(ul(s,"quoteStyle")&&s.quoteStyle!=="single"&&s.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ul(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=ul(s,"customInspect")?s.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ul(s,"indent")&&s.indent!==null&&s.indent!=="	"&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ul(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=s.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return y$(t,s);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return a?SI(t,u):u}if(typeof t=="bigint"){var f=String(t)+"n";return a?SI(t,f):f}var d=typeof s.depth>"u"?5:s.depth;if(typeof r>"u"&&(r=0),r>=d&&d>0&&typeof t=="object")return Tx(t)?"[Array]":"[Object]";var h=ZK(s,r);if(typeof i>"u")i=[];else if(_$(i,t)>=0)return"[Circular]";function v(se,ie,q){if(ie&&(i=DK.call(i),i.push(ie)),q){var oe={depth:s.depth};return ul(s,"quoteStyle")&&(oe.quoteStyle=s.quoteStyle),e(se,oe,r+1,i)}return e(se,s,r+1,i)}if(typeof t=="function"&&!EI(t)){var m=zK(t),y=ug(t,v);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(y.length>0?" { "+oo.call(y,", ")+" }":"")}if(g$(t)){var w=dd?yl.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Px.call(t);return typeof t=="object"&&!dd?Bh(w):w}if(XK(t)){for(var E="<"+gI.call(String(t.nodeName)),S=t.attributes||[],_=0;_<S.length;_++)E+=" "+S[_].name+"="+m$(FK(S[_].value),"double",s);return E+=">",t.childNodes&&t.childNodes.length&&(E+="..."),E+="</"+gI.call(String(t.nodeName))+">",E}if(Tx(t)){if(t.length===0)return"[]";var b=ug(t,v);return h&&!QK(b)?"["+Cx(b,h)+"]":"[ "+oo.call(b,", ")+" ]"}if($K(t)){var O=ug(t,v);return!("cause"in Error.prototype)&&"cause"in t&&!v$.call(t,"cause")?"{ ["+String(t)+"] "+oo.call(_I.call("[cause]: "+v(t.cause),O),", ")+" }":O.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+oo.call(O,", ")+" }"}if(typeof t=="object"&&o){if(xI&&typeof t[xI]=="function"&&Ox)return Ox(t,{depth:d-r});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(HK(t)){var I=[];return pI&&pI.call(t,function(se,ie){I.push(v(ie,t,!0)+" => "+v(se,t))}),PI("Map",ry.call(t),I,h)}if(qK(t)){var A=[];return vI&&vI.call(t,function(se){A.push(v(se,t))}),PI("Set",iy.call(t),A,h)}if(GK(t))return IS("WeakMap");if(KK(t))return IS("WeakSet");if(YK(t))return IS("WeakRef");if(UK(t))return Bh(v(Number(t)));if(jK(t))return Bh(v(Ex.call(t)));if(VK(t))return Bh(kK.call(t));if(BK(t))return Bh(v(String(t)));if(!NK(t)&&!EI(t)){var C=ug(t,v),P=wI?wI(t)===Object.prototype:t instanceof Object||t.constructor===Object,M=t instanceof Object?"":"null prototype",D=!P&&Pr&&Object(t)===t&&Pr in t?xO.call(Gl(t),8,-1):M?"Object":"",V=P||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Q=V+(D||M?"["+oo.call(_I.call([],D||[],M||[]),": ")+"] ":"");return C.length===0?Q+"{}":h?Q+"{"+Cx(C,h)+"}":Q+"{ "+oo.call(C,", ")+" }"}return String(t)};function m$(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function FK(e){return yl.call(String(e),/"/g,"&quot;")}function Tx(e){return Gl(e)==="[object Array]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function NK(e){return Gl(e)==="[object Date]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function EI(e){return Gl(e)==="[object RegExp]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function $K(e){return Gl(e)==="[object Error]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function BK(e){return Gl(e)==="[object String]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function UK(e){return Gl(e)==="[object Number]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function VK(e){return Gl(e)==="[object Boolean]"&&(!Pr||!(typeof e=="object"&&Pr in e))}function g$(e){if(dd)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Px)return!1;try{return Px.call(e),!0}catch{}return!1}function jK(e){if(!e||typeof e!="object"||!Ex)return!1;try{return Ex.call(e),!0}catch{}return!1}var WK=Object.prototype.hasOwnProperty||function(e){return e in this};function ul(e,t){return WK.call(e,t)}function Gl(e){return AK.call(e)}function zK(e){if(e.name)return e.name;var t=IK.call(RK.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function _$(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function HK(e){if(!ry||!e||typeof e!="object")return!1;try{ry.call(e);try{iy.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function GK(e){if(!yp||!e||typeof e!="object")return!1;try{yp.call(e,yp);try{wp.call(e,wp)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function YK(e){if(!mI||!e||typeof e!="object")return!1;try{return mI.call(e),!0}catch{}return!1}function qK(e){if(!iy||!e||typeof e!="object")return!1;try{iy.call(e);try{ry.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function KK(e){if(!wp||!e||typeof e!="object")return!1;try{wp.call(e,wp);try{yp.call(e,yp)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function XK(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function y$(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return y$(xO.call(e,0,t.maxStringLength),t)+r}var i=yl.call(yl.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,JK);return m$(i,"single",t)}function JK(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+MK.call(t.toString(16))}function Bh(e){return"Object("+e+")"}function IS(e){return e+" { ? }"}function PI(e,t,n,r){var i=r?Cx(n,r):oo.call(n,", ");return e+" ("+t+") {"+i+"}"}function QK(e){for(var t=0;t<e.length;t++)if(_$(e[t],`
`)>=0)return!1;return!0}function ZK(e,t){var n;if(e.indent==="	")n="	";else if(typeof e.indent=="number"&&e.indent>0)n=oo.call(Array(e.indent+1)," ");else return null;return{base:n,prev:oo.call(Array(t+1),n)}}function Cx(e,t){if(e.length===0)return"";var n=`
`+t.prev+t.base;return n+oo.call(e,","+n)+`
`+t.prev}function ug(e,t){var n=Tx(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=ul(e,i)?t(e[i],e):""}var s=typeof RS=="function"?RS(e):[],o;if(dd){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var u in e)ul(e,u)&&(n&&String(Number(u))===u&&u<e.length||dd&&o["$"+u]instanceof Symbol||(p$.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof RS=="function")for(var f=0;f<s.length;f++)v$.call(e,s[f])&&r.push("["+t(s[f])+"]: "+t(e[s[f]],e));return r}var EO=wO,$d=bK,eX=LK,tX=EO("%TypeError%"),cg=EO("%WeakMap%",!0),fg=EO("%Map%",!0),nX=$d("WeakMap.prototype.get",!0),rX=$d("WeakMap.prototype.set",!0),iX=$d("WeakMap.prototype.has",!0),sX=$d("Map.prototype.get",!0),oX=$d("Map.prototype.set",!0),aX=$d("Map.prototype.has",!0),PO=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},lX=function(e,t){var n=PO(e,t);return n&&n.value},uX=function(e,t,n){var r=PO(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},cX=function(e,t){return!!PO(e,t)},fX=function(){var t,n,r,i={assert:function(s){if(!i.has(s))throw new tX("Side channel does not contain "+eX(s))},get:function(s){if(cg&&s&&(typeof s=="object"||typeof s=="function")){if(t)return nX(t,s)}else if(fg){if(n)return sX(n,s)}else if(r)return lX(r,s)},has:function(s){if(cg&&s&&(typeof s=="object"||typeof s=="function")){if(t)return iX(t,s)}else if(fg){if(n)return aX(n,s)}else if(r)return cX(r,s);return!1},set:function(s,o){cg&&s&&(typeof s=="object"||typeof s=="function")?(t||(t=new cg),rX(t,s,o)):fg?(n||(n=new fg),oX(n,s,o)):(r||(r={key:{},next:null}),uX(r,s,o))}};return i},dX=String.prototype.replace,hX=/%20/g,MS={RFC1738:"RFC1738",RFC3986:"RFC3986"},OO={default:MS.RFC3986,formatters:{RFC1738:function(e){return dX.call(e,hX,"+")},RFC3986:function(e){return String(e)}},RFC1738:MS.RFC1738,RFC3986:MS.RFC3986},pX=OO,DS=Object.prototype.hasOwnProperty,Iu=Array.isArray,to=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),vX=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Iu(r)){for(var i=[],s=0;s<r.length;++s)typeof r[s]<"u"&&i.push(r[s]);n.obj[n.prop]=i}}},w$=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(r[i]=t[i]);return r},mX=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Iu(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!DS.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var i=t;return Iu(t)&&!Iu(n)&&(i=w$(t,r)),Iu(t)&&Iu(n)?(n.forEach(function(s,o){if(DS.call(t,o)){var a=t[o];a&&typeof a=="object"&&s&&typeof s=="object"?t[o]=e(a,s,r):t.push(s)}else t[o]=s}),t):Object.keys(n).reduce(function(s,o){var a=n[o];return DS.call(s,o)?s[o]=e(s[o],a,r):s[o]=a,s},i)},gX=function(t,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},t)},_X=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},yX=function(t,n,r,i,s){if(t.length===0)return t;var o=t;if(typeof t=="symbol"?o=Symbol.prototype.toString.call(t):typeof t!="string"&&(o=String(t)),r==="iso-8859-1")return escape(o).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var a="",u=0;u<o.length;++u){var f=o.charCodeAt(u);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||s===pX.RFC1738&&(f===40||f===41)){a+=o.charAt(u);continue}if(f<128){a=a+to[f];continue}if(f<2048){a=a+(to[192|f>>6]+to[128|f&63]);continue}if(f<55296||f>=57344){a=a+(to[224|f>>12]+to[128|f>>6&63]+to[128|f&63]);continue}u+=1,f=65536+((f&1023)<<10|o.charCodeAt(u)&1023),a+=to[240|f>>18]+to[128|f>>12&63]+to[128|f>>6&63]+to[128|f&63]}return a},wX=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i<n.length;++i)for(var s=n[i],o=s.obj[s.prop],a=Object.keys(o),u=0;u<a.length;++u){var f=a[u],d=o[f];typeof d=="object"&&d!==null&&r.indexOf(d)===-1&&(n.push({obj:o,prop:f}),r.push(d))}return vX(n),t},SX=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},bX=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},xX=function(t,n){return[].concat(t,n)},EX=function(t,n){if(Iu(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(n(t[i]));return r}return n(t)},S$={arrayToObject:w$,assign:gX,combine:xX,compact:wX,decode:_X,encode:yX,isBuffer:bX,isRegExp:SX,maybeMap:EX,merge:mX},b$=fX,t_=S$,Sp=OO,PX=Object.prototype.hasOwnProperty,OI={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},sa=Array.isArray,OX=Array.prototype.push,x$=function(e,t){OX.apply(e,sa(t)?t:[t])},TX=Date.prototype.toISOString,TI=Sp.default,yr={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:t_.encode,encodeValuesOnly:!1,format:TI,formatter:Sp.formatters[TI],indices:!1,serializeDate:function(t){return TX.call(t)},skipNulls:!1,strictNullHandling:!1},CX=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},LS={},kX=function e(t,n,r,i,s,o,a,u,f,d,h,v,m,y,w,E){for(var S=t,_=E,b=0,O=!1;(_=_.get(LS))!==void 0&&!O;){var I=_.get(t);if(b+=1,typeof I<"u"){if(I===b)throw new RangeError("Cyclic object value");O=!0}typeof _.get(LS)>"u"&&(b=0)}if(typeof u=="function"?S=u(n,S):S instanceof Date?S=h(S):r==="comma"&&sa(S)&&(S=t_.maybeMap(S,function(oe){return oe instanceof Date?h(oe):oe})),S===null){if(s)return a&&!y?a(n,yr.encoder,w,"key",v):n;S=""}if(CX(S)||t_.isBuffer(S)){if(a){var A=y?n:a(n,yr.encoder,w,"key",v);return[m(A)+"="+m(a(S,yr.encoder,w,"value",v))]}return[m(n)+"="+m(String(S))]}var C=[];if(typeof S>"u")return C;var P;if(r==="comma"&&sa(S))y&&a&&(S=t_.maybeMap(S,a)),P=[{value:S.length>0?S.join(",")||null:void 0}];else if(sa(u))P=u;else{var M=Object.keys(S);P=f?M.sort(f):M}for(var D=i&&sa(S)&&S.length===1?n+"[]":n,V=0;V<P.length;++V){var Q=P[V],se=typeof Q=="object"&&typeof Q.value<"u"?Q.value:S[Q];if(!(o&&se===null)){var ie=sa(S)?typeof r=="function"?r(D,Q):D:D+(d?"."+Q:"["+Q+"]");E.set(t,b);var q=b$();q.set(LS,E),x$(C,e(se,ie,r,i,s,o,r==="comma"&&y&&sa(S)?null:a,u,f,d,h,v,m,y,w,q))}}return C},AX=function(t){if(!t)return yr;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||yr.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Sp.default;if(typeof t.format<"u"){if(!PX.call(Sp.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var i=Sp.formatters[r],s=yr.filter;return(typeof t.filter=="function"||sa(t.filter))&&(s=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:yr.addQueryPrefix,allowDots:typeof t.allowDots>"u"?yr.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:yr.charsetSentinel,delimiter:typeof t.delimiter>"u"?yr.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:yr.encode,encoder:typeof t.encoder=="function"?t.encoder:yr.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:yr.encodeValuesOnly,filter:s,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:yr.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:yr.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:yr.strictNullHandling}},RX=function(e,t){var n=e,r=AX(t),i,s;typeof r.filter=="function"?(s=r.filter,n=s("",n)):sa(r.filter)&&(s=r.filter,i=s);var o=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in OI?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var u=OI[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=u==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var d=b$(),h=0;h<i.length;++h){var v=i[h];r.skipNulls&&n[v]===null||x$(o,kX(n[v],v,u,f,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,d))}var m=o.join(r.delimiter),y=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),m.length>0?y+m:""},hd=S$,kx=Object.prototype.hasOwnProperty,IX=Array.isArray,Hn={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:hd.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},MX=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},E$=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},DX="utf8=%26%2310003%3B",LX="utf8=%E2%9C%93",FX=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,s=n.parameterLimit===1/0?void 0:n.parameterLimit,o=i.split(n.delimiter,s),a=-1,u,f=n.charset;if(n.charsetSentinel)for(u=0;u<o.length;++u)o[u].indexOf("utf8=")===0&&(o[u]===LX?f="utf-8":o[u]===DX&&(f="iso-8859-1"),a=u,u=o.length);for(u=0;u<o.length;++u)if(u!==a){var d=o[u],h=d.indexOf("]="),v=h===-1?d.indexOf("="):h+1,m,y;v===-1?(m=n.decoder(d,Hn.decoder,f,"key"),y=n.strictNullHandling?null:""):(m=n.decoder(d.slice(0,v),Hn.decoder,f,"key"),y=hd.maybeMap(E$(d.slice(v+1),n),function(w){return n.decoder(w,Hn.decoder,f,"value")})),y&&n.interpretNumericEntities&&f==="iso-8859-1"&&(y=MX(y)),d.indexOf("[]=")>-1&&(y=IX(y)?[y]:y),kx.call(r,m)?r[m]=hd.combine(r[m],y):r[m]=y}return r},NX=function(e,t,n,r){for(var i=r?t:E$(t,n),s=e.length-1;s>=0;--s){var o,a=e[s];if(a==="[]"&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,f=parseInt(u,10);!n.parseArrays&&u===""?o={0:i}:!isNaN(f)&&a!==u&&String(f)===u&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(o=[],o[f]=i):u!=="__proto__"&&(o[u]=i)}i=o}return i},$X=function(t,n,r,i){if(t){var s=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=r.depth>0&&o.exec(s),f=u?s.slice(0,u.index):s,d=[];if(f){if(!r.plainObjects&&kx.call(Object.prototype,f)&&!r.allowPrototypes)return;d.push(f)}for(var h=0;r.depth>0&&(u=a.exec(s))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&kx.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;d.push(u[1])}return u&&d.push("["+s.slice(u.index)+"]"),NX(d,n,r,i)}},BX=function(t){if(!t)return Hn;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Hn.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Hn.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Hn.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Hn.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Hn.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Hn.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Hn.comma,decoder:typeof t.decoder=="function"?t.decoder:Hn.decoder,delimiter:typeof t.delimiter=="string"||hd.isRegExp(t.delimiter)?t.delimiter:Hn.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Hn.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Hn.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Hn.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Hn.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Hn.strictNullHandling}},UX=function(e,t){var n=BX(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?FX(e,n):e,i=n.plainObjects?Object.create(null):{},s=Object.keys(r),o=0;o<s.length;++o){var a=s[o],u=$X(a,r[a],n,typeof e=="string");i=hd.merge(i,u,n)}return n.allowSparse===!0?i:hd.compact(i)},VX=RX,jX=UX,WX=OO,zX={formats:WX,parse:jX,stringify:VX},HX=function(t){return GX(t)&&!YX(t)};function GX(e){return!!e&&typeof e=="object"}function YX(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||XX(e)}var qX=typeof Symbol=="function"&&Symbol.for,KX=qX?Symbol.for("react.element"):60103;function XX(e){return e.$$typeof===KX}function JX(e){return Array.isArray(e)?[]:{}}function tv(e,t){return t.clone!==!1&&t.isMergeableObject(e)?pd(JX(e),e,t):e}function QX(e,t,n){return e.concat(t).map(function(r){return tv(r,n)})}function ZX(e,t){if(!t.customMerge)return pd;var n=t.customMerge(e);return typeof n=="function"?n:pd}function eJ(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function CI(e){return Object.keys(e).concat(eJ(e))}function P$(e,t){try{return t in e}catch{return!1}}function tJ(e,t){return P$(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function nJ(e,t,n){var r={};return n.isMergeableObject(e)&&CI(e).forEach(function(i){r[i]=tv(e[i],n)}),CI(t).forEach(function(i){tJ(e,i)||(P$(e,i)&&n.isMergeableObject(t[i])?r[i]=ZX(i,n)(e[i],t[i],n):r[i]=tv(t[i],n))}),r}function pd(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||QX,n.isMergeableObject=n.isMergeableObject||HX,n.cloneUnlessOtherwiseSpecified=tv;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge(e,t,n):nJ(e,t,n):tv(t,n)}pd.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return pd(r,i,n)},{})};var rJ=pd,iJ=rJ;(function(e){function t(A){return A&&typeof A=="object"&&"default"in A?A.default:A}var n=t(K7),r=zX,i=t(iJ);function s(){return(s=Object.assign?Object.assign.bind():function(A){for(var C=1;C<arguments.length;C++){var P=arguments[C];for(var M in P)Object.prototype.hasOwnProperty.call(P,M)&&(A[M]=P[M])}return A}).apply(this,arguments)}var o,a={modal:null,listener:null,show:function(A){var C=this;typeof A=="object"&&(A="All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.<hr>"+JSON.stringify(A));var P=document.createElement("html");P.innerHTML=A,P.querySelectorAll("a").forEach(function(D){return D.setAttribute("target","_top")}),this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",function(){return C.hide()});var M=document.createElement("iframe");if(M.style.backgroundColor="white",M.style.borderRadius="5px",M.style.width="100%",M.style.height="100%",this.modal.appendChild(M),document.body.prepend(this.modal),document.body.style.overflow="hidden",!M.contentWindow)throw new Error("iframe not yet ready.");M.contentWindow.document.open(),M.contentWindow.document.write(P.outerHTML),M.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide:function(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape:function(A){A.keyCode===27&&this.hide()}};function u(A,C){var P;return function(){var M=arguments,D=this;clearTimeout(P),P=setTimeout(function(){return A.apply(D,[].slice.call(M))},C)}}function f(A,C,P){for(var M in C===void 0&&(C=new FormData),P===void 0&&(P=null),A=A||{})Object.prototype.hasOwnProperty.call(A,M)&&h(C,d(P,M),A[M]);return C}function d(A,C){return A?A+"["+C+"]":C}function h(A,C,P){return Array.isArray(P)?Array.from(P.keys()).forEach(function(M){return h(A,d(C,M.toString()),P[M])}):P instanceof Date?A.append(C,P.toISOString()):P instanceof File?A.append(C,P,P.name):P instanceof Blob?A.append(C,P):typeof P=="boolean"?A.append(C,P?"1":"0"):typeof P=="string"?A.append(C,P):typeof P=="number"?A.append(C,""+P):P==null?A.append(C,""):void f(P,A,C)}function v(A){return new URL(A.toString(),window.location.toString())}function m(A,C,P,M){M===void 0&&(M="brackets");var D=/^https?:\/\//.test(C.toString()),V=D||C.toString().startsWith("/"),Q=!V&&!C.toString().startsWith("#")&&!C.toString().startsWith("?"),se=C.toString().includes("?")||A===e.Method.GET&&Object.keys(P).length,ie=C.toString().includes("#"),q=new URL(C.toString(),"http://localhost");return A===e.Method.GET&&Object.keys(P).length&&(q.search=r.stringify(i(r.parse(q.search,{ignoreQueryPrefix:!0}),P),{encodeValuesOnly:!0,arrayFormat:M}),P={}),[[D?q.protocol+"//"+q.host:"",V?q.pathname:"",Q?q.pathname.substring(1):"",se?q.search:"",ie?q.hash:""].join(""),P]}function y(A){return(A=new URL(A.href)).hash="",A}function w(A,C){return document.dispatchEvent(new CustomEvent("inertia:"+A,C))}(o=e.Method||(e.Method={})).GET="get",o.POST="post",o.PUT="put",o.PATCH="patch",o.DELETE="delete";var E=function(A){return w("finish",{detail:{visit:A}})},S=function(A){return w("navigate",{detail:{page:A}})},_=typeof window>"u",b=function(){function A(){this.visitId=null}var C=A.prototype;return C.init=function(P){var M=P.resolveComponent,D=P.swapComponent;this.page=P.initialPage,this.resolveComponent=M,this.swapComponent=D,this.isBackForwardVisit()?this.handleBackForwardVisit(this.page):this.isLocationVisit()?this.handleLocationVisit(this.page):this.handleInitialPageVisit(this.page),this.setupEventListeners()},C.handleInitialPageVisit=function(P){this.page.url+=window.location.hash,this.setPage(P,{preserveState:!0}).then(function(){return S(P)})},C.setupEventListeners=function(){window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),document.addEventListener("scroll",u(this.handleScrollEvent.bind(this),100),!0)},C.scrollRegions=function(){return document.querySelectorAll("[scroll-region]")},C.handleScrollEvent=function(P){typeof P.target.hasAttribute=="function"&&P.target.hasAttribute("scroll-region")&&this.saveScrollPositions()},C.saveScrollPositions=function(){this.replaceState(s({},this.page,{scrollRegions:Array.from(this.scrollRegions()).map(function(P){return{top:P.scrollTop,left:P.scrollLeft}})}))},C.resetScrollPositions=function(){var P;window.scrollTo(0,0),this.scrollRegions().forEach(function(M){typeof M.scrollTo=="function"?M.scrollTo(0,0):(M.scrollTop=0,M.scrollLeft=0)}),this.saveScrollPositions(),window.location.hash&&((P=document.getElementById(window.location.hash.slice(1)))==null||P.scrollIntoView())},C.restoreScrollPositions=function(){var P=this;this.page.scrollRegions&&this.scrollRegions().forEach(function(M,D){var V=P.page.scrollRegions[D];V&&(typeof M.scrollTo=="function"?M.scrollTo(V.left,V.top):(M.scrollTop=V.top,M.scrollLeft=V.left))})},C.isBackForwardVisit=function(){return window.history.state&&window.performance&&window.performance.getEntriesByType("navigation").length>0&&window.performance.getEntriesByType("navigation")[0].type==="back_forward"},C.handleBackForwardVisit=function(P){var M=this;window.history.state.version=P.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then(function(){M.restoreScrollPositions(),S(P)})},C.locationVisit=function(P,M){try{window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify({preserveScroll:M})),window.location.href=P.href,y(window.location).href===y(P).href&&window.location.reload()}catch{return!1}},C.isLocationVisit=function(){try{return window.sessionStorage.getItem("inertiaLocationVisit")!==null}catch{return!1}},C.handleLocationVisit=function(P){var M,D,V,Q,se=this,ie=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),P.url+=window.location.hash,P.rememberedState=(M=(D=window.history.state)==null?void 0:D.rememberedState)!=null?M:{},P.scrollRegions=(V=(Q=window.history.state)==null?void 0:Q.scrollRegions)!=null?V:[],this.setPage(P,{preserveScroll:ie.preserveScroll,preserveState:!0}).then(function(){ie.preserveScroll&&se.restoreScrollPositions(),S(P)})},C.isLocationVisitResponse=function(P){return P&&P.status===409&&P.headers["x-inertia-location"]},C.isInertiaResponse=function(P){return P==null?void 0:P.headers["x-inertia"]},C.createVisitId=function(){return this.visitId={},this.visitId},C.cancelVisit=function(P,M){var D=M.cancelled,V=D!==void 0&&D,Q=M.interrupted,se=Q!==void 0&&Q;!P||P.completed||P.cancelled||P.interrupted||(P.cancelToken.cancel(),P.onCancel(),P.completed=!1,P.cancelled=V,P.interrupted=se,E(P),P.onFinish(P))},C.finishVisit=function(P){P.cancelled||P.interrupted||(P.completed=!0,P.cancelled=!1,P.interrupted=!1,E(P),P.onFinish(P))},C.resolvePreserveOption=function(P,M){return typeof P=="function"?P(M):P==="errors"?Object.keys(M.props.errors||{}).length>0:P},C.visit=function(P,M){var D=this,V=M===void 0?{}:M,Q=V.method,se=Q===void 0?e.Method.GET:Q,ie=V.data,q=ie===void 0?{}:ie,oe=V.replace,ue=oe!==void 0&&oe,X=V.preserveScroll,te=X!==void 0&&X,ve=V.preserveState,he=ve!==void 0&&ve,we=V.only,_e=we===void 0?[]:we,Ie=V.headers,me=Ie===void 0?{}:Ie,Ae=V.errorBag,De=Ae===void 0?"":Ae,Be=V.forceFormData,nt=Be!==void 0&&Be,Xe=V.onCancelToken,ut=Xe===void 0?function(){}:Xe,Fe=V.onBefore,yt=Fe===void 0?function(){}:Fe,Mt=V.onStart,dn=Mt===void 0?function(){}:Mt,Jn=V.onProgress,Yt=Jn===void 0?function(){}:Jn,Gr=V.onFinish,Li=Gr===void 0?function(){}:Gr,qt=V.onCancel,Wt=qt===void 0?function(){}:qt,Me=V.onSuccess,Ye=Me===void 0?function(){}:Me,Dt=V.onError,Et=Dt===void 0?function(){}:Dt,Cr=V.queryStringArrayFormat,ht=Cr===void 0?"brackets":Cr,it=typeof P=="string"?v(P):P;if(!function He(mt){return mt instanceof File||mt instanceof Blob||mt instanceof FileList&&mt.length>0||mt instanceof FormData&&Array.from(mt.values()).some(function(Pt){return He(Pt)})||typeof mt=="object"&&mt!==null&&Object.values(mt).some(function(Pt){return He(Pt)})}(q)&&!nt||q instanceof FormData||(q=f(q)),!(q instanceof FormData)){var Tn=m(se,it,q,ht),Cn=Tn[1];it=v(Tn[0]),q=Cn}var kr={url:it,method:se,data:q,replace:ue,preserveScroll:te,preserveState:he,only:_e,headers:me,errorBag:De,forceFormData:nt,queryStringArrayFormat:ht,cancelled:!1,completed:!1,interrupted:!1};if(yt(kr)!==!1&&function(He){return w("before",{cancelable:!0,detail:{visit:He}})}(kr)){this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();var Fi=this.createVisitId();this.activeVisit=s({},kr,{onCancelToken:ut,onBefore:yt,onStart:dn,onProgress:Yt,onFinish:Li,onCancel:Wt,onSuccess:Ye,onError:Et,queryStringArrayFormat:ht,cancelToken:n.CancelToken.source()}),ut({cancel:function(){D.activeVisit&&D.cancelVisit(D.activeVisit,{cancelled:!0})}}),function(He){w("start",{detail:{visit:He}})}(kr),dn(kr),n({method:se,url:y(it).href,data:se===e.Method.GET?{}:q,params:se===e.Method.GET?q:{},cancelToken:this.activeVisit.cancelToken.token,headers:s({},me,{Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},_e.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":_e.join(",")}:{},De&&De.length?{"X-Inertia-Error-Bag":De}:{},this.page.version?{"X-Inertia-Version":this.page.version}:{}),onUploadProgress:function(He){q instanceof FormData&&(He.percentage=Math.round(He.loaded/He.total*100),function(mt){w("progress",{detail:{progress:mt}})}(He),Yt(He))}}).then(function(He){var mt;if(!D.isInertiaResponse(He))return Promise.reject({response:He});var Pt=He.data;_e.length&&Pt.component===D.page.component&&(Pt.props=s({},D.page.props,Pt.props)),te=D.resolvePreserveOption(te,Pt),(he=D.resolvePreserveOption(he,Pt))&&(mt=window.history.state)!=null&&mt.rememberedState&&Pt.component===D.page.component&&(Pt.rememberedState=window.history.state.rememberedState);var Vn=it,cr=v(Pt.url);return Vn.hash&&!cr.hash&&y(Vn).href===cr.href&&(cr.hash=Vn.hash,Pt.url=cr.href),D.setPage(Pt,{visitId:Fi,replace:ue,preserveScroll:te,preserveState:he})}).then(function(){var He=D.page.props.errors||{};if(Object.keys(He).length>0){var mt=De?He[De]?He[De]:{}:He;return function(Pt){w("error",{detail:{errors:Pt}})}(mt),Et(mt)}return w("success",{detail:{page:D.page}}),Ye(D.page)}).catch(function(He){if(D.isInertiaResponse(He.response))return D.setPage(He.response.data,{visitId:Fi});if(D.isLocationVisitResponse(He.response)){var mt=v(He.response.headers["x-inertia-location"]),Pt=it;Pt.hash&&!mt.hash&&y(Pt).href===mt.href&&(mt.hash=Pt.hash),D.locationVisit(mt,te===!0)}else{if(!He.response)return Promise.reject(He);w("invalid",{cancelable:!0,detail:{response:He.response}})&&a.show(He.response.data)}}).then(function(){D.activeVisit&&D.finishVisit(D.activeVisit)}).catch(function(He){if(!n.isCancel(He)){var mt=w("exception",{cancelable:!0,detail:{exception:He}});if(D.activeVisit&&D.finishVisit(D.activeVisit),mt)return Promise.reject(He)}})}},C.setPage=function(P,M){var D=this,V=M===void 0?{}:M,Q=V.visitId,se=Q===void 0?this.createVisitId():Q,ie=V.replace,q=ie!==void 0&&ie,oe=V.preserveScroll,ue=oe!==void 0&&oe,X=V.preserveState,te=X!==void 0&&X;return Promise.resolve(this.resolveComponent(P.component)).then(function(ve){se===D.visitId&&(P.scrollRegions=P.scrollRegions||[],P.rememberedState=P.rememberedState||{},(q=q||v(P.url).href===window.location.href)?D.replaceState(P):D.pushState(P),D.swapComponent({component:ve,page:P,preserveState:te}).then(function(){ue||D.resetScrollPositions(),q||S(P)}))})},C.pushState=function(P){this.page=P,window.history.pushState(P,"",P.url)},C.replaceState=function(P){this.page=P,window.history.replaceState(P,"",P.url)},C.handlePopstateEvent=function(P){var M=this;if(P.state!==null){var D=P.state,V=this.createVisitId();Promise.resolve(this.resolveComponent(D.component)).then(function(se){V===M.visitId&&(M.page=D,M.swapComponent({component:se,page:D,preserveState:!1}).then(function(){M.restoreScrollPositions(),S(D)}))})}else{var Q=v(this.page.url);Q.hash=window.location.hash,this.replaceState(s({},this.page,{url:Q.href})),this.resetScrollPositions()}},C.get=function(P,M,D){return M===void 0&&(M={}),D===void 0&&(D={}),this.visit(P,s({},D,{method:e.Method.GET,data:M}))},C.reload=function(P){return P===void 0&&(P={}),this.visit(window.location.href,s({},P,{preserveScroll:!0,preserveState:!0}))},C.replace=function(P,M){var D;return M===void 0&&(M={}),console.warn("Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia."+((D=M.method)!=null?D:"get")+"() instead."),this.visit(P,s({preserveState:!0},M,{replace:!0}))},C.post=function(P,M,D){return M===void 0&&(M={}),D===void 0&&(D={}),this.visit(P,s({preserveState:!0},D,{method:e.Method.POST,data:M}))},C.put=function(P,M,D){return M===void 0&&(M={}),D===void 0&&(D={}),this.visit(P,s({preserveState:!0},D,{method:e.Method.PUT,data:M}))},C.patch=function(P,M,D){return M===void 0&&(M={}),D===void 0&&(D={}),this.visit(P,s({preserveState:!0},D,{method:e.Method.PATCH,data:M}))},C.delete=function(P,M){return M===void 0&&(M={}),this.visit(P,s({preserveState:!0},M,{method:e.Method.DELETE}))},C.remember=function(P,M){var D,V;M===void 0&&(M="default"),_||this.replaceState(s({},this.page,{rememberedState:s({},(D=this.page)==null?void 0:D.rememberedState,(V={},V[M]=P,V))}))},C.restore=function(P){var M,D;if(P===void 0&&(P="default"),!_)return(M=window.history.state)==null||(D=M.rememberedState)==null?void 0:D[P]},C.on=function(P,M){var D=function(V){var Q=M(V);V.cancelable&&!V.defaultPrevented&&Q===!1&&V.preventDefault()};return document.addEventListener("inertia:"+P,D),function(){return document.removeEventListener("inertia:"+P,D)}},A}(),O={buildDOMElement:function(A){var C=document.createElement("template");C.innerHTML=A;var P=C.content.firstChild;if(!A.startsWith("<script "))return P;var M=document.createElement("script");return M.innerHTML=P.innerHTML,P.getAttributeNames().forEach(function(D){M.setAttribute(D,P.getAttribute(D)||"")}),M},isInertiaManagedElement:function(A){return A.nodeType===Node.ELEMENT_NODE&&A.getAttribute("inertia")!==null},findMatchingElementIndex:function(A,C){var P=A.getAttribute("inertia");return P!==null?C.findIndex(function(M){return M.getAttribute("inertia")===P}):-1},update:u(function(A){var C=this,P=A.map(function(M){return C.buildDOMElement(M)});Array.from(document.head.childNodes).filter(function(M){return C.isInertiaManagedElement(M)}).forEach(function(M){var D=C.findMatchingElementIndex(M,P);if(D!==-1){var V,Q=P.splice(D,1)[0];Q&&!M.isEqualNode(Q)&&(M==null||(V=M.parentNode)==null||V.replaceChild(Q,M))}else{var se;M==null||(se=M.parentNode)==null||se.removeChild(M)}}),P.forEach(function(M){return document.head.appendChild(M)})},1)},I=new b;e.Inertia=I,e.createHeadManager=function(A,C,P){var M={},D=0;function V(){var se=Object.values(M).reduce(function(ie,q){return ie.concat(q)},[]).reduce(function(ie,q){if(q.indexOf("<")===-1)return ie;if(q.indexOf("<title ")===0){var oe=q.match(/(<title [^>]+>)(.*?)(<\/title>)/);return ie.title=oe?""+oe[1]+C(oe[2])+oe[3]:q,ie}var ue=q.match(/ inertia="[^"]+"/);return ue?ie[ue[0]]=q:ie[Object.keys(ie).length]=q,ie},{});return Object.values(se)}function Q(){A?P(V()):O.update(V())}return{createProvider:function(){var se=function(){var ie=D+=1;return M[ie]=[],ie.toString()}();return{update:function(ie){return function(q,oe){oe===void 0&&(oe=[]),q!==null&&Object.keys(M).indexOf(q)>-1&&(M[q]=oe),Q()}(se,ie)},disconnect:function(){return function(ie){ie!==null&&Object.keys(M).indexOf(ie)!==-1&&(delete M[ie],Q())}(se)}}}}},e.hrefToUrl=v,e.mergeDataIntoQueryString=m,e.shouldIntercept=function(A){var C=A.currentTarget.tagName.toLowerCase()==="a";return!(A.target&&A!=null&&A.target.isContentEditable||A.defaultPrevented||C&&A.which>1||C&&A.altKey||C&&A.ctrlKey||C&&A.metaKey||C&&A.shiftKey)},e.urlWithoutHash=y})(KN);var sJ,oJ,aJ,lJ,uJ;function O$(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var cJ=O$(Dq),dt=N,fJ=O$(dt),va=KN;function Cs(){return(Cs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function kI(e,t){var n=dt.useState(function(){var s=va.Inertia.restore(t);return s!==void 0?s:e}),r=n[0],i=n[1];return dt.useEffect(function(){va.Inertia.remember(r,t)},[r,t]),[r,i]}var sy=dt.createContext();sy.displayName="InertiaPageContext";var oy=dt.createContext();function T$(e){var t=e.children,n=e.initialPage,r=e.resolveComponent,i=e.titleCallback,s=e.onHeadUpdate,o=dt.useState({component:e.initialComponent||null,page:n,key:null}),a=o[0],u=o[1],f=dt.useMemo(function(){return va.createHeadManager(typeof window>"u",i||function(h){return h},s||function(){})},[]);if(dt.useEffect(function(){va.Inertia.init({initialPage:n,resolveComponent:r,swapComponent:function(h){var v=h.component,m=h.page,y=h.preserveState;try{return u(function(w){return{component:v,page:m,key:y?w.key:Date.now()}}),Promise.resolve()}catch(w){return Promise.reject(w)}}})},[]),!a.component)return dt.createElement(oy.Provider,{value:f},dt.createElement(sy.Provider,{value:a.page},null));var d=t||function(h){var v=h.Component,m=h.props,y=dt.createElement(v,Cs({key:h.key},m));return typeof v.layout=="function"?v.layout(y):Array.isArray(v.layout)?v.layout.concat(y).reverse().reduce(function(w,E){return dt.createElement(E,Cs({children:w},m))}):y};return dt.createElement(oy.Provider,{value:f},dt.createElement(sy.Provider,{value:a.page},d({Component:a.component,key:a.key,props:a.page.props})))}function dJ(e){var t,n,r=e.children,i=e.title,s=dt.useContext(oy),o=dt.useMemo(function(){return s.createProvider()},[s]);return dt.useEffect(function(){return function(){o.disconnect()}},[o]),o.update((t=r,n=(Array.isArray(t)?t:[t]).filter(function(a){return a}).map(function(a){return function(u){return function f(d){var h=function(v){var m=Object.keys(v.props).reduce(function(y,w){if(["head-key","children","dangerouslySetInnerHTML"].includes(w))return y;var E=v.props[w];return E===""?y+" "+w:y+" "+w+'="'+E+'"'},"");return"<"+v.type+m+">"}(d);return d.props.children&&(h+=function(v){return typeof v.props.children=="string"?v.props.children:v.props.children.reduce(function(m,y){return m+f(y)},"")}(d)),d.props.dangerouslySetInnerHTML&&(h+=d.props.dangerouslySetInnerHTML.__html),function(v){return["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"].indexOf(v.type)>-1}(d)||(h+="</"+d.type+">"),h}(function(f){return fJ.cloneElement(f,{inertia:f.props["head-key"]!==void 0?f.props["head-key"]:""})}(u))}(a)}),i&&!n.find(function(a){return a.startsWith("<title")})&&n.push("<title inertia>"+i+"</title>"),n)),null}oy.displayName="InertiaHeadContext",T$.displayName="Inertia";var hJ=["children","as","data","href","method","preserveScroll","preserveState","replace","only","headers","queryStringArrayFormat","onClick","onCancelToken","onBefore","onStart","onProgress","onFinish","onCancel","onSuccess","onError"],qo=function(){},pJ=dt.forwardRef(function(e,t){var n=e.children,r=e.as,i=r===void 0?"a":r,s=e.data,o=s===void 0?{}:s,a=e.href,u=e.method,f=u===void 0?"get":u,d=e.preserveScroll,h=d!==void 0&&d,v=e.preserveState,m=v===void 0?null:v,y=e.replace,w=y!==void 0&&y,E=e.only,S=E===void 0?[]:E,_=e.headers,b=_===void 0?{}:_,O=e.queryStringArrayFormat,I=O===void 0?"brackets":O,A=e.onClick,C=A===void 0?qo:A,P=e.onCancelToken,M=P===void 0?qo:P,D=e.onBefore,V=D===void 0?qo:D,Q=e.onStart,se=Q===void 0?qo:Q,ie=e.onProgress,q=ie===void 0?qo:ie,oe=e.onFinish,ue=oe===void 0?qo:oe,X=e.onCancel,te=X===void 0?qo:X,ve=e.onSuccess,he=ve===void 0?qo:ve,we=e.onError,_e=we===void 0?qo:we,Ie=function(De,Be){if(De==null)return{};var nt,Xe,ut={},Fe=Object.keys(De);for(Xe=0;Xe<Fe.length;Xe++)Be.indexOf(nt=Fe[Xe])>=0||(ut[nt]=De[nt]);return ut}(e,hJ),me=dt.useCallback(function(De){C(De),va.shouldIntercept(De)&&(De.preventDefault(),va.Inertia.visit(a,{data:o,method:f,preserveScroll:h,preserveState:m??f!=="get",replace:w,only:S,headers:b,onCancelToken:M,onBefore:V,onStart:se,onProgress:q,onFinish:ue,onCancel:te,onSuccess:he,onError:_e}))},[o,a,f,h,m,w,S,b,C,M,V,se,q,ue,te,he,_e]);i=i.toLowerCase(),f=f.toLowerCase();var Ae=va.mergeDataIntoQueryString(f,a||"",o,I);return a=Ae[0],o=Ae[1],i==="a"&&f!=="get"&&console.warn(`Creating POST/PUT/PATCH/DELETE <a> links is discouraged as it causes "Open Link in New Tab/Window" accessibility issues.

Please specify a more appropriate element using the "as" attribute. For example:

<Link href="`+a+'" method="'+f+'" as="button">...</Link>'),dt.createElement(i,Cs({},Ie,i==="a"?{href:a}:{},{ref:t,onClick:me}),n)});uJ=dJ,lJ=pJ,aJ=function(e){try{var t,n,r,i,s,o,a;n=(t=e.id)===void 0?"app":t,r=e.resolve,i=e.setup,s=e.title,o=e.page,a=e.render;var u=typeof window>"u",f=u?null:document.getElementById(n),d=o||JSON.parse(f.dataset.page),h=function(m){return Promise.resolve(r(m)).then(function(y){return y.default||y})},v=[];return Promise.resolve(h(d.component).then(function(m){return i({el:f,App:T$,props:{initialPage:d,initialComponent:m,resolveComponent:h,titleCallback:s,onHeadUpdate:u?function(y){return v=y}:null}})})).then(function(m){return function(){if(u)return Promise.resolve(a(dt.createElement("div",{id:n,"data-page":JSON.stringify(d)},m))).then(function(y){return{head:v,body:y}})}()})}catch(m){return Promise.reject(m)}},oJ=function(){var e=[].slice.call(arguments),t=dt.useRef(null),n=typeof e[0]=="string"?e[0]:null,r=dt.useState((typeof e[0]=="string"?e[1]:e[0])||{}),i=r[0],s=r[1],o=dt.useRef(null),a=dt.useRef(null),u=n?kI(i,n+":data"):dt.useState(i),f=u[0],d=u[1],h=n?kI({},n+":errors"):dt.useState({}),v=h[0],m=h[1],y=dt.useState(!1),w=y[0],E=y[1],S=dt.useState(!1),_=S[0],b=S[1],O=dt.useState(null),I=O[0],A=O[1],C=dt.useState(!1),P=C[0],M=C[1],D=dt.useState(!1),V=D[0],Q=D[1],se=function(q){return q};dt.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]);var ie=dt.useCallback(function(q,oe,ue){ue===void 0&&(ue={});var X=Cs({},ue,{onCancelToken:function(te){if(o.current=te,ue.onCancelToken)return ue.onCancelToken(te)},onBefore:function(te){if(M(!1),Q(!1),clearTimeout(a.current),ue.onBefore)return ue.onBefore(te)},onStart:function(te){if(b(!0),ue.onStart)return ue.onStart(te)},onProgress:function(te){if(A(te),ue.onProgress)return ue.onProgress(te)},onSuccess:function(te){if(t.current&&(b(!1),A(null),m({}),E(!1),M(!0),Q(!0),a.current=setTimeout(function(){t.current&&Q(!1)},2e3)),ue.onSuccess)return ue.onSuccess(te)},onError:function(te){if(t.current&&(b(!1),A(null),m(te),E(!0)),ue.onError)return ue.onError(te)},onCancel:function(){if(t.current&&(b(!1),A(null)),ue.onCancel)return ue.onCancel()},onFinish:function(){if(t.current&&(b(!1),A(null)),o.current=null,ue.onFinish)return ue.onFinish()}});q==="delete"?va.Inertia.delete(oe,Cs({},X,{data:se(f)})):va.Inertia[q](oe,se(f),X)},[f,m]);return{data:f,setData:function(q,oe){var ue;d(typeof q=="string"?Cs({},f,((ue={})[q]=oe,ue)):typeof q=="function"?function(X){return q(X)}:q)},isDirty:!cJ(f,i),errors:v,hasErrors:w,processing:_,progress:I,wasSuccessful:P,recentlySuccessful:V,transform:function(q){se=q},setDefaults:function(q,oe){s(q===void 0?function(){return f}:function(ue){var X;return Cs({},ue,oe?((X={})[q]=oe,X):q)})},reset:function(){var q=[].slice.call(arguments);d(q.length===0?i:Object.keys(i).filter(function(oe){return q.includes(oe)}).reduce(function(oe,ue){return oe[ue]=i[ue],oe},Cs({},f)))},setError:function(q,oe){m(function(ue){var X,te=Cs({},ue,oe?((X={})[q]=oe,X):q);return E(Object.keys(te).length>0),te})},clearErrors:function(){var q=[].slice.call(arguments);m(function(oe){var ue=Object.keys(oe).reduce(function(X,te){var ve;return Cs({},X,q.length>0&&!q.includes(te)?((ve={})[te]=oe[te],ve):{})},{});return E(Object.keys(ue).length>0),ue})},submit:ie,get:function(q,oe){ie("get",q,oe)},post:function(q,oe){ie("post",q,oe)},put:function(q,oe){ie("put",q,oe)},patch:function(q,oe){ie("patch",q,oe)},delete:function(q,oe){ie("delete",q,oe)},cancel:function(){o.current&&o.current.cancel()}}},sJ=function(){var e=dt.useContext(sy);if(!e)throw new Error("usePage must be used within the Inertia component");return e};const C$=Object.prototype.toString;function vJ(e){switch(C$.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return C0(e,Error)}}function Bd(e,t){return C$.call(e)===`[object ${t}]`}function Jye(e){return Bd(e,"ErrorEvent")}function Qye(e){return Bd(e,"DOMError")}function Zye(e){return Bd(e,"DOMException")}function Ax(e){return Bd(e,"String")}function e0e(e){return e===null||typeof e!="object"&&typeof e!="function"}function TO(e){return Bd(e,"Object")}function mJ(e){return typeof Event<"u"&&C0(e,Event)}function gJ(e){return typeof Element<"u"&&C0(e,Element)}function _J(e){return Bd(e,"RegExp")}function k$(e){return!!(e&&e.then&&typeof e.then=="function")}function t0e(e){return TO(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function n0e(e){return typeof e=="number"&&e!==e}function C0(e,t){try{return e instanceof t}catch{return!1}}function AI(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function r0e(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function yJ(e,t,n=!1){return Ax(e)?_J(t)?t.test(e):Ax(t)?n?e===t:e.includes(t):!1:!1}function i0e(e,t=[],n=!1){return t.some(r=>yJ(e,r,n))}function dg(e){return e&&e.Math==Math?e:void 0}const So=typeof globalThis=="object"&&dg(globalThis)||typeof window=="object"&&dg(window)||typeof self=="object"&&dg(self)||typeof global=="object"&&dg(global)||function(){return this}()||{};function A$(){return So}function CO(e,t,n){const r=n||So,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const n_=A$(),wJ=80;function SJ(e,t={}){try{let n=e;const r=5,i=[];let s=0,o=0;const a=" > ",u=a.length;let f;const d=Array.isArray(t)?t:t.keyAttrs,h=!Array.isArray(t)&&t.maxStringLength||wJ;for(;n&&s++<r&&(f=bJ(n,d),!(f==="html"||s>1&&o+i.length*u+f.length>=h));)i.push(f),o+=f.length,n=n.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function bJ(e,t){const n=e,r=[];let i,s,o,a,u;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const f=t&&t.length?t.filter(h=>n.getAttribute(h)).map(h=>[h,n.getAttribute(h)]):null;if(f&&f.length)f.forEach(h=>{r.push(`[${h[0]}="${h[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Ax(i))for(s=i.split(/\s+/),u=0;u<s.length;u++)r.push(`.${s[u]}`);const d=["aria-label","type","name","title","alt"];for(u=0;u<d.length;u++)o=d[u],a=n.getAttribute(o),a&&r.push(`[${o}="${a}"]`);return r.join("")}function s0e(){try{return n_.document.location.href}catch{return""}}function o0e(e){return n_.document&&n_.document.querySelector?n_.document.querySelector(e):null}const xJ="Sentry Logger ",Rx=["debug","info","warn","error","log","assert","trace"];function R$(e){if(!("console"in So))return e();const t=So.console,n={};Rx.forEach(r=>{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function RI(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?Rx.forEach(n=>{t[n]=(...r)=>{e&&R$(()=>{So.console[n](`${xJ}[${n}]:`,...r)})}}):Rx.forEach(n=>{t[n]=()=>{}}),t}let nv;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?nv=CO("logger",RI):nv=RI();function a0e(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if(typeof i=="function")try{EJ(i,r)}catch{}e[t]=i}function I$(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function EJ(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,I$(e,"__sentry_original__",t)}function l0e(e){return e.__sentry_original__}function u0e(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function PJ(e){if(vJ(e))return{message:e.message,name:e.name,stack:e.stack,...MI(e)};if(mJ(e)){const t={type:e.type,target:II(e.target),currentTarget:II(e.currentTarget),...MI(e)};return typeof CustomEvent<"u"&&C0(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function II(e){try{return gJ(e)?SJ(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function MI(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 c0e(e,t=40){const n=Object.keys(PJ(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return AI(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:AI(i,t)}return""}function OJ(e){return Ix(e,new Map)}function Ix(e,t){if(TO(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=Ix(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(Ix(i,t))}),r}return e}function qu(){const e=So,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function M$(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function f0e(e){const{message:t,event_id:n}=e;if(t)return t;const r=M$(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function d0e(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type=n||"Error")}function h0e(e,t){const n=M$(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const s={...i&&i.data,...t.data};n.mechanism.data=s}}function p0e(e){if(e&&e.__sentry_captured__)return!0;try{I$(e,"__sentry_captured__",!0)}catch{}return!1}function TJ(e){return Array.isArray(e)?e:[e]}function CJ(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function v0e(){return"npm"}function kJ(){return!CJ()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function AJ(e,t){return e.require(t)}var ea;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(ea||(ea={}));function m0e(e){return new ao(t=>{t(e)})}function g0e(e){return new ao((t,n)=>{n(e)})}class ao{constructor(t){ao.prototype.__init.call(this),ao.prototype.__init2.call(this),ao.prototype.__init3.call(this),ao.prototype.__init4.call(this),this._state=ea.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new ao((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(o){i(o)}},s=>{if(!n)i(s);else try{r(n(s))}catch(o){i(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new ao((n,r)=>{let i,s;return this.then(o=>{s=!1,i=o,t&&t()},o=>{s=!0,i=o,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(ea.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(ea.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===ea.PENDING){if(k$(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===ea.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===ea.RESOLVED&&n[1](this._value),this._state===ea.REJECTED&&n[2](this._value),n[0]=!0)})}}}const D$=A$(),Mx={nowSeconds:()=>Date.now()/1e3};function RJ(){const{performance:e}=D$;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function IJ(){try{return AJ(module,"perf_hooks").performance}catch{return}}const FS=kJ()?IJ():RJ(),DI=FS===void 0?Mx:{nowSeconds:()=>(FS.timeOrigin+FS.now())/1e3},L$=Mx.nowSeconds.bind(Mx),F$=DI.nowSeconds.bind(DI),_0e=(()=>{const{performance:e}=D$;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i<t,o=e.timing&&e.timing.navigationStart,u=typeof o=="number"?Math.abs(o+n-r):t,f=u<t;return s||f?i<=u?e.timeOrigin:o:r})(),MJ="production";function DJ(e){const t=F$(),n={sid:qu(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>FJ(n)};return e&&k0(n,e),n}function k0(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||F$(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:qu()),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 LJ(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),k0(e,n)}function FJ(e){return OJ({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,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const NJ=100;class Wf{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=LI()}static clone(t){const n=new Wf;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments],n._sdkProcessingMetadata={...t._sdkProcessingMetadata},n._propagationContext={...t._propagationContext}),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&k0(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}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}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Wf?n:this}return t instanceof Wf?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):TO(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=LI(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:NJ;if(r<=0)return this;const i={timestamp:L$(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-r),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}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const r=this._span.transaction;if(r){t.sdkProcessingMetadata={dynamicSamplingContext:r.getDynamicSamplingContext(),...t.sdkProcessingMetadata};const i=r.name;i&&(t.tags={transaction:i,...t.tags})}}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},this._notifyEventProcessors([...N$(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}_notifyEventProcessors(t,n,r,i=0){return new ao((s,o)=>{const a=t[i];if(n===null||typeof a!="function")s(n);else{const u=a({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&u===null&&nv.log(`Event processor "${a.id}" dropped event`),k$(u)?u.then(f=>this._notifyEventProcessors(t,f,r,i+1).then(s)).then(null,o):this._notifyEventProcessors(t,u,r,i+1).then(s).then(null,o)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?TJ(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function N$(){return CO("globalEventProcessors",()=>[])}function y0e(e){N$().push(e)}function LI(){return{traceId:qu(),spanId:qu().substring(16)}}const $$=4,$J=100;class B${constructor(t,n=new Wf,r=$$){this._version=r,this._stack=[{scope:n}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=Wf.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:qu(),i=new Error("Sentry syntheticException");return this._withClient((s,o)=>{s.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},o)}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:qu(),s=new Error(t);return this._withClient((o,a)=>{o.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},a)}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:qu();return t.type||(this._lastEventId=r),this._withClient((i,s)=>{i.captureEvent(t,{...n,event_id:r},s)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=$J}=i.getOptions&&i.getOptions()||{};if(o<=0)return;const u={timestamp:L$(),...t},f=s?R$(()=>s(u,n)):u;f!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",f,n),r.addBreadcrumb(f,o))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=FI(this);try{t(this)}finally{FI(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&nv.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&!r){const i=this.getClient();console.warn(i?`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`:"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&LJ(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:s=MJ}=r&&r.getOptions()||{},{userAgent:o}=So.navigator||{},a=DJ({release:i,environment:s,user:n.getUser(),...o&&{userAgent:o},...t}),u=n.getSession&&n.getSession();return u&&u.status==="ok"&&k0(u,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const i=A0().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&nv.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function A0(){return So.__SENTRY__=So.__SENTRY__||{extensions:{},hub:void 0},So}function FI(e){const t=A0(),n=Dx(t);return U$(t,e),n}function R0(){const e=A0();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return BJ(e)}function BJ(e=A0()){return(!UJ(e)||Dx(e).isOlderThan($$))&&U$(e,new B$),Dx(e)}function UJ(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Dx(e){return CO("hub",()=>new B$,e)}function U$(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function w0e(e,t){return R0().captureException(e,{captureContext:t})}function Ko(e,t){R0().setContext(e,t)}function S0e(e){R0().setUser(e)}function b0e(e){R0().withScope(e)}var V$={exports:{}},Vt={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Xn=typeof Symbol=="function"&&Symbol.for,kO=Xn?Symbol.for("react.element"):60103,AO=Xn?Symbol.for("react.portal"):60106,I0=Xn?Symbol.for("react.fragment"):60107,M0=Xn?Symbol.for("react.strict_mode"):60108,D0=Xn?Symbol.for("react.profiler"):60114,L0=Xn?Symbol.for("react.provider"):60109,F0=Xn?Symbol.for("react.context"):60110,RO=Xn?Symbol.for("react.async_mode"):60111,N0=Xn?Symbol.for("react.concurrent_mode"):60111,$0=Xn?Symbol.for("react.forward_ref"):60112,B0=Xn?Symbol.for("react.suspense"):60113,VJ=Xn?Symbol.for("react.suspense_list"):60120,U0=Xn?Symbol.for("react.memo"):60115,V0=Xn?Symbol.for("react.lazy"):60116,jJ=Xn?Symbol.for("react.block"):60121,WJ=Xn?Symbol.for("react.fundamental"):60117,zJ=Xn?Symbol.for("react.responder"):60118,HJ=Xn?Symbol.for("react.scope"):60119;function Mi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case kO:switch(e=e.type,e){case RO:case N0:case I0:case D0:case M0:case B0:return e;default:switch(e=e&&e.$$typeof,e){case F0:case $0:case V0:case U0:case L0:return e;default:return t}}case AO:return t}}}function j$(e){return Mi(e)===N0}Vt.AsyncMode=RO;Vt.ConcurrentMode=N0;Vt.ContextConsumer=F0;Vt.ContextProvider=L0;Vt.Element=kO;Vt.ForwardRef=$0;Vt.Fragment=I0;Vt.Lazy=V0;Vt.Memo=U0;Vt.Portal=AO;Vt.Profiler=D0;Vt.StrictMode=M0;Vt.Suspense=B0;Vt.isAsyncMode=function(e){return j$(e)||Mi(e)===RO};Vt.isConcurrentMode=j$;Vt.isContextConsumer=function(e){return Mi(e)===F0};Vt.isContextProvider=function(e){return Mi(e)===L0};Vt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===kO};Vt.isForwardRef=function(e){return Mi(e)===$0};Vt.isFragment=function(e){return Mi(e)===I0};Vt.isLazy=function(e){return Mi(e)===V0};Vt.isMemo=function(e){return Mi(e)===U0};Vt.isPortal=function(e){return Mi(e)===AO};Vt.isProfiler=function(e){return Mi(e)===D0};Vt.isStrictMode=function(e){return Mi(e)===M0};Vt.isSuspense=function(e){return Mi(e)===B0};Vt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===I0||e===N0||e===D0||e===M0||e===B0||e===VJ||typeof e=="object"&&e!==null&&(e.$$typeof===V0||e.$$typeof===U0||e.$$typeof===L0||e.$$typeof===F0||e.$$typeof===$0||e.$$typeof===WJ||e.$$typeof===zJ||e.$$typeof===HJ||e.$$typeof===jJ)};Vt.typeOf=Mi;V$.exports=Vt;var GJ=V$.exports,W$=GJ,YJ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qJ={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z$={};z$[W$.ForwardRef]=YJ;z$[W$.Memo]=qJ;function KJ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function XJ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var JJ=function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(XJ(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=KJ(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),_r="-ms-",ay="-moz-",kt="-webkit-",H$="comm",IO="rule",MO="decl",QJ="@import",G$="@keyframes",ZJ="@layer",eQ=Math.abs,j0=String.fromCharCode,tQ=Object.assign;function nQ(e,t){return sr(e,0)^45?(((t<<2^sr(e,0))<<2^sr(e,1))<<2^sr(e,2))<<2^sr(e,3):0}function Y$(e){return e.trim()}function rQ(e,t){return(e=t.exec(e))?e[0]:e}function Rt(e,t,n){return e.replace(t,n)}function Lx(e,t){return e.indexOf(t)}function sr(e,t){return e.charCodeAt(t)|0}function rv(e,t,n){return e.slice(t,n)}function lo(e){return e.length}function DO(e){return e.length}function hg(e,t){return t.push(e),e}function iQ(e,t){return e.map(t).join("")}var W0=1,vd=1,q$=0,li=0,xn=0,Ud="";function z0(e,t,n,r,i,s,o){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:W0,column:vd,length:o,return:""}}function Uh(e,t){return tQ(z0("",null,null,"",null,null,0),e,{length:-e.length},t)}function sQ(){return xn}function oQ(){return xn=li>0?sr(Ud,--li):0,vd--,xn===10&&(vd=1,W0--),xn}function Oi(){return xn=li<q$?sr(Ud,li++):0,vd++,xn===10&&(vd=1,W0++),xn}function bo(){return sr(Ud,li)}function r_(){return li}function Lv(e,t){return rv(Ud,e,t)}function iv(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function K$(e){return W0=vd=1,q$=lo(Ud=e),li=0,[]}function X$(e){return Ud="",e}function i_(e){return Y$(Lv(li-1,Fx(e===91?e+2:e===40?e+1:e)))}function aQ(e){for(;(xn=bo())&&xn<33;)Oi();return iv(e)>2||iv(xn)>3?"":" "}function lQ(e,t){for(;--t&&Oi()&&!(xn<48||xn>102||xn>57&&xn<65||xn>70&&xn<97););return Lv(e,r_()+(t<6&&bo()==32&&Oi()==32))}function Fx(e){for(;Oi();)switch(xn){case e:return li;case 34:case 39:e!==34&&e!==39&&Fx(xn);break;case 40:e===41&&Fx(e);break;case 92:Oi();break}return li}function uQ(e,t){for(;Oi()&&e+xn!==47+10;)if(e+xn===42+42&&bo()===47)break;return"/*"+Lv(t,li-1)+"*"+j0(e===47?e:Oi())}function cQ(e){for(;!iv(bo());)Oi();return Lv(e,li)}function fQ(e){return X$(s_("",null,null,null,[""],e=K$(e),0,[0],e))}function s_(e,t,n,r,i,s,o,a,u){for(var f=0,d=0,h=o,v=0,m=0,y=0,w=1,E=1,S=1,_=0,b="",O=i,I=s,A=r,C=b;E;)switch(y=_,_=Oi()){case 40:if(y!=108&&sr(C,h-1)==58){Lx(C+=Rt(i_(_),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:C+=i_(_);break;case 9:case 10:case 13:case 32:C+=aQ(y);break;case 92:C+=lQ(r_()-1,7);continue;case 47:switch(bo()){case 42:case 47:hg(dQ(uQ(Oi(),r_()),t,n),u);break;default:C+="/"}break;case 123*w:a[f++]=lo(C)*S;case 125*w:case 59:case 0:switch(_){case 0:case 125:E=0;case 59+d:S==-1&&(C=Rt(C,/\f/g,"")),m>0&&lo(C)-h&&hg(m>32?$I(C+";",r,n,h-1):$I(Rt(C," ","")+";",r,n,h-2),u);break;case 59:C+=";";default:if(hg(A=NI(C,t,n,f,d,i,a,b,O=[],I=[],h),s),_===123)if(d===0)s_(C,t,A,A,O,s,h,a,I);else switch(v===99&&sr(C,3)===110?100:v){case 100:case 108:case 109:case 115:s_(e,A,A,r&&hg(NI(e,A,A,0,0,i,a,b,i,O=[],h),I),i,I,h,a,r?O:I);break;default:s_(C,A,A,A,[""],I,0,a,I)}}f=d=m=0,w=S=1,b=C="",h=o;break;case 58:h=1+lo(C),m=y;default:if(w<1){if(_==123)--w;else if(_==125&&w++==0&&oQ()==125)continue}switch(C+=j0(_),_*w){case 38:S=d>0?1:(C+="\f",-1);break;case 44:a[f++]=(lo(C)-1)*S,S=1;break;case 64:bo()===45&&(C+=i_(Oi())),v=bo(),d=h=lo(b=C+=cQ(r_())),_++;break;case 45:y===45&&lo(C)==2&&(w=0)}}return s}function NI(e,t,n,r,i,s,o,a,u,f,d){for(var h=i-1,v=i===0?s:[""],m=DO(v),y=0,w=0,E=0;y<r;++y)for(var S=0,_=rv(e,h+1,h=eQ(w=o[y])),b=e;S<m;++S)(b=Y$(w>0?v[S]+" "+_:Rt(_,/&\f/g,v[S])))&&(u[E++]=b);return z0(e,t,n,i===0?IO:a,u,f,d)}function dQ(e,t,n){return z0(e,t,n,H$,j0(sQ()),rv(e,2,-2),0)}function $I(e,t,n,r){return z0(e,t,n,MO,rv(e,0,r),rv(e,r+1,-1),r)}function zf(e,t){for(var n="",r=DO(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function hQ(e,t,n,r){switch(e.type){case ZJ:if(e.children.length)break;case QJ:case MO:return e.return=e.return||e.value;case H$:return"";case G$:return e.return=e.value+"{"+zf(e.children,r)+"}";case IO:e.value=e.props.join(",")}return lo(n=zf(e.children,r))?e.return=e.value+"{"+n+"}":""}function pQ(e){var t=DO(e);return function(n,r,i,s){for(var o="",a=0;a<t;a++)o+=e[a](n,r,i,s)||"";return o}}function vQ(e){return function(t){t.root||(t=t.return)&&e(t)}}var BI=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};function J$(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var mQ=function(t,n,r){for(var i=0,s=0;i=s,s=bo(),i===38&&s===12&&(n[r]=1),!iv(s);)Oi();return Lv(t,li)},gQ=function(t,n){var r=-1,i=44;do switch(iv(i)){case 0:i===38&&bo()===12&&(n[r]=1),t[r]+=mQ(li-1,n,r);break;case 2:t[r]+=i_(i);break;case 4:if(i===44){t[++r]=bo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=j0(i)}while(i=Oi());return t},_Q=function(t,n){return X$(gQ(K$(t),n))},UI=new WeakMap,yQ=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!UI.get(r))&&!i){UI.set(t,!0);for(var s=[],o=_Q(n,s),a=r.props,u=0,f=0;u<o.length;u++)for(var d=0;d<a.length;d++,f++)t.props[f]=s[u]?o[u].replace(/&\f/g,a[d]):a[d]+" "+o[u]}}},wQ=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Q$(e,t){switch(nQ(e,t)){case 5103:return kt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return kt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return kt+e+ay+e+_r+e+e;case 6828:case 4268:return kt+e+_r+e+e;case 6165:return kt+e+_r+"flex-"+e+e;case 5187:return kt+e+Rt(e,/(\w+).+(:[^]+)/,kt+"box-$1$2"+_r+"flex-$1$2")+e;case 5443:return kt+e+_r+"flex-item-"+Rt(e,/flex-|-self/,"")+e;case 4675:return kt+e+_r+"flex-line-pack"+Rt(e,/align-content|flex-|-self/,"")+e;case 5548:return kt+e+_r+Rt(e,"shrink","negative")+e;case 5292:return kt+e+_r+Rt(e,"basis","preferred-size")+e;case 6060:return kt+"box-"+Rt(e,"-grow","")+kt+e+_r+Rt(e,"grow","positive")+e;case 4554:return kt+Rt(e,/([^-])(transform)/g,"$1"+kt+"$2")+e;case 6187:return Rt(Rt(Rt(e,/(zoom-|grab)/,kt+"$1"),/(image-set)/,kt+"$1"),e,"")+e;case 5495:case 3959:return Rt(e,/(image-set\([^]*)/,kt+"$1$`$1");case 4968:return Rt(Rt(e,/(.+:)(flex-)?(.*)/,kt+"box-pack:$3"+_r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+kt+e+e;case 4095:case 3583:case 4068:case 2532:return Rt(e,/(.+)-inline(.+)/,kt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(lo(e)-1-t>6)switch(sr(e,t+1)){case 109:if(sr(e,t+4)!==45)break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+kt+"$2-$3$1"+ay+(sr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Lx(e,"stretch")?Q$(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(sr(e,t+1)!==115)break;case 6444:switch(sr(e,lo(e)-3-(~Lx(e,"!important")&&10))){case 107:return Rt(e,":",":"+kt)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kt+(sr(e,14)===45?"inline-":"")+"box$3$1"+kt+"$2$3$1"+_r+"$2box$3")+e}break;case 5936:switch(sr(e,t+11)){case 114:return kt+e+_r+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return kt+e+_r+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return kt+e+_r+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return kt+e+_r+e+e}return e}var SQ=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case MO:t.return=Q$(t.value,t.length);break;case G$:return zf([Uh(t,{value:Rt(t.value,"@","@"+kt)})],i);case IO:if(t.length)return iQ(t.props,function(s){switch(rQ(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zf([Uh(t,{props:[Rt(s,/:(read-\w+)/,":"+ay+"$1")]})],i);case"::placeholder":return zf([Uh(t,{props:[Rt(s,/:(plac\w+)/,":"+kt+"input-$1")]}),Uh(t,{props:[Rt(s,/:(plac\w+)/,":"+ay+"$1")]}),Uh(t,{props:[Rt(s,/:(plac\w+)/,_r+"input-$1")]})],i)}return""})}},bQ=[SQ],xQ=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(w){var E=w.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(w),w.setAttribute("data-s",""))})}var i=t.stylisPlugins||bQ,s={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(w){for(var E=w.getAttribute("data-emotion").split(" "),S=1;S<E.length;S++)s[E[S]]=!0;a.push(w)});var u,f=[yQ,wQ];{var d,h=[hQ,vQ(function(w){d.insert(w)})],v=pQ(f.concat(i,h)),m=function(E){return zf(fQ(E),v)};u=function(E,S,_,b){d=_,m(E?E+"{"+S.styles+"}":S.styles),b&&(y.inserted[S.name]=!0)}}var y={key:n,sheet:new JJ({key:n,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:u};return y.sheet.hydrate(a),y};function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sc.apply(this,arguments)}var EQ=!0;function PQ(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Z$=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||EQ===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},eB=function(t,n,r){Z$(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function OQ(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var TQ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},CQ=/[A-Z]|^ms/g,kQ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tB=function(t){return t.charCodeAt(1)===45},VI=function(t){return t!=null&&typeof t!="boolean"},NS=J$(function(e){return tB(e)?e:e.replace(CQ,"-$&").toLowerCase()}),jI=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(kQ,function(r,i,s){return uo={name:i,styles:s,next:uo},i})}return TQ[t]!==1&&!tB(t)&&typeof n=="number"&&n!==0?n+"px":n};function sv(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return uo={name:n.name,styles:n.styles,next:uo},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)uo={name:r.name,styles:r.styles,next:uo},r=r.next;var i=n.styles+";";return i}return AQ(e,t,n)}case"function":{if(e!==void 0){var s=uo,o=n(e);return uo=s,sv(e,t,o)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function AQ(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=sv(e,t,n[i])+";";else for(var s in n){var o=n[s];if(typeof o!="object")t!=null&&t[o]!==void 0?r+=s+"{"+t[o]+"}":VI(o)&&(r+=NS(s)+":"+jI(s,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var a=0;a<o.length;a++)VI(o[a])&&(r+=NS(s)+":"+jI(s,o[a])+";");else{var u=sv(e,t,o);switch(s){case"animation":case"animationName":{r+=NS(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}return r}var WI=/label:\s*([^\s;\n{]+)\s*(;|$)/g,uo,LO=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,s="";uo=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,s+=sv(r,n,o)):s+=o[0];for(var a=1;a<t.length;a++)s+=sv(r,n,t[a]),i&&(s+=o[a]);WI.lastIndex=0;for(var u="",f;(f=WI.exec(s))!==null;)u+="-"+f[1];var d=OQ(s)+u;return{name:d,styles:s,next:uo}},RQ=function(t){return t()},nB=LA["useInsertionEffect"]?LA["useInsertionEffect"]:!1,IQ=nB||RQ,zI=nB||N.useLayoutEffect,rB=N.createContext(typeof HTMLElement<"u"?xQ({key:"css"}):null);rB.Provider;var iB=function(t){return N.forwardRef(function(n,r){var i=N.useContext(rB);return t(n,i,r)})},ov=N.createContext({}),MQ=function(t,n){if(typeof n=="function"){var r=n(t);return r}return sc({},t,n)},DQ=BI(function(e){return BI(function(t){return MQ(e,t)})}),LQ=function(t){var n=N.useContext(ov);return t.theme!==n&&(n=DQ(n)(t.theme)),N.createElement(ov.Provider,{value:n},t.children)},sB=iB(function(e,t){var n=e.styles,r=LO([n],void 0,N.useContext(ov)),i=N.useRef();return zI(function(){var s=t.key+"-global",o=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,u=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),u!==null&&(a=!0,u.setAttribute("data-emotion",s),o.hydrate([u])),i.current=[o,a],function(){o.flush()}},[t]),zI(function(){var s=i.current,o=s[0],a=s[1];if(a){s[1]=!1;return}if(r.next!==void 0&&eB(t,r.next,!0),o.tags.length){var u=o.tags[o.tags.length-1].nextElementSibling;o.before=u,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});function FQ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return LO(t)}var NQ=function(){var t=FQ.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function $Q(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Yl(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:s,defaultValue:o}=e,a=N.createContext(o);a.displayName=t;function u(){var f;const d=N.useContext(a);if(!d&&n){const h=new Error(s??$Q(r,i));throw h.name="ContextError",(f=Error.captureStackTrace)==null||f.call(Error,h,u),h}return d}return[a.Provider,u,a]}var[BQ,UQ]=Yl({strict:!1,name:"PortalManagerContext"});function VQ(e){const{children:t,zIndex:n}=e;return de(BQ,{value:{zIndex:n},children:t})}VQ.displayName="PortalManager";var Nx=globalThis!=null&&globalThis.document?N.useLayoutEffect:N.useEffect,[oB,jQ]=Yl({strict:!1,name:"PortalContext"}),FO="chakra-portal",WQ=".chakra-portal",zQ=e=>de("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),HQ=e=>{const{appendToParentPortal:t,children:n}=e,[r,i]=N.useState(null),s=N.useRef(null),[,o]=N.useState({});N.useEffect(()=>o({}),[]);const a=jQ(),u=UQ();Nx(()=>{if(!r)return;const d=r.ownerDocument,h=t?a??d.body:d.body;if(!h)return;s.current=d.createElement("div"),s.current.className=FO,h.appendChild(s.current),o({});const v=s.current;return()=>{h.contains(v)&&h.removeChild(v)}},[r]);const f=u!=null&&u.zIndex?de(zQ,{zIndex:u==null?void 0:u.zIndex,children:n}):n;return s.current?qN.createPortal(de(oB,{value:s.current,children:f}),s.current):de("span",{ref:d=>{d&&i(d)}})},GQ=e=>{const{children:t,containerRef:n,appendToParentPortal:r}=e,i=n.current,s=i??(typeof window<"u"?document.body:void 0),o=N.useMemo(()=>{const u=i==null?void 0:i.ownerDocument.createElement("div");return u&&(u.className=FO),u},[i]),[,a]=N.useState({});return Nx(()=>a({}),[]),Nx(()=>{if(!(!o||!s))return s.appendChild(o),()=>{s.removeChild(o)}},[o,s]),s&&o?qN.createPortal(de(oB,{value:r?o:null,children:t}),o):null};function Vd(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?de(GQ,{containerRef:n,...r}):de(HQ,{...r})}Vd.className=FO;Vd.selector=WQ;Vd.displayName="Portal";function aB(){const e=N.useContext(ov);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}var lB=N.createContext({});lB.displayName="ColorModeContext";function NO(){const e=N.useContext(lB);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function YQ(){const e=NO(),t=aB();return{...e,theme:t}}var Bn=(...e)=>e.filter(Boolean).join(" ");function ma(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Array.isArray(e)}function vo(e,...t){return qQ(e)?e(...t):e}var qQ=e=>typeof e=="function",HI=e=>e?"":void 0,x0e=e=>e?!0:void 0;function oa(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}function E0e(...e){return function(n){e.forEach(r=>{r==null||r(n)})}}var ly={exports:{}};ly.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",i=800,s=16,o=9007199254740991,a="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",d="[object Boolean]",h="[object Date]",v="[object Error]",m="[object Function]",y="[object GeneratorFunction]",w="[object Map]",E="[object Number]",S="[object Null]",_="[object Object]",b="[object Proxy]",O="[object RegExp]",I="[object Set]",A="[object String]",C="[object Undefined]",P="[object WeakMap]",M="[object ArrayBuffer]",D="[object DataView]",V="[object Float32Array]",Q="[object Float64Array]",se="[object Int8Array]",ie="[object Int16Array]",q="[object Int32Array]",oe="[object Uint8Array]",ue="[object Uint8ClampedArray]",X="[object Uint16Array]",te="[object Uint32Array]",ve=/[\\^$.*+?()[\]{}|]/g,he=/^\[object .+?Constructor\]$/,we=/^(?:0|[1-9]\d*)$/,_e={};_e[V]=_e[Q]=_e[se]=_e[ie]=_e[q]=_e[oe]=_e[ue]=_e[X]=_e[te]=!0,_e[a]=_e[u]=_e[M]=_e[d]=_e[D]=_e[h]=_e[v]=_e[m]=_e[w]=_e[E]=_e[_]=_e[O]=_e[I]=_e[A]=_e[P]=!1;var Ie=typeof bi=="object"&&bi&&bi.Object===Object&&bi,me=typeof self=="object"&&self&&self.Object===Object&&self,Ae=Ie||me||Function("return this")(),De=t&&!t.nodeType&&t,Be=De&&!0&&e&&!e.nodeType&&e,nt=Be&&Be.exports===De,Xe=nt&&Ie.process,ut=function(){try{var T=Be&&Be.require&&Be.require("util").types;return T||Xe&&Xe.binding&&Xe.binding("util")}catch{}}(),Fe=ut&&ut.isTypedArray;function yt(T,F,H){switch(H.length){case 0:return T.call(F);case 1:return T.call(F,H[0]);case 2:return T.call(F,H[0],H[1]);case 3:return T.call(F,H[0],H[1],H[2])}return T.apply(F,H)}function Mt(T,F){for(var H=-1,re=Array(T);++H<T;)re[H]=F(H);return re}function dn(T){return function(F){return T(F)}}function Jn(T,F){return T==null?void 0:T[F]}function Yt(T,F){return function(H){return T(F(H))}}var Gr=Array.prototype,Li=Function.prototype,qt=Object.prototype,Wt=Ae["__core-js_shared__"],Me=Li.toString,Ye=qt.hasOwnProperty,Dt=function(){var T=/[^.]+$/.exec(Wt&&Wt.keys&&Wt.keys.IE_PROTO||"");return T?"Symbol(src)_1."+T:""}(),Et=qt.toString,Cr=Me.call(Object),ht=RegExp("^"+Me.call(Ye).replace(ve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),it=nt?Ae.Buffer:void 0,Tn=Ae.Symbol,Cn=Ae.Uint8Array,kr=it?it.allocUnsafe:void 0,Fi=Yt(Object.getPrototypeOf,Object),He=Object.create,mt=qt.propertyIsEnumerable,Pt=Gr.splice,Vn=Tn?Tn.toStringTag:void 0,cr=function(){try{var T=Ua(Object,"defineProperty");return T({},"",{}),T}catch{}}(),Jd=it?it.isBuffer:void 0,Ni=Math.max,yc=Date.now,tu=Ua(Ae,"Map"),Hs=Ua(Object,"create"),nu=function(){function T(){}return function(F){if(!Yr(F))return{};if(He)return He(F);T.prototype=F;var H=new T;return T.prototype=void 0,H}}();function Ar(T){var F=-1,H=T==null?0:T.length;for(this.clear();++F<H;){var re=T[F];this.set(re[0],re[1])}}function ru(){this.__data__=Hs?Hs(null):{},this.size=0}function iu(T){var F=this.has(T)&&delete this.__data__[T];return this.size-=F?1:0,F}function $a(T){var F=this.__data__;if(Hs){var H=F[T];return H===r?void 0:H}return Ye.call(F,T)?F[T]:void 0}function Do(T){var F=this.__data__;return Hs?F[T]!==void 0:Ye.call(F,T)}function Qd(T,F){var H=this.__data__;return this.size+=this.has(T)?0:1,H[T]=Hs&&F===void 0?r:F,this}Ar.prototype.clear=ru,Ar.prototype.delete=iu,Ar.prototype.get=$a,Ar.prototype.has=Do,Ar.prototype.set=Qd;function ci(T){var F=-1,H=T==null?0:T.length;for(this.clear();++F<H;){var re=T[F];this.set(re[0],re[1])}}function su(){this.__data__=[],this.size=0}function Zd(T){var F=this.__data__,H=gs(F,T);if(H<0)return!1;var re=F.length-1;return H==re?F.pop():Pt.call(F,H,1),--this.size,!0}function ou(T){var F=this.__data__,H=gs(F,T);return H<0?void 0:F[H][1]}function wc(T){return gs(this.__data__,T)>-1}function au(T,F){var H=this.__data__,re=gs(H,T);return re<0?(++this.size,H.push([T,F])):H[re][1]=F,this}ci.prototype.clear=su,ci.prototype.delete=Zd,ci.prototype.get=ou,ci.prototype.has=wc,ci.prototype.set=au;function fr(T){var F=-1,H=T==null?0:T.length;for(this.clear();++F<H;){var re=T[F];this.set(re[0],re[1])}}function eh(){this.size=0,this.__data__={hash:new Ar,map:new(tu||ci),string:new Ar}}function th(T){var F=Ba(this,T).delete(T);return this.size-=F?1:0,F}function nh(T){return Ba(this,T).get(T)}function rh(T){return Ba(this,T).has(T)}function ih(T,F){var H=Ba(this,T),re=H.size;return H.set(T,F),this.size+=H.size==re?0:1,this}fr.prototype.clear=eh,fr.prototype.delete=th,fr.prototype.get=nh,fr.prototype.has=rh,fr.prototype.set=ih;function kn(T){var F=this.__data__=new ci(T);this.size=F.size}function sh(){this.__data__=new ci,this.size=0}function oh(T){var F=this.__data__,H=F.delete(T);return this.size=F.size,H}function ah(T){return this.__data__.get(T)}function lh(T){return this.__data__.has(T)}function uh(T,F){var H=this.__data__;if(H instanceof ci){var re=H.__data__;if(!tu||re.length<n-1)return re.push([T,F]),this.size=++H.size,this;H=this.__data__=new fr(re)}return H.set(T,F),this.size=H.size,this}kn.prototype.clear=sh,kn.prototype.delete=oh,kn.prototype.get=ah,kn.prototype.has=lh,kn.prototype.set=uh;function ms(T,F){var H=Ha(T),re=!H&&di(T),Oe=!H&&!re&&Dc(T),Ve=!H&&!re&&!Oe&&Ks(T),Te=H||re||Oe||Ve,Ee=Te?Mt(T.length,String):[],je=Ee.length;for(var zt in T)(F||Ye.call(T,zt))&&!(Te&&(zt=="length"||Oe&&(zt=="offset"||zt=="parent")||Ve&&(zt=="buffer"||zt=="byteLength"||zt=="byteOffset")||Tc(zt,je)))&&Ee.push(zt);return Ee}function Gs(T,F,H){(H!==void 0&&!za(T[F],H)||H===void 0&&!(F in T))&&lu(T,F,H)}function ch(T,F,H){var re=T[F];(!(Ye.call(T,F)&&za(re,H))||H===void 0&&!(F in T))&&lu(T,F,H)}function gs(T,F){for(var H=T.length;H--;)if(za(T[H][0],F))return H;return-1}function lu(T,F,H){F=="__proto__"&&cr?cr(T,F,{configurable:!0,enumerable:!0,value:H,writable:!0}):T[F]=H}var fh=Pc();function _s(T){return T==null?T===void 0?C:S:Vn&&Vn in Object(T)?Oc(T):Ac(T)}function uu(T){return qs(T)&&_s(T)==a}function Sc(T){if(!Yr(T)||Ys(T))return!1;var F=$o(T)?ht:he;return F.test(Mc(T))}function fi(T){return qs(T)&&Lc(T.length)&&!!_e[_s(T)]}function dh(T){if(!Yr(T))return kc(T);var F=dr(T),H=[];for(var re in T)re=="constructor"&&(F||!Ye.call(T,re))||H.push(re);return H}function bc(T,F,H,re,Oe){T!==F&&fh(F,function(Ve,Te){if(Oe||(Oe=new kn),Yr(Ve))hh(T,F,Te,H,bc,re,Oe);else{var Ee=re?re(Wa(T,Te),Ve,Te+"",T,F,Oe):void 0;Ee===void 0&&(Ee=Ve),Gs(T,Te,Ee)}},$c)}function hh(T,F,H,re,Oe,Ve,Te){var Ee=Wa(T,H),je=Wa(F,H),zt=Te.get(je);if(zt){Gs(T,H,zt);return}var pt=Ve?Ve(Ee,je,H+"",T,F,Te):void 0,Ot=pt===void 0;if(Ot){var An=Ha(je),Rr=!An&&Dc(je),Ir=!An&&!Rr&&Ks(je);pt=je,An||Rr||Ir?Ha(Ee)?pt=Ee:Ya(Ee)?pt=Fo(Ee):Rr?(Ot=!1,pt=Ec(je,!0)):Ir?(Ot=!1,pt=cu(je,!0)):pt=[]:Fc(je)||di(je)?(pt=Ee,di(Ee)?pt=Nc(Ee):(!Yr(Ee)||$o(Ee))&&(pt=Va(je))):Ot=!1}Ot&&(Te.set(je,pt),Oe(pt,je,re,Ve,Te),Te.delete(je)),Gs(T,H,pt)}function ph(T,F){return Rc($i(T,F,L),T+"")}var xc=cr?function(T,F){return cr(T,"toString",{configurable:!0,enumerable:!1,value:Lt(F),writable:!0})}:L;function Ec(T,F){if(F)return T.slice();var H=T.length,re=kr?kr(H):new T.constructor(H);return T.copy(re),re}function Lo(T){var F=new T.constructor(T.byteLength);return new Cn(F).set(new Cn(T)),F}function cu(T,F){var H=F?Lo(T.buffer):T.buffer;return new T.constructor(H,T.byteOffset,T.length)}function Fo(T,F){var H=-1,re=T.length;for(F||(F=Array(re));++H<re;)F[H]=T[H];return F}function fu(T,F,H,re){var Oe=!H;H||(H={});for(var Ve=-1,Te=F.length;++Ve<Te;){var Ee=F[Ve],je=re?re(H[Ee],T[Ee],Ee,H,T):void 0;je===void 0&&(je=T[Ee]),Oe?lu(H,Ee,je):ch(H,Ee,je)}return H}function No(T){return ph(function(F,H){var re=-1,Oe=H.length,Ve=Oe>1?H[Oe-1]:void 0,Te=Oe>2?H[2]:void 0;for(Ve=T.length>3&&typeof Ve=="function"?(Oe--,Ve):void 0,Te&&Cc(H[0],H[1],Te)&&(Ve=Oe<3?void 0:Ve,Oe=1),F=Object(F);++re<Oe;){var Ee=H[re];Ee&&T(F,Ee,re,Ve)}return F})}function Pc(T){return function(F,H,re){for(var Oe=-1,Ve=Object(F),Te=re(F),Ee=Te.length;Ee--;){var je=Te[T?Ee:++Oe];if(H(Ve[je],je,Ve)===!1)break}return F}}function Ba(T,F){var H=T.__data__;return ja(F)?H[typeof F=="string"?"string":"hash"]:H.map}function Ua(T,F){var H=Jn(T,F);return Sc(H)?H:void 0}function Oc(T){var F=Ye.call(T,Vn),H=T[Vn];try{T[Vn]=void 0;var re=!0}catch{}var Oe=Et.call(T);return re&&(F?T[Vn]=H:delete T[Vn]),Oe}function Va(T){return typeof T.constructor=="function"&&!dr(T)?nu(Fi(T)):{}}function Tc(T,F){var H=typeof T;return F=F??o,!!F&&(H=="number"||H!="symbol"&&we.test(T))&&T>-1&&T%1==0&&T<F}function Cc(T,F,H){if(!Yr(H))return!1;var re=typeof F;return(re=="number"?Ga(H)&&Tc(F,H.length):re=="string"&&F in H)?za(H[F],T):!1}function ja(T){var F=typeof T;return F=="string"||F=="number"||F=="symbol"||F=="boolean"?T!=="__proto__":T===null}function Ys(T){return!!Dt&&Dt in T}function dr(T){var F=T&&T.constructor,H=typeof F=="function"&&F.prototype||qt;return T===H}function kc(T){var F=[];if(T!=null)for(var H in Object(T))F.push(H);return F}function Ac(T){return Et.call(T)}function $i(T,F,H){return F=Ni(F===void 0?T.length-1:F,0),function(){for(var re=arguments,Oe=-1,Ve=Ni(re.length-F,0),Te=Array(Ve);++Oe<Ve;)Te[Oe]=re[F+Oe];Oe=-1;for(var Ee=Array(F+1);++Oe<F;)Ee[Oe]=re[Oe];return Ee[F]=H(Te),yt(T,this,Ee)}}function Wa(T,F){if(!(F==="constructor"&&typeof T[F]=="function")&&F!="__proto__")return T[F]}var Rc=Ic(xc);function Ic(T){var F=0,H=0;return function(){var re=yc(),Oe=s-(re-H);if(H=re,Oe>0){if(++F>=i)return arguments[0]}else F=0;return T.apply(void 0,arguments)}}function Mc(T){if(T!=null){try{return Me.call(T)}catch{}try{return T+""}catch{}}return""}function za(T,F){return T===F||T!==T&&F!==F}var di=uu(function(){return arguments}())?uu:function(T){return qs(T)&&Ye.call(T,"callee")&&!mt.call(T,"callee")},Ha=Array.isArray;function Ga(T){return T!=null&&Lc(T.length)&&!$o(T)}function Ya(T){return qs(T)&&Ga(T)}var Dc=Jd||j;function $o(T){if(!Yr(T))return!1;var F=_s(T);return F==m||F==y||F==f||F==b}function Lc(T){return typeof T=="number"&&T>-1&&T%1==0&&T<=o}function Yr(T){var F=typeof T;return T!=null&&(F=="object"||F=="function")}function qs(T){return T!=null&&typeof T=="object"}function Fc(T){if(!qs(T)||_s(T)!=_)return!1;var F=Fi(T);if(F===null)return!0;var H=Ye.call(F,"constructor")&&F.constructor;return typeof H=="function"&&H instanceof H&&Me.call(H)==Cr}var Ks=Fe?dn(Fe):fi;function Nc(T){return fu(T,$c(T))}function $c(T){return Ga(T)?ms(T,!0):dh(T)}var Nt=No(function(T,F,H,re){bc(T,F,H,re)});function Lt(T){return function(){return T}}function L(T){return T}function j(){return!1}e.exports=Nt})(ly,ly.exports);var KQ=ly.exports;const mo=l0(KQ);var XQ=e=>/!(important)?$/.test(e),GI=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,JQ=(e,t)=>n=>{const r=String(t),i=XQ(r),s=GI(r),o=e?`${e}.${s}`:s;let a=ma(n.__cssMap)&&o in n.__cssMap?n.__cssMap[o].varRef:t;return a=GI(a),i?`${a} !important`:a};function $O(e){const{scale:t,transform:n,compose:r}=e;return(s,o)=>{var a;const u=JQ(t,s)(o);let f=(a=n==null?void 0:n(u,o))!=null?a:u;return r&&(f=r(f,o)),f}}var pg=(...e)=>t=>e.reduce((n,r)=>r(n),t);function Gi(e,t){return n=>{const r={property:n,scale:e};return r.transform=$O({scale:e,transform:t}),r}}var QQ=({rtl:e,ltr:t})=>n=>n.direction==="rtl"?e:t;function ZQ(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:QQ(t),transform:n?$O({scale:n,compose:r}):r}}var uB=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function eZ(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...uB].join(" ")}function tZ(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...uB].join(" ")}var nZ={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},rZ={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function iZ(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var sZ={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},$x={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},oZ=new Set(Object.values($x)),Bx=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),aZ=e=>e.trim();function lZ(e,t){if(e==null||Bx.has(e))return e;if(!(Ux(e)||Bx.has(e)))return`url('${e}')`;const i=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),s=i==null?void 0:i[1],o=i==null?void 0:i[2];if(!s||!o)return e;const a=s.includes("-gradient")?s:`${s}-gradient`,[u,...f]=o.split(",").map(aZ).filter(Boolean);if((f==null?void 0:f.length)===0)return e;const d=u in $x?$x[u]:u;f.unshift(d);const h=f.map(v=>{if(oZ.has(v))return v;const m=v.indexOf(" "),[y,w]=m!==-1?[v.substr(0,m),v.substr(m+1)]:[v],E=Ux(w)?w:w&&w.split(" "),S=`colors.${y}`,_=S in t.__cssMap?t.__cssMap[S].varRef:y;return E?[_,...Array.isArray(E)?E:[E]].join(" "):_});return`${a}(${h.join(", ")})`}var Ux=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),uZ=(e,t)=>lZ(e,t??{});function cZ(e){return/^var\(--.+\)$/.test(e)}var fZ=e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}},no=e=>t=>`${e}(${t})`,wt={filter(e){return e!=="auto"?e:nZ},backdropFilter(e){return e!=="auto"?e:rZ},ring(e){return iZ(wt.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?eZ():e==="auto-gpu"?tZ():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=fZ(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const n={left:"right",right:"left"};return t.direction==="rtl"?n[e]:e},degree(e){if(cZ(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:uZ,blur:no("blur"),opacity:no("opacity"),brightness:no("brightness"),contrast:no("contrast"),dropShadow:no("drop-shadow"),grayscale:no("grayscale"),hueRotate:no("hue-rotate"),invert:no("invert"),saturate:no("saturate"),sepia:no("sepia"),bgImage(e){return e==null||Ux(e)||Bx.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=(t=sZ[e])!=null?t:{},i={flexDirection:e};return n&&(i[n]=1),r&&(i[r]=1),i}},U={borderWidths:Gi("borderWidths"),borderStyles:Gi("borderStyles"),colors:Gi("colors"),borders:Gi("borders"),gradients:Gi("gradients",wt.gradient),radii:Gi("radii",wt.px),space:Gi("space",pg(wt.vh,wt.px)),spaceT:Gi("space",pg(wt.vh,wt.px)),degreeT(e){return{property:e,transform:wt.degree}},prop(e,t,n){return{property:e,scale:t,...t&&{transform:$O({scale:t,transform:n})}}},propT(e,t){return{property:e,transform:t}},sizes:Gi("sizes",pg(wt.vh,wt.px)),sizesT:Gi("sizes",pg(wt.vh,wt.fraction)),shadows:Gi("shadows"),logical:ZQ,blur:Gi("blur",wt.blur)},o_={background:U.colors("background"),backgroundColor:U.colors("backgroundColor"),backgroundImage:U.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:wt.bgClip},bgSize:U.prop("backgroundSize"),bgPosition:U.prop("backgroundPosition"),bg:U.colors("background"),bgColor:U.colors("backgroundColor"),bgPos:U.prop("backgroundPosition"),bgRepeat:U.prop("backgroundRepeat"),bgAttachment:U.prop("backgroundAttachment"),bgGradient:U.gradients("backgroundImage"),bgClip:{transform:wt.bgClip}};Object.assign(o_,{bgImage:o_.backgroundImage,bgImg:o_.backgroundImage});var Ct={border:U.borders("border"),borderWidth:U.borderWidths("borderWidth"),borderStyle:U.borderStyles("borderStyle"),borderColor:U.colors("borderColor"),borderRadius:U.radii("borderRadius"),borderTop:U.borders("borderTop"),borderBlockStart:U.borders("borderBlockStart"),borderTopLeftRadius:U.radii("borderTopLeftRadius"),borderStartStartRadius:U.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:U.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:U.radii("borderTopRightRadius"),borderStartEndRadius:U.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:U.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:U.borders("borderRight"),borderInlineEnd:U.borders("borderInlineEnd"),borderBottom:U.borders("borderBottom"),borderBlockEnd:U.borders("borderBlockEnd"),borderBottomLeftRadius:U.radii("borderBottomLeftRadius"),borderBottomRightRadius:U.radii("borderBottomRightRadius"),borderLeft:U.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:U.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:U.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:U.borders(["borderLeft","borderRight"]),borderInline:U.borders("borderInline"),borderY:U.borders(["borderTop","borderBottom"]),borderBlock:U.borders("borderBlock"),borderTopWidth:U.borderWidths("borderTopWidth"),borderBlockStartWidth:U.borderWidths("borderBlockStartWidth"),borderTopColor:U.colors("borderTopColor"),borderBlockStartColor:U.colors("borderBlockStartColor"),borderTopStyle:U.borderStyles("borderTopStyle"),borderBlockStartStyle:U.borderStyles("borderBlockStartStyle"),borderBottomWidth:U.borderWidths("borderBottomWidth"),borderBlockEndWidth:U.borderWidths("borderBlockEndWidth"),borderBottomColor:U.colors("borderBottomColor"),borderBlockEndColor:U.colors("borderBlockEndColor"),borderBottomStyle:U.borderStyles("borderBottomStyle"),borderBlockEndStyle:U.borderStyles("borderBlockEndStyle"),borderLeftWidth:U.borderWidths("borderLeftWidth"),borderInlineStartWidth:U.borderWidths("borderInlineStartWidth"),borderLeftColor:U.colors("borderLeftColor"),borderInlineStartColor:U.colors("borderInlineStartColor"),borderLeftStyle:U.borderStyles("borderLeftStyle"),borderInlineStartStyle:U.borderStyles("borderInlineStartStyle"),borderRightWidth:U.borderWidths("borderRightWidth"),borderInlineEndWidth:U.borderWidths("borderInlineEndWidth"),borderRightColor:U.colors("borderRightColor"),borderInlineEndColor:U.colors("borderInlineEndColor"),borderRightStyle:U.borderStyles("borderRightStyle"),borderInlineEndStyle:U.borderStyles("borderInlineEndStyle"),borderTopRadius:U.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:U.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:U.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:U.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Ct,{rounded:Ct.borderRadius,roundedTop:Ct.borderTopRadius,roundedTopLeft:Ct.borderTopLeftRadius,roundedTopRight:Ct.borderTopRightRadius,roundedTopStart:Ct.borderStartStartRadius,roundedTopEnd:Ct.borderStartEndRadius,roundedBottom:Ct.borderBottomRadius,roundedBottomLeft:Ct.borderBottomLeftRadius,roundedBottomRight:Ct.borderBottomRightRadius,roundedBottomStart:Ct.borderEndStartRadius,roundedBottomEnd:Ct.borderEndEndRadius,roundedLeft:Ct.borderLeftRadius,roundedRight:Ct.borderRightRadius,roundedStart:Ct.borderInlineStartRadius,roundedEnd:Ct.borderInlineEndRadius,borderStart:Ct.borderInlineStart,borderEnd:Ct.borderInlineEnd,borderTopStartRadius:Ct.borderStartStartRadius,borderTopEndRadius:Ct.borderStartEndRadius,borderBottomStartRadius:Ct.borderEndStartRadius,borderBottomEndRadius:Ct.borderEndEndRadius,borderStartRadius:Ct.borderInlineStartRadius,borderEndRadius:Ct.borderInlineEndRadius,borderStartWidth:Ct.borderInlineStartWidth,borderEndWidth:Ct.borderInlineEndWidth,borderStartColor:Ct.borderInlineStartColor,borderEndColor:Ct.borderInlineEndColor,borderStartStyle:Ct.borderInlineStartStyle,borderEndStyle:Ct.borderInlineEndStyle});var dZ={color:U.colors("color"),textColor:U.colors("color"),fill:U.colors("fill"),stroke:U.colors("stroke")},Vx={boxShadow:U.shadows("boxShadow"),mixBlendMode:!0,blendMode:U.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:U.prop("backgroundBlendMode"),opacity:!0};Object.assign(Vx,{shadow:Vx.boxShadow});var hZ={filter:{transform:wt.filter},blur:U.blur("--chakra-blur"),brightness:U.propT("--chakra-brightness",wt.brightness),contrast:U.propT("--chakra-contrast",wt.contrast),hueRotate:U.degreeT("--chakra-hue-rotate"),invert:U.propT("--chakra-invert",wt.invert),saturate:U.propT("--chakra-saturate",wt.saturate),dropShadow:U.propT("--chakra-drop-shadow",wt.dropShadow),backdropFilter:{transform:wt.backdropFilter},backdropBlur:U.blur("--chakra-backdrop-blur"),backdropBrightness:U.propT("--chakra-backdrop-brightness",wt.brightness),backdropContrast:U.propT("--chakra-backdrop-contrast",wt.contrast),backdropHueRotate:U.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:U.propT("--chakra-backdrop-invert",wt.invert),backdropSaturate:U.propT("--chakra-backdrop-saturate",wt.saturate)},uy={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:wt.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:U.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:U.space("gap"),rowGap:U.space("rowGap"),columnGap:U.space("columnGap")};Object.assign(uy,{flexDir:uy.flexDirection});var cB={gridGap:U.space("gridGap"),gridColumnGap:U.space("gridColumnGap"),gridRowGap:U.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},pZ={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:wt.outline},outlineOffset:!0,outlineColor:U.colors("outlineColor")},qi={width:U.sizesT("width"),inlineSize:U.sizesT("inlineSize"),height:U.sizes("height"),blockSize:U.sizes("blockSize"),boxSize:U.sizes(["width","height"]),minWidth:U.sizes("minWidth"),minInlineSize:U.sizes("minInlineSize"),minHeight:U.sizes("minHeight"),minBlockSize:U.sizes("minBlockSize"),maxWidth:U.sizes("maxWidth"),maxInlineSize:U.sizes("maxInlineSize"),maxHeight:U.sizes("maxHeight"),maxBlockSize:U.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (min-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r.minW)!=null?i:e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,i;return{[`@media screen and (max-width: ${(i=(r=(n=t.__breakpoints)==null?void 0:n.get(e))==null?void 0:r._minW)!=null?i:e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:U.propT("float",wt.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(qi,{w:qi.width,h:qi.height,minW:qi.minWidth,maxW:qi.maxWidth,minH:qi.minHeight,maxH:qi.maxHeight,overscroll:qi.overscrollBehavior,overscrollX:qi.overscrollBehaviorX,overscrollY:qi.overscrollBehaviorY});var vZ={listStyleType:!0,listStylePosition:!0,listStylePos:U.prop("listStylePosition"),listStyleImage:!0,listStyleImg:U.prop("listStyleImage")};function mZ(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}var gZ=e=>{const t=new WeakMap;return(r,i,s,o)=>{if(typeof r>"u")return e(r,i,s);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(i))return a.get(i);const u=e(r,i,s,o);return a.set(i,u),u}},_Z=gZ(mZ),yZ={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},wZ={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},$S=(e,t,n)=>{const r={},i=_Z(e,t,{});for(const s in i)s in n&&n[s]!=null||(r[s]=i[s]);return r},SZ={srOnly:{transform(e){return e===!0?yZ:e==="focusable"?wZ:{}}},layerStyle:{processResult:!0,transform:(e,t,n)=>$S(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>$S(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>$S(t,e,n)}},bp={position:!0,pos:U.prop("position"),zIndex:U.prop("zIndex","zIndices"),inset:U.spaceT("inset"),insetX:U.spaceT(["left","right"]),insetInline:U.spaceT("insetInline"),insetY:U.spaceT(["top","bottom"]),insetBlock:U.spaceT("insetBlock"),top:U.spaceT("top"),insetBlockStart:U.spaceT("insetBlockStart"),bottom:U.spaceT("bottom"),insetBlockEnd:U.spaceT("insetBlockEnd"),left:U.spaceT("left"),insetInlineStart:U.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:U.spaceT("right"),insetInlineEnd:U.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(bp,{insetStart:bp.insetInlineStart,insetEnd:bp.insetInlineEnd});var bZ={ring:{transform:wt.ring},ringColor:U.colors("--chakra-ring-color"),ringOffset:U.prop("--chakra-ring-offset-width"),ringOffsetColor:U.colors("--chakra-ring-offset-color"),ringInset:U.prop("--chakra-ring-inset")},Qt={margin:U.spaceT("margin"),marginTop:U.spaceT("marginTop"),marginBlockStart:U.spaceT("marginBlockStart"),marginRight:U.spaceT("marginRight"),marginInlineEnd:U.spaceT("marginInlineEnd"),marginBottom:U.spaceT("marginBottom"),marginBlockEnd:U.spaceT("marginBlockEnd"),marginLeft:U.spaceT("marginLeft"),marginInlineStart:U.spaceT("marginInlineStart"),marginX:U.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:U.spaceT("marginInline"),marginY:U.spaceT(["marginTop","marginBottom"]),marginBlock:U.spaceT("marginBlock"),padding:U.space("padding"),paddingTop:U.space("paddingTop"),paddingBlockStart:U.space("paddingBlockStart"),paddingRight:U.space("paddingRight"),paddingBottom:U.space("paddingBottom"),paddingBlockEnd:U.space("paddingBlockEnd"),paddingLeft:U.space("paddingLeft"),paddingInlineStart:U.space("paddingInlineStart"),paddingInlineEnd:U.space("paddingInlineEnd"),paddingX:U.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:U.space("paddingInline"),paddingY:U.space(["paddingTop","paddingBottom"]),paddingBlock:U.space("paddingBlock")};Object.assign(Qt,{m:Qt.margin,mt:Qt.marginTop,mr:Qt.marginRight,me:Qt.marginInlineEnd,marginEnd:Qt.marginInlineEnd,mb:Qt.marginBottom,ml:Qt.marginLeft,ms:Qt.marginInlineStart,marginStart:Qt.marginInlineStart,mx:Qt.marginX,my:Qt.marginY,p:Qt.padding,pt:Qt.paddingTop,py:Qt.paddingY,px:Qt.paddingX,pb:Qt.paddingBottom,pl:Qt.paddingLeft,ps:Qt.paddingInlineStart,paddingStart:Qt.paddingInlineStart,pr:Qt.paddingRight,pe:Qt.paddingInlineEnd,paddingEnd:Qt.paddingInlineEnd});var xZ={textDecorationColor:U.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:U.shadows("textShadow")},EZ={clipPath:!0,transform:U.propT("transform",wt.transform),transformOrigin:!0,translateX:U.spaceT("--chakra-translate-x"),translateY:U.spaceT("--chakra-translate-y"),skewX:U.degreeT("--chakra-skew-x"),skewY:U.degreeT("--chakra-skew-y"),scaleX:U.prop("--chakra-scale-x"),scaleY:U.prop("--chakra-scale-y"),scale:U.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:U.degreeT("--chakra-rotate")},PZ={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:U.prop("transitionDuration","transition.duration"),transitionProperty:U.prop("transitionProperty","transition.property"),transitionTimingFunction:U.prop("transitionTimingFunction","transition.easing")},OZ={fontFamily:U.prop("fontFamily","fonts"),fontSize:U.prop("fontSize","fontSizes",wt.px),fontWeight:U.prop("fontWeight","fontWeights"),lineHeight:U.prop("lineHeight","lineHeights"),letterSpacing:U.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},TZ={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:U.spaceT("scrollMargin"),scrollMarginTop:U.spaceT("scrollMarginTop"),scrollMarginBottom:U.spaceT("scrollMarginBottom"),scrollMarginLeft:U.spaceT("scrollMarginLeft"),scrollMarginRight:U.spaceT("scrollMarginRight"),scrollMarginX:U.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:U.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:U.spaceT("scrollPadding"),scrollPaddingTop:U.spaceT("scrollPaddingTop"),scrollPaddingBottom:U.spaceT("scrollPaddingBottom"),scrollPaddingLeft:U.spaceT("scrollPaddingLeft"),scrollPaddingRight:U.spaceT("scrollPaddingRight"),scrollPaddingX:U.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:U.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function fB(e){return ma(e)&&e.reference?e.reference:String(e)}var H0=(e,...t)=>t.map(fB).join(` ${e} `).replace(/calc/g,""),YI=(...e)=>`calc(${H0("+",...e)})`,qI=(...e)=>`calc(${H0("-",...e)})`,jx=(...e)=>`calc(${H0("*",...e)})`,KI=(...e)=>`calc(${H0("/",...e)})`,XI=e=>{const t=fB(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:jx(t,-1)},Mu=Object.assign(e=>({add:(...t)=>Mu(YI(e,...t)),subtract:(...t)=>Mu(qI(e,...t)),multiply:(...t)=>Mu(jx(e,...t)),divide:(...t)=>Mu(KI(e,...t)),negate:()=>Mu(XI(e)),toString:()=>e.toString()}),{add:YI,subtract:qI,multiply:jx,divide:KI,negate:XI});function CZ(e,t="-"){return e.replace(/\s+/g,t)}function kZ(e){const t=CZ(e.toString());return RZ(AZ(t))}function AZ(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function RZ(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function IZ(e,t=""){return[t,e].filter(Boolean).join("-")}function MZ(e,t){return`var(${e}${t?`, ${t}`:""})`}function DZ(e,t=""){return kZ(`--${IZ(e,t)}`)}function Wx(e,t,n){const r=DZ(e,n);return{variable:r,reference:MZ(r,t)}}function P0e(e,t){const n={};for(const r of t){if(Array.isArray(r)){const[i,s]=r;n[i]=Wx(`${e}-${i}`,s);continue}n[r]=Wx(`${e}-${r}`)}return n}function LZ(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function FZ(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}function zx(e){if(e==null)return e;const{unitless:t}=FZ(e);return t||typeof e=="number"?`${e}px`:e}var dB=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,BO=e=>Object.fromEntries(Object.entries(e).sort(dB));function JI(e){const t=BO(e);return Object.assign(Object.values(t),t)}function NZ(e){const t=Object.keys(BO(e));return new Set(t)}function QI(e){var t;if(!e)return e;e=(t=zx(e))!=null?t:e;const n=-.02;return typeof e=="number"?`${e+n}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+n}`)}function rp(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${zx(e)})`),t&&n.push("and",`(max-width: ${zx(t)})`),n.join(" ")}function $Z(e){var t;if(!e)return null;e.base=(t=e.base)!=null?t:"0px";const n=JI(e),r=Object.entries(e).sort(dB).map(([o,a],u,f)=>{var d;let[,h]=(d=f[u+1])!=null?d:[];return h=parseFloat(h)>0?QI(h):void 0,{_minW:QI(a),breakpoint:o,minW:a,maxW:h,maxWQuery:rp(null,h),minWQuery:rp(a),minMaxQuery:rp(a,h)}}),i=NZ(e),s=Array.from(i.values());return{keys:i,normalized:n,isResponsive(o){const a=Object.keys(o);return a.length>0&&a.every(u=>i.has(u))},asObject:BO(e),asArray:JI(e),details:r,get(o){return r.find(a=>a.breakpoint===o)},media:[null,...n.map(o=>rp(o)).slice(1)],toArrayValue(o){if(!ma(o))throw new Error("toArrayValue: value must be an object");const a=s.map(u=>{var f;return(f=o[u])!=null?f:null});for(;LZ(a)===null;)a.pop();return a},toObjectValue(o){if(!Array.isArray(o))throw new Error("toObjectValue: value must be an array");return o.reduce((a,u,f)=>{const d=s[f];return d!=null&&u!=null&&(a[d]=u),a},{})}}}var Zn={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},il=e=>hB(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Xo=e=>hB(t=>e(t,"~ &"),"[data-peer]",".peer"),hB=(e,...t)=>t.map(e).join(", "),G0={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:il(Zn.hover),_peerHover:Xo(Zn.hover),_groupFocus:il(Zn.focus),_peerFocus:Xo(Zn.focus),_groupFocusVisible:il(Zn.focusVisible),_peerFocusVisible:Xo(Zn.focusVisible),_groupActive:il(Zn.active),_peerActive:Xo(Zn.active),_groupDisabled:il(Zn.disabled),_peerDisabled:Xo(Zn.disabled),_groupInvalid:il(Zn.invalid),_peerInvalid:Xo(Zn.invalid),_groupChecked:il(Zn.checked),_peerChecked:Xo(Zn.checked),_groupFocusWithin:il(Zn.focusWithin),_peerFocusWithin:Xo(Zn.focusWithin),_peerPlaceholderShown:Xo(Zn.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},pB=Object.keys(G0);function ZI(e,t){return Wx(String(e).replace(/\./g,"-"),void 0,t)}function BZ(e,t){let n={};const r={};for(const[i,s]of Object.entries(e)){const{isSemantic:o,value:a}=s,{variable:u,reference:f}=ZI(i,t==null?void 0:t.cssVarPrefix);if(!o){if(i.startsWith("space")){const v=i.split("."),[m,...y]=v,w=`${m}.-${y.join(".")}`,E=Mu.negate(a),S=Mu.negate(f);r[w]={value:E,var:u,varRef:S}}n[u]=a,r[i]={value:a,var:u,varRef:f};continue}const d=v=>{const y=[String(i).split(".")[0],v].join(".");if(!e[y])return v;const{reference:E}=ZI(y,t==null?void 0:t.cssVarPrefix);return E},h=ma(a)?a:{default:a};n=mo(n,Object.entries(h).reduce((v,[m,y])=>{var w,E;if(!y)return v;const S=d(`${y}`);if(m==="default")return v[u]=S,v;const _=(E=(w=G0)==null?void 0:w[m])!=null?E:m;return v[_]={[u]:S},v},{})),r[i]={value:f,var:u,varRef:f}}return{cssVars:n,cssMap:r}}function UZ(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function VZ(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function jZ(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}function eM(e,t,n={}){const{stop:r,getKey:i}=n;function s(o,a=[]){var u;if(jZ(o)||Array.isArray(o)){const f={};for(const[d,h]of Object.entries(o)){const v=(u=i==null?void 0:i(d))!=null?u:d,m=[...a,v];if(r!=null&&r(o,m))return t(o,a);f[v]=s(h,m)}return f}return t(o,a)}return s(e)}var WZ=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function zZ(e){return VZ(e,WZ)}function HZ(e){return e.semanticTokens}function GZ(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...i}=e;return i}var YZ=e=>pB.includes(e)||e==="default";function qZ({tokens:e,semanticTokens:t}){const n={};return eM(e,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!1,value:r})}),eM(t,(r,i)=>{r!=null&&(n[i.join(".")]={isSemantic:!0,value:r})},{stop:r=>Object.keys(r).every(YZ)}),n}function KZ(e){var t;const n=GZ(e),r=zZ(n),i=HZ(n),s=qZ({tokens:r,semanticTokens:i}),o=(t=n.config)==null?void 0:t.cssVarPrefix,{cssMap:a,cssVars:u}=BZ(s,{cssVarPrefix:o});return Object.assign(n,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...u},__cssMap:a,__breakpoints:$Z(n.breakpoints)}),n}var UO=mo({},o_,Ct,dZ,uy,qi,hZ,bZ,pZ,cB,SZ,bp,Vx,Qt,TZ,OZ,xZ,EZ,vZ,PZ),XZ=Object.assign({},Qt,qi,uy,cB,bp),O0e=Object.keys(XZ),JZ=[...Object.keys(UO),...pB],QZ={...UO,...G0},ZZ=e=>e in QZ,eee=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:i}=t.__breakpoints,s={};for(const o in e){let a=vo(e[o],t);if(a==null)continue;if(a=ma(a)&&n(a)?r(a):a,!Array.isArray(a)){s[o]=a;continue}const u=a.slice(0,i.length).length;for(let f=0;f<u;f+=1){const d=i==null?void 0:i[f];if(!d){s[o]=a[f];continue}s[d]=s[d]||{},a[f]!=null&&(s[d][o]=a[f])}}return s};function tee(e){const t=[];let n="",r=!1;for(let i=0;i<e.length;i++){const s=e[i];s==="("?(r=!0,n+=s):s===")"?(r=!1,n+=s):s===","&&!r?(t.push(n),n=""):n+=s}return n=n.trim(),n&&t.push(n),t}function nee(e){return/^var\(--.+\)$/.test(e)}var ree=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!nee(t),iee=(e,t)=>{var n,r;if(t==null)return t;const i=u=>{var f,d;return(d=(f=e.__cssMap)==null?void 0:f[u])==null?void 0:d.varRef},s=u=>{var f;return(f=i(u))!=null?f:u},[o,a]=tee(t);return t=(r=(n=i(o))!=null?n:s(a))!=null?r:s(t),t};function see(e){const{configs:t={},pseudos:n={},theme:r}=e,i=(s,o=!1)=>{var a,u,f;const d=vo(s,r),h=eee(d)(r);let v={};for(let m in h){const y=h[m];let w=vo(y,r);m in n&&(m=n[m]),ree(m,w)&&(w=iee(r,w));let E=t[m];if(E===!0&&(E={property:m}),ma(w)){v[m]=(a=v[m])!=null?a:{},v[m]=mo({},v[m],i(w,!0));continue}let S=(f=(u=E==null?void 0:E.transform)==null?void 0:u.call(E,w,r,d))!=null?f:w;S=E!=null&&E.processResult?i(S,!0):S;const _=vo(E==null?void 0:E.property,r);if(!o&&(E!=null&&E.static)){const b=vo(E.static,r);v=mo({},v,b)}if(_&&Array.isArray(_)){for(const b of _)v[b]=S;continue}if(_){_==="&"&&ma(S)?v=mo({},v,S):v[_]=S;continue}if(ma(S)){v=mo({},v,S);continue}v[m]=S}return v};return i}var vB=e=>t=>see({theme:t,pseudos:G0,configs:UO})(e);function T0e(e){return e}function C0e(e){return e}function k0e(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function oee(e,t){if(Array.isArray(e))return e;if(ma(e))return t(e);if(e!=null)return[e]}function aee(e,t){for(let n=t+1;n<e.length;n++)if(e[n]!=null)return n;return-1}function lee(e){const t=e.__breakpoints;return function(r,i,s,o){var a,u;if(!t)return;const f={},d=oee(s,t.toArrayValue);if(!d)return f;const h=d.length,v=h===1,m=!!r.parts;for(let y=0;y<h;y++){const w=t.details[y],E=t.details[aee(d,y)],S=rp(w.minW,E==null?void 0:E._minW),_=vo((a=r[i])==null?void 0:a[d[y]],o);if(_){if(m){(u=r.parts)==null||u.forEach(b=>{mo(f,{[b]:v?_[b]:{[S]:_[b]}})});continue}if(!m){v?mo(f,_):f[S]=_;continue}f[S]=_}}return f}}function uee(e){return t=>{var n;const{variant:r,size:i,theme:s}=t,o=lee(s);return mo({},vo((n=e.baseStyle)!=null?n:{},t),o(e,"sizes",i,t),o(e,"variants",r,t))}}function cee(e,t,n){var r,i,s;return(s=(i=(r=e.__cssMap)==null?void 0:r[`${t}.${n}`])==null?void 0:i.varRef)!=null?s:n}function jd(e){return UZ(e,["styleConfig","size","variant","colorScheme"])}function fee(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}function dee(e,t,n,r){const i=typeof t=="string"?t.split("."):[t];for(r=0;r<i.length&&e;r+=1)e=e[i[r]];return e===void 0?n:e}var hee=e=>{const t=new WeakMap;return(r,i,s,o)=>{if(typeof r>"u")return e(r,i,s);t.has(r)||t.set(r,new Map);const a=t.get(r);if(a.has(i))return a.get(i);const u=e(r,i,s,o);return a.set(i,u),u}},mB=hee(dee);function gB(e,t){const n={};return Object.keys(e).forEach(r=>{const i=e[r];t(i,r,e)&&(n[r]=i)}),n}var _B=e=>gB(e,t=>t!=null);function pee(e){return typeof e=="function"}function yB(e,...t){return pee(e)?e(...t):e}function A0e(...e){return function(n){e.some(r=>(r==null||r(n),n==null?void 0:n.defaultPrevented))}}var vee=typeof Element<"u",mee=typeof Map=="function",gee=typeof Set=="function",_ee=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a_(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!a_(e[r],t[r]))return!1;return!0}var s;if(mee&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!a_(r.value[1],t.get(r.value[0])))return!1;return!0}if(gee&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(_ee&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(vee&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!a_(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var yee=function(t,n){try{return a_(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const wee=l0(yee);function wB(e,t={}){var n;const{styleConfig:r,...i}=t,{theme:s,colorMode:o}=YQ(),a=e?mB(s,`components.${e}`):void 0,u=r||a,f=mo({theme:s,colorMode:o},(n=u==null?void 0:u.defaultProps)!=null?n:{},_B(fee(i,["children"]))),d=N.useRef({});if(u){const v=uee(u)(f);wee(d.current,v)||(d.current=v)}return d.current}function Wd(e,t={}){return wB(e,t)}function SB(e,t={}){return wB(e,t)}var See=new Set([...JZ,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),bee=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function xee(e){return bee.has(e)||!See.has(e)}function Eee(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const r of t)if(r!=null)for(const i in r)Object.prototype.hasOwnProperty.call(r,i)&&(i in n&&delete n[i],n[i]=r[i]);return n}function Pee(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}var Oee=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Tee=J$(function(e){return Oee.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Cee=Tee,kee=function(t){return t!=="theme"},tM=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Cee:kee},nM=function(t,n,r){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(o){return t.__emotion_forwardProp(o)&&s(o)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Aee=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Z$(n,r,i),IQ(function(){return eB(n,r,i)}),null},Ree=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,o;n!==void 0&&(s=n.label,o=n.target);var a=nM(t,n,r),u=a||tM(i),f=!u("as");return function(){var d=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{h.push(d[0][0]);for(var v=d.length,m=1;m<v;m++)h.push(d[m],d[0][m])}var y=iB(function(w,E,S){var _=f&&w.as||i,b="",O=[],I=w;if(w.theme==null){I={};for(var A in w)I[A]=w[A];I.theme=N.useContext(ov)}typeof w.className=="string"?b=PQ(E.registered,O,w.className):w.className!=null&&(b=w.className+" ");var C=LO(h.concat(O),E.registered,I);b+=E.key+"-"+C.name,o!==void 0&&(b+=" "+o);var P=f&&a===void 0?tM(_):u,M={};for(var D in w)f&&D==="as"||P(D)&&(M[D]=w[D]);return M.className=b,M.ref=S,N.createElement(N.Fragment,null,N.createElement(Aee,{cache:E,serialized:C,isStringTag:typeof _=="string"}),N.createElement(_,M))});return y.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=h,y.__emotion_forwardProp=a,Object.defineProperty(y,"toString",{value:function(){return"."+o}}),y.withComponent=function(w,E){return e(w,sc({},n,E,{shouldForwardProp:nM(y,E,!0)})).apply(void 0,h)},y}},Iee=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],cy=Ree.bind();Iee.forEach(function(e){cy[e]=cy(e)});var rM,Mee=(rM=cy.default)!=null?rM:cy,Dee=({baseStyle:e})=>t=>{const{theme:n,css:r,__css:i,sx:s,...o}=t,a=gB(o,(h,v)=>ZZ(v)),u=yB(e,t),f=Eee({},i,u,_B(a),s),d=vB(f)(t.theme);return r?[d,r]:d};function BS(e,t){const{baseStyle:n,...r}=t??{};r.shouldForwardProp||(r.shouldForwardProp=xee);const i=Dee({baseStyle:n}),s=Mee(e,r)(i);return rd.forwardRef(function(u,f){const{colorMode:d,forced:h}=NO();return rd.createElement(s,{ref:f,"data-theme":h?d:void 0,...u})})}function Lee(){const e=new Map;return new Proxy(BS,{apply(t,n,r){return BS(...r)},get(t,n){return e.has(n)||e.set(n,BS(n)),e.get(n)}})}var Bt=Lee();function Hr(e){return N.forwardRef(e)}function bB(e={}){const{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:r}=e,i=N.createContext(void 0);i.displayName=r;function s(){var o;const a=N.useContext(i);if(!a&&t){const u=new Error(n);throw u.name="ContextError",(o=Error.captureStackTrace)==null||o.call(Error,u,s),u}return a}return[i.Provider,s,i]}function R0e(e){const{cssVarsRoot:t,theme:n,children:r}=e,i=N.useMemo(()=>KZ(n),[n]);return $l(LQ,{theme:i,children:[de(Fee,{root:t}),r]})}function Fee({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return de(sB,{styles:n=>({[t]:n.__cssVars})})}bB({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function I0e(e){return bB({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function M0e(){const{colorMode:e}=NO();return de(sB,{styles:t=>{const n=mB(t,"styles.global"),r=yB(n,{theme:t,colorMode:e});return r?vB(r)(t):void 0}})}var Nee=(e,t)=>e.find(n=>n.id===t);function iM(e,t){const n=xB(e,t),r=n?e[n].findIndex(i=>i.id===t):-1;return{position:n,index:r}}function xB(e,t){for(const[n,r]of Object.entries(e))if(Nee(r,t))return n}function $ee(e){const t=e.includes("right"),n=e.includes("left");let r="center";return t&&(r="flex-end"),n&&(r="flex-start"),{display:"flex",flexDirection:"column",alignItems:r}}function Bee(e){const n=e==="top"||e==="bottom"?"0 auto":void 0,r=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,i=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,s=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",o=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:n,top:r,bottom:i,right:s,left:o}}function fy(e,t=[]){const n=N.useRef(e);return N.useEffect(()=>{n.current=e}),N.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Uee(e,t){const n=fy(e);N.useEffect(()=>{if(t==null)return;let r=null;return r=window.setTimeout(()=>{n()},t),()=>{r&&window.clearTimeout(r)}},[t,n])}function sM(e,t){const n=N.useRef(!1),r=N.useRef(!1);N.useEffect(()=>{if(n.current&&r.current)return e();r.current=!0},t),N.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])}const EB=N.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Y0=N.createContext({}),Fv=N.createContext(null),q0=typeof document<"u",VO=q0?N.useLayoutEffect:N.useEffect,PB=N.createContext({strict:!1});function Vee(e,t,n,r){const{visualElement:i}=N.useContext(Y0),s=N.useContext(PB),o=N.useContext(Fv),a=N.useContext(EB).reducedMotion,u=N.useRef();r=r||s.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const f=u.current;N.useInsertionEffect(()=>{f&&f.update(n,o)});const d=N.useRef(!!window.HandoffAppearAnimations);return VO(()=>{f&&(f.render(),d.current&&f.animationState&&f.animationState.animateChanges())}),N.useEffect(()=>{f&&(f.updateFeatures(),!d.current&&f.animationState&&f.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,d.current=!1)}),f}function Pf(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function jee(e,t,n){return N.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Pf(n)&&(n.current=r))},[t])}function av(e){return typeof e=="string"||Array.isArray(e)}function K0(e){return typeof e=="object"&&typeof e.start=="function"}const jO=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],WO=["initial",...jO];function X0(e){return K0(e.animate)||WO.some(t=>av(e[t]))}function OB(e){return!!(X0(e)||e.variants)}function Wee(e,t){if(X0(e)){const{initial:n,animate:r}=e;return{initial:n===!1||av(n)?n:void 0,animate:av(r)?r:void 0}}return e.inherit!==!1?t:{}}function zee(e){const{initial:t,animate:n}=Wee(e,N.useContext(Y0));return N.useMemo(()=>({initial:t,animate:n}),[oM(t),oM(n)])}function oM(e){return Array.isArray(e)?e.join(" "):e}const aM={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},lv={};for(const e in aM)lv[e]={isEnabled:t=>aM[e].some(n=>!!t[n])};function Hee(e){for(const t in e)lv[t]={...lv[t],...e[t]}}const zO=N.createContext({}),TB=N.createContext({}),Gee=Symbol.for("motionComponentSymbol");function Yee({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Hee(e);function s(a,u){let f;const d={...N.useContext(EB),...a,layoutId:qee(a)},{isStatic:h}=d,v=zee(a),m=r(a,h);if(!h&&q0){v.visualElement=Vee(i,m,d,t);const y=N.useContext(TB),w=N.useContext(PB).strict;v.visualElement&&(f=v.visualElement.loadFeatures(d,w,e,y))}return N.createElement(Y0.Provider,{value:v},f&&v.visualElement?N.createElement(f,{visualElement:v.visualElement,...d}):null,n(i,a,jee(m,v.visualElement,u),m,h,v.visualElement))}const o=N.forwardRef(s);return o[Gee]=i,o}function qee({layoutId:e}){const t=N.useContext(zO).id;return t&&e!==void 0?t+"-"+e:e}function Kee(e){function t(r,i={}){return Yee(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const Xee=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function HO(e){return typeof e!="string"||e.includes("-")?!1:!!(Xee.indexOf(e)>-1||/[A-Z]/.test(e))}const dy={};function Jee(e){Object.assign(dy,e)}const Nv=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],dc=new Set(Nv);function CB(e,{layout:t,layoutId:n}){return dc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dy[e]||e==="opacity")}const ui=e=>!!(e&&e.getVelocity),Qee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zee=Nv.length;function ete(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let s="";for(let o=0;o<Zee;o++){const a=Nv[o];if(e[a]!==void 0){const u=Qee[a]||a;s+=`${u}(${e[a]}) `}}return t&&!e.z&&(s+="translateZ(0)"),s=s.trim(),i?s=i(e,r?"":s):n&&r&&(s="none"),s}const kB=e=>t=>typeof t=="string"&&t.startsWith(e),AB=kB("--"),Hx=kB("var(--"),tte=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,nte=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Vl=(e,t,n)=>Math.min(Math.max(n,e),t),hc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xp={...hc,transform:e=>Vl(0,1,e)},vg={...hc,default:1},Ep=e=>Math.round(e*1e5)/1e5,J0=/(-)?([\d]*\.?[\d])+/g,RB=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rte=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function $v(e){return typeof e=="string"}const Bv=e=>({test:t=>$v(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ol=Bv("deg"),xo=Bv("%"),Ue=Bv("px"),ite=Bv("vh"),ste=Bv("vw"),lM={...xo,parse:e=>xo.parse(e)/100,transform:e=>xo.transform(e*100)},uM={...hc,transform:Math.round},IB={borderWidth:Ue,borderTopWidth:Ue,borderRightWidth:Ue,borderBottomWidth:Ue,borderLeftWidth:Ue,borderRadius:Ue,radius:Ue,borderTopLeftRadius:Ue,borderTopRightRadius:Ue,borderBottomRightRadius:Ue,borderBottomLeftRadius:Ue,width:Ue,maxWidth:Ue,height:Ue,maxHeight:Ue,size:Ue,top:Ue,right:Ue,bottom:Ue,left:Ue,padding:Ue,paddingTop:Ue,paddingRight:Ue,paddingBottom:Ue,paddingLeft:Ue,margin:Ue,marginTop:Ue,marginRight:Ue,marginBottom:Ue,marginLeft:Ue,rotate:ol,rotateX:ol,rotateY:ol,rotateZ:ol,scale:vg,scaleX:vg,scaleY:vg,scaleZ:vg,skew:ol,skewX:ol,skewY:ol,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:xp,originX:lM,originY:lM,originZ:Ue,zIndex:uM,fillOpacity:xp,strokeOpacity:xp,numOctaves:uM};function GO(e,t,n,r){const{style:i,vars:s,transform:o,transformOrigin:a}=e;let u=!1,f=!1,d=!0;for(const h in t){const v=t[h];if(AB(h)){s[h]=v;continue}const m=IB[h],y=nte(v,m);if(dc.has(h)){if(u=!0,o[h]=y,!d)continue;v!==(m.default||0)&&(d=!1)}else h.startsWith("origin")?(f=!0,a[h]=y):i[h]=y}if(t.transform||(u||r?i.transform=ete(e.transform,n,d,r):i.transform&&(i.transform="none")),f){const{originX:h="50%",originY:v="50%",originZ:m=0}=a;i.transformOrigin=`${h} ${v} ${m}`}}const YO=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function MB(e,t,n){for(const r in t)!ui(t[r])&&!CB(r,n)&&(e[r]=t[r])}function ote({transformTemplate:e},t,n){return N.useMemo(()=>{const r=YO();return GO(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function ate(e,t,n){const r=e.style||{},i={};return MB(i,r,e),Object.assign(i,ote(e,t,n)),e.transformValues?e.transformValues(i):i}function lte(e,t,n){const r={},i=ate(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const ute=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function hy(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||ute.has(e)}let DB=e=>!hy(e);function cte(e){e&&(DB=t=>t.startsWith("on")?!hy(t):e(t))}try{cte(require("@emotion/is-prop-valid").default)}catch{}function fte(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(DB(i)||n===!0&&hy(i)||!t&&!hy(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function cM(e,t,n){return typeof e=="string"?e:Ue.transform(t+n*e)}function dte(e,t,n){const r=cM(t,e.x,e.width),i=cM(n,e.y,e.height);return`${r} ${i}`}const hte={offset:"stroke-dashoffset",array:"stroke-dasharray"},pte={offset:"strokeDashoffset",array:"strokeDasharray"};function vte(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?hte:pte;e[s.offset]=Ue.transform(-r);const o=Ue.transform(t),a=Ue.transform(n);e[s.array]=`${o} ${a}`}function qO(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:u=0,...f},d,h,v){if(GO(e,f,d,v),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:y,dimensions:w}=e;m.transform&&(w&&(y.transform=m.transform),delete m.transform),w&&(i!==void 0||s!==void 0||y.transform)&&(y.transformOrigin=dte(w,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),o!==void 0&&vte(m,o,a,u,!1)}const LB=()=>({...YO(),attrs:{}}),KO=e=>typeof e=="string"&&e.toLowerCase()==="svg";function mte(e,t,n,r){const i=N.useMemo(()=>{const s=LB();return qO(s,t,{enableHardwareAcceleration:!1},KO(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};MB(s,e.style,e),i.style={...s,...i.style}}return i}function gte(e=!1){return(n,r,i,{latestValues:s},o)=>{const u=(HO(n)?mte:lte)(r,s,o,n),d={...fte(r,typeof n=="string",e),...u,ref:i},{children:h}=r,v=N.useMemo(()=>ui(h)?h.get():h,[h]);return N.createElement(n,{...d,children:v})}}const XO=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function FB(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const NB=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function $B(e,t,n,r){FB(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(NB.has(i)?i:XO(i),t.attrs[i])}function JO(e,t){const{style:n}=e,r={};for(const i in n)(ui(n[i])||t.style&&ui(t.style[i])||CB(i,e))&&(r[i]=n[i]);return r}function BB(e,t){const n=JO(e,t);for(const r in e)if(ui(e[r])||ui(t[r])){const i=Nv.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function QO(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function UB(e){const t=N.useRef(null);return t.current===null&&(t.current=e()),t.current}const py=e=>Array.isArray(e),_te=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),yte=e=>py(e)?e[e.length-1]||0:e;function l_(e){const t=ui(e)?e.get():e;return _te(t)?t.toValue():t}function wte({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,s){const o={latestValues:Ste(r,i,s,e),renderState:t()};return n&&(o.mount=a=>n(r,a,o)),o}const VB=e=>(t,n)=>{const r=N.useContext(Y0),i=N.useContext(Fv),s=()=>wte(e,t,r,i);return n?s():UB(s)};function Ste(e,t,n,r){const i={},s=r(e,{});for(const v in s)i[v]=l_(s[v]);let{initial:o,animate:a}=e;const u=X0(e),f=OB(e);t&&f&&!u&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?a:o;return h&&typeof h!="boolean"&&!K0(h)&&(Array.isArray(h)?h:[h]).forEach(m=>{const y=QO(e,m);if(!y)return;const{transitionEnd:w,transition:E,...S}=y;for(const _ in S){let b=S[_];if(Array.isArray(b)){const O=d?b.length-1:0;b=b[O]}b!==null&&(i[_]=b)}for(const _ in w)i[_]=w[_]}),i}const mn=e=>e;class fM{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function bte(e){let t=new fM,n=new fM,r=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(u,f=!1,d=!1)=>{const h=d&&i,v=h?t:n;return f&&o.add(u),v.add(u)&&h&&i&&(r=t.order.length),u},cancel:u=>{n.remove(u),o.delete(u)},process:u=>{if(i){s=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let f=0;f<r;f++){const d=t.order[f];d(u),o.has(d)&&(a.schedule(d),e())}i=!1,s&&(s=!1,a.process(u))}};return a}const mg=["prepare","read","update","preRender","render","postRender"],xte=40;function Ete(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=mg.reduce((h,v)=>(h[v]=bte(()=>n=!0),h),{}),o=h=>s[h].process(i),a=()=>{const h=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(h-i.timestamp,xte),1),i.timestamp=h,i.isProcessing=!0,mg.forEach(o),i.isProcessing=!1,n&&t&&(r=!1,e(a))},u=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:mg.reduce((h,v)=>{const m=s[v];return h[v]=(y,w=!1,E=!1)=>(n||u(),m.schedule(y,w,E)),h},{}),cancel:h=>mg.forEach(v=>s[v].cancel(h)),state:i,steps:s}}const{schedule:Xt,cancel:Ca,state:wr,steps:US}=Ete(typeof requestAnimationFrame<"u"?requestAnimationFrame:mn,!0),Pte={useVisualState:VB({scrapeMotionValuesFromProps:BB,createRenderState:LB,onMount:(e,t,{renderState:n,latestValues:r})=>{Xt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Xt.render(()=>{qO(n,r,{enableHardwareAcceleration:!1},KO(t.tagName),e.transformTemplate),$B(t,n)})}})},Ote={useVisualState:VB({scrapeMotionValuesFromProps:JO,createRenderState:YO})};function Tte(e,{forwardMotionProps:t=!1},n,r){return{...HO(e)?Pte:Ote,preloadedFeatures:n,useRender:gte(t),createVisualElement:r,Component:e}}function fa(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const jB=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Q0(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Cte=e=>t=>jB(t)&&e(t,Q0(t));function ga(e,t,n,r){return fa(e,t,Cte(n),r)}const kte=(e,t)=>n=>t(e(n)),Ml=(...e)=>e.reduce(kte);function WB(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const dM=WB("dragHorizontal"),hM=WB("dragVertical");function zB(e){let t=!1;if(e==="y")t=hM();else if(e==="x")t=dM();else{const n=dM(),r=hM();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function HB(){const e=zB(!0);return e?(e(),!1):!0}class ql{constructor(t){this.isMounted=!1,this.node=t}update(){}}function pM(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(s,o)=>{if(s.type==="touch"||HB())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Xt.update(()=>a[r](s,o))};return ga(e.current,n,i,{passive:!e.getProps()[r]})}class Ate extends ql{mount(){this.unmount=Ml(pM(this.node,!0),pM(this.node,!1))}unmount(){}}class Rte extends ql{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ml(fa(this.node.current,"focus",()=>this.onFocus()),fa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const GB=(e,t)=>t?e===t?!0:GB(e,t.parentElement):!1;function VS(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Q0(n))}class Ite extends ql{constructor(){super(...arguments),this.removeStartListeners=mn,this.removeEndListeners=mn,this.removeAccessibleListeners=mn,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),s=ga(window,"pointerup",(a,u)=>{if(!this.checkPressEnd())return;const{onTap:f,onTapCancel:d}=this.node.getProps();Xt.update(()=>{GB(this.node.current,a.target)?f&&f(a,u):d&&d(a,u)})},{passive:!(r.onTap||r.onPointerUp)}),o=ga(window,"pointercancel",(a,u)=>this.cancelPress(a,u),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Ml(s,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||VS("up",(u,f)=>{const{onTap:d}=this.node.getProps();d&&Xt.update(()=>d(u,f))})};this.removeEndListeners(),this.removeEndListeners=fa(this.node.current,"keyup",o),VS("down",(a,u)=>{this.startPress(a,u)})},n=fa(this.node.current,"keydown",t),r=()=>{this.isPressing&&VS("cancel",(s,o)=>this.cancelPress(s,o))},i=fa(this.node.current,"blur",r);this.removeAccessibleListeners=Ml(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Xt.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!HB()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Xt.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=ga(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=fa(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ml(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Gx=new WeakMap,jS=new WeakMap,Mte=e=>{const t=Gx.get(e.target);t&&t(e)},Dte=e=>{e.forEach(Mte)};function Lte({root:e,...t}){const n=e||document;jS.has(n)||jS.set(n,{});const r=jS.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Dte,{root:e,...t})),r[i]}function Fte(e,t,n){const r=Lte(t);return Gx.set(e,n),r.observe(e),()=>{Gx.delete(e),r.unobserve(e)}}const Nte={some:0,all:1};class $te extends ql{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Nte[i]},a=u=>{const{isIntersecting:f}=u;if(this.isInView===f||(this.isInView=f,s&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),v=f?d:h;v&&v(u)};return Fte(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Bte(t,n))&&this.startObserver()}unmount(){}}function Bte({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Ute={inView:{Feature:$te},tap:{Feature:Ite},focus:{Feature:Rte},hover:{Feature:Ate}};function YB(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Vte(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function jte(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Z0(e,t,n){const r=e.getProps();return QO(r,t,n!==void 0?n:r.custom,Vte(e),jte(e))}const Wte="framerAppearId",zte="data-"+XO(Wte);let Hte=mn,ZO=mn;const Dl=e=>e*1e3,_a=e=>e/1e3,Gte={current:!1},qB=e=>Array.isArray(e)&&typeof e[0]=="number";function KB(e){return!!(!e||typeof e=="string"&&XB[e]||qB(e)||Array.isArray(e)&&e.every(KB))}const ip=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,XB={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ip([0,.65,.55,1]),circOut:ip([.55,0,1,.45]),backIn:ip([.31,.01,.66,-.59]),backOut:ip([.33,1.53,.69,.99])};function JB(e){if(e)return qB(e)?ip(e):Array.isArray(e)?e.map(JB):XB[e]}function Yte(e,t,n,{delay:r=0,duration:i,repeat:s=0,repeatType:o="loop",ease:a,times:u}={}){const f={[t]:n};u&&(f.offset=u);const d=JB(a);return Array.isArray(d)&&(f.easing=d),e.animate(f,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function qte(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const QB=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Kte=1e-7,Xte=12;function Jte(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=QB(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Kte&&++a<Xte);return o}function Uv(e,t,n,r){if(e===t&&n===r)return mn;const i=s=>Jte(s,0,1,e,n);return s=>s===0||s===1?s:QB(i(s),t,r)}const Qte=Uv(.42,0,1,1),Zte=Uv(0,0,.58,1),ZB=Uv(.42,0,.58,1),ene=e=>Array.isArray(e)&&typeof e[0]!="number",e3=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,t3=e=>t=>1-e(1-t),n3=e=>1-Math.sin(Math.acos(e)),eT=t3(n3),tne=e3(eT),r3=Uv(.33,1.53,.69,.99),tT=t3(r3),nne=e3(tT),rne=e=>(e*=2)<1?.5*tT(e):.5*(2-Math.pow(2,-10*(e-1))),ine={linear:mn,easeIn:Qte,easeInOut:ZB,easeOut:Zte,circIn:n3,circInOut:tne,circOut:eT,backIn:tT,backInOut:nne,backOut:r3,anticipate:rne},vM=e=>{if(Array.isArray(e)){ZO(e.length===4);const[t,n,r,i]=e;return Uv(t,n,r,i)}else if(typeof e=="string")return ine[e];return e},nT=(e,t)=>n=>!!($v(n)&&rte.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),i3=(e,t,n)=>r=>{if(!$v(r))return r;const[i,s,o,a]=r.match(J0);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},sne=e=>Vl(0,255,e),WS={...hc,transform:e=>Math.round(sne(e))},Bu={test:nT("rgb","red"),parse:i3("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+WS.transform(e)+", "+WS.transform(t)+", "+WS.transform(n)+", "+Ep(xp.transform(r))+")"};function one(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Yx={test:nT("#"),parse:one,transform:Bu.transform},Of={test:nT("hsl","hue"),parse:i3("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+xo.transform(Ep(t))+", "+xo.transform(Ep(n))+", "+Ep(xp.transform(r))+")"},$r={test:e=>Bu.test(e)||Yx.test(e)||Of.test(e),parse:e=>Bu.test(e)?Bu.parse(e):Of.test(e)?Of.parse(e):Yx.parse(e),transform:e=>$v(e)?e:e.hasOwnProperty("red")?Bu.transform(e):Of.transform(e)},un=(e,t,n)=>-n*e+n*t+e;function zS(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ane({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;i=zS(u,a,e+1/3),s=zS(u,a,e),o=zS(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}const HS=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},lne=[Yx,Bu,Of],une=e=>lne.find(t=>t.test(e));function mM(e){const t=une(e);let n=t.parse(e);return t===Of&&(n=ane(n)),n}const s3=(e,t)=>{const n=mM(e),r=mM(t),i={...n};return s=>(i.red=HS(n.red,r.red,s),i.green=HS(n.green,r.green,s),i.blue=HS(n.blue,r.blue,s),i.alpha=un(n.alpha,r.alpha,s),Bu.transform(i))};function cne(e){var t,n;return isNaN(e)&&$v(e)&&(((t=e.match(J0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(RB))===null||n===void 0?void 0:n.length)||0)>0}const o3={regex:tte,countKey:"Vars",token:"${v}",parse:mn},a3={regex:RB,countKey:"Colors",token:"${c}",parse:$r.parse},l3={regex:J0,countKey:"Numbers",token:"${n}",parse:hc.parse};function GS(e,{regex:t,countKey:n,token:r,parse:i}){const s=e.tokenised.match(t);s&&(e["num"+n]=s.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...s.map(i)))}function vy(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&GS(n,o3),GS(n,a3),GS(n,l3),n}function u3(e){return vy(e).values}function c3(e){const{values:t,numColors:n,numVars:r,tokenised:i}=vy(e),s=t.length;return o=>{let a=i;for(let u=0;u<s;u++)u<r?a=a.replace(o3.token,o[u]):u<r+n?a=a.replace(a3.token,$r.transform(o[u])):a=a.replace(l3.token,Ep(o[u]));return a}}const fne=e=>typeof e=="number"?0:e;function dne(e){const t=u3(e);return c3(e)(t.map(fne))}const jl={test:cne,parse:u3,createTransformer:c3,getAnimatableNone:dne},f3=(e,t)=>n=>`${n>0?t:e}`;function d3(e,t){return typeof e=="number"?n=>un(e,t,n):$r.test(e)?s3(e,t):e.startsWith("var(")?f3(e,t):p3(e,t)}const h3=(e,t)=>{const n=[...e],r=n.length,i=e.map((s,o)=>d3(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}},hne=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=d3(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}},p3=(e,t)=>{const n=jl.createTransformer(t),r=vy(e),i=vy(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Ml(h3(r.values,i.values),n):f3(e,t)},uv=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},gM=(e,t)=>n=>un(e,t,n);function pne(e){return typeof e=="number"?gM:typeof e=="string"?$r.test(e)?s3:p3:Array.isArray(e)?h3:typeof e=="object"?hne:gM}function vne(e,t,n){const r=[],i=n||pne(e[0]),s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||mn:t;a=Ml(u,a)}r.push(a)}return r}function v3(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(ZO(s===t.length),s===1)return()=>t[0];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=vne(t,r,i),a=o.length,u=f=>{let d=0;if(a>1)for(;d<e.length-2&&!(f<e[d+1]);d++);const h=uv(e[d],e[d+1],f);return o[d](h)};return n?f=>u(Vl(e[0],e[s-1],f)):u}function mne(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=uv(0,t,r);e.push(un(n,1,i))}}function gne(e){const t=[0];return mne(t,e.length-1),t}function _ne(e,t){return e.map(n=>n*t)}function yne(e,t){return e.map(()=>t||ZB).splice(0,e.length-1)}function my({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=ene(r)?r.map(vM):vM(r),s={done:!1,value:t[0]},o=_ne(n&&n.length===t.length?n:gne(t),e),a=v3(o,t,{ease:Array.isArray(i)?i:yne(t,i)});return{calculatedDuration:e,next:u=>(s.value=a(u),s.done=u>=e,s)}}function m3(e,t){return t?e*(1e3/t):0}const wne=5;function g3(e,t,n){const r=Math.max(t-wne,0);return m3(n-e(r),t-r)}const YS=.001,Sne=.01,_M=10,bne=.05,xne=1;function Ene({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s;Hte(e<=Dl(_M));let o=1-t;o=Vl(bne,xne,o),e=Vl(Sne,_M,_a(e)),o<1?(i=f=>{const d=f*o,h=d*e,v=d-n,m=qx(f,o),y=Math.exp(-h);return YS-v/m*y},s=f=>{const h=f*o*e,v=h*n+n,m=Math.pow(o,2)*Math.pow(f,2)*e,y=Math.exp(-h),w=qx(Math.pow(f,2),o);return(-i(f)+YS>0?-1:1)*((v-m)*y)/w}):(i=f=>{const d=Math.exp(-f*e),h=(f-n)*e+1;return-YS+d*h},s=f=>{const d=Math.exp(-f*e),h=(n-f)*(e*e);return d*h});const a=5/e,u=One(i,s,a);if(e=Dl(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const Pne=12;function One(e,t,n){let r=n;for(let i=1;i<Pne;i++)r=r-e(r)/t(r);return r}function qx(e,t){return e*Math.sqrt(1-t*t)}const Tne=["duration","bounce"],Cne=["stiffness","damping","mass"];function yM(e,t){return t.some(n=>e[n]!==void 0)}function kne(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!yM(e,Cne)&&yM(e,Tne)){const n=Ene(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function _3({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],s=e[e.length-1],o={done:!1,value:i},{stiffness:a,damping:u,mass:f,velocity:d,duration:h,isResolvedFromDuration:v}=kne(r),m=d?-_a(d):0,y=u/(2*Math.sqrt(a*f)),w=s-i,E=_a(Math.sqrt(a/f)),S=Math.abs(w)<5;n||(n=S?.01:2),t||(t=S?.005:.5);let _;if(y<1){const b=qx(E,y);_=O=>{const I=Math.exp(-y*E*O);return s-I*((m+y*E*w)/b*Math.sin(b*O)+w*Math.cos(b*O))}}else if(y===1)_=b=>s-Math.exp(-E*b)*(w+(m+E*w)*b);else{const b=E*Math.sqrt(y*y-1);_=O=>{const I=Math.exp(-y*E*O),A=Math.min(b*O,300);return s-I*((m+y*E*w)*Math.sinh(A)+b*w*Math.cosh(A))/b}}return{calculatedDuration:v&&h||null,next:b=>{const O=_(b);if(v)o.done=b>=h;else{let I=m;b!==0&&(y<1?I=g3(_,b,O):I=0);const A=Math.abs(I)<=n,C=Math.abs(s-O)<=t;o.done=A&&C}return o.value=o.done?s:O,o}}}function wM({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:u,restDelta:f=.5,restSpeed:d}){const h=e[0],v={done:!1,value:h},m=P=>a!==void 0&&P<a||u!==void 0&&P>u,y=P=>a===void 0?u:u===void 0||Math.abs(a-P)<Math.abs(u-P)?a:u;let w=n*t;const E=h+w,S=o===void 0?E:o(E);S!==E&&(w=S-h);const _=P=>-w*Math.exp(-P/r),b=P=>S+_(P),O=P=>{const M=_(P),D=b(P);v.done=Math.abs(M)<=f,v.value=v.done?S:D};let I,A;const C=P=>{m(v.value)&&(I=P,A=_3({keyframes:[v.value,y(v.value)],velocity:g3(b,P,v.value),damping:i,stiffness:s,restDelta:f,restSpeed:d}))};return C(0),{calculatedDuration:null,next:P=>{let M=!1;return!A&&I===void 0&&(M=!0,O(P),C(P)),I!==void 0&&P>I?A.next(P-I):(!M&&O(P),v)}}}const Ane=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Xt.update(t,!0),stop:()=>Ca(t),now:()=>wr.isProcessing?wr.timestamp:performance.now()}},SM=2e4;function bM(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<SM;)t+=n,r=e.next(t);return t>=SM?1/0:t}const Rne={decay:wM,inertia:wM,tween:my,keyframes:my,spring:_3};function gy({autoplay:e=!0,delay:t=0,driver:n=Ane,keyframes:r,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:u,onStop:f,onComplete:d,onUpdate:h,...v}){let m=1,y=!1,w,E;const S=()=>{E=new Promise(he=>{w=he})};S();let _;const b=Rne[i]||my;let O;b!==my&&typeof r[0]!="number"&&(O=v3([0,100],r,{clamp:!1}),r=[0,100]);const I=b({...v,keyframes:r});let A;a==="mirror"&&(A=b({...v,keyframes:[...r].reverse(),velocity:-(v.velocity||0)}));let C="idle",P=null,M=null,D=null;I.calculatedDuration===null&&s&&(I.calculatedDuration=bM(I));const{calculatedDuration:V}=I;let Q=1/0,se=1/0;V!==null&&(Q=V+o,se=Q*(s+1)-o);let ie=0;const q=he=>{if(M===null)return;m>0&&(M=Math.min(M,he)),m<0&&(M=Math.min(he-se/m,M)),P!==null?ie=P:ie=Math.round(he-M)*m;const we=ie-t*(m>=0?1:-1),_e=m>=0?we<0:we>se;ie=Math.max(we,0),C==="finished"&&P===null&&(ie=se);let Ie=ie,me=I;if(s){const nt=ie/Q;let Xe=Math.floor(nt),ut=nt%1;!ut&&nt>=1&&(ut=1),ut===1&&Xe--,Xe=Math.min(Xe,s+1);const Fe=!!(Xe%2);Fe&&(a==="reverse"?(ut=1-ut,o&&(ut-=o/Q)):a==="mirror"&&(me=A));let yt=Vl(0,1,ut);ie>se&&(yt=a==="reverse"&&Fe?1:0),Ie=yt*Q}const Ae=_e?{done:!1,value:r[0]}:me.next(Ie);O&&(Ae.value=O(Ae.value));let{done:De}=Ae;!_e&&V!==null&&(De=m>=0?ie>=se:ie<=0);const Be=P===null&&(C==="finished"||C==="running"&&De);return h&&h(Ae.value),Be&&X(),Ae},oe=()=>{_&&_.stop(),_=void 0},ue=()=>{C="idle",oe(),w(),S(),M=D=null},X=()=>{C="finished",d&&d(),oe(),w()},te=()=>{if(y)return;_||(_=n(q));const he=_.now();u&&u(),P!==null?M=he-P:(!M||C==="finished")&&(M=he),C==="finished"&&S(),D=M,P=null,C="running",_.start()};e&&te();const ve={then(he,we){return E.then(he,we)},get time(){return _a(ie)},set time(he){he=Dl(he),ie=he,P!==null||!_||m===0?P=he:M=_.now()-he/m},get duration(){const he=I.calculatedDuration===null?bM(I):I.calculatedDuration;return _a(he)},get speed(){return m},set speed(he){he===m||!_||(m=he,ve.time=_a(ie))},get state(){return C},play:te,pause:()=>{C="paused",P=ie},stop:()=>{y=!0,C!=="idle"&&(C="idle",f&&f(),ue())},cancel:()=>{D!==null&&q(D),ue()},complete:()=>{C="finished"},sample:he=>(M=0,q(he))};return ve}function Ine(e){let t;return()=>(t===void 0&&(t=e()),t)}const Mne=Ine(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Dne=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),gg=10,Lne=2e4,Fne=(e,t)=>t.type==="spring"||e==="backgroundColor"||!KB(t.ease);function Nne(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Mne()&&Dne.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,u;const f=()=>{u=new Promise(_=>{a=_})};f();let{keyframes:d,duration:h=300,ease:v,times:m}=i;if(Fne(t,i)){const _=gy({...i,repeat:0,delay:0});let b={done:!1,value:d[0]};const O=[];let I=0;for(;!b.done&&I<Lne;)b=_.sample(I),O.push(b.value),I+=gg;m=void 0,d=O,h=I-gg,v="linear"}const y=Yte(e.owner.current,t,d,{...i,duration:h,ease:v,times:m}),w=()=>y.cancel(),E=()=>{Xt.update(w),a(),f()};return y.onfinish=()=>{e.set(qte(d,i)),r&&r(),E()},{then(_,b){return u.then(_,b)},attachTimeline(_){return y.timeline=_,y.onfinish=null,mn},get time(){return _a(y.currentTime||0)},set time(_){y.currentTime=Dl(_)},get speed(){return y.playbackRate},set speed(_){y.playbackRate=_},get duration(){return _a(h)},play:()=>{o||(y.play(),Ca(w))},pause:()=>y.pause(),stop:()=>{if(o=!0,y.playState==="idle")return;const{currentTime:_}=y;if(_){const b=gy({...i,autoplay:!1});e.setWithVelocity(b.sample(_-gg).value,b.sample(_).value,gg)}E()},complete:()=>y.finish(),cancel:E}}function $ne({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:mn,pause:mn,stop:mn,then:s=>(s(),Promise.resolve()),cancel:mn,complete:mn});return t?gy({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const Bne={type:"spring",stiffness:500,damping:25,restSpeed:10},Une=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Vne={type:"keyframes",duration:.8},jne={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Wne=(e,{keyframes:t})=>t.length>2?Vne:dc.has(e)?e.startsWith("scale")?Une(t[1]):Bne:jne,Kx=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(jl.test(t)||t==="0")&&!t.startsWith("url(")),zne=new Set(["brightness","contrast","saturate","opacity"]);function Hne(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(J0)||[];if(!r)return e;const i=n.replace(r,"");let s=zne.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Gne=/([a-z-]*)\(.*?\)/g,Xx={...jl,getAnimatableNone:e=>{const t=e.match(Gne);return t?t.map(Hne).join(" "):e}},Yne={...IB,color:$r,backgroundColor:$r,outlineColor:$r,fill:$r,stroke:$r,borderColor:$r,borderTopColor:$r,borderRightColor:$r,borderBottomColor:$r,borderLeftColor:$r,filter:Xx,WebkitFilter:Xx},rT=e=>Yne[e];function y3(e,t){let n=rT(e);return n!==Xx&&(n=jl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const w3=e=>/^0[^.\s]+$/.test(e);function qne(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||w3(e)}function Kne(e,t,n,r){const i=Kx(t,n);let s;Array.isArray(n)?s=[...n]:s=[null,n];const o=r.from!==void 0?r.from:e.get();let a;const u=[];for(let f=0;f<s.length;f++)s[f]===null&&(s[f]=f===0?o:s[f-1]),qne(s[f])&&u.push(f),typeof s[f]=="string"&&s[f]!=="none"&&s[f]!=="0"&&(a=s[f]);if(i&&u.length&&a)for(let f=0;f<u.length;f++){const d=u[f];s[d]=y3(t,a)}return s}function Xne({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:u,elapsed:f,...d}){return!!Object.keys(d).length}function S3(e,t){return e[t]||e.default||e}const iT=(e,t,n,r={})=>i=>{const s=S3(r,e)||{},o=s.delay||r.delay||0;let{elapsed:a=0}=r;a=a-Dl(o);const u=Kne(t,e,n,s),f=u[0],d=u[u.length-1],h=Kx(e,f),v=Kx(e,d);let m={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:y=>{t.set(y),s.onUpdate&&s.onUpdate(y)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(Xne(s)||(m={...m,...Wne(e,m)}),m.duration&&(m.duration=Dl(m.duration)),m.repeatDelay&&(m.repeatDelay=Dl(m.repeatDelay)),!h||!v||Gte.current||s.type===!1)return $ne(m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const y=Nne(t,e,m);if(y)return y}return gy(m)};function _y(e){return!!(ui(e)&&e.add)}const b3=e=>/^\-?\d*\.?\d+$/.test(e);function sT(e,t){e.indexOf(t)===-1&&e.push(t)}function oT(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class aT{constructor(){this.subscriptions=[]}add(t){return sT(this.subscriptions,t),()=>oT(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Jne=e=>!isNaN(parseFloat(e));class Qne{constructor(t,n={}){this.version="10.16.2",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:s,timestamp:o}=wr;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,Xt.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Xt.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=Jne(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new aT);const r=this.events[t].add(n);return t==="change"?()=>{r(),Xt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?m3(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function md(e,t){return new Qne(e,t)}const x3=e=>t=>t.test(e),Zne={test:e=>e==="auto",parse:e=>e},E3=[hc,Ue,xo,ol,ste,ite,Zne],Vh=e=>E3.find(x3(e)),ere=[...E3,$r,jl],tre=e=>ere.find(x3(e));function nre(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,md(n))}function rre(e,t){const n=Z0(e,t);let{transitionEnd:r={},transition:i={},...s}=n?e.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const o in s){const a=yte(s[o]);nre(e,o,a)}}function ire(e,t,n){var r,i;const s=Object.keys(t).filter(a=>!e.hasValue(a)),o=s.length;if(o)for(let a=0;a<o;a++){const u=s[a],f=t[u];let d=null;Array.isArray(f)&&(d=f[0]),d===null&&(d=(i=(r=n[u])!==null&&r!==void 0?r:e.readValue(u))!==null&&i!==void 0?i:t[u]),d!=null&&(typeof d=="string"&&(b3(d)||w3(d))?d=parseFloat(d):!tre(d)&&jl.test(f)&&(d=y3(u,f)),e.addValue(u,md(d,{owner:e})),n[u]===void 0&&(n[u]=d),d!==null&&e.setBaseTarget(u,d))}}function sre(e,t){return t?(t[e]||t.default||t).from:void 0}function ore(e,t,n){const r={};for(const i in e){const s=sre(i,t);if(s!==void 0)r[i]=s;else{const o=n.getValue(i);o&&(r[i]=o.get())}}return r}function are({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function P3(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");r&&(s=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in a){const v=e.getValue(h),m=a[h];if(!v||m===void 0||d&&are(d,h))continue;const y={delay:n,elapsed:0,...s};if(window.HandoffAppearAnimations&&!v.hasAnimated){const E=e.getProps()[zte];E&&(y.elapsed=window.HandoffAppearAnimations(E,h,v,Xt))}v.start(iT(h,v,m,e.shouldReduceMotion&&dc.has(h)?{type:!1}:y));const w=v.animation;_y(u)&&(u.add(h),w.then(()=>u.remove(h))),f.push(w)}return o&&Promise.all(f).then(()=>{o&&rre(e,o)}),f}function Jx(e,t,n={}){const r=Z0(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(P3(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:f=0,staggerChildren:d,staggerDirection:h}=i;return lre(e,t,f+u,d,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,f]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>f())}else return Promise.all([s(),o(n.delay)])}function lre(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,u=i===1?(f=0)=>f*r:(f=0)=>a-f*r;return Array.from(e.variantChildren).sort(ure).forEach((f,d)=>{f.notify("AnimationStart",t),o.push(Jx(f,t,{...s,delay:n+u(d)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(o)}function ure(e,t){return e.sortNodePosition(t)}function cre(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Jx(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Jx(e,t,n);else{const i=typeof t=="function"?Z0(e,t,n.custom):t;r=Promise.all(P3(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const fre=[...jO].reverse(),dre=jO.length;function hre(e){return t=>Promise.all(t.map(({animation:n,options:r})=>cre(e,n,r)))}function pre(e){let t=hre(e);const n=mre();let r=!0;const i=(u,f)=>{const d=Z0(e,f);if(d){const{transition:h,transitionEnd:v,...m}=d;u={...u,...m,...v}}return u};function s(u){t=u(e)}function o(u,f){const d=e.getProps(),h=e.getVariantContext(!0)||{},v=[],m=new Set;let y={},w=1/0;for(let S=0;S<dre;S++){const _=fre[S],b=n[_],O=d[_]!==void 0?d[_]:h[_],I=av(O),A=_===f?b.isActive:null;A===!1&&(w=S);let C=O===h[_]&&O!==d[_]&&I;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),b.protectedKeys={...y},!b.isActive&&A===null||!O&&!b.prevProp||K0(O)||typeof O=="boolean")continue;const P=vre(b.prevProp,O);let M=P||_===f&&b.isActive&&!C&&I||S>w&&I;const D=Array.isArray(O)?O:[O];let V=D.reduce(i,{});A===!1&&(V={});const{prevResolvedValues:Q={}}=b,se={...Q,...V},ie=q=>{M=!0,m.delete(q),b.needsAnimating[q]=!0};for(const q in se){const oe=V[q],ue=Q[q];y.hasOwnProperty(q)||(oe!==ue?py(oe)&&py(ue)?!YB(oe,ue)||P?ie(q):b.protectedKeys[q]=!0:oe!==void 0?ie(q):m.add(q):oe!==void 0&&m.has(q)?ie(q):b.protectedKeys[q]=!0)}b.prevProp=O,b.prevResolvedValues=V,b.isActive&&(y={...y,...V}),r&&e.blockInitialAnimation&&(M=!1),M&&!C&&v.push(...D.map(q=>({animation:q,options:{type:_,...u}})))}if(m.size){const S={};m.forEach(_=>{const b=e.getBaseTarget(_);b!==void 0&&(S[_]=b)}),v.push({animation:S})}let E=!!v.length;return r&&d.initial===!1&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(v):Promise.resolve()}function a(u,f,d){var h;if(n[u].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(m=>{var y;return(y=m.animationState)===null||y===void 0?void 0:y.setActive(u,f)}),n[u].isActive=f;const v=o(d,u);for(const m in n)n[m].protectedKeys={};return v}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n}}function vre(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!YB(t,e):!1}function Su(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mre(){return{animate:Su(!0),whileInView:Su(),whileHover:Su(),whileTap:Su(),whileDrag:Su(),whileFocus:Su(),exit:Su()}}class gre extends ql{constructor(t){super(t),t.animationState||(t.animationState=pre(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),K0(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let _re=0;class yre extends ql{constructor(){super(...arguments),this.id=_re++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const s=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&s.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const wre={animation:{Feature:gre},exit:{Feature:yre}},xM=(e,t)=>Math.abs(e-t);function Sre(e,t){const n=xM(e.x,t.x),r=xM(e.y,t.y);return Math.sqrt(n**2+r**2)}class O3{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=KS(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=Sre(f.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:v}=f,{timestamp:m}=wr;this.history.push({...v,timestamp:m});const{onStart:y,onMove:w}=this.handlers;d||(y&&y(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=qS(d,this.transformPagePoint),Xt.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:h,onSessionEnd:v}=this.handlers,m=KS(f.type==="pointercancel"?this.lastMoveEventInfo:qS(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,m),v&&v(f,m)},!jB(t))return;this.handlers=n,this.transformPagePoint=r;const i=Q0(t),s=qS(i,this.transformPagePoint),{point:o}=s,{timestamp:a}=wr;this.history=[{...o,timestamp:a}];const{onSessionStart:u}=n;u&&u(t,KS(s,this.history)),this.removeListeners=Ml(ga(window,"pointermove",this.handlePointerMove),ga(window,"pointerup",this.handlePointerUp),ga(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ca(this.updatePoint)}}function qS(e,t){return t?{point:t(e.point)}:e}function EM(e,t){return{x:e.x-t.x,y:e.y-t.y}}function KS({point:e},t){return{point:e,delta:EM(e,T3(t)),offset:EM(e,bre(t)),velocity:xre(t,.1)}}function bre(e){return e[0]}function T3(e){return e[e.length-1]}function xre(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=T3(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Dl(t)));)n--;if(!r)return{x:0,y:0};const s=_a(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ci(e){return e.max-e.min}function Qx(e,t=0,n=.01){return Math.abs(e-t)<=n}function PM(e,t,n,r=.5){e.origin=r,e.originPoint=un(t.min,t.max,e.origin),e.scale=Ci(n)/Ci(t),(Qx(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=un(n.min,n.max,e.origin)-e.originPoint,(Qx(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Pp(e,t,n,r){PM(e.x,t.x,n.x,r?r.originX:void 0),PM(e.y,t.y,n.y,r?r.originY:void 0)}function OM(e,t,n){e.min=n.min+t.min,e.max=e.min+Ci(t)}function Ere(e,t,n){OM(e.x,t.x,n.x),OM(e.y,t.y,n.y)}function TM(e,t,n){e.min=t.min-n.min,e.max=e.min+Ci(t)}function Op(e,t,n){TM(e.x,t.x,n.x),TM(e.y,t.y,n.y)}function Pre(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?un(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?un(n,e,r.max):Math.min(e,n)),e}function CM(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Ore(e,{top:t,left:n,bottom:r,right:i}){return{x:CM(e.x,n,i),y:CM(e.y,t,r)}}function kM(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Tre(e,t){return{x:kM(e.x,t.x),y:kM(e.y,t.y)}}function Cre(e,t){let n=.5;const r=Ci(e),i=Ci(t);return i>r?n=uv(t.min,t.max-r,e.min):r>i&&(n=uv(e.min,e.max-i,t.min)),Vl(0,1,n)}function kre(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Zx=.35;function Are(e=Zx){return e===!1?e=0:e===!0&&(e=Zx),{x:AM(e,"left","right"),y:AM(e,"top","bottom")}}function AM(e,t,n){return{min:RM(e,t),max:RM(e,n)}}function RM(e,t){return typeof e=="number"?e:e[t]||0}const IM=()=>({translate:0,scale:1,origin:0,originPoint:0}),Tf=()=>({x:IM(),y:IM()}),MM=()=>({min:0,max:0}),bn=()=>({x:MM(),y:MM()});function so(e){return[e("x"),e("y")]}function C3({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Rre({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ire(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function XS(e){return e===void 0||e===1}function eE({scale:e,scaleX:t,scaleY:n}){return!XS(e)||!XS(t)||!XS(n)}function Au(e){return eE(e)||k3(e)||e.z||e.rotate||e.rotateX||e.rotateY}function k3(e){return DM(e.x)||DM(e.y)}function DM(e){return e&&e!=="0%"}function yy(e,t,n){const r=e-n,i=t*r;return n+i}function LM(e,t,n,r,i){return i!==void 0&&(e=yy(e,i,r)),yy(e,n,r)+t}function tE(e,t=0,n=1,r,i){e.min=LM(e.min,t,n,r,i),e.max=LM(e.max,t,n,r,i)}function A3(e,{x:t,y:n}){tE(e.x,t.translate,t.scale,t.originPoint),tE(e.y,n.translate,n.scale,n.originPoint)}function Mre(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const u=s.instance;u&&u.style&&u.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Cf(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,A3(e,o)),r&&Au(s.latestValues)&&Cf(e,s.latestValues))}t.x=FM(t.x),t.y=FM(t.y)}function FM(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function cl(e,t){e.min=e.min+t,e.max=e.max+t}function NM(e,t,[n,r,i]){const s=t[i]!==void 0?t[i]:.5,o=un(e.min,e.max,s);tE(e,t[n],t[r],o,t.scale)}const Dre=["x","scaleX","originX"],Lre=["y","scaleY","originY"];function Cf(e,t){NM(e.x,t,Dre),NM(e.y,t,Lre)}function R3(e,t){return C3(Ire(e.getBoundingClientRect(),t))}function Fre(e,t,n){const r=R3(e,n),{scroll:i}=t;return i&&(cl(r.x,i.offset.x),cl(r.y,i.offset.y)),r}const Nre=new WeakMap;class $re{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=bn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=u=>{this.stopAnimation(),n&&this.snapToCursor(Q0(u,"page").point)},s=(u,f)=>{const{drag:d,dragPropagation:h,onDragStart:v}=this.getProps();if(d&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=zB(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),so(y=>{let w=this.getAxisMotionValue(y).get()||0;if(xo.test(w)){const{projection:E}=this.visualElement;if(E&&E.layout){const S=E.layout.layoutBox[y];S&&(w=Ci(S)*(parseFloat(w)/100))}}this.originPoint[y]=w}),v&&Xt.update(()=>v(u,f),!1,!0);const{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},o=(u,f)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:v,onDrag:m}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:y}=f;if(h&&this.currentDirection===null){this.currentDirection=Bre(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),m&&m(u,f)},a=(u,f)=>this.stop(u,f);this.panSession=new O3(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Xt.update(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!_g(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Pre(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&Pf(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Ore(r.layoutBox,t):this.constraints=!1,this.elastic=Are(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&so(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=kre(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Pf(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=Fre(r,i.root,this.visualElement.getTransformPagePoint());let o=Tre(i.layout.layoutBox,s);if(n){const a=n(Rre(o));this.hasMutatedConstraints=!!a,a&&(o=C3(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},f=so(d=>{if(!_g(d,n,this.currentDirection))return;let h=u&&u[d]||{};o&&(h={min:0,max:0});const v=i?200:1e6,m=i?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:v,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...h};return this.startAxisValueAnimation(d,y)});return Promise.all(f).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(iT(t,r,0,n))}stopAnimation(){so(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){so(n=>{const{drag:r}=this.getProps();if(!_g(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-un(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Pf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};so(o=>{const a=this.getAxisMotionValue(o);if(a){const u=a.get();i[o]=Cre({min:u,max:u},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),so(o=>{if(!_g(o,t,null))return;const a=this.getAxisMotionValue(o),{min:u,max:f}=this.constraints[o];a.set(un(u,f,i[o]))})}addListeners(){if(!this.visualElement.current)return;Nre.set(this.visualElement,this);const t=this.visualElement.current,n=ga(t,"pointerdown",u=>{const{drag:f,dragListener:d=!0}=this.getProps();f&&d&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Pf(u)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const o=fa(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(so(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=u[d].translate,h.set(h.get()+u[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Zx,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function _g(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Bre(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Ure extends ql{constructor(t){super(t),this.removeGroupControls=mn,this.removeListeners=mn,this.controls=new $re(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||mn}unmount(){this.removeGroupControls(),this.removeListeners()}}const $M=e=>(t,n)=>{e&&Xt.update(()=>e(t,n))};class Vre extends ql{constructor(){super(...arguments),this.removePointerDownListener=mn}onPointerDown(t){this.session=new O3(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:$M(t),onStart:$M(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Xt.update(()=>i(s,o))}}}mount(){this.removePointerDownListener=ga(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function I3(){const e=N.useContext(Fv);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=N.useId();return N.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function jre(){return Wre(N.useContext(Fv))}function Wre(e){return e===null?!0:e.isPresent}const u_={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function BM(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const jh={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ue.test(e))e=parseFloat(e);else return e;const n=BM(e,t.target.x),r=BM(e,t.target.y);return`${n}% ${r}%`}},zre={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=jl.parse(e);if(i.length>5)return r;const s=jl.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=u;const f=un(a,u,.5);return typeof i[2+o]=="number"&&(i[2+o]/=f),typeof i[3+o]=="number"&&(i[3+o]/=f),s(i)}};class Hre extends rd.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Jee(Gre),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),u_.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Xt.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function M3(e){const[t,n]=I3(),r=N.useContext(zO);return rd.createElement(Hre,{...e,layoutGroup:r,switchLayoutGroup:N.useContext(TB),isPresent:t,safeToRemove:n})}const Gre={borderRadius:{...jh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:jh,borderTopRightRadius:jh,borderBottomLeftRadius:jh,borderBottomRightRadius:jh,boxShadow:zre},D3=["TopLeft","TopRight","BottomLeft","BottomRight"],Yre=D3.length,UM=e=>typeof e=="string"?parseFloat(e):e,VM=e=>typeof e=="number"||Ue.test(e);function qre(e,t,n,r,i,s){i?(e.opacity=un(0,n.opacity!==void 0?n.opacity:1,Kre(r)),e.opacityExit=un(t.opacity!==void 0?t.opacity:1,0,Xre(r))):s&&(e.opacity=un(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<Yre;o++){const a=`border${D3[o]}Radius`;let u=jM(t,a),f=jM(n,a);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||VM(u)===VM(f)?(e[a]=Math.max(un(UM(u),UM(f),r),0),(xo.test(f)||xo.test(u))&&(e[a]+="%")):e[a]=f}(t.rotate||n.rotate)&&(e.rotate=un(t.rotate||0,n.rotate||0,r))}function jM(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Kre=L3(0,.5,eT),Xre=L3(.5,.95,mn);function L3(e,t,n){return r=>r<e?0:r>t?1:n(uv(e,t,r))}function WM(e,t){e.min=t.min,e.max=t.max}function Yi(e,t){WM(e.x,t.x),WM(e.y,t.y)}function zM(e,t,n,r,i){return e-=t,e=yy(e,1/n,r),i!==void 0&&(e=yy(e,1/i,r)),e}function Jre(e,t=0,n=1,r=.5,i,s=e,o=e){if(xo.test(t)&&(t=parseFloat(t),t=un(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=un(s.min,s.max,r);e===s&&(a-=t),e.min=zM(e.min,t,n,a,i),e.max=zM(e.max,t,n,a,i)}function HM(e,t,[n,r,i],s,o){Jre(e,t[n],t[r],t[i],t.scale,s,o)}const Qre=["x","scaleX","originX"],Zre=["y","scaleY","originY"];function GM(e,t,n,r){HM(e.x,t,Qre,n?n.x:void 0,r?r.x:void 0),HM(e.y,t,Zre,n?n.y:void 0,r?r.y:void 0)}function YM(e){return e.translate===0&&e.scale===1}function F3(e){return YM(e.x)&&YM(e.y)}function eie(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function N3(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function qM(e){return Ci(e.x)/Ci(e.y)}class tie{constructor(){this.members=[]}add(t){sT(this.members,t),t.scheduleRender()}remove(t){if(oT(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function KM(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y;if((i||s)&&(r=`translate3d(${i}px, ${s}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:u,rotateX:f,rotateY:d}=n;u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `)}const o=e.x.scale*t.x,a=e.y.scale*t.y;return(o!==1||a!==1)&&(r+=`scale(${o}, ${a})`),r||"none"}const nie=(e,t)=>e.depth-t.depth;class rie{constructor(){this.children=[],this.isDirty=!1}add(t){sT(this.children,t),this.isDirty=!0}remove(t){oT(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nie),this.isDirty=!1,this.children.forEach(t)}}function iie(e,t){const n=performance.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Ca(r),e(s-t))};return Xt.read(r,!0),()=>Ca(r)}function sie(e){window.MotionDebug&&window.MotionDebug.record(e)}function oie(e){return e instanceof SVGElement&&e.tagName!=="svg"}function aie(e,t,n){const r=ui(e)?e:md(e);return r.start(iT("",r,t,n)),r.animation}const XM=["","X","Y","Z"],JM=1e3;let lie=0;const Ru={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function $3({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=lie++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Ru.totalNodes=Ru.resolvedTargetDeltas=Ru.recalculatedProjection=0,this.nodes.forEach(fie),this.nodes.forEach(mie),this.nodes.forEach(gie),this.nodes.forEach(die),sie(Ru)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new rie)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new aT),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const u=this.eventHandlers.get(o);u&&u.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=oie(o),this.instance=o;const{layoutId:u,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(f||u)&&(this.isLayoutDirty=!0),e){let h;const v=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=iie(v,250),u_.hasAnimatedSinceResize&&(u_.hasAnimatedSinceResize=!1,this.nodes.forEach(ZM))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:v,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||d.getDefaultTransition()||bie,{onLayoutAnimationStart:E,onLayoutAnimationComplete:S}=d.getProps(),_=!this.targetLayout||!N3(this.targetLayout,y)||m,b=!v&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||v&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,b);const O={...S3(w,"layout"),onPlay:E,onComplete:S};(d.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O)}else v||ZM(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ca(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_ie),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:u}=this.options;if(a===void 0&&!u)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(QM);return}this.isUpdating||this.nodes.forEach(pie),this.isUpdating=!1,this.nodes.forEach(vie),this.nodes.forEach(uie),this.nodes.forEach(cie),this.clearAllSnapshots();const a=performance.now();wr.delta=Vl(0,1e3/60,a-wr.timestamp),wr.timestamp=a,wr.isProcessing=!0,US.update.process(wr),US.preRender.process(wr),US.render.process(wr),wr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(hie),this.sharedNodes.forEach(yie)}scheduleUpdateProjection(){Xt.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=bn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&(this.scroll={animationId:this.root.animationId,phase:o,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform,a=this.projectionDelta&&!F3(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,d=f!==this.prevTransformTemplateValue;o&&(a||Au(this.latestValues)||d)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return o&&(u=this.removeTransform(u)),xie(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return bn();const a=o.measureViewportBox(),{scroll:u}=this.root;return u&&(cl(a.x,u.offset.x),cl(a.y,u.offset.y)),a}removeElementScroll(o){const a=bn();Yi(a,o);for(let u=0;u<this.path.length;u++){const f=this.path[u],{scroll:d,options:h}=f;if(f!==this.root&&d&&h.layoutScroll){if(d.isRoot){Yi(a,o);const{scroll:v}=this.root;v&&(cl(a.x,-v.offset.x),cl(a.y,-v.offset.y))}cl(a.x,d.offset.x),cl(a.y,d.offset.y)}}return a}applyTransform(o,a=!1){const u=bn();Yi(u,o);for(let f=0;f<this.path.length;f++){const d=this.path[f];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Cf(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Au(d.latestValues)&&Cf(u,d.latestValues)}return Au(this.latestValues)&&Cf(u,this.latestValues),u}removeTransform(o){const a=bn();Yi(a,o);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!Au(f.latestValues))continue;eE(f.latestValues)&&f.updateSnapshot();const d=bn(),h=f.measurePageBox();Yi(d,h),GM(a,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,d)}return Au(this.latestValues)&&GM(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==wr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(o||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:h,layoutId:v}=this.options;if(!(!this.layout||!(h||v))){if(this.resolvedRelativeTargetAt=wr.timestamp,!this.targetDelta&&!this.relativeTarget){const m=this.getClosestProjectingParent();m&&m.layout&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bn(),this.relativeTargetOrigin=bn(),Op(this.relativeTargetOrigin,this.layout.layoutBox,m.layout.layoutBox),Yi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=bn(),this.targetWithTransforms=bn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ere(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Yi(this.target,this.layout.layoutBox),A3(this.target,this.targetDelta)):Yi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const m=this.getClosestProjectingParent();m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?(this.relativeParent=m,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bn(),this.relativeTargetOrigin=bn(),Op(this.relativeTargetOrigin,this.target,m.target),Yi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ru.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||eE(this.parent.latestValues)||k3(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),u=!!this.resumingFrom||this!==a;let f=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===wr.timestamp&&(f=!1),f)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;Yi(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,m=this.treeScale.y;Mre(this.layoutCorrected,this.treeScale,this.path,u),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox);const{target:y}=a;if(!y){this.projectionTransform&&(this.projectionDelta=Tf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Tf(),this.projectionDeltaWithTransform=Tf());const w=this.projectionTransform;Pp(this.projectionDelta,this.layoutCorrected,y,this.latestValues),this.projectionTransform=KM(this.projectionDelta,this.treeScale),(this.projectionTransform!==w||this.treeScale.x!==v||this.treeScale.y!==m)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y)),Ru.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(o,a=!1){const u=this.snapshot,f=u?u.latestValues:{},d={...this.latestValues},h=Tf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const v=bn(),m=u?u.source:void 0,y=this.layout?this.layout.source:void 0,w=m!==y,E=this.getStack(),S=!E||E.members.length<=1,_=!!(w&&!S&&this.options.crossfade===!0&&!this.path.some(Sie));this.animationProgress=0;let b;this.mixTargetDelta=O=>{const I=O/1e3;eD(h.x,o.x,I),eD(h.y,o.y,I),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Op(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wie(this.relativeTarget,this.relativeTargetOrigin,v,I),b&&eie(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=bn()),Yi(b,this.relativeTarget)),w&&(this.animationValues=d,qre(d,f,this.latestValues,I,_,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ca(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Xt.update(()=>{u_.hasAnimatedSinceResize=!0,this.currentAnimation=aie(0,JM,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(JM),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:u,layout:f,latestValues:d}=o;if(!(!a||!u||!f)){if(this!==o&&this.layout&&f&&B3(this.options.animationType,this.layout.layoutBox,f.layoutBox)){u=this.target||bn();const h=Ci(this.layout.layoutBox.x);u.x.min=o.target.x.min,u.x.max=u.x.min+h;const v=Ci(this.layout.layoutBox.y);u.y.min=o.target.y.min,u.y.max=u.y.min+v}Yi(a,u),Cf(a,d),Pp(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new tie),this.sharedNodes.get(o).add(a);const f=a.options.initialPromotionConfig;a.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:u}={}){const f=this.getStack();f&&f.promote(this,u),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:u}=o;if((u.rotate||u.rotateX||u.rotateY||u.rotateZ)&&(a=!0),!a)return;const f={};for(let d=0;d<XM.length;d++){const h="rotate"+XM[d];u[h]&&(f[h]=u[h],o.setStaticValue(h,0))}o.render();for(const d in f)o.setStaticValue(d,f[d]);o.scheduleRender()}getProjectionStyles(o={}){var a,u;const f={};if(!this.instance||this.isSVG)return f;if(this.isVisible)f.visibility="";else return{visibility:"hidden"};const d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=l_(o.pointerEvents)||"",f.transform=d?d(this.latestValues,""):"none",f;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const w={};return this.options.layoutId&&(w.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,w.pointerEvents=l_(o.pointerEvents)||""),this.hasProjected&&!Au(this.latestValues)&&(w.transform=d?d({},""):"none",this.hasProjected=!1),w}const v=h.animationValues||h.latestValues;this.applyTransformsToTarget(),f.transform=KM(this.projectionDeltaWithTransform,this.treeScale,v),d&&(f.transform=d(v,f.transform));const{x:m,y}=this.projectionDelta;f.transformOrigin=`${m.origin*100}% ${y.origin*100}% 0`,h.animationValues?f.opacity=h===this?(u=(a=v.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&u!==void 0?u:1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:f.opacity=h===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const w in dy){if(v[w]===void 0)continue;const{correct:E,applyTo:S}=dy[w],_=f.transform==="none"?v[w]:E(v[w],h);if(S){const b=S.length;for(let O=0;O<b;O++)f[S[O]]=_}else f[w]=_}return this.options.layoutId&&(f.pointerEvents=h===this?l_(o.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(QM),this.root.sharedNodes.clear()}}}function uie(e){e.updateLayout()}function cie(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?so(h=>{const v=o?n.measuredBox[h]:n.layoutBox[h],m=Ci(v);v.min=r[h].min,v.max=v.min+m}):B3(s,n.layoutBox,r)&&so(h=>{const v=o?n.measuredBox[h]:n.layoutBox[h],m=Ci(r[h]);v.max=v.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+m)});const a=Tf();Pp(a,r,n.layoutBox);const u=Tf();o?Pp(u,e.applyTransform(i,!0),n.measuredBox):Pp(u,r,n.layoutBox);const f=!F3(a);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:v,layout:m}=h;if(v&&m){const y=bn();Op(y,n.layoutBox,v.layoutBox);const w=bn();Op(w,r,m.layoutBox),N3(y,w)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=y,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:a,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function fie(e){Ru.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function die(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hie(e){e.clearSnapshot()}function QM(e){e.clearMeasurements()}function pie(e){e.isLayoutDirty=!1}function vie(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ZM(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mie(e){e.resolveTargetDelta()}function gie(e){e.calcProjection()}function _ie(e){e.resetRotation()}function yie(e){e.removeLeadSnapshot()}function eD(e,t,n){e.translate=un(t.translate,0,n),e.scale=un(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tD(e,t,n,r){e.min=un(t.min,n.min,r),e.max=un(t.max,n.max,r)}function wie(e,t,n,r){tD(e.x,t.x,n.x,r),tD(e.y,t.y,n.y,r)}function Sie(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const bie={duration:.45,ease:[.4,0,.1,1]},nD=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),rD=nD("applewebkit/")&&!nD("chrome/")?Math.round:mn;function iD(e){e.min=rD(e.min),e.max=rD(e.max)}function xie(e){iD(e.x),iD(e.y)}function B3(e,t,n){return e==="position"||e==="preserve-aspect"&&!Qx(qM(t),qM(n),.2)}const Eie=$3({attachResizeListener:(e,t)=>fa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),JS={current:void 0},U3=$3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!JS.current){const e=new Eie({});e.mount(window),e.setOptions({layoutScroll:!0}),JS.current=e}return JS.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Pie={pan:{Feature:Vre},drag:{Feature:Ure,ProjectionNode:U3,MeasureLayout:M3}},Oie=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Tie(e){const t=Oie.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function nE(e,t,n=1){const[r,i]=Tie(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return b3(o)?parseFloat(o):o}else return Hx(i)?nE(i,t,n+1):i}function Cie(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const s=i.get();if(!Hx(s))return;const o=nE(s,r);o&&i.set(o)});for(const i in t){const s=t[i];if(!Hx(s))continue;const o=nE(s,r);o&&(t[i]=o,n||(n={}),n[i]===void 0&&(n[i]=s))}return{target:t,transitionEnd:n}}const kie=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),V3=e=>kie.has(e),Aie=e=>Object.keys(e).some(V3),sD=e=>e===hc||e===Ue,oD=(e,t)=>parseFloat(e.split(", ")[t]),aD=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return oD(i[1],t);{const s=r.match(/^matrix\((.+)\)$/);return s?oD(s[1],e):0}},Rie=new Set(["x","y","z"]),Iie=Nv.filter(e=>!Rie.has(e));function Mie(e){const t=[];return Iie.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const gd={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:aD(4,13),y:aD(5,14)};gd.translateX=gd.x;gd.translateY=gd.y;const Die=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,s=getComputedStyle(i),{display:o}=s,a={};o==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(f=>{a[f]=gd[f](r,s)}),t.render();const u=t.measureViewportBox();return n.forEach(f=>{const d=t.getValue(f);d&&d.jump(a[f]),e[f]=gd[f](u,s)}),e},Lie=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(V3);let s=[],o=!1;const a=[];if(i.forEach(u=>{const f=e.getValue(u);if(!e.hasValue(u))return;let d=n[u],h=Vh(d);const v=t[u];let m;if(py(v)){const y=v.length,w=v[0]===null?1:0;d=v[w],h=Vh(d);for(let E=w;E<y&&v[E]!==null;E++)m?ZO(Vh(v[E])===m):m=Vh(v[E])}else m=Vh(v);if(h!==m)if(sD(h)&&sD(m)){const y=f.get();typeof y=="string"&&f.set(parseFloat(y)),typeof v=="string"?t[u]=parseFloat(v):Array.isArray(v)&&m===Ue&&(t[u]=v.map(parseFloat))}else h!=null&&h.transform&&(m!=null&&m.transform)&&(d===0||v===0)?d===0?f.set(m.transform(d)):t[u]=h.transform(v):(o||(s=Mie(e),o=!0),a.push(u),r[u]=r[u]!==void 0?r[u]:t[u],f.jump(v))}),a.length){const u=a.indexOf("height")>=0?window.pageYOffset:null,f=Die(t,e,a);return s.length&&s.forEach(([d,h])=>{e.getValue(d).set(h)}),e.render(),q0&&u!==null&&window.scrollTo({top:u}),{target:f,transitionEnd:r}}else return{target:t,transitionEnd:r}};function Fie(e,t,n,r){return Aie(t)?Lie(e,t,n,r):{target:t,transitionEnd:r}}const Nie=(e,t,n,r)=>{const i=Cie(e,t,r);return t=i.target,r=i.transitionEnd,Fie(e,t,n,r)},rE={current:null},j3={current:!1};function $ie(){if(j3.current=!0,!!q0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rE.current=e.matches;e.addListener(t),t()}else rE.current=!1}function Bie(e,t,n){const{willChange:r}=t;for(const i in t){const s=t[i],o=n[i];if(ui(s))e.addValue(i,s),_y(r)&&r.add(i);else if(ui(o))e.addValue(i,md(s,{owner:e})),_y(r)&&r.remove(i);else if(o!==s)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(s)}else{const a=e.getStaticValue(i);e.addValue(i,md(a!==void 0?a:s,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const lD=new WeakMap,W3=Object.keys(lv),Uie=W3.length,uD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Vie=WO.length;class jie{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Xt.render(this.render,!1,!0);const{latestValues:a,renderState:u}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=X0(n),this.isVariantNode=OB(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{});for(const h in d){const v=d[h];a[h]!==void 0&&ui(v)&&(v.set(a[h],!1),_y(f)&&f.add(h))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,lD.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),j3.current||$ie(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:rE.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){lD.delete(this.current),this.projection&&this.projection.unmount(),Ca(this.notifyUpdate),Ca(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=dc.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Xt.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,s){let o,a;for(let u=0;u<Uie;u++){const f=W3[u],{isEnabled:d,Feature:h,ProjectionNode:v,MeasureLayout:m}=lv[f];v&&(o=v),d(n)&&(!this.features[f]&&h&&(this.features[f]=new h(this)),m&&(a=m))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:f,drag:d,dragConstraints:h,layoutScroll:v,layoutRoot:m}=n;this.projection.setOptions({layoutId:u,layout:f,alwaysMeasureLayout:!!d||h&&Pf(h),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof f=="string"?f:"both",initialPromotionConfig:s,layoutScroll:v,layoutRoot:m})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bn()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<uD.length;r++){const i=uD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s=t["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Bie(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Vie;r++){const i=WO[r],s=this.props[i];(av(s)||s===!1)&&(n[i]=s)}return n}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=md(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=QO(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ui(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new aT),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class z3 extends jie{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},s){let o=ore(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),o&&(o=i(o))),s){ire(this,r,o);const a=Nie(this,r,o,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function Wie(e){return window.getComputedStyle(e)}class zie extends z3{readValueFromInstance(t,n){if(dc.has(n)){const r=rT(n);return r&&r.default||0}else{const r=Wie(t),i=(AB(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return R3(t,n)}build(t,n,r,i){GO(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return JO(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ui(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){FB(t,n,r,i)}}class Hie extends z3{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(dc.has(n)){const r=rT(n);return r&&r.default||0}return n=NB.has(n)?n:XO(n),t.getAttribute(n)}measureInstanceViewportBox(){return bn()}scrapeMotionValuesFromProps(t,n){return BB(t,n)}build(t,n,r,i){qO(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){$B(t,n,r,i)}mount(t){this.isSVGTag=KO(t.tagName),super.mount(t)}}const Gie=(e,t)=>HO(e)?new Hie(t,{enableHardwareAcceleration:!1}):new zie(t,{enableHardwareAcceleration:!0}),Yie={layout:{ProjectionNode:U3,MeasureLayout:M3}},qie={...wre,...Ute,...Pie,...Yie},pc=Kee((e,t)=>Tte(e,t,qie,Gie));function H3(){const e=N.useRef(!1);return VO(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Kie(){const e=H3(),[t,n]=N.useState(0),r=N.useCallback(()=>{e.current&&n(t+1)},[t]);return[N.useCallback(()=>Xt.postRender(r),[r]),t]}class Xie extends N.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Jie({children:e,isPresent:t}){const n=N.useId(),r=N.useRef(null),i=N.useRef({width:0,height:0,top:0,left:0});return N.useInsertionEffect(()=>{const{width:s,height:o,top:a,left:u}=i.current;if(t||!r.current||!s||!o)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
          [data-motion-pop-id="${n}"] {
            position: absolute !important;
            width: ${s}px !important;
            height: ${o}px !important;
            top: ${a}px !important;
            left: ${u}px !important;
          }
        `),()=>{document.head.removeChild(f)}},[t]),N.createElement(Xie,{isPresent:t,childRef:r,sizeRef:i},N.cloneElement(e,{ref:r}))}const QS=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=UB(Qie),u=N.useId(),f=N.useMemo(()=>({id:u,initial:t,isPresent:n,custom:i,onExitComplete:d=>{a.set(d,!0);for(const h of a.values())if(!h)return;r&&r()},register:d=>(a.set(d,!1),()=>a.delete(d))}),s?void 0:[n]);return N.useMemo(()=>{a.forEach((d,h)=>a.set(h,!1))},[n]),N.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),o==="popLayout"&&(e=N.createElement(Jie,{isPresent:n},e)),N.createElement(Fv.Provider,{value:f},e)};function Qie(){return new Map}function Zie(e){return N.useEffect(()=>()=>e(),[])}const cf=e=>e.key||"";function ese(e,t){e.forEach(n=>{const r=cf(n);t.set(r,n)})}function tse(e){const t=[];return N.Children.forEach(e,n=>{N.isValidElement(n)&&t.push(n)}),t}const zd=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=N.useContext(zO).forceRender||Kie()[0],u=H3(),f=tse(e);let d=f;const h=N.useRef(new Map).current,v=N.useRef(d),m=N.useRef(new Map).current,y=N.useRef(!0);if(VO(()=>{y.current=!1,ese(f,m),v.current=d}),Zie(()=>{y.current=!0,m.clear(),h.clear()}),y.current)return N.createElement(N.Fragment,null,d.map(_=>N.createElement(QS,{key:cf(_),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:s,mode:o},_)));d=[...d];const w=v.current.map(cf),E=f.map(cf),S=w.length;for(let _=0;_<S;_++){const b=w[_];E.indexOf(b)===-1&&!h.has(b)&&h.set(b,void 0)}return o==="wait"&&h.size&&(d=[]),h.forEach((_,b)=>{if(E.indexOf(b)!==-1)return;const O=m.get(b);if(!O)return;const I=w.indexOf(b);let A=_;if(!A){const C=()=>{m.delete(b),h.delete(b);const P=v.current.findIndex(M=>M.key===b);if(v.current.splice(P,1),!h.size){if(v.current=f,u.current===!1)return;a(),r&&r()}};A=N.createElement(QS,{key:cf(O),isPresent:!1,onExitComplete:C,custom:t,presenceAffectsLayout:s,mode:o},O),h.set(b,A)}d.splice(I,0,A)}),d=d.map(_=>{const b=_.key;return h.has(b)?_:N.createElement(QS,{key:cf(_),isPresent:!0,presenceAffectsLayout:s,mode:o},_)}),N.createElement(N.Fragment,null,h.size?d:d.map(_=>N.cloneElement(_)))};var nse={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(r=1),{opacity:0,[n]:r*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},G3=N.memo(e=>{const{id:t,message:n,onCloseComplete:r,onRequestRemove:i,requestClose:s=!1,position:o="bottom",duration:a=5e3,containerStyle:u,motionVariants:f=nse,toastSpacing:d="0.5rem"}=e,[h,v]=N.useState(a),m=jre();sM(()=>{m||r==null||r()},[m]),sM(()=>{v(a)},[a]);const y=()=>v(null),w=()=>v(a),E=()=>{m&&i()};N.useEffect(()=>{m&&s&&i()},[m,s,i]),Uee(E,h);const S=N.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...u}),[u,d]),_=N.useMemo(()=>$ee(o),[o]);return de(pc.div,{layout:!0,className:"chakra-toast",variants:f,initial:"initial",animate:"animate",exit:"exit",onHoverStart:y,onHoverEnd:w,custom:{position:o},style:_,children:de(Bt.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:S,children:vo(n,{id:t,onClose:E})})})});G3.displayName="ToastComponent";function rse(e,t){var n;const r=e??"bottom",s={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return(n=s==null?void 0:s[t])!=null?n:r}var cD={path:$l("g",{stroke:"currentColor",strokeWidth:"1.5",children:[de("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),de("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),de("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Vv=Hr((e,t)=>{const{as:n,viewBox:r,color:i="currentColor",focusable:s=!1,children:o,className:a,__css:u,...f}=e,d=Bn("chakra-icon",a),h=Wd("Icon",e),v={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:i,...u,...h},m={ref:t,focusable:s,className:d,__css:v},y=r??cD.viewBox;if(n&&typeof n!="string")return de(Bt.svg,{as:n,...m,...f});const w=o??cD.path;return de(Bt.svg,{verticalAlign:"middle",viewBox:y,...m,...f,children:w})});Vv.displayName="Icon";function ise(e){return de(Vv,{viewBox:"0 0 24 24",...e,children:de("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function sse(e){return de(Vv,{viewBox:"0 0 24 24",...e,children:de("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function fD(e){return de(Vv,{viewBox:"0 0 24 24",...e,children:de("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var ose=NQ({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),lT=Hr((e,t)=>{const n=Wd("Spinner",e),{label:r="Loading...",thickness:i="2px",speed:s="0.45s",emptyColor:o="transparent",className:a,...u}=jd(e),f=Bn("chakra-spinner",a),d={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:o,borderLeftColor:o,animation:`${ose} ${s} linear infinite`,...n};return de(Bt.div,{ref:t,__css:d,className:f,...u,children:r&&de(Bt.span,{srOnly:!0,children:r})})});lT.displayName="Spinner";var[ase,uT]=Yl({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[lse,cT]=Yl({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),Y3={info:{icon:sse,colorScheme:"blue"},warning:{icon:fD,colorScheme:"orange"},success:{icon:ise,colorScheme:"green"},error:{icon:fD,colorScheme:"red"},loading:{icon:lT,colorScheme:"blue"}};function use(e){return Y3[e].colorScheme}function cse(e){return Y3[e].icon}var q3=Hr(function(t,n){const r=cT(),{status:i}=uT(),s={display:"inline",...r.description};return de(Bt.div,{ref:n,"data-status":i,...t,className:Bn("chakra-alert__desc",t.className),__css:s})});q3.displayName="AlertDescription";function K3(e){const{status:t}=uT(),n=cse(t),r=cT(),i=t==="loading"?r.spinner:r.icon;return de(Bt.span,{display:"inherit","data-status":t,...e,className:Bn("chakra-alert__icon",e.className),__css:i,children:e.children||de(n,{h:"100%",w:"100%"})})}K3.displayName="AlertIcon";var X3=Hr(function(t,n){const r=cT(),{status:i}=uT();return de(Bt.div,{ref:n,"data-status":i,...t,className:Bn("chakra-alert__title",t.className),__css:r.title})});X3.displayName="AlertTitle";var J3=Hr(function(t,n){var r;const{status:i="info",addRole:s=!0,...o}=jd(t),a=(r=t.colorScheme)!=null?r:use(i),u=SB("Alert",{...t,colorScheme:a}),f={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...u.container};return de(ase,{value:{status:i},children:de(lse,{value:u,children:de(Bt.div,{"data-status":i,role:s?"alert":void 0,ref:n,...o,className:Bn("chakra-alert",t.className),__css:f})})})});J3.displayName="Alert";function fse(e){return de(Vv,{focusable:"false","aria-hidden":!0,...e,children:de("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var Q3=Hr(function(t,n){const r=Wd("CloseButton",t),{children:i,isDisabled:s,__css:o,...a}=jd(t),u={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return de(Bt.button,{type:"button","aria-label":"Close",ref:n,disabled:s,__css:{...u,...r,...o},...a,children:i||de(fse,{width:"1em",height:"1em"})})});Q3.displayName="CloseButton";var dse={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},fo=hse(dse);function hse(e){let t=e;const n=new Set,r=i=>{t=i(t),n.forEach(s=>s())};return{getState:()=>t,subscribe:i=>(n.add(i),()=>{r(()=>e),n.delete(i)}),removeToast:(i,s)=>{r(o=>({...o,[s]:o[s].filter(a=>a.id!=i)}))},notify:(i,s)=>{const o=pse(i,s),{position:a,id:u}=o;return r(f=>{var d,h;const m=a.includes("top")?[o,...(d=f[a])!=null?d:[]]:[...(h=f[a])!=null?h:[],o];return{...f,[a]:m}}),u},update:(i,s)=>{i&&r(o=>{const a={...o},{position:u,index:f}=iM(a,i);return u&&f!==-1&&(a[u][f]={...a[u][f],...s,message:Z3(s)}),a})},closeAll:({positions:i}={})=>{r(s=>(i??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((u,f)=>(u[f]=s[f].map(d=>({...d,requestClose:!0})),u),{...s}))},close:i=>{r(s=>{const o=xB(s,i);return o?{...s,[o]:s[o].map(a=>a.id==i?{...a,requestClose:!0}:a)}:s})},isActive:i=>!!iM(fo.getState(),i).position}}var dD=0;function pse(e,t={}){var n,r;dD+=1;const i=(n=t.id)!=null?n:dD,s=(r=t.position)!=null?r:"bottom";return{id:i,message:e,position:s,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>fo.removeToast(String(i),s),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}var vse=e=>{const{status:t,variant:n="solid",id:r,title:i,isClosable:s,onClose:o,description:a,colorScheme:u,icon:f}=e,d=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return $l(J3,{addRole:!1,status:t,variant:n,id:d==null?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[de(K3,{children:f}),$l(Bt.div,{flex:"1",maxWidth:"100%",children:[i&&de(X3,{id:d==null?void 0:d.title,children:i}),a&&de(q3,{id:d==null?void 0:d.description,display:"block",children:a})]}),s&&de(Q3,{size:"sm",onClick:o,position:"absolute",insetEnd:1,top:1})]})};function Z3(e={}){const{render:t,toastComponent:n=vse}=e;return i=>typeof t=="function"?t({...i,...e}):de(n,{...i,...e})}function L0e(e,t){const n=i=>{var s;return{...t,...i,position:rse((s=i==null?void 0:i.position)!=null?s:t==null?void 0:t.position,e)}},r=i=>{const s=n(i),o=Z3(s);return fo.notify(o,s)};return r.update=(i,s)=>{fo.update(i,n(s))},r.promise=(i,s)=>{const o=r({...s.loading,status:"loading",duration:null});i.then(a=>r.update(o,{status:"success",duration:5e3,...vo(s.success,a)})).catch(a=>r.update(o,{status:"error",duration:5e3,...vo(s.error,a)}))},r.closeAll=fo.closeAll,r.close=fo.close,r.isActive=fo.isActive,r}var[F0e,N0e]=Yl({name:"ToastOptionsContext",strict:!1}),$0e=e=>{const t=N.useSyncExternalStore(fo.subscribe,fo.getState,fo.getState),{motionVariants:n,component:r=G3,portalProps:i}=e,o=Object.keys(t).map(a=>{const u=t[a];return de("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${a}`,style:Bee(a),children:de(zd,{initial:!1,children:u.map(f=>de(r,{motionVariants:n,...f},f.id))})},a)});return de(Vd,{...i,children:o})};function mse(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function _d(...e){return t=>{e.forEach(n=>{mse(n,t)})}}function gse(...e){return N.useMemo(()=>_d(...e),e)}var hD={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Wh={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function B0e(e){var t;switch((t=e==null?void 0:e.direction)!=null?t:"right"){case"right":return Wh.slideRight;case"left":return Wh.slideLeft;case"bottom":return Wh.slideDown;case"top":return Wh.slideUp;default:return Wh.slideRight}}var Ku={enter:{duration:.2,ease:hD.easeOut},exit:{duration:.1,ease:hD.easeIn}},Xu={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},_se={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:(r=e==null?void 0:e.enter)!=null?r:Xu.enter(Ku.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:(r=e==null?void 0:e.exit)!=null?r:Xu.exit(Ku.exit,n),transitionEnd:t==null?void 0:t.exit}}},eU={initial:"exit",animate:"enter",exit:"exit",variants:_se},yse=N.forwardRef(function(t,n){const{unmountOnExit:r,in:i,className:s,transition:o,transitionEnd:a,delay:u,...f}=t,d=i||r?"enter":"exit",h=r?i&&r:!0,v={transition:o,transitionEnd:a,delay:u};return de(zd,{custom:v,children:h&&de(pc.div,{ref:n,className:Bn("chakra-fade",s),custom:v,...eU,animate:d,...f})})});yse.displayName="Fade";var wse={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:i})=>{var s;return{opacity:0,...e?{scale:t,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{scale:t,...r==null?void 0:r.exit}},transition:(s=n==null?void 0:n.exit)!=null?s:Xu.exit(Ku.exit,i)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:(r=t==null?void 0:t.enter)!=null?r:Xu.enter(Ku.enter,n),transitionEnd:e==null?void 0:e.enter}}},tU={initial:"exit",animate:"enter",exit:"exit",variants:wse},Sse=N.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:s=!0,initialScale:o=.95,className:a,transition:u,transitionEnd:f,delay:d,...h}=t,v=r?i&&r:!0,m=i||r?"enter":"exit",y={initialScale:o,reverse:s,transition:u,transitionEnd:f,delay:d};return de(zd,{custom:y,children:v&&de(pc.div,{ref:n,className:Bn("chakra-offset-slide",a),...tU,animate:m,custom:y,...h})})});Sse.displayName="ScaleFade";var bse={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:i})=>{var s;return{opacity:0,x:e,y:t,transition:(s=n==null?void 0:n.exit)!=null?s:Xu.exit(Ku.exit,i),transitionEnd:r==null?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:(r=e==null?void 0:e.enter)!=null?r:Xu.enter(Ku.enter,n),transitionEnd:t==null?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:i,delay:s})=>{var o;const a={x:t,y:e};return{opacity:0,transition:(o=n==null?void 0:n.exit)!=null?o:Xu.exit(Ku.exit,s),...i?{...a,transitionEnd:r==null?void 0:r.exit}:{transitionEnd:{...a,...r==null?void 0:r.exit}}}}},iE={initial:"initial",animate:"enter",exit:"exit",variants:bse},xse=N.forwardRef(function(t,n){const{unmountOnExit:r,in:i,reverse:s=!0,className:o,offsetX:a=0,offsetY:u=8,transition:f,transitionEnd:d,delay:h,...v}=t,m=r?i&&r:!0,y=i||r?"enter":"exit",w={offsetX:a,offsetY:u,reverse:s,transition:f,transitionEnd:d,delay:h};return de(zd,{custom:w,children:m&&de(pc.div,{ref:n,className:Bn("chakra-offset-slide",o),custom:w,...iE,animate:y,...v})})});xse.displayName="SlideFade";var[Ese,Pse]=Yl({strict:!1,name:"ButtonGroupContext"}),Ose={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},Tse={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},Cse=Hr(function(t,n){const{size:r,colorScheme:i,variant:s,className:o,spacing:a="0.5rem",isAttached:u,isDisabled:f,orientation:d="horizontal",...h}=t,v=Bn("chakra-button__group",o),m=N.useMemo(()=>({size:r,colorScheme:i,variant:s,isDisabled:f}),[r,i,s,f]);let y={display:"inline-flex",...u?Ose[d]:Tse[d](a)};const w=d==="vertical";return de(Ese,{value:m,children:de(Bt.div,{ref:n,role:"group",__css:y,className:v,"data-attached":u?"":void 0,"data-orientation":d,flexDir:w?"column":void 0,...h})})});Cse.displayName="ButtonGroup";function kse(e){const[t,n]=N.useState(!e);return{ref:N.useCallback(s=>{s&&n(s.tagName==="BUTTON")},[]),type:t?"button":void 0}}function sE(e){const{children:t,className:n,...r}=e,i=N.isValidElement(t)?N.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,s=Bn("chakra-button__icon",n);return de(Bt.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...r,className:s,children:i})}sE.displayName="ButtonIcon";function oE(e){const{label:t,placement:n,spacing:r="0.5rem",children:i=de(lT,{color:"currentColor",width:"1em",height:"1em"}),className:s,__css:o,...a}=e,u=Bn("chakra-button__spinner",s),f=n==="start"?"marginEnd":"marginStart",d=N.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[f]:t?r:0,fontSize:"1em",lineHeight:"normal",...o}),[o,t,f,r]);return de(Bt.div,{className:u,...a,__css:d,children:i})}oE.displayName="ButtonSpinner";var nU=Hr((e,t)=>{const n=Pse(),r=Wd("Button",{...n,...e}),{isDisabled:i=n==null?void 0:n.isDisabled,isLoading:s,isActive:o,children:a,leftIcon:u,rightIcon:f,loadingText:d,iconSpacing:h="0.5rem",type:v,spinner:m,spinnerPlacement:y="start",className:w,as:E,...S}=jd(e),_=N.useMemo(()=>{const A={...r==null?void 0:r._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...r,...!!n&&{_focus:A}}},[r,n]),{ref:b,type:O}=kse(E),I={rightIcon:f,leftIcon:u,iconSpacing:h,children:a};return $l(Bt.button,{ref:gse(t,b),as:E,type:v??O,"data-active":HI(o),"data-loading":HI(s),__css:_,className:Bn("chakra-button",w),...S,disabled:i||s,children:[s&&y==="start"&&de(oE,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:h,children:m}),s?d||de(Bt.span,{opacity:0,children:de(pD,{...I})}):de(pD,{...I}),s&&y==="end"&&de(oE,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:h,children:m})]})});nU.displayName="Button";function pD(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:i}=e;return $l(kb,{children:[t&&de(sE,{marginEnd:i,children:t}),r,n&&de(sE,{marginStart:i,children:n})]})}function ZS(e,t,n,r){const i=fy(n);return N.useEffect(()=>{const s=typeof e=="function"?e():e??document;if(!(!n||!s))return s.addEventListener(t,i,r),()=>{s.removeEventListener(t,i,r)}},[t,e,r,i,n]),()=>{const s=typeof e=="function"?e():e??document;s==null||s.removeEventListener(t,i,r)}}function Ase(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var aE="data-focus-lock",rU="data-focus-lock-disabled",Rse="data-no-focus-lock",Ise="data-autofocus-inside",Mse="data-no-autofocus";function Dse(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Lse(e,t){var n=N.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function iU(e,t){return Lse(t||null,function(n){return e.forEach(function(r){return Dse(r,n)})})}var eb={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},ho=function(){return ho=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},ho.apply(this,arguments)};function sU(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function U0e(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{f(r.next(d))}catch(h){o(h)}}function u(d){try{f(r.throw(d))}catch(h){o(h)}}function f(d){d.done?s(d.value):i(d.value).then(a,u)}f((r=r.apply(e,t||[])).next())})}function V0e(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(f){return function(d){return u([f,d])}}function u(f){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(s=f[0]&2?i.return:f[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,f[1])).done)return s;switch(i=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){n.label=f[1];break}if(f[0]===6&&n.label<s[1]){n.label=s[1],s=f;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(f);break}s[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(d){f=[6,d],i=0}finally{r=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function Fse(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return s}function j0e(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Fse(arguments[t]));return e}function Nse(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}function oU(e){return e}function aU(e,t){t===void 0&&(t=oU);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var o=t(s,r);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(s){for(r=!0;n.length;){var o=n;n=[],o.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(s),o=n}var u=function(){var d=o;o=[],d.forEach(s)},f=function(){return Promise.resolve().then(u)};f(),n={push:function(d){o.push(d),f()},filter:function(d){return o=o.filter(d),n}}}};return i}function fT(e,t){return t===void 0&&(t=oU),aU(e,t)}function lU(e){e===void 0&&(e={});var t=aU(null);return t.options=ho({async:!0,ssr:!1},e),t}var uU=function(e){var t=e.sideCar,n=sU(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return N.createElement(r,ho({},n))};uU.isSideCarExport=!0;function $se(e,t){return e.useMedium(t),uU}var cU=fT({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),fU=fT(),Bse=fT(),Use=lU({async:!0}),Vse=[],dT=N.forwardRef(function(t,n){var r,i=N.useState(),s=i[0],o=i[1],a=N.useRef(),u=N.useRef(!1),f=N.useRef(null),d=t.children,h=t.disabled,v=t.noFocusGuards,m=t.persistentFocus,y=t.crossFrame,w=t.autoFocus;t.allowTextSelection;var E=t.group,S=t.className,_=t.whiteList,b=t.hasPositiveIndices,O=t.shards,I=O===void 0?Vse:O,A=t.as,C=A===void 0?"div":A,P=t.lockProps,M=P===void 0?{}:P,D=t.sideCar,V=t.returnFocus,Q=t.focusOptions,se=t.onActivation,ie=t.onDeactivation,q=N.useState({}),oe=q[0],ue=N.useCallback(function(){f.current=f.current||document&&document.activeElement,a.current&&se&&se(a.current),u.current=!0},[se]),X=N.useCallback(function(){u.current=!1,ie&&ie(a.current)},[ie]);N.useEffect(function(){h||(f.current=null)},[]);var te=N.useCallback(function(De){var Be=f.current;if(Be&&Be.focus){var nt=typeof V=="function"?V(Be):V;if(nt){var Xe=typeof nt=="object"?nt:void 0;f.current=null,De?Promise.resolve().then(function(){return Be.focus(Xe)}):Be.focus(Xe)}}},[V]),ve=N.useCallback(function(De){u.current&&cU.useMedium(De)},[]),he=fU.useMedium,we=N.useCallback(function(De){a.current!==De&&(a.current=De,o(De))},[]),_e=sc((r={},r[rU]=h&&"disabled",r[aE]=E,r),M),Ie=v!==!0,me=Ie&&v!=="tail",Ae=iU([n,we]);return N.createElement(N.Fragment,null,Ie&&[N.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:h?-1:0,style:eb}),b?N.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:h?-1:1,style:eb}):null],!h&&N.createElement(D,{id:oe,sideCar:Use,observed:s,disabled:h,persistentFocus:m,crossFrame:y,autoFocus:w,whiteList:_,shards:I,onActivation:ue,onDeactivation:X,returnFocus:te,focusOptions:Q}),N.createElement(C,sc({ref:Ae},_e,{className:S,onBlur:he,onFocus:ve}),d),me&&N.createElement("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:eb}))});dT.propTypes={};dT.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};const dU=dT;function lE(e,t){return lE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lE(e,t)}function jse(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lE(e,t)}function cv(e){"@babel/helpers - typeof";return cv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cv(e)}function Wse(e,t){if(cv(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(cv(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zse(e){var t=Wse(e,"string");return cv(t)==="symbol"?t:String(t)}function Hse(e,t,n){return t=zse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gse(e,t){function n(r){return r.displayName||r.name||"Component"}return function(i){var s=[],o;function a(){o=e(s.map(function(f){return f.props})),t(o)}var u=function(f){jse(d,f);function d(){return f.apply(this,arguments)||this}d.peek=function(){return o};var h=d.prototype;return h.componentDidMount=function(){s.push(this),a()},h.componentDidUpdate=function(){a()},h.componentWillUnmount=function(){var m=s.indexOf(this);s.splice(m,1),a()},h.render=function(){return rd.createElement(i,this.props)},d}(N.PureComponent);return Hse(u,"displayName","SideEffect("+n(i)+")"),u}}var Ao=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},wy=function(e){return Array.isArray(e)?e:[e]},hU=function(e){return Array.isArray(e)?e[0]:e},Yse=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},pU=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},vU=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},qse=function(e,t){return!e||vU(e)||!Yse(e)&&t(pU(e))},mU=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=qse(t,mU.bind(void 0,e));return e.set(t,r),r},Kse=function(e,t){return e&&!vU(e)?Qse(e)?t(pU(e)):!1:!0},gU=function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=Kse(t,gU.bind(void 0,e));return e.set(t,r),r},_U=function(e){return e.dataset},Xse=function(e){return e.tagName==="BUTTON"},yU=function(e){return e.tagName==="INPUT"},wU=function(e){return yU(e)&&e.type==="radio"},Jse=function(e){return!((yU(e)||Xse(e))&&(e.type==="hidden"||e.disabled))},Qse=function(e){var t=e.getAttribute(Mse);return![!0,"true",""].includes(t)},hT=function(e){var t;return!!(e&&(!((t=_U(e))===null||t===void 0)&&t.focusGuard))},Sy=function(e){return!hT(e)},Zse=function(e){return!!e},eoe=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},SU=function(e,t,n){return Ao(e).map(function(r,i){return{node:r,index:i,tabIndex:n&&r.tabIndex===-1?(r.dataset||{}).focusGuard?0:-1:r.tabIndex}}).filter(function(r){return!t||r.tabIndex>=0}).sort(eoe)},toe=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],pT=toe.join(","),noe="".concat(pT,", [data-focus-guard]"),bU=function(e,t){return Ao((e.shadowRoot||e).children).reduce(function(n,r){return n.concat(r.matches(t?noe:pT)?[r]:[],bU(r))},[])},roe=function(e,t){var n;return e instanceof HTMLIFrameElement&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?e1([e.contentDocument.body],t):[e]},e1=function(e,t){return e.reduce(function(n,r){var i,s=bU(r,t),o=(i=[]).concat.apply(i,s.map(function(a){return roe(a,t)}));return n.concat(o,r.parentNode?Ao(r.parentNode.querySelectorAll(pT)).filter(function(a){return a===r}):[])},[])},ioe=function(e){var t=e.querySelectorAll("[".concat(Ise,"]"));return Ao(t).map(function(n){return e1([n])}).reduce(function(n,r){return n.concat(r)},[])},vT=function(e,t){return Ao(e).filter(function(n){return mU(t,n)}).filter(function(n){return Jse(n)})},vD=function(e,t){return t===void 0&&(t=new Map),Ao(e).filter(function(n){return gU(t,n)})},uE=function(e,t,n){return SU(vT(e1(e,n),t),!0,n)},mD=function(e,t){return SU(vT(e1(e),t),!1)},soe=function(e,t){return vT(ioe(e),t)},Hf=function(e,t){return e.shadowRoot?Hf(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Ao(e.children).some(function(n){var r;if(n instanceof HTMLIFrameElement){var i=(r=n.contentDocument)===null||r===void 0?void 0:r.body;return i?Hf(i,t):!1}return Hf(n,t)})},ooe=function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var s=e[r].compareDocumentPosition(e[i]);(s&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(s&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(o,a){return!t.has(a)})},xU=function(e){return e.parentNode?xU(e.parentNode):e},mT=function(e){var t=wy(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(aE);return n.push.apply(n,i?ooe(Ao(xU(r).querySelectorAll("[".concat(aE,'="').concat(i,'"]:not([').concat(rU,'="disabled"])')))):[r]),n},[])},aoe=function(e){try{return e()}catch{return}},fv=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?fv(t.shadowRoot):t instanceof HTMLIFrameElement&&aoe(function(){return t.contentWindow.document})?fv(t.contentWindow.document):t}},loe=function(e,t){return e===t},uoe=function(e,t){return!!Ao(e.querySelectorAll("iframe")).some(function(n){return loe(n,t)})},EU=function(e,t){return t===void 0&&(t=fv(hU(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:mT(e).some(function(n){return Hf(n,t)||uoe(n,t)})},coe=function(e){e===void 0&&(e=document);var t=fv(e);return t?Ao(e.querySelectorAll("[".concat(Rse,"]"))).some(function(n){return Hf(n,t)}):!1},foe=function(e,t){return t.filter(wU).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},gT=function(e,t){return wU(e)&&e.name?foe(e,t):e},doe=function(e){var t=new Set;return e.forEach(function(n){return t.add(gT(n,e))}),e.filter(function(n){return t.has(n)})},gD=function(e){return e[0]&&e.length>1?gT(e[0],e):e[0]},_D=function(e,t){return e.length>1?e.indexOf(gT(e[t],e)):t},PU="NEW_FOCUS",hoe=function(e,t,n,r){var i=e.length,s=e[0],o=e[i-1],a=hT(n);if(!(n&&e.indexOf(n)>=0)){var u=n!==void 0?t.indexOf(n):-1,f=r?t.indexOf(r):u,d=r?e.indexOf(r):-1,h=u-f,v=t.indexOf(s),m=t.indexOf(o),y=doe(t),w=n!==void 0?y.indexOf(n):-1,E=w-(r?y.indexOf(r):u),S=_D(e,0),_=_D(e,i-1);if(u===-1||d===-1)return PU;if(!h&&d>=0)return d;if(u<=v&&a&&Math.abs(h)>1)return _;if(u>=m&&a&&Math.abs(h)>1)return S;if(h&&Math.abs(E)>1)return d;if(u<=v)return _;if(u>m)return S;if(h)return Math.abs(h)>1?d:(i+d+h)%i}},poe=function(e){return function(t){var n,r=(n=_U(t))===null||n===void 0?void 0:n.autofocus;return t.autofocus||r!==void 0&&r!=="false"||e.indexOf(t)>=0}},voe=function(e,t,n){var r=e.map(function(s){var o=s.node;return o}),i=vD(r.filter(poe(n)));return i&&i.length?gD(i):gD(vD(t))},cE=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&cE(e.parentNode.host||e.parentNode,t),t},tb=function(e,t){for(var n=cE(e),r=cE(t),i=0;i<n.length;i+=1){var s=n[i];if(r.indexOf(s)>=0)return s}return!1},OU=function(e,t,n){var r=wy(e),i=wy(t),s=r[0],o=!1;return i.filter(Boolean).forEach(function(a){o=tb(o||a,a)||o,n.filter(Boolean).forEach(function(u){var f=tb(s,u);f&&(!o||Hf(f,o)?o=f:o=tb(f,o))})}),o},moe=function(e,t){return e.reduce(function(n,r){return n.concat(soe(r,t))},[])},goe=function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(Zse)},_oe=function(e,t){var n=fv(wy(e).length>0?document:hU(e).ownerDocument),r=mT(e).filter(Sy),i=OU(n||e,e,r),s=new Map,o=mD(r,s),a=uE(r,s).filter(function(m){var y=m.node;return Sy(y)});if(!(!a[0]&&(a=o,!a[0]))){var u=mD([i],s).map(function(m){var y=m.node;return y}),f=goe(u,a),d=f.map(function(m){var y=m.node;return y}),h=hoe(d,u,n,t);if(h===PU){var v=voe(o,d,moe(r,s));if(v)return{node:v};console.warn("focus-lock: cannot find any node to move focus into");return}return h===void 0?h:f[h]}},yoe=function(e){var t=mT(e).filter(Sy),n=OU(e,e,t),r=new Map,i=uE([n],r,!0),s=uE(t,r).filter(function(o){var a=o.node;return Sy(a)}).map(function(o){var a=o.node;return a});return i.map(function(o){var a=o.node,u=o.index;return{node:a,index:u,lockItem:s.indexOf(a)>=0,guard:hT(a)}})},woe=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},nb=0,rb=!1,TU=function(e,t,n){n===void 0&&(n={});var r=_oe(e,t);if(!rb&&r){if(nb>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),rb=!0,setTimeout(function(){rb=!1},1);return}nb++,woe(r.node,n.focusOptions),nb--}};function _T(e){setTimeout(e,1)}var Soe=function(){return document&&document.activeElement===document.body},boe=function(){return Soe()||coe()},Gf=null,kf=null,Yf=null,dv=!1,xoe=function(){return!0},Eoe=function(t){return(Gf.whiteList||xoe)(t)},Poe=function(t,n){Yf={observerNode:t,portaledElement:n}},Ooe=function(t){return Yf&&Yf.portaledElement===t};function yD(e,t,n,r){var i=null,s=e;do{var o=r[s];if(o.guard)o.node.dataset.focusAutoGuard&&(i=o);else if(o.lockItem){if(s!==e)return;i=null}else break}while((s+=n)!==t);i&&(i.node.tabIndex=0)}var Toe=function(t){return t&&"current"in t?t.current:t},Coe=function(t){return t?!!dv:dv==="meanwhile"},koe=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},Aoe=function(t,n){return n.some(function(r){return koe(t,r,r)})},by=function(){var t=!1;if(Gf){var n=Gf,r=n.observed,i=n.persistentFocus,s=n.autoFocus,o=n.shards,a=n.crossFrame,u=n.focusOptions,f=r||Yf&&Yf.portaledElement,d=document&&document.activeElement;if(f){var h=[f].concat(o.map(Toe).filter(Boolean));if((!d||Eoe(d))&&(i||Coe(a)||!boe()||!kf&&s)&&(f&&!(EU(h)||d&&Aoe(d,h)||Ooe(d))&&(document&&!kf&&d&&!s?(d.blur&&d.blur(),document.body.focus()):(t=TU(h,kf,{focusOptions:u}),Yf={})),dv=!1,kf=document&&document.activeElement),document){var v=document&&document.activeElement,m=yoe(h),y=m.map(function(w){var E=w.node;return E}).indexOf(v);y>-1&&(m.filter(function(w){var E=w.guard,S=w.node;return E&&S.dataset.focusAutoGuard}).forEach(function(w){var E=w.node;return E.removeAttribute("tabIndex")}),yD(y,m.length,1,m),yD(y,-1,-1,m))}}}return t},CU=function(t){by()&&t&&(t.stopPropagation(),t.preventDefault())},yT=function(){return _T(by)},Roe=function(t){var n=t.target,r=t.currentTarget;r.contains(n)||Poe(r,n)},Ioe=function(){return null},kU=function(){dv="just",_T(function(){dv="meanwhile"})},Moe=function(){document.addEventListener("focusin",CU),document.addEventListener("focusout",yT),window.addEventListener("blur",kU)},Doe=function(){document.removeEventListener("focusin",CU),document.removeEventListener("focusout",yT),window.removeEventListener("blur",kU)};function Loe(e){return e.filter(function(t){var n=t.disabled;return!n})}function Foe(e){var t=e.slice(-1)[0];t&&!Gf&&Moe();var n=Gf,r=n&&t&&t.id===n.id;Gf=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var s=i.id;return s===n.id}).length||n.returnFocus(!t)),t?(kf=null,(!r||n.observed!==t.observed)&&t.onActivation(),by(),_T(by)):(Doe(),kf=null)}cU.assignSyncMedium(Roe);fU.assignMedium(yT);Bse.assignMedium(function(e){return e({moveFocusInside:TU,focusInside:EU})});const Noe=Gse(Loe,Foe)(Ioe);var AU=N.forwardRef(function(t,n){return N.createElement(dU,sc({sideCar:Noe,ref:n},t))}),RU=dU.propTypes||{};RU.sideCar;Ase(RU,["sideCar"]);AU.propTypes={};const wD=AU;function IU(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function wT(e){var t;if(!IU(e))return!1;const n=(t=e.ownerDocument.defaultView)!=null?t:window;return e instanceof n.HTMLElement}function W0e(e){var t,n;return(n=(t=MU(e))==null?void 0:t.defaultView)!=null?n:window}function MU(e){return IU(e)?e.ownerDocument:document}function z0e(e){return MU(e).activeElement}function $oe(e){const t=e.ownerDocument.defaultView||window,{overflow:n,overflowX:r,overflowY:i}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(n+i+r)}function Boe(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function DU(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:wT(e)&&$oe(e)?e:DU(Boe(e))}var LU=e=>e.hasAttribute("tabindex"),Uoe=e=>LU(e)&&e.tabIndex===-1;function Voe(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function FU(e){return e.parentElement&&FU(e.parentElement)?!0:e.hidden}function joe(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function NU(e){if(!wT(e)||FU(e)||Voe(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const r={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in r?r[t]():joe(e)?!0:LU(e)}function H0e(e){return e?wT(e)&&NU(e)&&!Uoe(e):!1}var Woe=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],zoe=Woe.join(),Hoe=e=>e.offsetWidth>0&&e.offsetHeight>0;function Goe(e){const t=Array.from(e.querySelectorAll(zoe));return t.unshift(e),t.filter(n=>NU(n)&&Hoe(n))}var SD,Yoe=(SD=wD.default)!=null?SD:wD,$U=e=>{const{initialFocusRef:t,finalFocusRef:n,contentRef:r,restoreFocus:i,children:s,isDisabled:o,autoFocus:a,persistentFocus:u,lockFocusAcrossFrames:f}=e,d=N.useCallback(()=>{t!=null&&t.current?t.current.focus():r!=null&&r.current&&Goe(r.current).length===0&&requestAnimationFrame(()=>{var y;(y=r.current)==null||y.focus()})},[t,r]),h=N.useCallback(()=>{var m;(m=n==null?void 0:n.current)==null||m.focus()},[n]);return de(Yoe,{crossFrame:f,persistentFocus:u,autoFocus:a,disabled:o,onActivation:d,onDeactivation:h,returnFocus:i&&!n,children:s})};$U.displayName="FocusLock";var BU=Hr(function(t,n){const r=Wd("Text",t),{className:i,align:s,decoration:o,casing:a,...u}=jd(t),f=Pee({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return de(Bt.p,{ref:n,className:Bn("chakra-text",t.className),...f,...u,__css:r})});BU.displayName="Text";var nf=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),or={arrowShadowColor:nf("--popper-arrow-shadow-color"),arrowSize:nf("--popper-arrow-size","8px"),arrowSizeHalf:nf("--popper-arrow-size-half"),arrowBg:nf("--popper-arrow-bg"),transformOrigin:nf("--popper-transform-origin"),arrowOffset:nf("--popper-arrow-offset")};function qoe(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}var Koe={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},Xoe=e=>Koe[e],bD={scroll:!0,resize:!0};function Joe(e){let t;return typeof e=="object"?t={enabled:!0,options:{...bD,...e}}:t={enabled:e,options:bD},t}var Qoe={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},Zoe={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{xD(e)},effect:({state:e})=>()=>{xD(e)}},xD=e=>{e.elements.popper.style.setProperty(or.transformOrigin.var,Xoe(e.placement))},eae={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{tae(e)}},tae=e=>{var t;if(!e.placement)return;const n=nae(e.placement);if((t=e.elements)!=null&&t.arrow&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:or.arrowSize.varRef,height:or.arrowSize.varRef,zIndex:-1});const r={[or.arrowSizeHalf.var]:`calc(${or.arrowSize.varRef} / 2 - 1px)`,[or.arrowOffset.var]:`calc(${or.arrowSizeHalf.varRef} * -1)`};for(const i in r)e.elements.arrow.style.setProperty(i,r[i])}},nae=e=>{if(e.startsWith("top"))return{property:"bottom",value:or.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:or.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:or.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:or.arrowOffset.varRef}},rae={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{ED(e)},effect:({state:e})=>()=>{ED(e)}},ED=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const n=qoe(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:or.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},iae={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},sae={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function oae(e,t="ltr"){var n,r;const i=((n=iae[e])==null?void 0:n[t])||e;return t==="ltr"?i:(r=sae[e])!=null?r:i}var oi="top",ds="bottom",hs="right",ai="left",ST="auto",jv=[oi,ds,hs,ai],yd="start",hv="end",aae="clippingParents",UU="viewport",zh="popper",lae="reference",PD=jv.reduce(function(e,t){return e.concat([t+"-"+yd,t+"-"+hv])},[]),VU=[].concat(jv,[ST]).reduce(function(e,t){return e.concat([t,t+"-"+yd,t+"-"+hv])},[]),uae="beforeRead",cae="read",fae="afterRead",dae="beforeMain",hae="main",pae="afterMain",vae="beforeWrite",mae="write",gae="afterWrite",_ae=[uae,cae,fae,dae,hae,pae,vae,mae,gae];function Co(e){return e?(e.nodeName||"").toLowerCase():null}function ki(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function oc(e){var t=ki(e).Element;return e instanceof t||e instanceof Element}function os(e){var t=ki(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bT(e){if(typeof ShadowRoot>"u")return!1;var t=ki(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function yae(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!os(s)||!Co(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function wae(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(u,f){return u[f]="",u},{});!os(i)||!Co(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}const Sae={name:"applyStyles",enabled:!0,phase:"write",fn:yae,effect:wae,requires:["computeStyles"]};function Eo(e){return e.split("-")[0]}var Ju=Math.max,xy=Math.min,wd=Math.round;function fE(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function jU(){return!/^((?!chrome|android).)*safari/i.test(fE())}function Sd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&os(e)&&(i=e.offsetWidth>0&&wd(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&wd(r.height)/e.offsetHeight||1);var o=oc(e)?ki(e):window,a=o.visualViewport,u=!jU()&&n,f=(r.left+(u&&a?a.offsetLeft:0))/i,d=(r.top+(u&&a?a.offsetTop:0))/s,h=r.width/i,v=r.height/s;return{width:h,height:v,top:d,right:f+h,bottom:d+v,left:f,x:f,y:d}}function xT(e){var t=Sd(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function WU(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ka(e){return ki(e).getComputedStyle(e)}function bae(e){return["table","td","th"].indexOf(Co(e))>=0}function Kl(e){return((oc(e)?e.ownerDocument:e.document)||window.document).documentElement}function t1(e){return Co(e)==="html"?e:e.assignedSlot||e.parentNode||(bT(e)?e.host:null)||Kl(e)}function OD(e){return!os(e)||ka(e).position==="fixed"?null:e.offsetParent}function xae(e){var t=/firefox/i.test(fE()),n=/Trident/i.test(fE());if(n&&os(e)){var r=ka(e);if(r.position==="fixed")return null}var i=t1(e);for(bT(i)&&(i=i.host);os(i)&&["html","body"].indexOf(Co(i))<0;){var s=ka(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Wv(e){for(var t=ki(e),n=OD(e);n&&bae(n)&&ka(n).position==="static";)n=OD(n);return n&&(Co(n)==="html"||Co(n)==="body"&&ka(n).position==="static")?t:n||xae(e)||t}function ET(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Tp(e,t,n){return Ju(e,xy(t,n))}function Eae(e,t,n){var r=Tp(e,t,n);return r>n?n:r}function zU(){return{top:0,right:0,bottom:0,left:0}}function HU(e){return Object.assign({},zU(),e)}function GU(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Pae=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,HU(typeof t!="number"?t:GU(t,jv))};function Oae(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Eo(n.placement),u=ET(a),f=[ai,hs].indexOf(a)>=0,d=f?"height":"width";if(!(!s||!o)){var h=Pae(i.padding,n),v=xT(s),m=u==="y"?oi:ai,y=u==="y"?ds:hs,w=n.rects.reference[d]+n.rects.reference[u]-o[u]-n.rects.popper[d],E=o[u]-n.rects.reference[u],S=Wv(s),_=S?u==="y"?S.clientHeight||0:S.clientWidth||0:0,b=w/2-E/2,O=h[m],I=_-v[d]-h[y],A=_/2-v[d]/2+b,C=Tp(O,A,I),P=u;n.modifiersData[r]=(t={},t[P]=C,t.centerOffset=C-A,t)}}function Tae(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||WU(t.elements.popper,i)&&(t.elements.arrow=i))}const Cae={name:"arrow",enabled:!0,phase:"main",fn:Oae,effect:Tae,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bd(e){return e.split("-")[1]}var kae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Aae(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:wd(n*i)/i||0,y:wd(r*i)/i||0}}function TD(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,u=e.gpuAcceleration,f=e.adaptive,d=e.roundOffsets,h=e.isFixed,v=o.x,m=v===void 0?0:v,y=o.y,w=y===void 0?0:y,E=typeof d=="function"?d({x:m,y:w}):{x:m,y:w};m=E.x,w=E.y;var S=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),b=ai,O=oi,I=window;if(f){var A=Wv(n),C="clientHeight",P="clientWidth";if(A===ki(n)&&(A=Kl(n),ka(A).position!=="static"&&a==="absolute"&&(C="scrollHeight",P="scrollWidth")),A=A,i===oi||(i===ai||i===hs)&&s===hv){O=ds;var M=h&&A===I&&I.visualViewport?I.visualViewport.height:A[C];w-=M-r.height,w*=u?1:-1}if(i===ai||(i===oi||i===ds)&&s===hv){b=hs;var D=h&&A===I&&I.visualViewport?I.visualViewport.width:A[P];m-=D-r.width,m*=u?1:-1}}var V=Object.assign({position:a},f&&kae),Q=d===!0?Aae({x:m,y:w},ki(n)):{x:m,y:w};if(m=Q.x,w=Q.y,u){var se;return Object.assign({},V,(se={},se[O]=_?"0":"",se[b]=S?"0":"",se.transform=(I.devicePixelRatio||1)<=1?"translate("+m+"px, "+w+"px)":"translate3d("+m+"px, "+w+"px, 0)",se))}return Object.assign({},V,(t={},t[O]=_?w+"px":"",t[b]=S?m+"px":"",t.transform="",t))}function Rae(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,u=a===void 0?!0:a,f={placement:Eo(t.placement),variation:bd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,TD(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,TD(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Iae={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rae,data:{}};var yg={passive:!0};function Mae(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,u=ki(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(d){d.addEventListener("scroll",n.update,yg)}),a&&u.addEventListener("resize",n.update,yg),function(){s&&f.forEach(function(d){d.removeEventListener("scroll",n.update,yg)}),a&&u.removeEventListener("resize",n.update,yg)}}const Dae={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Mae,data:{}};var Lae={left:"right",right:"left",bottom:"top",top:"bottom"};function c_(e){return e.replace(/left|right|bottom|top/g,function(t){return Lae[t]})}var Fae={start:"end",end:"start"};function CD(e){return e.replace(/start|end/g,function(t){return Fae[t]})}function PT(e){var t=ki(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function OT(e){return Sd(Kl(e)).left+PT(e).scrollLeft}function Nae(e,t){var n=ki(e),r=Kl(e),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,u=0;if(i){s=i.width,o=i.height;var f=jU();(f||!f&&t==="fixed")&&(a=i.offsetLeft,u=i.offsetTop)}return{width:s,height:o,x:a+OT(e),y:u}}function $ae(e){var t,n=Kl(e),r=PT(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Ju(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Ju(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+OT(e),u=-r.scrollTop;return ka(i||n).direction==="rtl"&&(a+=Ju(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:u}}function TT(e){var t=ka(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function YU(e){return["html","body","#document"].indexOf(Co(e))>=0?e.ownerDocument.body:os(e)&&TT(e)?e:YU(t1(e))}function Cp(e,t){var n;t===void 0&&(t=[]);var r=YU(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=ki(r),o=i?[s].concat(s.visualViewport||[],TT(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Cp(t1(o)))}function dE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Bae(e,t){var n=Sd(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function kD(e,t,n){return t===UU?dE(Nae(e,n)):oc(t)?Bae(t,n):dE($ae(Kl(e)))}function Uae(e){var t=Cp(t1(e)),n=["absolute","fixed"].indexOf(ka(e).position)>=0,r=n&&os(e)?Wv(e):e;return oc(r)?t.filter(function(i){return oc(i)&&WU(i,r)&&Co(i)!=="body"}):[]}function Vae(e,t,n,r){var i=t==="clippingParents"?Uae(e):[].concat(t),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(u,f){var d=kD(e,f,r);return u.top=Ju(d.top,u.top),u.right=xy(d.right,u.right),u.bottom=xy(d.bottom,u.bottom),u.left=Ju(d.left,u.left),u},kD(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function qU(e){var t=e.reference,n=e.element,r=e.placement,i=r?Eo(r):null,s=r?bd(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,u;switch(i){case oi:u={x:o,y:t.y-n.height};break;case ds:u={x:o,y:t.y+t.height};break;case hs:u={x:t.x+t.width,y:a};break;case ai:u={x:t.x-n.width,y:a};break;default:u={x:t.x,y:t.y}}var f=i?ET(i):null;if(f!=null){var d=f==="y"?"height":"width";switch(s){case yd:u[f]=u[f]-(t[d]/2-n[d]/2);break;case hv:u[f]=u[f]+(t[d]/2-n[d]/2);break}}return u}function pv(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,o=s===void 0?e.strategy:s,a=n.boundary,u=a===void 0?aae:a,f=n.rootBoundary,d=f===void 0?UU:f,h=n.elementContext,v=h===void 0?zh:h,m=n.altBoundary,y=m===void 0?!1:m,w=n.padding,E=w===void 0?0:w,S=HU(typeof E!="number"?E:GU(E,jv)),_=v===zh?lae:zh,b=e.rects.popper,O=e.elements[y?_:v],I=Vae(oc(O)?O:O.contextElement||Kl(e.elements.popper),u,d,o),A=Sd(e.elements.reference),C=qU({reference:A,element:b,strategy:"absolute",placement:i}),P=dE(Object.assign({},b,C)),M=v===zh?P:A,D={top:I.top-M.top+S.top,bottom:M.bottom-I.bottom+S.bottom,left:I.left-M.left+S.left,right:M.right-I.right+S.right},V=e.modifiersData.offset;if(v===zh&&V){var Q=V[i];Object.keys(D).forEach(function(se){var ie=[hs,ds].indexOf(se)>=0?1:-1,q=[oi,ds].indexOf(se)>=0?"y":"x";D[se]+=Q[q]*ie})}return D}function jae(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,u=n.allowedAutoPlacements,f=u===void 0?VU:u,d=bd(r),h=d?a?PD:PD.filter(function(y){return bd(y)===d}):jv,v=h.filter(function(y){return f.indexOf(y)>=0});v.length===0&&(v=h);var m=v.reduce(function(y,w){return y[w]=pv(e,{placement:w,boundary:i,rootBoundary:s,padding:o})[Eo(w)],y},{});return Object.keys(m).sort(function(y,w){return m[y]-m[w]})}function Wae(e){if(Eo(e)===ST)return[];var t=c_(e);return[CD(e),t,CD(t)]}function zae(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,u=n.fallbackPlacements,f=n.padding,d=n.boundary,h=n.rootBoundary,v=n.altBoundary,m=n.flipVariations,y=m===void 0?!0:m,w=n.allowedAutoPlacements,E=t.options.placement,S=Eo(E),_=S===E,b=u||(_||!y?[c_(E)]:Wae(E)),O=[E].concat(b).reduce(function(Ie,me){return Ie.concat(Eo(me)===ST?jae(t,{placement:me,boundary:d,rootBoundary:h,padding:f,flipVariations:y,allowedAutoPlacements:w}):me)},[]),I=t.rects.reference,A=t.rects.popper,C=new Map,P=!0,M=O[0],D=0;D<O.length;D++){var V=O[D],Q=Eo(V),se=bd(V)===yd,ie=[oi,ds].indexOf(Q)>=0,q=ie?"width":"height",oe=pv(t,{placement:V,boundary:d,rootBoundary:h,altBoundary:v,padding:f}),ue=ie?se?hs:ai:se?ds:oi;I[q]>A[q]&&(ue=c_(ue));var X=c_(ue),te=[];if(s&&te.push(oe[Q]<=0),a&&te.push(oe[ue]<=0,oe[X]<=0),te.every(function(Ie){return Ie})){M=V,P=!1;break}C.set(V,te)}if(P)for(var ve=y?3:1,he=function(me){var Ae=O.find(function(De){var Be=C.get(De);if(Be)return Be.slice(0,me).every(function(nt){return nt})});if(Ae)return M=Ae,"break"},we=ve;we>0;we--){var _e=he(we);if(_e==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const Hae={name:"flip",enabled:!0,phase:"main",fn:zae,requiresIfExists:["offset"],data:{_skip:!1}};function AD(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function RD(e){return[oi,hs,ds,ai].some(function(t){return e[t]>=0})}function Gae(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=pv(t,{elementContext:"reference"}),a=pv(t,{altBoundary:!0}),u=AD(o,r),f=AD(a,i,s),d=RD(u),h=RD(f);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const Yae={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Gae};function qae(e,t,n){var r=Eo(e),i=[ai,oi].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[ai,hs].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function Kae(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=VU.reduce(function(d,h){return d[h]=qae(h,t.rects,s),d},{}),a=o[t.placement],u=a.x,f=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=o}const Xae={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Kae};function Jae(e){var t=e.state,n=e.name;t.modifiersData[n]=qU({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Qae={name:"popperOffsets",enabled:!0,phase:"read",fn:Jae,data:{}};function Zae(e){return e==="x"?"y":"x"}function ele(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.padding,v=n.tether,m=v===void 0?!0:v,y=n.tetherOffset,w=y===void 0?0:y,E=pv(t,{boundary:u,rootBoundary:f,padding:h,altBoundary:d}),S=Eo(t.placement),_=bd(t.placement),b=!_,O=ET(S),I=Zae(O),A=t.modifiersData.popperOffsets,C=t.rects.reference,P=t.rects.popper,M=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,D=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(A){if(s){var se,ie=O==="y"?oi:ai,q=O==="y"?ds:hs,oe=O==="y"?"height":"width",ue=A[O],X=ue+E[ie],te=ue-E[q],ve=m?-P[oe]/2:0,he=_===yd?C[oe]:P[oe],we=_===yd?-P[oe]:-C[oe],_e=t.elements.arrow,Ie=m&&_e?xT(_e):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:zU(),Ae=me[ie],De=me[q],Be=Tp(0,C[oe],Ie[oe]),nt=b?C[oe]/2-ve-Be-Ae-D.mainAxis:he-Be-Ae-D.mainAxis,Xe=b?-C[oe]/2+ve+Be+De+D.mainAxis:we+Be+De+D.mainAxis,ut=t.elements.arrow&&Wv(t.elements.arrow),Fe=ut?O==="y"?ut.clientTop||0:ut.clientLeft||0:0,yt=(se=V==null?void 0:V[O])!=null?se:0,Mt=ue+nt-yt-Fe,dn=ue+Xe-yt,Jn=Tp(m?xy(X,Mt):X,ue,m?Ju(te,dn):te);A[O]=Jn,Q[O]=Jn-ue}if(a){var Yt,Gr=O==="x"?oi:ai,Li=O==="x"?ds:hs,qt=A[I],Wt=I==="y"?"height":"width",Me=qt+E[Gr],Ye=qt-E[Li],Dt=[oi,ai].indexOf(S)!==-1,Et=(Yt=V==null?void 0:V[I])!=null?Yt:0,Cr=Dt?Me:qt-C[Wt]-P[Wt]-Et+D.altAxis,ht=Dt?qt+C[Wt]+P[Wt]-Et-D.altAxis:Ye,it=m&&Dt?Eae(Cr,qt,ht):Tp(m?Cr:Me,qt,m?ht:Ye);A[I]=it,Q[I]=it-qt}t.modifiersData[r]=Q}}const tle={name:"preventOverflow",enabled:!0,phase:"main",fn:ele,requiresIfExists:["offset"]};function nle(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rle(e){return e===ki(e)||!os(e)?PT(e):nle(e)}function ile(e){var t=e.getBoundingClientRect(),n=wd(t.width)/e.offsetWidth||1,r=wd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function sle(e,t,n){n===void 0&&(n=!1);var r=os(t),i=os(t)&&ile(t),s=Kl(t),o=Sd(e,i,n),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Co(t)!=="body"||TT(s))&&(a=rle(t)),os(t)?(u=Sd(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=OT(s))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function ole(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var u=t.get(a);u&&i(u)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function ale(e){var t=ole(e);return _ae.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function lle(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ule(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var ID={placement:"bottom",modifiers:[],strategy:"absolute"};function MD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function cle(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?ID:i;return function(a,u,f){f===void 0&&(f=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},ID,s),modifiersData:{},elements:{reference:a,popper:u},attributes:{},styles:{}},h=[],v=!1,m={state:d,setOptions:function(S){var _=typeof S=="function"?S(d.options):S;w(),d.options=Object.assign({},s,d.options,_),d.scrollParents={reference:oc(a)?Cp(a):a.contextElement?Cp(a.contextElement):[],popper:Cp(u)};var b=ale(ule([].concat(r,d.options.modifiers)));return d.orderedModifiers=b.filter(function(O){return O.enabled}),y(),m.update()},forceUpdate:function(){if(!v){var S=d.elements,_=S.reference,b=S.popper;if(MD(_,b)){d.rects={reference:sle(_,Wv(b),d.options.strategy==="fixed"),popper:xT(b)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(D){return d.modifiersData[D.name]=Object.assign({},D.data)});for(var O=0;O<d.orderedModifiers.length;O++){if(d.reset===!0){d.reset=!1,O=-1;continue}var I=d.orderedModifiers[O],A=I.fn,C=I.options,P=C===void 0?{}:C,M=I.name;typeof A=="function"&&(d=A({state:d,options:P,name:M,instance:m})||d)}}}},update:lle(function(){return new Promise(function(E){m.forceUpdate(),E(d)})}),destroy:function(){w(),v=!0}};if(!MD(a,u))return m;m.setOptions(f).then(function(E){!v&&f.onFirstUpdate&&f.onFirstUpdate(E)});function y(){d.orderedModifiers.forEach(function(E){var S=E.name,_=E.options,b=_===void 0?{}:_,O=E.effect;if(typeof O=="function"){var I=O({state:d,name:S,instance:m,options:b}),A=function(){};h.push(I||A)}})}function w(){h.forEach(function(E){return E()}),h=[]}return m}}var fle=[Dae,Qae,Iae,Sae,Xae,Hae,tle,Cae,Yae],dle=cle({defaultModifiers:fle});function hle(e={}){const{enabled:t=!0,modifiers:n,placement:r="bottom",strategy:i="absolute",arrowPadding:s=8,eventListeners:o=!0,offset:a,gutter:u=8,flip:f=!0,boundary:d="clippingParents",preventOverflow:h=!0,matchWidth:v,direction:m="ltr"}=e,y=N.useRef(null),w=N.useRef(null),E=N.useRef(null),S=oae(r,m),_=N.useRef(()=>{}),b=N.useCallback(()=>{var D;!t||!y.current||!w.current||((D=_.current)==null||D.call(_),E.current=dle(y.current,w.current,{placement:S,modifiers:[rae,eae,Zoe,{...Qoe,enabled:!!v},{name:"eventListeners",...Joe(o)},{name:"arrow",options:{padding:s}},{name:"offset",options:{offset:a??[0,u]}},{name:"flip",enabled:!!f,options:{padding:8}},{name:"preventOverflow",enabled:!!h,options:{boundary:d}},...n??[]],strategy:i}),E.current.forceUpdate(),_.current=E.current.destroy)},[S,t,n,v,o,s,a,u,f,h,d,i]);N.useEffect(()=>()=>{var D;!y.current&&!w.current&&((D=E.current)==null||D.destroy(),E.current=null)},[]);const O=N.useCallback(D=>{y.current=D,b()},[b]),I=N.useCallback((D={},V=null)=>({...D,ref:_d(O,V)}),[O]),A=N.useCallback(D=>{w.current=D,b()},[b]),C=N.useCallback((D={},V=null)=>({...D,ref:_d(A,V),style:{...D.style,position:i,minWidth:v?void 0:"max-content",inset:"0 auto auto 0"}}),[i,A,v]),P=N.useCallback((D={},V=null)=>{const{size:Q,shadowColor:se,bg:ie,style:q,...oe}=D;return{...oe,ref:V,"data-popper-arrow":"",style:ple(D)}},[]),M=N.useCallback((D={},V=null)=>({...D,ref:V,"data-popper-arrow-inner":""}),[]);return{update(){var D;(D=E.current)==null||D.update()},forceUpdate(){var D;(D=E.current)==null||D.forceUpdate()},transformOrigin:or.transformOrigin.varRef,referenceRef:O,popperRef:A,getPopperProps:C,getArrowProps:P,getArrowInnerProps:M,getReferenceProps:I}}function ple(e){const{size:t,shadowColor:n,bg:r,style:i}=e,s={...i,position:"absolute"};return t&&(s["--popper-arrow-size"]=t),n&&(s["--popper-arrow-shadow-color"]=n),r&&(s["--popper-arrow-bg"]=r),s}function vle(e={}){const{onClose:t,onOpen:n,isOpen:r,id:i}=e,s=fy(n),o=fy(t),[a,u]=N.useState(e.defaultIsOpen||!1),f=r!==void 0?r:a,d=r!==void 0,h=N.useId(),v=i??`disclosure-${h}`,m=N.useCallback(()=>{d||u(!1),o==null||o()},[d,o]),y=N.useCallback(()=>{d||u(!0),s==null||s()},[d,s]),w=N.useCallback(()=>{f?m():y()},[f,y,m]);function E(_={}){return{..._,"aria-expanded":f,"aria-controls":v,onClick(b){var O;(O=_.onClick)==null||O.call(_,b),w()}}}function S(_={}){return{..._,hidden:!f,id:v}}return{isOpen:f,onOpen:y,onClose:m,onToggle:w,isControlled:d,getButtonProps:E,getDisclosureProps:S}}var mle={slideInBottom:{...iE,custom:{offsetY:16,reverse:!0}},slideInRight:{...iE,custom:{offsetX:16,reverse:!0}},scale:{...tU,custom:{initialScale:.95,reverse:!0}},none:{}},gle=Bt(pc.section),_le=e=>mle[e||"none"],KU=N.forwardRef((e,t)=>{const{preset:n,motionProps:r=_le(n),...i}=e;return de(gle,{ref:t,...r,...i})});KU.displayName="ModalTransition";var yle=Object.defineProperty,wle=(e,t,n)=>t in e?yle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sle=(e,t,n)=>(wle(e,typeof t!="symbol"?t+"":t,n),n),ble=class{constructor(){Sle(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return e?this.modals.get(e)===this.modals.size:!1}},hE=new ble;function XU(e,t){const[n,r]=N.useState(0);return N.useEffect(()=>{const i=e.current;if(i){if(t){const s=hE.add(i);r(s)}return()=>{hE.remove(i),r(0)}}},[t,e]),n}var xle=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rf=new WeakMap,wg=new WeakMap,Sg={},ib=0,JU=function(e){return e&&(e.host||JU(e.parentNode))},Ele=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=JU(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ple=function(e,t,n,r){var i=Ele(t,Array.isArray(e)?e:[e]);Sg[n]||(Sg[n]=new WeakMap);var s=Sg[n],o=[],a=new Set,u=new Set(i),f=function(h){!h||a.has(h)||(a.add(h),f(h.parentNode))};i.forEach(f);var d=function(h){!h||u.has(h)||Array.prototype.forEach.call(h.children,function(v){if(a.has(v))d(v);else{var m=v.getAttribute(r),y=m!==null&&m!=="false",w=(rf.get(v)||0)+1,E=(s.get(v)||0)+1;rf.set(v,w),s.set(v,E),o.push(v),w===1&&y&&wg.set(v,!0),E===1&&v.setAttribute(n,"true"),y||v.setAttribute(r,"true")}})};return d(t),a.clear(),ib++,function(){o.forEach(function(h){var v=rf.get(h)-1,m=s.get(h)-1;rf.set(h,v),s.set(h,m),v||(wg.has(h)||h.removeAttribute(r),wg.delete(h)),m||h.removeAttribute(n)}),ib--,ib||(rf=new WeakMap,rf=new WeakMap,wg=new WeakMap,Sg={})}},Ole=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||xle(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Ple(r,i,n,"aria-hidden")):function(){return null}};function Tle(e){const{isOpen:t,onClose:n,id:r,closeOnOverlayClick:i=!0,closeOnEsc:s=!0,useInert:o=!0,onOverlayClick:a,onEsc:u}=e,f=N.useRef(null),d=N.useRef(null),[h,v,m]=kle(r,"chakra-modal","chakra-modal--header","chakra-modal--body");Cle(f,t&&o);const y=XU(f,t),w=N.useRef(null),E=N.useCallback(M=>{w.current=M.target},[]),S=N.useCallback(M=>{M.key==="Escape"&&(M.stopPropagation(),s&&(n==null||n()),u==null||u())},[s,n,u]),[_,b]=N.useState(!1),[O,I]=N.useState(!1),A=N.useCallback((M={},D=null)=>({role:"dialog",...M,ref:_d(D,f),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":_?v:void 0,"aria-describedby":O?m:void 0,onClick:oa(M.onClick,V=>V.stopPropagation())}),[m,O,h,v,_]),C=N.useCallback(M=>{M.stopPropagation(),w.current===M.target&&hE.isTopModal(f.current)&&(i&&(n==null||n()),a==null||a())},[n,i,a]),P=N.useCallback((M={},D=null)=>({...M,ref:_d(D,d),onClick:oa(M.onClick,C),onKeyDown:oa(M.onKeyDown,S),onMouseDown:oa(M.onMouseDown,E)}),[S,E,C]);return{isOpen:t,onClose:n,headerId:v,bodyId:m,setBodyMounted:I,setHeaderMounted:b,dialogRef:f,overlayRef:d,getDialogProps:A,getDialogContainerProps:P,index:y}}function Cle(e,t){const n=e.current;N.useEffect(()=>{if(!(!e.current||!t))return Ole(e.current)},[t,e,n])}function kle(e,...t){const n=N.useId(),r=e||n;return N.useMemo(()=>t.map(i=>`${i}-${r}`),[r,t])}var[Ale,zv]=Yl({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[Rle,xd]=Yl({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Ile=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:i,trapFocus:s,initialFocusRef:o,finalFocusRef:a,returnFocusOnClose:u,blockScrollOnMount:f,allowPinchZoom:d,preserveScrollBarGap:h,motionPreset:v,lockFocusAcrossFrames:m,onCloseComplete:y}=t,w=SB("Modal",t),S={...Tle(t),autoFocus:i,trapFocus:s,initialFocusRef:o,finalFocusRef:a,returnFocusOnClose:u,blockScrollOnMount:f,allowPinchZoom:d,preserveScrollBarGap:h,motionPreset:v,lockFocusAcrossFrames:m};return de(Rle,{value:S,children:de(Ale,{value:w,children:de(zd,{onExitComplete:y,children:S.isOpen&&de(Vd,{...n,children:r})})})})};Ile.displayName="Modal";var f_="right-scroll-bar-position",d_="width-before-scroll-bar",Mle="with-scroll-bars-hidden",Dle="--removed-body-scroll-bar-size",QU=lU(),sb=function(){},n1=N.forwardRef(function(e,t){var n=N.useRef(null),r=N.useState({onScrollCapture:sb,onWheelCapture:sb,onTouchMoveCapture:sb}),i=r[0],s=r[1],o=e.forwardProps,a=e.children,u=e.className,f=e.removeScrollBar,d=e.enabled,h=e.shards,v=e.sideCar,m=e.noIsolation,y=e.inert,w=e.allowPinchZoom,E=e.as,S=E===void 0?"div":E,_=e.gapMode,b=sU(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=v,I=iU([n,t]),A=ho(ho({},b),i);return N.createElement(N.Fragment,null,d&&N.createElement(O,{sideCar:QU,removeScrollBar:f,shards:h,noIsolation:m,inert:y,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:_}),o?N.cloneElement(N.Children.only(a),ho(ho({},A),{ref:I})):N.createElement(S,ho({},A,{className:u,ref:I}),a))});n1.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};n1.classNames={fullWidth:d_,zeroRight:f_};var DD,Lle=function(){if(DD)return DD;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Fle(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Lle();return t&&e.setAttribute("nonce",t),e}function Nle(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $le(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ble=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Fle())&&(Nle(t,n),$le(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ule=function(){var e=Ble();return function(t,n){N.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ZU=function(){var e=Ule(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Vle={left:0,top:0,right:0,gap:0},ob=function(e){return parseInt(e||"",10)||0},jle=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[ob(n),ob(r),ob(i)]},Wle=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Vle;var t=jle(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},zle=ZU(),Hle=function(e,t,n,r){var i=e.left,s=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(Mle,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(a,"px ").concat(r,`;
  }
  body {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(i,`px;
    padding-top: `).concat(s,`px;
    padding-right: `).concat(o,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(a,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(f_,` {
    right: `).concat(a,"px ").concat(r,`;
  }
  
  .`).concat(d_,` {
    margin-right: `).concat(a,"px ").concat(r,`;
  }
  
  .`).concat(f_," .").concat(f_,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(d_," .").concat(d_,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body {
    `).concat(Dle,": ").concat(a,`px;
  }
`)},Gle=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,s=N.useMemo(function(){return Wle(i)},[i]);return N.createElement(zle,{styles:Hle(s,!t,i,n?"":"!important")})},pE=!1;if(typeof window<"u")try{var bg=Object.defineProperty({},"passive",{get:function(){return pE=!0,!0}});window.addEventListener("test",bg,bg),window.removeEventListener("test",bg,bg)}catch{pE=!1}var sf=pE?{passive:!1}:!1,Yle=function(e){return e.tagName==="TEXTAREA"},e4=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Yle(e)&&n[t]==="visible")},qle=function(e){return e4(e,"overflowY")},Kle=function(e){return e4(e,"overflowX")},LD=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=t4(e,r);if(i){var s=n4(e,r),o=s[1],a=s[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Xle=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Jle=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},t4=function(e,t){return e==="v"?qle(t):Kle(t)},n4=function(e,t){return e==="v"?Xle(t):Jle(t)},Qle=function(e,t){return e==="h"&&t==="rtl"?-1:1},Zle=function(e,t,n,r,i){var s=Qle(e,window.getComputedStyle(t).direction),o=s*r,a=n.target,u=t.contains(a),f=!1,d=o>0,h=0,v=0;do{var m=n4(e,a),y=m[0],w=m[1],E=m[2],S=w-E-s*y;(y||S)&&t4(e,a)&&(h+=S,v+=y),a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(d&&(i&&h===0||!i&&o>h)||!d&&(i&&v===0||!i&&-o>v))&&(f=!0),f},xg=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},FD=function(e){return[e.deltaX,e.deltaY]},ND=function(e){return e&&"current"in e?e.current:e},eue=function(e,t){return e[0]===t[0]&&e[1]===t[1]},tue=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},nue=0,of=[];function rue(e){var t=N.useRef([]),n=N.useRef([0,0]),r=N.useRef(),i=N.useState(nue++)[0],s=N.useState(ZU)[0],o=N.useRef(e);N.useEffect(function(){o.current=e},[e]),N.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=Nse([e.lockRef.current],(e.shards||[]).map(ND),!0).filter(Boolean);return w.forEach(function(E){return E.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=N.useCallback(function(w,E){if("touches"in w&&w.touches.length===2)return!o.current.allowPinchZoom;var S=xg(w),_=n.current,b="deltaX"in w?w.deltaX:_[0]-S[0],O="deltaY"in w?w.deltaY:_[1]-S[1],I,A=w.target,C=Math.abs(b)>Math.abs(O)?"h":"v";if("touches"in w&&C==="h"&&A.type==="range")return!1;var P=LD(C,A);if(!P)return!0;if(P?I=C:(I=C==="v"?"h":"v",P=LD(C,A)),!P)return!1;if(!r.current&&"changedTouches"in w&&(b||O)&&(r.current=I),!I)return!0;var M=r.current||I;return Zle(M,E,w,M==="h"?b:O,!0)},[]),u=N.useCallback(function(w){var E=w;if(!(!of.length||of[of.length-1]!==s)){var S="deltaY"in E?FD(E):xg(E),_=t.current.filter(function(I){return I.name===E.type&&I.target===E.target&&eue(I.delta,S)})[0];if(_&&_.should){E.cancelable&&E.preventDefault();return}if(!_){var b=(o.current.shards||[]).map(ND).filter(Boolean).filter(function(I){return I.contains(E.target)}),O=b.length>0?a(E,b[0]):!o.current.noIsolation;O&&E.cancelable&&E.preventDefault()}}},[]),f=N.useCallback(function(w,E,S,_){var b={name:w,delta:E,target:S,should:_};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(O){return O!==b})},1)},[]),d=N.useCallback(function(w){n.current=xg(w),r.current=void 0},[]),h=N.useCallback(function(w){f(w.type,FD(w),w.target,a(w,e.lockRef.current))},[]),v=N.useCallback(function(w){f(w.type,xg(w),w.target,a(w,e.lockRef.current))},[]);N.useEffect(function(){return of.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:v}),document.addEventListener("wheel",u,sf),document.addEventListener("touchmove",u,sf),document.addEventListener("touchstart",d,sf),function(){of=of.filter(function(w){return w!==s}),document.removeEventListener("wheel",u,sf),document.removeEventListener("touchmove",u,sf),document.removeEventListener("touchstart",d,sf)}},[]);var m=e.removeScrollBar,y=e.inert;return N.createElement(N.Fragment,null,y?N.createElement(s,{styles:tue(i)}):null,m?N.createElement(Gle,{gapMode:e.gapMode}):null)}const iue=$se(QU,rue);var r4=N.forwardRef(function(e,t){return N.createElement(n1,ho({},e,{ref:t,sideCar:iue}))});r4.classNames=n1.classNames;const sue=r4;function oue(e){const{autoFocus:t,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:s,allowPinchZoom:o,finalFocusRef:a,returnFocusOnClose:u,preserveScrollBarGap:f,lockFocusAcrossFrames:d,isOpen:h}=xd(),[v,m]=I3();N.useEffect(()=>{!v&&m&&setTimeout(m)},[v,m]);const y=XU(r,h);return de($U,{autoFocus:t,isDisabled:!n,initialFocusRef:i,finalFocusRef:a,restoreFocus:u,contentRef:r,lockFocusAcrossFrames:d,children:de(sue,{removeScrollBar:!f,allowPinchZoom:o,enabled:y===1&&s,forwardProps:!0,children:e.children})})}var aue=Hr((e,t)=>{const{className:n,children:r,containerProps:i,motionProps:s,...o}=e,{getDialogProps:a,getDialogContainerProps:u}=xd(),f=a(o,t),d=u(i),h=Bn("chakra-modal__content",n),v=zv(),m={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...v.dialog},y={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...v.dialogContainer},{motionPreset:w}=xd();return de(oue,{children:de(Bt.div,{...d,className:"chakra-modal__content-container",tabIndex:-1,__css:y,children:de(KU,{preset:w,motionProps:s,className:h,...f,__css:m,children:r})})})});aue.displayName="ModalContent";var lue=Hr((e,t)=>{const{className:n,...r}=e,i=Bn("chakra-modal__footer",n),o={display:"flex",alignItems:"center",justifyContent:"flex-end",...zv().footer};return de(Bt.footer,{ref:t,...r,__css:o,className:i})});lue.displayName="ModalFooter";var uue=Hr((e,t)=>{const{className:n,...r}=e,{headerId:i,setHeaderMounted:s}=xd();N.useEffect(()=>(s(!0),()=>s(!1)),[s]);const o=Bn("chakra-modal__header",n),u={flex:0,...zv().header};return de(Bt.header,{ref:t,className:o,id:i,...r,__css:u})});uue.displayName="ModalHeader";var cue=Bt(pc.div),fue=Hr((e,t)=>{const{className:n,transition:r,motionProps:i,...s}=e,o=Bn("chakra-modal__overlay",n),u={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...zv().overlay},{motionPreset:f}=xd();return de(cue,{...i||(f==="none"?{}:eU),__css:u,ref:t,className:o,...s})});fue.displayName="ModalOverlay";var due=Hr((e,t)=>{const{className:n,...r}=e,{bodyId:i,setBodyMounted:s}=xd();N.useEffect(()=>(s(!0),()=>s(!1)),[s]);const o=Bn("chakra-modal__body",n),a=zv();return de(Bt.div,{ref:t,className:o,id:i,...r,__css:a.body})});due.displayName="ModalBody";var hue={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},vE=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},h_=e=>{var t,n;return((n=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:n.defaultView)||window};function pue(e={}){const{openDelay:t=0,closeDelay:n=0,closeOnClick:r=!0,closeOnMouseDown:i,closeOnScroll:s,closeOnPointerDown:o=i,closeOnEsc:a=!0,onOpen:u,onClose:f,placement:d,id:h,isOpen:v,defaultIsOpen:m,arrowSize:y=10,arrowShadowColor:w,arrowPadding:E,modifiers:S,isDisabled:_,gutter:b,offset:O,direction:I,...A}=e,{isOpen:C,onOpen:P,onClose:M}=vle({isOpen:v,defaultIsOpen:m,onOpen:u,onClose:f}),{referenceRef:D,getPopperProps:V,getArrowInnerProps:Q,getArrowProps:se}=hle({enabled:C,placement:d,arrowPadding:E,modifiers:S,gutter:b,offset:O,direction:I}),ie=N.useId(),oe=`tooltip-${h??ie}`,ue=N.useRef(null),X=N.useRef(),te=N.useCallback(()=>{X.current&&(clearTimeout(X.current),X.current=void 0)},[]),ve=N.useRef(),he=N.useCallback(()=>{ve.current&&(clearTimeout(ve.current),ve.current=void 0)},[]),we=N.useCallback(()=>{he(),M()},[M,he]),_e=vue(ue,we),Ie=N.useCallback(()=>{if(!_&&!X.current){C&&_e();const Fe=h_(ue);X.current=Fe.setTimeout(P,t)}},[_e,_,C,P,t]),me=N.useCallback(()=>{te();const Fe=h_(ue);ve.current=Fe.setTimeout(we,n)},[n,we,te]),Ae=N.useCallback(()=>{C&&r&&me()},[r,me,C]),De=N.useCallback(()=>{C&&o&&me()},[o,me,C]),Be=N.useCallback(Fe=>{C&&Fe.key==="Escape"&&me()},[C,me]);ZS(()=>vE(ue),"keydown",a?Be:void 0),ZS(()=>{const Fe=ue.current;if(!Fe)return null;const yt=DU(Fe);return yt.localName==="body"?h_(ue):yt},"scroll",()=>{C&&s&&we()},{passive:!0,capture:!0}),N.useEffect(()=>{_&&(te(),C&&M())},[_,C,M,te]),N.useEffect(()=>()=>{te(),he()},[te,he]),ZS(()=>ue.current,"pointerleave",me);const nt=N.useCallback((Fe={},yt=null)=>({...Fe,ref:_d(ue,yt,D),onPointerEnter:oa(Fe.onPointerEnter,dn=>{dn.pointerType!=="touch"&&Ie()}),onClick:oa(Fe.onClick,Ae),onPointerDown:oa(Fe.onPointerDown,De),onFocus:oa(Fe.onFocus,Ie),onBlur:oa(Fe.onBlur,me),"aria-describedby":C?oe:void 0}),[Ie,me,De,C,oe,Ae,D]),Xe=N.useCallback((Fe={},yt=null)=>V({...Fe,style:{...Fe.style,[or.arrowSize.var]:y?`${y}px`:void 0,[or.arrowShadowColor.var]:w}},yt),[V,y,w]),ut=N.useCallback((Fe={},yt=null)=>{const Mt={...Fe.style,position:"relative",transformOrigin:or.transformOrigin.varRef};return{ref:yt,...A,...Fe,id:oe,role:"tooltip",style:Mt}},[A,oe]);return{isOpen:C,show:Ie,hide:me,getTriggerProps:nt,getTooltipProps:ut,getTooltipPositionerProps:Xe,getArrowProps:se,getArrowInnerProps:Q}}var ab="chakra-ui:close-tooltip";function vue(e,t){return N.useEffect(()=>{const n=vE(e);return n.addEventListener(ab,t),()=>n.removeEventListener(ab,t)},[t,e]),()=>{const n=vE(e),r=h_(e);n.dispatchEvent(new r.CustomEvent(ab))}}function mue(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}function gue(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}var _ue=Bt(pc.div),i4=Hr((e,t)=>{var n,r;const i=Wd("Tooltip",e),s=jd(e),o=aB(),{children:a,label:u,shouldWrapChildren:f,"aria-label":d,hasArrow:h,bg:v,portalProps:m,background:y,backgroundColor:w,bgColor:E,motionProps:S,..._}=s,b=(r=(n=y??w)!=null?n:v)!=null?r:E;if(b){i.bg=b;const V=cee(o,"colors",b);i[or.arrowBg.var]=V}const O=pue({..._,direction:o.direction}),I=typeof a=="string"||f;let A;if(I)A=de(Bt.span,{display:"inline-block",tabIndex:0,...O.getTriggerProps(),children:a});else{const V=N.Children.only(a);A=N.cloneElement(V,O.getTriggerProps(V.props,V.ref))}const C=!!d,P=O.getTooltipProps({},t),M=C?mue(P,["role","id"]):P,D=gue(P,["role","id"]);return u?$l(kb,{children:[A,de(zd,{children:O.isOpen&&de(Vd,{...m,children:de(Bt.div,{...O.getTooltipPositionerProps(),__css:{zIndex:i.zIndex,pointerEvents:"none"},children:$l(_ue,{variants:hue,initial:"exit",animate:"enter",exit:"exit",...S,...M,__css:i,children:[u,C&&de(Bt.span,{srOnly:!0,...D,children:d}),h&&de(Bt.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:de(Bt.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:i.bg}})})]})})})})]}):de(kb,{children:a})});i4.displayName="Tooltip";function s4(e,t){return function(){return e.apply(t,arguments)}}const{toString:yue}=Object.prototype,{getPrototypeOf:CT}=Object,r1=(e=>t=>{const n=yue.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ro=e=>(e=e.toLowerCase(),t=>r1(t)===e),i1=e=>t=>typeof t===e,{isArray:Hd}=Array,vv=i1("undefined");function wue(e){return e!==null&&!vv(e)&&e.constructor!==null&&!vv(e.constructor)&&as(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const o4=Ro("ArrayBuffer");function Sue(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&o4(e.buffer),t}const bue=i1("string"),as=i1("function"),a4=i1("number"),s1=e=>e!==null&&typeof e=="object",xue=e=>e===!0||e===!1,p_=e=>{if(r1(e)!=="object")return!1;const t=CT(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Eue=Ro("Date"),Pue=Ro("File"),Oue=Ro("Blob"),Tue=Ro("FileList"),Cue=e=>s1(e)&&as(e.pipe),kue=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||as(e.append)&&((t=r1(e))==="formdata"||t==="object"&&as(e.toString)&&e.toString()==="[object FormData]"))},Aue=Ro("URLSearchParams"),Rue=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Hv(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Hd(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),o=s.length;let a;for(r=0;r<o;r++)a=s[r],t.call(null,e[a],a,e)}}function l4(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const u4=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),c4=e=>!vv(e)&&e!==u4;function mE(){const{caseless:e}=c4(this)&&this||{},t={},n=(r,i)=>{const s=e&&l4(t,i)||i;p_(t[s])&&p_(r)?t[s]=mE(t[s],r):p_(r)?t[s]=mE({},r):Hd(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&Hv(arguments[r],n);return t}const Iue=(e,t,n,{allOwnKeys:r}={})=>(Hv(t,(i,s)=>{n&&as(i)?e[s]=s4(i,n):e[s]=i},{allOwnKeys:r}),e),Mue=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Due=(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)},Lue=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&CT(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Fue=(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},Nue=e=>{if(!e)return null;if(Hd(e))return e;let t=e.length;if(!a4(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$ue=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&CT(Uint8Array)),Bue=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Uue=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Vue=Ro("HTMLFormElement"),jue=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),$D=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Wue=Ro("RegExp"),f4=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Hv(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},zue=e=>{f4(e,(t,n)=>{if(as(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(as(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+"'")})}})},Hue=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Hd(e)?r(e):r(String(e).split(t)),n},Gue=()=>{},Yue=(e,t)=>(e=+e,Number.isFinite(e)?e:t),lb="abcdefghijklmnopqrstuvwxyz",BD="0123456789",d4={DIGIT:BD,ALPHA:lb,ALPHA_DIGIT:lb+lb.toUpperCase()+BD},que=(e=16,t=d4.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Kue(e){return!!(e&&as(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Xue=e=>{const t=new Array(10),n=(r,i)=>{if(s1(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=Hd(r)?[]:{};return Hv(r,(o,a)=>{const u=n(o,i+1);!vv(u)&&(s[a]=u)}),t[i]=void 0,s}}return r};return n(e,0)},Jue=Ro("AsyncFunction"),Que=e=>e&&(s1(e)||as(e))&&as(e.then)&&as(e.catch),ee={isArray:Hd,isArrayBuffer:o4,isBuffer:wue,isFormData:kue,isArrayBufferView:Sue,isString:bue,isNumber:a4,isBoolean:xue,isObject:s1,isPlainObject:p_,isUndefined:vv,isDate:Eue,isFile:Pue,isBlob:Oue,isRegExp:Wue,isFunction:as,isStream:Cue,isURLSearchParams:Aue,isTypedArray:$ue,isFileList:Tue,forEach:Hv,merge:mE,extend:Iue,trim:Rue,stripBOM:Mue,inherits:Due,toFlatObject:Lue,kindOf:r1,kindOfTest:Ro,endsWith:Fue,toArray:Nue,forEachEntry:Bue,matchAll:Uue,isHTMLForm:Vue,hasOwnProperty:$D,hasOwnProp:$D,reduceDescriptors:f4,freezeMethods:zue,toObjectSet:Hue,toCamelCase:jue,noop:Gue,toFiniteNumber:Yue,findKey:l4,global:u4,isContextDefined:c4,ALPHABET:d4,generateString:que,isSpecCompliantForm:Kue,toJSONObject:Xue,isAsyncFn:Jue,isThenable:Que};function gt(e,t,n,r,i){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),i&&(this.response=i)}ee.inherits(gt,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:ee.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const h4=gt.prototype,p4={};["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=>{p4[e]={value:e}});Object.defineProperties(gt,p4);Object.defineProperty(h4,"isAxiosError",{value:!0});gt.from=(e,t,n,r,i,s)=>{const o=Object.create(h4);return ee.toFlatObject(e,o,function(u){return u!==Error.prototype},a=>a!=="isAxiosError"),gt.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const Zue=null;function gE(e){return ee.isPlainObject(e)||ee.isArray(e)}function v4(e){return ee.endsWith(e,"[]")?e.slice(0,-2):e}function UD(e,t,n){return e?e.concat(t).map(function(i,s){return i=v4(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function ece(e){return ee.isArray(e)&&!e.some(gE)}const tce=ee.toFlatObject(ee,{},null,function(t){return/^is[A-Z]/.test(t)});function o1(e,t,n){if(!ee.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ee.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,E){return!ee.isUndefined(E[w])});const r=n.metaTokens,i=n.visitor||d,s=n.dots,o=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&ee.isSpecCompliantForm(t);if(!ee.isFunction(i))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(ee.isDate(y))return y.toISOString();if(!u&&ee.isBlob(y))throw new gt("Blob is not supported. Use a Buffer instead.");return ee.isArrayBuffer(y)||ee.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,w,E){let S=y;if(y&&!E&&typeof y=="object"){if(ee.endsWith(w,"{}"))w=r?w:w.slice(0,-2),y=JSON.stringify(y);else if(ee.isArray(y)&&ece(y)||(ee.isFileList(y)||ee.endsWith(w,"[]"))&&(S=ee.toArray(y)))return w=v4(w),S.forEach(function(b,O){!(ee.isUndefined(b)||b===null)&&t.append(o===!0?UD([w],O,s):o===null?w:w+"[]",f(b))}),!1}return gE(y)?!0:(t.append(UD(E,w,s),f(y)),!1)}const h=[],v=Object.assign(tce,{defaultVisitor:d,convertValue:f,isVisitable:gE});function m(y,w){if(!ee.isUndefined(y)){if(h.indexOf(y)!==-1)throw Error("Circular reference detected in "+w.join("."));h.push(y),ee.forEach(y,function(S,_){(!(ee.isUndefined(S)||S===null)&&i.call(t,S,ee.isString(_)?_.trim():_,w,v))===!0&&m(S,w?w.concat(_):[_])}),h.pop()}}if(!ee.isObject(e))throw new TypeError("data must be an object");return m(e),t}function VD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function kT(e,t){this._pairs=[],e&&o1(e,this,t)}const m4=kT.prototype;m4.append=function(t,n){this._pairs.push([t,n])};m4.toString=function(t){const n=t?function(r){return t.call(this,r,VD)}:VD;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function nce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function g4(e,t,n){if(!t)return e;const r=n&&n.encode||nce,i=n&&n.serialize;let s;if(i?s=i(t,n):s=ee.isURLSearchParams(t)?t.toString():new kT(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class rce{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){ee.forEach(this.handlers,function(r){r!==null&&t(r)})}}const jD=rce,_4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ice=typeof URLSearchParams<"u"?URLSearchParams:kT,sce=typeof FormData<"u"?FormData:null,oce=typeof Blob<"u"?Blob:null,ace=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),lce=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Rs={isBrowser:!0,classes:{URLSearchParams:ice,FormData:sce,Blob:oce},isStandardBrowserEnv:ace,isStandardBrowserWebWorkerEnv:lce,protocols:["http","https","file","blob","url","data"]};function uce(e,t){return o1(e,new Rs.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return Rs.isNode&&ee.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function cce(e){return ee.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function fce(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function y4(e){function t(n,r,i,s){let o=n[s++];const a=Number.isFinite(+o),u=s>=n.length;return o=!o&&ee.isArray(i)?i.length:o,u?(ee.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!ee.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&ee.isArray(i[o])&&(i[o]=fce(i[o])),!a)}if(ee.isFormData(e)&&ee.isFunction(e.entries)){const n={};return ee.forEachEntry(e,(r,i)=>{t(cce(r),i,n,0)}),n}return null}function dce(e,t,n){if(ee.isString(e))try{return(t||JSON.parse)(e),ee.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const AT={transitional:_4,adapter:Rs.isNode?"http":"xhr",transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=ee.isObject(t);if(s&&ee.isHTMLForm(t)&&(t=new FormData(t)),ee.isFormData(t))return i&&i?JSON.stringify(y4(t)):t;if(ee.isArrayBuffer(t)||ee.isBuffer(t)||ee.isStream(t)||ee.isFile(t)||ee.isBlob(t))return t;if(ee.isArrayBufferView(t))return t.buffer;if(ee.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return uce(t,this.formSerializer).toString();if((a=ee.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return o1(a?{"files[]":t}:t,u&&new u,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),dce(t)):t}],transformResponse:[function(t){const n=this.transitional||AT.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&ee.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?gt.from(a,gt.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rs.classes.FormData,Blob:Rs.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ee.forEach(["delete","get","head","post","put","patch"],e=>{AT.headers[e]={}});const RT=AT,hce=ee.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"]),pce=e=>{const t={};let n,r,i;return e&&e.split(`
`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&hce[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},WD=Symbol("internals");function Hh(e){return e&&String(e).trim().toLowerCase()}function v_(e){return e===!1||e==null?e:ee.isArray(e)?e.map(v_):String(e)}function vce(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 mce=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ub(e,t,n,r,i){if(ee.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!ee.isString(t)){if(ee.isString(r))return t.indexOf(r)!==-1;if(ee.isRegExp(r))return r.test(t)}}function gce(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _ce(e,t){const n=ee.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}class a1{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,u,f){const d=Hh(u);if(!d)throw new Error("header name must be a non-empty string");const h=ee.findKey(i,d);(!h||i[h]===void 0||f===!0||f===void 0&&i[h]!==!1)&&(i[h||u]=v_(a))}const o=(a,u)=>ee.forEach(a,(f,d)=>s(f,d,u));return ee.isPlainObject(t)||t instanceof this.constructor?o(t,n):ee.isString(t)&&(t=t.trim())&&!mce(t)?o(pce(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=Hh(t),t){const r=ee.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return vce(i);if(ee.isFunction(n))return n.call(this,i,r);if(ee.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Hh(t),t){const r=ee.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ub(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=Hh(o),o){const a=ee.findKey(r,o);a&&(!n||ub(r,r[a],a,n))&&(delete r[a],i=!0)}}return ee.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||ub(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return ee.forEach(this,(i,s)=>{const o=ee.findKey(r,s);if(o){n[o]=v_(i),delete n[s];return}const a=t?gce(s):String(s).trim();a!==s&&delete n[s],n[a]=v_(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ee.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&ee.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(`
`)}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(i=>r.set(i)),r}static accessor(t){const r=(this[WD]=this[WD]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=Hh(o);r[a]||(_ce(i,o),r[a]=!0)}return ee.isArray(t)?t.forEach(s):s(t),this}}a1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ee.reduceDescriptors(a1.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ee.freezeMethods(a1);const ya=a1;function cb(e,t){const n=this||RT,r=t||n,i=ya.from(r.headers);let s=r.data;return ee.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function w4(e){return!!(e&&e.__CANCEL__)}function Gv(e,t,n){gt.call(this,e??"canceled",gt.ERR_CANCELED,t,n),this.name="CanceledError"}ee.inherits(Gv,gt,{__CANCEL__:!0});function yce(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new gt("Request failed with status code "+n.status,[gt.ERR_BAD_REQUEST,gt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const wce=Rs.isStandardBrowserEnv?function(){return{write:function(n,r,i,s,o,a){const u=[];u.push(n+"="+encodeURIComponent(r)),ee.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),ee.isString(s)&&u.push("path="+s),ee.isString(o)&&u.push("domain="+o),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Sce(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bce(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function S4(e,t){return e&&!Sce(t)?bce(e,t):t}const xce=Rs.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const a=ee.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function Ece(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Pce(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(u){const f=Date.now(),d=r[s];o||(o=f),n[i]=u,r[i]=f;let h=s,v=0;for(;h!==i;)v+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),f-o<t)return;const m=d&&f-d;return m?Math.round(v*1e3/m):void 0}}function zD(e,t){let n=0;const r=Pce(50,250);return i=>{const s=i.loaded,o=i.lengthComputable?i.total:void 0,a=s-n,u=r(a),f=s<=o;n=s;const d={loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:u||void 0,estimated:u&&o&&f?(o-s)/u:void 0,event:i};d[t?"download":"upload"]=!0,e(d)}}const Oce=typeof XMLHttpRequest<"u",Tce=Oce&&function(e){return new Promise(function(n,r){let i=e.data;const s=ya.from(e.headers).normalize(),o=e.responseType;let a;function u(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}ee.isFormData(i)&&(Rs.isStandardBrowserEnv||Rs.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let f=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(m+":"+y))}const d=S4(e.baseURL,e.url);f.open(e.method.toUpperCase(),g4(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;const m=ya.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),w={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:m,config:e,request:f};yce(function(S){n(S),u()},function(S){r(S),u()},w),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(r(new gt("Request aborted",gt.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new gt("Network Error",gt.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||_4;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new gt(y,w.clarifyTimeoutError?gt.ETIMEDOUT:gt.ECONNABORTED,e,f)),f=null},Rs.isStandardBrowserEnv){const m=(e.withCredentials||xce(d))&&e.xsrfCookieName&&wce.read(e.xsrfCookieName);m&&s.set(e.xsrfHeaderName,m)}i===void 0&&s.setContentType(null),"setRequestHeader"in f&&ee.forEach(s.toJSON(),function(y,w){f.setRequestHeader(w,y)}),ee.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),o&&o!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",zD(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",zD(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=m=>{f&&(r(!m||m.type?new Gv(null,e,f):m),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const v=Ece(d);if(v&&Rs.protocols.indexOf(v)===-1){r(new gt("Unsupported protocol "+v+":",gt.ERR_BAD_REQUEST,e));return}f.send(i||null)})},m_={http:Zue,xhr:Tce};ee.forEach(m_,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const b4={getAdapter:e=>{e=ee.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=ee.isString(n)?m_[n.toLowerCase()]:n));i++);if(!r)throw r===!1?new gt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(ee.hasOwnProp(m_,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!ee.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:m_};function fb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gv(null,e)}function HD(e){return fb(e),e.headers=ya.from(e.headers),e.data=cb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),b4.getAdapter(e.adapter||RT.adapter)(e).then(function(r){return fb(e),r.data=cb.call(e,e.transformResponse,r),r.headers=ya.from(r.headers),r},function(r){return w4(r)||(fb(e),r&&r.response&&(r.response.data=cb.call(e,e.transformResponse,r.response),r.response.headers=ya.from(r.response.headers))),Promise.reject(r)})}const GD=e=>e instanceof ya?e.toJSON():e;function Ed(e,t){t=t||{};const n={};function r(f,d,h){return ee.isPlainObject(f)&&ee.isPlainObject(d)?ee.merge.call({caseless:h},f,d):ee.isPlainObject(d)?ee.merge({},d):ee.isArray(d)?d.slice():d}function i(f,d,h){if(ee.isUndefined(d)){if(!ee.isUndefined(f))return r(void 0,f,h)}else return r(f,d,h)}function s(f,d){if(!ee.isUndefined(d))return r(void 0,d)}function o(f,d){if(ee.isUndefined(d)){if(!ee.isUndefined(f))return r(void 0,f)}else return r(void 0,d)}function a(f,d,h){if(h in t)return r(f,d);if(h in e)return r(void 0,f)}const u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(f,d)=>i(GD(f),GD(d),!0)};return ee.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=u[d]||i,v=h(e[d],t[d],d);ee.isUndefined(v)&&h!==a||(n[d]=v)}),n}const x4="1.5.0",IT={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{IT[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const YD={};IT.transitional=function(t,n,r){function i(s,o){return"[Axios v"+x4+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new gt(i(o," has been removed"+(n?" in "+n:"")),gt.ERR_DEPRECATED);return n&&!YD[o]&&(YD[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,a):!0}};function Cce(e,t,n){if(typeof e!="object")throw new gt("options must be an object",gt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],u=a===void 0||o(a,s,e);if(u!==!0)throw new gt("option "+s+" must be "+u,gt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new gt("Unknown option "+s,gt.ERR_BAD_OPTION)}}const _E={assertOptions:Cce,validators:IT},sl=_E.validators;class Ey{constructor(t){this.defaults=t,this.interceptors={request:new jD,response:new jD}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ed(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&_E.assertOptions(r,{silentJSONParsing:sl.transitional(sl.boolean),forcedJSONParsing:sl.transitional(sl.boolean),clarifyTimeoutError:sl.transitional(sl.boolean)},!1),i!=null&&(ee.isFunction(i)?n.paramsSerializer={serialize:i}:_E.assertOptions(i,{encode:sl.function,serialize:sl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&ee.merge(s.common,s[n.method]);s&&ee.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),n.headers=ya.concat(o,s);const a=[];let u=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(u=u&&w.synchronous,a.unshift(w.fulfilled,w.rejected))});const f=[];this.interceptors.response.forEach(function(w){f.push(w.fulfilled,w.rejected)});let d,h=0,v;if(!u){const y=[HD.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,f),v=y.length,d=Promise.resolve(n);h<v;)d=d.then(y[h++],y[h++]);return d}v=a.length;let m=n;for(h=0;h<v;){const y=a[h++],w=a[h++];try{m=y(m)}catch(E){w.call(this,E);break}}try{d=HD.call(this,m)}catch(y){return Promise.reject(y)}for(h=0,v=f.length;h<v;)d=d.then(f[h++],f[h++]);return d}getUri(t){t=Ed(this.defaults,t);const n=S4(t.baseURL,t.url);return g4(n,t.params,t.paramsSerializer)}}ee.forEach(["delete","get","head","options"],function(t){Ey.prototype[t]=function(n,r){return this.request(Ed(r||{},{method:t,url:n,data:(r||{}).data}))}});ee.forEach(["post","put","patch"],function(t){function n(r){return function(s,o,a){return this.request(Ed(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}Ey.prototype[t]=n(),Ey.prototype[t+"Form"]=n(!0)});const g_=Ey;class MT{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new Gv(s,o,a),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)}static source(){let t;return{token:new MT(function(i){t=i}),cancel:t}}}const kce=MT;function Ace(e){return function(n){return e.apply(null,n)}}function Rce(e){return ee.isObject(e)&&e.isAxiosError===!0}const yE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(yE).forEach(([e,t])=>{yE[t]=e});const Ice=yE;function E4(e){const t=new g_(e),n=s4(g_.prototype.request,t);return ee.extend(n,g_.prototype,t,{allOwnKeys:!0}),ee.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return E4(Ed(e,i))},n}const On=E4(RT);On.Axios=g_;On.CanceledError=Gv;On.CancelToken=kce;On.isCancel=w4;On.VERSION=x4;On.toFormData=o1;On.AxiosError=gt;On.Cancel=On.CanceledError;On.all=function(t){return Promise.all(t)};On.spread=Ace;On.isAxiosError=Rce;On.mergeConfig=Ed;On.AxiosHeaders=ya;On.formToJSON=e=>y4(ee.isHTMLForm(e)?new FormData(e):e);On.getAdapter=b4.getAdapter;On.HttpStatusCode=Ice;On.default=On;const ro=On;function G0e({children:e,variant:t="secondary",onClick:n,style:r,processing:i,leftIcon:s,isDisabled:o,tooltip:a,type:u}){return de(i4,{label:a,isDisabled:!a,placement:"top",children:de(nU,{bg:t==="primary"?"#f36743":"#EDF2F7",_hover:{bg:t==="primary"?"#244750":"#CBD5E0"},onClick:n,style:r,isLoading:i,leftIcon:s,isDisabled:o,type:u,children:de(BU,{sx:{color:t==="primary"?"white":"black"},children:e})})})}//! moment.js
//! version : 2.29.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var P4;function ye(){return P4.apply(null,arguments)}function Mce(e){P4=e}function Bs(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Qu(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function bt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function DT(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(bt(e,t))return!1;return!0}function Qr(e){return e===void 0}function Aa(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Yv(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function O4(e,t){var n=[],r,i=e.length;for(r=0;r<i;++r)n.push(t(e[r],r));return n}function wl(e,t){for(var n in t)bt(t,n)&&(e[n]=t[n]);return bt(t,"toString")&&(e.toString=t.toString),bt(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Io(e,t,n,r){return X4(e,t,n,r,!0).utc()}function Dce(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Ke(e){return e._pf==null&&(e._pf=Dce()),e._pf}var wE;Array.prototype.some?wE=Array.prototype.some:wE=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function LT(e){if(e._isValid==null){var t=Ke(e),n=wE.call(t.parsedDateParts,function(i){return i!=null}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r}return e._isValid}function l1(e){var t=Io(NaN);return e!=null?wl(Ke(t),e):Ke(t).userInvalidated=!0,t}var qD=ye.momentProperties=[],db=!1;function FT(e,t){var n,r,i,s=qD.length;if(Qr(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Qr(t._i)||(e._i=t._i),Qr(t._f)||(e._f=t._f),Qr(t._l)||(e._l=t._l),Qr(t._strict)||(e._strict=t._strict),Qr(t._tzm)||(e._tzm=t._tzm),Qr(t._isUTC)||(e._isUTC=t._isUTC),Qr(t._offset)||(e._offset=t._offset),Qr(t._pf)||(e._pf=Ke(t)),Qr(t._locale)||(e._locale=t._locale),s>0)for(n=0;n<s;n++)r=qD[n],i=t[r],Qr(i)||(e[r]=i);return e}function qv(e){FT(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),db===!1&&(db=!0,ye.updateOffset(this),db=!1)}function Us(e){return e instanceof qv||e!=null&&e._isAMomentObject!=null}function T4(e){ye.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ps(e,t){var n=!0;return wl(function(){if(ye.deprecationHandler!=null&&ye.deprecationHandler(null,e),n){var r=[],i,s,o,a=arguments.length;for(s=0;s<a;s++){if(i="",typeof arguments[s]=="object"){i+=`
[`+s+"] ";for(o in arguments[0])bt(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[s];r.push(i)}T4(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var KD={};function C4(e,t){ye.deprecationHandler!=null&&ye.deprecationHandler(e,t),KD[e]||(T4(t),KD[e]=!0)}ye.suppressDeprecationWarnings=!1;ye.deprecationHandler=null;function Mo(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Lce(e){var t,n;for(n in e)bt(e,n)&&(t=e[n],Mo(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function SE(e,t){var n=wl({},e),r;for(r in t)bt(t,r)&&(Qu(e[r])&&Qu(t[r])?(n[r]={},wl(n[r],e[r]),wl(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)bt(e,r)&&!bt(t,r)&&Qu(e[r])&&(n[r]=wl({},n[r]));return n}function NT(e){e!=null&&this.set(e)}var bE;Object.keys?bE=Object.keys:bE=function(e){var t,n=[];for(t in e)bt(e,t)&&n.push(t);return n};var Fce={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Nce(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Mo(r)?r.call(t,n):r}function ko(e,t,n){var r=""+Math.abs(e),i=t-r.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var $T=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Eg=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,hb={},qf={};function Re(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(qf[e]=i),t&&(qf[t[0]]=function(){return ko(i.apply(this,arguments),t[1],t[2])}),n&&(qf[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function $ce(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Bce(e){var t=e.match($T),n,r;for(n=0,r=t.length;n<r;n++)qf[t[n]]?t[n]=qf[t[n]]:t[n]=$ce(t[n]);return function(i){var s="",o;for(o=0;o<r;o++)s+=Mo(t[o])?t[o].call(i,e):t[o];return s}}function __(e,t){return e.isValid()?(t=k4(t,e.localeData()),hb[t]=hb[t]||Bce(t),hb[t](e)):e.localeData().invalidDate()}function k4(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(Eg.lastIndex=0;n>=0&&Eg.test(e);)e=e.replace(Eg,r),Eg.lastIndex=0,n-=1;return e}var Uce={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Vce(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match($T).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var jce="Invalid date";function Wce(){return this._invalidDate}var zce="%d",Hce=/\d{1,2}/;function Gce(e){return this._ordinal.replace("%d",e)}var Yce={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qce(e,t,n,r){var i=this._relativeTime[n];return Mo(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Kce(e,t){var n=this._relativeTime[e>0?"future":"past"];return Mo(n)?n(t):n.replace(/%s/i,t)}var kp={};function Or(e,t){var n=e.toLowerCase();kp[n]=kp[n+"s"]=kp[t]=e}function vs(e){return typeof e=="string"?kp[e]||kp[e.toLowerCase()]:void 0}function BT(e){var t={},n,r;for(r in e)bt(e,r)&&(n=vs(r),n&&(t[n]=e[r]));return t}var A4={};function Tr(e,t){A4[e]=t}function Xce(e){var t=[],n;for(n in e)bt(e,n)&&t.push({unit:n,priority:A4[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}function u1(e){return e%4===0&&e%100!==0||e%400===0}function Qi(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function et(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Qi(t)),n}function Gd(e,t){return function(n){return n!=null?(R4(this,e,n),ye.updateOffset(this,t),this):Py(this,e)}}function Py(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function R4(e,t,n){e.isValid()&&!isNaN(n)&&(t==="FullYear"&&u1(e.year())&&e.month()===1&&e.date()===29?(n=et(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),v1(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Jce(e){return e=vs(e),Mo(this[e])?this[e]():this}function Qce(e,t){if(typeof e=="object"){e=BT(e);var n=Xce(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=vs(e),Mo(this[e]))return this[e](t);return this}var I4=/\d/,Di=/\d\d/,M4=/\d{3}/,UT=/\d{4}/,c1=/[+-]?\d{6}/,nn=/\d\d?/,D4=/\d\d\d\d?/,L4=/\d\d\d\d\d\d?/,f1=/\d{1,3}/,VT=/\d{1,4}/,d1=/[+-]?\d{1,6}/,Yd=/\d+/,h1=/[+-]?\d+/,Zce=/Z|[+-]\d\d:?\d\d/gi,p1=/Z|[+-]\d\d(?::?\d\d)?/gi,efe=/[+-]?\d+(\.\d{1,3})?/,Kv=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Oy;Oy={};function be(e,t,n){Oy[e]=Mo(t)?t:function(r,i){return r&&n?n:t}}function tfe(e,t){return bt(Oy,e)?Oy[e](t._strict,t._locale):new RegExp(nfe(e))}function nfe(e){return wi(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,s){return n||r||i||s}))}function wi(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var xE={};function jt(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),Aa(t)&&(r=function(s,o){o[t]=et(s)}),i=e.length,n=0;n<i;n++)xE[e[n]]=r}function Xv(e,t){jt(e,function(n,r,i,s){i._w=i._w||{},t(n,i._w,i,s)})}function rfe(e,t,n){t!=null&&bt(xE,e)&&xE[e](t,n._a,n,e)}var xr=0,da=1,po=2,$n=3,Is=4,ha=5,Uu=6,ife=7,sfe=8;function ofe(e,t){return(e%t+t)%t}var wn;Array.prototype.indexOf?wn=Array.prototype.indexOf:wn=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function v1(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ofe(t,12);return e+=(t-n)/12,n===1?u1(e)?29:28:31-n%7%2}Re("M",["MM",2],"Mo",function(){return this.month()+1});Re("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});Re("MMMM",0,0,function(e){return this.localeData().months(this,e)});Or("month","M");Tr("month",8);be("M",nn);be("MM",nn,Di);be("MMM",function(e,t){return t.monthsShortRegex(e)});be("MMMM",function(e,t){return t.monthsRegex(e)});jt(["M","MM"],function(e,t){t[da]=et(e)-1});jt(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[da]=i:Ke(n).invalidMonth=e});var afe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),F4="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),N4=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,lfe=Kv,ufe=Kv;function cfe(e,t){return e?Bs(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||N4).test(t)?"format":"standalone"][e.month()]:Bs(this._months)?this._months:this._months.standalone}function ffe(e,t){return e?Bs(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[N4.test(t)?"format":"standalone"][e.month()]:Bs(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dfe(e,t,n){var r,i,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=Io([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?t==="MMM"?(i=wn.call(this._shortMonthsParse,o),i!==-1?i:null):(i=wn.call(this._longMonthsParse,o),i!==-1?i:null):t==="MMM"?(i=wn.call(this._shortMonthsParse,o),i!==-1?i:(i=wn.call(this._longMonthsParse,o),i!==-1?i:null)):(i=wn.call(this._longMonthsParse,o),i!==-1?i:(i=wn.call(this._shortMonthsParse,o),i!==-1?i:null))}function hfe(e,t,n){var r,i,s;if(this._monthsParseExact)return dfe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=Io([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(s="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function $4(e,t){var n;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=et(t);else if(t=e.localeData().monthsParse(t),!Aa(t))return e}return n=Math.min(e.date(),v1(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function B4(e){return e!=null?($4(this,e),ye.updateOffset(this,!0),this):Py(this,"Month")}function pfe(){return v1(this.year(),this.month())}function vfe(e){return this._monthsParseExact?(bt(this,"_monthsRegex")||U4.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(bt(this,"_monthsShortRegex")||(this._monthsShortRegex=lfe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function mfe(e){return this._monthsParseExact?(bt(this,"_monthsRegex")||U4.call(this),e?this._monthsStrictRegex:this._monthsRegex):(bt(this,"_monthsRegex")||(this._monthsRegex=ufe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function U4(){function e(o,a){return a.length-o.length}var t=[],n=[],r=[],i,s;for(i=0;i<12;i++)s=Io([2e3,i]),t.push(this.monthsShort(s,"")),n.push(this.months(s,"")),r.push(this.months(s,"")),r.push(this.monthsShort(s,""));for(t.sort(e),n.sort(e),r.sort(e),i=0;i<12;i++)t[i]=wi(t[i]),n[i]=wi(n[i]);for(i=0;i<24;i++)r[i]=wi(r[i]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}Re("Y",0,0,function(){var e=this.year();return e<=9999?ko(e,4):"+"+e});Re(0,["YY",2],0,function(){return this.year()%100});Re(0,["YYYY",4],0,"year");Re(0,["YYYYY",5],0,"year");Re(0,["YYYYYY",6,!0],0,"year");Or("year","y");Tr("year",1);be("Y",h1);be("YY",nn,Di);be("YYYY",VT,UT);be("YYYYY",d1,c1);be("YYYYYY",d1,c1);jt(["YYYYY","YYYYYY"],xr);jt("YYYY",function(e,t){t[xr]=e.length===2?ye.parseTwoDigitYear(e):et(e)});jt("YY",function(e,t){t[xr]=ye.parseTwoDigitYear(e)});jt("Y",function(e,t){t[xr]=parseInt(e,10)});function Ap(e){return u1(e)?366:365}ye.parseTwoDigitYear=function(e){return et(e)+(et(e)>68?1900:2e3)};var V4=Gd("FullYear",!0);function gfe(){return u1(this.year())}function _fe(e,t,n,r,i,s,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,s,o),a}function mv(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ty(e,t,n){var r=7+t-n,i=(7+mv(e,0,r).getUTCDay()-t)%7;return-i+r-1}function j4(e,t,n,r,i){var s=(7+n-r)%7,o=Ty(e,r,i),a=1+7*(t-1)+s+o,u,f;return a<=0?(u=e-1,f=Ap(u)+a):a>Ap(e)?(u=e+1,f=a-Ap(e)):(u=e,f=a),{year:u,dayOfYear:f}}function gv(e,t,n){var r=Ty(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,s,o;return i<1?(o=e.year()-1,s=i+wa(o,t,n)):i>wa(e.year(),t,n)?(s=i-wa(e.year(),t,n),o=e.year()+1):(o=e.year(),s=i),{week:s,year:o}}function wa(e,t,n){var r=Ty(e,t,n),i=Ty(e+1,t,n);return(Ap(e)-r+i)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");Or("week","w");Or("isoWeek","W");Tr("week",5);Tr("isoWeek",5);be("w",nn);be("ww",nn,Di);be("W",nn);be("WW",nn,Di);Xv(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=et(e)});function yfe(e){return gv(e,this._week.dow,this._week.doy).week}var wfe={dow:0,doy:6};function Sfe(){return this._week.dow}function bfe(){return this._week.doy}function xfe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Efe(e){var t=gv(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Re("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Re("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");Or("day","d");Or("weekday","e");Or("isoWeekday","E");Tr("day",11);Tr("weekday",11);Tr("isoWeekday",11);be("d",nn);be("e",nn);be("E",nn);be("dd",function(e,t){return t.weekdaysMinRegex(e)});be("ddd",function(e,t){return t.weekdaysShortRegex(e)});be("dddd",function(e,t){return t.weekdaysRegex(e)});Xv(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Ke(n).invalidWeekday=e});Xv(["d","e","E"],function(e,t,n,r){t[r]=et(e)});function Pfe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ofe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function jT(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Tfe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),W4="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Cfe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kfe=Kv,Afe=Kv,Rfe=Kv;function Ife(e,t){var n=Bs(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?jT(n,this._week.dow):e?n[e.day()]:n}function Mfe(e){return e===!0?jT(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Dfe(e){return e===!0?jT(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Lfe(e,t,n){var r,i,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=Io([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?t==="dddd"?(i=wn.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=wn.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=wn.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=wn.call(this._weekdaysParse,o),i!==-1||(i=wn.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=wn.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=wn.call(this._shortWeekdaysParse,o),i!==-1||(i=wn.call(this._weekdaysParse,o),i!==-1)?i:(i=wn.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=wn.call(this._minWeekdaysParse,o),i!==-1||(i=wn.call(this._weekdaysParse,o),i!==-1)?i:(i=wn.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function Ffe(e,t,n){var r,i,s;if(this._weekdaysParseExact)return Lfe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Io([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Nfe(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Pfe(e,this.localeData()),this.add(e-t,"d")):t}function $fe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Bfe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ofe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Ufe(e){return this._weekdaysParseExact?(bt(this,"_weekdaysRegex")||WT.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(bt(this,"_weekdaysRegex")||(this._weekdaysRegex=kfe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Vfe(e){return this._weekdaysParseExact?(bt(this,"_weekdaysRegex")||WT.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(bt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Afe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function jfe(e){return this._weekdaysParseExact?(bt(this,"_weekdaysRegex")||WT.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(bt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Rfe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function WT(){function e(d,h){return h.length-d.length}var t=[],n=[],r=[],i=[],s,o,a,u,f;for(s=0;s<7;s++)o=Io([2e3,1]).day(s),a=wi(this.weekdaysMin(o,"")),u=wi(this.weekdaysShort(o,"")),f=wi(this.weekdays(o,"")),t.push(a),n.push(u),r.push(f),i.push(a),i.push(u),i.push(f);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function zT(){return this.hours()%12||12}function Wfe(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,zT);Re("k",["kk",2],0,Wfe);Re("hmm",0,0,function(){return""+zT.apply(this)+ko(this.minutes(),2)});Re("hmmss",0,0,function(){return""+zT.apply(this)+ko(this.minutes(),2)+ko(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+ko(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+ko(this.minutes(),2)+ko(this.seconds(),2)});function z4(e,t){Re(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}z4("a",!0);z4("A",!1);Or("hour","h");Tr("hour",13);function H4(e,t){return t._meridiemParse}be("a",H4);be("A",H4);be("H",nn);be("h",nn);be("k",nn);be("HH",nn,Di);be("hh",nn,Di);be("kk",nn,Di);be("hmm",D4);be("hmmss",L4);be("Hmm",D4);be("Hmmss",L4);jt(["H","HH"],$n);jt(["k","kk"],function(e,t,n){var r=et(e);t[$n]=r===24?0:r});jt(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});jt(["h","hh"],function(e,t,n){t[$n]=et(e),Ke(n).bigHour=!0});jt("hmm",function(e,t,n){var r=e.length-2;t[$n]=et(e.substr(0,r)),t[Is]=et(e.substr(r)),Ke(n).bigHour=!0});jt("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[$n]=et(e.substr(0,r)),t[Is]=et(e.substr(r,2)),t[ha]=et(e.substr(i)),Ke(n).bigHour=!0});jt("Hmm",function(e,t,n){var r=e.length-2;t[$n]=et(e.substr(0,r)),t[Is]=et(e.substr(r))});jt("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[$n]=et(e.substr(0,r)),t[Is]=et(e.substr(r,2)),t[ha]=et(e.substr(i))});function zfe(e){return(e+"").toLowerCase().charAt(0)==="p"}var Hfe=/[ap]\.?m?\.?/i,Gfe=Gd("Hours",!0);function Yfe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var G4={calendar:Fce,longDateFormat:Uce,invalidDate:jce,ordinal:zce,dayOfMonthOrdinalParse:Hce,relativeTime:Yce,months:afe,monthsShort:F4,week:wfe,weekdays:Tfe,weekdaysMin:Cfe,weekdaysShort:W4,meridiemParse:Hfe},sn={},Gh={},_v;function qfe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function XD(e){return e&&e.toLowerCase().replace("_","-")}function Kfe(e){for(var t=0,n,r,i,s;t<e.length;){for(s=XD(e[t]).split("-"),n=s.length,r=XD(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=m1(s.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&qfe(s,r)>=n-1)break;n--}t++}return _v}function Xfe(e){return e.match("^[^/\\\\]*$")!=null}function m1(e){var t=null,n;if(sn[e]===void 0&&typeof module<"u"&&module&&module.exports&&Xfe(e))try{t=_v._abbr,n=require,n("./locale/"+e),Ll(t)}catch{sn[e]=null}return sn[e]}function Ll(e,t){var n;return e&&(Qr(t)?n=Da(e):n=HT(e,t),n?_v=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),_v._abbr}function HT(e,t){if(t!==null){var n,r=G4;if(t.abbr=e,sn[e]!=null)C4("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=sn[e]._config;else if(t.parentLocale!=null)if(sn[t.parentLocale]!=null)r=sn[t.parentLocale]._config;else if(n=m1(t.parentLocale),n!=null)r=n._config;else return Gh[t.parentLocale]||(Gh[t.parentLocale]=[]),Gh[t.parentLocale].push({name:e,config:t}),null;return sn[e]=new NT(SE(r,t)),Gh[e]&&Gh[e].forEach(function(i){HT(i.name,i.config)}),Ll(e),sn[e]}else return delete sn[e],null}function Jfe(e,t){if(t!=null){var n,r,i=G4;sn[e]!=null&&sn[e].parentLocale!=null?sn[e].set(SE(sn[e]._config,t)):(r=m1(e),r!=null&&(i=r._config),t=SE(i,t),r==null&&(t.abbr=e),n=new NT(t),n.parentLocale=sn[e],sn[e]=n),Ll(e)}else sn[e]!=null&&(sn[e].parentLocale!=null?(sn[e]=sn[e].parentLocale,e===Ll()&&Ll(e)):sn[e]!=null&&delete sn[e]);return sn[e]}function Da(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return _v;if(!Bs(e)){if(t=m1(e),t)return t;e=[e]}return Kfe(e)}function Qfe(){return bE(sn)}function GT(e){var t,n=e._a;return n&&Ke(e).overflow===-2&&(t=n[da]<0||n[da]>11?da:n[po]<1||n[po]>v1(n[xr],n[da])?po:n[$n]<0||n[$n]>24||n[$n]===24&&(n[Is]!==0||n[ha]!==0||n[Uu]!==0)?$n:n[Is]<0||n[Is]>59?Is:n[ha]<0||n[ha]>59?ha:n[Uu]<0||n[Uu]>999?Uu:-1,Ke(e)._overflowDayOfYear&&(t<xr||t>po)&&(t=po),Ke(e)._overflowWeeks&&t===-1&&(t=ife),Ke(e)._overflowWeekday&&t===-1&&(t=sfe),Ke(e).overflow=t),e}var Zfe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ede=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tde=/Z|[+-]\d\d(?::?\d\d)?/,Pg=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pb=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],nde=/^\/?Date\((-?\d+)/i,rde=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ide={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Y4(e){var t,n,r=e._i,i=Zfe.exec(r)||ede.exec(r),s,o,a,u,f=Pg.length,d=pb.length;if(i){for(Ke(e).iso=!0,t=0,n=f;t<n;t++)if(Pg[t][1].exec(i[1])){o=Pg[t][0],s=Pg[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,n=d;t<n;t++)if(pb[t][1].exec(i[3])){a=(i[2]||" ")+pb[t][0];break}if(a==null){e._isValid=!1;return}}if(!s&&a!=null){e._isValid=!1;return}if(i[4])if(tde.exec(i[4]))u="Z";else{e._isValid=!1;return}e._f=o+(a||"")+(u||""),qT(e)}else e._isValid=!1}function sde(e,t,n,r,i,s){var o=[ode(e),F4.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return s&&o.push(parseInt(s,10)),o}function ode(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function ade(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function lde(e,t,n){if(e){var r=W4.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Ke(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function ude(e,t,n){if(e)return ide[e];if(t)return 0;var r=parseInt(n,10),i=r%100,s=(r-i)/100;return s*60+i}function q4(e){var t=rde.exec(ade(e._i)),n;if(t){if(n=sde(t[4],t[3],t[2],t[5],t[6],t[7]),!lde(t[1],n,e))return;e._a=n,e._tzm=ude(t[8],t[9],t[10]),e._d=mv.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Ke(e).rfc2822=!0}else e._isValid=!1}function cde(e){var t=nde.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Y4(e),e._isValid===!1)delete e._isValid;else return;if(q4(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ye.createFromInputFallback(e)}ye.createFromInputFallback=ps("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ff(e,t,n){return e??t??n}function fde(e){var t=new Date(ye.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function YT(e){var t,n,r=[],i,s,o;if(!e._d){for(i=fde(e),e._w&&e._a[po]==null&&e._a[da]==null&&dde(e),e._dayOfYear!=null&&(o=ff(e._a[xr],i[xr]),(e._dayOfYear>Ap(o)||e._dayOfYear===0)&&(Ke(e)._overflowDayOfYear=!0),n=mv(o,0,e._dayOfYear),e._a[da]=n.getUTCMonth(),e._a[po]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[$n]===24&&e._a[Is]===0&&e._a[ha]===0&&e._a[Uu]===0&&(e._nextDay=!0,e._a[$n]=0),e._d=(e._useUTC?mv:_fe).apply(null,r),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$n]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(Ke(e).weekdayMismatch=!0)}}function dde(e){var t,n,r,i,s,o,a,u,f;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,o=4,n=ff(t.GG,e._a[xr],gv(tn(),1,4).year),r=ff(t.W,1),i=ff(t.E,1),(i<1||i>7)&&(u=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,f=gv(tn(),s,o),n=ff(t.gg,e._a[xr],f.year),r=ff(t.w,f.week),t.d!=null?(i=t.d,(i<0||i>6)&&(u=!0)):t.e!=null?(i=t.e+s,(t.e<0||t.e>6)&&(u=!0)):i=s),r<1||r>wa(n,s,o)?Ke(e)._overflowWeeks=!0:u!=null?Ke(e)._overflowWeekday=!0:(a=j4(n,r,i,s,o),e._a[xr]=a.year,e._dayOfYear=a.dayOfYear)}ye.ISO_8601=function(){};ye.RFC_2822=function(){};function qT(e){if(e._f===ye.ISO_8601){Y4(e);return}if(e._f===ye.RFC_2822){q4(e);return}e._a=[],Ke(e).empty=!0;var t=""+e._i,n,r,i,s,o,a=t.length,u=0,f,d;for(i=k4(e._f,e._locale).match($T)||[],d=i.length,n=0;n<d;n++)s=i[n],r=(t.match(tfe(s,e))||[])[0],r&&(o=t.substr(0,t.indexOf(r)),o.length>0&&Ke(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),u+=r.length),qf[s]?(r?Ke(e).empty=!1:Ke(e).unusedTokens.push(s),rfe(s,r,e)):e._strict&&!r&&Ke(e).unusedTokens.push(s);Ke(e).charsLeftOver=a-u,t.length>0&&Ke(e).unusedInput.push(t),e._a[$n]<=12&&Ke(e).bigHour===!0&&e._a[$n]>0&&(Ke(e).bigHour=void 0),Ke(e).parsedDateParts=e._a.slice(0),Ke(e).meridiem=e._meridiem,e._a[$n]=hde(e._locale,e._a[$n],e._meridiem),f=Ke(e).era,f!==null&&(e._a[xr]=e._locale.erasConvertYear(f,e._a[xr])),YT(e),GT(e)}function hde(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function pde(e){var t,n,r,i,s,o,a=!1,u=e._f.length;if(u===0){Ke(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<u;i++)s=0,o=!1,t=FT({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],qT(t),LT(t)&&(o=!0),s+=Ke(t).charsLeftOver,s+=Ke(t).unusedTokens.length*10,Ke(t).score=s,a?s<r&&(r=s,n=t):(r==null||s<r||o)&&(r=s,n=t,o&&(a=!0));wl(e,n||t)}function vde(e){if(!e._d){var t=BT(e._i),n=t.day===void 0?t.date:t.day;e._a=O4([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),YT(e)}}function mde(e){var t=new qv(GT(K4(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function K4(e){var t=e._i,n=e._f;return e._locale=e._locale||Da(e._l),t===null||n===void 0&&t===""?l1({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Us(t)?new qv(GT(t)):(Yv(t)?e._d=t:Bs(n)?pde(e):n?qT(e):gde(e),LT(e)||(e._d=null),e))}function gde(e){var t=e._i;Qr(t)?e._d=new Date(ye.now()):Yv(t)?e._d=new Date(t.valueOf()):typeof t=="string"?cde(e):Bs(t)?(e._a=O4(t.slice(0),function(n){return parseInt(n,10)}),YT(e)):Qu(t)?vde(e):Aa(t)?e._d=new Date(t):ye.createFromInputFallback(e)}function X4(e,t,n,r,i){var s={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Qu(e)&&DT(e)||Bs(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,mde(s)}function tn(e,t,n,r){return X4(e,t,n,r,!1)}var _de=ps("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=tn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:l1()}),yde=ps("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=tn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:l1()});function J4(e,t){var n,r;if(t.length===1&&Bs(t[0])&&(t=t[0]),!t.length)return tn();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function wde(){var e=[].slice.call(arguments,0);return J4("isBefore",e)}function Sde(){var e=[].slice.call(arguments,0);return J4("isAfter",e)}var bde=function(){return Date.now?Date.now():+new Date},Yh=["year","quarter","month","week","day","hour","minute","second","millisecond"];function xde(e){var t,n=!1,r,i=Yh.length;for(t in e)if(bt(e,t)&&!(wn.call(Yh,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[Yh[r]]){if(n)return!1;parseFloat(e[Yh[r]])!==et(e[Yh[r]])&&(n=!0)}return!0}function Ede(){return this._isValid}function Pde(){return Ws(NaN)}function g1(e){var t=BT(e),n=t.year||0,r=t.quarter||0,i=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,u=t.minute||0,f=t.second||0,d=t.millisecond||0;this._isValid=xde(t),this._milliseconds=+d+f*1e3+u*6e4+a*1e3*60*60,this._days=+o+s*7,this._months=+i+r*3+n*12,this._data={},this._locale=Da(),this._bubble()}function y_(e){return e instanceof g1}function EE(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Ode(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0,o;for(o=0;o<r;o++)(n&&e[o]!==t[o]||!n&&et(e[o])!==et(t[o]))&&s++;return s+i}function Q4(e,t){Re(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+ko(~~(n/60),2)+t+ko(~~n%60,2)})}Q4("Z",":");Q4("ZZ","");be("Z",p1);be("ZZ",p1);jt(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=KT(p1,e)});var Tde=/([\+\-]|\d\d)/gi;function KT(e,t){var n=(t||"").match(e),r,i,s;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(Tde)||["-",0,0],s=+(i[1]*60)+et(i[2]),s===0?0:i[0]==="+"?s:-s)}function XT(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Us(e)||Yv(e)?e.valueOf():tn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),ye.updateOffset(n,!1),n):tn(e).local()}function PE(e){return-Math.round(e._d.getTimezoneOffset())}ye.updateOffset=function(){};function Cde(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=KT(p1,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=PE(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?tV(this,Ws(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ye.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:PE(this)}function kde(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ade(e){return this.utcOffset(0,e)}function Rde(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(PE(this),"m")),this}function Ide(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=KT(Zce,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Mde(e){return this.isValid()?(e=e?tn(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Dde(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Lde(){if(!Qr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return FT(e,this),e=K4(e),e._a?(t=e._isUTC?Io(e._a):tn(e._a),this._isDSTShifted=this.isValid()&&Ode(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Fde(){return this.isValid()?!this._isUTC:!1}function Nde(){return this.isValid()?this._isUTC:!1}function Z4(){return this.isValid()?this._isUTC&&this._offset===0:!1}var $de=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bde=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ws(e,t){var n=e,r=null,i,s,o;return y_(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Aa(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=$de.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:et(r[po])*i,h:et(r[$n])*i,m:et(r[Is])*i,s:et(r[ha])*i,ms:et(EE(r[Uu]*1e3))*i}):(r=Bde.exec(e))?(i=r[1]==="-"?-1:1,n={y:bu(r[2],i),M:bu(r[3],i),w:bu(r[4],i),d:bu(r[5],i),h:bu(r[6],i),m:bu(r[7],i),s:bu(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=Ude(tn(n.from),tn(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),s=new g1(n),y_(e)&&bt(e,"_locale")&&(s._locale=e._locale),y_(e)&&bt(e,"_isValid")&&(s._isValid=e._isValid),s}Ws.fn=g1.prototype;Ws.invalid=Pde;function bu(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function JD(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ude(e,t){var n;return e.isValid()&&t.isValid()?(t=XT(t,e),e.isBefore(t)?n=JD(e,t):(n=JD(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function eV(e,t){return function(n,r){var i,s;return r!==null&&!isNaN(+r)&&(C4(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=r,r=s),i=Ws(n,r),tV(this,i,e),this}}function tV(e,t,n,r){var i=t._milliseconds,s=EE(t._days),o=EE(t._months);e.isValid()&&(r=r??!0,o&&$4(e,Py(e,"Month")+o*n),s&&R4(e,"Date",Py(e,"Date")+s*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&ye.updateOffset(e,s||o))}var Vde=eV(1,"add"),jde=eV(-1,"subtract");function nV(e){return typeof e=="string"||e instanceof String}function Wde(e){return Us(e)||Yv(e)||nV(e)||Aa(e)||Hde(e)||zde(e)||e===null||e===void 0}function zde(e){var t=Qu(e)&&!DT(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,s,o=r.length;for(i=0;i<o;i+=1)s=r[i],n=n||bt(e,s);return t&&n}function Hde(e){var t=Bs(e),n=!1;return t&&(n=e.filter(function(r){return!Aa(r)&&nV(e)}).length===0),t&&n}function Gde(e){var t=Qu(e)&&!DT(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,s;for(i=0;i<r.length;i+=1)s=r[i],n=n||bt(e,s);return t&&n}function Yde(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function qde(e,t){arguments.length===1&&(arguments[0]?Wde(arguments[0])?(e=arguments[0],t=void 0):Gde(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||tn(),r=XT(n,this).startOf("day"),i=ye.calendarFormat(this,r)||"sameElse",s=t&&(Mo(t[i])?t[i].call(this,n):t[i]);return this.format(s||this.localeData().calendar(i,this,tn(n)))}function Kde(){return new qv(this)}function Xde(e,t){var n=Us(e)?e:tn(e);return this.isValid()&&n.isValid()?(t=vs(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Jde(e,t){var n=Us(e)?e:tn(e);return this.isValid()&&n.isValid()?(t=vs(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Qde(e,t,n,r){var i=Us(e)?e:tn(e),s=Us(t)?t:tn(t);return this.isValid()&&i.isValid()&&s.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(s,n):!this.isAfter(s,n))):!1}function Zde(e,t){var n=Us(e)?e:tn(e),r;return this.isValid()&&n.isValid()?(t=vs(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function ehe(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function the(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function nhe(e,t,n){var r,i,s;if(!this.isValid())return NaN;if(r=XT(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=vs(t),t){case"year":s=w_(this,r)/12;break;case"month":s=w_(this,r);break;case"quarter":s=w_(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-i)/864e5;break;case"week":s=(this-r-i)/6048e5;break;default:s=this-r}return n?s:Qi(s)}function w_(e,t){if(e.date()<t.date())return-w_(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,s;return t-r<0?(i=e.clone().add(n-1,"months"),s=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),s=(t-r)/(i-r)),-(n+s)||0}ye.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";ye.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function rhe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ihe(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?__(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Mo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",__(n,"Z")):__(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function she(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(n+r+i+s)}function ohe(e){e||(e=this.isUtc()?ye.defaultFormatUtc:ye.defaultFormat);var t=__(this,e);return this.localeData().postformat(t)}function ahe(e,t){return this.isValid()&&(Us(e)&&e.isValid()||tn(e).isValid())?Ws({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function lhe(e){return this.from(tn(),e)}function uhe(e,t){return this.isValid()&&(Us(e)&&e.isValid()||tn(e).isValid())?Ws({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function che(e){return this.to(tn(),e)}function rV(e){var t;return e===void 0?this._locale._abbr:(t=Da(e),t!=null&&(this._locale=t),this)}var iV=ps("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function sV(){return this._locale}var Cy=1e3,Kf=60*Cy,ky=60*Kf,oV=(365*400+97)*24*ky;function Xf(e,t){return(e%t+t)%t}function aV(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-oV:new Date(e,t,n).valueOf()}function lV(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-oV:Date.UTC(e,t,n)}function fhe(e){var t,n;if(e=vs(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?lV:aV,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Xf(t+(this._isUTC?0:this.utcOffset()*Kf),ky);break;case"minute":t=this._d.valueOf(),t-=Xf(t,Kf);break;case"second":t=this._d.valueOf(),t-=Xf(t,Cy);break}return this._d.setTime(t),ye.updateOffset(this,!0),this}function dhe(e){var t,n;if(e=vs(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?lV:aV,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ky-Xf(t+(this._isUTC?0:this.utcOffset()*Kf),ky)-1;break;case"minute":t=this._d.valueOf(),t+=Kf-Xf(t,Kf)-1;break;case"second":t=this._d.valueOf(),t+=Cy-Xf(t,Cy)-1;break}return this._d.setTime(t),ye.updateOffset(this,!0),this}function hhe(){return this._d.valueOf()-(this._offset||0)*6e4}function phe(){return Math.floor(this.valueOf()/1e3)}function vhe(){return new Date(this.valueOf())}function mhe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ghe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function _he(){return this.isValid()?this.toISOString():null}function yhe(){return LT(this)}function whe(){return wl({},Ke(this))}function She(){return Ke(this).overflow}function bhe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");be("N",JT);be("NN",JT);be("NNN",JT);be("NNNN",Mhe);be("NNNNN",Dhe);jt(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Ke(n).era=i:Ke(n).invalidEra=e});be("y",Yd);be("yy",Yd);be("yyy",Yd);be("yyyy",Yd);be("yo",Lhe);jt(["y","yy","yyy","yyyy"],xr);jt(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[xr]=n._locale.eraYearOrdinalParse(e,i):t[xr]=parseInt(e,10)});function xhe(e,t){var n,r,i,s=this._eras||Da("en")._eras;for(n=0,r=s.length;n<r;++n){switch(typeof s[n].since){case"string":i=ye(s[n].since).startOf("day"),s[n].since=i.valueOf();break}switch(typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":i=ye(s[n].until).startOf("day").valueOf(),s[n].until=i.valueOf();break}}return s}function Ehe(e,t,n){var r,i,s=this.eras(),o,a,u;for(e=e.toUpperCase(),r=0,i=s.length;r<i;++r)if(o=s[r].name.toUpperCase(),a=s[r].abbr.toUpperCase(),u=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[r];break;case"NNNN":if(o===e)return s[r];break;case"NNNNN":if(u===e)return s[r];break}else if([o,a,u].indexOf(e)>=0)return s[r]}function Phe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ye(e.since).year():ye(e.since).year()+(t-e.offset)*n}function Ohe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function The(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function Che(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function khe(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-ye(i[e].since).year())*n+i[e].offset;return this.year()}function Ahe(e){return bt(this,"_erasNameRegex")||QT.call(this),e?this._erasNameRegex:this._erasRegex}function Rhe(e){return bt(this,"_erasAbbrRegex")||QT.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ihe(e){return bt(this,"_erasNarrowRegex")||QT.call(this),e?this._erasNarrowRegex:this._erasRegex}function JT(e,t){return t.erasAbbrRegex(e)}function Mhe(e,t){return t.erasNameRegex(e)}function Dhe(e,t){return t.erasNarrowRegex(e)}function Lhe(e,t){return t._eraYearOrdinalRegex||Yd}function QT(){var e=[],t=[],n=[],r=[],i,s,o=this.eras();for(i=0,s=o.length;i<s;++i)t.push(wi(o[i].name)),e.push(wi(o[i].abbr)),n.push(wi(o[i].narrow)),r.push(wi(o[i].name)),r.push(wi(o[i].abbr)),r.push(wi(o[i].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}Re(0,["gg",2],0,function(){return this.weekYear()%100});Re(0,["GG",2],0,function(){return this.isoWeekYear()%100});function _1(e,t){Re(0,[e,e.length],0,t)}_1("gggg","weekYear");_1("ggggg","weekYear");_1("GGGG","isoWeekYear");_1("GGGGG","isoWeekYear");Or("weekYear","gg");Or("isoWeekYear","GG");Tr("weekYear",1);Tr("isoWeekYear",1);be("G",h1);be("g",h1);be("GG",nn,Di);be("gg",nn,Di);be("GGGG",VT,UT);be("gggg",VT,UT);be("GGGGG",d1,c1);be("ggggg",d1,c1);Xv(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=et(e)});Xv(["gg","GG"],function(e,t,n,r){t[r]=ye.parseTwoDigitYear(e)});function Fhe(e){return uV.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Nhe(e){return uV.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $he(){return wa(this.year(),1,4)}function Bhe(){return wa(this.isoWeekYear(),1,4)}function Uhe(){var e=this.localeData()._week;return wa(this.year(),e.dow,e.doy)}function Vhe(){var e=this.localeData()._week;return wa(this.weekYear(),e.dow,e.doy)}function uV(e,t,n,r,i){var s;return e==null?gv(this,r,i).year:(s=wa(e,r,i),t>s&&(t=s),jhe.call(this,e,t,n,r,i))}function jhe(e,t,n,r,i){var s=j4(e,t,n,r,i),o=mv(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");Or("quarter","Q");Tr("quarter",7);be("Q",I4);jt("Q",function(e,t){t[da]=(et(e)-1)*3});function Whe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");Or("date","D");Tr("date",9);be("D",nn);be("DD",nn,Di);be("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});jt(["D","DD"],po);jt("Do",function(e,t){t[po]=et(e.match(nn)[0])});var cV=Gd("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");Or("dayOfYear","DDD");Tr("dayOfYear",4);be("DDD",f1);be("DDDD",M4);jt(["DDD","DDDD"],function(e,t,n){n._dayOfYear=et(e)});function zhe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Re("m",["mm",2],0,"minute");Or("minute","m");Tr("minute",14);be("m",nn);be("mm",nn,Di);jt(["m","mm"],Is);var Hhe=Gd("Minutes",!1);Re("s",["ss",2],0,"second");Or("second","s");Tr("second",15);be("s",nn);be("ss",nn,Di);jt(["s","ss"],ha);var Ghe=Gd("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Or("millisecond","ms");Tr("millisecond",16);be("S",f1,I4);be("SS",f1,Di);be("SSS",f1,M4);var Sl,fV;for(Sl="SSSS";Sl.length<=9;Sl+="S")be(Sl,Yd);function Yhe(e,t){t[Uu]=et(("0."+e)*1e3)}for(Sl="S";Sl.length<=9;Sl+="S")jt(Sl,Yhe);fV=Gd("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function qhe(){return this._isUTC?"UTC":""}function Khe(){return this._isUTC?"Coordinated Universal Time":""}var fe=qv.prototype;fe.add=Vde;fe.calendar=qde;fe.clone=Kde;fe.diff=nhe;fe.endOf=dhe;fe.format=ohe;fe.from=ahe;fe.fromNow=lhe;fe.to=uhe;fe.toNow=che;fe.get=Jce;fe.invalidAt=She;fe.isAfter=Xde;fe.isBefore=Jde;fe.isBetween=Qde;fe.isSame=Zde;fe.isSameOrAfter=ehe;fe.isSameOrBefore=the;fe.isValid=yhe;fe.lang=iV;fe.locale=rV;fe.localeData=sV;fe.max=yde;fe.min=_de;fe.parsingFlags=whe;fe.set=Qce;fe.startOf=fhe;fe.subtract=jde;fe.toArray=mhe;fe.toObject=ghe;fe.toDate=vhe;fe.toISOString=ihe;fe.inspect=she;typeof Symbol<"u"&&Symbol.for!=null&&(fe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});fe.toJSON=_he;fe.toString=rhe;fe.unix=phe;fe.valueOf=hhe;fe.creationData=bhe;fe.eraName=Ohe;fe.eraNarrow=The;fe.eraAbbr=Che;fe.eraYear=khe;fe.year=V4;fe.isLeapYear=gfe;fe.weekYear=Fhe;fe.isoWeekYear=Nhe;fe.quarter=fe.quarters=Whe;fe.month=B4;fe.daysInMonth=pfe;fe.week=fe.weeks=xfe;fe.isoWeek=fe.isoWeeks=Efe;fe.weeksInYear=Uhe;fe.weeksInWeekYear=Vhe;fe.isoWeeksInYear=$he;fe.isoWeeksInISOWeekYear=Bhe;fe.date=cV;fe.day=fe.days=Nfe;fe.weekday=$fe;fe.isoWeekday=Bfe;fe.dayOfYear=zhe;fe.hour=fe.hours=Gfe;fe.minute=fe.minutes=Hhe;fe.second=fe.seconds=Ghe;fe.millisecond=fe.milliseconds=fV;fe.utcOffset=Cde;fe.utc=Ade;fe.local=Rde;fe.parseZone=Ide;fe.hasAlignedHourOffset=Mde;fe.isDST=Dde;fe.isLocal=Fde;fe.isUtcOffset=Nde;fe.isUtc=Z4;fe.isUTC=Z4;fe.zoneAbbr=qhe;fe.zoneName=Khe;fe.dates=ps("dates accessor is deprecated. Use date instead.",cV);fe.months=ps("months accessor is deprecated. Use month instead",B4);fe.years=ps("years accessor is deprecated. Use year instead",V4);fe.zone=ps("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",kde);fe.isDSTShifted=ps("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Lde);function Xhe(e){return tn(e*1e3)}function Jhe(){return tn.apply(null,arguments).parseZone()}function dV(e){return e}var xt=NT.prototype;xt.calendar=Nce;xt.longDateFormat=Vce;xt.invalidDate=Wce;xt.ordinal=Gce;xt.preparse=dV;xt.postformat=dV;xt.relativeTime=qce;xt.pastFuture=Kce;xt.set=Lce;xt.eras=xhe;xt.erasParse=Ehe;xt.erasConvertYear=Phe;xt.erasAbbrRegex=Rhe;xt.erasNameRegex=Ahe;xt.erasNarrowRegex=Ihe;xt.months=cfe;xt.monthsShort=ffe;xt.monthsParse=hfe;xt.monthsRegex=mfe;xt.monthsShortRegex=vfe;xt.week=yfe;xt.firstDayOfYear=bfe;xt.firstDayOfWeek=Sfe;xt.weekdays=Ife;xt.weekdaysMin=Dfe;xt.weekdaysShort=Mfe;xt.weekdaysParse=Ffe;xt.weekdaysRegex=Ufe;xt.weekdaysShortRegex=Vfe;xt.weekdaysMinRegex=jfe;xt.isPM=zfe;xt.meridiem=Yfe;function Ay(e,t,n,r){var i=Da(),s=Io().set(r,t);return i[n](s,e)}function hV(e,t,n){if(Aa(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ay(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Ay(e,r,n,"month");return i}function ZT(e,t,n,r){typeof e=="boolean"?(Aa(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Aa(t)&&(n=t,t=void 0),t=t||"");var i=Da(),s=e?i._week.dow:0,o,a=[];if(n!=null)return Ay(t,(n+s)%7,r,"day");for(o=0;o<7;o++)a[o]=Ay(t,(o+s)%7,r,"day");return a}function Qhe(e,t){return hV(e,t,"months")}function Zhe(e,t){return hV(e,t,"monthsShort")}function epe(e,t,n){return ZT(e,t,n,"weekdays")}function tpe(e,t,n){return ZT(e,t,n,"weekdaysShort")}function npe(e,t,n){return ZT(e,t,n,"weekdaysMin")}Ll("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=et(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});ye.lang=ps("moment.lang is deprecated. Use moment.locale instead.",Ll);ye.langData=ps("moment.langData is deprecated. Use moment.localeData instead.",Da);var Jo=Math.abs;function rpe(){var e=this._data;return this._milliseconds=Jo(this._milliseconds),this._days=Jo(this._days),this._months=Jo(this._months),e.milliseconds=Jo(e.milliseconds),e.seconds=Jo(e.seconds),e.minutes=Jo(e.minutes),e.hours=Jo(e.hours),e.months=Jo(e.months),e.years=Jo(e.years),this}function pV(e,t,n,r){var i=Ws(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function ipe(e,t){return pV(this,e,t,1)}function spe(e,t){return pV(this,e,t,-1)}function QD(e){return e<0?Math.floor(e):Math.ceil(e)}function ope(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,s,o,a,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=QD(OE(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Qi(e/1e3),r.seconds=i%60,s=Qi(i/60),r.minutes=s%60,o=Qi(s/60),r.hours=o%24,t+=Qi(o/24),u=Qi(vV(t)),n+=u,t-=QD(OE(u)),a=Qi(n/12),n%=12,r.days=t,r.months=n,r.years=a,this}function vV(e){return e*4800/146097}function OE(e){return e*146097/4800}function ape(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=vs(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+vV(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(OE(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function lpe(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+et(this._months/12)*31536e6:NaN}function La(e){return function(){return this.as(e)}}var upe=La("ms"),cpe=La("s"),fpe=La("m"),dpe=La("h"),hpe=La("d"),ppe=La("w"),vpe=La("M"),mpe=La("Q"),gpe=La("y");function _pe(){return Ws(this)}function ype(e){return e=vs(e),this.isValid()?this[e+"s"]():NaN}function vc(e){return function(){return this.isValid()?this._data[e]:NaN}}var wpe=vc("milliseconds"),Spe=vc("seconds"),bpe=vc("minutes"),xpe=vc("hours"),Epe=vc("days"),Ppe=vc("months"),Ope=vc("years");function Tpe(){return Qi(this.days()/7)}var ta=Math.round,Af={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Cpe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function kpe(e,t,n,r){var i=Ws(e).abs(),s=ta(i.as("s")),o=ta(i.as("m")),a=ta(i.as("h")),u=ta(i.as("d")),f=ta(i.as("M")),d=ta(i.as("w")),h=ta(i.as("y")),v=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(v=v||d<=1&&["w"]||d<n.w&&["ww",d]),v=v||f<=1&&["M"]||f<n.M&&["MM",f]||h<=1&&["y"]||["yy",h],v[2]=t,v[3]=+e>0,v[4]=r,Cpe.apply(null,v)}function Ape(e){return e===void 0?ta:typeof e=="function"?(ta=e,!0):!1}function Rpe(e,t){return Af[e]===void 0?!1:t===void 0?Af[e]:(Af[e]=t,e==="s"&&(Af.ss=t-1),!0)}function Ipe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Af,i,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Af,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),s=kpe(this,!n,r,i),n&&(s=i.pastFuture(+this,s)),i.postformat(s)}var vb=Math.abs;function af(e){return(e>0)-(e<0)||+e}function y1(){if(!this.isValid())return this.localeData().invalidDate();var e=vb(this._milliseconds)/1e3,t=vb(this._days),n=vb(this._months),r,i,s,o,a=this.asSeconds(),u,f,d,h;return a?(r=Qi(e/60),i=Qi(r/60),e%=60,r%=60,s=Qi(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=a<0?"-":"",f=af(this._months)!==af(a)?"-":"",d=af(this._days)!==af(a)?"-":"",h=af(this._milliseconds)!==af(a)?"-":"",u+"P"+(s?f+s+"Y":"")+(n?f+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?h+i+"H":"")+(r?h+r+"M":"")+(e?h+o+"S":"")):"P0D"}var vt=g1.prototype;vt.isValid=Ede;vt.abs=rpe;vt.add=ipe;vt.subtract=spe;vt.as=ape;vt.asMilliseconds=upe;vt.asSeconds=cpe;vt.asMinutes=fpe;vt.asHours=dpe;vt.asDays=hpe;vt.asWeeks=ppe;vt.asMonths=vpe;vt.asQuarters=mpe;vt.asYears=gpe;vt.valueOf=lpe;vt._bubble=ope;vt.clone=_pe;vt.get=ype;vt.milliseconds=wpe;vt.seconds=Spe;vt.minutes=bpe;vt.hours=xpe;vt.days=Epe;vt.weeks=Tpe;vt.months=Ppe;vt.years=Ope;vt.humanize=Ipe;vt.toISOString=y1;vt.toString=y1;vt.toJSON=y1;vt.locale=rV;vt.localeData=sV;vt.toIsoString=ps("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",y1);vt.lang=iV;Re("X",0,0,"unix");Re("x",0,0,"valueOf");be("x",h1);be("X",efe);jt("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});jt("x",function(e,t,n){n._d=new Date(et(e))});//! moment.js
ye.version="2.29.4";Mce(tn);ye.fn=fe;ye.min=wde;ye.max=Sde;ye.now=bde;ye.utc=Io;ye.unix=Xhe;ye.months=Qhe;ye.isDate=Yv;ye.locale=Ll;ye.invalid=l1;ye.duration=Ws;ye.isMoment=Us;ye.weekdays=epe;ye.parseZone=Jhe;ye.localeData=Da;ye.isDuration=y_;ye.monthsShort=Zhe;ye.weekdaysMin=npe;ye.defineLocale=HT;ye.updateLocale=Jfe;ye.locales=Qfe;ye.weekdaysShort=tpe;ye.normalizeUnits=vs;ye.relativeTimeRounding=Ape;ye.relativeTimeThreshold=Rpe;ye.calendarFormat=Yde;ye.prototype=fe;ye.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function It(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var Mpe={};function eC(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:Mpe}var mV=Object.assign,Ry=Object.getOwnPropertyDescriptor,Po=Object.defineProperty,w1=Object.prototype,TE=[];Object.freeze(TE);var gV={};Object.freeze(gV);var Dpe=typeof Proxy<"u",Lpe=Object.toString();function _V(){Dpe||It("Proxy not available")}function yV(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Rf=function(){};function Vs(e){return typeof e=="function"}function ac(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function S1(e){return e!==null&&typeof e=="object"}function Ra(e){if(!S1(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===Lpe}function wV(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Jv(e,t,n){Po(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function SV(e,t,n){Po(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function mc(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(r){return S1(r)&&r[n]===!0}}function qd(e){return e instanceof Map}function Qv(e){return e instanceof Set}var bV=typeof Object.getOwnPropertySymbols<"u";function Fpe(e){var t=Object.keys(e);if(!bV)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(r){return w1.propertyIsEnumerable.call(e,r)})):t}var Pd=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:bV?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function xV(e){return e===null?null:typeof e=="object"?""+e:e}function Sa(e,t){return w1.hasOwnProperty.call(e,t)}var Npe=Object.getOwnPropertyDescriptors||function(t){var n={};return Pd(t).forEach(function(r){n[r]=Ry(t,r)}),n};function ZD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Upe(r.key),r)}}function tC(e,t,n){return t&&ZD(e.prototype,t),n&&ZD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(this,arguments)}function EV(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,CE(e,t)}function CE(e,t){return CE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},CE(e,t)}function mb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $pe(e,t){if(e){if(typeof e=="string")return eL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eL(e,t)}}function eL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function If(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=$pe(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bpe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Upe(e){var t=Bpe(e,"string");return typeof t=="symbol"?t:String(t)}var go=Symbol("mobx-stored-annotations");function Oo(e){function t(n,r){Zv(n,r,e)}return Object.assign(t,e)}function Zv(e,t,n){Sa(e,go)||Jv(e,go,Od({},e[go])),Kpe(n)||(e[go][t]=n)}function Vpe(e){return Sa(e,go)||Jv(e,go,Od({},e[go])),e[go]}var ze=Symbol("mobx administration"),em=function(){function e(n){n===void 0&&(n="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.batchId_=void 0,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=St.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n,this.batchId_=pe.inBatch?pe.batchId:NaN}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return zV(this)},t.reportChanged=function(){(!pe.inBatch||this.batchId_!==pe.batchId)&&(pe.stateVersion=pe.stateVersion<Number.MAX_SAFE_INTEGER?pe.stateVersion+1:Number.MIN_SAFE_INTEGER,this.batchId_=NaN),ns(),HV(this),rs()},t.toString=function(){return this.name_},e}(),nC=mc("Atom",em);function PV(e,t,n){t===void 0&&(t=Rf),n===void 0&&(n=Rf);var r=new em(e);return t!==Rf&&qve(r,t),n!==Rf&&QV(r,n),r}function jpe(e,t){return e===t}function Wpe(e,t){return cC(e,t)}function zpe(e,t){return cC(e,t,1)}function Hpe(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Iy={identity:jpe,structural:Wpe,default:Hpe,shallow:zpe};function Td(e,t,n){return rj(e)?e:Array.isArray(e)?ar.array(e,{name:n}):Ra(e)?ar.object(e,void 0,{name:n}):qd(e)?ar.map(e,{name:n}):Qv(e)?ar.set(e,{name:n}):typeof e=="function"&&!aC(e)&&!Ny(e)?wV(e)?Sv(e):wv(n,e):e}function Gpe(e,t,n){if(e==null||bv(e)||O1(e)||_c(e)||Kd(e))return e;if(Array.isArray(e))return ar.array(e,{name:n,deep:!1});if(Ra(e))return ar.object(e,void 0,{name:n,deep:!1});if(qd(e))return ar.map(e,{name:n,deep:!1});if(Qv(e))return ar.set(e,{name:n,deep:!1})}function b1(e){return e}function Ype(e,t){return cC(e,t)?t:e}var qpe="override";function Kpe(e){return e.annotationType_===qpe}function tm(e,t){return{annotationType_:e,options_:t,make_:Xpe,extend_:Jpe}}function Xpe(e,t,n,r){var i;if((i=this.options_)!=null&&i.bound)return this.extend_(e,t,n,!1)===null?0:1;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if(aC(n.value))return 1;var s=OV(e,this,t,n,!1);return Po(r,t,s),2}function Jpe(e,t,n,r){var i=OV(e,this,t,n);return e.defineProperty_(t,i,r)}function Qpe(e,t,n,r){t.annotationType_,r.value}function OV(e,t,n,r,i){var s,o,a,u,f,d,h;i===void 0&&(i=pe.safeDescriptors),Qpe(e,t,n,r);var v=r.value;if((s=t.options_)!=null&&s.bound){var m;v=v.bind((m=e.proxy_)!=null?m:e.target_)}return{value:Cd((o=(a=t.options_)==null?void 0:a.name)!=null?o:n.toString(),v,(u=(f=t.options_)==null?void 0:f.autoAction)!=null?u:!1,(d=t.options_)!=null&&d.bound?(h=e.proxy_)!=null?h:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function TV(e,t){return{annotationType_:e,options_:t,make_:Zpe,extend_:eve}}function Zpe(e,t,n,r){var i;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!Sa(e.target_,t)||!Ny(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(Ny(n.value))return 1;var s=CV(e,this,t,n,!1,!1);return Po(r,t,s),2}function eve(e,t,n,r){var i,s=CV(e,this,t,n,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,s,r)}function tve(e,t,n,r){t.annotationType_,r.value}function CV(e,t,n,r,i,s){s===void 0&&(s=pe.safeDescriptors),tve(e,t,n,r);var o=r.value;if(Ny(o)||(o=Sv(o)),i){var a;o=o.bind((a=e.proxy_)!=null?a:e.target_),o.isMobXFlow=!0}return{value:o,configurable:s?e.isPlainObject_:!0,enumerable:!1,writable:!s}}function rC(e,t){return{annotationType_:e,options_:t,make_:nve,extend_:rve}}function nve(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function rve(e,t,n,r){return ive(e,this,t,n),e.defineComputedProperty_(t,Od({},this.options_,{get:n.get,set:n.set}),r)}function ive(e,t,n,r){t.annotationType_,r.get}function x1(e,t){return{annotationType_:e,options_:t,make_:sve,extend_:ove}}function sve(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function ove(e,t,n,r){var i,s;return ave(e,this),e.defineObservableProperty_(t,n.value,(i=(s=this.options_)==null?void 0:s.enhancer)!=null?i:Td,r)}function ave(e,t,n,r){t.annotationType_}var lve="true",uve=kV();function kV(e){return{annotationType_:lve,options_:e,make_:cve,extend_:fve}}function cve(e,t,n,r){var i,s;if(n.get)return E1.make_(e,t,n,r);if(n.set){var o=Cd(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:pe.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(Po(r,t,{configurable:!0,set:o}),2)}if(r!==e.target_&&typeof n.value=="function"){var a;if(wV(n.value)){var u,f=(u=this.options_)!=null&&u.autoBind?Sv.bound:Sv;return f.make_(e,t,n,r)}var d=(a=this.options_)!=null&&a.autoBind?wv.bound:wv;return d.make_(e,t,n,r)}var h=((i=this.options_)==null?void 0:i.deep)===!1?ar.ref:ar;if(typeof n.value=="function"&&(s=this.options_)!=null&&s.autoBind){var v;n.value=n.value.bind((v=e.proxy_)!=null?v:e.target_)}return h.make_(e,t,n,r)}function fve(e,t,n,r){var i,s;if(n.get)return E1.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:pe.safeDescriptors?e.isPlainObject_:!0,set:Cd(t.toString(),n.set)},r);if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var o;n.value=n.value.bind((o=e.proxy_)!=null?o:e.target_)}var a=((s=this.options_)==null?void 0:s.deep)===!1?ar.ref:ar;return a.extend_(e,t,n,r)}var dve="observable",hve="observable.ref",pve="observable.shallow",vve="observable.struct",AV={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(AV);function Og(e){return e||AV}var RV=x1(dve),mve=x1(hve,{enhancer:b1}),gve=x1(pve,{enhancer:Gpe}),_ve=x1(vve,{enhancer:Ype}),IV=Oo(RV);function Tg(e){return e.deep===!0?Td:e.deep===!1?b1:wve(e.defaultDecorator)}function yve(e){var t;return e?(t=e.defaultDecorator)!=null?t:kV(e):void 0}function wve(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:Td}function MV(e,t,n){if(ac(t)){Zv(e,t,RV);return}return rj(e)?e:Ra(e)?ar.object(e,t,n):Array.isArray(e)?ar.array(e,t):qd(e)?ar.map(e,t):Qv(e)?ar.set(e,t):typeof e=="object"&&e!==null?e:ar.box(e,t)}mV(MV,IV);var Sve={box:function(t,n){var r=Og(n);return new Jf(t,Tg(r),r.name,!0,r.equals)},array:function(t,n){var r=Og(n);return(pe.useProxies===!1||r.proxy===!1?mme:ome)(t,Tg(r),r.name)},map:function(t,n){var r=Og(n);return new aj(t,Tg(r),r.name)},set:function(t,n){var r=Og(n);return new cj(t,Tg(r),r.name)},object:function(t,n,r){return Jl(function(){return ej(pe.useProxies===!1||(r==null?void 0:r.proxy)===!1?im({},r):nme({},r),t,n)})},ref:Oo(mve),shallow:Oo(gve),deep:IV,struct:Oo(_ve)},ar=mV(MV,Sve),DV="computed",bve="computed.struct",LV=rC(DV),xve=rC(bve,{equals:Iy.structural}),E1=function(t,n){if(ac(n))return Zv(t,n,LV);if(Ra(t))return Oo(rC(DV,t));var r=Ra(n)?n:{};return r.get=t,r.name||(r.name=t.name||""),new yv(r)};Object.assign(E1,LV);E1.struct=Oo(xve);var tL,nL,My=0,Eve=1,Pve=(tL=(nL=Ry(function(){},"name"))==null?void 0:nL.configurable)!=null?tL:!1,rL={value:"action",configurable:!0,writable:!1,enumerable:!1};function Cd(e,t,n,r){n===void 0&&(n=!1);function i(){return Ove(e,n,t,r||this,arguments)}return i.isMobxAction=!0,Pve&&(rL.value=e,Po(i,"name",rL)),i}function Ove(e,t,n,r,i){var s=Tve(e,t);try{return n.apply(r,i)}catch(o){throw s.error_=o,o}finally{Cve(s)}}function Tve(e,t,n,r){var i=!1,s=0,o=pe.trackingDerivation,a=!t||!o;ns();var u=pe.allowStateChanges;a&&(gc(),u=iC(!0));var f=oC(!0),d={runAsAction_:a,prevDerivation_:o,prevAllowStateChanges_:u,prevAllowStateReads_:f,notifySpy_:i,startTime_:s,actionId_:Eve++,parentActionId_:My};return My=d.actionId_,d}function Cve(e){My!==e.actionId_&&It(30),My=e.parentActionId_,e.error_!==void 0&&(pe.suppressReactionErrors=!0),sC(e.prevAllowStateChanges_),Rp(e.prevAllowStateReads_),rs(),e.runAsAction_&&ba(e.prevDerivation_),pe.suppressReactionErrors=!1}function iC(e){var t=pe.allowStateChanges;return pe.allowStateChanges=e,t}function sC(e){pe.allowStateChanges=e}var FV;FV=Symbol.toPrimitive;var Jf=function(e){EV(t,e);function t(r,i,s,o,a){var u;return s===void 0&&(s="ObservableValue"),a===void 0&&(a=Iy.default),u=e.call(this,s)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=i,u.name_=s,u.equals=a,u.value_=i(r,void 0,s),u}var n=t.prototype;return n.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},n.set=function(i){this.value_,i=this.prepareNewValue_(i),i!==pe.UNCHANGED&&this.setNewValue_(i)},n.prepareNewValue_=function(i){if(Zi(this)){var s=es(this,{object:this,type:To,newValue:i});if(!s)return pe.UNCHANGED;i=s.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?pe.UNCHANGED:i},n.setNewValue_=function(i){var s=this.value_;this.value_=i,this.reportChanged(),Ls(this)&&Fs(this,{type:To,object:this,newValue:i,oldValue:s})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(i){return nm(this,i)},n.observe_=function(i,s){return s&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:To,newValue:this.value_,oldValue:void 0}),rm(this,i)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return xV(this.get())},n[FV]=function(){return this.valueOf()},t}(em),NV;NV=Symbol.toPrimitive;var yv=function(){function e(n){this.dependenciesState_=St.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=St.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Ly(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Dy.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||It(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=Cd("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Iy.structural:Iy.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Mve(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing_&&It(32,this.name_,this.derivation),pe.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)kE(this)&&(this.warnAboutUntrackedRead_(),ns(),this.value_=this.computeValue_(!1),rs());else if(zV(this),kE(this)){var r=pe.trackingContext;this.keepAlive_&&!r&&(pe.trackingContext=this),this.trackAndCompute()&&Ive(this),pe.trackingContext=r}var i=this.value_;if(S_(i))throw i.cause;return i},t.set=function(r){if(this.setter_){this.isRunningSetter_&&It(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter_=!1}}else It(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,i=this.dependenciesState_===St.NOT_TRACKING_,s=this.computeValue_(!0),o=i||S_(r)||S_(s)||!this.equals_(r,s);return o&&(this.value_=s),o},t.computeValue_=function(r){this.isComputing_=!0;var i=iC(!1),s;if(r)s=$V(this,this.derivation,this.scope_);else if(pe.disableErrorBoundaries===!0)s=this.derivation.call(this.scope_);else try{s=this.derivation.call(this.scope_)}catch(o){s=new Ly(o)}return sC(i),this.isComputing_=!1,s},t.suspend_=function(){this.keepAlive_||(AE(this),this.value_=void 0)},t.observe_=function(r,i){var s=this,o=!0,a=void 0;return Wve(function(){var u=s.get();if(!o||i){var f=gc();r({observableKind:"computed",debugObjectName:s.name_,type:To,object:s,newValue:u,oldValue:a}),ba(f)}o=!1,a=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return xV(this.get())},t[NV]=function(){return this.valueOf()},e}(),P1=mc("ComputedValue",yv),St;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(St||(St={}));var Dy;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Dy||(Dy={}));var Ly=function(t){this.cause=void 0,this.cause=t};function S_(e){return e instanceof Ly}function kE(e){switch(e.dependenciesState_){case St.UP_TO_DATE_:return!1;case St.NOT_TRACKING_:case St.STALE_:return!0;case St.POSSIBLY_STALE_:{for(var t=oC(!0),n=gc(),r=e.observing_,i=r.length,s=0;s<i;s++){var o=r[s];if(P1(o)){if(pe.disableErrorBoundaries)o.get();else try{o.get()}catch{return ba(n),Rp(t),!0}if(e.dependenciesState_===St.STALE_)return ba(n),Rp(t),!0}}return UV(e),ba(n),Rp(t),!1}}}function $V(e,t,n){var r=oC(!0);UV(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++pe.runId;var i=pe.trackingDerivation;pe.trackingDerivation=e,pe.inBatch++;var s;if(pe.disableErrorBoundaries===!0)s=t.call(n);else try{s=t.call(n)}catch(o){s=new Ly(o)}return pe.inBatch--,pe.trackingDerivation=i,kve(e),Rp(r),s}function kve(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=St.UP_TO_DATE_,i=0,s=e.unboundDepsCount_,o=0;o<s;o++){var a=n[o];a.diffValue_===0&&(a.diffValue_=1,i!==o&&(n[i]=a),i++),a.dependenciesState_>r&&(r=a.dependenciesState_)}for(n.length=i,e.newObserving_=null,s=t.length;s--;){var u=t[s];u.diffValue_===0&&jV(u,e),u.diffValue_=0}for(;i--;){var f=n[i];f.diffValue_===1&&(f.diffValue_=0,Rve(f,e))}r!==St.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function AE(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)jV(t[n],e);e.dependenciesState_=St.NOT_TRACKING_}function BV(e){var t=gc();try{return e()}finally{ba(t)}}function gc(){var e=pe.trackingDerivation;return pe.trackingDerivation=null,e}function ba(e){pe.trackingDerivation=e}function oC(e){var t=pe.allowStateReads;return pe.allowStateReads=e,t}function Rp(e){pe.allowStateReads=e}function UV(e){if(e.dependenciesState_!==St.UP_TO_DATE_){e.dependenciesState_=St.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=St.UP_TO_DATE_}}var b_=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.batchId=Number.MIN_SAFE_INTEGER,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0,this.stateVersion=Number.MIN_SAFE_INTEGER},x_=!0,VV=!1,pe=function(){var e=eC();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(x_=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new b_().version&&(x_=!1),x_?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new b_):(setTimeout(function(){VV||It(35)},1),new b_)}();function Ave(){if((pe.pendingReactions.length||pe.inBatch||pe.isRunningReactions)&&It(36),VV=!0,x_){var e=eC();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),pe=new b_}}function Rve(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function jV(e,t){e.observers_.delete(t),e.observers_.size===0&&WV(e)}function WV(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,pe.pendingUnobservations.push(e))}function ns(){pe.inBatch===0&&(pe.batchId=pe.batchId<Number.MAX_SAFE_INTEGER?pe.batchId+1:Number.MIN_SAFE_INTEGER),pe.inBatch++}function rs(){if(--pe.inBatch===0){GV();for(var e=pe.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,n.observers_.size===0&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof yv&&n.suspend_())}pe.pendingUnobservations=[]}}function zV(e){var t=pe.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&pe.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_):(e.observers_.size===0&&pe.inBatch>0&&WV(e),!1)}function HV(e){e.lowestObserverState_!==St.STALE_&&(e.lowestObserverState_=St.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===St.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=St.STALE_}))}function Ive(e){e.lowestObserverState_!==St.STALE_&&(e.lowestObserverState_=St.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===St.POSSIBLY_STALE_?t.dependenciesState_=St.STALE_:t.dependenciesState_===St.UP_TO_DATE_&&(e.lowestObserverState_=St.UP_TO_DATE_)}))}function Mve(e){e.lowestObserverState_===St.UP_TO_DATE_&&(e.lowestObserverState_=St.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===St.UP_TO_DATE_&&(t.dependenciesState_=St.POSSIBLY_STALE_,t.onBecomeStale_())}))}var RE=function(){function e(n,r,i,s){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=St.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Dy.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=i,this.requiresObservable_=s}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,pe.pendingReactions.push(this),GV())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){ns(),this.isScheduled_=!1;var r=pe.trackingContext;if(pe.trackingContext=this,kE(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}pe.trackingContext=r,rs()}},t.track=function(r){if(!this.isDisposed_){ns(),this.isRunning_=!0;var i=pe.trackingContext;pe.trackingContext=this;var s=$V(this,r,void 0);pe.trackingContext=i,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&AE(this),S_(s)&&this.reportExceptionInDerivation_(s.cause),rs()}},t.reportExceptionInDerivation_=function(r){var i=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(pe.disableErrorBoundaries)throw r;var s="[mobx] uncaught error in '"+this+"'";pe.suppressReactionErrors||console.error(s,r),pe.globalReactionErrorHandlers.forEach(function(o){return o(r,i)})},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(ns(),AE(this),rs()))},t.getDisposer_=function(r){var i=this,s=function o(){i.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",o)};return r==null||r.addEventListener==null||r.addEventListener("abort",s),s[ze]=this,s},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},e}(),Dve=100,IE=function(t){return t()};function GV(){pe.inBatch>0||pe.isRunningReactions||IE(Lve)}function Lve(){pe.isRunningReactions=!0;for(var e=pe.pendingReactions,t=0;e.length>0;){++t===Dve&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}pe.isRunningReactions=!1}var Fy=mc("Reaction",RE);function Fve(e){var t=IE;IE=function(r){return e(function(){return t(r)})}}function Ip(){return!1}function Nve(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var YV="action",$ve="action.bound",qV="autoAction",Bve="autoAction.bound",Uve="<unnamed action>",KV=tm(YV),Vve=tm($ve,{bound:!0}),XV=tm(qV,{autoAction:!0}),jve=tm(Bve,{autoAction:!0,bound:!0});function JV(e){var t=function(r,i){if(Vs(r))return Cd(r.name||Uve,r,e);if(Vs(i))return Cd(r,i,e);if(ac(i))return Zv(r,i,e?XV:KV);if(ac(r))return Oo(tm(e?qV:YV,{name:r,autoAction:e}))};return t}var Mf=JV(!1);Object.assign(Mf,KV);var wv=JV(!0);Object.assign(wv,XV);Mf.bound=Oo(Vve);wv.bound=Oo(jve);function aC(e){return Vs(e)&&e.isMobxAction===!0}function Wve(e,t){var n,r,i,s,o;t===void 0&&(t=gV);var a=(n=(r=t)==null?void 0:r.name)!=null?n:"Autorun",u=!t.scheduler&&!t.delay,f;if(u)f=new RE(a,function(){this.track(v)},t.onError,t.requiresObservable);else{var d=Hve(t),h=!1;f=new RE(a,function(){h||(h=!0,d(function(){h=!1,f.isDisposed_||f.track(v)}))},t.onError,t.requiresObservable)}function v(){e(f)}return(i=t)!=null&&(s=i.signal)!=null&&s.aborted||f.schedule_(),f.getDisposer_((o=t)==null?void 0:o.signal)}var zve=function(t){return t()};function Hve(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:zve}var Gve="onBO",Yve="onBUO";function qve(e,t,n){return ZV(Gve,e,t,n)}function QV(e,t,n){return ZV(Yve,e,t,n)}function ZV(e,t,n,r){var i=typeof r=="function"?kd(t,n):kd(t),s=Vs(r)?r:n,o=e+"L";return i[o]?i[o].add(s):i[o]=new Set([s]),function(){var a=i[o];a&&(a.delete(s),a.size===0&&delete i[o])}}var Kve="never",Cg="always",Xve="observed";function Y0e(e){e.isolateGlobalState===!0&&Ave();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(pe.useProxies=t===Cg?!0:t===Kve?!1:typeof Proxy<"u"),t==="ifavailable"&&(pe.verifyProxies=!0),n!==void 0){var r=n===Cg?Cg:n===Xve;pe.enforceActions=r,pe.allowStateChanges=!(r===!0||r===Cg)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(pe[i]=!!e[i])}),pe.allowStateReads=!pe.observableRequiresReaction,e.reactionScheduler&&Fve(e.reactionScheduler)}function ej(e,t,n,r){var i=Npe(t);return Jl(function(){var s=im(e,r)[ze];Pd(i).forEach(function(o){s.extend_(o,i[o],n&&o in n?n[o]:!0)})}),e}function q0e(e,t){return tj(kd(e,t))}function tj(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=Jve(e.observing_).map(tj)),t}function Jve(e){return Array.from(new Set(e))}var Qve=0;function nj(){this.message="FLOW_CANCELLED"}nj.prototype=Object.create(Error.prototype);var iL=TV("flow"),Zve=TV("flow.bound",{bound:!0}),Sv=Object.assign(function(t,n){if(ac(n))return Zv(t,n,iL);var r=t,i=r.name||"<unnamed flow>",s=function(){var a=this,u=arguments,f=++Qve,d=Mf(i+" - runid: "+f+" - init",r).apply(a,u),h,v=void 0,m=new Promise(function(y,w){var E=0;h=w;function S(O){v=void 0;var I;try{I=Mf(i+" - runid: "+f+" - yield "+E++,d.next).call(d,O)}catch(A){return w(A)}b(I)}function _(O){v=void 0;var I;try{I=Mf(i+" - runid: "+f+" - yield "+E++,d.throw).call(d,O)}catch(A){return w(A)}b(I)}function b(O){if(Vs(O==null?void 0:O.then)){O.then(b,w);return}return O.done?y(O.value):(v=Promise.resolve(O.value),v.then(S,_))}S(void 0)});return m.cancel=Mf(i+" - runid: "+f+" - cancel",function(){try{v&&sL(v);var y=d.return(void 0),w=Promise.resolve(y.value);w.then(Rf,Rf),sL(w),h(new nj)}catch(E){h(E)}}),m};return s.isMobXFlow=!0,s},iL);Sv.bound=Oo(Zve);function sL(e){Vs(e.cancel)&&e.cancel()}function Ny(e){return(e==null?void 0:e.isMobXFlow)===!0}function eme(e,t){return e?t!==void 0?bv(e)?e[ze].values_.has(t):!1:bv(e)||!!e[ze]||nC(e)||Fy(e)||P1(e):!1}function rj(e){return eme(e)}function aa(e,t){t===void 0&&(t=void 0),ns();try{return e.apply(t)}finally{rs()}}function lf(e){return e[ze]}var tme={has:function(t,n){return lf(t).has_(n)},get:function(t,n){return lf(t).get_(n)},set:function(t,n,r){var i;return ac(n)?(i=lf(t).set_(n,r,!0))!=null?i:!0:!1},deleteProperty:function(t,n){var r;return ac(n)?(r=lf(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var i;return(i=lf(t).defineProperty_(n,r))!=null?i:!0},ownKeys:function(t){return lf(t).ownKeys_()},preventExtensions:function(t){It(13)}};function nme(e,t){var n,r;return _V(),e=im(e,t),(r=(n=e[ze]).proxy_)!=null?r:n.proxy_=new Proxy(e,tme)}function Zi(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function nm(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),yV(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function es(e,t){var n=gc();try{for(var r=[].concat(e.interceptors_||[]),i=0,s=r.length;i<s&&(t=r[i](t),t&&!t.type&&It(14),!!t);i++);return t}finally{ba(n)}}function Ls(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function rm(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),yV(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Fs(e,t){var n=gc(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,s=r.length;i<s;i++)r[i](t);ba(n)}}function K0e(e,t,n){return Jl(function(){var r,i=im(e,n)[ze];(r=t)!=null||(t=Vpe(e)),Pd(t).forEach(function(s){return i.make_(s,t[s])})}),e}var gb=Symbol("mobx-keys");function rme(e,t,n){return Ra(e)?ej(e,e,t,n):(Jl(function(){var r=im(e,n)[ze];if(!e[gb]){var i=Object.getPrototypeOf(e),s=new Set([].concat(Pd(e),Pd(i)));s.delete("constructor"),s.delete(ze),Jv(i,gb,s)}e[gb].forEach(function(o){return r.make_(o,t&&o in t?t[o]:!0)})}),e)}var oL="splice",To="update",ime=1e4,sme={get:function(t,n){var r=t[ze];return n===ze?r:n==="length"?r.getArrayLength_():typeof n=="string"&&!isNaN(n)?r.get_(parseInt(n)):Sa($y,n)?$y[n]:t[n]},set:function(t,n,r){var i=t[ze];return n==="length"&&i.setArrayLength_(r),typeof n=="symbol"||isNaN(n)?t[n]=r:i.set_(parseInt(n),r),!0},preventExtensions:function(){It(15)}},lC=function(){function e(n,r,i,s){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=s,this.atom_=new em(n),this.enhancer_=function(o,a){return r(o,a,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t.intercept_=function(r){return nm(this,r)},t.observe_=function(r,i){return i===void 0&&(i=!1),i&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),rm(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&It("Out of range: "+r);var i=this.values_.length;if(r!==i)if(r>i){for(var s=new Array(r-i),o=0;o<r-i;o++)s[o]=void 0;this.spliceWithArray_(i,0,s)}else this.spliceWithArray_(r,i-r)},t.updateArrayLength_=function(r,i){r!==this.lastKnownLength_&&It(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&pj(r+i+1)},t.spliceWithArray_=function(r,i,s){var o=this;this.atom_;var a=this.values_.length;if(r===void 0?r=0:r>a?r=a:r<0&&(r=Math.max(0,a+r)),arguments.length===1?i=a-r:i==null?i=0:i=Math.max(0,Math.min(i,a-r)),s===void 0&&(s=TE),Zi(this)){var u=es(this,{object:this.proxy_,type:oL,index:r,removedCount:i,added:s});if(!u)return TE;i=u.removedCount,s=u.added}if(s=s.length===0?s:s.map(function(h){return o.enhancer_(h,void 0)}),this.legacyMode_){var f=s.length-i;this.updateArrayLength_(a,f)}var d=this.spliceItemsIntoValues_(r,i,s);return(i!==0||s.length!==0)&&this.notifyArraySplice_(r,s,d),this.dehanceValues_(d)},t.spliceItemsIntoValues_=function(r,i,s){if(s.length<ime){var o;return(o=this.values_).splice.apply(o,[r,i].concat(s))}else{var a=this.values_.slice(r,r+i),u=this.values_.slice(r+i);this.values_.length+=s.length-i;for(var f=0;f<s.length;f++)this.values_[r+f]=s[f];for(var d=0;d<u.length;d++)this.values_[r+s.length+d]=u[d];return a}},t.notifyArrayChildUpdate_=function(r,i,s){var o=!this.owned_&&Ip(),a=Ls(this),u=a||o?{observableKind:"array",object:this.proxy_,type:To,debugObjectName:this.atom_.name_,index:r,newValue:i,oldValue:s}:null;this.atom_.reportChanged(),a&&Fs(this,u)},t.notifyArraySplice_=function(r,i,s){var o=!this.owned_&&Ip(),a=Ls(this),u=a||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:oL,index:r,removed:s,added:i,removedCount:s.length,addedCount:i.length}:null;this.atom_.reportChanged(),a&&Fs(this,u)},t.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn("[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,i){var s=this.values_;if(this.legacyMode_&&r>s.length&&It(17,r,s.length),r<s.length){this.atom_;var o=s[r];if(Zi(this)){var a=es(this,{type:To,object:this.proxy_,index:r,newValue:i});if(!a)return;i=a.newValue}i=this.enhancer_(i,o);var u=i!==o;u&&(s[r]=i,this.notifyArrayChildUpdate_(r,i,o))}else{for(var f=new Array(r+1-s.length),d=0;d<f.length-1;d++)f[d]=void 0;f[f.length-1]=i,this.spliceWithArray_(s.length,0,f)}},e}();function ome(e,t,n,r){return n===void 0&&(n="ObservableArray"),r===void 0&&(r=!1),_V(),Jl(function(){var i=new lC(n,t,r,!1);SV(i.values_,ze,i);var s=new Proxy(i.values_,sme);return i.proxy_=s,e&&e.length&&i.spliceWithArray_(0,0,e),s})}var $y={clear:function(){return this.splice(0)},replace:function(t){var n=this[ze];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];var o=this[ze];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,n)}return o.spliceWithArray_(t,n,i)},spliceWithArray:function(t,n,r){return this[ze].spliceWithArray_(t,n,r)},push:function(){for(var t=this[ze],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[ze].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[ze],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return pe.trackingDerivation&&It(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){pe.trackingDerivation&&It(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[ze],r=n.dehanceValues_(n.values_).indexOf(t);return r>-1?(this.splice(r,1),!0):!1}};Un("concat",Fa);Un("flat",Fa);Un("includes",Fa);Un("indexOf",Fa);Un("join",Fa);Un("lastIndexOf",Fa);Un("slice",Fa);Un("toString",Fa);Un("toLocaleString",Fa);Un("every",Xl);Un("filter",Xl);Un("find",Xl);Un("findIndex",Xl);Un("flatMap",Xl);Un("forEach",Xl);Un("map",Xl);Un("some",Xl);Un("reduce",ij);Un("reduceRight",ij);function Un(e,t){typeof Array.prototype[e]=="function"&&($y[e]=t(e))}function Fa(e){return function(){var t=this[ze];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Xl(e){return function(t,n){var r=this,i=this[ze];i.atom_.reportObserved();var s=i.dehanceValues_(i.values_);return s[e](function(o,a){return t.call(n,o,a,r)})}}function ij(e){return function(){var t=this,n=this[ze];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(s,o,a){return i(s,o,a,t)},r[e].apply(r,arguments)}}var ame=mc("ObservableArrayAdministration",lC);function O1(e){return S1(e)&&ame(e[ze])}var sj,oj,lme={},bl="add",By="delete";sj=Symbol.iterator;oj=Symbol.toStringTag;var aj=function(){function e(n,r,i){var s=this;r===void 0&&(r=Td),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[ze]=lme,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=i,Vs(Map)||It(18),Jl(function(){s.keysAtom_=PV("ObservableMap.keys()"),s.data_=new Map,s.hasMap_=new Map,n&&s.merge(n)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var i=this;if(!pe.trackingDerivation)return this.has_(r);var s=this.hasMap_.get(r);if(!s){var o=s=new Jf(this.has_(r),b1,"ObservableMap.key?",!1);this.hasMap_.set(r,o),QV(o,function(){return i.hasMap_.delete(r)})}return s.get()},t.set=function(r,i){var s=this.has_(r);if(Zi(this)){var o=es(this,{type:s?To:bl,object:this,newValue:i,name:r});if(!o)return this;i=o.newValue}return s?this.updateValue_(r,i):this.addValue_(r,i),this},t.delete=function(r){var i=this;if(this.keysAtom_,Zi(this)){var s=es(this,{type:By,object:this,name:r});if(!s)return!1}if(this.has_(r)){var o=Ip(),a=Ls(this),u=a||o?{observableKind:"map",debugObjectName:this.name_,type:By,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return aa(function(){var f;i.keysAtom_.reportChanged(),(f=i.hasMap_.get(r))==null||f.setNewValue_(!1);var d=i.data_.get(r);d.setNewValue_(void 0),i.data_.delete(r)}),a&&Fs(this,u),!0}return!1},t.updateValue_=function(r,i){var s=this.data_.get(r);if(i=s.prepareNewValue_(i),i!==pe.UNCHANGED){var o=Ip(),a=Ls(this),u=a||o?{observableKind:"map",debugObjectName:this.name_,type:To,object:this,oldValue:s.value_,name:r,newValue:i}:null;s.setNewValue_(i),a&&Fs(this,u)}},t.addValue_=function(r,i){var s=this;this.keysAtom_,aa(function(){var f,d=new Jf(i,s.enhancer_,"ObservableMap.key",!1);s.data_.set(r,d),i=d.value_,(f=s.hasMap_.get(r))==null||f.setNewValue_(!0),s.keysAtom_.reportChanged()});var o=Ip(),a=Ls(this),u=a||o?{observableKind:"map",debugObjectName:this.name_,type:bl,object:this,name:r,newValue:i}:null;a&&Fs(this,u)},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,i=this.keys();return xv({next:function(){var o=i.next(),a=o.done,u=o.value;return{done:a,value:a?void 0:r.get(u)}}})},t.entries=function(){var r=this,i=this.keys();return xv({next:function(){var o=i.next(),a=o.done,u=o.value;return{done:a,value:a?void 0:[u,r.get(u)]}}})},t[sj]=function(){return this.entries()},t.forEach=function(r,i){for(var s=If(this),o;!(o=s()).done;){var a=o.value,u=a[0],f=a[1];r.call(i,f,u,this)}},t.merge=function(r){var i=this;return _c(r)&&(r=new Map(r)),aa(function(){Ra(r)?Fpe(r).forEach(function(s){return i.set(s,r[s])}):Array.isArray(r)?r.forEach(function(s){var o=s[0],a=s[1];return i.set(o,a)}):qd(r)?(r.constructor!==Map&&It(19,r),r.forEach(function(s,o){return i.set(o,s)})):r!=null&&It(20,r)}),this},t.clear=function(){var r=this;aa(function(){BV(function(){for(var i=If(r.keys()),s;!(s=i()).done;){var o=s.value;r.delete(o)}})})},t.replace=function(r){var i=this;return aa(function(){for(var s=ume(r),o=new Map,a=!1,u=If(i.data_.keys()),f;!(f=u()).done;){var d=f.value;if(!s.has(d)){var h=i.delete(d);if(h)a=!0;else{var v=i.data_.get(d);o.set(d,v)}}}for(var m=If(s.entries()),y;!(y=m()).done;){var w=y.value,E=w[0],S=w[1],_=i.data_.has(E);if(i.set(E,S),i.data_.has(E)){var b=i.data_.get(E);o.set(E,b),_||(a=!0)}}if(!a)if(i.data_.size!==o.size)i.keysAtom_.reportChanged();else for(var O=i.data_.keys(),I=o.keys(),A=O.next(),C=I.next();!A.done;){if(A.value!==C.value){i.keysAtom_.reportChanged();break}A=O.next(),C=I.next()}i.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,i){return rm(this,r)},t.intercept_=function(r){return nm(this,r)},tC(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:oj,get:function(){return"Map"}}]),e}(),_c=mc("ObservableMap",aj);function ume(e){if(qd(e)||_c(e))return e;if(Array.isArray(e))return new Map(e);if(Ra(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return It(21,e)}var lj,uj,cme={};lj=Symbol.iterator;uj=Symbol.toStringTag;var cj=function(){function e(n,r,i){var s=this;r===void 0&&(r=Td),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[ze]=cme,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,Vs(Set)||It(22),this.enhancer_=function(o,a){return r(o,a,i)},Jl(function(){s.atom_=PV(s.name_),n&&s.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;aa(function(){BV(function(){for(var i=If(r.data_.values()),s;!(s=i()).done;){var o=s.value;r.delete(o)}})})},t.forEach=function(r,i){for(var s=If(this),o;!(o=s()).done;){var a=o.value;r.call(i,a,a,this)}},t.add=function(r){var i=this;if(this.atom_,Zi(this)){var s=es(this,{type:bl,object:this,newValue:r});if(!s)return this}if(!this.has(r)){aa(function(){i.data_.add(i.enhancer_(r,void 0)),i.atom_.reportChanged()});var o=!1,a=Ls(this),u=a||o?{observableKind:"set",debugObjectName:this.name_,type:bl,object:this,newValue:r}:null;a&&Fs(this,u)}return this},t.delete=function(r){var i=this;if(Zi(this)){var s=es(this,{type:By,object:this,oldValue:r});if(!s)return!1}if(this.has(r)){var o=!1,a=Ls(this),u=a||o?{observableKind:"set",debugObjectName:this.name_,type:By,object:this,oldValue:r}:null;return aa(function(){i.atom_.reportChanged(),i.data_.delete(r)}),a&&Fs(this,u),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=0,i=Array.from(this.keys()),s=Array.from(this.values());return xv({next:function(){var a=r;return r+=1,a<s.length?{value:[i[a],s[a]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,i=0,s=Array.from(this.data_.values());return xv({next:function(){return i<s.length?{value:r.dehanceValue_(s[i++]),done:!1}:{done:!0}}})},t.replace=function(r){var i=this;return Kd(r)&&(r=new Set(r)),aa(function(){Array.isArray(r)?(i.clear(),r.forEach(function(s){return i.add(s)})):Qv(r)?(i.clear(),r.forEach(function(s){return i.add(s)})):r!=null&&It("Cannot initialize set from "+r)}),this},t.observe_=function(r,i){return rm(this,r)},t.intercept_=function(r){return nm(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[lj]=function(){return this.values()},tC(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:uj,get:function(){return"Set"}}]),e}(),Kd=mc("ObservableSet",cj),aL=Object.create(null),lL="remove",fj=function(){function e(n,r,i,s){r===void 0&&(r=new Map),s===void 0&&(s=uve),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=r,this.name_=i,this.defaultAnnotation_=s,this.keysAtom_=new em("ObservableObject.keys"),this.isPlainObject_=Ra(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(r){return this.values_.get(r).get()},t.setObservablePropValue_=function(r,i){var s=this.values_.get(r);if(s instanceof yv)return s.set(i),!0;if(Zi(this)){var o=es(this,{type:To,object:this.proxy_||this.target_,name:r,newValue:i});if(!o)return null;i=o.newValue}if(i=s.prepareNewValue_(i),i!==pe.UNCHANGED){var a=Ls(this),u=!1,f=a||u?{type:To,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:s.value_,name:r,newValue:i}:null;s.setNewValue_(i),a&&Fs(this,f)}return!0},t.get_=function(r){return pe.trackingDerivation&&!Sa(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,i,s){return s===void 0&&(s=!1),Sa(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,i):s?Reflect.set(this.target_,r,i):(this.target_[r]=i,!0):this.extend_(r,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,s)},t.has_=function(r){if(!pe.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(r);return i||(i=new Jf(r in this.target_,b1,"ObservableObject.key?",!1),this.pendingKeys_.set(r,i)),i.get()},t.make_=function(r,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(!(r in this.target_)){var s;if((s=this.target_[go])!=null&&s[r])return;It(1,i.annotationType_,this.name_+"."+r.toString())}for(var o=this.target_;o&&o!==w1;){var a=Ry(o,r);if(a){var u=i.make_(this,r,a,o);if(u===0)return;if(u===1)break}o=Object.getPrototypeOf(o)}cL(this,i,r)}},t.extend_=function(r,i,s,o){if(o===void 0&&(o=!1),s===!0&&(s=this.defaultAnnotation_),s===!1)return this.defineProperty_(r,i,o);var a=s.extend_(this,r,i,o);return a&&cL(this,s,r),a},t.defineProperty_=function(r,i,s){s===void 0&&(s=!1),this.keysAtom_;try{ns();var o=this.delete_(r);if(!o)return o;if(Zi(this)){var a=es(this,{object:this.proxy_||this.target_,name:r,type:bl,newValue:i.value});if(!a)return null;var u=a.newValue;i.value!==u&&(i=Od({},i,{value:u}))}if(s){if(!Reflect.defineProperty(this.target_,r,i))return!1}else Po(this.target_,r,i);this.notifyPropertyAddition_(r,i.value)}finally{rs()}return!0},t.defineObservableProperty_=function(r,i,s,o){o===void 0&&(o=!1),this.keysAtom_;try{ns();var a=this.delete_(r);if(!a)return a;if(Zi(this)){var u=es(this,{object:this.proxy_||this.target_,name:r,type:bl,newValue:i});if(!u)return null;i=u.newValue}var f=uL(r),d={configurable:pe.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:f.get,set:f.set};if(o){if(!Reflect.defineProperty(this.target_,r,d))return!1}else Po(this.target_,r,d);var h=new Jf(i,s,"ObservableObject.key",!1);this.values_.set(r,h),this.notifyPropertyAddition_(r,h.value_)}finally{rs()}return!0},t.defineComputedProperty_=function(r,i,s){s===void 0&&(s=!1),this.keysAtom_;try{ns();var o=this.delete_(r);if(!o)return o;if(Zi(this)){var a=es(this,{object:this.proxy_||this.target_,name:r,type:bl,newValue:void 0});if(!a)return null}i.name||(i.name="ObservableObject.key"),i.context=this.proxy_||this.target_;var u=uL(r),f={configurable:pe.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.target_,r,f))return!1}else Po(this.target_,r,f);this.values_.set(r,new yv(i)),this.notifyPropertyAddition_(r,void 0)}finally{rs()}return!0},t.delete_=function(r,i){if(i===void 0&&(i=!1),this.keysAtom_,!Sa(this.target_,r))return!0;if(Zi(this)){var s=es(this,{object:this.proxy_||this.target_,name:r,type:lL});if(!s)return null}try{var o,a;ns();var u=Ls(this),f=!1,d=this.values_.get(r),h=void 0;if(!d&&(u||f)){var v;h=(v=Ry(this.target_,r))==null?void 0:v.value}if(i){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(d&&(this.values_.delete(r),d instanceof Jf&&(h=d.value_),HV(d)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(a=o.get(r))==null||a.set(r in this.target_),u||f){var m={type:lL,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:h,name:r};u&&Fs(this,m)}}finally{rs()}return!0},t.observe_=function(r,i){return rm(this,r)},t.intercept_=function(r){return nm(this,r)},t.notifyPropertyAddition_=function(r,i){var s,o,a=Ls(this),u=!1;if(a||u){var f=a||u?{type:bl,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:i}:null;a&&Fs(this,f)}(s=this.pendingKeys_)==null||(o=s.get(r))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Pd(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function im(e,t){var n;if(Sa(e,ze))return e;var r=(n=t==null?void 0:t.name)!=null?n:"ObservableObject",i=new fj(e,new Map,String(r),yve(t));return Jv(e,ze,i),e}var fme=mc("ObservableObjectAdministration",fj);function uL(e){return aL[e]||(aL[e]={get:function(){return this[ze].getObservablePropValue_(e)},set:function(n){return this[ze].setObservablePropValue_(e,n)}})}function bv(e){return S1(e)?fme(e[ze]):!1}function cL(e,t,n){var r;(r=e.target_[go])==null||delete r[n]}var dme=hj(0),hme=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),_b=0,dj=function(){};function pme(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}pme(dj,Array.prototype);var uC=function(e,t,n){EV(r,e);function r(s,o,a,u){var f;return a===void 0&&(a="ObservableArray"),u===void 0&&(u=!1),f=e.call(this)||this,Jl(function(){var d=new lC(a,o,u,!0);d.proxy_=mb(f),SV(mb(f),ze,d),s&&s.length&&f.spliceWithArray(0,0,s),hme&&Object.defineProperty(mb(f),"0",dme)}),f}var i=r.prototype;return i.concat=function(){this[ze].atom_.reportObserved();for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];return Array.prototype.concat.apply(this.slice(),a.map(function(f){return O1(f)?f.slice():f}))},i[n]=function(){var s=this,o=0;return xv({next:function(){return o<s.length?{value:s[o++],done:!1}:{done:!0,value:void 0}}})},tC(r,[{key:"length",get:function(){return this[ze].getArrayLength_()},set:function(o){this[ze].setArrayLength_(o)}},{key:t,get:function(){return"Array"}}]),r}(dj,Symbol.toStringTag,Symbol.iterator);Object.entries($y).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&Jv(uC.prototype,t,n)});function hj(e){return{enumerable:!1,configurable:!0,get:function(){return this[ze].get_(e)},set:function(n){this[ze].set_(e,n)}}}function vme(e){Po(uC.prototype,""+e,hj(e))}function pj(e){if(e>_b){for(var t=_b;t<e+100;t++)vme(t);_b=e}}pj(1e3);function mme(e,t,n){return new uC(e,t,n)}function kd(e,t){if(typeof e=="object"&&e!==null){if(O1(e))return t!==void 0&&It(23),e[ze].atom_;if(Kd(e))return e.atom_;if(_c(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||It(25,t,ME(e)),n}if(bv(e)){if(!t)return It(26);var r=e[ze].values_.get(t);return r||It(27,t,ME(e)),r}if(nC(e)||P1(e)||Fy(e))return e}else if(Vs(e)&&Fy(e[ze]))return e[ze];It(28)}function vj(e,t){if(e||It(29),t!==void 0)return vj(kd(e,t));if(nC(e)||P1(e)||Fy(e)||_c(e)||Kd(e))return e;if(e[ze])return e[ze];It(24,e)}function ME(e,t){var n;if(t!==void 0)n=kd(e,t);else{if(aC(e))return e.name;bv(e)||_c(e)||Kd(e)?n=vj(e):n=kd(e)}return n.name_}function Jl(e){var t=gc(),n=iC(!0);ns();try{return e()}finally{rs(),sC(n),ba(t)}}var fL=w1.toString;function cC(e,t,n){return n===void 0&&(n=-1),DE(e,t,n)}function DE(e,t,n,r,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var s=typeof e;if(s!=="function"&&s!=="object"&&typeof t!="object")return!1;var o=fL.call(e);if(o!==fL.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=dL(e),t=dL(t);var a=o==="[object Array]";if(!a){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,f=t.constructor;if(u!==f&&!(Vs(u)&&u instanceof u&&Vs(f)&&f instanceof f)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),r=r||[],i=i||[];for(var d=r.length;d--;)if(r[d]===e)return i[d]===t;if(r.push(e),i.push(t),a){if(d=e.length,d!==t.length)return!1;for(;d--;)if(!DE(e[d],t[d],n-1,r,i))return!1}else{var h=Object.keys(e),v;if(d=h.length,Object.keys(t).length!==d)return!1;for(;d--;)if(v=h[d],!(Sa(t,v)&&DE(e[v],t[v],n-1,r,i)))return!1}return r.pop(),i.pop(),!0}function dL(e){return O1(e)?e.slice():qd(e)||_c(e)||Qv(e)||Kd(e)?Array.from(e.entries()):e}function xv(e){return e[Symbol.iterator]=gme,e}function gme(){return this}["Symbol","Map","Set"].forEach(function(e){var t=eC();typeof t[e]>"u"&&It("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Nve,extras:{getDebugName:ME},$mobx:ze});var LE=(e=>(e.Partner="Partner",e.Parent="Parent",e))(LE||{}),FE=(e=>(e.Parent="Parent",e.Partner="Partner",e.ExPartner="ExPartner",e))(FE||{});class mj{static buildPartnerEdge(t,n,r={fromEx:!1},i,s){return{id:i,source:t,target:n,targetHandle:LE.Partner,type:FE.Partner,fromEx:r.fromEx,animated:s,data:r}}static buildParentEdge(t,n,r,i){return{id:i,source:t,target:n,targetHandle:LE.Parent,type:FE.Parent,data:r}}}class Uy{constructor(t,n,r,i,s,o){K(this,"store");K(this,"id");K(this,"type");K(this,"child_id");K(this,"partner_relationship_id");K(this,"tree_id");this.store=t,this.id=n,this.type=r,this.child_id=i,this.partner_relationship_id=s,this.tree_id=o}get child(){const t=this.store.individuals.find(n=>n.id===this.child_id);if(!t)throw`child_id ${this.child_id} does not exist in individuals store`;return new nr(this.store,t.id,t.given_name,t.surname,t.isMain,t.tree_id,t.notes,t.gender,t.known_as,t.age,t.surname_at_birth,t.date_of_birth,t.place_of_birth,t.is_deceased,t.date_of_death,t.place_of_death,t.profile_image)}get partnerRelationship(){const t=this.store.partnerRelationships.find(n=>n.id===this.partner_relationship_id);if(!t)throw`partner_relationship_id ${this.partner_relationship_id} does not exist in partners store`;return new Qf(this.store,t.id,t.individual_ids,t.type)}get edge(){return mj.buildParentEdge(this.partnerRelationship.otherIndividual.id,this.child_id,{leftNode:this.partnerRelationship.mainIndividual.id,rightNode:this.partnerRelationship.otherIndividual.id},this.id)}}class Qf{constructor(t,n,r,i,s,o,a,u,f,d,h,v,m){K(this,"store");K(this,"id");K(this,"individual_ids");K(this,"type");K(this,"tree_id");K(this,"relationship_type");K(this,"other_relationship_info");K(this,"marriage_date");K(this,"marriage_location");K(this,"separating_date");K(this,"divorcing_date");K(this,"start_relationship_date");K(this,"other_relationship_start_date");K(this,"tempMainIndividual");K(this,"tempOtherIndividual");this.store=t,this.id=n,this.individual_ids=r,this.type=i,this.tree_id=s,this.relationship_type=o,this.other_relationship_info=a,this.marriage_date=u,this.marriage_location=f,this.separating_date=d,this.divorcing_date=h,this.start_relationship_date=v,this.other_relationship_start_date=m}get individuals(){return this.individual_ids.map(t=>this.store.individuals.find(n=>n.id===t)).flatMap(t=>t?[t]:[]).map(t=>new nr(this.store,t.id,t.given_name,t.surname,t.isMain,t.tree_id,t.notes,t.gender,t.known_as,t.age,t.surname_at_birth,t.date_of_birth,t.place_of_birth,t.is_deceased,t.date_of_death,t.place_of_death,t.profile_image))}set mainIndividual(t){this.tempMainIndividual=t}get mainIndividual(){return this.individuals.find(t=>t.isMain)||this.individuals[1]}set otherIndividual(t){this.tempOtherIndividual=t}get otherIndividual(){return this.individuals.find(t=>t.id!=this.mainIndividual.id)||this.individuals[0]}getOtherIndividual(t){const n=this.individuals.find(r=>r.id!==t.id);if(!n)throw"Couldn't find ind";return n}get parentRelationships(){return this.store.parentRelationships.filter(t=>t.partner_relationship_id===this.id).map(t=>new Uy(this.store,t.id,t.type,t.child_id,t.partner_relationship_id))}get children(){return this.parentRelationships.filter(t=>t.partner_relationship_id===this.id&&!!this.store.individuals.find(n=>n.id===t.child_id)).map(t=>{const n=this.store.individuals.find(r=>r.id===t.child_id);return new nr(this.store,n.id,n.given_name,n.surname,n.isMain,n.tree_id,n.notes,n.gender,n.known_as,n.age,n.surname_at_birth,n.date_of_birth,n.place_of_birth,n.is_deceased,n.date_of_death,n.place_of_death,n.profile_image)}).sort((t,n)=>!t.date_of_birth||new Date(t.date_of_birth)<new Date(n.date_of_birth)?-1:!n.date_of_birth||new Date(t.date_of_birth)>new Date(n.date_of_birth)?1:0).flatMap(t=>t?[t]:[])}get edge(){var t,n;return mj.buildPartnerEdge(((t=this.tempMainIndividual)==null?void 0:t.id)??this.mainIndividual.id,((n=this.tempOtherIndividual)==null?void 0:n.id)??this.otherIndividual.id,{fromEx:this.type===o0.Ex},this.id)}}var Vy={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */Vy.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",f=500,d="__lodash_placeholder__",h=1,v=2,m=4,y=1,w=2,E=1,S=2,_=4,b=8,O=16,I=32,A=64,C=128,P=256,M=512,D=30,V="...",Q=800,se=16,ie=1,q=2,oe=3,ue=1/0,X=9007199254740991,te=17976931348623157e292,ve=0/0,he=4294967295,we=he-1,_e=he>>>1,Ie=[["ary",C],["bind",E],["bindKey",S],["curry",b],["curryRight",O],["flip",M],["partial",I],["partialRight",A],["rearg",P]],me="[object Arguments]",Ae="[object Array]",De="[object AsyncFunction]",Be="[object Boolean]",nt="[object Date]",Xe="[object DOMException]",ut="[object Error]",Fe="[object Function]",yt="[object GeneratorFunction]",Mt="[object Map]",dn="[object Number]",Jn="[object Null]",Yt="[object Object]",Gr="[object Promise]",Li="[object Proxy]",qt="[object RegExp]",Wt="[object Set]",Me="[object String]",Ye="[object Symbol]",Dt="[object Undefined]",Et="[object WeakMap]",Cr="[object WeakSet]",ht="[object ArrayBuffer]",it="[object DataView]",Tn="[object Float32Array]",Cn="[object Float64Array]",kr="[object Int8Array]",Fi="[object Int16Array]",He="[object Int32Array]",mt="[object Uint8Array]",Pt="[object Uint8ClampedArray]",Vn="[object Uint16Array]",cr="[object Uint32Array]",Jd=/\b__p \+= '';/g,Ni=/\b(__p \+=) '' \+/g,yc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,tu=/&(?:amp|lt|gt|quot|#39);/g,Hs=/[&<>"']/g,nu=RegExp(tu.source),Ar=RegExp(Hs.source),ru=/<%-([\s\S]+?)%>/g,iu=/<%([\s\S]+?)%>/g,$a=/<%=([\s\S]+?)%>/g,Do=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qd=/^\w*$/,ci=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,su=/[\\^$.*+?()[\]{}|]/g,Zd=RegExp(su.source),ou=/^\s+/,wc=/\s/,au=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fr=/\{\n\/\* \[wrapped with (.+)\] \*/,eh=/,? & /,th=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nh=/[()=,{}\[\]\/\s]/,rh=/\\(\\)?/g,ih=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kn=/\w*$/,sh=/^[-+]0x[0-9a-f]+$/i,oh=/^0b[01]+$/i,ah=/^\[object .+?Constructor\]$/,lh=/^0o[0-7]+$/i,uh=/^(?:0|[1-9]\d*)$/,ms=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gs=/($^)/,ch=/['\n\r\u2028\u2029\\]/g,gs="\\ud800-\\udfff",lu="\\u0300-\\u036f",fh="\\ufe20-\\ufe2f",_s="\\u20d0-\\u20ff",uu=lu+fh+_s,Sc="\\u2700-\\u27bf",fi="a-z\\xdf-\\xf6\\xf8-\\xff",dh="\\xac\\xb1\\xd7\\xf7",bc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hh="\\u2000-\\u206f",ph=" \\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",xc="A-Z\\xc0-\\xd6\\xd8-\\xde",Ec="\\ufe0e\\ufe0f",Lo=dh+bc+hh+ph,cu="['’]",Fo="["+gs+"]",fu="["+Lo+"]",No="["+uu+"]",Pc="\\d+",Ba="["+Sc+"]",Ua="["+fi+"]",Oc="[^"+gs+Lo+Pc+Sc+fi+xc+"]",Va="\\ud83c[\\udffb-\\udfff]",Tc="(?:"+No+"|"+Va+")",Cc="[^"+gs+"]",ja="(?:\\ud83c[\\udde6-\\uddff]){2}",Ys="[\\ud800-\\udbff][\\udc00-\\udfff]",dr="["+xc+"]",kc="\\u200d",Ac="(?:"+Ua+"|"+Oc+")",$i="(?:"+dr+"|"+Oc+")",Wa="(?:"+cu+"(?:d|ll|m|re|s|t|ve))?",Rc="(?:"+cu+"(?:D|LL|M|RE|S|T|VE))?",Ic=Tc+"?",Mc="["+Ec+"]?",za="(?:"+kc+"(?:"+[Cc,ja,Ys].join("|")+")"+Mc+Ic+")*",di="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ha="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ga=Mc+Ic+za,Ya="(?:"+[Ba,ja,Ys].join("|")+")"+Ga,Dc="(?:"+[Cc+No+"?",No,ja,Ys,Fo].join("|")+")",$o=RegExp(cu,"g"),Lc=RegExp(No,"g"),Yr=RegExp(Va+"(?="+Va+")|"+Dc+Ga,"g"),qs=RegExp([dr+"?"+Ua+"+"+Wa+"(?="+[fu,dr,"$"].join("|")+")",$i+"+"+Rc+"(?="+[fu,dr+Ac,"$"].join("|")+")",dr+"?"+Ac+"+"+Wa,dr+"+"+Rc,Ha,di,Pc,Ya].join("|"),"g"),Fc=RegExp("["+kc+gs+uu+Ec+"]"),Ks=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nc=["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"],$c=-1,Nt={};Nt[Tn]=Nt[Cn]=Nt[kr]=Nt[Fi]=Nt[He]=Nt[mt]=Nt[Pt]=Nt[Vn]=Nt[cr]=!0,Nt[me]=Nt[Ae]=Nt[ht]=Nt[Be]=Nt[it]=Nt[nt]=Nt[ut]=Nt[Fe]=Nt[Mt]=Nt[dn]=Nt[Yt]=Nt[qt]=Nt[Wt]=Nt[Me]=Nt[Et]=!1;var Lt={};Lt[me]=Lt[Ae]=Lt[ht]=Lt[it]=Lt[Be]=Lt[nt]=Lt[Tn]=Lt[Cn]=Lt[kr]=Lt[Fi]=Lt[He]=Lt[Mt]=Lt[dn]=Lt[Yt]=Lt[qt]=Lt[Wt]=Lt[Me]=Lt[Ye]=Lt[mt]=Lt[Pt]=Lt[Vn]=Lt[cr]=!0,Lt[ut]=Lt[Fe]=Lt[Et]=!1;var L={À:"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",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},j={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},T={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},F={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},H=parseFloat,re=parseInt,Oe=typeof bi=="object"&&bi&&bi.Object===Object&&bi,Ve=typeof self=="object"&&self&&self.Object===Object&&self,Te=Oe||Ve||Function("return this")(),Ee=t&&!t.nodeType&&t,je=Ee&&!0&&e&&!e.nodeType&&e,zt=je&&je.exports===Ee,pt=zt&&Oe.process,Ot=function(){try{var W=je&&je.require&&je.require("util").types;return W||pt&&pt.binding&&pt.binding("util")}catch{}}(),An=Ot&&Ot.isArrayBuffer,Rr=Ot&&Ot.isDate,Ir=Ot&&Ot.isMap,Xs=Ot&&Ot.isRegExp,vh=Ot&&Ot.isSet,du=Ot&&Ot.isTypedArray;function jn(W,J,Y){switch(Y.length){case 0:return W.call(J);case 1:return W.call(J,Y[0]);case 2:return W.call(J,Y[0],Y[1]);case 3:return W.call(J,Y[0],Y[1],Y[2])}return W.apply(J,Y)}function k5(W,J,Y,Se){for(var We=-1,Tt=W==null?0:W.length;++We<Tt;){var Rn=W[We];J(Se,Rn,Y(Rn),W)}return Se}function Bi(W,J){for(var Y=-1,Se=W==null?0:W.length;++Y<Se&&J(W[Y],Y,W)!==!1;);return W}function A5(W,J){for(var Y=W==null?0:W.length;Y--&&J(W[Y],Y,W)!==!1;);return W}function MC(W,J){for(var Y=-1,Se=W==null?0:W.length;++Y<Se;)if(!J(W[Y],Y,W))return!1;return!0}function qa(W,J){for(var Y=-1,Se=W==null?0:W.length,We=0,Tt=[];++Y<Se;){var Rn=W[Y];J(Rn,Y,W)&&(Tt[We++]=Rn)}return Tt}function am(W,J){var Y=W==null?0:W.length;return!!Y&&Bc(W,J,0)>-1}function L1(W,J,Y){for(var Se=-1,We=W==null?0:W.length;++Se<We;)if(Y(J,W[Se]))return!0;return!1}function rn(W,J){for(var Y=-1,Se=W==null?0:W.length,We=Array(Se);++Y<Se;)We[Y]=J(W[Y],Y,W);return We}function Ka(W,J){for(var Y=-1,Se=J.length,We=W.length;++Y<Se;)W[We+Y]=J[Y];return W}function F1(W,J,Y,Se){var We=-1,Tt=W==null?0:W.length;for(Se&&Tt&&(Y=W[++We]);++We<Tt;)Y=J(Y,W[We],We,W);return Y}function R5(W,J,Y,Se){var We=W==null?0:W.length;for(Se&&We&&(Y=W[--We]);We--;)Y=J(Y,W[We],We,W);return Y}function N1(W,J){for(var Y=-1,Se=W==null?0:W.length;++Y<Se;)if(J(W[Y],Y,W))return!0;return!1}var I5=$1("length");function M5(W){return W.split("")}function D5(W){return W.match(th)||[]}function DC(W,J,Y){var Se;return Y(W,function(We,Tt,Rn){if(J(We,Tt,Rn))return Se=Tt,!1}),Se}function lm(W,J,Y,Se){for(var We=W.length,Tt=Y+(Se?1:-1);Se?Tt--:++Tt<We;)if(J(W[Tt],Tt,W))return Tt;return-1}function Bc(W,J,Y){return J===J?G5(W,J,Y):lm(W,LC,Y)}function L5(W,J,Y,Se){for(var We=Y-1,Tt=W.length;++We<Tt;)if(Se(W[We],J))return We;return-1}function LC(W){return W!==W}function FC(W,J){var Y=W==null?0:W.length;return Y?U1(W,J)/Y:ve}function $1(W){return function(J){return J==null?n:J[W]}}function B1(W){return function(J){return W==null?n:W[J]}}function NC(W,J,Y,Se,We){return We(W,function(Tt,Rn,Ht){Y=Se?(Se=!1,Tt):J(Y,Tt,Rn,Ht)}),Y}function F5(W,J){var Y=W.length;for(W.sort(J);Y--;)W[Y]=W[Y].value;return W}function U1(W,J){for(var Y,Se=-1,We=W.length;++Se<We;){var Tt=J(W[Se]);Tt!==n&&(Y=Y===n?Tt:Y+Tt)}return Y}function V1(W,J){for(var Y=-1,Se=Array(W);++Y<W;)Se[Y]=J(Y);return Se}function N5(W,J){return rn(J,function(Y){return[Y,W[Y]]})}function $C(W){return W&&W.slice(0,jC(W)+1).replace(ou,"")}function hi(W){return function(J){return W(J)}}function j1(W,J){return rn(J,function(Y){return W[Y]})}function mh(W,J){return W.has(J)}function BC(W,J){for(var Y=-1,Se=W.length;++Y<Se&&Bc(J,W[Y],0)>-1;);return Y}function UC(W,J){for(var Y=W.length;Y--&&Bc(J,W[Y],0)>-1;);return Y}function $5(W,J){for(var Y=W.length,Se=0;Y--;)W[Y]===J&&++Se;return Se}var B5=B1(L),U5=B1(j);function V5(W){return"\\"+F[W]}function j5(W,J){return W==null?n:W[J]}function Uc(W){return Fc.test(W)}function W5(W){return Ks.test(W)}function z5(W){for(var J,Y=[];!(J=W.next()).done;)Y.push(J.value);return Y}function W1(W){var J=-1,Y=Array(W.size);return W.forEach(function(Se,We){Y[++J]=[We,Se]}),Y}function VC(W,J){return function(Y){return W(J(Y))}}function Xa(W,J){for(var Y=-1,Se=W.length,We=0,Tt=[];++Y<Se;){var Rn=W[Y];(Rn===J||Rn===d)&&(W[Y]=d,Tt[We++]=Y)}return Tt}function um(W){var J=-1,Y=Array(W.size);return W.forEach(function(Se){Y[++J]=Se}),Y}function H5(W){var J=-1,Y=Array(W.size);return W.forEach(function(Se){Y[++J]=[Se,Se]}),Y}function G5(W,J,Y){for(var Se=Y-1,We=W.length;++Se<We;)if(W[Se]===J)return Se;return-1}function Y5(W,J,Y){for(var Se=Y+1;Se--;)if(W[Se]===J)return Se;return Se}function Vc(W){return Uc(W)?K5(W):I5(W)}function ys(W){return Uc(W)?X5(W):M5(W)}function jC(W){for(var J=W.length;J--&&wc.test(W.charAt(J)););return J}var q5=B1(T);function K5(W){for(var J=Yr.lastIndex=0;Yr.test(W);)++J;return J}function X5(W){return W.match(Yr)||[]}function J5(W){return W.match(qs)||[]}var Q5=function W(J){J=J==null?Te:jc.defaults(Te.Object(),J,jc.pick(Te,Nc));var Y=J.Array,Se=J.Date,We=J.Error,Tt=J.Function,Rn=J.Math,Ht=J.Object,z1=J.RegExp,Z5=J.String,Ui=J.TypeError,cm=Y.prototype,eW=Tt.prototype,Wc=Ht.prototype,fm=J["__core-js_shared__"],dm=eW.toString,$t=Wc.hasOwnProperty,tW=0,WC=function(){var l=/[^.]+$/.exec(fm&&fm.keys&&fm.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),hm=Wc.toString,nW=dm.call(Ht),rW=Te._,iW=z1("^"+dm.call($t).replace(su,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pm=zt?J.Buffer:n,Ja=J.Symbol,vm=J.Uint8Array,zC=pm?pm.allocUnsafe:n,mm=VC(Ht.getPrototypeOf,Ht),HC=Ht.create,GC=Wc.propertyIsEnumerable,gm=cm.splice,YC=Ja?Ja.isConcatSpreadable:n,gh=Ja?Ja.iterator:n,hu=Ja?Ja.toStringTag:n,_m=function(){try{var l=_u(Ht,"defineProperty");return l({},"",{}),l}catch{}}(),sW=J.clearTimeout!==Te.clearTimeout&&J.clearTimeout,oW=Se&&Se.now!==Te.Date.now&&Se.now,aW=J.setTimeout!==Te.setTimeout&&J.setTimeout,ym=Rn.ceil,wm=Rn.floor,H1=Ht.getOwnPropertySymbols,lW=pm?pm.isBuffer:n,qC=J.isFinite,uW=cm.join,cW=VC(Ht.keys,Ht),In=Rn.max,hr=Rn.min,fW=Se.now,dW=J.parseInt,KC=Rn.random,hW=cm.reverse,G1=_u(J,"DataView"),_h=_u(J,"Map"),Y1=_u(J,"Promise"),zc=_u(J,"Set"),yh=_u(J,"WeakMap"),wh=_u(Ht,"create"),Sm=yh&&new yh,Hc={},pW=yu(G1),vW=yu(_h),mW=yu(Y1),gW=yu(zc),_W=yu(yh),bm=Ja?Ja.prototype:n,Sh=bm?bm.valueOf:n,XC=bm?bm.toString:n;function k(l){if(hn(l)&&!Ge(l)&&!(l instanceof st)){if(l instanceof Vi)return l;if($t.call(l,"__wrapped__"))return Jk(l)}return new Vi(l)}var Gc=function(){function l(){}return function(c){if(!an(c))return{};if(HC)return HC(c);l.prototype=c;var p=new l;return l.prototype=n,p}}();function xm(){}function Vi(l,c){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!c,this.__index__=0,this.__values__=n}k.templateSettings={escape:ru,evaluate:iu,interpolate:$a,variable:"",imports:{_:k}},k.prototype=xm.prototype,k.prototype.constructor=k,Vi.prototype=Gc(xm.prototype),Vi.prototype.constructor=Vi;function st(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=he,this.__views__=[]}function yW(){var l=new st(this.__wrapped__);return l.__actions__=qr(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=qr(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=qr(this.__views__),l}function wW(){if(this.__filtered__){var l=new st(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function SW(){var l=this.__wrapped__.value(),c=this.__dir__,p=Ge(l),g=c<0,x=p?l.length:0,R=M6(0,x,this.__views__),$=R.start,B=R.end,z=B-$,Z=g?B:$-1,ne=this.__iteratees__,le=ne.length,ge=0,Ce=hr(z,this.__takeCount__);if(!p||!g&&x==z&&Ce==z)return wk(l,this.__actions__);var Ne=[];e:for(;z--&&ge<Ce;){Z+=c;for(var Je=-1,$e=l[Z];++Je<le;){var rt=ne[Je],ct=rt.iteratee,mi=rt.type,Lr=ct($e);if(mi==q)$e=Lr;else if(!Lr){if(mi==ie)continue e;break e}}Ne[ge++]=$e}return Ne}st.prototype=Gc(xm.prototype),st.prototype.constructor=st;function pu(l){var c=-1,p=l==null?0:l.length;for(this.clear();++c<p;){var g=l[c];this.set(g[0],g[1])}}function bW(){this.__data__=wh?wh(null):{},this.size=0}function xW(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}function EW(l){var c=this.__data__;if(wh){var p=c[l];return p===u?n:p}return $t.call(c,l)?c[l]:n}function PW(l){var c=this.__data__;return wh?c[l]!==n:$t.call(c,l)}function OW(l,c){var p=this.__data__;return this.size+=this.has(l)?0:1,p[l]=wh&&c===n?u:c,this}pu.prototype.clear=bW,pu.prototype.delete=xW,pu.prototype.get=EW,pu.prototype.has=PW,pu.prototype.set=OW;function Bo(l){var c=-1,p=l==null?0:l.length;for(this.clear();++c<p;){var g=l[c];this.set(g[0],g[1])}}function TW(){this.__data__=[],this.size=0}function CW(l){var c=this.__data__,p=Em(c,l);if(p<0)return!1;var g=c.length-1;return p==g?c.pop():gm.call(c,p,1),--this.size,!0}function kW(l){var c=this.__data__,p=Em(c,l);return p<0?n:c[p][1]}function AW(l){return Em(this.__data__,l)>-1}function RW(l,c){var p=this.__data__,g=Em(p,l);return g<0?(++this.size,p.push([l,c])):p[g][1]=c,this}Bo.prototype.clear=TW,Bo.prototype.delete=CW,Bo.prototype.get=kW,Bo.prototype.has=AW,Bo.prototype.set=RW;function Uo(l){var c=-1,p=l==null?0:l.length;for(this.clear();++c<p;){var g=l[c];this.set(g[0],g[1])}}function IW(){this.size=0,this.__data__={hash:new pu,map:new(_h||Bo),string:new pu}}function MW(l){var c=Fm(this,l).delete(l);return this.size-=c?1:0,c}function DW(l){return Fm(this,l).get(l)}function LW(l){return Fm(this,l).has(l)}function FW(l,c){var p=Fm(this,l),g=p.size;return p.set(l,c),this.size+=p.size==g?0:1,this}Uo.prototype.clear=IW,Uo.prototype.delete=MW,Uo.prototype.get=DW,Uo.prototype.has=LW,Uo.prototype.set=FW;function vu(l){var c=-1,p=l==null?0:l.length;for(this.__data__=new Uo;++c<p;)this.add(l[c])}function NW(l){return this.__data__.set(l,u),this}function $W(l){return this.__data__.has(l)}vu.prototype.add=vu.prototype.push=NW,vu.prototype.has=$W;function ws(l){var c=this.__data__=new Bo(l);this.size=c.size}function BW(){this.__data__=new Bo,this.size=0}function UW(l){var c=this.__data__,p=c.delete(l);return this.size=c.size,p}function VW(l){return this.__data__.get(l)}function jW(l){return this.__data__.has(l)}function WW(l,c){var p=this.__data__;if(p instanceof Bo){var g=p.__data__;if(!_h||g.length<i-1)return g.push([l,c]),this.size=++p.size,this;p=this.__data__=new Uo(g)}return p.set(l,c),this.size=p.size,this}ws.prototype.clear=BW,ws.prototype.delete=UW,ws.prototype.get=VW,ws.prototype.has=jW,ws.prototype.set=WW;function JC(l,c){var p=Ge(l),g=!p&&wu(l),x=!p&&!g&&nl(l),R=!p&&!g&&!x&&Xc(l),$=p||g||x||R,B=$?V1(l.length,Z5):[],z=B.length;for(var Z in l)(c||$t.call(l,Z))&&!($&&(Z=="length"||x&&(Z=="offset"||Z=="parent")||R&&(Z=="buffer"||Z=="byteLength"||Z=="byteOffset")||zo(Z,z)))&&B.push(Z);return B}function QC(l){var c=l.length;return c?l[iw(0,c-1)]:n}function zW(l,c){return Nm(qr(l),mu(c,0,l.length))}function HW(l){return Nm(qr(l))}function q1(l,c,p){(p!==n&&!Ss(l[c],p)||p===n&&!(c in l))&&Vo(l,c,p)}function bh(l,c,p){var g=l[c];(!($t.call(l,c)&&Ss(g,p))||p===n&&!(c in l))&&Vo(l,c,p)}function Em(l,c){for(var p=l.length;p--;)if(Ss(l[p][0],c))return p;return-1}function GW(l,c,p,g){return Qa(l,function(x,R,$){c(g,x,p(x),$)}),g}function ZC(l,c){return l&&Qs(c,Wn(c),l)}function YW(l,c){return l&&Qs(c,Xr(c),l)}function Vo(l,c,p){c=="__proto__"&&_m?_m(l,c,{configurable:!0,enumerable:!0,value:p,writable:!0}):l[c]=p}function K1(l,c){for(var p=-1,g=c.length,x=Y(g),R=l==null;++p<g;)x[p]=R?n:kw(l,c[p]);return x}function mu(l,c,p){return l===l&&(p!==n&&(l=l<=p?l:p),c!==n&&(l=l>=c?l:c)),l}function ji(l,c,p,g,x,R){var $,B=c&h,z=c&v,Z=c&m;if(p&&($=x?p(l,g,x,R):p(l)),$!==n)return $;if(!an(l))return l;var ne=Ge(l);if(ne){if($=L6(l),!B)return qr(l,$)}else{var le=pr(l),ge=le==Fe||le==yt;if(nl(l))return xk(l,B);if(le==Yt||le==me||ge&&!x){if($=z||ge?{}:jk(l),!B)return z?E6(l,YW($,l)):x6(l,ZC($,l))}else{if(!Lt[le])return x?l:{};$=F6(l,le,B)}}R||(R=new ws);var Ce=R.get(l);if(Ce)return Ce;R.set(l,$),gA(l)?l.forEach(function($e){$.add(ji($e,c,p,$e,l,R))}):vA(l)&&l.forEach(function($e,rt){$.set(rt,ji($e,c,p,rt,l,R))});var Ne=Z?z?vw:pw:z?Xr:Wn,Je=ne?n:Ne(l);return Bi(Je||l,function($e,rt){Je&&(rt=$e,$e=l[rt]),bh($,rt,ji($e,c,p,rt,l,R))}),$}function qW(l){var c=Wn(l);return function(p){return ek(p,l,c)}}function ek(l,c,p){var g=p.length;if(l==null)return!g;for(l=Ht(l);g--;){var x=p[g],R=c[x],$=l[x];if($===n&&!(x in l)||!R($))return!1}return!0}function tk(l,c,p){if(typeof l!="function")throw new Ui(o);return kh(function(){l.apply(n,p)},c)}function xh(l,c,p,g){var x=-1,R=am,$=!0,B=l.length,z=[],Z=c.length;if(!B)return z;p&&(c=rn(c,hi(p))),g?(R=L1,$=!1):c.length>=i&&(R=mh,$=!1,c=new vu(c));e:for(;++x<B;){var ne=l[x],le=p==null?ne:p(ne);if(ne=g||ne!==0?ne:0,$&&le===le){for(var ge=Z;ge--;)if(c[ge]===le)continue e;z.push(ne)}else R(c,le,g)||z.push(ne)}return z}var Qa=Ck(Js),nk=Ck(J1,!0);function KW(l,c){var p=!0;return Qa(l,function(g,x,R){return p=!!c(g,x,R),p}),p}function Pm(l,c,p){for(var g=-1,x=l.length;++g<x;){var R=l[g],$=c(R);if($!=null&&(B===n?$===$&&!vi($):p($,B)))var B=$,z=R}return z}function XW(l,c,p,g){var x=l.length;for(p=qe(p),p<0&&(p=-p>x?0:x+p),g=g===n||g>x?x:qe(g),g<0&&(g+=x),g=p>g?0:yA(g);p<g;)l[p++]=c;return l}function rk(l,c){var p=[];return Qa(l,function(g,x,R){c(g,x,R)&&p.push(g)}),p}function Qn(l,c,p,g,x){var R=-1,$=l.length;for(p||(p=$6),x||(x=[]);++R<$;){var B=l[R];c>0&&p(B)?c>1?Qn(B,c-1,p,g,x):Ka(x,B):g||(x[x.length]=B)}return x}var X1=kk(),ik=kk(!0);function Js(l,c){return l&&X1(l,c,Wn)}function J1(l,c){return l&&ik(l,c,Wn)}function Om(l,c){return qa(c,function(p){return Ho(l[p])})}function gu(l,c){c=el(c,l);for(var p=0,g=c.length;l!=null&&p<g;)l=l[Zs(c[p++])];return p&&p==g?l:n}function sk(l,c,p){var g=c(l);return Ge(l)?g:Ka(g,p(l))}function Mr(l){return l==null?l===n?Dt:Jn:hu&&hu in Ht(l)?I6(l):H6(l)}function Q1(l,c){return l>c}function JW(l,c){return l!=null&&$t.call(l,c)}function QW(l,c){return l!=null&&c in Ht(l)}function ZW(l,c,p){return l>=hr(c,p)&&l<In(c,p)}function Z1(l,c,p){for(var g=p?L1:am,x=l[0].length,R=l.length,$=R,B=Y(R),z=1/0,Z=[];$--;){var ne=l[$];$&&c&&(ne=rn(ne,hi(c))),z=hr(ne.length,z),B[$]=!p&&(c||x>=120&&ne.length>=120)?new vu($&&ne):n}ne=l[0];var le=-1,ge=B[0];e:for(;++le<x&&Z.length<z;){var Ce=ne[le],Ne=c?c(Ce):Ce;if(Ce=p||Ce!==0?Ce:0,!(ge?mh(ge,Ne):g(Z,Ne,p))){for($=R;--$;){var Je=B[$];if(!(Je?mh(Je,Ne):g(l[$],Ne,p)))continue e}ge&&ge.push(Ne),Z.push(Ce)}}return Z}function e6(l,c,p,g){return Js(l,function(x,R,$){c(g,p(x),R,$)}),g}function Eh(l,c,p){c=el(c,l),l=Gk(l,c);var g=l==null?l:l[Zs(zi(c))];return g==null?n:jn(g,l,p)}function ok(l){return hn(l)&&Mr(l)==me}function t6(l){return hn(l)&&Mr(l)==ht}function n6(l){return hn(l)&&Mr(l)==nt}function Ph(l,c,p,g,x){return l===c?!0:l==null||c==null||!hn(l)&&!hn(c)?l!==l&&c!==c:r6(l,c,p,g,Ph,x)}function r6(l,c,p,g,x,R){var $=Ge(l),B=Ge(c),z=$?Ae:pr(l),Z=B?Ae:pr(c);z=z==me?Yt:z,Z=Z==me?Yt:Z;var ne=z==Yt,le=Z==Yt,ge=z==Z;if(ge&&nl(l)){if(!nl(c))return!1;$=!0,ne=!1}if(ge&&!ne)return R||(R=new ws),$||Xc(l)?Bk(l,c,p,g,x,R):A6(l,c,z,p,g,x,R);if(!(p&y)){var Ce=ne&&$t.call(l,"__wrapped__"),Ne=le&&$t.call(c,"__wrapped__");if(Ce||Ne){var Je=Ce?l.value():l,$e=Ne?c.value():c;return R||(R=new ws),x(Je,$e,p,g,R)}}return ge?(R||(R=new ws),R6(l,c,p,g,x,R)):!1}function i6(l){return hn(l)&&pr(l)==Mt}function ew(l,c,p,g){var x=p.length,R=x,$=!g;if(l==null)return!R;for(l=Ht(l);x--;){var B=p[x];if($&&B[2]?B[1]!==l[B[0]]:!(B[0]in l))return!1}for(;++x<R;){B=p[x];var z=B[0],Z=l[z],ne=B[1];if($&&B[2]){if(Z===n&&!(z in l))return!1}else{var le=new ws;if(g)var ge=g(Z,ne,z,l,c,le);if(!(ge===n?Ph(ne,Z,y|w,g,le):ge))return!1}}return!0}function ak(l){if(!an(l)||U6(l))return!1;var c=Ho(l)?iW:ah;return c.test(yu(l))}function s6(l){return hn(l)&&Mr(l)==qt}function o6(l){return hn(l)&&pr(l)==Wt}function a6(l){return hn(l)&&Wm(l.length)&&!!Nt[Mr(l)]}function lk(l){return typeof l=="function"?l:l==null?Jr:typeof l=="object"?Ge(l)?fk(l[0],l[1]):ck(l):AA(l)}function tw(l){if(!Ch(l))return cW(l);var c=[];for(var p in Ht(l))$t.call(l,p)&&p!="constructor"&&c.push(p);return c}function l6(l){if(!an(l))return z6(l);var c=Ch(l),p=[];for(var g in l)g=="constructor"&&(c||!$t.call(l,g))||p.push(g);return p}function nw(l,c){return l<c}function uk(l,c){var p=-1,g=Kr(l)?Y(l.length):[];return Qa(l,function(x,R,$){g[++p]=c(x,R,$)}),g}function ck(l){var c=gw(l);return c.length==1&&c[0][2]?zk(c[0][0],c[0][1]):function(p){return p===l||ew(p,l,c)}}function fk(l,c){return yw(l)&&Wk(c)?zk(Zs(l),c):function(p){var g=kw(p,l);return g===n&&g===c?Aw(p,l):Ph(c,g,y|w)}}function Tm(l,c,p,g,x){l!==c&&X1(c,function(R,$){if(x||(x=new ws),an(R))u6(l,c,$,p,Tm,g,x);else{var B=g?g(Sw(l,$),R,$+"",l,c,x):n;B===n&&(B=R),q1(l,$,B)}},Xr)}function u6(l,c,p,g,x,R,$){var B=Sw(l,p),z=Sw(c,p),Z=$.get(z);if(Z){q1(l,p,Z);return}var ne=R?R(B,z,p+"",l,c,$):n,le=ne===n;if(le){var ge=Ge(z),Ce=!ge&&nl(z),Ne=!ge&&!Ce&&Xc(z);ne=z,ge||Ce||Ne?Ge(B)?ne=B:_n(B)?ne=qr(B):Ce?(le=!1,ne=xk(z,!0)):Ne?(le=!1,ne=Ek(z,!0)):ne=[]:Ah(z)||wu(z)?(ne=B,wu(B)?ne=wA(B):(!an(B)||Ho(B))&&(ne=jk(z))):le=!1}le&&($.set(z,ne),x(ne,z,g,R,$),$.delete(z)),q1(l,p,ne)}function dk(l,c){var p=l.length;if(p)return c+=c<0?p:0,zo(c,p)?l[c]:n}function hk(l,c,p){c.length?c=rn(c,function(R){return Ge(R)?function($){return gu($,R.length===1?R[0]:R)}:R}):c=[Jr];var g=-1;c=rn(c,hi(Le()));var x=uk(l,function(R,$,B){var z=rn(c,function(Z){return Z(R)});return{criteria:z,index:++g,value:R}});return F5(x,function(R,$){return b6(R,$,p)})}function c6(l,c){return pk(l,c,function(p,g){return Aw(l,g)})}function pk(l,c,p){for(var g=-1,x=c.length,R={};++g<x;){var $=c[g],B=gu(l,$);p(B,$)&&Oh(R,el($,l),B)}return R}function f6(l){return function(c){return gu(c,l)}}function rw(l,c,p,g){var x=g?L5:Bc,R=-1,$=c.length,B=l;for(l===c&&(c=qr(c)),p&&(B=rn(l,hi(p)));++R<$;)for(var z=0,Z=c[R],ne=p?p(Z):Z;(z=x(B,ne,z,g))>-1;)B!==l&&gm.call(B,z,1),gm.call(l,z,1);return l}function vk(l,c){for(var p=l?c.length:0,g=p-1;p--;){var x=c[p];if(p==g||x!==R){var R=x;zo(x)?gm.call(l,x,1):aw(l,x)}}return l}function iw(l,c){return l+wm(KC()*(c-l+1))}function d6(l,c,p,g){for(var x=-1,R=In(ym((c-l)/(p||1)),0),$=Y(R);R--;)$[g?R:++x]=l,l+=p;return $}function sw(l,c){var p="";if(!l||c<1||c>X)return p;do c%2&&(p+=l),c=wm(c/2),c&&(l+=l);while(c);return p}function Qe(l,c){return bw(Hk(l,c,Jr),l+"")}function h6(l){return QC(Jc(l))}function p6(l,c){var p=Jc(l);return Nm(p,mu(c,0,p.length))}function Oh(l,c,p,g){if(!an(l))return l;c=el(c,l);for(var x=-1,R=c.length,$=R-1,B=l;B!=null&&++x<R;){var z=Zs(c[x]),Z=p;if(z==="__proto__"||z==="constructor"||z==="prototype")return l;if(x!=$){var ne=B[z];Z=g?g(ne,z,B):n,Z===n&&(Z=an(ne)?ne:zo(c[x+1])?[]:{})}bh(B,z,Z),B=B[z]}return l}var mk=Sm?function(l,c){return Sm.set(l,c),l}:Jr,v6=_m?function(l,c){return _m(l,"toString",{configurable:!0,enumerable:!1,value:Iw(c),writable:!0})}:Jr;function m6(l){return Nm(Jc(l))}function Wi(l,c,p){var g=-1,x=l.length;c<0&&(c=-c>x?0:x+c),p=p>x?x:p,p<0&&(p+=x),x=c>p?0:p-c>>>0,c>>>=0;for(var R=Y(x);++g<x;)R[g]=l[g+c];return R}function g6(l,c){var p;return Qa(l,function(g,x,R){return p=c(g,x,R),!p}),!!p}function Cm(l,c,p){var g=0,x=l==null?g:l.length;if(typeof c=="number"&&c===c&&x<=_e){for(;g<x;){var R=g+x>>>1,$=l[R];$!==null&&!vi($)&&(p?$<=c:$<c)?g=R+1:x=R}return x}return ow(l,c,Jr,p)}function ow(l,c,p,g){var x=0,R=l==null?0:l.length;if(R===0)return 0;c=p(c);for(var $=c!==c,B=c===null,z=vi(c),Z=c===n;x<R;){var ne=wm((x+R)/2),le=p(l[ne]),ge=le!==n,Ce=le===null,Ne=le===le,Je=vi(le);if($)var $e=g||Ne;else Z?$e=Ne&&(g||ge):B?$e=Ne&&ge&&(g||!Ce):z?$e=Ne&&ge&&!Ce&&(g||!Je):Ce||Je?$e=!1:$e=g?le<=c:le<c;$e?x=ne+1:R=ne}return hr(R,we)}function gk(l,c){for(var p=-1,g=l.length,x=0,R=[];++p<g;){var $=l[p],B=c?c($):$;if(!p||!Ss(B,z)){var z=B;R[x++]=$===0?0:$}}return R}function _k(l){return typeof l=="number"?l:vi(l)?ve:+l}function pi(l){if(typeof l=="string")return l;if(Ge(l))return rn(l,pi)+"";if(vi(l))return XC?XC.call(l):"";var c=l+"";return c=="0"&&1/l==-ue?"-0":c}function Za(l,c,p){var g=-1,x=am,R=l.length,$=!0,B=[],z=B;if(p)$=!1,x=L1;else if(R>=i){var Z=c?null:C6(l);if(Z)return um(Z);$=!1,x=mh,z=new vu}else z=c?[]:B;e:for(;++g<R;){var ne=l[g],le=c?c(ne):ne;if(ne=p||ne!==0?ne:0,$&&le===le){for(var ge=z.length;ge--;)if(z[ge]===le)continue e;c&&z.push(le),B.push(ne)}else x(z,le,p)||(z!==B&&z.push(le),B.push(ne))}return B}function aw(l,c){return c=el(c,l),l=Gk(l,c),l==null||delete l[Zs(zi(c))]}function yk(l,c,p,g){return Oh(l,c,p(gu(l,c)),g)}function km(l,c,p,g){for(var x=l.length,R=g?x:-1;(g?R--:++R<x)&&c(l[R],R,l););return p?Wi(l,g?0:R,g?R+1:x):Wi(l,g?R+1:0,g?x:R)}function wk(l,c){var p=l;return p instanceof st&&(p=p.value()),F1(c,function(g,x){return x.func.apply(x.thisArg,Ka([g],x.args))},p)}function lw(l,c,p){var g=l.length;if(g<2)return g?Za(l[0]):[];for(var x=-1,R=Y(g);++x<g;)for(var $=l[x],B=-1;++B<g;)B!=x&&(R[x]=xh(R[x]||$,l[B],c,p));return Za(Qn(R,1),c,p)}function Sk(l,c,p){for(var g=-1,x=l.length,R=c.length,$={};++g<x;){var B=g<R?c[g]:n;p($,l[g],B)}return $}function uw(l){return _n(l)?l:[]}function cw(l){return typeof l=="function"?l:Jr}function el(l,c){return Ge(l)?l:yw(l,c)?[l]:Xk(Ft(l))}var _6=Qe;function tl(l,c,p){var g=l.length;return p=p===n?g:p,!c&&p>=g?l:Wi(l,c,p)}var bk=sW||function(l){return Te.clearTimeout(l)};function xk(l,c){if(c)return l.slice();var p=l.length,g=zC?zC(p):new l.constructor(p);return l.copy(g),g}function fw(l){var c=new l.constructor(l.byteLength);return new vm(c).set(new vm(l)),c}function y6(l,c){var p=c?fw(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}function w6(l){var c=new l.constructor(l.source,kn.exec(l));return c.lastIndex=l.lastIndex,c}function S6(l){return Sh?Ht(Sh.call(l)):{}}function Ek(l,c){var p=c?fw(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}function Pk(l,c){if(l!==c){var p=l!==n,g=l===null,x=l===l,R=vi(l),$=c!==n,B=c===null,z=c===c,Z=vi(c);if(!B&&!Z&&!R&&l>c||R&&$&&z&&!B&&!Z||g&&$&&z||!p&&z||!x)return 1;if(!g&&!R&&!Z&&l<c||Z&&p&&x&&!g&&!R||B&&p&&x||!$&&x||!z)return-1}return 0}function b6(l,c,p){for(var g=-1,x=l.criteria,R=c.criteria,$=x.length,B=p.length;++g<$;){var z=Pk(x[g],R[g]);if(z){if(g>=B)return z;var Z=p[g];return z*(Z=="desc"?-1:1)}}return l.index-c.index}function Ok(l,c,p,g){for(var x=-1,R=l.length,$=p.length,B=-1,z=c.length,Z=In(R-$,0),ne=Y(z+Z),le=!g;++B<z;)ne[B]=c[B];for(;++x<$;)(le||x<R)&&(ne[p[x]]=l[x]);for(;Z--;)ne[B++]=l[x++];return ne}function Tk(l,c,p,g){for(var x=-1,R=l.length,$=-1,B=p.length,z=-1,Z=c.length,ne=In(R-B,0),le=Y(ne+Z),ge=!g;++x<ne;)le[x]=l[x];for(var Ce=x;++z<Z;)le[Ce+z]=c[z];for(;++$<B;)(ge||x<R)&&(le[Ce+p[$]]=l[x++]);return le}function qr(l,c){var p=-1,g=l.length;for(c||(c=Y(g));++p<g;)c[p]=l[p];return c}function Qs(l,c,p,g){var x=!p;p||(p={});for(var R=-1,$=c.length;++R<$;){var B=c[R],z=g?g(p[B],l[B],B,p,l):n;z===n&&(z=l[B]),x?Vo(p,B,z):bh(p,B,z)}return p}function x6(l,c){return Qs(l,_w(l),c)}function E6(l,c){return Qs(l,Uk(l),c)}function Am(l,c){return function(p,g){var x=Ge(p)?k5:GW,R=c?c():{};return x(p,l,Le(g,2),R)}}function Yc(l){return Qe(function(c,p){var g=-1,x=p.length,R=x>1?p[x-1]:n,$=x>2?p[2]:n;for(R=l.length>3&&typeof R=="function"?(x--,R):n,$&&Dr(p[0],p[1],$)&&(R=x<3?n:R,x=1),c=Ht(c);++g<x;){var B=p[g];B&&l(c,B,g,R)}return c})}function Ck(l,c){return function(p,g){if(p==null)return p;if(!Kr(p))return l(p,g);for(var x=p.length,R=c?x:-1,$=Ht(p);(c?R--:++R<x)&&g($[R],R,$)!==!1;);return p}}function kk(l){return function(c,p,g){for(var x=-1,R=Ht(c),$=g(c),B=$.length;B--;){var z=$[l?B:++x];if(p(R[z],z,R)===!1)break}return c}}function P6(l,c,p){var g=c&E,x=Th(l);function R(){var $=this&&this!==Te&&this instanceof R?x:l;return $.apply(g?p:this,arguments)}return R}function Ak(l){return function(c){c=Ft(c);var p=Uc(c)?ys(c):n,g=p?p[0]:c.charAt(0),x=p?tl(p,1).join(""):c.slice(1);return g[l]()+x}}function qc(l){return function(c){return F1(CA(TA(c).replace($o,"")),l,"")}}function Th(l){return function(){var c=arguments;switch(c.length){case 0:return new l;case 1:return new l(c[0]);case 2:return new l(c[0],c[1]);case 3:return new l(c[0],c[1],c[2]);case 4:return new l(c[0],c[1],c[2],c[3]);case 5:return new l(c[0],c[1],c[2],c[3],c[4]);case 6:return new l(c[0],c[1],c[2],c[3],c[4],c[5]);case 7:return new l(c[0],c[1],c[2],c[3],c[4],c[5],c[6])}var p=Gc(l.prototype),g=l.apply(p,c);return an(g)?g:p}}function O6(l,c,p){var g=Th(l);function x(){for(var R=arguments.length,$=Y(R),B=R,z=Kc(x);B--;)$[B]=arguments[B];var Z=R<3&&$[0]!==z&&$[R-1]!==z?[]:Xa($,z);if(R-=Z.length,R<p)return Lk(l,c,Rm,x.placeholder,n,$,Z,n,n,p-R);var ne=this&&this!==Te&&this instanceof x?g:l;return jn(ne,this,$)}return x}function Rk(l){return function(c,p,g){var x=Ht(c);if(!Kr(c)){var R=Le(p,3);c=Wn(c),p=function(B){return R(x[B],B,x)}}var $=l(c,p,g);return $>-1?x[R?c[$]:$]:n}}function Ik(l){return Wo(function(c){var p=c.length,g=p,x=Vi.prototype.thru;for(l&&c.reverse();g--;){var R=c[g];if(typeof R!="function")throw new Ui(o);if(x&&!$&&Lm(R)=="wrapper")var $=new Vi([],!0)}for(g=$?g:p;++g<p;){R=c[g];var B=Lm(R),z=B=="wrapper"?mw(R):n;z&&ww(z[0])&&z[1]==(C|b|I|P)&&!z[4].length&&z[9]==1?$=$[Lm(z[0])].apply($,z[3]):$=R.length==1&&ww(R)?$[B]():$.thru(R)}return function(){var Z=arguments,ne=Z[0];if($&&Z.length==1&&Ge(ne))return $.plant(ne).value();for(var le=0,ge=p?c[le].apply(this,Z):ne;++le<p;)ge=c[le].call(this,ge);return ge}})}function Rm(l,c,p,g,x,R,$,B,z,Z){var ne=c&C,le=c&E,ge=c&S,Ce=c&(b|O),Ne=c&M,Je=ge?n:Th(l);function $e(){for(var rt=arguments.length,ct=Y(rt),mi=rt;mi--;)ct[mi]=arguments[mi];if(Ce)var Lr=Kc($e),gi=$5(ct,Lr);if(g&&(ct=Ok(ct,g,x,Ce)),R&&(ct=Tk(ct,R,$,Ce)),rt-=gi,Ce&&rt<Z){var yn=Xa(ct,Lr);return Lk(l,c,Rm,$e.placeholder,p,ct,yn,B,z,Z-rt)}var bs=le?p:this,Yo=ge?bs[l]:l;return rt=ct.length,B?ct=G6(ct,B):Ne&&rt>1&&ct.reverse(),ne&&z<rt&&(ct.length=z),this&&this!==Te&&this instanceof $e&&(Yo=Je||Th(Yo)),Yo.apply(bs,ct)}return $e}function Mk(l,c){return function(p,g){return e6(p,l,c(g),{})}}function Im(l,c){return function(p,g){var x;if(p===n&&g===n)return c;if(p!==n&&(x=p),g!==n){if(x===n)return g;typeof p=="string"||typeof g=="string"?(p=pi(p),g=pi(g)):(p=_k(p),g=_k(g)),x=l(p,g)}return x}}function dw(l){return Wo(function(c){return c=rn(c,hi(Le())),Qe(function(p){var g=this;return l(c,function(x){return jn(x,g,p)})})})}function Mm(l,c){c=c===n?" ":pi(c);var p=c.length;if(p<2)return p?sw(c,l):c;var g=sw(c,ym(l/Vc(c)));return Uc(c)?tl(ys(g),0,l).join(""):g.slice(0,l)}function T6(l,c,p,g){var x=c&E,R=Th(l);function $(){for(var B=-1,z=arguments.length,Z=-1,ne=g.length,le=Y(ne+z),ge=this&&this!==Te&&this instanceof $?R:l;++Z<ne;)le[Z]=g[Z];for(;z--;)le[Z++]=arguments[++B];return jn(ge,x?p:this,le)}return $}function Dk(l){return function(c,p,g){return g&&typeof g!="number"&&Dr(c,p,g)&&(p=g=n),c=Go(c),p===n?(p=c,c=0):p=Go(p),g=g===n?c<p?1:-1:Go(g),d6(c,p,g,l)}}function Dm(l){return function(c,p){return typeof c=="string"&&typeof p=="string"||(c=Hi(c),p=Hi(p)),l(c,p)}}function Lk(l,c,p,g,x,R,$,B,z,Z){var ne=c&b,le=ne?$:n,ge=ne?n:$,Ce=ne?R:n,Ne=ne?n:R;c|=ne?I:A,c&=~(ne?A:I),c&_||(c&=~(E|S));var Je=[l,c,x,Ce,le,Ne,ge,B,z,Z],$e=p.apply(n,Je);return ww(l)&&Yk($e,Je),$e.placeholder=g,qk($e,l,c)}function hw(l){var c=Rn[l];return function(p,g){if(p=Hi(p),g=g==null?0:hr(qe(g),292),g&&qC(p)){var x=(Ft(p)+"e").split("e"),R=c(x[0]+"e"+(+x[1]+g));return x=(Ft(R)+"e").split("e"),+(x[0]+"e"+(+x[1]-g))}return c(p)}}var C6=zc&&1/um(new zc([,-0]))[1]==ue?function(l){return new zc(l)}:Lw;function Fk(l){return function(c){var p=pr(c);return p==Mt?W1(c):p==Wt?H5(c):N5(c,l(c))}}function jo(l,c,p,g,x,R,$,B){var z=c&S;if(!z&&typeof l!="function")throw new Ui(o);var Z=g?g.length:0;if(Z||(c&=~(I|A),g=x=n),$=$===n?$:In(qe($),0),B=B===n?B:qe(B),Z-=x?x.length:0,c&A){var ne=g,le=x;g=x=n}var ge=z?n:mw(l),Ce=[l,c,p,g,x,ne,le,R,$,B];if(ge&&W6(Ce,ge),l=Ce[0],c=Ce[1],p=Ce[2],g=Ce[3],x=Ce[4],B=Ce[9]=Ce[9]===n?z?0:l.length:In(Ce[9]-Z,0),!B&&c&(b|O)&&(c&=~(b|O)),!c||c==E)var Ne=P6(l,c,p);else c==b||c==O?Ne=O6(l,c,B):(c==I||c==(E|I))&&!x.length?Ne=T6(l,c,p,g):Ne=Rm.apply(n,Ce);var Je=ge?mk:Yk;return qk(Je(Ne,Ce),l,c)}function Nk(l,c,p,g){return l===n||Ss(l,Wc[p])&&!$t.call(g,p)?c:l}function $k(l,c,p,g,x,R){return an(l)&&an(c)&&(R.set(c,l),Tm(l,c,n,$k,R),R.delete(c)),l}function k6(l){return Ah(l)?n:l}function Bk(l,c,p,g,x,R){var $=p&y,B=l.length,z=c.length;if(B!=z&&!($&&z>B))return!1;var Z=R.get(l),ne=R.get(c);if(Z&&ne)return Z==c&&ne==l;var le=-1,ge=!0,Ce=p&w?new vu:n;for(R.set(l,c),R.set(c,l);++le<B;){var Ne=l[le],Je=c[le];if(g)var $e=$?g(Je,Ne,le,c,l,R):g(Ne,Je,le,l,c,R);if($e!==n){if($e)continue;ge=!1;break}if(Ce){if(!N1(c,function(rt,ct){if(!mh(Ce,ct)&&(Ne===rt||x(Ne,rt,p,g,R)))return Ce.push(ct)})){ge=!1;break}}else if(!(Ne===Je||x(Ne,Je,p,g,R))){ge=!1;break}}return R.delete(l),R.delete(c),ge}function A6(l,c,p,g,x,R,$){switch(p){case it:if(l.byteLength!=c.byteLength||l.byteOffset!=c.byteOffset)return!1;l=l.buffer,c=c.buffer;case ht:return!(l.byteLength!=c.byteLength||!R(new vm(l),new vm(c)));case Be:case nt:case dn:return Ss(+l,+c);case ut:return l.name==c.name&&l.message==c.message;case qt:case Me:return l==c+"";case Mt:var B=W1;case Wt:var z=g&y;if(B||(B=um),l.size!=c.size&&!z)return!1;var Z=$.get(l);if(Z)return Z==c;g|=w,$.set(l,c);var ne=Bk(B(l),B(c),g,x,R,$);return $.delete(l),ne;case Ye:if(Sh)return Sh.call(l)==Sh.call(c)}return!1}function R6(l,c,p,g,x,R){var $=p&y,B=pw(l),z=B.length,Z=pw(c),ne=Z.length;if(z!=ne&&!$)return!1;for(var le=z;le--;){var ge=B[le];if(!($?ge in c:$t.call(c,ge)))return!1}var Ce=R.get(l),Ne=R.get(c);if(Ce&&Ne)return Ce==c&&Ne==l;var Je=!0;R.set(l,c),R.set(c,l);for(var $e=$;++le<z;){ge=B[le];var rt=l[ge],ct=c[ge];if(g)var mi=$?g(ct,rt,ge,c,l,R):g(rt,ct,ge,l,c,R);if(!(mi===n?rt===ct||x(rt,ct,p,g,R):mi)){Je=!1;break}$e||($e=ge=="constructor")}if(Je&&!$e){var Lr=l.constructor,gi=c.constructor;Lr!=gi&&"constructor"in l&&"constructor"in c&&!(typeof Lr=="function"&&Lr instanceof Lr&&typeof gi=="function"&&gi instanceof gi)&&(Je=!1)}return R.delete(l),R.delete(c),Je}function Wo(l){return bw(Hk(l,n,eA),l+"")}function pw(l){return sk(l,Wn,_w)}function vw(l){return sk(l,Xr,Uk)}var mw=Sm?function(l){return Sm.get(l)}:Lw;function Lm(l){for(var c=l.name+"",p=Hc[c],g=$t.call(Hc,c)?p.length:0;g--;){var x=p[g],R=x.func;if(R==null||R==l)return x.name}return c}function Kc(l){var c=$t.call(k,"placeholder")?k:l;return c.placeholder}function Le(){var l=k.iteratee||Mw;return l=l===Mw?lk:l,arguments.length?l(arguments[0],arguments[1]):l}function Fm(l,c){var p=l.__data__;return B6(c)?p[typeof c=="string"?"string":"hash"]:p.map}function gw(l){for(var c=Wn(l),p=c.length;p--;){var g=c[p],x=l[g];c[p]=[g,x,Wk(x)]}return c}function _u(l,c){var p=j5(l,c);return ak(p)?p:n}function I6(l){var c=$t.call(l,hu),p=l[hu];try{l[hu]=n;var g=!0}catch{}var x=hm.call(l);return g&&(c?l[hu]=p:delete l[hu]),x}var _w=H1?function(l){return l==null?[]:(l=Ht(l),qa(H1(l),function(c){return GC.call(l,c)}))}:Fw,Uk=H1?function(l){for(var c=[];l;)Ka(c,_w(l)),l=mm(l);return c}:Fw,pr=Mr;(G1&&pr(new G1(new ArrayBuffer(1)))!=it||_h&&pr(new _h)!=Mt||Y1&&pr(Y1.resolve())!=Gr||zc&&pr(new zc)!=Wt||yh&&pr(new yh)!=Et)&&(pr=function(l){var c=Mr(l),p=c==Yt?l.constructor:n,g=p?yu(p):"";if(g)switch(g){case pW:return it;case vW:return Mt;case mW:return Gr;case gW:return Wt;case _W:return Et}return c});function M6(l,c,p){for(var g=-1,x=p.length;++g<x;){var R=p[g],$=R.size;switch(R.type){case"drop":l+=$;break;case"dropRight":c-=$;break;case"take":c=hr(c,l+$);break;case"takeRight":l=In(l,c-$);break}}return{start:l,end:c}}function D6(l){var c=l.match(fr);return c?c[1].split(eh):[]}function Vk(l,c,p){c=el(c,l);for(var g=-1,x=c.length,R=!1;++g<x;){var $=Zs(c[g]);if(!(R=l!=null&&p(l,$)))break;l=l[$]}return R||++g!=x?R:(x=l==null?0:l.length,!!x&&Wm(x)&&zo($,x)&&(Ge(l)||wu(l)))}function L6(l){var c=l.length,p=new l.constructor(c);return c&&typeof l[0]=="string"&&$t.call(l,"index")&&(p.index=l.index,p.input=l.input),p}function jk(l){return typeof l.constructor=="function"&&!Ch(l)?Gc(mm(l)):{}}function F6(l,c,p){var g=l.constructor;switch(c){case ht:return fw(l);case Be:case nt:return new g(+l);case it:return y6(l,p);case Tn:case Cn:case kr:case Fi:case He:case mt:case Pt:case Vn:case cr:return Ek(l,p);case Mt:return new g;case dn:case Me:return new g(l);case qt:return w6(l);case Wt:return new g;case Ye:return S6(l)}}function N6(l,c){var p=c.length;if(!p)return l;var g=p-1;return c[g]=(p>1?"& ":"")+c[g],c=c.join(p>2?", ":" "),l.replace(au,`{
/* [wrapped with `+c+`] */
`)}function $6(l){return Ge(l)||wu(l)||!!(YC&&l&&l[YC])}function zo(l,c){var p=typeof l;return c=c??X,!!c&&(p=="number"||p!="symbol"&&uh.test(l))&&l>-1&&l%1==0&&l<c}function Dr(l,c,p){if(!an(p))return!1;var g=typeof c;return(g=="number"?Kr(p)&&zo(c,p.length):g=="string"&&c in p)?Ss(p[c],l):!1}function yw(l,c){if(Ge(l))return!1;var p=typeof l;return p=="number"||p=="symbol"||p=="boolean"||l==null||vi(l)?!0:Qd.test(l)||!Do.test(l)||c!=null&&l in Ht(c)}function B6(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}function ww(l){var c=Lm(l),p=k[c];if(typeof p!="function"||!(c in st.prototype))return!1;if(l===p)return!0;var g=mw(p);return!!g&&l===g[0]}function U6(l){return!!WC&&WC in l}var V6=fm?Ho:Nw;function Ch(l){var c=l&&l.constructor,p=typeof c=="function"&&c.prototype||Wc;return l===p}function Wk(l){return l===l&&!an(l)}function zk(l,c){return function(p){return p==null?!1:p[l]===c&&(c!==n||l in Ht(p))}}function j6(l){var c=Vm(l,function(g){return p.size===f&&p.clear(),g}),p=c.cache;return c}function W6(l,c){var p=l[1],g=c[1],x=p|g,R=x<(E|S|C),$=g==C&&p==b||g==C&&p==P&&l[7].length<=c[8]||g==(C|P)&&c[7].length<=c[8]&&p==b;if(!(R||$))return l;g&E&&(l[2]=c[2],x|=p&E?0:_);var B=c[3];if(B){var z=l[3];l[3]=z?Ok(z,B,c[4]):B,l[4]=z?Xa(l[3],d):c[4]}return B=c[5],B&&(z=l[5],l[5]=z?Tk(z,B,c[6]):B,l[6]=z?Xa(l[5],d):c[6]),B=c[7],B&&(l[7]=B),g&C&&(l[8]=l[8]==null?c[8]:hr(l[8],c[8])),l[9]==null&&(l[9]=c[9]),l[0]=c[0],l[1]=x,l}function z6(l){var c=[];if(l!=null)for(var p in Ht(l))c.push(p);return c}function H6(l){return hm.call(l)}function Hk(l,c,p){return c=In(c===n?l.length-1:c,0),function(){for(var g=arguments,x=-1,R=In(g.length-c,0),$=Y(R);++x<R;)$[x]=g[c+x];x=-1;for(var B=Y(c+1);++x<c;)B[x]=g[x];return B[c]=p($),jn(l,this,B)}}function Gk(l,c){return c.length<2?l:gu(l,Wi(c,0,-1))}function G6(l,c){for(var p=l.length,g=hr(c.length,p),x=qr(l);g--;){var R=c[g];l[g]=zo(R,p)?x[R]:n}return l}function Sw(l,c){if(!(c==="constructor"&&typeof l[c]=="function")&&c!="__proto__")return l[c]}var Yk=Kk(mk),kh=aW||function(l,c){return Te.setTimeout(l,c)},bw=Kk(v6);function qk(l,c,p){var g=c+"";return bw(l,N6(g,Y6(D6(g),p)))}function Kk(l){var c=0,p=0;return function(){var g=fW(),x=se-(g-p);if(p=g,x>0){if(++c>=Q)return arguments[0]}else c=0;return l.apply(n,arguments)}}function Nm(l,c){var p=-1,g=l.length,x=g-1;for(c=c===n?g:c;++p<c;){var R=iw(p,x),$=l[R];l[R]=l[p],l[p]=$}return l.length=c,l}var Xk=j6(function(l){var c=[];return l.charCodeAt(0)===46&&c.push(""),l.replace(ci,function(p,g,x,R){c.push(x?R.replace(rh,"$1"):g||p)}),c});function Zs(l){if(typeof l=="string"||vi(l))return l;var c=l+"";return c=="0"&&1/l==-ue?"-0":c}function yu(l){if(l!=null){try{return dm.call(l)}catch{}try{return l+""}catch{}}return""}function Y6(l,c){return Bi(Ie,function(p){var g="_."+p[0];c&p[1]&&!am(l,g)&&l.push(g)}),l.sort()}function Jk(l){if(l instanceof st)return l.clone();var c=new Vi(l.__wrapped__,l.__chain__);return c.__actions__=qr(l.__actions__),c.__index__=l.__index__,c.__values__=l.__values__,c}function q6(l,c,p){(p?Dr(l,c,p):c===n)?c=1:c=In(qe(c),0);var g=l==null?0:l.length;if(!g||c<1)return[];for(var x=0,R=0,$=Y(ym(g/c));x<g;)$[R++]=Wi(l,x,x+=c);return $}function K6(l){for(var c=-1,p=l==null?0:l.length,g=0,x=[];++c<p;){var R=l[c];R&&(x[g++]=R)}return x}function X6(){var l=arguments.length;if(!l)return[];for(var c=Y(l-1),p=arguments[0],g=l;g--;)c[g-1]=arguments[g];return Ka(Ge(p)?qr(p):[p],Qn(c,1))}var J6=Qe(function(l,c){return _n(l)?xh(l,Qn(c,1,_n,!0)):[]}),Q6=Qe(function(l,c){var p=zi(c);return _n(p)&&(p=n),_n(l)?xh(l,Qn(c,1,_n,!0),Le(p,2)):[]}),Z6=Qe(function(l,c){var p=zi(c);return _n(p)&&(p=n),_n(l)?xh(l,Qn(c,1,_n,!0),n,p):[]});function ez(l,c,p){var g=l==null?0:l.length;return g?(c=p||c===n?1:qe(c),Wi(l,c<0?0:c,g)):[]}function tz(l,c,p){var g=l==null?0:l.length;return g?(c=p||c===n?1:qe(c),c=g-c,Wi(l,0,c<0?0:c)):[]}function nz(l,c){return l&&l.length?km(l,Le(c,3),!0,!0):[]}function rz(l,c){return l&&l.length?km(l,Le(c,3),!0):[]}function iz(l,c,p,g){var x=l==null?0:l.length;return x?(p&&typeof p!="number"&&Dr(l,c,p)&&(p=0,g=x),XW(l,c,p,g)):[]}function Qk(l,c,p){var g=l==null?0:l.length;if(!g)return-1;var x=p==null?0:qe(p);return x<0&&(x=In(g+x,0)),lm(l,Le(c,3),x)}function Zk(l,c,p){var g=l==null?0:l.length;if(!g)return-1;var x=g-1;return p!==n&&(x=qe(p),x=p<0?In(g+x,0):hr(x,g-1)),lm(l,Le(c,3),x,!0)}function eA(l){var c=l==null?0:l.length;return c?Qn(l,1):[]}function sz(l){var c=l==null?0:l.length;return c?Qn(l,ue):[]}function oz(l,c){var p=l==null?0:l.length;return p?(c=c===n?1:qe(c),Qn(l,c)):[]}function az(l){for(var c=-1,p=l==null?0:l.length,g={};++c<p;){var x=l[c];g[x[0]]=x[1]}return g}function tA(l){return l&&l.length?l[0]:n}function lz(l,c,p){var g=l==null?0:l.length;if(!g)return-1;var x=p==null?0:qe(p);return x<0&&(x=In(g+x,0)),Bc(l,c,x)}function uz(l){var c=l==null?0:l.length;return c?Wi(l,0,-1):[]}var cz=Qe(function(l){var c=rn(l,uw);return c.length&&c[0]===l[0]?Z1(c):[]}),fz=Qe(function(l){var c=zi(l),p=rn(l,uw);return c===zi(p)?c=n:p.pop(),p.length&&p[0]===l[0]?Z1(p,Le(c,2)):[]}),dz=Qe(function(l){var c=zi(l),p=rn(l,uw);return c=typeof c=="function"?c:n,c&&p.pop(),p.length&&p[0]===l[0]?Z1(p,n,c):[]});function hz(l,c){return l==null?"":uW.call(l,c)}function zi(l){var c=l==null?0:l.length;return c?l[c-1]:n}function pz(l,c,p){var g=l==null?0:l.length;if(!g)return-1;var x=g;return p!==n&&(x=qe(p),x=x<0?In(g+x,0):hr(x,g-1)),c===c?Y5(l,c,x):lm(l,LC,x,!0)}function vz(l,c){return l&&l.length?dk(l,qe(c)):n}var mz=Qe(nA);function nA(l,c){return l&&l.length&&c&&c.length?rw(l,c):l}function gz(l,c,p){return l&&l.length&&c&&c.length?rw(l,c,Le(p,2)):l}function _z(l,c,p){return l&&l.length&&c&&c.length?rw(l,c,n,p):l}var yz=Wo(function(l,c){var p=l==null?0:l.length,g=K1(l,c);return vk(l,rn(c,function(x){return zo(x,p)?+x:x}).sort(Pk)),g});function wz(l,c){var p=[];if(!(l&&l.length))return p;var g=-1,x=[],R=l.length;for(c=Le(c,3);++g<R;){var $=l[g];c($,g,l)&&(p.push($),x.push(g))}return vk(l,x),p}function xw(l){return l==null?l:hW.call(l)}function Sz(l,c,p){var g=l==null?0:l.length;return g?(p&&typeof p!="number"&&Dr(l,c,p)?(c=0,p=g):(c=c==null?0:qe(c),p=p===n?g:qe(p)),Wi(l,c,p)):[]}function bz(l,c){return Cm(l,c)}function xz(l,c,p){return ow(l,c,Le(p,2))}function Ez(l,c){var p=l==null?0:l.length;if(p){var g=Cm(l,c);if(g<p&&Ss(l[g],c))return g}return-1}function Pz(l,c){return Cm(l,c,!0)}function Oz(l,c,p){return ow(l,c,Le(p,2),!0)}function Tz(l,c){var p=l==null?0:l.length;if(p){var g=Cm(l,c,!0)-1;if(Ss(l[g],c))return g}return-1}function Cz(l){return l&&l.length?gk(l):[]}function kz(l,c){return l&&l.length?gk(l,Le(c,2)):[]}function Az(l){var c=l==null?0:l.length;return c?Wi(l,1,c):[]}function Rz(l,c,p){return l&&l.length?(c=p||c===n?1:qe(c),Wi(l,0,c<0?0:c)):[]}function Iz(l,c,p){var g=l==null?0:l.length;return g?(c=p||c===n?1:qe(c),c=g-c,Wi(l,c<0?0:c,g)):[]}function Mz(l,c){return l&&l.length?km(l,Le(c,3),!1,!0):[]}function Dz(l,c){return l&&l.length?km(l,Le(c,3)):[]}var Lz=Qe(function(l){return Za(Qn(l,1,_n,!0))}),Fz=Qe(function(l){var c=zi(l);return _n(c)&&(c=n),Za(Qn(l,1,_n,!0),Le(c,2))}),Nz=Qe(function(l){var c=zi(l);return c=typeof c=="function"?c:n,Za(Qn(l,1,_n,!0),n,c)});function $z(l){return l&&l.length?Za(l):[]}function Bz(l,c){return l&&l.length?Za(l,Le(c,2)):[]}function Uz(l,c){return c=typeof c=="function"?c:n,l&&l.length?Za(l,n,c):[]}function Ew(l){if(!(l&&l.length))return[];var c=0;return l=qa(l,function(p){if(_n(p))return c=In(p.length,c),!0}),V1(c,function(p){return rn(l,$1(p))})}function rA(l,c){if(!(l&&l.length))return[];var p=Ew(l);return c==null?p:rn(p,function(g){return jn(c,n,g)})}var Vz=Qe(function(l,c){return _n(l)?xh(l,c):[]}),jz=Qe(function(l){return lw(qa(l,_n))}),Wz=Qe(function(l){var c=zi(l);return _n(c)&&(c=n),lw(qa(l,_n),Le(c,2))}),zz=Qe(function(l){var c=zi(l);return c=typeof c=="function"?c:n,lw(qa(l,_n),n,c)}),Hz=Qe(Ew);function Gz(l,c){return Sk(l||[],c||[],bh)}function Yz(l,c){return Sk(l||[],c||[],Oh)}var qz=Qe(function(l){var c=l.length,p=c>1?l[c-1]:n;return p=typeof p=="function"?(l.pop(),p):n,rA(l,p)});function iA(l){var c=k(l);return c.__chain__=!0,c}function Kz(l,c){return c(l),l}function $m(l,c){return c(l)}var Xz=Wo(function(l){var c=l.length,p=c?l[0]:0,g=this.__wrapped__,x=function(R){return K1(R,l)};return c>1||this.__actions__.length||!(g instanceof st)||!zo(p)?this.thru(x):(g=g.slice(p,+p+(c?1:0)),g.__actions__.push({func:$m,args:[x],thisArg:n}),new Vi(g,this.__chain__).thru(function(R){return c&&!R.length&&R.push(n),R}))});function Jz(){return iA(this)}function Qz(){return new Vi(this.value(),this.__chain__)}function Zz(){this.__values__===n&&(this.__values__=_A(this.value()));var l=this.__index__>=this.__values__.length,c=l?n:this.__values__[this.__index__++];return{done:l,value:c}}function eH(){return this}function tH(l){for(var c,p=this;p instanceof xm;){var g=Jk(p);g.__index__=0,g.__values__=n,c?x.__wrapped__=g:c=g;var x=g;p=p.__wrapped__}return x.__wrapped__=l,c}function nH(){var l=this.__wrapped__;if(l instanceof st){var c=l;return this.__actions__.length&&(c=new st(this)),c=c.reverse(),c.__actions__.push({func:$m,args:[xw],thisArg:n}),new Vi(c,this.__chain__)}return this.thru(xw)}function rH(){return wk(this.__wrapped__,this.__actions__)}var iH=Am(function(l,c,p){$t.call(l,p)?++l[p]:Vo(l,p,1)});function sH(l,c,p){var g=Ge(l)?MC:KW;return p&&Dr(l,c,p)&&(c=n),g(l,Le(c,3))}function oH(l,c){var p=Ge(l)?qa:rk;return p(l,Le(c,3))}var aH=Rk(Qk),lH=Rk(Zk);function uH(l,c){return Qn(Bm(l,c),1)}function cH(l,c){return Qn(Bm(l,c),ue)}function fH(l,c,p){return p=p===n?1:qe(p),Qn(Bm(l,c),p)}function sA(l,c){var p=Ge(l)?Bi:Qa;return p(l,Le(c,3))}function oA(l,c){var p=Ge(l)?A5:nk;return p(l,Le(c,3))}var dH=Am(function(l,c,p){$t.call(l,p)?l[p].push(c):Vo(l,p,[c])});function hH(l,c,p,g){l=Kr(l)?l:Jc(l),p=p&&!g?qe(p):0;var x=l.length;return p<0&&(p=In(x+p,0)),zm(l)?p<=x&&l.indexOf(c,p)>-1:!!x&&Bc(l,c,p)>-1}var pH=Qe(function(l,c,p){var g=-1,x=typeof c=="function",R=Kr(l)?Y(l.length):[];return Qa(l,function($){R[++g]=x?jn(c,$,p):Eh($,c,p)}),R}),vH=Am(function(l,c,p){Vo(l,p,c)});function Bm(l,c){var p=Ge(l)?rn:uk;return p(l,Le(c,3))}function mH(l,c,p,g){return l==null?[]:(Ge(c)||(c=c==null?[]:[c]),p=g?n:p,Ge(p)||(p=p==null?[]:[p]),hk(l,c,p))}var gH=Am(function(l,c,p){l[p?0:1].push(c)},function(){return[[],[]]});function _H(l,c,p){var g=Ge(l)?F1:NC,x=arguments.length<3;return g(l,Le(c,4),p,x,Qa)}function yH(l,c,p){var g=Ge(l)?R5:NC,x=arguments.length<3;return g(l,Le(c,4),p,x,nk)}function wH(l,c){var p=Ge(l)?qa:rk;return p(l,jm(Le(c,3)))}function SH(l){var c=Ge(l)?QC:h6;return c(l)}function bH(l,c,p){(p?Dr(l,c,p):c===n)?c=1:c=qe(c);var g=Ge(l)?zW:p6;return g(l,c)}function xH(l){var c=Ge(l)?HW:m6;return c(l)}function EH(l){if(l==null)return 0;if(Kr(l))return zm(l)?Vc(l):l.length;var c=pr(l);return c==Mt||c==Wt?l.size:tw(l).length}function PH(l,c,p){var g=Ge(l)?N1:g6;return p&&Dr(l,c,p)&&(c=n),g(l,Le(c,3))}var OH=Qe(function(l,c){if(l==null)return[];var p=c.length;return p>1&&Dr(l,c[0],c[1])?c=[]:p>2&&Dr(c[0],c[1],c[2])&&(c=[c[0]]),hk(l,Qn(c,1),[])}),Um=oW||function(){return Te.Date.now()};function TH(l,c){if(typeof c!="function")throw new Ui(o);return l=qe(l),function(){if(--l<1)return c.apply(this,arguments)}}function aA(l,c,p){return c=p?n:c,c=l&&c==null?l.length:c,jo(l,C,n,n,n,n,c)}function lA(l,c){var p;if(typeof c!="function")throw new Ui(o);return l=qe(l),function(){return--l>0&&(p=c.apply(this,arguments)),l<=1&&(c=n),p}}var Pw=Qe(function(l,c,p){var g=E;if(p.length){var x=Xa(p,Kc(Pw));g|=I}return jo(l,g,c,p,x)}),uA=Qe(function(l,c,p){var g=E|S;if(p.length){var x=Xa(p,Kc(uA));g|=I}return jo(c,g,l,p,x)});function cA(l,c,p){c=p?n:c;var g=jo(l,b,n,n,n,n,n,c);return g.placeholder=cA.placeholder,g}function fA(l,c,p){c=p?n:c;var g=jo(l,O,n,n,n,n,n,c);return g.placeholder=fA.placeholder,g}function dA(l,c,p){var g,x,R,$,B,z,Z=0,ne=!1,le=!1,ge=!0;if(typeof l!="function")throw new Ui(o);c=Hi(c)||0,an(p)&&(ne=!!p.leading,le="maxWait"in p,R=le?In(Hi(p.maxWait)||0,c):R,ge="trailing"in p?!!p.trailing:ge);function Ce(yn){var bs=g,Yo=x;return g=x=n,Z=yn,$=l.apply(Yo,bs),$}function Ne(yn){return Z=yn,B=kh(rt,c),ne?Ce(yn):$}function Je(yn){var bs=yn-z,Yo=yn-Z,RA=c-bs;return le?hr(RA,R-Yo):RA}function $e(yn){var bs=yn-z,Yo=yn-Z;return z===n||bs>=c||bs<0||le&&Yo>=R}function rt(){var yn=Um();if($e(yn))return ct(yn);B=kh(rt,Je(yn))}function ct(yn){return B=n,ge&&g?Ce(yn):(g=x=n,$)}function mi(){B!==n&&bk(B),Z=0,g=z=x=B=n}function Lr(){return B===n?$:ct(Um())}function gi(){var yn=Um(),bs=$e(yn);if(g=arguments,x=this,z=yn,bs){if(B===n)return Ne(z);if(le)return bk(B),B=kh(rt,c),Ce(z)}return B===n&&(B=kh(rt,c)),$}return gi.cancel=mi,gi.flush=Lr,gi}var CH=Qe(function(l,c){return tk(l,1,c)}),kH=Qe(function(l,c,p){return tk(l,Hi(c)||0,p)});function AH(l){return jo(l,M)}function Vm(l,c){if(typeof l!="function"||c!=null&&typeof c!="function")throw new Ui(o);var p=function(){var g=arguments,x=c?c.apply(this,g):g[0],R=p.cache;if(R.has(x))return R.get(x);var $=l.apply(this,g);return p.cache=R.set(x,$)||R,$};return p.cache=new(Vm.Cache||Uo),p}Vm.Cache=Uo;function jm(l){if(typeof l!="function")throw new Ui(o);return function(){var c=arguments;switch(c.length){case 0:return!l.call(this);case 1:return!l.call(this,c[0]);case 2:return!l.call(this,c[0],c[1]);case 3:return!l.call(this,c[0],c[1],c[2])}return!l.apply(this,c)}}function RH(l){return lA(2,l)}var IH=_6(function(l,c){c=c.length==1&&Ge(c[0])?rn(c[0],hi(Le())):rn(Qn(c,1),hi(Le()));var p=c.length;return Qe(function(g){for(var x=-1,R=hr(g.length,p);++x<R;)g[x]=c[x].call(this,g[x]);return jn(l,this,g)})}),Ow=Qe(function(l,c){var p=Xa(c,Kc(Ow));return jo(l,I,n,c,p)}),hA=Qe(function(l,c){var p=Xa(c,Kc(hA));return jo(l,A,n,c,p)}),MH=Wo(function(l,c){return jo(l,P,n,n,n,c)});function DH(l,c){if(typeof l!="function")throw new Ui(o);return c=c===n?c:qe(c),Qe(l,c)}function LH(l,c){if(typeof l!="function")throw new Ui(o);return c=c==null?0:In(qe(c),0),Qe(function(p){var g=p[c],x=tl(p,0,c);return g&&Ka(x,g),jn(l,this,x)})}function FH(l,c,p){var g=!0,x=!0;if(typeof l!="function")throw new Ui(o);return an(p)&&(g="leading"in p?!!p.leading:g,x="trailing"in p?!!p.trailing:x),dA(l,c,{leading:g,maxWait:c,trailing:x})}function NH(l){return aA(l,1)}function $H(l,c){return Ow(cw(c),l)}function BH(){if(!arguments.length)return[];var l=arguments[0];return Ge(l)?l:[l]}function UH(l){return ji(l,m)}function VH(l,c){return c=typeof c=="function"?c:n,ji(l,m,c)}function jH(l){return ji(l,h|m)}function WH(l,c){return c=typeof c=="function"?c:n,ji(l,h|m,c)}function zH(l,c){return c==null||ek(l,c,Wn(c))}function Ss(l,c){return l===c||l!==l&&c!==c}var HH=Dm(Q1),GH=Dm(function(l,c){return l>=c}),wu=ok(function(){return arguments}())?ok:function(l){return hn(l)&&$t.call(l,"callee")&&!GC.call(l,"callee")},Ge=Y.isArray,YH=An?hi(An):t6;function Kr(l){return l!=null&&Wm(l.length)&&!Ho(l)}function _n(l){return hn(l)&&Kr(l)}function qH(l){return l===!0||l===!1||hn(l)&&Mr(l)==Be}var nl=lW||Nw,KH=Rr?hi(Rr):n6;function XH(l){return hn(l)&&l.nodeType===1&&!Ah(l)}function JH(l){if(l==null)return!0;if(Kr(l)&&(Ge(l)||typeof l=="string"||typeof l.splice=="function"||nl(l)||Xc(l)||wu(l)))return!l.length;var c=pr(l);if(c==Mt||c==Wt)return!l.size;if(Ch(l))return!tw(l).length;for(var p in l)if($t.call(l,p))return!1;return!0}function QH(l,c){return Ph(l,c)}function ZH(l,c,p){p=typeof p=="function"?p:n;var g=p?p(l,c):n;return g===n?Ph(l,c,n,p):!!g}function Tw(l){if(!hn(l))return!1;var c=Mr(l);return c==ut||c==Xe||typeof l.message=="string"&&typeof l.name=="string"&&!Ah(l)}function e8(l){return typeof l=="number"&&qC(l)}function Ho(l){if(!an(l))return!1;var c=Mr(l);return c==Fe||c==yt||c==De||c==Li}function pA(l){return typeof l=="number"&&l==qe(l)}function Wm(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=X}function an(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}function hn(l){return l!=null&&typeof l=="object"}var vA=Ir?hi(Ir):i6;function t8(l,c){return l===c||ew(l,c,gw(c))}function n8(l,c,p){return p=typeof p=="function"?p:n,ew(l,c,gw(c),p)}function r8(l){return mA(l)&&l!=+l}function i8(l){if(V6(l))throw new We(s);return ak(l)}function s8(l){return l===null}function o8(l){return l==null}function mA(l){return typeof l=="number"||hn(l)&&Mr(l)==dn}function Ah(l){if(!hn(l)||Mr(l)!=Yt)return!1;var c=mm(l);if(c===null)return!0;var p=$t.call(c,"constructor")&&c.constructor;return typeof p=="function"&&p instanceof p&&dm.call(p)==nW}var Cw=Xs?hi(Xs):s6;function a8(l){return pA(l)&&l>=-X&&l<=X}var gA=vh?hi(vh):o6;function zm(l){return typeof l=="string"||!Ge(l)&&hn(l)&&Mr(l)==Me}function vi(l){return typeof l=="symbol"||hn(l)&&Mr(l)==Ye}var Xc=du?hi(du):a6;function l8(l){return l===n}function u8(l){return hn(l)&&pr(l)==Et}function c8(l){return hn(l)&&Mr(l)==Cr}var f8=Dm(nw),d8=Dm(function(l,c){return l<=c});function _A(l){if(!l)return[];if(Kr(l))return zm(l)?ys(l):qr(l);if(gh&&l[gh])return z5(l[gh]());var c=pr(l),p=c==Mt?W1:c==Wt?um:Jc;return p(l)}function Go(l){if(!l)return l===0?l:0;if(l=Hi(l),l===ue||l===-ue){var c=l<0?-1:1;return c*te}return l===l?l:0}function qe(l){var c=Go(l),p=c%1;return c===c?p?c-p:c:0}function yA(l){return l?mu(qe(l),0,he):0}function Hi(l){if(typeof l=="number")return l;if(vi(l))return ve;if(an(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=an(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=$C(l);var p=oh.test(l);return p||lh.test(l)?re(l.slice(2),p?2:8):sh.test(l)?ve:+l}function wA(l){return Qs(l,Xr(l))}function h8(l){return l?mu(qe(l),-X,X):l===0?l:0}function Ft(l){return l==null?"":pi(l)}var p8=Yc(function(l,c){if(Ch(c)||Kr(c)){Qs(c,Wn(c),l);return}for(var p in c)$t.call(c,p)&&bh(l,p,c[p])}),SA=Yc(function(l,c){Qs(c,Xr(c),l)}),Hm=Yc(function(l,c,p,g){Qs(c,Xr(c),l,g)}),v8=Yc(function(l,c,p,g){Qs(c,Wn(c),l,g)}),m8=Wo(K1);function g8(l,c){var p=Gc(l);return c==null?p:ZC(p,c)}var _8=Qe(function(l,c){l=Ht(l);var p=-1,g=c.length,x=g>2?c[2]:n;for(x&&Dr(c[0],c[1],x)&&(g=1);++p<g;)for(var R=c[p],$=Xr(R),B=-1,z=$.length;++B<z;){var Z=$[B],ne=l[Z];(ne===n||Ss(ne,Wc[Z])&&!$t.call(l,Z))&&(l[Z]=R[Z])}return l}),y8=Qe(function(l){return l.push(n,$k),jn(bA,n,l)});function w8(l,c){return DC(l,Le(c,3),Js)}function S8(l,c){return DC(l,Le(c,3),J1)}function b8(l,c){return l==null?l:X1(l,Le(c,3),Xr)}function x8(l,c){return l==null?l:ik(l,Le(c,3),Xr)}function E8(l,c){return l&&Js(l,Le(c,3))}function P8(l,c){return l&&J1(l,Le(c,3))}function O8(l){return l==null?[]:Om(l,Wn(l))}function T8(l){return l==null?[]:Om(l,Xr(l))}function kw(l,c,p){var g=l==null?n:gu(l,c);return g===n?p:g}function C8(l,c){return l!=null&&Vk(l,c,JW)}function Aw(l,c){return l!=null&&Vk(l,c,QW)}var k8=Mk(function(l,c,p){c!=null&&typeof c.toString!="function"&&(c=hm.call(c)),l[c]=p},Iw(Jr)),A8=Mk(function(l,c,p){c!=null&&typeof c.toString!="function"&&(c=hm.call(c)),$t.call(l,c)?l[c].push(p):l[c]=[p]},Le),R8=Qe(Eh);function Wn(l){return Kr(l)?JC(l):tw(l)}function Xr(l){return Kr(l)?JC(l,!0):l6(l)}function I8(l,c){var p={};return c=Le(c,3),Js(l,function(g,x,R){Vo(p,c(g,x,R),g)}),p}function M8(l,c){var p={};return c=Le(c,3),Js(l,function(g,x,R){Vo(p,x,c(g,x,R))}),p}var D8=Yc(function(l,c,p){Tm(l,c,p)}),bA=Yc(function(l,c,p,g){Tm(l,c,p,g)}),L8=Wo(function(l,c){var p={};if(l==null)return p;var g=!1;c=rn(c,function(R){return R=el(R,l),g||(g=R.length>1),R}),Qs(l,vw(l),p),g&&(p=ji(p,h|v|m,k6));for(var x=c.length;x--;)aw(p,c[x]);return p});function F8(l,c){return xA(l,jm(Le(c)))}var N8=Wo(function(l,c){return l==null?{}:c6(l,c)});function xA(l,c){if(l==null)return{};var p=rn(vw(l),function(g){return[g]});return c=Le(c),pk(l,p,function(g,x){return c(g,x[0])})}function $8(l,c,p){c=el(c,l);var g=-1,x=c.length;for(x||(x=1,l=n);++g<x;){var R=l==null?n:l[Zs(c[g])];R===n&&(g=x,R=p),l=Ho(R)?R.call(l):R}return l}function B8(l,c,p){return l==null?l:Oh(l,c,p)}function U8(l,c,p,g){return g=typeof g=="function"?g:n,l==null?l:Oh(l,c,p,g)}var EA=Fk(Wn),PA=Fk(Xr);function V8(l,c,p){var g=Ge(l),x=g||nl(l)||Xc(l);if(c=Le(c,4),p==null){var R=l&&l.constructor;x?p=g?new R:[]:an(l)?p=Ho(R)?Gc(mm(l)):{}:p={}}return(x?Bi:Js)(l,function($,B,z){return c(p,$,B,z)}),p}function j8(l,c){return l==null?!0:aw(l,c)}function W8(l,c,p){return l==null?l:yk(l,c,cw(p))}function z8(l,c,p,g){return g=typeof g=="function"?g:n,l==null?l:yk(l,c,cw(p),g)}function Jc(l){return l==null?[]:j1(l,Wn(l))}function H8(l){return l==null?[]:j1(l,Xr(l))}function G8(l,c,p){return p===n&&(p=c,c=n),p!==n&&(p=Hi(p),p=p===p?p:0),c!==n&&(c=Hi(c),c=c===c?c:0),mu(Hi(l),c,p)}function Y8(l,c,p){return c=Go(c),p===n?(p=c,c=0):p=Go(p),l=Hi(l),ZW(l,c,p)}function q8(l,c,p){if(p&&typeof p!="boolean"&&Dr(l,c,p)&&(c=p=n),p===n&&(typeof c=="boolean"?(p=c,c=n):typeof l=="boolean"&&(p=l,l=n)),l===n&&c===n?(l=0,c=1):(l=Go(l),c===n?(c=l,l=0):c=Go(c)),l>c){var g=l;l=c,c=g}if(p||l%1||c%1){var x=KC();return hr(l+x*(c-l+H("1e-"+((x+"").length-1))),c)}return iw(l,c)}var K8=qc(function(l,c,p){return c=c.toLowerCase(),l+(p?OA(c):c)});function OA(l){return Rw(Ft(l).toLowerCase())}function TA(l){return l=Ft(l),l&&l.replace(ms,B5).replace(Lc,"")}function X8(l,c,p){l=Ft(l),c=pi(c);var g=l.length;p=p===n?g:mu(qe(p),0,g);var x=p;return p-=c.length,p>=0&&l.slice(p,x)==c}function J8(l){return l=Ft(l),l&&Ar.test(l)?l.replace(Hs,U5):l}function Q8(l){return l=Ft(l),l&&Zd.test(l)?l.replace(su,"\\$&"):l}var Z8=qc(function(l,c,p){return l+(p?"-":"")+c.toLowerCase()}),eG=qc(function(l,c,p){return l+(p?" ":"")+c.toLowerCase()}),tG=Ak("toLowerCase");function nG(l,c,p){l=Ft(l),c=qe(c);var g=c?Vc(l):0;if(!c||g>=c)return l;var x=(c-g)/2;return Mm(wm(x),p)+l+Mm(ym(x),p)}function rG(l,c,p){l=Ft(l),c=qe(c);var g=c?Vc(l):0;return c&&g<c?l+Mm(c-g,p):l}function iG(l,c,p){l=Ft(l),c=qe(c);var g=c?Vc(l):0;return c&&g<c?Mm(c-g,p)+l:l}function sG(l,c,p){return p||c==null?c=0:c&&(c=+c),dW(Ft(l).replace(ou,""),c||0)}function oG(l,c,p){return(p?Dr(l,c,p):c===n)?c=1:c=qe(c),sw(Ft(l),c)}function aG(){var l=arguments,c=Ft(l[0]);return l.length<3?c:c.replace(l[1],l[2])}var lG=qc(function(l,c,p){return l+(p?"_":"")+c.toLowerCase()});function uG(l,c,p){return p&&typeof p!="number"&&Dr(l,c,p)&&(c=p=n),p=p===n?he:p>>>0,p?(l=Ft(l),l&&(typeof c=="string"||c!=null&&!Cw(c))&&(c=pi(c),!c&&Uc(l))?tl(ys(l),0,p):l.split(c,p)):[]}var cG=qc(function(l,c,p){return l+(p?" ":"")+Rw(c)});function fG(l,c,p){return l=Ft(l),p=p==null?0:mu(qe(p),0,l.length),c=pi(c),l.slice(p,p+c.length)==c}function dG(l,c,p){var g=k.templateSettings;p&&Dr(l,c,p)&&(c=n),l=Ft(l),c=Hm({},c,g,Nk);var x=Hm({},c.imports,g.imports,Nk),R=Wn(x),$=j1(x,R),B,z,Z=0,ne=c.interpolate||Gs,le="__p += '",ge=z1((c.escape||Gs).source+"|"+ne.source+"|"+(ne===$a?ih:Gs).source+"|"+(c.evaluate||Gs).source+"|$","g"),Ce="//# sourceURL="+($t.call(c,"sourceURL")?(c.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++$c+"]")+`
`;l.replace(ge,function($e,rt,ct,mi,Lr,gi){return ct||(ct=mi),le+=l.slice(Z,gi).replace(ch,V5),rt&&(B=!0,le+=`' +
__e(`+rt+`) +
'`),Lr&&(z=!0,le+=`';
`+Lr+`;
__p += '`),ct&&(le+=`' +
((__t = (`+ct+`)) == null ? '' : __t) +
'`),Z=gi+$e.length,$e}),le+=`';
`;var Ne=$t.call(c,"variable")&&c.variable;if(!Ne)le=`with (obj) {
`+le+`
}
`;else if(nh.test(Ne))throw new We(a);le=(z?le.replace(Jd,""):le).replace(Ni,"$1").replace(yc,"$1;"),le="function("+(Ne||"obj")+`) {
`+(Ne?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(B?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+le+`return __p
}`;var Je=kA(function(){return Tt(R,Ce+"return "+le).apply(n,$)});if(Je.source=le,Tw(Je))throw Je;return Je}function hG(l){return Ft(l).toLowerCase()}function pG(l){return Ft(l).toUpperCase()}function vG(l,c,p){if(l=Ft(l),l&&(p||c===n))return $C(l);if(!l||!(c=pi(c)))return l;var g=ys(l),x=ys(c),R=BC(g,x),$=UC(g,x)+1;return tl(g,R,$).join("")}function mG(l,c,p){if(l=Ft(l),l&&(p||c===n))return l.slice(0,jC(l)+1);if(!l||!(c=pi(c)))return l;var g=ys(l),x=UC(g,ys(c))+1;return tl(g,0,x).join("")}function gG(l,c,p){if(l=Ft(l),l&&(p||c===n))return l.replace(ou,"");if(!l||!(c=pi(c)))return l;var g=ys(l),x=BC(g,ys(c));return tl(g,x).join("")}function _G(l,c){var p=D,g=V;if(an(c)){var x="separator"in c?c.separator:x;p="length"in c?qe(c.length):p,g="omission"in c?pi(c.omission):g}l=Ft(l);var R=l.length;if(Uc(l)){var $=ys(l);R=$.length}if(p>=R)return l;var B=p-Vc(g);if(B<1)return g;var z=$?tl($,0,B).join(""):l.slice(0,B);if(x===n)return z+g;if($&&(B+=z.length-B),Cw(x)){if(l.slice(B).search(x)){var Z,ne=z;for(x.global||(x=z1(x.source,Ft(kn.exec(x))+"g")),x.lastIndex=0;Z=x.exec(ne);)var le=Z.index;z=z.slice(0,le===n?B:le)}}else if(l.indexOf(pi(x),B)!=B){var ge=z.lastIndexOf(x);ge>-1&&(z=z.slice(0,ge))}return z+g}function yG(l){return l=Ft(l),l&&nu.test(l)?l.replace(tu,q5):l}var wG=qc(function(l,c,p){return l+(p?" ":"")+c.toUpperCase()}),Rw=Ak("toUpperCase");function CA(l,c,p){return l=Ft(l),c=p?n:c,c===n?W5(l)?J5(l):D5(l):l.match(c)||[]}var kA=Qe(function(l,c){try{return jn(l,n,c)}catch(p){return Tw(p)?p:new We(p)}}),SG=Wo(function(l,c){return Bi(c,function(p){p=Zs(p),Vo(l,p,Pw(l[p],l))}),l});function bG(l){var c=l==null?0:l.length,p=Le();return l=c?rn(l,function(g){if(typeof g[1]!="function")throw new Ui(o);return[p(g[0]),g[1]]}):[],Qe(function(g){for(var x=-1;++x<c;){var R=l[x];if(jn(R[0],this,g))return jn(R[1],this,g)}})}function xG(l){return qW(ji(l,h))}function Iw(l){return function(){return l}}function EG(l,c){return l==null||l!==l?c:l}var PG=Ik(),OG=Ik(!0);function Jr(l){return l}function Mw(l){return lk(typeof l=="function"?l:ji(l,h))}function TG(l){return ck(ji(l,h))}function CG(l,c){return fk(l,ji(c,h))}var kG=Qe(function(l,c){return function(p){return Eh(p,l,c)}}),AG=Qe(function(l,c){return function(p){return Eh(l,p,c)}});function Dw(l,c,p){var g=Wn(c),x=Om(c,g);p==null&&!(an(c)&&(x.length||!g.length))&&(p=c,c=l,l=this,x=Om(c,Wn(c)));var R=!(an(p)&&"chain"in p)||!!p.chain,$=Ho(l);return Bi(x,function(B){var z=c[B];l[B]=z,$&&(l.prototype[B]=function(){var Z=this.__chain__;if(R||Z){var ne=l(this.__wrapped__),le=ne.__actions__=qr(this.__actions__);return le.push({func:z,args:arguments,thisArg:l}),ne.__chain__=Z,ne}return z.apply(l,Ka([this.value()],arguments))})}),l}function RG(){return Te._===this&&(Te._=rW),this}function Lw(){}function IG(l){return l=qe(l),Qe(function(c){return dk(c,l)})}var MG=dw(rn),DG=dw(MC),LG=dw(N1);function AA(l){return yw(l)?$1(Zs(l)):f6(l)}function FG(l){return function(c){return l==null?n:gu(l,c)}}var NG=Dk(),$G=Dk(!0);function Fw(){return[]}function Nw(){return!1}function BG(){return{}}function UG(){return""}function VG(){return!0}function jG(l,c){if(l=qe(l),l<1||l>X)return[];var p=he,g=hr(l,he);c=Le(c),l-=he;for(var x=V1(g,c);++p<l;)c(p);return x}function WG(l){return Ge(l)?rn(l,Zs):vi(l)?[l]:qr(Xk(Ft(l)))}function zG(l){var c=++tW;return Ft(l)+c}var HG=Im(function(l,c){return l+c},0),GG=hw("ceil"),YG=Im(function(l,c){return l/c},1),qG=hw("floor");function KG(l){return l&&l.length?Pm(l,Jr,Q1):n}function XG(l,c){return l&&l.length?Pm(l,Le(c,2),Q1):n}function JG(l){return FC(l,Jr)}function QG(l,c){return FC(l,Le(c,2))}function ZG(l){return l&&l.length?Pm(l,Jr,nw):n}function eY(l,c){return l&&l.length?Pm(l,Le(c,2),nw):n}var tY=Im(function(l,c){return l*c},1),nY=hw("round"),rY=Im(function(l,c){return l-c},0);function iY(l){return l&&l.length?U1(l,Jr):0}function sY(l,c){return l&&l.length?U1(l,Le(c,2)):0}return k.after=TH,k.ary=aA,k.assign=p8,k.assignIn=SA,k.assignInWith=Hm,k.assignWith=v8,k.at=m8,k.before=lA,k.bind=Pw,k.bindAll=SG,k.bindKey=uA,k.castArray=BH,k.chain=iA,k.chunk=q6,k.compact=K6,k.concat=X6,k.cond=bG,k.conforms=xG,k.constant=Iw,k.countBy=iH,k.create=g8,k.curry=cA,k.curryRight=fA,k.debounce=dA,k.defaults=_8,k.defaultsDeep=y8,k.defer=CH,k.delay=kH,k.difference=J6,k.differenceBy=Q6,k.differenceWith=Z6,k.drop=ez,k.dropRight=tz,k.dropRightWhile=nz,k.dropWhile=rz,k.fill=iz,k.filter=oH,k.flatMap=uH,k.flatMapDeep=cH,k.flatMapDepth=fH,k.flatten=eA,k.flattenDeep=sz,k.flattenDepth=oz,k.flip=AH,k.flow=PG,k.flowRight=OG,k.fromPairs=az,k.functions=O8,k.functionsIn=T8,k.groupBy=dH,k.initial=uz,k.intersection=cz,k.intersectionBy=fz,k.intersectionWith=dz,k.invert=k8,k.invertBy=A8,k.invokeMap=pH,k.iteratee=Mw,k.keyBy=vH,k.keys=Wn,k.keysIn=Xr,k.map=Bm,k.mapKeys=I8,k.mapValues=M8,k.matches=TG,k.matchesProperty=CG,k.memoize=Vm,k.merge=D8,k.mergeWith=bA,k.method=kG,k.methodOf=AG,k.mixin=Dw,k.negate=jm,k.nthArg=IG,k.omit=L8,k.omitBy=F8,k.once=RH,k.orderBy=mH,k.over=MG,k.overArgs=IH,k.overEvery=DG,k.overSome=LG,k.partial=Ow,k.partialRight=hA,k.partition=gH,k.pick=N8,k.pickBy=xA,k.property=AA,k.propertyOf=FG,k.pull=mz,k.pullAll=nA,k.pullAllBy=gz,k.pullAllWith=_z,k.pullAt=yz,k.range=NG,k.rangeRight=$G,k.rearg=MH,k.reject=wH,k.remove=wz,k.rest=DH,k.reverse=xw,k.sampleSize=bH,k.set=B8,k.setWith=U8,k.shuffle=xH,k.slice=Sz,k.sortBy=OH,k.sortedUniq=Cz,k.sortedUniqBy=kz,k.split=uG,k.spread=LH,k.tail=Az,k.take=Rz,k.takeRight=Iz,k.takeRightWhile=Mz,k.takeWhile=Dz,k.tap=Kz,k.throttle=FH,k.thru=$m,k.toArray=_A,k.toPairs=EA,k.toPairsIn=PA,k.toPath=WG,k.toPlainObject=wA,k.transform=V8,k.unary=NH,k.union=Lz,k.unionBy=Fz,k.unionWith=Nz,k.uniq=$z,k.uniqBy=Bz,k.uniqWith=Uz,k.unset=j8,k.unzip=Ew,k.unzipWith=rA,k.update=W8,k.updateWith=z8,k.values=Jc,k.valuesIn=H8,k.without=Vz,k.words=CA,k.wrap=$H,k.xor=jz,k.xorBy=Wz,k.xorWith=zz,k.zip=Hz,k.zipObject=Gz,k.zipObjectDeep=Yz,k.zipWith=qz,k.entries=EA,k.entriesIn=PA,k.extend=SA,k.extendWith=Hm,Dw(k,k),k.add=HG,k.attempt=kA,k.camelCase=K8,k.capitalize=OA,k.ceil=GG,k.clamp=G8,k.clone=UH,k.cloneDeep=jH,k.cloneDeepWith=WH,k.cloneWith=VH,k.conformsTo=zH,k.deburr=TA,k.defaultTo=EG,k.divide=YG,k.endsWith=X8,k.eq=Ss,k.escape=J8,k.escapeRegExp=Q8,k.every=sH,k.find=aH,k.findIndex=Qk,k.findKey=w8,k.findLast=lH,k.findLastIndex=Zk,k.findLastKey=S8,k.floor=qG,k.forEach=sA,k.forEachRight=oA,k.forIn=b8,k.forInRight=x8,k.forOwn=E8,k.forOwnRight=P8,k.get=kw,k.gt=HH,k.gte=GH,k.has=C8,k.hasIn=Aw,k.head=tA,k.identity=Jr,k.includes=hH,k.indexOf=lz,k.inRange=Y8,k.invoke=R8,k.isArguments=wu,k.isArray=Ge,k.isArrayBuffer=YH,k.isArrayLike=Kr,k.isArrayLikeObject=_n,k.isBoolean=qH,k.isBuffer=nl,k.isDate=KH,k.isElement=XH,k.isEmpty=JH,k.isEqual=QH,k.isEqualWith=ZH,k.isError=Tw,k.isFinite=e8,k.isFunction=Ho,k.isInteger=pA,k.isLength=Wm,k.isMap=vA,k.isMatch=t8,k.isMatchWith=n8,k.isNaN=r8,k.isNative=i8,k.isNil=o8,k.isNull=s8,k.isNumber=mA,k.isObject=an,k.isObjectLike=hn,k.isPlainObject=Ah,k.isRegExp=Cw,k.isSafeInteger=a8,k.isSet=gA,k.isString=zm,k.isSymbol=vi,k.isTypedArray=Xc,k.isUndefined=l8,k.isWeakMap=u8,k.isWeakSet=c8,k.join=hz,k.kebabCase=Z8,k.last=zi,k.lastIndexOf=pz,k.lowerCase=eG,k.lowerFirst=tG,k.lt=f8,k.lte=d8,k.max=KG,k.maxBy=XG,k.mean=JG,k.meanBy=QG,k.min=ZG,k.minBy=eY,k.stubArray=Fw,k.stubFalse=Nw,k.stubObject=BG,k.stubString=UG,k.stubTrue=VG,k.multiply=tY,k.nth=vz,k.noConflict=RG,k.noop=Lw,k.now=Um,k.pad=nG,k.padEnd=rG,k.padStart=iG,k.parseInt=sG,k.random=q8,k.reduce=_H,k.reduceRight=yH,k.repeat=oG,k.replace=aG,k.result=$8,k.round=nY,k.runInContext=W,k.sample=SH,k.size=EH,k.snakeCase=lG,k.some=PH,k.sortedIndex=bz,k.sortedIndexBy=xz,k.sortedIndexOf=Ez,k.sortedLastIndex=Pz,k.sortedLastIndexBy=Oz,k.sortedLastIndexOf=Tz,k.startCase=cG,k.startsWith=fG,k.subtract=rY,k.sum=iY,k.sumBy=sY,k.template=dG,k.times=jG,k.toFinite=Go,k.toInteger=qe,k.toLength=yA,k.toLower=hG,k.toNumber=Hi,k.toSafeInteger=h8,k.toString=Ft,k.toUpper=pG,k.trim=vG,k.trimEnd=mG,k.trimStart=gG,k.truncate=_G,k.unescape=yG,k.uniqueId=zG,k.upperCase=wG,k.upperFirst=Rw,k.each=sA,k.eachRight=oA,k.first=tA,Dw(k,function(){var l={};return Js(k,function(c,p){$t.call(k.prototype,p)||(l[p]=c)}),l}(),{chain:!1}),k.VERSION=r,Bi(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){k[l].placeholder=k}),Bi(["drop","take"],function(l,c){st.prototype[l]=function(p){p=p===n?1:In(qe(p),0);var g=this.__filtered__&&!c?new st(this):this.clone();return g.__filtered__?g.__takeCount__=hr(p,g.__takeCount__):g.__views__.push({size:hr(p,he),type:l+(g.__dir__<0?"Right":"")}),g},st.prototype[l+"Right"]=function(p){return this.reverse()[l](p).reverse()}}),Bi(["filter","map","takeWhile"],function(l,c){var p=c+1,g=p==ie||p==oe;st.prototype[l]=function(x){var R=this.clone();return R.__iteratees__.push({iteratee:Le(x,3),type:p}),R.__filtered__=R.__filtered__||g,R}}),Bi(["head","last"],function(l,c){var p="take"+(c?"Right":"");st.prototype[l]=function(){return this[p](1).value()[0]}}),Bi(["initial","tail"],function(l,c){var p="drop"+(c?"":"Right");st.prototype[l]=function(){return this.__filtered__?new st(this):this[p](1)}}),st.prototype.compact=function(){return this.filter(Jr)},st.prototype.find=function(l){return this.filter(l).head()},st.prototype.findLast=function(l){return this.reverse().find(l)},st.prototype.invokeMap=Qe(function(l,c){return typeof l=="function"?new st(this):this.map(function(p){return Eh(p,l,c)})}),st.prototype.reject=function(l){return this.filter(jm(Le(l)))},st.prototype.slice=function(l,c){l=qe(l);var p=this;return p.__filtered__&&(l>0||c<0)?new st(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),c!==n&&(c=qe(c),p=c<0?p.dropRight(-c):p.take(c-l)),p)},st.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},st.prototype.toArray=function(){return this.take(he)},Js(st.prototype,function(l,c){var p=/^(?:filter|find|map|reject)|While$/.test(c),g=/^(?:head|last)$/.test(c),x=k[g?"take"+(c=="last"?"Right":""):c],R=g||/^find/.test(c);x&&(k.prototype[c]=function(){var $=this.__wrapped__,B=g?[1]:arguments,z=$ instanceof st,Z=B[0],ne=z||Ge($),le=function(rt){var ct=x.apply(k,Ka([rt],B));return g&&ge?ct[0]:ct};ne&&p&&typeof Z=="function"&&Z.length!=1&&(z=ne=!1);var ge=this.__chain__,Ce=!!this.__actions__.length,Ne=R&&!ge,Je=z&&!Ce;if(!R&&ne){$=Je?$:new st(this);var $e=l.apply($,B);return $e.__actions__.push({func:$m,args:[le],thisArg:n}),new Vi($e,ge)}return Ne&&Je?l.apply(this,B):($e=this.thru(le),Ne?g?$e.value()[0]:$e.value():$e)})}),Bi(["pop","push","shift","sort","splice","unshift"],function(l){var c=cm[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",g=/^(?:pop|shift)$/.test(l);k.prototype[l]=function(){var x=arguments;if(g&&!this.__chain__){var R=this.value();return c.apply(Ge(R)?R:[],x)}return this[p](function($){return c.apply(Ge($)?$:[],x)})}}),Js(st.prototype,function(l,c){var p=k[c];if(p){var g=p.name+"";$t.call(Hc,g)||(Hc[g]=[]),Hc[g].push({name:c,func:p})}}),Hc[Rm(n,S).name]=[{name:"wrapper",func:n}],st.prototype.clone=yW,st.prototype.reverse=wW,st.prototype.value=SW,k.prototype.at=Xz,k.prototype.chain=Jz,k.prototype.commit=Qz,k.prototype.next=Zz,k.prototype.plant=tH,k.prototype.reverse=nH,k.prototype.toJSON=k.prototype.valueOf=k.prototype.value=rH,k.prototype.first=k.prototype.head,gh&&(k.prototype[gh]=eH),k},jc=Q5();je?((je.exports=jc)._=jc,Ee._=jc):Te._=jc}).call(bi)})(Vy,Vy.exports);var Ki=Vy.exports;const At=l0(Ki);var _i=(e=>(e.Male="Male",e.Female="Female",e.NonBinary="Non-Binary",e))(_i||{});class nr{constructor(t,n,r,i,s,o,a,u,f,d,h,v,m,y,w,E,S,_,b){K(this,"store");K(this,"id");K(this,"given_name");K(this,"surname");K(this,"isMain");K(this,"gender");K(this,"tree_id");K(this,"notes");K(this,"known_as");K(this,"age");K(this,"surname_at_birth");K(this,"date_of_birth");K(this,"place_of_birth");K(this,"is_deceased");K(this,"date_of_death");K(this,"place_of_death");K(this,"profile_image");K(this,"email");K(this,"user_id");this.store=t,this.id=n,this.given_name=r,this.surname=i,this.isMain=s,this.tree_id=o,this.notes=a,this.gender=u,this.known_as=f,this.age=d,this.surname_at_birth=h,this.date_of_birth=v,this.place_of_birth=m,this.is_deceased=y,this.date_of_death=w,this.place_of_death=E,this.profile_image=S,this.email=_,this.user_id=b}get parentRelationships(){return this.store.parentRelationships.filter(t=>t.child_id===this.id).map(t=>{const n=this.store.partnerRelationships.find(r=>r.id===t.partner_relationship_id);return n?new Qf(this.store,n.id,n.individual_ids,n.type):null}).flatMap(t=>t?[t]:[])}get actualParentRelationships(){return this.store.parentRelationships.filter(t=>t.child_id===this.id).map(t=>new Uy(this.store,t.id,t.type,t.child_id,t.partner_relationship_id,t.tree_id)).flatMap(t=>t?[t]:[])}get actualPrimaryParentRelationship(){return this.actualParentRelationships[0]}get partnerRelationships(){var u,f;const t=this.store.individuals.find(d=>d.id===this.store.ownerId),n=new nr(this.store,t.id,t.given_name,t.surname,t.isMain,t.tree_id,t.notes,t.gender,t.known_as,t.age,t.surname_at_birth,t.date_of_birth,t.place_of_birth,t.is_deceased,t.date_of_death,t.place_of_death,t==null?void 0:t.profile_image),r=(u=n.primaryParentRelationship)==null?void 0:u.mainIndividual,i=(f=n.primaryParentRelationship)==null?void 0:f.otherIndividual,s=this.store.partnerRelationships.filter(d=>d.individual_ids.includes(this.id)).map(d=>new Qf(this.store,d.id,d.individual_ids,d.type,+d.tree_id,d.relationship_type,d.other_relationship_info,d.marriage_date,d.marriage_location,d.separating_date,d.divorcing_date,d.start_relationship_date,d.other_relationship_start_date));let o=At.sortBy(s,"type");const a=Ki.find(s,d=>d.individual_ids.includes(r==null?void 0:r.id)&&d.individual_ids.includes(i==null?void 0:i.id));return Ki.isEmpty(a)||(o=[a,...Ki.filter(o,d=>d.id!==a.id)]),o}get partners(){return this.partnerRelationships.map(t=>t.individuals.find(n=>n.id!==this.id)).flatMap(t=>t?[t]:[])}get children(){return this.partnerRelationships.map(t=>t.children).flat()}getPrimaryPartnerRelationship(t){return this.partnerRelationships.find(r=>At.intersection(t.ancestors.map(i=>i.id),r.individual_ids).length>0)||this.partnerRelationships[0]}getPrimaryPartner(t){const n=this.getPrimaryPartnerRelationship(t).individuals.find(r=>r.id!==this.id);if(!n)throw"Individual not found";return n}get primaryParentRelationship(){return this.parentRelationships[0]}get ancestors(){return this.parentRelationships.length===0?[this]:this.parentRelationships.map(t=>[...t.individuals,...t.individuals.map(n=>n.ancestors).flat()]).flat()}get leftMostAncestor(){return this}get exPartnerRelationships(){return this.partnerRelationships.filter(t=>t.type===o0.Ex)}get currentPartnerRelationships(){return this.partnerRelationships.filter(t=>t.type===o0.Current)}}let kg;const _me=new Uint8Array(16);function yme(){if(!kg&&(kg=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!kg))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return kg(_me)}const er=[];for(let e=0;e<256;++e)er.push((e+256).toString(16).slice(1));function wme(e,t=0){return er[e[t+0]]+er[e[t+1]]+er[e[t+2]]+er[e[t+3]]+"-"+er[e[t+4]]+er[e[t+5]]+"-"+er[e[t+6]]+er[e[t+7]]+"-"+er[e[t+8]]+er[e[t+9]]+"-"+er[e[t+10]]+er[e[t+11]]+er[e[t+12]]+er[e[t+13]]+er[e[t+14]]+er[e[t+15]]}const Sme=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),hL={randomUUID:Sme};function E_(e,t,n){if(hL.randomUUID&&!t&&!e)return hL.randomUUID();e=e||{};const r=e.random||(e.rng||yme)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return wme(r)}var fC=(e=>(e.Individual="Individual",e.Arrow="Arrow",e))(fC||{});class bme{static buildIndividualNode(t,n=0,r=0){return{id:t.id,type:fC.Individual,data:{individual:t},position:{x:n,y:r}}}}class pL{static buildArrowNode(t,n,r){return{id:E_(),type:fC.Arrow,data:{focusIndividualId:r},position:{x:t,y:n}}}}function xme(e,...t){return(...n)=>e(...t,...n)}function sm(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}var Eme=typeof queueMicrotask=="function"&&queueMicrotask,gj=typeof setImmediate=="function"&&setImmediate,_j=typeof process=="object"&&typeof process.nextTick=="function";function yj(e){setTimeout(e,0)}function wj(e){return(t,...n)=>e(()=>t(...n))}var sp;Eme?sp=queueMicrotask:gj?sp=setImmediate:_j?sp=process.nextTick:sp=yj;var Zu=wj(sp);function NE(e){return om(e)?function(...t){const n=t.pop(),r=e.apply(this,t);return vL(r,n)}:sm(function(t,n){var r;try{r=e.apply(this,t)}catch(i){return n(i)}if(r&&typeof r.then=="function")return vL(r,n);n(null,r)})}function vL(e,t){return e.then(n=>{mL(t,null,n)},n=>{mL(t,n&&n.message?n:new Error(n))})}function mL(e,t,n){try{e(t,n)}catch(r){Zu(i=>{throw i},r)}}function om(e){return e[Symbol.toStringTag]==="AsyncFunction"}function Pme(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function Ome(e){return typeof e[Symbol.asyncIterator]=="function"}function tt(e){if(typeof e!="function")throw new Error("expected a function");return om(e)?NE(e):e}function Ze(e,t=e.length){if(!t)throw new Error("arity is undefined");function n(...r){return typeof r[t-1]=="function"?e.apply(this,r):new Promise((i,s)=>{r[t-1]=(o,...a)=>{if(o)return s(o);i(a.length>1?a:a[0])},e.apply(this,r)})}return n}function Sj(e){return function(n,...r){return Ze(function(s){var o=this;return e(n,(a,u)=>{tt(a).apply(o,r.concat(u))},s)})}}function dC(e,t,n,r){t=t||[];var i=[],s=0,o=tt(n);return e(t,(a,u,f)=>{var d=s++;o(a,(h,v)=>{i[d]=v,f(h)})},a=>{r(a,i)})}function T1(e){return e&&typeof e.length=="number"&&e.length>=0&&e.length%1===0}const C1={};function Ql(e){function t(...n){if(e!==null){var r=e;e=null,r.apply(this,n)}}return Object.assign(t,e),t}function Tme(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}function Cme(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}function kme(e){var t=-1;return function(){var r=e.next();return r.done?null:(t++,{value:r.value,key:t})}}function Ame(e){var t=e?Object.keys(e):[],n=-1,r=t.length;return function i(){var s=t[++n];return s==="__proto__"?i():n<r?{value:e[s],key:s}:null}}function Rme(e){if(T1(e))return Cme(e);var t=Tme(e);return t?kme(t):Ame(e)}function Zl(e){return function(...t){if(e===null)throw new Error("Callback was already called.");var n=e;e=null,n.apply(this,t)}}function gL(e,t,n,r){let i=!1,s=!1,o=!1,a=0,u=0;function f(){a>=t||o||i||(o=!0,e.next().then(({value:v,done:m})=>{if(!(s||i)){if(o=!1,m){i=!0,a<=0&&r(null);return}a++,n(v,u,d),u++,f()}}).catch(h))}function d(v,m){if(a-=1,!s){if(v)return h(v);if(v===!1){i=!0,s=!0;return}if(m===C1||i&&a<=0)return i=!0,r(null);f()}}function h(v){s||(o=!1,i=!0,r(v))}f()}var zs=e=>(t,n,r)=>{if(r=Ql(r),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return r(null);if(Pme(t))return gL(t,e,n,r);if(Ome(t))return gL(t[Symbol.asyncIterator](),e,n,r);var i=Rme(t),s=!1,o=!1,a=0,u=!1;function f(h,v){if(!o)if(a-=1,h)s=!0,r(h);else if(h===!1)s=!0,o=!0;else{if(v===C1||s&&a<=0)return s=!0,r(null);u||d()}}function d(){for(u=!0;a<e&&!s;){var h=i();if(h===null){s=!0,a<=0&&r(null);return}a+=1,n(h.value,h.key,Zl(f))}u=!1}d()};function Ime(e,t,n,r){return zs(t)(e,tt(n),r)}var jy=Ze(Ime,4);function Mme(e,t,n){n=Ql(n);var r=0,i=0,{length:s}=e,o=!1;s===0&&n(null);function a(u,f){u===!1&&(o=!0),o!==!0&&(u?n(u):(++i===s||f===C1)&&n(null))}for(;r<s;r++)t(e[r],r,Zl(a))}function Dme(e,t,n){return jy(e,1/0,t,n)}function Lme(e,t,n){var r=T1(e)?Mme:Dme;return r(e,tt(t),n)}var js=Ze(Lme,3);function Fme(e,t,n){return dC(js,e,t,n)}var hC=Ze(Fme,3),Nme=Sj(hC);function $me(e,t,n){return jy(e,1,t,n)}var Ia=Ze($me,3);function Bme(e,t,n){return dC(Ia,e,t,n)}var bj=Ze(Bme,3),Ume=Sj(bj);const Xd=Symbol("promiseCallback");function Ad(){let e,t;function n(r,...i){if(r)return t(r);e(i.length>1?i:i[0])}return n[Xd]=new Promise((r,i)=>{e=r,t=i}),n}function xj(e,t,n){typeof t!="number"&&(n=t,t=null),n=Ql(n||Ad());var r=Object.keys(e).length;if(!r)return n(null);t||(t=r);var i={},s=0,o=!1,a=!1,u=Object.create(null),f=[],d=[],h={};Object.keys(e).forEach(b=>{var O=e[b];if(!Array.isArray(O)){v(b,[O]),d.push(b);return}var I=O.slice(0,O.length-1),A=I.length;if(A===0){v(b,O),d.push(b);return}h[b]=A,I.forEach(C=>{if(!e[C])throw new Error("async.auto task `"+b+"` has a non-existent dependency `"+C+"` in "+I.join(", "));y(C,()=>{A--,A===0&&v(b,O)})})}),S(),m();function v(b,O){f.push(()=>E(b,O))}function m(){if(!o){if(f.length===0&&s===0)return n(null,i);for(;f.length&&s<t;){var b=f.shift();b()}}}function y(b,O){var I=u[b];I||(I=u[b]=[]),I.push(O)}function w(b){var O=u[b]||[];O.forEach(I=>I()),m()}function E(b,O){if(!a){var I=Zl((C,...P)=>{if(s--,C===!1){o=!0;return}if(P.length<2&&([P]=P),C){var M={};if(Object.keys(i).forEach(D=>{M[D]=i[D]}),M[b]=P,a=!0,u=Object.create(null),o)return;n(C,M)}else i[b]=P,w(b)});s++;var A=tt(O[O.length-1]);O.length>1?A(i,I):A(I)}}function S(){for(var b,O=0;d.length;)b=d.pop(),O++,_(b).forEach(I=>{--h[I]===0&&d.push(I)});if(O!==r)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}function _(b){var O=[];return Object.keys(e).forEach(I=>{const A=e[I];Array.isArray(A)&&A.indexOf(b)>=0&&O.push(I)}),O}return n[Xd]}var Vme=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,jme=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,Wme=/,/,zme=/(=.+)?(\s*)$/;function Hme(e){let t="",n=0,r=e.indexOf("*/");for(;n<e.length;)if(e[n]==="/"&&e[n+1]==="/"){let i=e.indexOf(`
`,n);n=i===-1?e.length:i}else if(r!==-1&&e[n]==="/"&&e[n+1]==="*"){let i=e.indexOf("*/",n);i!==-1?(n=i+2,r=e.indexOf("*/",n)):(t+=e[n],n++)}else t+=e[n],n++;return t}function Gme(e){const t=Hme(e.toString());let n=t.match(Vme);if(n||(n=t.match(jme)),!n)throw new Error(`could not parse args in autoInject
Source:
`+t);let[,r]=n;return r.replace(/\s/g,"").split(Wme).map(i=>i.replace(zme,"").trim())}function Yme(e,t){var n={};return Object.keys(e).forEach(r=>{var i=e[r],s,o=om(i),a=!o&&i.length===1||o&&i.length===0;if(Array.isArray(i))s=[...i],i=s.pop(),n[r]=s.concat(s.length>0?u:i);else if(a)n[r]=i;else{if(s=Gme(i),i.length===0&&!o&&s.length===0)throw new Error("autoInject task functions require explicit parameters.");o||s.pop(),n[r]=s.concat(u)}function u(f,d){var h=s.map(v=>f[v]);h.push(d),tt(i)(...h)}}),xj(n,t)}class qme{constructor(){this.head=this.tail=null,this.length=0}removeLink(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t}empty(){for(;this.head;)this.shift();return this}insertAfter(t,n){n.prev=t,n.next=t.next,t.next?t.next.prev=n:this.tail=n,t.next=n,this.length+=1}insertBefore(t,n){n.prev=t.prev,n.next=t,t.prev?t.prev.next=n:this.head=n,t.prev=n,this.length+=1}unshift(t){this.head?this.insertBefore(this.head,t):_L(this,t)}push(t){this.tail?this.insertAfter(this.tail,t):_L(this,t)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var t=this.head;t;)yield t.data,t=t.next}remove(t){for(var n=this.head;n;){var{next:r}=n;t(n)&&this.removeLink(n),n=r}return this}}function _L(e,t){e.length=1,e.head=e.tail=t}function pC(e,t,n){if(t==null)t=1;else if(t===0)throw new RangeError("Concurrency must not be zero");var r=tt(e),i=0,s=[];const o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(_,b){o[_].push(b)}function u(_,b){const O=(...I)=>{f(_,O),b(...I)};o[_].push(O)}function f(_,b){if(!_)return Object.keys(o).forEach(O=>o[O]=[]);if(!b)return o[_]=[];o[_]=o[_].filter(O=>O!==b)}function d(_,...b){o[_].forEach(O=>O(...b))}var h=!1;function v(_,b,O,I){if(I!=null&&typeof I!="function")throw new Error("task callback must be a function");S.started=!0;var A,C;function P(D,...V){if(D)return O?C(D):A();if(V.length<=1)return A(V[0]);A(V)}var M=S._createTaskItem(_,O?P:I||P);if(b?S._tasks.unshift(M):S._tasks.push(M),h||(h=!0,Zu(()=>{h=!1,S.process()})),O||!I)return new Promise((D,V)=>{A=D,C=V})}function m(_){return function(b,...O){i-=1;for(var I=0,A=_.length;I<A;I++){var C=_[I],P=s.indexOf(C);P===0?s.shift():P>0&&s.splice(P,1),C.callback(b,...O),b!=null&&d("error",b,C.data)}i<=S.concurrency-S.buffer&&d("unsaturated"),S.idle()&&d("drain"),S.process()}}function y(_){return _.length===0&&S.idle()?(Zu(()=>d("drain")),!0):!1}const w=_=>b=>{if(!b)return new Promise((O,I)=>{u(_,(A,C)=>{if(A)return I(A);O(C)})});f(_),a(_,b)};var E=!1,S={_tasks:new qme,_createTaskItem(_,b){return{data:_,callback:b}},*[Symbol.iterator](){yield*S._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(_,b){return Array.isArray(_)?y(_)?void 0:_.map(O=>v(O,!1,!1,b)):v(_,!1,!1,b)},pushAsync(_,b){return Array.isArray(_)?y(_)?void 0:_.map(O=>v(O,!1,!0,b)):v(_,!1,!0,b)},kill(){f(),S._tasks.empty()},unshift(_,b){return Array.isArray(_)?y(_)?void 0:_.map(O=>v(O,!0,!1,b)):v(_,!0,!1,b)},unshiftAsync(_,b){return Array.isArray(_)?y(_)?void 0:_.map(O=>v(O,!0,!0,b)):v(_,!0,!0,b)},remove(_){S._tasks.remove(_)},process(){if(!E){for(E=!0;!S.paused&&i<S.concurrency&&S._tasks.length;){var _=[],b=[],O=S._tasks.length;S.payload&&(O=Math.min(O,S.payload));for(var I=0;I<O;I++){var A=S._tasks.shift();_.push(A),s.push(A),b.push(A.data)}i+=1,S._tasks.length===0&&d("empty"),i===S.concurrency&&d("saturated");var C=Zl(m(_));r(b,C)}E=!1}},length(){return S._tasks.length},running(){return i},workersList(){return s},idle(){return S._tasks.length+i===0},pause(){S.paused=!0},resume(){S.paused!==!1&&(S.paused=!1,Zu(S.process))}};return Object.defineProperties(S,{saturated:{writable:!1,value:w("saturated")},unsaturated:{writable:!1,value:w("unsaturated")},empty:{writable:!1,value:w("empty")},drain:{writable:!1,value:w("drain")},error:{writable:!1,value:w("error")}}),S}function Kme(e,t){return pC(e,1,t)}function Xme(e,t,n){return pC(e,t,n)}function Jme(e,t,n,r){r=Ql(r);var i=tt(n);return Ia(e,(s,o,a)=>{i(t,s,(u,f)=>{t=f,a(u)})},s=>r(s,t))}var Mp=Ze(Jme,4);function Ej(...e){var t=e.map(tt);return function(...n){var r=this,i=n[n.length-1];return typeof i=="function"?n.pop():i=Ad(),Mp(t,n,(s,o,a)=>{o.apply(r,s.concat((u,...f)=>{a(u,f)}))},(s,o)=>i(s,...o)),i[Xd]}}function Qme(...e){return Ej(...e.reverse())}function Zme(e,t,n,r){return dC(zs(t),e,n,r)}var k1=Ze(Zme,4);function ege(e,t,n,r){var i=tt(n);return k1(e,t,(s,o)=>{i(s,(a,...u)=>a?o(a):o(a,u))},(s,o)=>{for(var a=[],u=0;u<o.length;u++)o[u]&&(a=a.concat(...o[u]));return r(s,a)})}var Wy=Ze(ege,4);function tge(e,t,n){return Wy(e,1/0,t,n)}var yL=Ze(tge,3);function nge(e,t,n){return Wy(e,1,t,n)}var wL=Ze(nge,3);function rge(...e){return function(...t){var n=t.pop();return n(null,...e)}}function Na(e,t){return(n,r,i,s)=>{var o=!1,a;const u=tt(i);n(r,(f,d,h)=>{u(f,(v,m)=>{if(v||v===!1)return h(v);if(e(m)&&!a)return o=!0,a=t(!0,f),h(null,C1);h()})},f=>{if(f)return s(f);s(null,o?a:t(!1))})}}function ige(e,t,n){return Na(r=>r,(r,i)=>i)(js,e,t,n)}var SL=Ze(ige,3);function sge(e,t,n,r){return Na(i=>i,(i,s)=>s)(zs(t),e,n,r)}var bL=Ze(sge,4);function oge(e,t,n){return Na(r=>r,(r,i)=>i)(zs(1),e,t,n)}var xL=Ze(oge,3);function Pj(e){return(t,...n)=>tt(t)(...n,(r,...i)=>{typeof console=="object"&&(r?console.error&&console.error(r):console[e]&&i.forEach(s=>console[e](s)))})}var age=Pj("dir");function lge(e,t,n){n=Zl(n);var r=tt(e),i=tt(t),s;function o(u,...f){if(u)return n(u);u!==!1&&(s=f,i(...f,a))}function a(u,f){if(u)return n(u);if(u!==!1){if(!f)return n(null,...s);r(o)}}return a(null,!0)}var $E=Ze(lge,3);function uge(e,t,n){const r=tt(t);return $E(e,(...i)=>{const s=i.pop();r(...i,(o,a)=>s(o,!a))},n)}function Oj(e){return(t,n,r)=>e(t,r)}function cge(e,t,n){return js(e,Oj(tt(t)),n)}var EL=Ze(cge,3);function fge(e,t,n,r){return zs(t)(e,Oj(tt(n)),r)}var BE=Ze(fge,4);function dge(e,t,n){return BE(e,1,t,n)}var UE=Ze(dge,3);function Tj(e){return om(e)?e:function(...t){var n=t.pop(),r=!0;t.push((...i)=>{r?Zu(()=>n(...i)):n(...i)}),e.apply(this,t),r=!1}}function hge(e,t,n){return Na(r=>!r,r=>!r)(js,e,t,n)}var PL=Ze(hge,3);function pge(e,t,n,r){return Na(i=>!i,i=>!i)(zs(t),e,n,r)}var OL=Ze(pge,4);function vge(e,t,n){return Na(r=>!r,r=>!r)(Ia,e,t,n)}var TL=Ze(vge,3);function mge(e,t,n,r){var i=new Array(t.length);e(t,(s,o,a)=>{n(s,(u,f)=>{i[o]=!!f,a(u)})},s=>{if(s)return r(s);for(var o=[],a=0;a<t.length;a++)i[a]&&o.push(t[a]);r(null,o)})}function gge(e,t,n,r){var i=[];e(t,(s,o,a)=>{n(s,(u,f)=>{if(u)return a(u);f&&i.push({index:o,value:s}),a(u)})},s=>{if(s)return r(s);r(null,i.sort((o,a)=>o.index-a.index).map(o=>o.value))})}function A1(e,t,n,r){var i=T1(t)?mge:gge;return i(e,t,tt(n),r)}function _ge(e,t,n){return A1(js,e,t,n)}var CL=Ze(_ge,3);function yge(e,t,n,r){return A1(zs(t),e,n,r)}var kL=Ze(yge,4);function wge(e,t,n){return A1(Ia,e,t,n)}var AL=Ze(wge,3);function Sge(e,t){var n=Zl(t),r=tt(Tj(e));function i(s){if(s)return n(s);s!==!1&&r(i)}return i()}var bge=Ze(Sge,2);function xge(e,t,n,r){var i=tt(n);return k1(e,t,(s,o)=>{i(s,(a,u)=>a?o(a):o(a,{key:u,val:s}))},(s,o)=>{for(var a={},{hasOwnProperty:u}=Object.prototype,f=0;f<o.length;f++)if(o[f]){var{key:d}=o[f],{val:h}=o[f];u.call(a,d)?a[d].push(h):a[d]=[h]}return r(s,a)})}var vC=Ze(xge,4);function Ege(e,t,n){return vC(e,1/0,t,n)}function Pge(e,t,n){return vC(e,1,t,n)}var Oge=Pj("log");function Tge(e,t,n,r){r=Ql(r);var i={},s=tt(n);return zs(t)(e,(o,a,u)=>{s(o,a,(f,d)=>{if(f)return u(f);i[a]=d,u(f)})},o=>r(o,i))}var mC=Ze(Tge,4);function Cge(e,t,n){return mC(e,1/0,t,n)}function kge(e,t,n){return mC(e,1,t,n)}function Age(e,t=n=>n){var n=Object.create(null),r=Object.create(null),i=tt(e),s=sm((o,a)=>{var u=t(...o);u in n?Zu(()=>a(null,...n[u])):u in r?r[u].push(a):(r[u]=[a],i(...o,(f,...d)=>{f||(n[u]=d);var h=r[u];delete r[u];for(var v=0,m=h.length;v<m;v++)h[v](f,...d)}))});return s.memo=n,s.unmemoized=e,s}var P_;_j?P_=process.nextTick:gj?P_=setImmediate:P_=yj;var Rge=wj(P_),gC=Ze((e,t,n)=>{var r=T1(t)?[]:{};e(t,(i,s,o)=>{tt(i)((a,...u)=>{u.length<2&&([u]=u),r[s]=u,o(a)})},i=>n(i,r))},3);function Ige(e,t){return gC(js,e,t)}function Mge(e,t,n){return gC(zs(t),e,n)}function Cj(e,t){var n=tt(e);return pC((r,i)=>{n(r[0],i)},t,1)}class Dge{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(t){let n;for(;t>0&&yb(this.heap[t],this.heap[n=RL(t)]);){let r=this.heap[t];this.heap[t]=this.heap[n],this.heap[n]=r,t=n}}percDown(t){let n;for(;(n=Lge(t))<this.heap.length&&(n+1<this.heap.length&&yb(this.heap[n+1],this.heap[n])&&(n=n+1),!yb(this.heap[t],this.heap[n]));){let r=this.heap[t];this.heap[t]=this.heap[n],this.heap[n]=r,t=n}}push(t){t.pushCount=++this.pushCount,this.heap.push(t),this.percUp(this.heap.length-1)}unshift(t){return this.heap.push(t)}shift(){let[t]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),t}toArray(){return[...this]}*[Symbol.iterator](){for(let t=0;t<this.heap.length;t++)yield this.heap[t].data}remove(t){let n=0;for(let r=0;r<this.heap.length;r++)t(this.heap[r])||(this.heap[n]=this.heap[r],n++);this.heap.splice(n);for(let r=RL(this.heap.length-1);r>=0;r--)this.percDown(r);return this}}function Lge(e){return(e<<1)+1}function RL(e){return(e+1>>1)-1}function yb(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function Fge(e,t){var n=Cj(e,t),{push:r,pushAsync:i}=n;n._tasks=new Dge,n._createTaskItem=({data:o,priority:a},u)=>({data:o,priority:a,callback:u});function s(o,a){return Array.isArray(o)?o.map(u=>({data:u,priority:a})):{data:o,priority:a}}return n.push=function(o,a=0,u){return r(s(o,a),u)},n.pushAsync=function(o,a=0,u){return i(s(o,a),u)},delete n.unshift,delete n.unshiftAsync,n}function Nge(e,t){if(t=Ql(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,r=e.length;n<r;n++)tt(e[n])(t)}var $ge=Ze(Nge,2);function IL(e,t,n,r){var i=[...e].reverse();return Mp(i,t,n,r)}function VE(e){var t=tt(e);return sm(function(r,i){return r.push((s,...o)=>{let a={};if(s&&(a.error=s),o.length>0){var u=o;o.length<=1&&([u]=o),a.value=u}i(null,a)}),t.apply(this,r)})}function Bge(e){var t;return Array.isArray(e)?t=e.map(VE):(t={},Object.keys(e).forEach(n=>{t[n]=VE.call(this,e[n])})),t}function _C(e,t,n,r){const i=tt(n);return A1(e,t,(s,o)=>{i(s,(a,u)=>{o(a,!u)})},r)}function Uge(e,t,n){return _C(js,e,t,n)}var Vge=Ze(Uge,3);function jge(e,t,n,r){return _C(zs(t),e,n,r)}var Wge=Ze(jge,4);function zge(e,t,n){return _C(Ia,e,t,n)}var Hge=Ze(zge,3);function kj(e){return function(){return e}}const jE=5,Aj=0;function WE(e,t,n){var r={times:jE,intervalFunc:kj(Aj)};if(arguments.length<3&&typeof e=="function"?(n=t||Ad(),t=e):(Gge(r,e),n=n||Ad()),typeof t!="function")throw new Error("Invalid arguments for async.retry");var i=tt(t),s=1;function o(){i((a,...u)=>{a!==!1&&(a&&s++<r.times&&(typeof r.errorFilter!="function"||r.errorFilter(a))?setTimeout(o,r.intervalFunc(s-1)):n(a,...u))})}return o(),n[Xd]}function Gge(e,t){if(typeof t=="object")e.times=+t.times||jE,e.intervalFunc=typeof t.interval=="function"?t.interval:kj(+t.interval||Aj),e.errorFilter=t.errorFilter;else if(typeof t=="number"||typeof t=="string")e.times=+t||jE;else throw new Error("Invalid arguments for async.retry")}function Yge(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;om(t)&&(n+=1);var r=tt(t);return sm((i,s)=>{(i.length<n-1||s==null)&&(i.push(s),s=Ad());function o(a){r(...i,a)}return e?WE(e,o,s):WE(o,s),s[Xd]})}function qge(e,t){return gC(Ia,e,t)}function Kge(e,t,n){return Na(Boolean,r=>r)(js,e,t,n)}var ML=Ze(Kge,3);function Xge(e,t,n,r){return Na(Boolean,i=>i)(zs(t),e,n,r)}var DL=Ze(Xge,4);function Jge(e,t,n){return Na(Boolean,r=>r)(Ia,e,t,n)}var LL=Ze(Jge,3);function Qge(e,t,n){var r=tt(t);return hC(e,(s,o)=>{r(s,(a,u)=>{if(a)return o(a);o(a,{value:s,criteria:u})})},(s,o)=>{if(s)return n(s);n(null,o.sort(i).map(a=>a.value))});function i(s,o){var a=s.criteria,u=o.criteria;return a<u?-1:a>u?1:0}}var Zge=Ze(Qge,3);function e_e(e,t,n){var r=tt(e);return sm((i,s)=>{var o=!1,a;function u(){var f=e.name||"anonymous",d=new Error('Callback function "'+f+'" timed out.');d.code="ETIMEDOUT",n&&(d.info=n),o=!0,s(d)}i.push((...f)=>{o||(s(...f),clearTimeout(a))}),a=setTimeout(u,t),r(...i)})}function t_e(e){for(var t=Array(e);e--;)t[e]=e;return t}function yC(e,t,n,r){var i=tt(n);return k1(t_e(e),t,i,r)}function n_e(e,t,n){return yC(e,1/0,t,n)}function r_e(e,t,n){return yC(e,1,t,n)}function i_e(e,t,n,r){arguments.length<=3&&typeof t=="function"&&(r=n,n=t,t=Array.isArray(e)?[]:{}),r=Ql(r||Ad());var i=tt(n);return js(e,(s,o,a)=>{i(t,s,o,a)},s=>r(s,t)),r[Xd]}function s_e(e,t){var n=null,r;return UE(e,(i,s)=>{tt(i)((o,...a)=>{if(o===!1)return s(o);a.length<2?[r]=a:r=a,n=o,s(o?null:{})})},()=>t(n,r))}var o_e=Ze(s_e);function a_e(e){return(...t)=>(e.unmemoized||e)(...t)}function l_e(e,t,n){n=Zl(n);var r=tt(t),i=tt(e),s=[];function o(u,...f){if(u)return n(u);s=f,u!==!1&&i(a)}function a(u,f){if(u)return n(u);if(u!==!1){if(!f)return n(null,...s);r(o)}}return i(a)}var zE=Ze(l_e,3);function u_e(e,t,n){const r=tt(e);return zE(i=>r((s,o)=>i(s,!o)),t,n)}function c_e(e,t){if(t=Ql(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function r(s){var o=tt(e[n++]);o(...s,Zl(i))}function i(s,...o){if(s!==!1){if(s||n===e.length)return t(s,...o);r(o)}}r([])}var f_e=Ze(c_e),wb={apply:xme,applyEach:Nme,applyEachSeries:Ume,asyncify:NE,auto:xj,autoInject:Yme,cargo:Kme,cargoQueue:Xme,compose:Qme,concat:yL,concatLimit:Wy,concatSeries:wL,constant:rge,detect:SL,detectLimit:bL,detectSeries:xL,dir:age,doUntil:uge,doWhilst:$E,each:EL,eachLimit:BE,eachOf:js,eachOfLimit:jy,eachOfSeries:Ia,eachSeries:UE,ensureAsync:Tj,every:PL,everyLimit:OL,everySeries:TL,filter:CL,filterLimit:kL,filterSeries:AL,forever:bge,groupBy:Ege,groupByLimit:vC,groupBySeries:Pge,log:Oge,map:hC,mapLimit:k1,mapSeries:bj,mapValues:Cge,mapValuesLimit:mC,mapValuesSeries:kge,memoize:Age,nextTick:Rge,parallel:Ige,parallelLimit:Mge,priorityQueue:Fge,queue:Cj,race:$ge,reduce:Mp,reduceRight:IL,reflect:VE,reflectAll:Bge,reject:Vge,rejectLimit:Wge,rejectSeries:Hge,retry:WE,retryable:Yge,seq:Ej,series:qge,setImmediate:Zu,some:ML,someLimit:DL,someSeries:LL,sortBy:Zge,timeout:e_e,times:n_e,timesLimit:yC,timesSeries:r_e,transform:i_e,tryEach:o_e,unmemoize:a_e,until:u_e,waterfall:f_e,whilst:zE,all:PL,allLimit:OL,allSeries:TL,any:ML,anyLimit:DL,anySeries:LL,find:SL,findLimit:bL,findSeries:xL,flatMap:yL,flatMapLimit:Wy,flatMapSeries:wL,forEach:EL,forEachSeries:UE,forEachLimit:BE,forEachOf:js,forEachOfSeries:Ia,forEachOfLimit:jy,inject:Mp,foldl:Mp,foldr:IL,select:CL,selectLimit:kL,selectSeries:AL,wrapSync:NE,during:zE,doDuring:$E},O_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.initDataLayer=e.gtag=e.default=void 0;var t=e.initDataLayer=function(){window.dataLayer=window.dataLayer||[]};e.install=function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o="ga-gtag";if(!document.getElementById(o)){var a=document,u=a.head,f=document.createElement("script");f.id=o,f.async=!0,f.src="https://www.googletagmanager.com/gtag/js?id=".concat(i),u.insertBefore(f,u.firstChild),t(),n("js",new Date),n("config",i,s)}};var n=e.gtag=function(){window.dataLayer.push(arguments)};e.default=n})(O_);const G=typeof window<"u"?window:void 0,ni=typeof globalThis<"u"?globalThis:G,Rj=Array.prototype,FL=Rj.forEach,NL=Rj.indexOf,Ei=ni==null?void 0:ni.navigator,Pe=ni==null?void 0:ni.document,Zr=ni==null?void 0:ni.location,wC=ni==null?void 0:ni.fetch,SC=ni!=null&&ni.XMLHttpRequest&&"withCredentials"in new ni.XMLHttpRequest?ni.XMLHttpRequest:void 0,$L=ni==null?void 0:ni.AbortController,Gn=Ei==null?void 0:Ei.userAgent,at=G??{},fl={DEBUG:!1,LIB_VERSION:"1.176.0"},d_e=Array.isArray,Ij=Object.prototype,Mj=Ij.hasOwnProperty,R1=Ij.toString,Fn=d_e||function(e){return R1.call(e)==="[object Array]"},is=function(e){return typeof e=="function"},En=function(e){return e===Object(e)&&!Fn(e)},T_=function(e){if(En(e)){for(const t in e)if(Mj.call(e,t))return!1;return!0}return!1},ke=function(e){return e===void 0},br=function(e){return R1.call(e)=="[object String]"},BL=function(e){return br(e)&&e.trim().length===0},eu=function(e){return e===null},vn=function(e){return ke(e)||eu(e)},Si=function(e){return R1.call(e)=="[object Number]"},Vu=function(e){return R1.call(e)==="[object Boolean]"},h_e=e=>e instanceof FormData,UL="[PostHog.js]",ae={_log:function(e){if(G&&(fl.DEBUG||at.POSTHOG_DEBUG)&&!ke(G.console)&&G.console){const i="__rrweb_original__"in G.console[e]?G.console[e].__rrweb_original__:G.console[e];for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i(UL,...n)}},info:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ae._log("log",...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ae._log("warn",...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];ae._log("error",...t)},critical:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error(UL,...t)},uninitializedWarning:e=>{ae.error(`You must initialize PostHog before calling ${e}`)}},VL=(e,t,n)=>{if(e.config.disable_external_dependency_loading)return ae.warn(`${t} was requested but loading of external scripts is disabled.`),n("Loading of external scripts is disabled");const r=()=>{if(!Pe)return n("document not found");const i=Pe.createElement("script");i.type="text/javascript",i.crossOrigin="anonymous",i.src=t,i.onload=a=>n(void 0,a),i.onerror=a=>n(a);const s=Pe.querySelectorAll("body > script");var o;s.length>0?(o=s[0].parentNode)===null||o===void 0||o.insertBefore(i,s[0]):Pe.body.appendChild(i)};Pe!=null&&Pe.body?r():Pe==null||Pe.addEventListener("DOMContentLoaded",r)};at.__PosthogExtensions__=at.__PosthogExtensions__||{},at.__PosthogExtensions__.loadExternalDependency=(e,t,n)=>{let r=`/static/${t}.js?v=${e.version}`;t==="toolbar"&&(r=`${r}?&=${Math.floor(Date.now()/3e5)*3e5}`);const i=e.requestRouter.endpointFor("assets",r);VL(e,i,n)},at.__PosthogExtensions__.loadSiteApp=(e,t,n)=>{const r=e.requestRouter.endpointFor("api",t);VL(e,r,n)};const zy={},I1=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function Zf(e,t,n){if(Fn(e)){if(FL&&e.forEach===FL)e.forEach(t,n);else if("length"in e&&e.length===+e.length){for(let r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r)===zy)return}}}function Gt(e,t,n){if(!vn(e)){if(Fn(e))return Zf(e,t,n);if(h_e(e)){for(const r of e.entries())if(t.call(n,r[1],r[0])===zy)return}else for(const r in e)if(Mj.call(e,r)&&t.call(n,e[r],r)===zy)return}}const Ur=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Zf(n,function(i){for(const s in i)i[s]!==void 0&&(e[s]=i[s])}),e};function ft(e,t){return e.indexOf(t)!==-1}function C_(e){const t=Object.keys(e);let n=t.length;const r=new Array(n);for(;n--;)r[n]=[t[n],e[t[n]]];return r}const jL=function(e){try{return e()}catch{return}},p_e=function(e){return function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this,n)}catch(i){ae.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),ae.critical(i)}}},HE=function(e){const t={};return Gt(e,function(n,r){br(n)&&n.length>0&&(t[r]=n)}),t},GE=function(e){return e.replace(/^\$/,"")};function v_e(e,t){return function(n,r){const i=new Set;return function s(o,a){if(o!==Object(o))return r?r(o,a):o;if(i.has(o))return;let u;return i.add(o),Fn(o)?(u=[],Zf(o,f=>{u.push(s(f))})):(u={},Gt(o,(f,d)=>{i.has(f)||(u[d]=s(f,d))})),u}(n)}(e,n=>br(n)&&!eu(t)?n.slice(0,t):n)}const m_e=function(e){let t,n,r,i="",s=0;for(t=n=0,s=(e=(e+"").replace(/\r\n/g,`
`).replace(/\r/g,`
`)).length,r=0;r<s;r++){const o=e.charCodeAt(r);let a=null;o<128?n++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),eu(a)||(n>t&&(i+=e.substring(t,n)),i+=a,t=n=r+1)}return n>t&&(i+=e.substring(t,e.length)),i},la=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,i,s){if(t)if(t.addEventListener&&!i)t.addEventListener(n,r,!!s);else{const o="on"+n,a=t[o];t[o]=function(u,f,d){return function(h){if(!(h=h||e(G==null?void 0:G.event)))return;let v,m=!0;is(d)&&(v=d(h));const y=f.call(u,h);return v!==!1&&y!==!1||(m=!1),m}}(t,r,a)}else ae.error("No valid element provided to register_event")}}();function g_e(e){const t=e==null?void 0:e.hostname;return!!br(t)&&t.split(".").slice(-2).join(".")!=="herokuapp.com"}function Dj(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}let As;(function(e){e.GZipJS="gzip-js",e.Base64="base64"})(As||(As={}));const Lj="$people_distinct_id",op="__alias",ap="__timers",WL="$autocapture_disabled_server_side",YE="$heatmaps_enabled_server_side",zL="$exception_capture_enabled_server_side",HL="$exception_capture_endpoint_suffix",GL="$web_vitals_enabled_server_side",YL="$web_vitals_allowed_metrics",qE="$session_recording_enabled_server_side",qL="$console_log_recording_enabled_server_side",KL="$session_recording_network_payload_capture",XL="$session_recording_canvas_recording",JL="$replay_sample_rate",QL="$replay_minimum_duration",Hy="$sesid",lp="$session_is_sampled",Ag="$session_recording_url_trigger_activated_session",Rg="$session_recording_url_trigger_status",Df="$enabled_feature_flags",KE="$early_access_features",Lf="$stored_person_properties",dl="$stored_group_properties",XE="$surveys",Ig="$surveys_activated",Gy="$flag_call_reported",na="$user_state",JE="$client_session_props",QE="$capture_rate_limit",ZE="$initial_campaign_params",eP="$initial_referrer_info",ZL="$initial_person_info",Yy="$epp",tP="__POSTHOG_TOOLBAR__",__e=[Lj,op,"__cmpns",ap,qE,YE,Hy,Df,na,KE,dl,Lf,XE,Gy,JE,QE,ZE,eP,Yy],Sb="$active_feature_flags",Mg="$override_feature_flags",e2="$feature_flag_payloads",t2=e=>{const t={};for(const[n,r]of C_(e||{}))r&&(t[n]=r);return t};class y_e{constructor(t){this.instance=t,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}getFlags(){return Object.keys(this.getFlagVariants())}getFlagVariants(){const t=this.instance.get_property(Df),n=this.instance.get_property(Mg);if(!n)return t||{};const r=Ur({},t),i=Object.keys(n);for(let s=0;s<i.length;s++)r[i[s]]=n[i[s]];return this._override_warning||(ae.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:n,finalFlags:r}),this._override_warning=!0),r}getFlagPayloads(){return this.instance.get_property(e2)||{}}reloadFeatureFlags(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.reloadFeatureFlagsInAction=t}resetRequestQueue(){this.reloadFeatureFlagsQueued=!1}_startReloadTimer(){this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(()=>{!this.reloadFeatureFlagsInAction&&this.reloadFeatureFlagsQueued&&(this.reloadFeatureFlagsQueued=!1,this._reloadFeatureFlagsRequest())},5)}_reloadFeatureFlagsRequest(){if(this.instance.config.advanced_disable_feature_flags)return;this.setReloadingPaused(!0);const t=this.instance.config.token,n=this.instance.get_property(Lf),r=this.instance.get_property(dl),i={token:t,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:n,group_properties:r,disable_flags:this.instance.config.advanced_disable_feature_flags||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:i,compression:this.instance.config.disable_compression?void 0:As.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:s=>{var o;this.setReloadingPaused(!1);let a=!0;s.statusCode===200&&(this.$anon_distinct_id=void 0,a=!1),this.receivedFeatureFlags((o=s.json)!==null&&o!==void 0?o:{},a),this._startReloadTimer()}})}getFeatureFlag(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0))return void ae.warn('getFeatureFlag for key "'+t+`" failed. Feature flags didn't load in time.`);const r=this.getFlagVariants()[t],i=`${r}`,s=this.instance.get_property(Gy)||{};var o;return!n.send_event&&"send_event"in n||t in s&&s[t].includes(i)||(Fn(s[t])?s[t].push(i):s[t]=[i],(o=this.instance.persistence)===null||o===void 0||o.register({[Gy]:s}),this.instance.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:r})),r}getFeatureFlagPayload(t){return this.getFlagPayloads()[t]}isFeatureEnabled(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(t,n);ae.warn('isFeatureEnabled for key "'+t+`" failed. Feature flags didn't load in time.`)}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(n=>n!==t)}receivedFeatureFlags(t,n){if(!this.instance.persistence)return;this.instance.decideEndpointWasHit=!0;const r=this.getFlagVariants(),i=this.getFlagPayloads();(function(s,o){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=s.featureFlags,d=s.featureFlagPayloads;if(!f)return;if(Fn(f)){const m={};if(f)for(let y=0;y<f.length;y++)m[f[y]]=!0;return void(o&&o.register({[Sb]:f,[Df]:m}))}let h=f,v=d;s.errorsWhileComputingFlags&&(h={...a,...h},v={...u,...v}),o&&o.register({[Sb]:Object.keys(t2(h)),[Df]:h||{},[e2]:v||{}})})(t,this.instance.persistence,r,i),this._fireFeatureFlagsCallbacks(n)}override(t){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!this.instance.__loaded||!this.instance.persistence)return ae.uninitializedWarning("posthog.feature_flags.override");if(this._override_warning=n,t===!1)this.instance.persistence.unregister(Mg);else if(Fn(t)){const r={};for(let i=0;i<t.length;i++)r[t[i]]=!0;this.instance.persistence.register({[Mg]:r})}else this.instance.persistence.register({[Mg]:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.instance.decideEndpointWasHit){const{flags:n,flagVariants:r}=this._prepareFeatureFlagsForCallbacks();t(n,r)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,n){var r;const i={[`$feature_enrollment/${t}`]:n};this.instance.capture("$feature_enrollment_update",{$feature_flag:t,$feature_enrollment:n,$set:i}),this.setPersonPropertiesForFlags(i,!1);const s={...this.getFlagVariants(),[t]:n};(r=this.instance.persistence)===null||r===void 0||r.register({[Sb]:Object.keys(t2(s)),[Df]:s}),this._fireFeatureFlagsCallbacks()}getEarlyAccessFeatures(t){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];const r=this.instance.get_property(KE);if(r&&!n)return t(r);this.instance._send_request({transport:"XHR",url:this.instance.requestRouter.endpointFor("api",`/api/early_access_features/?token=${this.instance.config.token}`),method:"GET",callback:i=>{var s;if(!i.json)return;const o=i.json.earlyAccessFeatures;return(s=this.instance.persistence)===null||s===void 0||s.register({[KE]:o}),t(o)}})}_prepareFeatureFlagsForCallbacks(){const t=this.getFlags(),n=this.getFlagVariants();return{flags:t.filter(r=>n[r]),flagVariants:Object.keys(n).filter(r=>n[r]).reduce((r,i)=>(r[i]=n[i],r),{})}}_fireFeatureFlagsCallbacks(t){const{flags:n,flagVariants:r}=this._prepareFeatureFlagsForCallbacks();this.featureFlagEventHandlers.forEach(i=>i(n,r,{errorsLoading:t}))}setPersonPropertiesForFlags(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const r=this.instance.get_property(Lf)||{};this.instance.register({[Lf]:{...r,...t}}),n&&this.instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this.instance.unregister(Lf)}setGroupPropertiesForFlags(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const r=this.instance.get_property(dl)||{};Object.keys(r).length!==0&&Object.keys(r).forEach(i=>{r[i]={...r[i],...t[i]},delete t[i]}),this.instance.register({[dl]:{...r,...t}}),n&&this.instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){const n=this.instance.get_property(dl)||{};this.instance.register({[dl]:{...n,[t]:{}}})}else this.instance.unregister(dl)}}/**
 * uuidv7: An experimental implementation of the proposed UUID Version 7
 *
 * @license Apache-2.0
 * @copyright 2021-2023 LiosK
 * @packageDocumentation
 *
 * from https://github.com/LiosK/uuidv7/blob/e501462ea3d23241de13192ceae726956f9b3b7d/src/index.ts
 */Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return Si(e)&&isFinite(e)&&Math.floor(e)===e});const n2="0123456789abcdef";class qy{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,n,r,i){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(r)||!Number.isInteger(i)||t<0||n<0||r<0||i<0||t>0xffffffffffff||n>4095||r>1073741823||i>4294967295)throw new RangeError("invalid field value");const s=new Uint8Array(16);return s[0]=t/2**40,s[1]=t/2**32,s[2]=t/2**24,s[3]=t/65536,s[4]=t/256,s[5]=t,s[6]=112|n>>>8,s[7]=n,s[8]=128|r>>>24,s[9]=r>>>16,s[10]=r>>>8,s[11]=r,s[12]=i>>>24,s[13]=i>>>16,s[14]=i>>>8,s[15]=i,new qy(s)}toString(){let t="";for(let n=0;n<this.bytes.length;n++)t=t+n2.charAt(this.bytes[n]>>>4)+n2.charAt(15&this.bytes[n]),n!==3&&n!==5&&n!==7&&n!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new qy(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(let n=0;n<16;n++){const r=this.bytes[n]-t.bytes[n];if(r!==0)return Math.sign(r)}return 0}}class w_e{constructor(){K(this,"timestamp",0);K(this,"counter",0);K(this,"random",new S_e)}generate(){const t=this.generateOrAbort();if(ke(t)){this.timestamp=0;const n=this.generateOrAbort();if(ke(n))throw new Error("Could not generate UUID after timestamp reset");return n}return t}generateOrAbort(){const t=Date.now();if(t>this.timestamp)this.timestamp=t,this.resetCounter();else{if(!(t+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return qy.fromFieldsV7(this.timestamp,Math.trunc(this.counter/2**30),this.counter&2**30-1,this.random.nextUint32())}resetCounter(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}let r2,Fj=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(let t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};G&&!ke(G.crypto)&&crypto.getRandomValues&&(Fj=e=>crypto.getRandomValues(e));class S_e{constructor(){K(this,"buffer",new Uint32Array(8));K(this,"cursor",1/0)}nextUint32(){return this.cursor>=this.buffer.length&&(Fj(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}const xl=()=>b_e().toString(),b_e=()=>(r2||(r2=new w_e)).generate(),x_e="Thu, 01 Jan 1970 00:00:00 GMT";let qh="";const E_e=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i;function P_e(e,t){if(t){let n=function(r){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pe;if(qh)return qh;if(!i||["localhost","127.0.0.1"].includes(r))return"";const s=r.split(".");let o=Math.min(s.length,8);const a="dmn_chk_"+xl(),u=new RegExp("(^|;)\\s*"+a+"=1");for(;!qh&&o--;){const f=s.slice(o).join("."),d=a+"=1;domain=."+f;i.cookie=d,u.test(i.cookie)&&(i.cookie=d+";expires="+x_e,qh=f)}return qh}(e);if(!n){const r=(i=>{const s=i.match(E_e);return s?s[0]:""})(e);r!==n&&ae.info("Warning: cookie subdomain discovery mismatch",r,n),n=r}return n?"; domain=."+n:""}return""}const xa={is_supported:()=>!!Pe,error:function(e){ae.error("cookieStore error: "+e)},get:function(e){if(Pe){try{const t=e+"=",n=Pe.cookie.split(";").filter(r=>r.length);for(let r=0;r<n.length;r++){let i=n[r];for(;i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}}catch{}return null}},parse:function(e){let t;try{t=JSON.parse(xa.get(e))||{}}catch{}return t},set:function(e,t,n,r,i){if(Pe)try{let s="",o="";const a=P_e(Pe.location.hostname,r);if(n){const f=new Date;f.setTime(f.getTime()+24*n*60*60*1e3),s="; expires="+f.toUTCString()}i&&(o="; secure");const u=e+"="+encodeURIComponent(JSON.stringify(t))+s+"; SameSite=Lax; path=/"+a+o;return u.length>3686.4&&ae.warn("cookieStore warning: large cookie, len="+u.length),Pe.cookie=u,u}catch{return}},remove:function(e,t){try{xa.set(e,"",-1,t)}catch{return}}};let bb=null;const Ln={is_supported:function(){if(!eu(bb))return bb;let e=!0;if(ke(G))e=!1;else try{const t="__mplssupport__",n="xyz";Ln.set(t,n),Ln.get(t)!=='"xyz"'&&(e=!1),Ln.remove(t)}catch{e=!1}return e||ae.error("localStorage unsupported; falling back to cookie store"),bb=e,e},error:function(e){ae.error("localStorage error: "+e)},get:function(e){try{return G==null?void 0:G.localStorage.getItem(e)}catch(t){Ln.error(t)}return null},parse:function(e){try{return JSON.parse(Ln.get(e))||{}}catch{}return null},set:function(e,t){try{G==null||G.localStorage.setItem(e,JSON.stringify(t))}catch(n){Ln.error(n)}},remove:function(e){try{G==null||G.localStorage.removeItem(e)}catch(t){Ln.error(t)}}},O_e=["distinct_id",Hy,lp,Yy],Dg={...Ln,parse:function(e){try{let t={};try{t=xa.parse(e)||{}}catch{}const n=Ur(t,JSON.parse(Ln.get(e)||"{}"));return Ln.set(e,n),n}catch{}return null},set:function(e,t,n,r,i,s){try{Ln.set(e,t,void 0,void 0,s);const o={};O_e.forEach(a=>{t[a]&&(o[a]=t[a])}),Object.keys(o).length&&xa.set(e,o,n,r,i,s)}catch(o){Ln.error(o)}},remove:function(e,t){try{G==null||G.localStorage.removeItem(e),xa.remove(e,t)}catch(n){Ln.error(n)}}},Lg={},T_e={is_supported:function(){return!0},error:function(e){ae.error("memoryStorage error: "+e)},get:function(e){return Lg[e]||null},parse:function(e){return Lg[e]||null},set:function(e,t){Lg[e]=t},remove:function(e){delete Lg[e]}};let xu=null;const ir={is_supported:function(){if(!eu(xu))return xu;if(xu=!0,ke(G))xu=!1;else try{const e="__support__",t="xyz";ir.set(e,t),ir.get(e)!=='"xyz"'&&(xu=!1),ir.remove(e)}catch{xu=!1}return xu},error:function(e){ae.error("sessionStorage error: ",e)},get:function(e){try{return G==null?void 0:G.sessionStorage.getItem(e)}catch(t){ir.error(t)}return null},parse:function(e){try{return JSON.parse(ir.get(e))||null}catch{}return null},set:function(e,t){try{G==null||G.sessionStorage.setItem(e,JSON.stringify(t))}catch(n){ir.error(n)}},remove:function(e){try{G==null||G.sessionStorage.removeItem(e)}catch(t){ir.error(t)}}},C_e=["localhost","127.0.0.1"],Dp=e=>{const t=Pe==null?void 0:Pe.createElement("a");return ke(t)?null:(t.href=e,t)},Rd=function(e,t){return!!function(n){try{new RegExp(n)}catch{return!1}return!0}(t)&&new RegExp(t).test(e)},k_e=function(e){let t,n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&";const i=[];return Gt(e,function(s,o){ke(s)||ke(o)||o==="undefined"||(t=encodeURIComponent((a=>a instanceof File)(s)?s.name:s.toString()),n=encodeURIComponent(o),i[i.length]=n+"="+t)}),i.join(r)},Ky=function(e,t){const n=((e.split("#")[0]||"").split("?")[1]||"").split("&");let r;for(let i=0;i<n.length;i++){const s=n[i].split("=");if(s[0]===t){r=s;break}}if(!Fn(r)||r.length<2)return"";{let i=r[1];try{i=decodeURIComponent(i)}catch{ae.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")}},Xy=function(e,t){const n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},ls="Mobile",Jy="iOS",_o="Android",Ev="Tablet",Nj=_o+" "+Ev,$j="iPad",Bj="Apple",Uj=Bj+" Watch",Pv="Safari",Id="BlackBerry",Vj="Samsung",jj=Vj+"Browser",Wj=Vj+" Internet",Fl="Chrome",A_e=Fl+" OS",zj=Fl+" "+Jy,bC="Internet Explorer",Hj=bC+" "+ls,xC="Opera",R_e=xC+" Mini",EC="Edge",Gj="Microsoft "+EC,ed="Firefox",Yj=ed+" "+Jy,Ov="Nintendo",Tv="PlayStation",td="Xbox",qj=_o+" "+ls,Kj=ls+" "+Pv,up="Windows",nP=up+" Phone",i2="Nokia",rP="Ouya",Xj="Generic",I_e=Xj+" "+ls.toLowerCase(),Jj=Xj+" "+Ev.toLowerCase(),iP="Konqueror",Nr="(\\d+(\\.\\d+)?)",xb=new RegExp("Version/"+Nr),M_e=new RegExp(td,"i"),D_e=new RegExp(Tv+" \\w+","i"),L_e=new RegExp(Ov+" \\w+","i"),PC=new RegExp(Id+"|PlayBook|BB10","i"),F_e={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},N_e=(e,t)=>t&&ft(t,Bj)||function(n){return ft(n,Pv)&&!ft(n,Fl)&&!ft(n,_o)}(e),s2=function(e,t){return t=t||"",ft(e," OPR/")&&ft(e,"Mini")?R_e:ft(e," OPR/")?xC:PC.test(e)?Id:ft(e,"IE"+ls)||ft(e,"WPDesktop")?Hj:ft(e,jj)?Wj:ft(e,EC)||ft(e,"Edg/")?Gj:ft(e,"FBIOS")?"Facebook "+ls:ft(e,"UCWEB")||ft(e,"UCBrowser")?"UC Browser":ft(e,"CriOS")?zj:ft(e,"CrMo")?Fl:ft(e,_o)&&ft(e,Pv)?qj:ft(e,Fl)?Fl:ft(e,"FxiOS")?Yj:ft(e.toLowerCase(),iP.toLowerCase())?iP:N_e(e,t)?ft(e,ls)?Kj:Pv:ft(e,ed)?ed:ft(e,"MSIE")||ft(e,"Trident/")?bC:ft(e,"Gecko")?ed:""},$_e={[Hj]:[new RegExp("rv:"+Nr)],[Gj]:[new RegExp(EC+"?\\/"+Nr)],[Fl]:[new RegExp("("+Fl+"|CrMo)\\/"+Nr)],[zj]:[new RegExp("CriOS\\/"+Nr)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Nr)],[Pv]:[xb],[Kj]:[xb],[xC]:[new RegExp("(Opera|OPR)\\/"+Nr)],[ed]:[new RegExp(ed+"\\/"+Nr)],[Yj]:[new RegExp("FxiOS\\/"+Nr)],[iP]:[new RegExp("Konqueror[:/]?"+Nr,"i")],[Id]:[new RegExp(Id+" "+Nr),xb],[qj]:[new RegExp("android\\s"+Nr,"i")],[Wj]:[new RegExp(jj+"\\/"+Nr)],[bC]:[new RegExp("(rv:|MSIE )"+Nr)],Mozilla:[new RegExp("rv:"+Nr)]},o2=[[new RegExp(td+"; "+td+" (.*?)[);]","i"),e=>[td,e&&e[1]||""]],[new RegExp(Ov,"i"),[Ov,""]],[new RegExp(Tv,"i"),[Tv,""]],[PC,[Id,""]],[new RegExp(up,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[nP,""];if(new RegExp(ls).test(t)&&!/IEMobile\b/.test(t))return[up+" "+ls,""];const n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){const r=n[1];let i=F_e[r]||"";return/arm/i.test(t)&&(i="RT"),[up,i]}return[up,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>{if(e&&e[3]){const t=[e[3],e[4],e[5]||"0"];return[Jy,t.join(".")]}return[Jy,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{let t="";return e&&e.length>=3&&(t=ke(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+_o+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+_o+")","i"),e=>{if(e&&e[2]){const t=[e[2],e[3],e[4]||"0"];return[_o,t.join(".")]}return[_o,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{const t=["Mac OS X",""];if(e&&e[1]){const n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[A_e,""]],[/Linux|debian/i,["Linux",""]]],a2=function(e){return L_e.test(e)?Ov:D_e.test(e)?Tv:M_e.test(e)?td:new RegExp(rP,"i").test(e)?rP:new RegExp("("+nP+"|WPDesktop)","i").test(e)?nP:/iPad/.test(e)?$j:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?Uj:PC.test(e)?Id:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(i2,"i").test(e)?i2:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(ls).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?_o:Nj:_o:new RegExp("(pda|"+ls+")","i").test(e)?I_e:new RegExp(Ev,"i").test(e)&&!new RegExp(Ev+" pc","i").test(e)?Jj:""},Fg="https?://(.*)",B_e=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","gad_source","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","mc_cid","igshid","ttclid","rdt_cid"],Mn={campaignParams:function(e){return Pe?this._campaignParamsFromUrl(Pe.URL,e):{}},_campaignParamsFromUrl:function(e,t){const n=B_e.concat(t||[]),r={};return Gt(n,function(i){const s=Ky(e,i);r[i]=s||null}),r},_searchEngine:function(e){return e?e.search(Fg+"google.([^/?]*)")===0?"google":e.search(Fg+"bing.com")===0?"bing":e.search(Fg+"yahoo.com")===0?"yahoo":e.search(Fg+"duckduckgo.com")===0?"duckduckgo":null:null},_searchInfoFromReferrer:function(e){const t=Mn._searchEngine(e),n=t!="yahoo"?"q":"p",r={};if(!eu(t)){r.$search_engine=t;const i=Pe?Ky(Pe.referrer,n):"";i.length&&(r.ph_keyword=i)}return r},searchInfo:function(){const e=Pe==null?void 0:Pe.referrer;return e?this._searchInfoFromReferrer(e):{}},browser:s2,browserVersion:function(e,t){const n=s2(e,t),r=$_e[n];if(ke(r))return null;for(let i=0;i<r.length;i++){const s=r[i],o=e.match(s);if(o)return parseFloat(o[o.length-2])}return null},browserLanguage:function(){return navigator.language||navigator.userLanguage},os:function(e){for(let t=0;t<o2.length;t++){const[n,r]=o2[t],i=n.exec(e),s=i&&(is(r)?r(i,e):r);if(s)return s}return["",""]},device:a2,deviceType:function(e){const t=a2(e);return t===$j||t===Nj||t==="Kobo"||t==="Kindle Fire"||t===Jj?Ev:t===Ov||t===td||t===Tv||t===rP?"Console":t===Uj?"Wearable":t?ls:"Desktop"},referrer:function(){return(Pe==null?void 0:Pe.referrer)||"$direct"},referringDomain:function(){var e;return Pe!=null&&Pe.referrer&&((e=Dp(Pe.referrer))===null||e===void 0?void 0:e.host)||"$direct"},referrerInfo:function(){return{$referrer:this.referrer(),$referring_domain:this.referringDomain()}},initialPersonInfo:function(){return{r:this.referrer(),u:Zr==null?void 0:Zr.href}},initialPersonPropsFromInfo:function(e){var t;const{r:n,u:r}=e,i={$initial_referrer:n,$initial_referring_domain:n==null?void 0:n=="$direct"?"$direct":(t=Dp(n))===null||t===void 0?void 0:t.host};if(r){i.$initial_current_url=r;const s=Dp(r);i.$initial_host=s==null?void 0:s.host,i.$initial_pathname=s==null?void 0:s.pathname,Gt(this._campaignParamsFromUrl(r),function(o,a){i["$initial_"+GE(a)]=o})}return n&&Gt(this._searchInfoFromReferrer(n),function(s,o){i["$initial_"+GE(o)]=s}),i},properties:function(){if(!Gn)return{};const[e,t]=Mn.os(Gn);return Ur(HE({$os:e,$os_version:t,$browser:Mn.browser(Gn,navigator.vendor),$device:Mn.device(Gn),$device_type:Mn.deviceType(Gn)}),{$current_url:Zr==null?void 0:Zr.href,$host:Zr==null?void 0:Zr.host,$pathname:Zr==null?void 0:Zr.pathname,$raw_user_agent:Gn.length>1e3?Gn.substring(0,997)+"...":Gn,$browser_version:Mn.browserVersion(Gn,navigator.vendor),$browser_language:Mn.browserLanguage(),$screen_height:G==null?void 0:G.screen.height,$screen_width:G==null?void 0:G.screen.width,$viewport_height:G==null?void 0:G.innerHeight,$viewport_width:G==null?void 0:G.innerWidth,$lib:"web",$lib_version:fl.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})},people_properties:function(){if(!Gn)return{};const[e,t]=Mn.os(Gn);return Ur(HE({$os:e,$os_version:t,$browser:Mn.browser(Gn,navigator.vendor)}),{$browser_version:Mn.browserVersion(Gn,navigator.vendor)})}},U_e=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class Eb{constructor(t){this.config=t,this.props={},this.campaign_params_saved=!1,this.name=(n=>{let r="";return n.token&&(r=n.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),n.persistence_name?"ph_"+n.persistence_name:"ph_"+r+"_posthog"})(t),this.storage=this.buildStorage(t),this.load(),t.debug&&ae.info("Persistence loaded",t.persistence,{...this.props}),this.update_config(t,t),this.save()}buildStorage(t){let n;U_e.indexOf(t.persistence.toLowerCase())===-1&&(ae.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");const r=t.persistence.toLowerCase();return n=r==="localstorage"&&Ln.is_supported()?Ln:r==="localstorage+cookie"&&Dg.is_supported()?Dg:r==="sessionstorage"&&ir.is_supported()?ir:r==="memory"?T_e:r==="cookie"?xa:Dg.is_supported()?Dg:xa,n}properties(){const t={};return Gt(this.props,function(n,r){if(r===Df&&En(n)){const i=Object.keys(n);for(let s=0;s<i.length;s++)t[`$feature/${i[s]}`]=n[i[s]]}else(function(i,s){let o=!1;return eu(i)?o:NL&&i.indexOf===NL?i.indexOf(s)!=-1:(Gt(i,function(a){if(o||(o=a===s))return zy}),o)})(__e,r)||(t[r]=n)}),t}load(){if(this.disabled)return;const t=this.storage.parse(this.name);t&&(this.props=Ur({},t))}save(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure,this.config.debug)}remove(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}clear(){this.remove(),this.props={}}register_once(t,n,r){if(En(t)){ke(n)&&(n="None"),this.expire_days=ke(r)?this.default_expiry:r;let i=!1;if(Gt(t,(s,o)=>{this.props.hasOwnProperty(o)&&this.props[o]!==n||(this.props[o]=s,i=!0)}),i)return this.save(),!0}return!1}register(t,n){if(En(t)){this.expire_days=ke(n)?this.default_expiry:n;let r=!1;if(Gt(t,(i,s)=>{t.hasOwnProperty(s)&&this.props[s]!==i&&(this.props[s]=i,r=!0)}),r)return this.save(),!0}return!1}unregister(t){t in this.props&&(delete this.props[t],this.save())}update_campaign_params(){this.campaign_params_saved||(this.register(Mn.campaignParams(this.config.custom_campaign_params)),this.campaign_params_saved=!0)}update_search_keyword(){this.register(Mn.searchInfo())}update_referrer_info(){this.register_once(Mn.referrerInfo(),void 0)}set_initial_person_info(){this.props[ZE]||this.props[eP]||this.register_once({[ZL]:Mn.initialPersonInfo()},void 0)}get_referrer_info(){return HE({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}get_initial_props(){const t={};Gt([eP,ZE],r=>{const i=this.props[r];i&&Gt(i,function(s,o){t["$initial_"+GE(o)]=s})});const n=this.props[ZL];if(n){const r=Mn.initialPersonPropsFromInfo(n);Ur(t,r)}return t}safe_merge(t){return Gt(this.props,function(n,r){r in t||(t[r]=n)}),t}update_config(t,n){if(this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.persistence!==n.persistence){const r=this.buildStorage(t),i=this.props;this.clear(),this.storage=r,this.props=i,this.save()}}set_disabled(t){this.disabled=t,this.disabled?this.remove():this.save()}set_cross_subdomain(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())}get_cross_subdomain(){return!!this.cross_subdomain}set_secure(t){t!==this.secure&&(this.secure=t,this.remove(),this.save())}set_event_timer(t,n){const r=this.props[ap]||{};r[t]=n,this.props[ap]=r,this.save()}remove_event_timer(t){const n=(this.props[ap]||{})[t];return ke(n)||(delete this.props[ap][t],this.save()),n}get_property(t){return this.props[t]}set_property(t,n){this.props[t]=n,this.save()}}function Qy(e){var t;return((t=JSON.stringify(e,function(){const n=[];return function(r,i){if(En(i)){for(;n.length>0&&n.at(-1)!==this;)n.pop();return n.includes(i)?"[Circular]":(n.push(i),i)}return i}}()))===null||t===void 0?void 0:t.length)||0}function sP(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:66060288e-1;if(e.size>=t&&e.data.length>1){const n=Math.floor(e.data.length/2),r=e.data.slice(0,n),i=e.data.slice(n);return[sP({size:Qy(r),data:r,sessionId:e.sessionId,windowId:e.windowId}),sP({size:Qy(i),data:i,sessionId:e.sessionId,windowId:e.windowId})].flatMap(s=>s)}return[e]}var hl=(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))(hl||{}),Os=(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))(Os||{});function OC(e){return e?I1(e).split(/\s+/):[]}function l2(e){const t=G==null?void 0:G.location.href;return!!(t&&e&&e.some(n=>t.match(n)))}function Zy(e){let t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return OC(t)}function Qj(e){return vn(e)?null:I1(e).split(/(\s+)/).filter(t=>nd(t)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function e0(e){let t="";return aP(e)&&!r5(e)&&e.childNodes&&e.childNodes.length&&Gt(e.childNodes,function(n){var r;e5(n)&&n.textContent&&(t+=(r=Qj(n.textContent))!==null&&r!==void 0?r:"")}),I1(t)}function Zj(e){return ke(e.target)?e.srcElement||null:(t=e.target)!==null&&t!==void 0&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}function M1(e){return!!e&&e.nodeType===1}function Nl(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function e5(e){return!!e&&e.nodeType===3}function t5(e){return!!e&&e.nodeType===11}const oP=["a","button","form","input","select","textarea","label"];function n5(e){const t=e.parentNode;return!(!t||!M1(t))&&t}function V_e(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;if(!G||!e||Nl(e,"html")||!M1(e)||n!=null&&n.url_allowlist&&!l2(n.url_allowlist)||n!=null&&n.url_ignorelist&&l2(n.url_ignorelist))return!1;if(n!=null&&n.dom_event_allowlist){const h=n.dom_event_allowlist;if(h&&!h.some(v=>t.type===v))return!1}let s=!1;const o=[e];let a=!0,u=e;for(;u.parentNode&&!Nl(u,"body");)if(t5(u.parentNode))o.push(u.parentNode.host),u=u.parentNode.host;else{if(a=n5(u),!a)break;if(r||oP.indexOf(a.tagName.toLowerCase())>-1)s=!0;else{const h=G.getComputedStyle(a);h&&h.getPropertyValue("cursor")==="pointer"&&(s=!0)}o.push(a),u=a}if(!function(h,v){const m=v==null?void 0:v.element_allowlist;if(ke(m))return!0;for(const y of h)if(m.some(w=>y.tagName.toLowerCase()===w))return!0;return!1}(o,n)||!function(h,v){const m=v==null?void 0:v.css_selector_allowlist;if(ke(m))return!0;for(const y of h)if(m.some(w=>y.matches(w)))return!0;return!1}(o,n))return!1;const f=G.getComputedStyle(e);if(f&&f.getPropertyValue("cursor")==="pointer"&&t.type==="click")return!0;const d=e.tagName.toLowerCase();switch(d){case"html":return!1;case"form":return(i||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(i||["change","click"]).indexOf(t.type)>=0;default:return s?(i||["click"]).indexOf(t.type)>=0:(i||["click"]).indexOf(t.type)>=0&&(oP.indexOf(d)>-1||e.getAttribute("contenteditable")==="true")}}function aP(e){for(let r=e;r.parentNode&&!Nl(r,"body");r=r.parentNode){const i=Zy(r);if(ft(i,"ph-sensitive")||ft(i,"ph-no-capture"))return!1}if(ft(Zy(e),"ph-include"))return!0;const t=e.type||"";if(br(t))switch(t.toLowerCase()){case"hidden":case"password":return!1}const n=e.name||e.id||"";return!(br(n)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,"")))}function r5(e){return!!(Nl(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||Nl(e,"select")||Nl(e,"textarea")||e.getAttribute("contenteditable")==="true")}const i5="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",j_e=new RegExp(`^(?:${i5})$`),W_e=new RegExp(i5),s5="\\d{3}-?\\d{2}-?\\d{4}",z_e=new RegExp(`^(${s5})$`),H_e=new RegExp(`(${s5})`);function nd(e){let t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];return!(vn(e)||br(e)&&(e=I1(e),(t?j_e:W_e).test((e||"").replace(/[- ]/g,""))||(t?z_e:H_e).test(e)))}function u2(e){let t=e0(e);return t=`${t} ${o5(e)}`.trim(),nd(t)?t:""}function o5(e){let t="";return e&&e.childNodes&&e.childNodes.length&&Gt(e.childNodes,function(n){var r;if(n&&((r=n.tagName)===null||r===void 0?void 0:r.toLowerCase())==="span")try{const i=e0(n);t=`${t} ${i}`.trim(),n.childNodes&&n.childNodes.length&&(t=`${t} ${o5(n)}`.trim())}catch(i){ae.error(i)}}),t}function G_e(e){return function(t){return t.map(r=>{var i,s;let o="";if(r.tag_name&&(o+=r.tag_name),r.attr_class){r.attr_class.sort();for(const f of r.attr_class)o+=`.${f.replace(/"/g,"")}`}const a={...r.text?{text:r.text}:{},"nth-child":(i=r.nth_child)!==null&&i!==void 0?i:0,"nth-of-type":(s=r.nth_of_type)!==null&&s!==void 0?s:0,...r.href?{href:r.href}:{},...r.attr_id?{attr_id:r.attr_id}:{},...r.attributes},u={};return C_(a).sort((f,d)=>{let[h]=f,[v]=d;return h.localeCompare(v)}).forEach(f=>{let[d,h]=f;return u[c2(d.toString())]=c2(h.toString())}),o+=":",o+=C_(a).map(f=>{let[d,h]=f;return`${d}="${h}"`}).join(""),o}).join(";")}(function(t){return t.map(n=>{var r,i;const s={text:(r=n.$el_text)===null||r===void 0?void 0:r.slice(0,400),tag_name:n.tag_name,href:(i=n.attr__href)===null||i===void 0?void 0:i.slice(0,2048),attr_class:Y_e(n),attr_id:n.attr__id,nth_child:n.nth_child,nth_of_type:n.nth_of_type,attributes:{}};return C_(n).filter(o=>{let[a]=o;return a.indexOf("attr__")===0}).forEach(o=>{let[a,u]=o;return s.attributes[a]=u}),s})}(e))}function c2(e){return e.replace(/"|\\"/g,'\\"')}function Y_e(e){const t=e.attr__class;return t?Fn(t)?t:OC(t):void 0}const lP="[SessionRecording]",uP="redacted",Ng={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:e=>e,recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6,payloadHostDenyList:[".lr-ingest.io",".ingest.sentry.io"]},q_e=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],K_e=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],X_e=["/s/","/e/","/i/"];function f2(e,t,n,r){if(vn(e))return e;let i=(t==null?void 0:t["content-length"])||function(s){return new Blob([s]).size}(e);return br(i)&&(i=parseInt(i)),i>n?lP+` ${r} body too large to record (${i} bytes)`:e}function d2(e,t){if(vn(e))return e;let n=e;return nd(n,!1)||(n=lP+" "+t+" body "+uP),Gt(K_e,r=>{var i,s;(i=n)!==null&&i!==void 0&&i.length&&((s=n)===null||s===void 0?void 0:s.indexOf(r))!==-1&&(n=lP+" "+t+" body "+uP+" as might contain: "+r)}),n}const J_e=(e,t)=>{const n={payloadSizeLimitBytes:Ng.payloadSizeLimitBytes,performanceEntryTypeToObserve:[...Ng.performanceEntryTypeToObserve],payloadHostDenyList:[...t.payloadHostDenyList||[],...Ng.payloadHostDenyList]},r=e.session_recording.recordHeaders!==!1&&t.recordHeaders,i=e.session_recording.recordBody!==!1&&t.recordBody,s=e.capture_performance!==!1&&t.recordPerformance,o=(f=>{var d;const h=Math.min(1e6,(d=f.payloadSizeLimitBytes)!==null&&d!==void 0?d:1e6);return v=>(v!=null&&v.requestBody&&(v.requestBody=f2(v.requestBody,v.requestHeaders,h,"Request")),v!=null&&v.responseBody&&(v.responseBody=f2(v.responseBody,v.responseHeaders,h,"Response")),v)})(n),a=f=>o((d=>{const h=Dp(d.name);if(!(h&&h.pathname&&X_e.some(v=>h.pathname.indexOf(v)===0)))return d})((d=>{const h=d.requestHeaders;return vn(h)||Gt(Object.keys(h??{}),v=>{q_e.includes(v.toLowerCase())&&(h[v]=uP)}),d})(f))),u=is(e.session_recording.maskNetworkRequestFn);return u&&is(e.session_recording.maskCapturedNetworkRequestFn)&&ae.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),u&&(e.session_recording.maskCapturedNetworkRequestFn=f=>{const d=e.session_recording.maskNetworkRequestFn({url:f.name});return{...f,name:d==null?void 0:d.url}}),n.maskRequestFn=is(e.session_recording.maskCapturedNetworkRequestFn)?f=>{var d,h,v;const m=a(f);return m&&(d=(h=(v=e.session_recording).maskCapturedNetworkRequestFn)===null||h===void 0?void 0:h.call(v,m))!==null&&d!==void 0?d:void 0}:f=>function(d){if(!ke(d))return d.requestBody=d2(d.requestBody,"Request"),d.responseBody=d2(d.responseBody,"Response"),d}(a(f)),{...Ng,...n,recordHeaders:r,recordBody:i,recordPerformance:s,recordInitialRequests:s}};class Q_e{constructor(t){K(this,"bucketSize",100);K(this,"refillRate",10);K(this,"mutationBuckets",{});K(this,"loggedTracker",{});K(this,"refillBuckets",()=>{Object.keys(this.mutationBuckets).forEach(t=>{this.mutationBuckets[t]=this.mutationBuckets[t]+this.refillRate,this.mutationBuckets[t]>=this.bucketSize&&delete this.mutationBuckets[t]})});K(this,"getNodeOrRelevantParent",t=>{const n=this.rrweb.mirror.getNode(t);if((n==null?void 0:n.nodeName)!=="svg"&&n instanceof Element){const r=n.closest("svg");if(r)return[this.rrweb.mirror.getId(r),r]}return[t,n]});K(this,"numberOfChanges",t=>{var n,r,i,s,o,a,u,f;return((n=(r=t.removes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0)+((i=(s=t.attributes)===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0)+((o=(a=t.texts)===null||a===void 0?void 0:a.length)!==null&&o!==void 0?o:0)+((u=(f=t.adds)===null||f===void 0?void 0:f.length)!==null&&u!==void 0?u:0)});K(this,"throttleMutations",t=>{if(t.type!==3||t.data.source!==0)return t;const n=t.data,r=this.numberOfChanges(n);n.attributes&&(n.attributes=n.attributes.filter(s=>{var o;const[a,u]=this.getNodeOrRelevantParent(s.id);if(this.mutationBuckets[a]===0)return!1;var f,d;return this.mutationBuckets[a]=(o=this.mutationBuckets[a])!==null&&o!==void 0?o:this.bucketSize,this.mutationBuckets[a]=Math.max(this.mutationBuckets[a]-1,0),this.mutationBuckets[a]===0&&(this.loggedTracker[a]||(this.loggedTracker[a]=!0,(f=(d=this.options).onBlockedNode)===null||f===void 0||f.call(d,a,u))),s}));const i=this.numberOfChanges(n);return i!==0||r===i?t:void 0});var n,r;let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.rrweb=t,this.options=i,this.refillRate=(n=this.options.refillRate)!==null&&n!==void 0?n:this.refillRate,this.bucketSize=(r=this.options.bucketSize)!==null&&r!==void 0?r:this.bucketSize,setInterval(()=>{this.refillBuckets()},1e3)}}var us=Uint8Array,Vr=Uint16Array,Md=Uint32Array,TC=new us([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]),CC=new us([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]),h2=new us([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a5=function(e,t){for(var n=new Vr(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new Md(n[30]);for(r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)i[s]=s-n[r]<<5|r;return[n,i]},l5=a5(TC,2),Z_e=l5[0],cP=l5[1];Z_e[28]=258,cP[258]=28;for(var p2=a5(CC,0)[1],fP=new Vr(32768),Zt=0;Zt<32768;++Zt){var Eu=(43690&Zt)>>>1|(21845&Zt)<<1;Eu=(61680&(Eu=(52428&Eu)>>>2|(13107&Eu)<<2))>>>4|(3855&Eu)<<4,fP[Zt]=((65280&Eu)>>>8|(255&Eu)<<8)>>>1}var Lp=function(e,t,n){for(var r=e.length,i=0,s=new Vr(t);i<r;++i)++s[e[i]-1];var o,a=new Vr(t);for(i=0;i<t;++i)a[i]=a[i-1]+s[i-1]<<1;if(n){o=new Vr(1<<t);var u=15-t;for(i=0;i<r;++i)if(e[i])for(var f=i<<4|e[i],d=t-e[i],h=a[e[i]-1]++<<d,v=h|(1<<d)-1;h<=v;++h)o[fP[h]>>>u]=f}else for(o=new Vr(r),i=0;i<r;++i)o[i]=fP[a[e[i]-1]++]>>>15-e[i];return o},lc=new us(288);for(Zt=0;Zt<144;++Zt)lc[Zt]=8;for(Zt=144;Zt<256;++Zt)lc[Zt]=9;for(Zt=256;Zt<280;++Zt)lc[Zt]=7;for(Zt=280;Zt<288;++Zt)lc[Zt]=8;var t0=new us(32);for(Zt=0;Zt<32;++Zt)t0[Zt]=5;var eye=Lp(lc,9,0),tye=Lp(t0,5,0),u5=function(e){return(e/8>>0)+(7&e&&1)},c5=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof Vr?Vr:e instanceof Md?Md:us)(n-t);return r.set(e.subarray(t,n)),r},Qo=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},Kh=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Pb=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,s=n.slice();if(!i)return[new us(0),0];if(i==1){var o=new us(n[0].s+1);return o[n[0].s]=1,[o,1]}n.sort(function(I,A){return I.f-A.f}),n.push({s:-1,f:25001});var a=n[0],u=n[1],f=0,d=1,h=2;for(n[0]={s:-1,f:a.f+u.f,l:a,r:u};d!=i-1;)a=n[n[f].f<n[h].f?f++:h++],u=n[f!=d&&n[f].f<n[h].f?f++:h++],n[d++]={s:-1,f:a.f+u.f,l:a,r:u};var v=s[0].s;for(r=1;r<i;++r)s[r].s>v&&(v=s[r].s);var m=new Vr(v+1),y=dP(n[d-1],m,0);if(y>t){r=0;var w=0,E=y-t,S=1<<E;for(s.sort(function(I,A){return m[A.s]-m[I.s]||I.f-A.f});r<i;++r){var _=s[r].s;if(!(m[_]>t))break;w+=S-(1<<y-m[_]),m[_]=t}for(w>>>=E;w>0;){var b=s[r].s;m[b]<t?w-=1<<t-m[b]++-1:++r}for(;r>=0&&w;--r){var O=s[r].s;m[O]==t&&(--m[O],++w)}y=t}return[new us(m),y]},dP=function(e,t,n){return e.s==-1?Math.max(dP(e.l,t,n+1),dP(e.r,t,n+1)):t[e.s]=n},v2=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Vr(++t),r=0,i=e[0],s=1,o=function(u){n[r++]=u},a=1;a<=t;++a)if(e[a]==i&&a!=t)++s;else{if(!i&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(i),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(i);s=1,i=e[a]}return[n.subarray(0,r),t]},Xh=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},hP=function(e,t,n){var r=n.length,i=u5(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var s=0;s<r;++s)e[i+s+4]=n[s];return 8*(i+4+r)},m2=function(e,t,n,r,i,s,o,a,u,f,d){Qo(t,d++,n),++i[256];for(var h=Pb(i,15),v=h[0],m=h[1],y=Pb(s,15),w=y[0],E=y[1],S=v2(v),_=S[0],b=S[1],O=v2(w),I=O[0],A=O[1],C=new Vr(19),P=0;P<_.length;++P)C[31&_[P]]++;for(P=0;P<I.length;++P)C[31&I[P]]++;for(var M=Pb(C,7),D=M[0],V=M[1],Q=19;Q>4&&!D[h2[Q-1]];--Q);var se,ie,q,oe,ue=f+5<<3,X=Xh(i,lc)+Xh(s,t0)+o,te=Xh(i,v)+Xh(s,w)+o+14+3*Q+Xh(C,D)+(2*C[16]+3*C[17]+7*C[18]);if(ue<=X&&ue<=te)return hP(t,d,e.subarray(u,u+f));if(Qo(t,d,1+(te<X)),d+=2,te<X){se=Lp(v,m,0),ie=v,q=Lp(w,E,0),oe=w;var ve=Lp(D,V,0);for(Qo(t,d,b-257),Qo(t,d+5,A-1),Qo(t,d+10,Q-4),d+=14,P=0;P<Q;++P)Qo(t,d+3*P,D[h2[P]]);d+=3*Q;for(var he=[_,I],we=0;we<2;++we){var _e=he[we];for(P=0;P<_e.length;++P){var Ie=31&_e[P];Qo(t,d,ve[Ie]),d+=D[Ie],Ie>15&&(Qo(t,d,_e[P]>>>5&127),d+=_e[P]>>>12)}}}else se=eye,ie=lc,q=tye,oe=t0;for(P=0;P<a;++P)if(r[P]>255){Ie=r[P]>>>18&31,Kh(t,d,se[Ie+257]),d+=ie[Ie+257],Ie>7&&(Qo(t,d,r[P]>>>23&31),d+=TC[Ie]);var me=31&r[P];Kh(t,d,q[me]),d+=oe[me],me>3&&(Kh(t,d,r[P]>>>5&8191),d+=CC[me])}else Kh(t,d,se[r[P]]),d+=ie[r[P]];return Kh(t,d,se[256]),d+ie[256]},nye=new Md([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),rye=function(){for(var e=new Md(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),iye=function(){var e=4294967295;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=rye[255&n^t[r]]^n>>>8;e=n},d:function(){return 4294967295^e}}},sye=function(e,t,n,r,i){return function(s,o,a,u,f,d){var h=s.length,v=new us(u+h+5*(1+Math.floor(h/7e3))+f),m=v.subarray(u,v.length-f),y=0;if(!o||h<8)for(var w=0;w<=h;w+=65535){var E=w+65535;E<h?y=hP(m,y,s.subarray(w,E)):(m[w]=d,y=hP(m,y,s.subarray(w,h)))}else{for(var S=nye[o-1],_=S>>>13,b=8191&S,O=(1<<a)-1,I=new Vr(32768),A=new Vr(O+1),C=Math.ceil(a/3),P=2*C,M=function(Yt){return(s[Yt]^s[Yt+1]<<C^s[Yt+2]<<P)&O},D=new Md(25e3),V=new Vr(288),Q=new Vr(32),se=0,ie=0,q=(w=0,0),oe=0,ue=0;w<h;++w){var X=M(w),te=32767&w,ve=A[X];if(I[te]=ve,A[X]=te,oe<=w){var he=h-w;if((se>7e3||q>24576)&&he>423){y=m2(s,m,0,D,V,Q,ie,q,ue,w-ue,y),q=se=ie=0,ue=w;for(var we=0;we<286;++we)V[we]=0;for(we=0;we<30;++we)Q[we]=0}var _e=2,Ie=0,me=b,Ae=te-ve&32767;if(he>2&&X==M(w-Ae))for(var De=Math.min(_,he)-1,Be=Math.min(32767,w),nt=Math.min(258,he);Ae<=Be&&--me&&te!=ve;){if(s[w+_e]==s[w+_e-Ae]){for(var Xe=0;Xe<nt&&s[w+Xe]==s[w+Xe-Ae];++Xe);if(Xe>_e){if(_e=Xe,Ie=Ae,Xe>De)break;var ut=Math.min(Ae,Xe-2),Fe=0;for(we=0;we<ut;++we){var yt=w-Ae+we+32768&32767,Mt=yt-I[yt]+32768&32767;Mt>Fe&&(Fe=Mt,ve=yt)}}}Ae+=(te=ve)-(ve=I[te])+32768&32767}if(Ie){D[q++]=268435456|cP[_e]<<18|p2[Ie];var dn=31&cP[_e],Jn=31&p2[Ie];ie+=TC[dn]+CC[Jn],++V[257+dn],++Q[Jn],oe=w+_e,++se}else D[q++]=s[w],++V[s[w]]}}y=m2(s,m,d,D,V,Q,ie,q,ue,w-ue,y)}return c5(v,0,u+u5(y)+f)}(e,t.level==null?6:t.level,t.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},pP=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},oye=function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:t.level==9?2:0,e[9]=3,t.mtime!=0&&pP(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}},aye=function(e){return 10+(e.filename&&e.filename.length+1||0)};function f5(e,t){t===void 0&&(t={});var n=iye(),r=e.length;n.p(e);var i=sye(e,t,aye(t),8),s=i.length;return oye(i,t),pP(i,s-8,n.d()),pP(i,s-4,r),i}function d5(e,t){var n=e.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new us(e.length+(e.length>>>1)),i=0,s=function(f){r[i++]=f},o=0;o<n;++o){if(i+5>r.length){var a=new us(i+8+(n-o<<1));a.set(r),r=a}var u=e.charCodeAt(o);u<128||t?s(u):u<2048?(s(192|u>>>6),s(128|63&u)):u>55295&&u<57344?(s(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++o))>>>18),s(128|u>>>12&63),s(128|u>>>6&63),s(128|63&u)):(s(224|u>>>12),s(128|u>>>6&63),s(128|63&u))}return c5(r,0,i)}function ju(e,t,n,r){return Si(e)?e>n?(r&&ae.warn(r+" cannot be  greater than max: "+n+". Using max value instead."),n):e<t?(r&&ae.warn(r+" cannot be less than min: "+t+". Using min value instead."),t):e:(r&&ae.warn(r+" must be a number. Defaulting to max value:"+n),n)}const lye=3e5,uye=[Os.MouseMove,Os.MouseInteraction,Os.Scroll,Os.ViewportResize,Os.Input,Os.TouchMove,Os.MediaInteraction,Os.Drag],cye=["trigger_activated","trigger_pending","trigger_disabled"],g2=e=>({rrwebMethod:e,enqueuedAt:Date.now(),attempt:1}),Fr="[SessionRecording]";function Pu(e){return function(t,n){for(var r="",i=0;i<t.length;){var s=t[i++];s<128||n?r+=String.fromCharCode(s):s<224?r+=String.fromCharCode((31&s)<<6|63&t[i++]):s<240?r+=String.fromCharCode((15&s)<<12|(63&t[i++])<<6|63&t[i++]):(s=((15&s)<<18|(63&t[i++])<<12|(63&t[i++])<<6|63&t[i++])-65536,r+=String.fromCharCode(55296|s>>10,56320|1023&s))}return r}(f5(d5(JSON.stringify(e))),!0)}function _2(e){return e.type===hl.Custom&&e.data.tag==="sessionIdle"}class fye{constructor(t){K(this,"queuedRRWebEvents",[]);K(this,"isIdle",!1);K(this,"_linkedFlagSeen",!1);K(this,"_lastActivityTimestamp",Date.now());K(this,"_linkedFlag",null);K(this,"_removePageViewCaptureHook");K(this,"_onSessionIdListener");K(this,"_persistDecideOnSessionListener");K(this,"_samplingSessionListener");K(this,"_urlTriggers",[]);K(this,"_forceAllowLocalhostNetworkCapture",!1);K(this,"_onBeforeUnload",()=>{this._flushBuffer()});K(this,"_onOffline",()=>{this._tryAddCustomEvent("browser offline",{})});K(this,"_onOnline",()=>{this._tryAddCustomEvent("browser online",{})});K(this,"_onVisibilityChange",()=>{if(Pe!=null&&Pe.visibilityState){const t="window "+Pe.visibilityState;this._tryAddCustomEvent(t,{})}});if(this.instance=t,this._captureStarted=!1,this._endpoint="/s/",this.stopRrweb=void 0,this.receivedDecide=!1,!this.instance.sessionManager)throw ae.error(Fr+" started without valid sessionManager"),new Error(Fr+" started without valid sessionManager. This is a bug.");const{sessionId:n,windowId:r}=this.sessionManager.checkAndGetSessionAndWindowId();this.sessionId=n,this.windowId=r,this.buffer=this.clearBuffer(),this.sessionIdleThresholdMilliseconds>=this.sessionManager.sessionTimeoutMs&&ae.warn(Fr+` session_idle_threshold_ms (${this.sessionIdleThresholdMilliseconds}) is greater than the session timeout (${this.sessionManager.sessionTimeoutMs}). Session will never be detected as idle`)}get sessionIdleThresholdMilliseconds(){return this.instance.config.session_recording.session_idle_threshold_ms||3e5}get rrwebRecord(){var t,n;return at==null||(t=at.__PosthogExtensions__)===null||t===void 0||(n=t.rrweb)===null||n===void 0?void 0:n.record}get started(){return this._captureStarted}get sessionManager(){if(!this.instance.sessionManager)throw new Error(Fr+" must be started with a valid sessionManager.");return this.instance.sessionManager}get fullSnapshotIntervalMillis(){var t,n;return this.urlTriggerStatus==="trigger_pending"?6e4:(t=(n=this.instance.config.session_recording)===null||n===void 0?void 0:n.full_snapshot_interval_millis)!==null&&t!==void 0?t:lye}get isSampled(){const t=this.instance.get_property(lp);return Vu(t)?t:null}get sessionDuration(){var t,n;const r=(t=this.buffer)===null||t===void 0?void 0:t.data[((n=this.buffer)===null||n===void 0?void 0:n.data.length)-1],{sessionStartTimestamp:i}=this.sessionManager.checkAndGetSessionAndWindowId(!0);return r?r.timestamp-i:null}get isRecordingEnabled(){const t=!!this.instance.get_property(qE),n=!this.instance.config.disable_session_recording;return G&&t&&n}get isConsoleLogCaptureEnabled(){const t=!!this.instance.get_property(qL),n=this.instance.config.enable_recording_console_log;return n??t}get canvasRecording(){var t,n,r,i,s,o;const a=this.instance.config.session_recording.captureCanvas,u=this.instance.get_property(XL),f=(t=(n=a==null?void 0:a.recordCanvas)!==null&&n!==void 0?n:u==null?void 0:u.enabled)!==null&&t!==void 0&&t,d=(r=(i=a==null?void 0:a.canvasFps)!==null&&i!==void 0?i:u==null?void 0:u.fps)!==null&&r!==void 0?r:0,h=(s=(o=a==null?void 0:a.canvasQuality)!==null&&o!==void 0?o:u==null?void 0:u.quality)!==null&&s!==void 0?s:0;return{enabled:f,fps:ju(d,0,12,"canvas recording fps"),quality:ju(h,0,1,"canvas recording quality")}}get networkPayloadCapture(){var t,n;const r=this.instance.get_property(KL),i={recordHeaders:(t=this.instance.config.session_recording)===null||t===void 0?void 0:t.recordHeaders,recordBody:(n=this.instance.config.session_recording)===null||n===void 0?void 0:n.recordBody},s=(i==null?void 0:i.recordHeaders)||(r==null?void 0:r.recordHeaders),o=(i==null?void 0:i.recordBody)||(r==null?void 0:r.recordBody),a=En(this.instance.config.capture_performance)?this.instance.config.capture_performance.network_timing:this.instance.config.capture_performance,u=!!(Vu(a)?a:r!=null&&r.capturePerformance);return s||o||u?{recordHeaders:s,recordBody:o,recordPerformance:u}:void 0}get sampleRate(){const t=this.instance.get_property(JL);return Si(t)?t:null}get minimumDuration(){const t=this.instance.get_property(QL);return Si(t)?t:null}get status(){return this.receivedDecide?this.isRecordingEnabled?vn(this._linkedFlag)||this._linkedFlagSeen?this.urlTriggerStatus==="trigger_pending"?"buffering":Vu(this.isSampled)?this.isSampled?"sampled":"disabled":"active":"buffering":"disabled":"buffering"}get urlTriggerStatus(){var t,n;if(this.receivedDecide&&this._urlTriggers.length===0)return"trigger_disabled";const r=(t=this.instance)===null||t===void 0?void 0:t.get_property(Rg);var i,s,o,a;return((n=this.instance)===null||n===void 0?void 0:n.get_property(Ag))!==this.sessionId?((i=this.instance)===null||i===void 0||(s=i.persistence)===null||s===void 0||s.unregister(Ag),(o=this.instance)===null||o===void 0||(a=o.persistence)===null||a===void 0||a.unregister(Rg),"trigger_pending"):cye.includes(r)?r:"trigger_pending"}set urlTriggerStatus(t){var n,r;(n=this.instance)===null||n===void 0||(r=n.persistence)===null||r===void 0||r.register({[Ag]:this.sessionId,[Rg]:t})}startIfEnabledOrStop(t){this.isRecordingEnabled?(this._startCapture(t),G==null||G.addEventListener("beforeunload",this._onBeforeUnload),G==null||G.addEventListener("offline",this._onOffline),G==null||G.addEventListener("online",this._onOnline),G==null||G.addEventListener("visibilitychange",this._onVisibilityChange),this._setupSampling(),vn(this._removePageViewCaptureHook)&&(this._removePageViewCaptureHook=this.instance._addCaptureHook(n=>{try{if(n==="$pageview"){const r=G?this._maskUrl(G.location.href):"";if(!r)return;this._tryAddCustomEvent("$pageview",{href:r})}}catch(r){ae.error("Could not add $pageview to rrweb session",r)}})),this._onSessionIdListener||(this._onSessionIdListener=this.sessionManager.onSessionId((n,r,i)=>{var s,o,a,u;i&&(this._tryAddCustomEvent("$session_id_change",{sessionId:n,windowId:r,changeReason:i}),(s=this.instance)===null||s===void 0||(o=s.persistence)===null||o===void 0||o.unregister(Ag),(a=this.instance)===null||a===void 0||(u=a.persistence)===null||u===void 0||u.unregister(Rg))}))):this.stopRecording()}stopRecording(){var t,n,r;this._captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this._captureStarted=!1,G==null||G.removeEventListener("beforeunload",this._onBeforeUnload),G==null||G.removeEventListener("offline",this._onOffline),G==null||G.removeEventListener("online",this._onOnline),G==null||G.removeEventListener("visibilitychange",this._onVisibilityChange),this.clearBuffer(),clearInterval(this._fullSnapshotTimer),(t=this._removePageViewCaptureHook)===null||t===void 0||t.call(this),this._removePageViewCaptureHook=void 0,(n=this._onSessionIdListener)===null||n===void 0||n.call(this),this._onSessionIdListener=void 0,(r=this._samplingSessionListener)===null||r===void 0||r.call(this),this._samplingSessionListener=void 0,ae.info(Fr+" stopped"))}makeSamplingDecision(t){var n;const r=this.sessionId!==t,i=this.sampleRate;var s;if(!Si(i))return void((s=this.instance.persistence)===null||s===void 0||s.register({[lp]:null}));const o=this.isSampled;let a;const u=r||!Vu(o);u?a=Math.random()<i:a=o,u&&(a?this._reportStarted("sampling"):ae.warn(Fr+` Sample rate (${i}) has determined that this sessionId (${t}) will not be sent to the server.`),this._tryAddCustomEvent("samplingDecisionMade",{sampleRate:i,isSampled:a})),(n=this.instance.persistence)===null||n===void 0||n.register({[lp]:a})}afterDecideResponse(t){var n,r,i,s;if(this._persistDecideResponse(t),this._linkedFlag=((n=t.sessionRecording)===null||n===void 0?void 0:n.linkedFlag)||null,(r=t.sessionRecording)!==null&&r!==void 0&&r.endpoint&&(this._endpoint=(s=t.sessionRecording)===null||s===void 0?void 0:s.endpoint),this._setupSampling(),!vn(this._linkedFlag)&&!this._linkedFlagSeen){const o=br(this._linkedFlag)?this._linkedFlag:this._linkedFlag.flag,a=br(this._linkedFlag)?null:this._linkedFlag.variant;this.instance.onFeatureFlags((u,f)=>{const d=En(f)&&o in f,h=a?f[o]===a:d;if(h){const v={linkedFlag:o,linkedVariant:a},m="linked flag matched";ae.info(Fr+" "+m,v),this._tryAddCustomEvent(m,v),this._reportStarted("linked_flag_match")}this._linkedFlagSeen=h})}(i=t.sessionRecording)!==null&&i!==void 0&&i.urlTriggers&&(this._urlTriggers=t.sessionRecording.urlTriggers),this.receivedDecide=!0,this.startIfEnabledOrStop()}_setupSampling(){Si(this.sampleRate)&&vn(this._samplingSessionListener)&&(this._samplingSessionListener=this.sessionManager.onSessionId(t=>{this.makeSamplingDecision(t)}))}_persistDecideResponse(t){if(this.instance.persistence){var n;const r=this.instance.persistence,i=()=>{var s,o,a,u,f,d,h;const v=(s=t.sessionRecording)===null||s===void 0?void 0:s.sampleRate,m=vn(v)?null:parseFloat(v),y=(o=t.sessionRecording)===null||o===void 0?void 0:o.minimumDurationMilliseconds;r.register({[qE]:!!t.sessionRecording,[qL]:(a=t.sessionRecording)===null||a===void 0?void 0:a.consoleLogRecordingEnabled,[KL]:{capturePerformance:t.capturePerformance,...(u=t.sessionRecording)===null||u===void 0?void 0:u.networkPayloadCapture},[XL]:{enabled:(f=t.sessionRecording)===null||f===void 0?void 0:f.recordCanvas,fps:(d=t.sessionRecording)===null||d===void 0?void 0:d.canvasFps,quality:(h=t.sessionRecording)===null||h===void 0?void 0:h.canvasQuality},[JL]:m,[QL]:ke(y)?null:y})};i(),(n=this._persistDecideOnSessionListener)===null||n===void 0||n.call(this),this._persistDecideOnSessionListener=this.sessionManager.onSessionId(i)}}log(t){var n;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(n=this.instance.sessionRecording)===null||n===void 0||n.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:r,trace:[],payload:[JSON.stringify(t)]}},timestamp:Date.now()})}_startCapture(t){if(!ke(Object.assign)&&!ke(Array.from)&&!(this._captureStarted||this.instance.config.disable_session_recording||this.instance.consent.isOptedOut())){var n,r;this._captureStarted=!0,this.sessionManager.checkAndGetSessionAndWindowId(),this.rrwebRecord?this._onScriptLoaded():(n=at.__PosthogExtensions__)===null||n===void 0||(r=n.loadExternalDependency)===null||r===void 0||r.call(n,this.instance,"recorder",i=>{if(i)return ae.error(Fr+" could not load recorder",i);this._onScriptLoaded()}),ae.info(Fr+" starting"),this.status==="active"&&this._reportStarted(t||"recording_initialized")}}isInteractiveEvent(t){var n;return t.type===3&&uye.indexOf((n=t.data)===null||n===void 0?void 0:n.source)!==-1}_updateWindowAndSessionIds(t){const n=this.isInteractiveEvent(t);!n&&!this.isIdle&&t.timestamp-this._lastActivityTimestamp>this.sessionIdleThresholdMilliseconds&&(this.isIdle=!0,clearInterval(this._fullSnapshotTimer),this._tryAddCustomEvent("sessionIdle",{eventTimestamp:t.timestamp,lastActivityTimestamp:this._lastActivityTimestamp,threshold:this.sessionIdleThresholdMilliseconds,bufferLength:this.buffer.data.length,bufferSize:this.buffer.size}),this._flushBuffer());let r=!1;if(n&&(this._lastActivityTimestamp=t.timestamp,this.isIdle&&(this.isIdle=!1,this._tryAddCustomEvent("sessionNoLongerIdle",{reason:"user activity",type:t.type}),r=!0)),this.isIdle)return;const{windowId:i,sessionId:s}=this.sessionManager.checkAndGetSessionAndWindowId(!n,t.timestamp),o=this.sessionId!==s,a=this.windowId!==i;this.windowId=i,this.sessionId=s,o||a?(this.stopRecording(),this.startIfEnabledOrStop("session_id_changed")):r&&this._scheduleFullSnapshot()}_tryRRWebMethod(t){try{return t.rrwebMethod(),!0}catch(n){return this.queuedRRWebEvents.length<10?this.queuedRRWebEvents.push({enqueuedAt:t.enqueuedAt||Date.now(),attempt:t.attempt++,rrwebMethod:t.rrwebMethod}):ae.warn(Fr+" could not emit queued rrweb event.",n,t),!1}}_tryAddCustomEvent(t,n){return this._tryRRWebMethod(g2(()=>this.rrwebRecord.addCustomEvent(t,n)))}_tryTakeFullSnapshot(){return this._tryRRWebMethod(g2(()=>this.rrwebRecord.takeFullSnapshot()))}_onScriptLoaded(){var t;const n={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{password:!0},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1},r=this.instance.config.session_recording;for(const[s,o]of Object.entries(r||{}))s in n&&(s==="maskInputOptions"?n.maskInputOptions={password:!0,...o}:n[s]=o);if(this.canvasRecording&&this.canvasRecording.enabled&&(n.recordCanvas=!0,n.sampling={canvas:this.canvasRecording.fps},n.dataURLOptions={type:"image/webp",quality:this.canvasRecording.quality}),!this.rrwebRecord)return void ae.error(Fr+"onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.");this.mutationRateLimiter=(t=this.mutationRateLimiter)!==null&&t!==void 0?t:new Q_e(this.rrwebRecord,{onBlockedNode:(s,o)=>{const a=`Too many mutations on node '${s}'. Rate limiting. This could be due to SVG animations or something similar`;ae.info(a,{node:o}),this.log(Fr+" "+a,"warn")}});const i=this._gatherRRWebPlugins();this.stopRrweb=this.rrwebRecord({emit:s=>{this.onRRwebEmit(s)},plugins:i,...n}),this._lastActivityTimestamp=Date.now(),this.isIdle=!1,this._tryAddCustomEvent("$session_options",{sessionRecordingOptions:n,activePlugins:i.map(s=>s==null?void 0:s.name)}),this._tryAddCustomEvent("$posthog_config",{config:this.instance.config})}_scheduleFullSnapshot(){if(this._fullSnapshotTimer&&clearInterval(this._fullSnapshotTimer),this.isIdle)return;const t=this.fullSnapshotIntervalMillis;t&&(this._fullSnapshotTimer=setInterval(()=>{this._tryTakeFullSnapshot()},t))}_gatherRRWebPlugins(){var t,n,r,i;const s=[],o=(t=at.__PosthogExtensions__)===null||t===void 0||(n=t.rrwebPlugins)===null||n===void 0?void 0:n.getRecordConsolePlugin;o&&this.isConsoleLogCaptureEnabled&&s.push(o());const a=(r=at.__PosthogExtensions__)===null||r===void 0||(i=r.rrwebPlugins)===null||i===void 0?void 0:i.getRecordNetworkPlugin;return this.networkPayloadCapture&&is(a)&&(!C_e.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?s.push(a(J_e(this.instance.config,this.networkPayloadCapture))):ae.info(Fr+" NetworkCapture not started because we are on localhost.")),s}onRRwebEmit(t){var n;if(this._processQueuedEvents(),!t||!En(t))return;if(t.type===hl.Meta){const a=this._maskUrl(t.data.href);if(this._lastHref=a,!a)return;t.data.href=a}else this._pageViewFallBack();this._checkUrlTrigger(),t.type===hl.FullSnapshot&&this._scheduleFullSnapshot(),t.type===hl.FullSnapshot&&this.urlTriggerStatus==="trigger_pending"&&this.clearBuffer();const r=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(t):t;if(!r)return;const i=function(a){const u=a;if(u&&En(u)&&u.type===6&&En(u.data)&&u.data.plugin==="rrweb/console@1"){u.data.payload.payload.length>10&&(u.data.payload.payload=u.data.payload.payload.slice(0,10),u.data.payload.payload.push("...[truncated]"));const f=[];for(let d=0;d<u.data.payload.payload.length;d++)u.data.payload.payload[d]&&u.data.payload.payload[d].length>2e3?f.push(u.data.payload.payload[d].slice(0,2e3)+"...[truncated]"):f.push(u.data.payload.payload[d]);return u.data.payload.payload=f,a}return a}(r);if(this._updateWindowAndSessionIds(i),this.isIdle&&!_2(i))return;if(_2(i)){const a=i.data.payload;if(a){const u=a.lastActivityTimestamp,f=a.threshold;i.timestamp=u+f}}const s=(n=this.instance.config.session_recording.compress_events)===null||n===void 0||n?function(a){if(Qy(a)<1024)return a;try{if(a.type===hl.FullSnapshot)return{...a,data:Pu(a.data),cv:"2024-10"};if(a.type===hl.IncrementalSnapshot&&a.data.source===Os.Mutation)return{...a,cv:"2024-10",data:{...a.data,texts:Pu(a.data.texts),attributes:Pu(a.data.attributes),removes:Pu(a.data.removes),adds:Pu(a.data.adds)}};if(a.type===hl.IncrementalSnapshot&&a.data.source===Os.StyleSheetRule)return{...a,cv:"2024-10",data:{...a.data,adds:Pu(a.data.adds),removes:Pu(a.data.removes)}}}catch(u){ae.error(Fr+" could not compress event - will use uncompressed event",u)}return a}(i):i,o={$snapshot_bytes:Qy(s),$snapshot_data:s,$session_id:this.sessionId,$window_id:this.windowId};this.status!=="disabled"?this._captureSnapshotBuffered(o):this.clearBuffer()}_pageViewFallBack(){if(this.instance.config.capture_pageview||!G)return;const t=this._maskUrl(G.location.href);this._lastHref!==t&&(this._tryAddCustomEvent("$url_changed",{href:t}),this._lastHref=t)}_processQueuedEvents(){if(this.queuedRRWebEvents.length){const t=[...this.queuedRRWebEvents];this.queuedRRWebEvents=[],t.forEach(n=>{Date.now()-n.enqueuedAt<=2e3&&this._tryRRWebMethod(n)})}}_maskUrl(t){const n=this.instance.config.session_recording;if(n.maskNetworkRequestFn){var r;let i={url:t};return i=n.maskNetworkRequestFn(i),(r=i)===null||r===void 0?void 0:r.url}return t}clearBuffer(){return this.buffer={size:0,data:[],sessionId:this.sessionId,windowId:this.windowId},this.buffer}_flushBuffer(){this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0);const t=this.minimumDuration,n=this.sessionDuration,r=Si(n)&&n>=0,i=Si(t)&&r&&n<t;return this.status==="buffering"||i?(this.flushBufferTimer=setTimeout(()=>{this._flushBuffer()},2e3),this.buffer):(this.buffer.data.length>0&&sP(this.buffer).forEach(s=>{this._captureSnapshot({$snapshot_bytes:s.size,$snapshot_data:s.data,$session_id:s.sessionId,$window_id:s.windowId})}),this.clearBuffer())}_captureSnapshotBuffered(t){var n;const r=2+(((n=this.buffer)===null||n===void 0?void 0:n.data.length)||0);!this.isIdle&&(this.buffer.size+t.$snapshot_bytes+r>943718.4||this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),this.buffer.size+=t.$snapshot_bytes,this.buffer.data.push(t.$snapshot_data),this.flushBufferTimer||this.isIdle||(this.flushBufferTimer=setTimeout(()=>{this._flushBuffer()},2e3))}_captureSnapshot(t){this.instance.capture("$snapshot",t,{_url:this.instance.requestRouter.endpointFor("api",this._endpoint),_noTruncate:!0,_batchKey:"recordings",skip_client_rate_limiting:!0})}_checkUrlTrigger(){if(G===void 0||!G.location.href)return;const t=G.location.href;this._urlTriggers.some(n=>n.matching==="regex"&&new RegExp(n.url).test(t))&&this._activateUrlTrigger()}_activateUrlTrigger(){this.urlTriggerStatus==="trigger_pending"&&(this.urlTriggerStatus="trigger_activated",this._tryAddCustomEvent("url trigger activated",{}),this._flushBuffer(),ae.info(Fr+" recording triggered by URL pattern match"))}overrideLinkedFlag(){this._linkedFlagSeen=!0,this._reportStarted("linked_flag_override")}overrideSampling(){var t;(t=this.instance.persistence)===null||t===void 0||t.register({[lp]:!0}),this._reportStarted("sampling_override")}_reportStarted(t){(arguments.length>1&&arguments[1]!==void 0?arguments[1]:()=>!0)()&&this.instance.register_for_session({$session_recording_start_reason:t})}}class dye{constructor(t){this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}call(){const t={token:this.instance.config.token,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(Lf),group_properties:this.instance.get_property(dl),disable_flags:this.instance.config.advanced_disable_feature_flags||this.instance.config.advanced_disable_feature_flags_on_first_load||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:t,compression:this.instance.config.disable_compression?void 0:As.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:n=>this.parseDecideResponse(n.json)})}parseDecideResponse(t){this.instance.featureFlags.setReloadingPaused(!1),this.instance.featureFlags._startReloadTimer();const n=!t;if(this.instance.config.advanced_disable_feature_flags_on_first_load||this.instance.config.advanced_disable_feature_flags||this.instance.featureFlags.receivedFeatureFlags(t??{},n),n)ae.error("Failed to fetch feature flags from PostHog.");else{if(!Pe||!Pe.body)return ae.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(()=>{this.parseDecideResponse(t)},500);if(this.instance._afterDecideResponse(t),t.siteApps)if(this.instance.config.opt_in_site_apps)for(const{id:o,url:a}of t.siteApps){var r,i,s;at[`__$$ph_site_app_${o}`]=this.instance,(r=at.__PosthogExtensions__)===null||r===void 0||(i=(s=r).loadSiteApp)===null||i===void 0||i.call(s,this.instance,a,u=>{if(u)return ae.error(`Error while initializing PostHog app with config id ${o}`,u)})}else t.siteApps.length>0&&ae.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}}const hye=G!=null&&G.location?Xy(G.location.hash,"__posthog")||Xy(location.hash,"state"):null,y2="_postHogToolbarParams";var ra;(function(e){e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(ra||(ra={}));class pye{constructor(t){this.instance=t}setToolbarState(t){at.ph_toolbar_state=t}getToolbarState(){var t;return(t=at.ph_toolbar_state)!==null&&t!==void 0?t:ra.UNINITIALIZED}maybeLoadToolbar(){var t,n;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!G||!Pe)return!1;r=(t=r)!==null&&t!==void 0?t:G.location,s=(n=s)!==null&&n!==void 0?n:G.history;try{if(!i){try{G.localStorage.setItem("test","test"),G.localStorage.removeItem("test")}catch{return!1}i=G==null?void 0:G.localStorage}const o=hye||Xy(r.hash,"__posthog")||Xy(r.hash,"state");let a;const u=o?jL(()=>JSON.parse(atob(decodeURIComponent(o))))||jL(()=>JSON.parse(decodeURIComponent(o))):null;return u&&u.action==="ph_authorize"?(a=u,a.source="url",a&&Object.keys(a).length>0&&(u.desiredHash?r.hash=u.desiredHash:s?s.replaceState(s.state,"",r.pathname+r.search):r.hash="")):(a=JSON.parse(i.getItem(y2)||"{}"),a.source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token)&&(this.loadToolbar(a),!0)}catch{return!1}}_callLoadToolbar(t){(at.ph_load_toolbar||at.ph_load_editor)(t,this.instance)}loadToolbar(t){const n=!(Pe==null||!Pe.getElementById(tP));if(!G||n)return!1;const r=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,i={token:this.instance.config.token,...t,apiURL:this.instance.requestRouter.endpointFor("ui"),...r?{instrument:!1}:{}};if(G.localStorage.setItem(y2,JSON.stringify({...i,source:void 0})),this.getToolbarState()===ra.LOADED)this._callLoadToolbar(i);else if(this.getToolbarState()===ra.UNINITIALIZED){var s,o;this.setToolbarState(ra.LOADING),(s=at.__PosthogExtensions__)===null||s===void 0||(o=s.loadExternalDependency)===null||o===void 0||o.call(s,this.instance,"toolbar",a=>{if(a)return ae.error("Failed to load toolbar",a),void this.setToolbarState(ra.UNINITIALIZED);this.setToolbarState(ra.LOADED),this._callLoadToolbar(i)}),la(G,"turbolinks:load",()=>{this.setToolbarState(ra.UNINITIALIZED),this.loadToolbar(i)})}return!0}_loadEditor(t){return this.loadToolbar(t)}maybeLoadEditor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;return this.maybeLoadToolbar(t,n,r)}}class vye{constructor(t){K(this,"isPaused",!0);K(this,"queue",[]);K(this,"flushTimeoutMs",3e3);this.sendRequest=t}enqueue(t){this.queue.push(t),this.flushTimeout||this.setFlushTimeout()}unload(){this.clearFlushTimeout();const t=this.queue.length>0?this.formatQueue():{},n=Object.values(t);[...n.filter(i=>i.url.indexOf("/e")===0),...n.filter(i=>i.url.indexOf("/e")!==0)].map(i=>{this.sendRequest({...i,transport:"sendBeacon"})})}enable(){this.isPaused=!1,this.setFlushTimeout()}setFlushTimeout(){this.isPaused||(this.flushTimeout=setTimeout(()=>{if(this.clearFlushTimeout(),this.queue.length>0){const t=this.formatQueue();for(const n in t){const r=t[n],i=new Date().getTime();r.data&&Fn(r.data)&&Gt(r.data,s=>{s.offset=Math.abs(s.timestamp-i),delete s.timestamp}),this.sendRequest(r)}}},this.flushTimeoutMs))}clearFlushTimeout(){clearTimeout(this.flushTimeout),this.flushTimeout=void 0}formatQueue(){const t={};return Gt(this.queue,n=>{var r;const i=n,s=(i?i.batchKey:null)||i.url;ke(t[s])&&(t[s]={...i,data:[]}),(r=t[s].data)===null||r===void 0||r.push(i.data)}),this.queue=[],t}}const mye=!!SC||!!wC,w2="text/plain",n0=(e,t)=>{const[n,r]=e.split("?"),i={...t};r==null||r.split("&").forEach(o=>{const[a]=o.split("=");delete i[a]});let s=k_e(i);return s=s?(r?r+"&":"")+s:r,`${n}?${s}`},kC=e=>{let{data:t,compression:n}=e;if(!t)return;if(n===As.GZipJS){const i=f5(d5(JSON.stringify(t)),{mtime:0}),s=new Blob([i],{type:w2});return{contentType:w2,body:s,estimatedSize:s.size}}if(n===As.Base64){const i=function(o){const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let u,f,d,h,v,m,y,w,E=0,S=0,_="";const b=[];if(!o)return o;o=m_e(o);do u=o.charCodeAt(E++),f=o.charCodeAt(E++),d=o.charCodeAt(E++),w=u<<16|f<<8|d,h=w>>18&63,v=w>>12&63,m=w>>6&63,y=63&w,b[S++]=a.charAt(h)+a.charAt(v)+a.charAt(m)+a.charAt(y);while(E<o.length);switch(_=b.join(""),o.length%3){case 1:_=_.slice(0,-2)+"==";break;case 2:_=_.slice(0,-1)+"="}return _}(JSON.stringify(t)),s=(o=>"data="+encodeURIComponent(typeof o=="string"?o:JSON.stringify(o)))(i);return{contentType:"application/x-www-form-urlencoded",body:s,estimatedSize:new Blob([s]).size}}const r=JSON.stringify(t);return{contentType:"application/json",body:r,estimatedSize:new Blob([r]).size}},gye=e=>{var t;const n=new SC;n.open(e.method||"GET",e.url,!0);const{contentType:r,body:i}=(t=kC(e))!==null&&t!==void 0?t:{};Gt(e.headers,function(s,o){n.setRequestHeader(o,s)}),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),n.withCredentials=!0,n.onreadystatechange=()=>{if(n.readyState===4){var s;const o={statusCode:n.status,text:n.responseText};if(n.status===200)try{o.json=JSON.parse(n.responseText)}catch{}(s=e.callback)===null||s===void 0||s.call(e,o)}},n.send(i)},_ye=e=>{var t,n;const{contentType:r,body:i,estimatedSize:s}=(t=kC(e))!==null&&t!==void 0?t:{},o=new Headers;Gt(e.headers,function(f,d){o.append(d,f)}),r&&o.append("Content-Type",r);const a=e.url;let u=null;if($L){const f=new $L;u={signal:f.signal,timeout:setTimeout(()=>f.abort(),e.timeout)}}wC(a,{method:(e==null?void 0:e.method)||"GET",headers:o,keepalive:e.method==="POST"&&(s||0)<65536,body:i,signal:(n=u)===null||n===void 0?void 0:n.signal}).then(f=>f.text().then(d=>{var h;const v={statusCode:f.status,text:d};if(f.status===200)try{v.json=JSON.parse(d)}catch(m){ae.error(m)}(h=e.callback)===null||h===void 0||h.call(e,v)})).catch(f=>{var d;ae.error(f),(d=e.callback)===null||d===void 0||d.call(e,{statusCode:0,text:f})}).finally(()=>u?clearTimeout(u.timeout):null)},yye=e=>{const t=n0(e.url,{beacon:"1"});try{var n;const{contentType:r,body:i}=(n=kC(e))!==null&&n!==void 0?n:{},s=typeof i=="string"?new Blob([i],{type:r}):i;Ei.sendBeacon(t,s)}catch{}},Fp=[];SC&&Fp.push({transport:"XHR",method:gye}),wC&&Fp.push({transport:"fetch",method:_ye}),Ei!=null&&Ei.sendBeacon&&Fp.push({transport:"sendBeacon",method:yye});class wye{constructor(t){K(this,"isPolling",!1);K(this,"pollIntervalMs",3e3);K(this,"queue",[]);this.instance=t,this.queue=[],this.areWeOnline=!0,!ke(G)&&"onLine"in G.navigator&&(this.areWeOnline=G.navigator.onLine,G.addEventListener("online",()=>{this.areWeOnline=!0,this.flush()}),G.addEventListener("offline",()=>{this.areWeOnline=!1}))}retriableRequest(t){let{retriesPerformedSoFar:n,...r}=t;Si(n)&&n>0&&(r.url=n0(r.url,{retry_count:n})),this.instance._send_request({...r,callback:i=>{var s;i.statusCode!==200&&(i.statusCode<400||i.statusCode>=500)&&(n??0)<10?this.enqueue({retriesPerformedSoFar:n,...r}):(s=r.callback)===null||s===void 0||s.call(r,i)}})}enqueue(t){const n=t.retriesPerformedSoFar||0;t.retriesPerformedSoFar=n+1;const r=function(o){const a=3e3*2**o,u=a/2,f=Math.min(18e5,a),d=(Math.random()-.5)*(f-u);return Math.ceil(f+d)}(n),i=Date.now()+r;this.queue.push({retryAt:i,requestOptions:t});let s=`Enqueued failed request for retry in ${r}`;navigator.onLine||(s+=" (Browser is offline)"),ae.warn(s),this.isPolling||(this.isPolling=!0,this.poll())}poll(){this.poller&&clearTimeout(this.poller),this.poller=setTimeout(()=>{this.areWeOnline&&this.queue.length>0&&this.flush(),this.poll()},this.pollIntervalMs)}flush(){const t=Date.now(),n=[],r=this.queue.filter(i=>i.retryAt<t||(n.push(i),!1));if(this.queue=n,r.length>0)for(const{requestOptions:i}of r)this.retriableRequest(i)}unload(){this.poller&&(clearTimeout(this.poller),this.poller=void 0);for(const{requestOptions:t}of this.queue)try{this.instance._send_request({...t,transport:"sendBeacon"})}catch(n){ae.error(n)}this.queue=[]}}class Sye{constructor(t,n,r,i){K(this,"_sessionIdChangedHandlers",[]);var s;this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=r||xl,this._windowIdGenerator=i||xl;const o=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||1800;if(this._sessionTimeoutMs=1e3*ju(a,60,1800,"session_idle_timeout_seconds"),this._window_id_storage_key="ph_"+o+"_window_id",this._primary_window_exists_storage_key="ph_"+o+"_primary_window_exists",this._canUseSessionStorage()){const u=ir.parse(this._window_id_storage_key),f=ir.parse(this._primary_window_exists_storage_key);u&&!f?this._windowId=u:ir.remove(this._window_id_storage_key),ir.set(this._primary_window_exists_storage_key,!0)}if((s=this.config.bootstrap)!==null&&s!==void 0&&s.sessionID)try{const u=(f=>{const d=f.replace(/-/g,"");if(d.length!==32)throw new Error("Not a valid UUID");if(d[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(d.substring(0,12),16)})(this.config.bootstrap.sessionID);this._setSessionId(this.config.bootstrap.sessionID,new Date().getTime(),u)}catch(u){ae.error("Invalid sessionID in bootstrap",u)}this._listenToReloadWindow()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return ke(this._sessionIdChangedHandlers)&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(t),this._sessionId&&t(this._sessionId,this._windowId),()=>{this._sessionIdChangedHandlers=this._sessionIdChangedHandlers.filter(n=>n!==t)}}_canUseSessionStorage(){return this.config.persistence!=="memory"&&!this.persistence.disabled&&ir.is_supported()}_setWindowId(t){t!==this._windowId&&(this._windowId=t,this._canUseSessionStorage()&&ir.set(this._window_id_storage_key,t))}_getWindowId(){return this._windowId?this._windowId:this._canUseSessionStorage()?ir.parse(this._window_id_storage_key):null}_setSessionId(t,n,r){t===this._sessionId&&n===this._sessionActivityTimestamp&&r===this._sessionStartTimestamp||(this._sessionStartTimestamp=r,this._sessionActivityTimestamp=n,this._sessionId=t,this.persistence.register({[Hy]:[n,t,r]}))}_getSessionId(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];const t=this.persistence.props[Hy];return Fn(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this._setSessionId(null,null,null)}_listenToReloadWindow(){G==null||G.addEventListener("beforeunload",()=>{this._canUseSessionStorage()&&ir.remove(this._primary_window_exists_storage_key)})}checkAndGetSessionAndWindowId(){let t=arguments.length>0&&arguments[0]!==void 0&&arguments[0];const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime();let[r,i,s]=this._getSessionId(),o=this._getWindowId();const a=Si(s)&&s>0&&Math.abs(n-s)>864e5;let u=!1;const f=!i,d=!t&&Math.abs(n-r)>this.sessionTimeoutMs;f||d||a?(i=this._sessionIdGenerator(),o=this._windowIdGenerator(),ae.info("[SessionId] new session ID generated",{sessionId:i,windowId:o,changeReason:{noSessionId:f,activityTimeout:d,sessionPastMaximumLength:a}}),s=n,u=!0):o||(o=this._windowIdGenerator(),u=!0);const h=r===0||!t||a?n:r,v=s===0?new Date().getTime():s;return this._setWindowId(o),this._setSessionId(i,h,v),u&&this._sessionIdChangedHandlers.forEach(m=>m(i,o,u?{noSessionId:f,activityTimeout:d,sessionPastMaximumLength:a}:void 0)),{sessionId:i,windowId:o,sessionStartTimestamp:v,changeReason:u?{noSessionId:f,activityTimeout:d,sessionPastMaximumLength:a}:void 0,lastActivityTimestamp:r}}}let Wu;(function(e){e.US="us",e.EU="eu",e.CUSTOM="custom"})(Wu||(Wu={}));const S2="i.posthog.com";class bye{constructor(t){K(this,"_regionCache",{});this.instance=t}get apiHost(){const t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get uiHost(){var t;let n=(t=this.instance.config.ui_host)===null||t===void 0?void 0:t.replace(/\/$/,"");return n||(n=this.apiHost.replace(`.${S2}`,".posthog.com")),n==="https://app.posthog.com"?"https://us.posthog.com":n}get region(){return this._regionCache[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=Wu.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=Wu.EU:this._regionCache[this.apiHost]=Wu.CUSTOM),this._regionCache[this.apiHost]}endpointFor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(n&&(n=n[0]==="/"?n:`/${n}`),t==="ui")return this.uiHost+n;if(this.region===Wu.CUSTOM)return this.apiHost+n;const r=S2+n;switch(t){case"assets":return`https://${this.region}-assets.${r}`;case"api":return`https://${this.region}.${r}`}}}const h5="posthog-js";function p5(e){let{organization:t,projectId:n,prefix:r,severityAllowList:i=["error"]}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return s=>{var o,a,u,f,d;if(!(i==="*"||i.includes(s.level))||!e.__loaded)return s;s.tags||(s.tags={});const h=e.requestRouter.endpointFor("ui",`/project/${e.config.token}/person/${e.get_distinct_id()}`);s.tags["PostHog Person URL"]=h,e.sessionRecordingStarted()&&(s.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));const v=((o=s.exception)===null||o===void 0?void 0:o.values)||[],m={$exception_message:((a=v[0])===null||a===void 0?void 0:a.value)||s.message,$exception_type:(u=v[0])===null||u===void 0?void 0:u.type,$exception_personURL:h,$exception_level:s.level,$exception_list:v,$sentry_event_id:s.event_id,$sentry_exception:s.exception,$sentry_exception_message:((f=v[0])===null||f===void 0?void 0:f.value)||s.message,$sentry_exception_type:(d=v[0])===null||d===void 0?void 0:d.type,$sentry_tags:s.tags,$level:s.level};return t&&n&&(m.$sentry_url=(r||"https://sentry.io/organizations/")+t+"/issues/?project="+n+"&query="+s.event_id),e.exceptions.sendExceptionEvent(m),s}}class xye{constructor(t,n,r,i,s){this.name=h5,this.setupOnce=function(o){o(p5(t,{organization:n,projectId:r,prefix:i,severityAllowList:s}))}}}function Eye(e,t){const n=e.config.segment;if(!n)return t();(function(r,i){const s=r.config.segment;if(!s)return i();const o=u=>{const f=()=>u.anonymousId()||xl();r.config.get_device_id=f,u.id()&&(r.register({distinct_id:u.id(),$device_id:f()}),r.persistence.set_property(na,"identified")),i()},a=s.user();"then"in a&&is(a.then)?a.then(u=>o(u)):o(a)})(e,()=>{n.register((r=>{Promise&&Promise.resolve||ae.warn("This browser does not have Promise support, and can not use the segment integration");const i=(s,o)=>{var a;if(!o)return s;s.event.userId||s.event.anonymousId===r.get_distinct_id()||(ae.info("Segment integration does not have a userId set, resetting PostHog"),r.reset()),s.event.userId&&s.event.userId!==r.get_distinct_id()&&(ae.info("Segment integration has a userId set, identifying with PostHog"),r.identify(s.event.userId));const u=r._calculate_event_properties(o,(a=s.event.properties)!==null&&a!==void 0?a:{},new Date);return s.event.properties=Object.assign({},u,s.event.properties),s};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:s=>i(s,s.event.event),page:s=>i(s,"$pageview"),identify:s=>i(s,"$identify"),screen:s=>i(s,"$screen")}})(e)).then(()=>{t()})})}class Pye{constructor(t){this._instance=t}doPageView(t){var n;const r=this._previousPageViewProperties(t);return this._currentPath=(n=G==null?void 0:G.location.pathname)!==null&&n!==void 0?n:"",this._instance.scrollManager.resetContext(),this._prevPageviewTimestamp=t,r}doPageLeave(t){return this._previousPageViewProperties(t)}_previousPageViewProperties(t){const n=this._currentPath,r=this._prevPageviewTimestamp,i=this._instance.scrollManager.getContext();if(!r)return{};let s={};if(i){let{maxScrollHeight:o,lastScrollY:a,maxScrollY:u,maxContentHeight:f,lastContentY:d,maxContentY:h}=i;ke(o)||ke(a)||ke(u)||ke(f)||ke(d)||ke(h)||(o=Math.ceil(o),a=Math.ceil(a),u=Math.ceil(u),f=Math.ceil(f),d=Math.ceil(d),h=Math.ceil(h),s={$prev_pageview_last_scroll:a,$prev_pageview_last_scroll_percentage:o<=1?1:ju(a/o,0,1),$prev_pageview_max_scroll:u,$prev_pageview_max_scroll_percentage:o<=1?1:ju(u/o,0,1),$prev_pageview_last_content:d,$prev_pageview_last_content_percentage:f<=1?1:ju(d/f,0,1),$prev_pageview_max_content:h,$prev_pageview_max_content_percentage:f<=1?1:ju(h/f,0,1)})}return n&&(s.$prev_pageview_pathname=n),r&&(s.$prev_pageview_duration=(t.getTime()-r.getTime())/1e3),s}}let b2,r0,Es;(function(e){e.Popover="popover",e.API="api",e.Widget="widget"})(b2||(b2={})),function(e){e.Open="open",e.MultipleChoice="multiple_choice",e.SingleChoice="single_choice",e.Rating="rating",e.Link="link"}(r0||(r0={})),function(e){e.NextQuestion="next_question",e.End="end",e.ResponseBased="response_based",e.SpecificQuestion="specific_question"}(Es||(Es={}));class v5{constructor(){K(this,"events",{});this.events={}}on(t,n){return this.events[t]||(this.events[t]=[]),this.events[t].push(n),()=>{this.events[t]=this.events[t].filter(r=>r!==n)}}emit(t,n){for(const r of this.events[t]||[])r(n);for(const r of this.events["*"]||[])r(t,n)}}class Du{constructor(t){K(this,"_debugEventEmitter",new v5);K(this,"checkStep",(t,n)=>this.checkStepEvent(t,n)&&this.checkStepUrl(t,n)&&this.checkStepElement(t,n));K(this,"checkStepEvent",(t,n)=>n==null||!n.event||(t==null?void 0:t.event)===(n==null?void 0:n.event));this.instance=t,this.actionEvents=new Set,this.actionRegistry=new Set}init(){var t;if(!ke((t=this.instance)===null||t===void 0?void 0:t._addCaptureHook)){var n;const r=(i,s)=>{this.on(i,s)};(n=this.instance)===null||n===void 0||n._addCaptureHook(r)}}register(t){var n,r;if(!ke((n=this.instance)===null||n===void 0?void 0:n._addCaptureHook)&&(t.forEach(s=>{var o,a;(o=this.actionRegistry)===null||o===void 0||o.add(s),(a=s.steps)===null||a===void 0||a.forEach(u=>{var f;(f=this.actionEvents)===null||f===void 0||f.add((u==null?void 0:u.event)||"")})}),(r=this.instance)!==null&&r!==void 0&&r.autocapture)){var i;const s=new Set;t.forEach(o=>{var a;(a=o.steps)===null||a===void 0||a.forEach(u=>{u!=null&&u.selector&&s.add(u==null?void 0:u.selector)})}),(i=this.instance)===null||i===void 0||i.autocapture.setElementSelectors(s)}}on(t,n){var r;n!=null&&t.length!=0&&(this.actionEvents.has(t)||this.actionEvents.has(n==null?void 0:n.event))&&this.actionRegistry&&((r=this.actionRegistry)===null||r===void 0?void 0:r.size)>0&&this.actionRegistry.forEach(i=>{this.checkAction(n,i)&&this._debugEventEmitter.emit("actionCaptured",i.name)})}_addActionHook(t){this.onAction("actionCaptured",n=>t(n))}checkAction(t,n){if((n==null?void 0:n.steps)==null)return!1;for(const r of n.steps)if(this.checkStep(t,r))return!0;return!1}onAction(t,n){return this._debugEventEmitter.on(t,n)}checkStepUrl(t,n){if(n!=null&&n.url){var r;const i=t==null||(r=t.properties)===null||r===void 0?void 0:r.$current_url;if(!i||typeof i!="string"||!Du.matchString(i,n==null?void 0:n.url,(n==null?void 0:n.url_matching)||"contains"))return!1}return!0}static matchString(t,n,r){switch(r){case"regex":return!!G&&Rd(t,n);case"exact":return n===t;case"contains":const i=Du.escapeStringRegexp(n).replace(/_/g,".").replace(/%/g,".*");return Rd(t,i);default:return!1}}static escapeStringRegexp(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}checkStepElement(t,n){if((n!=null&&n.href||n!=null&&n.tag_name||n!=null&&n.text)&&!this.getElementsList(t).some(i=>!(n!=null&&n.href&&!Du.matchString(i.href||"",n==null?void 0:n.href,(n==null?void 0:n.href_matching)||"exact"))&&(n==null||!n.tag_name||i.tag_name===(n==null?void 0:n.tag_name))&&!(n!=null&&n.text&&!Du.matchString(i.text||"",n==null?void 0:n.text,(n==null?void 0:n.text_matching)||"exact")&&!Du.matchString(i.$el_text||"",n==null?void 0:n.text,(n==null?void 0:n.text_matching)||"exact"))))return!1;if(n!=null&&n.selector){var r;const i=t==null||(r=t.properties)===null||r===void 0?void 0:r.$element_selectors;if(!i||!i.includes(n==null?void 0:n.selector))return!1}return!0}getElementsList(t){return(t==null?void 0:t.properties.$elements)==null?[]:t==null?void 0:t.properties.$elements}}const a0=class a0{constructor(t){this.instance=t,this.eventToSurveys=new Map,this.actionToSurveys=new Map}register(t){var n;ke((n=this.instance)===null||n===void 0?void 0:n._addCaptureHook)||(this.setupEventBasedSurveys(t),this.setupActionBasedSurveys(t))}setupActionBasedSurveys(t){const n=t.filter(r=>{var i,s,o,a;return((i=r.conditions)===null||i===void 0?void 0:i.actions)&&((s=r.conditions)===null||s===void 0||(o=s.actions)===null||o===void 0||(a=o.values)===null||a===void 0?void 0:a.length)>0});if(n.length!==0){if(this.actionMatcher==null){this.actionMatcher=new Du(this.instance),this.actionMatcher.init();const r=i=>{this.onAction(i)};this.actionMatcher._addActionHook(r)}n.forEach(r=>{var i,s,o,a,u,f,d,h,v,m;r.conditions&&(i=r.conditions)!==null&&i!==void 0&&i.actions&&(s=r.conditions)!==null&&s!==void 0&&(o=s.actions)!==null&&o!==void 0&&o.values&&((a=r.conditions)===null||a===void 0||(u=a.actions)===null||u===void 0||(f=u.values)===null||f===void 0?void 0:f.length)>0&&((d=this.actionMatcher)===null||d===void 0||d.register(r.conditions.actions.values),(h=r.conditions)===null||h===void 0||(v=h.actions)===null||v===void 0||(m=v.values)===null||m===void 0||m.forEach(y=>{if(y&&y.name){const w=this.actionToSurveys.get(y.name);w&&w.push(r.id),this.actionToSurveys.set(y.name,w||[r.id])}}))})}}setupEventBasedSurveys(t){var n;t.filter(r=>{var i,s,o,a;return((i=r.conditions)===null||i===void 0?void 0:i.events)&&((s=r.conditions)===null||s===void 0||(o=s.events)===null||o===void 0||(a=o.values)===null||a===void 0?void 0:a.length)>0}).length!==0&&((n=this.instance)===null||n===void 0||n._addCaptureHook((r,i)=>{this.onEvent(r,i)}),t.forEach(r=>{var i,s,o;(i=r.conditions)===null||i===void 0||(s=i.events)===null||s===void 0||(o=s.values)===null||o===void 0||o.forEach(a=>{if(a&&a.name){const u=this.eventToSurveys.get(a.name);u&&u.push(r.id),this.eventToSurveys.set(a.name,u||[r.id])}})}))}onEvent(t,n){var r,i;const s=((r=this.instance)===null||r===void 0||(i=r.persistence)===null||i===void 0?void 0:i.props[Ig])||[];if(a0.SURVEY_SHOWN_EVENT_NAME==t&&n&&s.length>0){var o;const a=n==null||(o=n.properties)===null||o===void 0?void 0:o.$survey_id;if(a){const u=s.indexOf(a);u>=0&&(s.splice(u,1),this._updateActivatedSurveys(s))}}else this.eventToSurveys.has(t)&&this._updateActivatedSurveys(s.concat(this.eventToSurveys.get(t)||[]))}onAction(t){var n,r;const i=((n=this.instance)===null||n===void 0||(r=n.persistence)===null||r===void 0?void 0:r.props[Ig])||[];this.actionToSurveys.has(t)&&this._updateActivatedSurveys(i.concat(this.actionToSurveys.get(t)||[]))}_updateActivatedSurveys(t){var n,r;(n=this.instance)===null||n===void 0||(r=n.persistence)===null||r===void 0||r.register({[Ig]:[...new Set(t)]})}getSurveys(){var t,n;return((t=this.instance)===null||t===void 0||(n=t.persistence)===null||n===void 0?void 0:n.props[Ig])||[]}getEventToSurveys(){return this.eventToSurveys}_getActionMatcher(){return this.actionMatcher}};K(a0,"SURVEY_SHOWN_EVENT_NAME","survey shown");let i0=a0;var m5,gn,g5,Lu,x2,_5,vP,y5,mP={},w5=[],Oye=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,AC=Array.isArray;function El(e,t){for(var n in t)e[n]=t[n];return e}function S5(e){var t=e.parentNode;t&&t.removeChild(e)}function Ob(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++g5,__i:-1,__u:0};return i==null&&gn.vnode!=null&&gn.vnode(s),s}function RC(e){return e.children}function k_(e,t){this.props=e,this.context=t}function Dd(e,t){if(t==null)return e.__?Dd(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Dd(e):null}function b5(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return b5(e)}}function gP(e){(!e.__d&&(e.__d=!0)&&Lu.push(e)&&!s0.__r++||x2!==gn.debounceRendering)&&((x2=gn.debounceRendering)||_5)(s0)}function s0(){var e,t,n,r,i,s,o,a,u;for(Lu.sort(vP);e=Lu.shift();)e.__d&&(t=Lu.length,r=void 0,s=(i=(n=e).__v).__e,a=[],u=[],(o=n.__P)&&((r=El({},i)).__v=i.__v+1,gn.vnode&&gn.vnode(r),P5(o,r,i,n.__n,o.ownerSVGElement!==void 0,32&i.__u?[s]:null,a,s??Dd(i),!!(32&i.__u),u),r.__.__k[r.__i]=r,kye(a,r,u),r.__e!=s&&b5(r)),Lu.length>t&&Lu.sort(vP));s0.__r=0}function x5(e,t,n,r,i,s,o,a,u,f,d){var h,v,m,y,w,E=r&&r.__k||w5,S=t.length;for(n.__d=u,Tye(n,t,E),u=n.__d,h=0;h<S;h++)(m=n.__k[h])!=null&&typeof m!="boolean"&&typeof m!="function"&&(v=m.__i===-1?mP:E[m.__i]||mP,m.__i=h,P5(e,m,v,i,s,o,a,u,f,d),y=m.__e,m.ref&&v.ref!=m.ref&&(v.ref&&IC(v.ref,null,m),d.push(m.ref,m.__c||y,m)),w==null&&y!=null&&(w=y),65536&m.__u||v.__k===m.__k?u=E5(m,u,e):typeof m.type=="function"&&m.__d!==void 0?u=m.__d:y&&(u=y.nextSibling),m.__d=void 0,m.__u&=-196609);n.__d=u,n.__e=w}function Tye(e,t,n){var r,i,s,o,a,u=t.length,f=n.length,d=f,h=0;for(e.__k=[],r=0;r<u;r++)(i=e.__k[r]=(i=t[r])==null||typeof i=="boolean"||typeof i=="function"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Ob(null,i,null,null,i):AC(i)?Ob(RC,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Ob(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,a=Cye(i,n,o=r+h,d),i.__i=a,s=null,a!==-1&&(d--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&h--,typeof i.type!="function"&&(i.__u|=65536)):a!==o&&(a===o+1?h++:a>o?d>u-o?h+=a-o:h--:h=a<o&&a==o-1?a-o:0,a!==r+h&&(i.__u|=65536))):(s=n[r])&&s.key==null&&s.__e&&(s.__e==e.__d&&(e.__d=Dd(s)),_P(s,s,!1),n[r]=null,d--);if(d)for(r=0;r<f;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Dd(s)),_P(s,s))}function E5(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=E5(r[i],t,n));return t}return e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e),t&&t.nextSibling}function Cye(e,t,n,r){var i=e.key,s=e.type,o=n-1,a=n+1,u=t[n];if(u===null||u&&i==u.key&&s===u.type)return n;if(r>(u!=null&&!(131072&u.__u)?1:0))for(;o>=0||a<t.length;){if(o>=0){if((u=t[o])&&!(131072&u.__u)&&i==u.key&&s===u.type)return o;o--}if(a<t.length){if((u=t[a])&&!(131072&u.__u)&&i==u.key&&s===u.type)return a;a++}}return-1}function E2(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Oye.test(t)?n:n+"px"}function $g(e,t,n,r,i){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||E2(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||E2(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,s?O2:P2,s)):e.removeEventListener(t,s?O2:P2,s);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function P2(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(gn.event?gn.event(e):e)}function O2(e){return this.l[e.type+!0](gn.event?gn.event(e):e)}function P5(e,t,n,r,i,s,o,a,u,f){var d,h,v,m,y,w,E,S,_,b,O,I,A,C,P,M=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),s=[a=t.__e=n.__e]),(d=gn.__b)&&d(t);e:if(typeof M=="function")try{if(S=t.props,_=(d=M.contextType)&&r[d.__c],b=d?_?_.props.value:d.__:r,n.__c?E=(h=t.__c=n.__c).__=h.__E:("prototype"in M&&M.prototype.render?t.__c=h=new M(S,b):(t.__c=h=new k_(S,b),h.constructor=M,h.render=Rye),_&&_.sub(h),h.props=S,h.state||(h.state={}),h.context=b,h.__n=r,v=h.__d=!0,h.__h=[],h._sb=[]),h.__s==null&&(h.__s=h.state),M.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=El({},h.__s)),El(h.__s,M.getDerivedStateFromProps(S,h.__s))),m=h.props,y=h.state,h.__v=t,v)M.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(M.getDerivedStateFromProps==null&&S!==m&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(S,b),!h.__e&&(h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(S,h.__s,b)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(h.props=S,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(D){D&&(D.__=t)}),O=0;O<h._sb.length;O++)h.__h.push(h._sb[O]);h._sb=[],h.__h.length&&o.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(S,h.__s,b),h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(m,y,w)})}if(h.context=b,h.props=S,h.__P=e,h.__e=!1,I=gn.__r,A=0,"prototype"in M&&M.prototype.render){for(h.state=h.__s,h.__d=!1,I&&I(t),d=h.render(h.props,h.state,h.context),C=0;C<h._sb.length;C++)h.__h.push(h._sb[C]);h._sb=[]}else do h.__d=!1,I&&I(t),d=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++A<25);h.state=h.__s,h.getChildContext!=null&&(r=El(El({},r),h.getChildContext())),v||h.getSnapshotBeforeUpdate==null||(w=h.getSnapshotBeforeUpdate(m,y)),x5(e,AC(P=d!=null&&d.type===RC&&d.key==null?d.props.children:d)?P:[P],t,n,r,i,s,o,a,u,f),h.base=t.__e,t.__u&=-161,h.__h.length&&o.push(h),E&&(h.__E=h.__=null)}catch(D){t.__v=null,u||s!=null?(t.__e=a,t.__u|=u?160:32,s[s.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),gn.__e(D,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Aye(n.__e,t,n,r,i,s,o,u,f);(d=gn.diffed)&&d(t)}function kye(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)IC(n[r],n[++r],n[++r]);gn.__c&&gn.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(s){s.call(i)})}catch(s){gn.__e(s,i.__v)}})}function Aye(e,t,n,r,i,s,o,a,u){var f,d,h,v,m,y,w,E=n.props,S=t.props,_=t.type;if(_==="svg"&&(i=!0),s!=null){for(f=0;f<s.length;f++)if((m=s[f])&&"setAttribute"in m==!!_&&(_?m.localName===_:m.nodeType===3)){e=m,s[f]=null;break}}if(e==null){if(_===null)return document.createTextNode(S);e=i?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,S.is&&S),s=null,a=!1}if(_===null)E===S||a&&e.data===S||(e.data=S);else{if(s=s&&m5.call(e.childNodes),E=n.props||mP,!a&&s!=null)for(E={},f=0;f<e.attributes.length;f++)E[(m=e.attributes[f]).name]=m.value;for(f in E)m=E[f],f=="children"||(f=="dangerouslySetInnerHTML"?h=m:f==="key"||f in S||$g(e,f,null,m,i));for(f in S)m=S[f],f=="children"?v=m:f=="dangerouslySetInnerHTML"?d=m:f=="value"?y=m:f=="checked"?w=m:f==="key"||a&&typeof m!="function"||E[f]===m||$g(e,f,m,E[f],i);if(d)a||h&&(d.__html===h.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(h&&(e.innerHTML=""),x5(e,AC(v)?v:[v],t,n,r,i&&_!=="foreignObject",s,o,s?s[0]:n.__k&&Dd(n,0),a,u),s!=null)for(f=s.length;f--;)s[f]!=null&&S5(s[f]);a||(f="value",y!==void 0&&(y!==e[f]||_==="progress"&&!y||_==="option"&&y!==E[f])&&$g(e,f,y,E[f],!1),f="checked",w!==void 0&&w!==e[f]&&$g(e,f,w,E[f],!1))}return e}function IC(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){gn.__e(r,n)}}function _P(e,t,n){var r,i;if(gn.unmount&&gn.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||IC(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){gn.__e(s,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&_P(r[i],t,n||typeof e.type!="function");n||e.__e==null||S5(e.__e),e.__=e.__e=e.__d=void 0}function Rye(e,t,n){return this.constructor(e,n)}m5=w5.slice,gn={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(a){e=a}throw e}},g5=0,k_.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=El({},this.state),typeof e=="function"&&(e=e(El({},n),this.props)),e&&El(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),gP(this))},k_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),gP(this))},k_.prototype.render=RC,Lu=[],_5=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,vP=function(e,t){return e.__v.__b-t.__v.__b},s0.__r=0,y5=0;(function(e,t){var n={__c:t="__cC"+y5++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(function(a){a.__e=!0,gP(a)})},this.sub=function(o){i.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),a&&a.call(o)}}),r.children}};n.Provider.__=n.Consumer.contextType=n})({isPreviewMode:!1,previewPageIndex:0,handleCloseSurveyPopup:()=>{},isPopup:!0});const Jh="[Surveys]",Iye={icontains:e=>!!G&&G.location.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:e=>!!G&&G.location.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:e=>!!G&&Rd(G.location.href,e),not_regex:e=>!!G&&!Rd(G.location.href,e),exact:e=>(G==null?void 0:G.location.href)===e,is_not:e=>(G==null?void 0:G.location.href)!==e};class Mye{constructor(t){this.instance=t,this._surveyEventReceiver=null}afterDecideResponse(t){this._decideServerResponse=!!t.surveys,this.loadIfEnabled()}reset(){localStorage.removeItem("lastSeenSurveyDate"),(()=>{const n=[];for(let r=0;r<localStorage.length;r++){const i=localStorage.key(r);i!=null&&i.startsWith("seenSurvey_")&&n.push(i)}return n})().forEach(n=>localStorage.removeItem(n))}loadIfEnabled(){var t;const n=at==null||(t=at.__PosthogExtensions__)===null||t===void 0?void 0:t.generateSurveys;var r,i;this.instance.config.disable_surveys||!this._decideServerResponse||n||(this._surveyEventReceiver==null&&(this._surveyEventReceiver=new i0(this.instance)),(r=at.__PosthogExtensions__)===null||r===void 0||(i=r.loadExternalDependency)===null||i===void 0||i.call(r,this.instance,"surveys",s=>{var o,a;if(s)return ae.error(Jh,"Could not load surveys script",s);this._surveyManager=(o=at.__PosthogExtensions__)===null||o===void 0||(a=o.generateSurveys)===null||a===void 0?void 0:a.call(o,this.instance)}))}getSurveys(t){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(this.instance.config.disable_surveys)return t([]);this._surveyEventReceiver==null&&(this._surveyEventReceiver=new i0(this.instance));const r=this.instance.get_property(XE);if(r&&!n)return t(r);this.instance._send_request({url:this.instance.requestRouter.endpointFor("api",`/api/surveys/?token=${this.instance.config.token}`),method:"GET",transport:"XHR",callback:i=>{var s;if(i.statusCode!==200||!i.json)return t([]);const o=i.json.surveys||[],a=o.filter(f=>{var d,h,v,m,y,w,E,S,_,b,O,I;return((d=f.conditions)===null||d===void 0?void 0:d.events)&&((h=f.conditions)===null||h===void 0||(v=h.events)===null||v===void 0?void 0:v.values)&&((m=f.conditions)===null||m===void 0||(y=m.events)===null||y===void 0||(w=y.values)===null||w===void 0?void 0:w.length)>0||((E=f.conditions)===null||E===void 0?void 0:E.actions)&&((S=f.conditions)===null||S===void 0||(_=S.actions)===null||_===void 0?void 0:_.values)&&((b=f.conditions)===null||b===void 0||(O=b.actions)===null||O===void 0||(I=O.values)===null||I===void 0?void 0:I.length)>0});var u;return a.length>0&&((u=this._surveyEventReceiver)===null||u===void 0||u.register(a)),(s=this.instance.persistence)===null||s===void 0||s.register({[XE]:o}),t(o)}})}getActiveMatchingSurveys(t){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(r=>{var i;const s=r.filter(u=>!(!u.start_date||u.end_date)).filter(u=>{var f,d,h,v;if(!u.conditions)return!0;const m=(f=u.conditions)===null||f===void 0||!f.url||Iye[(d=(h=u.conditions)===null||h===void 0?void 0:h.urlMatchType)!==null&&d!==void 0?d:"icontains"](u.conditions.url),y=(v=u.conditions)===null||v===void 0||!v.selector||(Pe==null?void 0:Pe.querySelector(u.conditions.selector));return m&&y}),o=(i=this._surveyEventReceiver)===null||i===void 0?void 0:i.getSurveys(),a=s.filter(u=>{var f,d,h,v,m,y,w,E,S,_;if(!u.linked_flag_key&&!u.targeting_flag_key&&!u.internal_targeting_flag_key)return!0;const b=!u.linked_flag_key||this.instance.featureFlags.isFeatureEnabled(u.linked_flag_key),O=!u.targeting_flag_key||this.instance.featureFlags.isFeatureEnabled(u.targeting_flag_key),I=((f=u.conditions)===null||f===void 0?void 0:f.events)&&((d=u.conditions)===null||d===void 0||(h=d.events)===null||h===void 0?void 0:h.values)&&((v=u.conditions)===null||v===void 0||(m=v.events)===null||m===void 0?void 0:m.values.length)>0,A=((y=u.conditions)===null||y===void 0?void 0:y.actions)&&((w=u.conditions)===null||w===void 0||(E=w.actions)===null||E===void 0?void 0:E.values)&&((S=u.conditions)===null||S===void 0||(_=S.actions)===null||_===void 0?void 0:_.values.length)>0,C=!I&&!A||(o==null?void 0:o.includes(u.id)),P=this._canActivateRepeatedly(u),M=!(u.internal_targeting_flag_key&&!P)||this.instance.featureFlags.isFeatureEnabled(u.internal_targeting_flag_key);return b&&O&&M&&C});return t(a)},n)}getNextSurveyStep(t,n,r){var i;const s=t.questions[n],o=n+1;if((i=s.branching)===null||i===void 0||!i.type)return n===t.questions.length-1?Es.End:o;if(s.branching.type===Es.End)return Es.End;if(s.branching.type===Es.SpecificQuestion){if(Number.isInteger(s.branching.index))return s.branching.index}else if(s.branching.type===Es.ResponseBased){if(s.type===r0.SingleChoice){var a,u;const h=s.choices.indexOf(`${r}`);if((a=s.branching)!==null&&a!==void 0&&(u=a.responseValues)!==null&&u!==void 0&&u.hasOwnProperty(h)){const v=s.branching.responseValues[h];return Number.isInteger(v)?v:v===Es.End?Es.End:o}}else if(s.type===r0.Rating){var f,d;if(typeof r!="number"||!Number.isInteger(r))throw new Error("The response type must be an integer");const h=function(v,m){if(m===3){if(v<1||v>3)throw new Error("The response must be in range 1-3");return v===1?"negative":v===2?"neutral":"positive"}if(m===5){if(v<1||v>5)throw new Error("The response must be in range 1-5");return v<=2?"negative":v===3?"neutral":"positive"}if(m===7){if(v<1||v>7)throw new Error("The response must be in range 1-7");return v<=3?"negative":v===4?"neutral":"positive"}if(m===10){if(v<0||v>10)throw new Error("The response must be in range 0-10");return v<=6?"detractors":v<=8?"passives":"promoters"}throw new Error("The scale must be one of: 3, 5, 7, 10")}(r,s.scale);if((f=s.branching)!==null&&f!==void 0&&(d=f.responseValues)!==null&&d!==void 0&&d.hasOwnProperty(h)){const v=s.branching.responseValues[h];return Number.isInteger(v)?v:v===Es.End?Es.End:o}}return o}return ae.warn(Jh,"Falling back to next question index due to unexpected branching type"),o}_canActivateRepeatedly(t){var n;return vn((n=at.__PosthogExtensions__)===null||n===void 0?void 0:n.canActivateRepeatedly)?(ae.warn(Jh,"canActivateRepeatedly is not defined, must init before calling"),!1):at.__PosthogExtensions__.canActivateRepeatedly(t)}canRenderSurvey(t){vn(this._surveyManager)?ae.warn(Jh,"canActivateRepeatedly is not defined, must init before calling"):this.getSurveys(n=>{const r=n.filter(i=>i.id===t)[0];this._surveyManager.canRenderSurvey(r)})}renderSurvey(t,n){vn(this._surveyManager)?ae.warn(Jh,"canActivateRepeatedly is not defined, must init before calling"):this.getSurveys(r=>{const i=r.filter(s=>s.id===t)[0];this._surveyManager.renderSurvey(i,Pe==null?void 0:Pe.querySelector(n))})}}class Dye{constructor(t){K(this,"serverLimits",{});K(this,"lastEventRateLimited",!1);K(this,"checkForLimiting",t=>{const n=t.text;if(n&&n.length)try{(JSON.parse(n).quota_limited||[]).forEach(i=>{ae.info(`[RateLimiter] ${i||"events"} is quota limited.`),this.serverLimits[i]=new Date().getTime()+6e4})}catch(r){return void ae.warn(`[RateLimiter] could not rate limit - continuing. Error: "${r==null?void 0:r.message}"`,{text:n})}});var n,r;this.instance=t,this.captureEventsPerSecond=((n=t.config.rate_limiting)===null||n===void 0?void 0:n.events_per_second)||10,this.captureEventsBurstLimit=Math.max(((r=t.config.rate_limiting)===null||r===void 0?void 0:r.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}clientRateLimitContext(){var t,n,r;let i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];const s=new Date().getTime(),o=(t=(n=this.instance.persistence)===null||n===void 0?void 0:n.get_property(QE))!==null&&t!==void 0?t:{tokens:this.captureEventsBurstLimit,last:s};o.tokens+=(s-o.last)/1e3*this.captureEventsPerSecond,o.last=s,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);const a=o.tokens<1;return a||i||(o.tokens=Math.max(0,o.tokens-1)),!a||this.lastEventRateLimited||i||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:`posthog-js client rate limited. Config is set to ${this.captureEventsPerSecond} events per second and ${this.captureEventsBurstLimit} events burst limit.`},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=a,(r=this.instance.persistence)===null||r===void 0||r.set_property(QE,o),{isRateLimited:a,remainingTokens:o.tokens}}isServerRateLimited(t){const n=this.serverLimits[t||"events"]||!1;return n!==!1&&new Date().getTime()<n}}const Lye=()=>({initialPathName:(Zr==null?void 0:Zr.pathname)||"",referringDomain:Mn.referringDomain(),...Mn.campaignParams()});class Fye{constructor(t,n,r){K(this,"_onSessionIdCallback",t=>{const n=this._getStoredProps();if(n&&n.sessionId===t)return;const r={sessionId:t,props:this._sessionSourceParamGenerator()};this._persistence.register({[JE]:r})});this._sessionIdManager=t,this._persistence=n,this._sessionSourceParamGenerator=r||Lye,this._sessionIdManager.onSessionId(this._onSessionIdCallback)}_getStoredProps(){return this._persistence.props[JE]}getSessionProps(){var t;const n=(t=this._getStoredProps())===null||t===void 0?void 0:t.props;return n?{$client_session_initial_referring_host:n.referringDomain,$client_session_initial_pathname:n.initialPathName,$client_session_initial_utm_source:n.utm_source,$client_session_initial_utm_campaign:n.utm_campaign,$client_session_initial_utm_medium:n.utm_medium,$client_session_initial_utm_content:n.utm_content,$client_session_initial_utm_term:n.utm_term}:{}}}const Nye=["ahrefsbot","ahrefssiteaudit","applebot","baiduspider","bingbot","bingpreview","bot.htm","bot.php","crawler","deepscan","duckduckbot","facebookexternal","facebookcatalog","gptbot","http://yandex.com/bots","hubspot","ia_archiver","linkedinbot","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","semrushbot","sitebulb","slurp","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","headlesschrome","cypress","Google-HotelAdsVerifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google","Bytespider;"],T2=function(e,t){if(!e)return!1;const n=e.toLowerCase();return Nye.concat(t||[]).some(r=>{const i=r.toLowerCase();return n.indexOf(i)!==-1})},O5=function(e,t){if(!e)return!1;const n=e.userAgent;if(n&&T2(n,t))return!0;try{const r=e==null?void 0:e.userAgentData;if(r!=null&&r.brands&&r.brands.some(i=>T2(i==null?void 0:i.brand,t)))return!0}catch{}return!!e.webdriver};class T5{constructor(){this.clicks=[]}isRageClick(t,n,r){const i=this.clicks[this.clicks.length-1];if(i&&Math.abs(t-i.x)+Math.abs(n-i.y)<30&&r-i.timestamp<1e3){if(this.clicks.push({x:t,y:n,timestamp:r}),this.clicks.length===3)return!0}else this.clicks=[{x:t,y:n,timestamp:r}];return!1}}function C2(e){var t;return e.id===tP||!((t=e.closest)===null||t===void 0||!t.call(e,"#"+tP))}class $ye{constructor(t){K(this,"rageclicks",new T5);K(this,"_enabledServerSide",!1);K(this,"_initialized",!1);K(this,"_flushInterval",null);var n;this.instance=t,this._enabledServerSide=!((n=this.instance.persistence)===null||n===void 0||!n.props[YE]),G==null||G.addEventListener("beforeunload",()=>{this.flush()})}get flushIntervalMilliseconds(){let t=5e3;return En(this.instance.config.capture_heatmaps)&&this.instance.config.capture_heatmaps.flush_interval_milliseconds&&(t=this.instance.config.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return ke(this.instance.config.capture_heatmaps)?ke(this.instance.config.enable_heatmaps)?this._enabledServerSide:this.instance.config.enable_heatmaps:this.instance.config.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this._initialized)return;ae.info("[heatmaps] starting..."),this._setupListeners(),this._flushInterval=setInterval(this.flush.bind(this),this.flushIntervalMilliseconds)}else{var t;clearInterval((t=this._flushInterval)!==null&&t!==void 0?t:void 0),this.getAndClearBuffer()}}afterDecideResponse(t){const n=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[YE]:n}),this._enabledServerSide=n,this.startIfEnabled()}getAndClearBuffer(){const t=this.buffer;return this.buffer=void 0,t}_setupListeners(){G&&Pe&&(la(Pe,"click",t=>this._onClick(t||(G==null?void 0:G.event)),!1,!0),la(Pe,"mousemove",t=>this._onMouseMove(t||(G==null?void 0:G.event)),!1,!0),this._initialized=!0)}_getProperties(t,n){const r=this.instance.scrollManager.scrollY(),i=this.instance.scrollManager.scrollX(),s=this.instance.scrollManager.scrollElement(),o=function(a,u,f){let d=a;for(;d&&M1(d)&&!Nl(d,"body");){if(d===f)return!1;if(ft(u,G==null?void 0:G.getComputedStyle(d).position))return!0;d=n5(d)}return!1}(Zj(t),["fixed","sticky"],s);return{x:t.clientX+(o?0:i),y:t.clientY+(o?0:r),target_fixed:o,type:n}}_onClick(t){var n;if(C2(t.target))return;const r=this._getProperties(t,"click");(n=this.rageclicks)!==null&&n!==void 0&&n.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this._capture({...r,type:"rageclick"}),this._capture(r)}_onMouseMove(t){C2(t.target)||(clearTimeout(this._mouseMoveTimeout),this._mouseMoveTimeout=setTimeout(()=>{this._capture(this._getProperties(t,"mousemove"))},500))}_capture(t){if(!G)return;const n=G.location.href;this.buffer=this.buffer||{},this.buffer[n]||(this.buffer[n]=[]),this.buffer[n].push(t)}flush(){this.buffer&&!T_(this.buffer)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}}class Bye{constructor(t){K(this,"_updateScrollData",()=>{var t,n,r,i;this.context||(this.context={});const s=this.scrollElement(),o=this.scrollY(),a=s?Math.max(0,s.scrollHeight-s.clientHeight):0,u=o+((s==null?void 0:s.clientHeight)||0),f=(s==null?void 0:s.scrollHeight)||0;this.context.lastScrollY=Math.ceil(o),this.context.maxScrollY=Math.max(o,(t=this.context.maxScrollY)!==null&&t!==void 0?t:0),this.context.maxScrollHeight=Math.max(a,(n=this.context.maxScrollHeight)!==null&&n!==void 0?n:0),this.context.lastContentY=u,this.context.maxContentY=Math.max(u,(r=this.context.maxContentY)!==null&&r!==void 0?r:0),this.context.maxContentHeight=Math.max(f,(i=this.context.maxContentHeight)!==null&&i!==void 0?i:0)});this.instance=t}getContext(){return this.context}resetContext(){const t=this.context;return setTimeout(this._updateScrollData,0),t}startMeasuringScrollPosition(){G==null||G.addEventListener("scroll",this._updateScrollData,!0),G==null||G.addEventListener("scrollend",this._updateScrollData,!0),G==null||G.addEventListener("resize",this._updateScrollData)}scrollElement(){if(!this.instance.config.scroll_root_selector)return G==null?void 0:G.document.documentElement;{const t=Fn(this.instance.config.scroll_root_selector)?this.instance.config.scroll_root_selector:[this.instance.config.scroll_root_selector];for(const n of t){const r=G==null?void 0:G.document.querySelector(n);if(r)return r}}}scrollY(){if(this.instance.config.scroll_root_selector){const t=this.scrollElement();return t&&t.scrollTop||0}return G&&(G.scrollY||G.pageYOffset||G.document.documentElement.scrollTop)||0}scrollX(){if(this.instance.config.scroll_root_selector){const t=this.scrollElement();return t&&t.scrollLeft||0}return G&&(G.scrollX||G.pageXOffset||G.document.documentElement.scrollLeft)||0}}const Tb="$copy_autocapture";function Cb(e,t){return t.length>e?t.slice(0,e)+"...":t}class Uye{constructor(t){K(this,"_initialized",!1);K(this,"_isDisabledServerSide",null);K(this,"rageclicks",new T5);K(this,"_elementsChainAsString",!1);this.instance=t,this._elementSelectors=null}get config(){var t,n;const r=En(this.instance.config.autocapture)?this.instance.config.autocapture:{};return r.url_allowlist=(t=r.url_allowlist)===null||t===void 0?void 0:t.map(i=>new RegExp(i)),r.url_ignorelist=(n=r.url_ignorelist)===null||n===void 0?void 0:n.map(i=>new RegExp(i)),r}_addDomEventHandlers(){if(!this.isBrowserSupported())return void ae.info("Disabling Automatic Event Collection because this browser is not supported");if(!G||!Pe)return;const t=r=>{r=r||(G==null?void 0:G.event);try{this._captureEvent(r)}catch(i){ae.error("Failed to capture event",i)}},n=r=>{r=r||(G==null?void 0:G.event),this._captureEvent(r,Tb)};la(Pe,"submit",t,!1,!0),la(Pe,"change",t,!1,!0),la(Pe,"click",t,!1,!0),this.config.capture_copied_text&&(la(Pe,"copy",n,!1,!0),la(Pe,"cut",n,!1,!0))}startIfEnabled(){this.isEnabled&&!this._initialized&&(this._addDomEventHandlers(),this._initialized=!0)}afterDecideResponse(t){t.elementsChainAsString&&(this._elementsChainAsString=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[WL]:!!t.autocapture_opt_out}),this._isDisabledServerSide=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this._elementSelectors=t}getElementSelectors(t){var n;const r=[];return(n=this._elementSelectors)===null||n===void 0||n.forEach(i=>{const s=Pe==null?void 0:Pe.querySelectorAll(i);s==null||s.forEach(o=>{t===o&&r.push(i)})}),r}get isEnabled(){var t,n;const r=(t=this.instance.persistence)===null||t===void 0?void 0:t.props[WL],i=this._isDisabledServerSide;if(eu(i)&&!Vu(r)&&!this.instance.config.advanced_disable_decide)return!1;const s=(n=this._isDisabledServerSide)!==null&&n!==void 0?n:!!r;return!!this.instance.config.autocapture&&!s}_previousElementSibling(t){if(t.previousElementSibling)return t.previousElementSibling;let n=t;do n=n.previousSibling;while(n&&!M1(n));return n}_getAugmentPropertiesFromElement(t){if(!aP(t))return{};const n={};return Gt(t.attributes,function(r){if(r.name&&r.name.indexOf("data-ph-capture-attribute")===0){const i=r.name.replace("data-ph-capture-attribute-",""),s=r.value;i&&s&&nd(s)&&(n[i]=s)}}),n}_getPropertiesFromElement(t,n,r){var i;const s=t.tagName.toLowerCase(),o={tag_name:s};oP.indexOf(s)>-1&&!r&&(s.toLowerCase()==="a"||s.toLowerCase()==="button"?o.$el_text=Cb(1024,u2(t)):o.$el_text=Cb(1024,e0(t)));const a=Zy(t);a.length>0&&(o.classes=a.filter(function(v){return v!==""}));const u=(i=this.config)===null||i===void 0?void 0:i.element_attribute_ignorelist;Gt(t.attributes,function(v){var m;if((!r5(t)||["name","id","class","aria-label"].indexOf(v.name)!==-1)&&(u==null||!u.includes(v.name))&&!n&&nd(v.value)&&(m=v.name,!br(m)||m.substring(0,10)!=="_ngcontent"&&m.substring(0,7)!=="_nghost")){let y=v.value;v.name==="class"&&(y=OC(y).join(" ")),o["attr__"+v.name]=Cb(1024,y)}});let f=1,d=1,h=t;for(;h=this._previousElementSibling(h);)f++,h.tagName===t.tagName&&d++;return o.nth_child=f,o.nth_of_type=d,o}_getDefaultProperties(t){return{$event_type:t,$ce_version:1}}_captureEvent(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"$autocapture";if(!this.isEnabled)return;let r=Zj(t);var i;e5(r)&&(r=r.parentNode||null),n==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(i=this.rageclicks)!==null&&i!==void 0&&i.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this._captureEvent(t,"$rageclick");const s=n===Tb;if(r&&V_e(r,t,this.config,s,s?["copy","cut"]:void 0)){var o,a;const h=[r];let v=r;for(;v.parentNode&&!Nl(v,"body");)t5(v.parentNode)?(h.push(v.parentNode.host),v=v.parentNode.host):(h.push(v.parentNode),v=v.parentNode);const m=[],y={};let w,E,S=!1;if(Gt(h,O=>{const I=aP(O);O.tagName.toLowerCase()==="a"&&(w=O.getAttribute("href"),w=I&&nd(w)&&w),ft(Zy(O),"ph-no-capture")&&(S=!0),m.push(this._getPropertiesFromElement(O,this.instance.config.mask_all_element_attributes,this.instance.config.mask_all_text));const A=this._getAugmentPropertiesFromElement(O);Ur(y,A)}),this.instance.config.mask_all_text||(r.tagName.toLowerCase()==="a"||r.tagName.toLowerCase()==="button"?m[0].$el_text=u2(r):m[0].$el_text=e0(r)),w){var u,f;m[0].attr__href=w;const O=(u=Dp(w))===null||u===void 0?void 0:u.host,I=G==null||(f=G.location)===null||f===void 0?void 0:f.host;O&&I&&O!==I&&(E=w)}if(S)return!1;const _=Ur(this._getDefaultProperties(t.type),this._elementsChainAsString?{$elements_chain:G_e(m)}:{$elements:m},(o=m[0])!==null&&o!==void 0&&o.$el_text?{$el_text:(a=m[0])===null||a===void 0?void 0:a.$el_text}:{},E&&t.type==="click"?{$external_click_url:E}:{},y),b=this.getElementSelectors(r);if(b&&b.length>0&&(_.$element_selectors=b),n===Tb){var d;const O=Qj(G==null||(d=G.getSelection())===null||d===void 0?void 0:d.toString()),I=t.type||"clipboard";if(!O)return!1;_.$selected_content=O,_.$copy_type=I}return this.instance.capture(n,_),!0}}isBrowserSupported(){return is(Pe==null?void 0:Pe.querySelectorAll)}}class Vye{constructor(t){K(this,"_restoreXHRPatch");K(this,"_restoreFetchPatch");K(this,"_startCapturing",()=>{var t,n,r,i;ke(this._restoreXHRPatch)&&((t=at.__PosthogExtensions__)===null||t===void 0||(n=t.tracingHeadersPatchFns)===null||n===void 0||n._patchXHR(this.instance.sessionManager)),ke(this._restoreFetchPatch)&&((r=at.__PosthogExtensions__)===null||r===void 0||(i=r.tracingHeadersPatchFns)===null||i===void 0||i._patchFetch(this.instance.sessionManager))});this.instance=t}_loadScript(t){var n,r,i;(n=at.__PosthogExtensions__)!==null&&n!==void 0&&n.tracingHeadersPatchFns&&t(),(r=at.__PosthogExtensions__)===null||r===void 0||(i=r.loadExternalDependency)===null||i===void 0||i.call(r,this.instance,"tracing-headers",s=>{if(s)return ae.error("[TRACING-HEADERS] failed to load script",s);t()})}startIfEnabledOrStop(){var t,n;this.instance.config.__add_tracing_headers?this._loadScript(this._startCapturing):((t=this._restoreXHRPatch)===null||t===void 0||t.call(this),(n=this._restoreFetchPatch)===null||n===void 0||n.call(this),this._restoreXHRPatch=void 0,this._restoreFetchPatch=void 0)}}let pl;(function(e){e[e.PENDING=-1]="PENDING",e[e.DENIED=0]="DENIED",e[e.GRANTED=1]="GRANTED"})(pl||(pl={}));class jye{constructor(t){this.instance=t}get config(){return this.instance.config}get consent(){return this.getDnt()?pl.DENIED:this.storedConsent}isOptedOut(){return this.consent===pl.DENIED||this.consent===pl.PENDING&&this.config.opt_out_capturing_by_default}isOptedIn(){return!this.isOptedOut()}optInOut(t){this.storage.set(this.storageKey,t?1:0,this.config.cookie_expiration,this.config.cross_subdomain_cookie,this.config.secure_cookie)}reset(){this.storage.remove(this.storageKey,this.config.cross_subdomain_cookie)}get storageKey(){const{token:t,opt_out_capturing_cookie_prefix:n}=this.instance.config;return(n||"__ph_opt_in_out_")+t}get storedConsent(){const t=this.storage.get(this.storageKey);return t==="1"?pl.GRANTED:t==="0"?pl.DENIED:pl.PENDING}get storage(){if(!this._storage){const t=this.config.opt_out_capturing_persistence_type;this._storage=t==="localStorage"?Ln:xa;const n=t==="localStorage"?xa:Ln;n.get(this.storageKey)&&(this._storage.get(this.storageKey)||this.optInOut(n.get(this.storageKey)==="1"),n.remove(this.storageKey,this.config.cross_subdomain_cookie))}return this._storage}getDnt(){return!!this.config.respect_dnt&&!!Dj([Ei==null?void 0:Ei.doNotTrack,Ei==null?void 0:Ei.msDoNotTrack,at.doNotTrack],t=>ft([!0,1,"1","yes"],t))}}const Bg="[Exception Autocapture]";class Wye{constructor(t){K(this,"originalOnUnhandledRejectionHandler");K(this,"startCapturing",()=>{var t,n,r,i;if(!G||!this.isEnabled||this.hasHandlers||this.isCapturing)return;const s=(t=at.__PosthogExtensions__)===null||t===void 0||(n=t.errorWrappingFunctions)===null||n===void 0?void 0:n.wrapOnError,o=(r=at.__PosthogExtensions__)===null||r===void 0||(i=r.errorWrappingFunctions)===null||i===void 0?void 0:i.wrapUnhandledRejection;if(s&&o)try{this.unwrapOnError=s(this.captureException.bind(this)),this.unwrapUnhandledRejection=o(this.captureException.bind(this))}catch(a){ae.error(Bg+" failed to start",a),this.stopCapturing()}else ae.error(Bg+" failed to load error wrapping functions - cannot start")});var n;this.instance=t,this.remoteEnabled=!((n=this.instance.persistence)===null||n===void 0||!n.props[zL]),this.startIfEnabled()}get isEnabled(){var t;return(t=this.remoteEnabled)!==null&&t!==void 0&&t}get isCapturing(){var t;return!(G==null||(t=G.onerror)===null||t===void 0||!t.__POSTHOG_INSTRUMENTED__)}get hasHandlers(){return this.originalOnUnhandledRejectionHandler||this.unwrapOnError}startIfEnabled(){this.isEnabled&&!this.isCapturing&&(ae.info(Bg+" enabled, starting..."),this.loadScript(this.startCapturing))}loadScript(t){var n,r;this.hasHandlers&&t(),(n=at.__PosthogExtensions__)===null||n===void 0||(r=n.loadExternalDependency)===null||r===void 0||r.call(n,this.instance,"exception-autocapture",i=>{if(i)return ae.error(Bg+" failed to load script",i);t()})}stopCapturing(){var t,n;(t=this.unwrapOnError)===null||t===void 0||t.call(this),(n=this.unwrapUnhandledRejection)===null||n===void 0||n.call(this)}afterDecideResponse(t){const n=t.autocaptureExceptions;this.remoteEnabled=!!n||!1,this.instance.persistence&&this.instance.persistence.register({[zL]:this.remoteEnabled}),this.startIfEnabled()}captureException(t){const n=this.instance.requestRouter.endpointFor("ui");t.$exception_personURL=`${n}/project/${this.instance.config.token}/person/${this.instance.get_distinct_id()}`,this.instance.exceptions.sendExceptionEvent(t)}}const k2=9e5,Ou="[Web Vitals]";class zye{constructor(t){K(this,"_enabledServerSide",!1);K(this,"_initialized",!1);K(this,"buffer",{url:void 0,metrics:[],firstMetricTimestamp:void 0});K(this,"_flushToCapture",()=>{clearTimeout(this._delayedFlushTimer),this.buffer.metrics.length!==0&&(this.instance.capture("$web_vitals",this.buffer.metrics.reduce((t,n)=>({...t,[`$web_vitals_${n.name}_event`]:{...n},[`$web_vitals_${n.name}_value`]:n.value}),{})),this.buffer={url:void 0,metrics:[],firstMetricTimestamp:void 0})});K(this,"_addToBuffer",t=>{var n;const r=(n=this.instance.sessionManager)===null||n===void 0?void 0:n.checkAndGetSessionAndWindowId(!0);if(ke(r))return void ae.error(Ou+"Could not read session ID. Dropping metrics!");this.buffer=this.buffer||{url:void 0,metrics:[],firstMetricTimestamp:void 0};const i=this._currentURL();if(!ke(i)){if(vn(t==null?void 0:t.name)||vn(t==null?void 0:t.value))return void ae.error(Ou+"Invalid metric received",t);if(this._maxAllowedValue&&t.value>=this._maxAllowedValue)return void ae.error(Ou+"Ignoring metric with value >= "+this._maxAllowedValue,t);this.buffer.url!==i&&(this._flushToCapture(),this._delayedFlushTimer=setTimeout(this._flushToCapture,this.flushToCaptureTimeoutMs)),ke(this.buffer.url)&&(this.buffer.url=i),this.buffer.firstMetricTimestamp=ke(this.buffer.firstMetricTimestamp)?Date.now():this.buffer.firstMetricTimestamp,t.attribution&&t.attribution.interactionTargetElement&&(t.attribution.interactionTargetElement=void 0),this.buffer.metrics.push({...t,$current_url:i,$session_id:r.sessionId,$window_id:r.windowId,timestamp:Date.now()}),this.buffer.metrics.length===this.allowedMetrics.length&&this._flushToCapture()}});K(this,"_startCapturing",()=>{let t,n,r,i;const s=at.__PosthogExtensions__;ke(s)||ke(s.postHogWebVitalsCallbacks)||({onLCP:t,onCLS:n,onFCP:r,onINP:i}=s.postHogWebVitalsCallbacks),t&&n&&r&&i?(this.allowedMetrics.indexOf("LCP")>-1&&t(this._addToBuffer.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&n(this._addToBuffer.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&r(this._addToBuffer.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&i(this._addToBuffer.bind(this)),this._initialized=!0):ae.error(Ou+"web vitals callbacks not loaded - not starting")});var n;this.instance=t,this._enabledServerSide=!((n=this.instance.persistence)===null||n===void 0||!n.props[GL]),this.startIfEnabled()}get allowedMetrics(){var t,n;const r=En(this.instance.config.capture_performance)?(t=this.instance.config.capture_performance)===null||t===void 0?void 0:t.web_vitals_allowed_metrics:void 0;return ke(r)?((n=this.instance.persistence)===null||n===void 0?void 0:n.props[YL])||["CLS","FCP","INP","LCP"]:r}get flushToCaptureTimeoutMs(){return(En(this.instance.config.capture_performance)?this.instance.config.capture_performance.web_vitals_delayed_flush_ms:void 0)||5e3}get _maxAllowedValue(){const t=En(this.instance.config.capture_performance)&&Si(this.instance.config.capture_performance.__web_vitals_max_value)?this.instance.config.capture_performance.__web_vitals_max_value:k2;return 0<t&&t<=6e4?k2:t}get isEnabled(){const t=En(this.instance.config.capture_performance)?this.instance.config.capture_performance.web_vitals:void 0;return Vu(t)?t:this._enabledServerSide}startIfEnabled(){this.isEnabled&&!this._initialized&&(ae.info(Ou+" enabled, starting..."),this.loadScript(this._startCapturing))}afterDecideResponse(t){const n=En(t.capturePerformance)&&!!t.capturePerformance.web_vitals,r=En(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this.instance.persistence&&(this.instance.persistence.register({[GL]:n}),this.instance.persistence.register({[YL]:r})),this._enabledServerSide=n,this.startIfEnabled()}loadScript(t){var n,r,i;(n=at.__PosthogExtensions__)!==null&&n!==void 0&&n.postHogWebVitalsCallbacks&&t(),(r=at.__PosthogExtensions__)===null||r===void 0||(i=r.loadExternalDependency)===null||i===void 0||i.call(r,this.instance,"web-vitals",s=>{s?ae.error(Ou+" failed to load script",s):t()})}_currentURL(){const t=G?G.location.href:void 0;return t||ae.error(Ou+"Could not determine current URL"),t}}const Hye={icontains:(e,t)=>!!G&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!G&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!G&&Rd(t.href,e),not_regex:(e,t)=>!!G&&!Rd(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class zn{constructor(t){K(this,"getWebExperimentsAndEvaluateDisplayLogic",(()=>{var t=this;return function(){let n=arguments.length>0&&arguments[0]!==void 0&&arguments[0];t.getWebExperiments(r=>{zn.logInfo("retrieved web experiments from the server"),t._flagToExperiments=new Map,r.forEach(i=>{if(i.feature_flag_key&&t._featureFlags&&t._featureFlags[i.feature_flag_key]){var s;t._flagToExperiments&&(zn.logInfo("setting flag key ",i.feature_flag_key," to web experiment ",i),(s=t._flagToExperiments)===null||s===void 0||s.set(i.feature_flag_key,i));const o=t._featureFlags[i.feature_flag_key];o&&i.variants[o]&&t.applyTransforms(i.name,o,i.variants[o].transforms)}else if(i.variants)for(const o in i.variants){const a=i.variants[o];zn.matchesTestVariant(a)&&t.applyTransforms(i.name,o,a.transforms)}})},n)}})());this.instance=t;const n=r=>{this.applyFeatureFlagChanges(r)};this.instance.onFeatureFlags&&this.instance.onFeatureFlags(n),this._flagToExperiments=new Map}applyFeatureFlagChanges(t){vn(this._flagToExperiments)||this.instance.config.disable_web_experiments||(zn.logInfo("applying feature flags",t),t.forEach(n=>{var r;if(this._flagToExperiments&&(r=this._flagToExperiments)!==null&&r!==void 0&&r.has(n)){var i;const s=this.instance.getFeatureFlag(n),o=(i=this._flagToExperiments)===null||i===void 0?void 0:i.get(n);s&&o!=null&&o.variants[s]&&this.applyTransforms(o.name,s,o.variants[s].transforms)}}))}afterDecideResponse(t){this._is_bot()?zn.logInfo("Refusing to render web experiment since the viewer is a likely bot"):(this._featureFlags=t.featureFlags,this.loadIfEnabled(),this.previewWebExperiment())}previewWebExperiment(){const t=zn.getWindowLocation();if(t!=null&&t.search){const n=Ky(t==null?void 0:t.search,"__experiment_id"),r=Ky(t==null?void 0:t.search,"__experiment_variant");n&&r&&(zn.logInfo(`previewing web experiments ${n} && ${r}`),this.getWebExperiments(i=>{this.showPreviewWebExperiment(parseInt(n),r,i)},!1,!0))}}loadIfEnabled(){this.instance.config.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(t,n,r){if(this.instance.config.disable_web_experiments&&!r)return t([]);const i=this.instance.get_property("$web_experiments");if(i&&!n)return t(i);this.instance._send_request({url:this.instance.requestRouter.endpointFor("api",`/api/web_experiments/?token=${this.instance.config.token}`),method:"GET",transport:"XHR",callback:s=>{if(s.statusCode!==200||!s.json)return t([]);const o=s.json.experiments||[];return t(o)}})}showPreviewWebExperiment(t,n,r){const i=r.filter(s=>s.id===t);i&&i.length>0&&(zn.logInfo(`Previewing web experiment [${i[0].name}] with variant [${n}]`),this.applyTransforms(i[0].name,n,i[0].variants[n].transforms,!0))}static matchesTestVariant(t){return!vn(t.conditions)&&zn.matchUrlConditions(t)&&zn.matchUTMConditions(t)}static matchUrlConditions(t){var n;if(vn(t.conditions)||vn((n=t.conditions)===null||n===void 0?void 0:n.url))return!0;const r=zn.getWindowLocation();if(r){var i,s,o;return(i=t.conditions)===null||i===void 0||!i.url||Hye[(s=(o=t.conditions)===null||o===void 0?void 0:o.urlMatchType)!==null&&s!==void 0?s:"icontains"](t.conditions.url,r)}return!1}static getWindowLocation(){return G==null?void 0:G.location}static matchUTMConditions(t){var n;if(vn(t.conditions)||vn((n=t.conditions)===null||n===void 0?void 0:n.utm))return!0;const r=Mn.campaignParams();if(r.utm_source){var i,s,o,a,u,f,d,h,v,m,y,w,E,S,_,b;const O=(i=t.conditions)===null||i===void 0||(s=i.utm)===null||s===void 0||!s.utm_campaign||((o=t.conditions)===null||o===void 0||(a=o.utm)===null||a===void 0?void 0:a.utm_campaign)==r.utm_campaign,I=(u=t.conditions)===null||u===void 0||(f=u.utm)===null||f===void 0||!f.utm_source||((d=t.conditions)===null||d===void 0||(h=d.utm)===null||h===void 0?void 0:h.utm_source)==r.utm_source,A=(v=t.conditions)===null||v===void 0||(m=v.utm)===null||m===void 0||!m.utm_medium||((y=t.conditions)===null||y===void 0||(w=y.utm)===null||w===void 0?void 0:w.utm_medium)==r.utm_medium,C=(E=t.conditions)===null||E===void 0||(S=E.utm)===null||S===void 0||!S.utm_term||((_=t.conditions)===null||_===void 0||(b=_.utm)===null||b===void 0?void 0:b.utm_term)==r.utm_term;return O&&A&&C&&I}return!1}static logInfo(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];ae.info(`[WebExperiments] ${t}`,r)}applyTransforms(t,n,r,i){var s;this._is_bot()?zn.logInfo("Refusing to render web experiment since the viewer is a likely bot"):n!=="control"?r.forEach(o=>{if(o.selector){var a;zn.logInfo(`applying transform of variant ${n} for experiment ${t} `,o);let f=0;const d=(a=document)===null||a===void 0?void 0:a.querySelectorAll(o.selector);var u;d==null||d.forEach(h=>{const v=h;f+=1,o.attributes&&o.attributes.forEach(m=>{switch(m.name){case"text":v.innerText=m.value;break;case"html":v.innerHTML=m.value;break;case"cssClass":v.className=m.value;break;default:v.setAttribute(m.name,m.value)}}),o.text&&(v.innerText=o.text),o.html&&(v.parentElement?v.parentElement.innerHTML=o.html:v.innerHTML=o.html),o.css&&v.setAttribute("style",o.css)}),this.instance&&this.instance.capture&&this.instance.capture("$web_experiment_applied",{$web_experiment_name:t,$web_experiment_variant:n,$web_experiment_preview:i,$web_experiment_document_url:(u=zn.getWindowLocation())===null||u===void 0?void 0:u.href,$web_experiment_elements_modified:f})}}):(zn.logInfo("Control variants leave the page unmodified."),this.instance&&this.instance.capture&&this.instance.capture("$web_experiment_applied",{$web_experiment_name:t,$web_experiment_preview:i,$web_experiment_variant:n,$web_experiment_document_url:(s=zn.getWindowLocation())===null||s===void 0?void 0:s.href,$web_experiment_elements_modified:0}))}_is_bot(){return Ei&&this.instance?O5(Ei,this.instance.config.custom_blocked_useragents):void 0}}const A2="/e/";class Gye{constructor(t){var n;this.instance=t,this._endpointSuffix=((n=this.instance.persistence)===null||n===void 0?void 0:n.props[HL])||A2}get endpoint(){return this.instance.requestRouter.endpointFor("api",this._endpointSuffix)}afterDecideResponse(t){const n=t.autocaptureExceptions;this._endpointSuffix=En(n)&&n.endpoint||A2,this.instance.persistence&&this.instance.persistence.register({[HL]:this._endpointSuffix})}sendExceptionEvent(t){this.instance.capture("$exception",t,{_noTruncate:!0,_batchKey:"exceptionEvent",_url:this.endpoint})}}const Np={},R2=()=>{},df="posthog";let C5=!mye&&(Gn==null?void 0:Gn.indexOf("MSIE"))===-1&&(Gn==null?void 0:Gn.indexOf("Mozilla"))===-1;const I2=()=>{var e;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:g_e(Pe==null?void 0:Pe.location),persistence:"localStorage+cookie",persistence_name:"",loaded:R2,store_google:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:!0,capture_pageleave:"if_capture_pageview",debug:Zr&&br(Zr==null?void 0:Zr.search)&&Zr.search.indexOf("__posthog_debug=true")!==-1||!1,verbose:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,enable_recording_console_log:void 0,secure_cookie:(G==null||(e=G.location)===null||e===void 0?void 0:e.protocol)==="https:",ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,on_request_error:t=>{const n="Bad HTTP status: "+t.statusCode+" "+t.text;ae.error(n)},get_device_id:t=>t,_onCapture:R2,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"identified_only",__add_tracing_headers:!1}},M2=e=>{const t={};ke(e.process_person)||(t.person_profiles=e.process_person),ke(e.xhr_headers)||(t.request_headers=e.xhr_headers),ke(e.cookie_name)||(t.persistence_name=e.cookie_name),ke(e.disable_cookie)||(t.disable_persistence=e.disable_cookie);const n=Ur({},t,e);return Fn(e.property_blacklist)&&(ke(e.property_denylist)?n.property_denylist=e.property_blacklist:Fn(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:ae.error("Invalid value for property_denylist config: "+e.property_denylist)),n};class Yye{constructor(){K(this,"__forceAllowLocalhost",!1)}get _forceAllowLocalhost(){return this.__forceAllowLocalhost}set _forceAllowLocalhost(t){ae.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class D1{constructor(){K(this,"webPerformance",new Yye);K(this,"version",fl.LIB_VERSION);K(this,"_internalEventEmitter",new v5);this.config=I2(),this.decideEndpointWasHit=!1,this.SentryIntegration=xye,this.sentryIntegration=t=>function(n,r){const i=p5(n,r);return{name:h5,processEvent:s=>i(s)}}(this,t),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this._initialPageviewCaptured=!1,this._initialPersonProfilesConfig=null,this.featureFlags=new y_e(this),this.toolbar=new pye(this),this.scrollManager=new Bye(this),this.pageViewManager=new Pye(this),this.surveys=new Mye(this),this.experiments=new zn(this),this.exceptions=new Gye(this),this.rateLimiter=new Dye(this),this.requestRouter=new bye(this),this.consent=new jye(this),this.people={set:(t,n,r)=>{const i=br(t)?{[t]:n}:t;this.setPersonProperties(i),r==null||r({})},set_once:(t,n,r)=>{const i=br(t)?{[t]:n}:t;this.setPersonProperties(void 0,i),r==null||r({})}},this.on("eventCaptured",t=>ae.info(`send "${t==null?void 0:t.event}"`,t))}init(t,n,r){if(r&&r!==df){var i;const s=(i=Np[r])!==null&&i!==void 0?i:new D1;return s._init(t,n,r),Np[r]=s,Np[df][r]=s,s}return this._init(t,n,r)}_init(t){var n,r;let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;if(ke(t)||BL(t))return ae.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return ae.warn("You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},this._triggered_notifs=[],i.person_profiles&&(this._initialPersonProfilesConfig=i.person_profiles),this.set_config(Ur({},I2(),M2(i),{name:s,token:t})),this.config.on_xhr_error&&ae.error("[posthog] on_xhr_error is deprecated. Use on_request_error instead"),this.compression=i.disable_compression?void 0:As.GZipJS,this.persistence=new Eb(this.config),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new Eb({...this.config,persistence:"sessionStorage"});const o={...this.persistence.props},a={...this.sessionPersistence.props};if(this._requestQueue=new vye(v=>this._send_retriable_request(v)),this._retryQueue=new wye(this),this.__request_queue=[],this.sessionManager=new Sye(this.config,this.persistence),this.sessionPropsManager=new Fye(this.sessionManager,this.persistence),new Vye(this).startIfEnabledOrStop(),this.sessionRecording=new fye(this),this.sessionRecording.startIfEnabledOrStop(),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new Uye(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new $ye(this),this.heatmaps.startIfEnabled(),this.webVitalsAutocapture=new zye(this),this.exceptionObserver=new Wye(this),this.exceptionObserver.startIfEnabled(),fl.DEBUG=fl.DEBUG||this.config.debug,fl.DEBUG&&ae.info("Starting in debug mode",{this:this,config:i,thisC:{...this.config},p:o,s:a}),this._sync_opt_out_with_persistence(),((n=i.bootstrap)===null||n===void 0?void 0:n.distinctID)!==void 0){var u,f;const v=this.config.get_device_id(xl()),m=(u=i.bootstrap)!==null&&u!==void 0&&u.isIdentifiedID?v:i.bootstrap.distinctID;this.persistence.set_property(na,(f=i.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:i.bootstrap.distinctID,$device_id:m})}if(this._hasBootstrappedFeatureFlags()){var d,h;const v=Object.keys(((d=i.bootstrap)===null||d===void 0?void 0:d.featureFlags)||{}).filter(y=>{var w,E;return!((w=i.bootstrap)===null||w===void 0||(E=w.featureFlags)===null||E===void 0||!E[y])}).reduce((y,w)=>{var E,S;return y[w]=((E=i.bootstrap)===null||E===void 0||(S=E.featureFlags)===null||S===void 0?void 0:S[w])||!1,y},{}),m=Object.keys(((h=i.bootstrap)===null||h===void 0?void 0:h.featureFlagPayloads)||{}).filter(y=>v[y]).reduce((y,w)=>{var E,S,_,b;return(E=i.bootstrap)!==null&&E!==void 0&&(S=E.featureFlagPayloads)!==null&&S!==void 0&&S[w]&&(y[w]=(_=i.bootstrap)===null||_===void 0||(b=_.featureFlagPayloads)===null||b===void 0?void 0:b[w]),y},{});this.featureFlags.receivedFeatureFlags({featureFlags:v,featureFlagPayloads:m})}if(!this.get_distinct_id()){const v=this.config.get_device_id(xl());this.register_once({distinct_id:v,$device_id:v},""),this.persistence.set_property(na,"anonymous")}return G==null||(r=G.addEventListener)===null||r===void 0||r.call(G,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),this.toolbar.maybeLoadToolbar(),i.segment?Eye(this,()=>this._loaded()):this._loaded(),is(this.config._onCapture)&&this.on("eventCaptured",v=>this.config._onCapture(v.event,v)),this}_afterDecideResponse(t){var n,r,i,s,o,a,u,f,d;this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=ft(t.supportedCompression,As.GZipJS)?As.GZipJS:ft(t.supportedCompression,As.Base64)?As.Base64:void 0),(n=t.analytics)!==null&&n!==void 0&&n.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this._initialPersonProfilesConfig?this._initialPersonProfilesConfig:t.defaultIdentifiedOnly?"identified_only":"always"}),(r=this.sessionRecording)===null||r===void 0||r.afterDecideResponse(t),(i=this.autocapture)===null||i===void 0||i.afterDecideResponse(t),(s=this.heatmaps)===null||s===void 0||s.afterDecideResponse(t),(o=this.experiments)===null||o===void 0||o.afterDecideResponse(t),(a=this.surveys)===null||a===void 0||a.afterDecideResponse(t),(u=this.webVitalsAutocapture)===null||u===void 0||u.afterDecideResponse(t),(f=this.exceptions)===null||f===void 0||f.afterDecideResponse(t),(d=this.exceptionObserver)===null||d===void 0||d.afterDecideResponse(t)}_loaded(){const t=this.config.advanced_disable_decide;t||this.featureFlags.setReloadingPaused(!0);try{this.config.loaded(this)}catch(n){ae.critical("`loaded` function failed",n)}this._start_queue_if_opted_in(),this.config.capture_pageview&&setTimeout(()=>{this.consent.isOptedIn()&&this._captureInitialPageview()},1),t||(new dye(this).call(),this.featureFlags.resetRequestQueue())}_start_queue_if_opted_in(){var t;this.has_opted_out_capturing()||this.config.request_batching&&((t=this._requestQueue)===null||t===void 0||t.enable())}_dom_loaded(){this.has_opted_out_capturing()||Zf(this.__request_queue,t=>this._send_retriable_request(t)),this.__request_queue=[],this._start_queue_if_opted_in()}_handle_unload(){var t,n;this.config.request_batching?(this._shouldCapturePageleave()&&this.capture("$pageleave"),(t=this._requestQueue)===null||t===void 0||t.unload(),(n=this._retryQueue)===null||n===void 0||n.unload()):this._shouldCapturePageleave()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(C5?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=n0(t.url,{ip:this.config.ip?1:0}),t.headers={...this.config.request_headers},t.compression=t.compression==="best-available"?this.compression:t.compression,(n=>{var r,i,s;const o={...n};o.timeout=o.timeout||6e4,o.url=n0(o.url,{_:new Date().getTime().toString(),ver:fl.LIB_VERSION,compression:o.compression});const a=(r=o.transport)!==null&&r!==void 0?r:"XHR",u=(i=(s=Dj(Fp,f=>f.transport===a))===null||s===void 0?void 0:s.method)!==null&&i!==void 0?i:Fp[0].method;if(!u)throw new Error("No available transport method");u(o)})({...t,callback:n=>{var r,i,s;this.rateLimiter.checkForLimiting(n),n.statusCode>=400&&((i=(s=this.config).on_request_error)===null||i===void 0||i.call(s,n)),(r=t.callback)===null||r===void 0||r.call(t,n)}})))}_send_retriable_request(t){this._retryQueue?this._retryQueue.retriableRequest(t):this._send_request(t)}_execute_array(t){let n;const r=[],i=[],s=[];Zf(t,a=>{a&&(n=a[0],Fn(n)?s.push(a):is(a)?a.call(this):Fn(a)&&n==="alias"?r.push(a):Fn(a)&&n.indexOf("capture")!==-1&&is(this[n])?s.push(a):i.push(a))});const o=function(a,u){Zf(a,function(f){if(Fn(f[0])){let d=u;Gt(f,function(h){d=d[h[0]].apply(d,h.slice(1))})}else this[f[0]].apply(this,f.slice(1))},u)};o(r,this),o(i,this),o(s,this)}_hasBootstrappedFeatureFlags(){var t,n;return((t=this.config.bootstrap)===null||t===void 0?void 0:t.featureFlags)&&Object.keys((n=this.config.bootstrap)===null||n===void 0?void 0:n.featureFlags).length>0||!1}push(t){this._execute_array([t])}capture(t,n,r){var i;if(!(this.__loaded&&this.persistence&&this.sessionPersistence&&this._requestQueue))return void ae.uninitializedWarning("posthog.capture");if(this.consent.isOptedOut())return;if(ke(t)||!br(t))return void ae.error("No event name provided to posthog.capture");if(!this.config.opt_out_useragent_filter&&this._is_bot())return;const s=r!=null&&r.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(s!=null&&s.isRateLimited)return void ae.critical("This capture call is ignored due to client rate limiting.");this.sessionPersistence.update_search_keyword(),this.config.store_google&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.store_google||this.config.save_referrer)&&this.persistence.set_initial_person_info();const o=new Date,a=(r==null?void 0:r.timestamp)||o;let u={uuid:xl(),event:t,properties:this._calculate_event_properties(t,n||{},a)};s&&(u.properties.$lib_rate_limit_remaining_tokens=s.remainingTokens),r!=null&&r.$set&&(u.$set=r==null?void 0:r.$set);const f=this._calculate_set_once_properties(r==null?void 0:r.$set_once);f&&(u.$set_once=f),u=v_e(u,r!=null&&r._noTruncate?null:this.config.properties_string_max_length),u.timestamp=a,ke(r==null?void 0:r.timestamp)||(u.properties.$event_time_override_provided=!0,u.properties.$event_time_override_system_time=o);const d={...u.properties.$set,...u.$set};T_(d)||this.setPersonPropertiesForFlags(d),this._internalEventEmitter.emit("eventCaptured",u);const h={method:"POST",url:(i=r==null?void 0:r._url)!==null&&i!==void 0?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:u,compression:"best-available",batchKey:r==null?void 0:r._batchKey};return!this.config.request_batching||r&&(r==null||!r._batchKey)||r!=null&&r.send_instantly?this._send_retriable_request(h):this._requestQueue.enqueue(h),u}_addCaptureHook(t){return this.on("eventCaptured",n=>t(n.event,n))}_calculate_event_properties(t,n,r){if(r=r||new Date,!this.persistence||!this.sessionPersistence)return n;const i=this.persistence.remove_event_timer(t);let s={...n};if(s.token=this.config.token,t==="$snapshot"){const f={...this.persistence.properties(),...this.sessionPersistence.properties()};return s.distinct_id=f.distinct_id,(!br(s.distinct_id)&&!Si(s.distinct_id)||BL(s.distinct_id))&&ae.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),s}const o=Mn.properties();if(this.sessionManager){const{sessionId:f,windowId:d}=this.sessionManager.checkAndGetSessionAndWindowId();s.$session_id=f,s.$window_id=d}if(this.requestRouter.region===Wu.CUSTOM&&(s.$lib_custom_api_host=this.config.api_host),this.sessionPropsManager&&this.config.__preview_send_client_session_params&&(t==="$pageview"||t==="$pageleave"||t==="$autocapture")){const f=this.sessionPropsManager.getSessionProps();s=Ur(s,f)}if(!this.config.disable_scroll_properties){let f={};t==="$pageview"?f=this.pageViewManager.doPageView(r):t==="$pageleave"&&(f=this.pageViewManager.doPageLeave(r)),s=Ur(s,f)}if(t==="$pageview"&&Pe&&(s.title=Pe.title),!ke(i)){const f=r.getTime()-i;s.$duration=parseFloat((f/1e3).toFixed(3))}Gn&&this.config.opt_out_useragent_filter&&(s.$browser_type=this._is_bot()?"bot":"browser"),s=Ur({},o,this.persistence.properties(),this.sessionPersistence.properties(),s),s.$is_identified=this._isIdentified(),Fn(this.config.property_denylist)?Gt(this.config.property_denylist,function(f){delete s[f]}):ae.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);const a=this.config.sanitize_properties;a&&(s=a(s,t));const u=this._hasPersonProcessing();return s.$process_person_profile=u,u&&this._requirePersonProcessing("_calculate_event_properties"),s}_calculate_set_once_properties(t){if(!this.persistence||!this._hasPersonProcessing())return t;let n=Ur({},this.persistence.get_initial_props(),t||{});const r=this.config.sanitize_properties;return r&&(n=r(n,"$set_once")),T_(n)?void 0:n}register(t,n){var r;(r=this.persistence)===null||r===void 0||r.register(t,n)}register_once(t,n,r){var i;(i=this.persistence)===null||i===void 0||i.register_once(t,n,r)}register_for_session(t){var n;(n=this.sessionPersistence)===null||n===void 0||n.register(t)}unregister(t){var n;(n=this.persistence)===null||n===void 0||n.unregister(t)}unregister_for_session(t){var n;(n=this.sessionPersistence)===null||n===void 0||n.unregister(t)}_register_single(t,n){this.register({[t]:n})}getFeatureFlag(t,n){return this.featureFlags.getFeatureFlag(t,n)}getFeatureFlagPayload(t){const n=this.featureFlags.getFeatureFlagPayload(t);try{return JSON.parse(n)}catch{return n}}isFeatureEnabled(t,n){return this.featureFlags.isFeatureEnabled(t,n)}reloadFeatureFlags(){this.featureFlags.reloadFeatureFlags()}updateEarlyAccessFeatureEnrollment(t,n){this.featureFlags.updateEarlyAccessFeatureEnrollment(t,n)}getEarlyAccessFeatures(t){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(t,n)}on(t,n){return this._internalEventEmitter.on(t,n)}onFeatureFlags(t){return this.featureFlags.onFeatureFlags(t)}onSessionId(t){var n,r;return(n=(r=this.sessionManager)===null||r===void 0?void 0:r.onSessionId(t))!==null&&n!==void 0?n:()=>{}}getSurveys(t){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(t,n)}getActiveMatchingSurveys(t){let n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(t,n)}renderSurvey(t,n){this.surveys.renderSurvey(t,n)}canRenderSurvey(t){this.surveys.canRenderSurvey(t)}getNextSurveyStep(t,n,r){return this.surveys.getNextSurveyStep(t,n,r)}identify(t,n,r){if(!this.__loaded||!this.persistence)return ae.uninitializedWarning("posthog.identify");if(Si(t)&&(t=t.toString(),ae.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),!t)return void ae.error("Unique user id has not been set in posthog.identify");if(["distinct_id","distinctid"].includes(t.toLowerCase()))return void ae.critical(`The string "${t}" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.`);if(!this._requirePersonProcessing("posthog.identify"))return;const i=this.get_distinct_id();if(this.register({$user_id:t}),!this.get_property("$device_id")){const o=i;this.register_once({$had_persisted_distinct_id:!0,$device_id:o},"")}t!==i&&t!==this.get_property(op)&&(this.unregister(op),this.register({distinct_id:t}));const s=(this.persistence.get_property(na)||"anonymous")==="anonymous";t!==i&&s?(this.persistence.set_property(na,"identified"),this.setPersonPropertiesForFlags(n||{},!1),this.capture("$identify",{distinct_id:t,$anon_distinct_id:i},{$set:n||{},$set_once:r||{}}),this.featureFlags.setAnonymousDistinctId(i)):(n||r)&&this.setPersonProperties(n,r),t!==i&&(this.reloadFeatureFlags(),this.unregister(Gy))}setPersonProperties(t,n){(t||n)&&this._requirePersonProcessing("posthog.setPersonProperties")&&(this.setPersonPropertiesForFlags(t||{}),this.capture("$set",{$set:t||{},$set_once:n||{}}))}group(t,n,r){if(!t||!n)return void ae.error("posthog.group requires a group type and group key");if(!this._requirePersonProcessing("posthog.group"))return;const i=this.getGroups();i[t]!==n&&this.resetGroupPropertiesForFlags(t),this.register({$groups:{...i,[t]:n}}),r&&(this.capture("$groupidentify",{$group_type:t,$group_key:n,$group_set:r}),this.setGroupPropertiesForFlags({[t]:r})),i[t]===n||r||this.reloadFeatureFlags()}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this._requirePersonProcessing("posthog.setPersonPropertiesForFlags")&&this.featureFlags.setPersonPropertiesForFlags(t,n)}resetPersonPropertiesForFlags(){this.featureFlags.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t){let n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this._requirePersonProcessing("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(t,n)}resetGroupPropertiesForFlags(t){this.featureFlags.resetGroupPropertiesForFlags(t)}reset(t){var n,r,i,s,o;if(ae.info("reset"),!this.__loaded)return ae.uninitializedWarning("posthog.reset");const a=this.get_property("$device_id");this.consent.reset(),(n=this.persistence)===null||n===void 0||n.clear(),(r=this.sessionPersistence)===null||r===void 0||r.clear(),(i=this.surveys)===null||i===void 0||i.reset(),(s=this.persistence)===null||s===void 0||s.set_property(na,"anonymous"),(o=this.sessionManager)===null||o===void 0||o.resetSessionId();const u=this.config.get_device_id(xl());this.register_once({distinct_id:u,$device_id:t?u:a},"")}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,n;return(t=(n=this.sessionManager)===null||n===void 0?void 0:n.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){if(!this.sessionManager)return"";const{sessionId:n,sessionStartTimestamp:r}=this.sessionManager.checkAndGetSessionAndWindowId(!0);let i=this.requestRouter.endpointFor("ui",`/project/${this.config.token}/replay/${n}`);if(t!=null&&t.withTimestamp&&r){var s;const o=(s=t.timestampLookBack)!==null&&s!==void 0?s:10;if(!r)return i;i+=`?t=${Math.max(Math.floor((new Date().getTime()-r)/1e3)-o,0)}`}return i}alias(t,n){return t===this.get_property(Lj)?(ae.critical("Attempting to create alias for existing People user - aborting."),-2):this._requirePersonProcessing("posthog.alias")?(ke(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(op,t),this.capture("$create_alias",{alias:t,distinct_id:n})):(ae.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){const n={...this.config};var r,i,s,o;En(t)&&(Ur(this.config,M2(t)),(r=this.persistence)===null||r===void 0||r.update_config(this.config,n),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new Eb({...this.config,persistence:"sessionStorage"}),Ln.is_supported()&&Ln.get("ph_debug")==="true"&&(this.config.debug=!0),this.config.debug&&(fl.DEBUG=!0,ae.info("set_config",{config:t,oldConfig:n,newConfig:{...this.config}})),(i=this.sessionRecording)===null||i===void 0||i.startIfEnabledOrStop(),(s=this.autocapture)===null||s===void 0||s.startIfEnabled(),(o=this.heatmaps)===null||o===void 0||o.startIfEnabled(),this.surveys.loadIfEnabled(),this._sync_opt_out_with_persistence())}startSessionRecording(t){const n=Vu(t)&&t;if(n||t!=null&&t.sampling||t!=null&&t.linked_flag){var r;const o=(r=this.sessionManager)===null||r===void 0?void 0:r.checkAndGetSessionAndWindowId();var i,s;(n||t!=null&&t.sampling)&&((i=this.sessionRecording)===null||i===void 0||i.overrideSampling(),ae.info("Session recording started with sampling override for session: ",o==null?void 0:o.sessionId)),(n||t!=null&&t.linked_flag)&&((s=this.sessionRecording)===null||s===void 0||s.overrideLinkedFlag(),ae.info("Session recording started with linked_flags override"))}this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var t;return!((t=this.sessionRecording)===null||t===void 0||!t.started)}captureException(t,n){var r;const i=new Error("PostHog syntheticException"),s=is((r=at.__PosthogExtensions__)===null||r===void 0?void 0:r.parseErrorAsProperties)?at.__PosthogExtensions__.parseErrorAsProperties([t.message,void 0,void 0,void 0,t],{syntheticException:i}):{$exception_level:"error",$exception_list:[{type:t.name,value:t.message,mechanism:{handled:!0,synthetic:!1}}],...n};this.exceptions.sendExceptionEvent(s)}loadToolbar(t){return this.toolbar.loadToolbar(t)}get_property(t){var n;return(n=this.persistence)===null||n===void 0?void 0:n.props[t]}getSessionProperty(t){var n;return(n=this.sessionPersistence)===null||n===void 0?void 0:n.props[t]}toString(){var t;let n=(t=this.config.name)!==null&&t!==void 0?t:df;return n!==df&&(n=df+"."+n),n}_isIdentified(){var t,n;return((t=this.persistence)===null||t===void 0?void 0:t.get_property(na))==="identified"||((n=this.sessionPersistence)===null||n===void 0?void 0:n.get_property(na))==="identified"}_hasPersonProcessing(){var t,n,r,i;return!(this.config.person_profiles==="never"||this.config.person_profiles==="identified_only"&&!this._isIdentified()&&T_(this.getGroups())&&((t=this.persistence)===null||t===void 0||(n=t.props)===null||n===void 0||!n[op])&&((r=this.persistence)===null||r===void 0||(i=r.props)===null||i===void 0||!i[Yy]))}_shouldCapturePageleave(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&this.config.capture_pageview}createPersonProfile(){this._hasPersonProcessing()||this._requirePersonProcessing("posthog.createPersonProfile")&&this.setPersonProperties({},{})}_requirePersonProcessing(t){return this.config.person_profiles==="never"?(ae.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this._register_single(Yy,!0),!0)}_sync_opt_out_with_persistence(){var t,n;const r=this.consent.isOptedOut(),i=this.config.opt_out_persistence_by_default,s=this.config.disable_persistence||r&&!!i;var o,a;((t=this.persistence)===null||t===void 0?void 0:t.disabled)!==s&&((o=this.persistence)===null||o===void 0||o.set_disabled(s)),((n=this.sessionPersistence)===null||n===void 0?void 0:n.disabled)!==s&&((a=this.sessionPersistence)===null||a===void 0||a.set_disabled(s))}opt_in_capturing(t){var n;this.consent.optInOut(!0),this._sync_opt_out_with_persistence(),(ke(t==null?void 0:t.captureEventName)||t!=null&&t.captureEventName)&&this.capture((n=t==null?void 0:t.captureEventName)!==null&&n!==void 0?n:"$opt_in",t==null?void 0:t.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this._captureInitialPageview()}opt_out_capturing(){this.consent.optInOut(!1),this._sync_opt_out_with_persistence()}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}clear_opt_in_out_capturing(){this.consent.reset(),this._sync_opt_out_with_persistence()}_is_bot(){return Ei?O5(Ei,this.config.custom_blocked_useragents):void 0}_captureInitialPageview(){Pe&&!this._initialPageviewCaptured&&(this._initialPageviewCaptured=!0,this.capture("$pageview",{title:Pe.title},{send_instantly:!0}))}debug(t){t===!1?(G==null||G.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(G==null||G.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}(function(e,t){for(let n=0;n<t.length;n++)e.prototype[t[n]]=p_e(e.prototype[t[n]])})(D1,["identify"]);const D2=function(){const e=Np[df]=new D1;return function(){function t(){t.done||(t.done=!0,C5=!1,Gt(Np,function(n){n._dom_loaded()}))}Pe!=null&&Pe.addEventListener&&(Pe.readyState==="complete"?t():Pe.addEventListener("DOMContentLoaded",t,!1)),G&&la(G,"load",t,!0)}(),e}();var qye=(e=>(e.Biological="Biological",e.Adopted="Adopted",e))(qye||{}),o0=(e=>(e.Ex="Ex",e.Current="Current",e))(o0||{});const Tu=300,Ug=400,Qh=300;class Kye{constructor(){K(this,"individuals",[]);K(this,"partnerRelationships",[]);K(this,"parentRelationships",[]);K(this,"id",0);K(this,"slug","");K(this,"user_id","");K(this,"name","");K(this,"is_public",!1);K(this,"auth",{});K(this,"nodes",[]);K(this,"edges",[]);K(this,"ownerId","");K(this,"rootId","");K(this,"ownerStack",[]);K(this,"showPricingModal",!1);K(this,"pricingModalTitle","Welcome to Kintree!");K(this,"pricingModalSubTitle","Upgrade to Premium to keep building your tree and get unlimited access for life");K(this,"discountPricingTimer",60*60);rme(this)}async setTree(t){this.id=t.id,this.slug=t.slug,this.name=t.name,this.is_public=t.is_public,this.user_id=t.user_id,Ko("tree",t)}setIndividuals(t){this.individuals=t.map(n=>{var r,i;return new nr(this,n.id,n.given_name,n.surname,n.isMain,n.tree_id||this.id,n.notes,n.gender,n.known_as,n.age,n.surname_at_birth,n.date_of_birth,n.place_of_birth,n.is_deceased,n.date_of_death,n.place_of_death,n.profile_image,(r=n.user)==null?void 0:r.email,(i=n.user)==null?void 0:i.id)}),Ko("individuals",t)}getIndividualsCount(){return this.individuals.length}setPartnerRelationships(t){this.partnerRelationships=t.map(n=>({...n,individual_ids:typeof n.individual_ids=="string"?JSON.parse(n.individual_ids):n.individual_ids})),Ko("partner_relationships",t)}setParentRelationships(t){this.parentRelationships=t,Ko("parent_relationships",t)}setAuth(t){this.auth=t}popOwnerStack(){this.ownerStack.pop();const t=this.ownerStack.pop();t&&this.setOwnerId(t,!0)}setOwnerId(t,n=!1){if(this.ownerStack=[...this.ownerStack,t],this.ownerId=t,this.rebuild(),n){const r=this.nodes.find(s=>s.id==t),i=window.reactFlowSetCenter;r&&i&&i(r.position.x,r.position.y)}}setRootId(t){this.rootId=t}async updateIndividual(t){try{if(this.auth.user)await ro.post("/individual/save",At.omit(t,["store"]));else{let n=JSON.parse(localStorage.getItem("individuals"))||[];n=n.map(r=>r.id!==t.id?r:{...r,...At.omit(t,["store"])}),localStorage.setItem("individuals",JSON.stringify(n))}this.individuals=this.individuals.map(n=>n.id!==t.id?n:{...n,...t}),Ko("individuals",this.individuals),this.rebuild()}catch(n){throw console.log(n),n}}getIndividual(t){const n=this.individuals.find(r=>r.id===t);return n?new nr(this,n.id,n.given_name,n.surname,n.isMain,n.tree_id,n.notes,n.gender,n.known_as,n.age,n.surname_at_birth,n.date_of_birth,n.place_of_birth,n.is_deceased,n.date_of_death,n.place_of_death,n.profile_image,n.email,n.user_id):null}getPartnerRelationships(){return this.partnerRelationships}getPartnerRelationship(t){const n=this.partnerRelationships.find(r=>r.id===t);if(!n)throw"Can't find individual ID2";return new Qf(this,n.id,n.individual_ids,n.type,+n.tree_id,n.relationship_type,n.other_relationship_info,n.marriage_date,n.marriage_location,n.separating_date,n.divorcing_date,n.start_relationship_date,n.other_relationship_start_date)}getPartnerRelationshipByPartners(t){const n=this.partnerRelationships.find(r=>At.intersection(t,r.individual_ids).length==2);return n?new Qf(this,n.id,n.individual_ids,n.type,+n.tree_id,n.relationship_type,n.other_relationship_info,n.marriage_date,n.marriage_location,n.separating_date,n.divorcing_date,n.start_relationship_date,n.other_relationship_start_date):null}getPartnerRelationshipPartners(t){const n=this.partnerRelationships.find(r=>r.id===t);return this.individuals.filter(r=>n==null?void 0:n.individual_ids.includes(r.id))}findParents(t){const n=this.parentRelationships.find(s=>s.child_id===t),r=this.partnerRelationships.find(s=>s.id===(n==null?void 0:n.partner_relationship_id));return this.individuals.filter(s=>r==null?void 0:r.individual_ids.includes(s.id)).map(s=>new nr(this,s.id,s.given_name,s.surname,s.isMain,s.tree_id,s.notes,s.gender,s.known_as,s.age,s.surname_at_birth,s.date_of_birth,s.place_of_birth,s.is_deceased,s.date_of_death,s.place_of_death,s.profile_image))}findPartner(t){const n=this.partnerRelationships.find(s=>s.individual_ids.includes(t)),r=n==null?void 0:n.individual_ids.find(s=>s!==t),i=this.individuals.find(s=>s.id===r);return i?new nr(this,i.id,i.given_name,i.surname,!1,this.id,i.notes,i.gender,i.known_as,i.age,i.surname_at_birth,i.date_of_birth,i.place_of_birth,i.is_deceased,i.date_of_death,i.place_of_death,i.profile_image):null}getRelationships(t){return this.partnerRelationships.filter(r=>r.individual_ids.includes(t))}findPartners(t){const n=this.partnerRelationships.filter(i=>i.individual_ids.includes(t)),r=[];return n.forEach(i=>{const s=i.individual_ids.find(o=>o!==t);if(s){const o=this.individuals.find(a=>a.id===s);if(o){const a=new nr(this,o.id,o.given_name,o.surname,!1,this.id,o.notes,o.gender,o.known_as,o.age,o.surname_at_birth,o.date_of_birth,o.place_of_birth,o.date_of_death,o.place_of_death,o.profile_image,o.partnerRelationships,o.currentPartnerRelationships);r.push(a)}}}),r}hasParents(t){return!At.isEmpty(this.parentRelationships.find(n=>n.child_id===t))}isBloodRelativeTo(t,n){const r=this.individuals.find(h=>h.id===n),i=new nr(this,r==null?void 0:r.id,r==null?void 0:r.given_name,r==null?void 0:r.surname,r==null?void 0:r.isMain,this.id,r==null?void 0:r.notes,r==null?void 0:r.gender,r==null?void 0:r.known_as,r==null?void 0:r.age,r==null?void 0:r.surname_at_birth,r==null?void 0:r.date_of_birth,r==null?void 0:r.place_of_birth,r==null?void 0:r.is_deceased,r==null?void 0:r.date_of_death,r==null?void 0:r.place_of_death,r==null?void 0:r.profile_image),s=At.uniq(At.map(i==null?void 0:i.ancestors,h=>h.id)),o=this.individuals.find(h=>h.id===t),a=new nr(this,o==null?void 0:o.id,o==null?void 0:o.given_name,o==null?void 0:o.surname,o==null?void 0:o.isMain,this.id,o==null?void 0:o.notes,o==null?void 0:o.gender,o==null?void 0:o.known_as,o==null?void 0:o.age,o==null?void 0:o.surname_at_birth,o==null?void 0:o.date_of_birth,o==null?void 0:o.place_of_birth,o==null?void 0:o.is_deceased,o==null?void 0:o.date_of_death,o==null?void 0:o.place_of_death,o==null?void 0:o.profile_image),u=At.map(a==null?void 0:a.ancestors,h=>h.id),f=At.reduce(s,(h,v)=>u.includes(v)||h,!1),d=s.includes(t);return f||d}canActivate(t){const n=this.isBloodRelativeTo(t,this.rootId),i=this.partnerRelationships.filter(s=>s.individual_ids.includes(this.rootId)).map(s=>s.individual_ids).flat().filter(s=>s!==this.rootId).reduce((s,o)=>s||this.isBloodRelativeTo(t,o),!1);return n||i}isRootPartner(t){return this.partnerRelationships.filter(r=>r.individual_ids.includes(t)).reduce((r,i)=>r||i.individual_ids.includes(this.rootId),!1)}async addSibling(t){let n=this.parentRelationships.find(o=>o.child_id===t);n||(await this.addParents(t),n=this.parentRelationships.find(o=>o.child_id===t));const r=this.partnerRelationships.find(o=>o.id===(n==null?void 0:n.partner_relationship_id)),i=this.individuals.find(o=>o.id===t),s=await this.addIndividual({gender:_i.Male,surname:i==null?void 0:i.surname});await this.addParentRelationship({child_id:s.id,partner_relationship_id:r==null?void 0:r.id,type:"Biological"}),this.rebuild()}async addChild(t){const n=this.partnerRelationships.find(o=>o.id===t),r=this.individuals.filter(o=>n==null?void 0:n.individual_ids.includes(o.id)),i=r.find(o=>o.gender===_i.Male),s=await this.addIndividual({gender:_i.Male,surname:(i==null?void 0:i.surname)||r[0].surname});await this.addParentRelationship({child_id:s.id,partner_relationship_id:t}),this.rebuild()}async changePartnerRelationship(t,n,r,i,s,o,a,u,f,d){const h=this.partnerRelationships.find(v=>v.id===t);h&&(h.type=n),h&&(h.relationship_type=r),h&&(h.marriage_date=i),h&&(h.marriage_location=s),h&&(h.separating_date=o),h&&(h.divorcing_date=a),h&&(h.start_relationship_date=u),h&&(h.other_relationship_info=f),h&&(h.other_relationship_start_date=d);try{if(this.auth.user)await ro.post("/partner-relationship/save",At.omit(h,["store"]));else{let v=JSON.parse(localStorage.getItem("partner_relationships"))||[];v=v.map(m=>m.id!==h.id?m:{...m,...At.omit(h,["store"])}),localStorage.setItem("partner_relationships",JSON.stringify(v))}this.partnerRelationships=this.partnerRelationships.map(v=>v.id!==t?v:{...v,...h}),Ko("partner_relationships",this.partnerRelationships),this.rebuild()}catch(v){throw console.log(v),v}}async addIndividual({id:t=E_(),given_name:n="Given Name",surname:r="Surname",notes:i="",known_as:s="",gender:o=_i.Male,age:a=0,surname_at_birth:u="",date_of_birth:f="",place_of_birth:d="",is_deceased:h=!1,date_of_death:v="",place_of_death:m="",profile_image:y="",tree_id:w=this.id}){v&&(h=!0);const E=new nr(this,t,n,r,!1,w,i,o,s,a,u,f,d,h,v,m,y);if(this.auth.user)try{await ro.post("/individual/save",At.omit(E,["store"]))}catch(S){throw console.log(S),S}else{const S=JSON.parse(localStorage.getItem("individuals"))||[];S.push(At.omit(E,["store"])),localStorage.setItem("individuals",JSON.stringify(S))}return this.individuals.push(E),E}async addPartnerRelationship({individual_id_1:t,individual_id_2:n,type:r="Current",tree_id:i=this.id,id:s=E_()}){const o=new Qf(this,s,[t,n],r,i);if(this.auth.user)try{await ro.post("/partner-relationship/save",At.omit(o,["store"]))}catch(a){throw console.log(a),a}else{const a=JSON.parse(localStorage.getItem("partner_relationships"))||[];a.push(At.omit(o,["store"])),localStorage.setItem("partner_relationships",JSON.stringify(a))}return this.partnerRelationships.push(o),o}async addParentRelationship({child_id:t,partner_relationship_id:n,type:r="Biological",tree_id:i=this.id,id:s=E_()}){const o=new Uy(this,s,r,t,n,i);if(this.auth.user)try{await ro.post("/parent-relationship/save",At.omit(o,["store"]))}catch(a){throw console.log(a),a}else{const a=JSON.parse(localStorage.getItem("parent_relationships"))||[];a.push(At.omit(o,["store"])),localStorage.setItem("parent_relationships",JSON.stringify(a))}return this.parentRelationships.push(o),o}async addExPartner(t){const n=await this.addIndividual({gender:_i.Male});await this.addPartnerRelationship({individual_id_1:n.id,individual_id_2:t,type:"Ex"}),this.rebuild()}async addPartner(t){const n=this.individuals.find(i=>i.id===t),r=await this.addIndividual({gender:(n==null?void 0:n.gender)===_i.Male?_i.Female:_i.Male});await this.addPartnerRelationship({individual_id_1:r.id,individual_id_2:t,type:"Current"}),this.rebuild()}async addParents(t){const n=await this.addIndividual({given_name:"Given Name",surname:"Surname",gender:_i.Female}),r=await this.addIndividual({given_name:"Given Name",surname:"Surname",gender:_i.Male}),i=await this.addPartnerRelationship({individual_id_1:n.id,individual_id_2:r.id,type:"Current"});await this.addParentRelationship({type:"Biological",child_id:t,partner_relationship_id:i.id}),this.setOwnerId(t)}async deleteIndividual(t){const n=[t],r=this.parentRelationships.filter(s=>s.child_id===t).map(s=>s.id),i=this.partnerRelationships.filter(s=>s.individual_ids.includes(t)).map(s=>s.id);i.forEach(s=>{const o=this.parentRelationships.filter(a=>a.partner_relationship_id===s);if(!Ki.isEmpty(o)){const a=this.partnerRelationships.find(f=>f.id===s),u=a==null?void 0:a.individual_ids.find(f=>f!==t);n.push(u),o.forEach(f=>r.push(f.id))}});try{if(this.auth.user)await wb.eachLimit(n,2,async s=>{await ro.delete(`/individual/${s}`)}),await wb.eachLimit(r,2,async s=>{await ro.delete(`/parent-relationship/${s}`)}),await wb.eachLimit(i,2,async s=>{await ro.delete(`/partner-relationship/${s}`)});else{let s=JSON.parse(localStorage.getItem("individuals"))||[];s=s.filter(u=>!n.includes(u.id)),localStorage.setItem("individuals",JSON.stringify(s));let o=JSON.parse(localStorage.getItem("parent_relationships"))||[];o=o.filter(u=>!r.includes(u.id)),localStorage.setItem("parent_relationships",JSON.stringify(o));let a=JSON.parse(localStorage.getItem("partner_relationships"))||[];a=a.filter(u=>!i.includes(u.id)),localStorage.setItem("partner_relationships",JSON.stringify(a))}this.individuals=this.individuals.filter(s=>!n.includes(s.id)),Ko("individuals",this.individuals),this.parentRelationships=this.parentRelationships.filter(s=>!r.includes(s.id)),Ko("parent_relationships",this.parentRelationships),this.partnerRelationships=this.partnerRelationships.filter(s=>!i.includes(s.id)),Ko("partner_relationships",this.partnerRelationships),this.rebuild()}catch(s){throw console.log(s),s}}canDeleteIndividual(t){if(t===this.rootId)return!1;const n=this.partnerRelationships.find(f=>f.individual_ids.includes(t)&&f.individual_ids.includes(this.rootId));if(n&&this.parentRelationships.find(d=>d.partner_relationship_id===n.id))return!1;const r=this.partnerRelationships.filter(f=>f.individual_ids.includes(t));if(r.length>1)return!1;if(Ki.isEmpty(r))return!0;const i=r[0].individual_ids.find(f=>f!==t),s=this.parentRelationships.filter(f=>f.child_id===t),o=this.parentRelationships.filter(f=>f.child_id===i),a=this.parentRelationships.filter(f=>f.partner_relationship_id===r[0].id);return!(a.length>1||!Ki.isEmpty(a)&&(!Ki.isEmpty(s)||!Ki.isEmpty(o))||this.partnerRelationships.filter(f=>f.individual_ids.includes(i)).length>1&&!Ki.isEmpty(a)||!Ki.isEmpty(s)&&!Ki.isEmpty(s))}async addCollaborator(t,n){await ro.post(`/individual/${t}/collaborator`,{email:n}),this.individuals=this.individuals.map(r=>r.id!==t?r:new nr(this,r.id,r.given_name,r.surname,!1,this.id,r.notes,r.gender,r.known_as,r.age,r.surname_at_birth,r.date_of_birth,r.place_of_birth,r.is_deceased,r.date_of_death,r.place_of_death,r.profile_image,n,r.user_id))}async removeCollaborator(t){await ro.delete(`/individual/${t}/collaborator`),this.individuals=this.individuals.map(n=>n.id!==t?n:new nr(this,n.id,n.given_name,n.surname,!1,this.id,n.notes,n.gender,n.known_as,n.age,n.surname_at_birth,n.date_of_birth,n.place_of_birth,n.is_deceased,n.date_of_death,n.place_of_death,n.profile_image,void 0))}isOwner(t){return t===this.ownerId}isRoot(t){return t===this.rootId}isOnlyChild(t){const n=this.parentRelationships.find(s=>s.child_id===t);if(!n)return!1;const r=this.partnerRelationships.find(s=>(n==null?void 0:n.partner_relationship_id)===s.id),i=this.parentRelationships.filter(s=>s.partner_relationship_id===r.id&&s.id!==n.id);return At.isEmpty(i)}isParent(t){const n=this.partnerRelationships.filter(r=>r.individual_ids.includes(t));return At.reduce(n,(r,i)=>!!this.parentRelationships.find(o=>o.partner_relationship_id===i.id)||r,!1)}getParentRelationship(t){const n=this.parentRelationships.find(r=>r.id===t);if(!n)throw"Can't find individual ID";return new Uy(this,n.id,n.type,n.child_id,n.partner_relationship_id)}rebuild(){var v,m,y,w,E,S;this.nodes=[],this.edges=[],this.rebuildIsMain();let t=this.individuals.find(_=>_.id===this.rootId);if(t||(t=this.individuals[0]),this.individuals.find(_=>_.id===this.ownerId)||(this.ownerId=this.rootId),this.individuals.length===1){const _=new nr(this,t==null?void 0:t.id,t==null?void 0:t.given_name,t==null?void 0:t.surname,t==null?void 0:t.isMain,t==null?void 0:t.tree_id,t==null?void 0:t.notes,t==null?void 0:t.gender,t==null?void 0:t.known_as,t==null?void 0:t.age,t==null?void 0:t.surname_at_birth,t==null?void 0:t.date_of_birth,t==null?void 0:t.place_of_birth,t==null?void 0:t.is_deceased,t==null?void 0:t.date_of_death,t==null?void 0:t.place_of_death,t==null?void 0:t.profile_image);this.getNode(_)}let n=0;const r=this.individuals.find(_=>_.id===this.ownerId),i=new nr(this,r.id,r.given_name,r.surname,r.isMain,r.tree_id,r.notes,r.gender,r.known_as,r.age,r.surname_at_birth,r.date_of_birth,r.place_of_birth,r.is_deceased,r.date_of_death,r.place_of_death,r==null?void 0:r.profile_image),s=(m=(v=i.primaryParentRelationship)==null?void 0:v.mainIndividual)==null?void 0:m.primaryParentRelationship,o=(w=(y=i.primaryParentRelationship)==null?void 0:y.otherIndividual)==null?void 0:w.primaryParentRelationship,a=(E=i.primaryParentRelationship)==null?void 0:E.mainIndividual,u=(S=i.primaryParentRelationship)==null?void 0:S.otherIndividual;!a||!u?(_=>{_.partnerRelationships.forEach((O,I)=>{_.isMain?I===0||I===1?(O.mainIndividual=_,O.otherIndividual=O.otherIndividual):(O.mainIndividual=_.partnerRelationships[I-1].otherIndividual,O.otherIndividual=O.otherIndividual):I===0||I===1?O.otherIndividual=_:O.otherIndividual=_.partnerRelationships[I-1].mainIndividual;const A=I>0?_.partnerRelationships[I-1]:null;this.positionTree(n,a,u,i,O,_,null,_.isMain?A==null?void 0:A.otherIndividual:A==null?void 0:A.mainIndividual,[],_.isMain&&I===0||!_.isMain&&I!==0?1:-1)})})(i):((_,b,O,I)=>{const A=_.partnerRelationships.find(V=>V.individual_ids.includes(b.id)),C=[A,..._.partnerRelationships.filter(V=>V.id!=A.id)],P=[A,...b.partnerRelationships.filter(V=>V.id!=A.id)];C.forEach((V,Q)=>{var ie;_.isMain?Q===0||Q===1?(V.mainIndividual=_,V.otherIndividual=V.otherIndividual):(V.mainIndividual=C[Q-1].otherIndividual,V.otherIndividual=V.otherIndividual):Q===0||Q===1?V.otherIndividual=_:V.otherIndividual=C[Q-1].mainIndividual;let se=null;Q!==0&&(se=(ie=C[Q-1])==null?void 0:ie.otherIndividual),this.positionTree(n+Ug,a,u,i,V,V==null?void 0:V.mainIndividual,null,se,[],Q===0?1:-1)});const M=this.getNode(u),D=this.getNode(a);M.data.furthestLeft=D.data.furthestLeft,u!=null&&u.actualPrimaryParentRelationship&&this.edges.push(u==null?void 0:u.actualPrimaryParentRelationship.edge),a!=null&&a.actualPrimaryParentRelationship&&this.edges.push(a==null?void 0:a.actualPrimaryParentRelationship.edge),P.forEach((V,Q)=>{var ie;if(Q===0)return;b.isMain?Q===0?V.otherIndividual=_:(V.mainIndividual=P[Q-1].otherIndividual,V.otherIndividual=V.otherIndividual):Q===0?V.otherIndividual=_:Q===1?V.otherIndividual=b:V.otherIndividual=P[Q-1].mainIndividual;let se=null;Q!==0&&(se=(ie=P[Q-1])==null?void 0:ie.mainIndividual),this.positionTree(n+Ug,a,u,i,V,V==null?void 0:V.otherIndividual,null,se,[],Q===0?-1:1)}),D.data.furthestRight=M.data.furthestRight})(a,u),s&&(this.positionTree(n,a,u,i,s,s==null?void 0:s.otherIndividual,null,null,[a.id],-1),s.individuals.forEach(_=>{var I;const b=(I=_.primaryParentRelationship)==null?void 0:I.mainIndividual,O=this.nodes.find(A=>A.id===_.id);b&&(this.nodes=[...this.nodes,pL.buildArrowNode(O.position.x,O.position.y-180,_.id)])})),o&&(this.positionTree(n,a,u,i,o,o==null?void 0:o.mainIndividual,null,null,[u.id]),o.individuals.forEach(_=>{var I;const b=(I=_.primaryParentRelationship)==null?void 0:I.mainIndividual,O=this.nodes.find(A=>A.id===_.id);b&&(this.nodes=[...this.nodes,pL.buildArrowNode(O.position.x,O.position.y-180,_.id)])}));const h=this.nodes.find(_=>_.id===this.rootId);if(h){const _=h==null?void 0:h.position.x,b=h==null?void 0:h.position.y;this.nodes=this.nodes.map(O=>({...O,position:{x:O.position.x-_,y:O.position.y-b}}))}this.edges=At.uniqBy(this.edges,"id")}rebuildIsMain(){this.individuals=this.individuals.map(t=>({...t,isMain:void 0})),this.individuals.forEach((t,n)=>{const r=At.chain(this.partnerRelationships).filter(o=>o.individual_ids.includes(t.id)).map(o=>o.individual_ids).flatten().uniq().filter(o=>o!==t.id).value(),i=this.individuals.filter(o=>r.includes(o.id));return At.reduce(i,(o,a)=>o||a.isMain,!1)?this.individuals[n].isMain=!1:t.gender===_i.Male||At.reduce(i,(o,a)=>o&&a.gender!==_i.Male,!0)?this.individuals[n].isMain=!0:this.individuals[n].isMain=!1})}getNode(t){if(!t)return;const n=this.nodes.find(i=>i.id===t.id);if(n)return n;const r=bme.buildIndividualNode(t);return this.nodes=[...this.nodes,r],this.nodes.find(i=>i.id===t.id)}movePartnerTree(t,n,r){if(r===0)return;const i=this.getNode(t);i.position.x+=r,i.data.furthestRight+=r,i.data.furthestLeft+=r,n.children.forEach(s=>{this.moveTree(s,t,r)})}moveTree(t,n,r){if(r===0)return;const i=this.getNode(t);i.position.x+=r,i.data.furthestRight+=r,i.data.furthestLeft+=r,t.partnerRelationships.forEach(s=>{s.children.forEach(u=>{this.moveTree(u,t,r)});const o=s.getOtherIndividual(t),a=this.getNode(o);a.position.x+=r,a.data.furthestRight+=r,a.data.furthestLeft+=r})}positionTree(t,n,r,i,s,o,a,u,f=[],d=1,h=1){var ie,q,oe,ue,X,te,ve,he,we,_e,Ie,me,Ae,De,Be,nt,Xe,ut,Fe,yt,Mt,dn,Jn,Yt,Gr,Li,qt,Wt;t+=Ug;let v=Math.min,m=Math.max,y=At.minBy,w=At.maxBy,E="furthestLeft",S="furthestRight";d===1&&(v=Math.max,m=Math.min,y=At.maxBy,w=At.minBy,E="furthestRight",S="furthestLeft");const b=((Me,Ye)=>{let Dt=Me.children;return Ye===-1&&(Dt=Dt.reverse()),Dt.map(Et=>Et.id).includes(n==null?void 0:n.id)?(Dt=Dt.filter(Et=>Et.id!=n.id),Dt=[n,...Dt]):Dt.map(Et=>Et.id).includes(r==null?void 0:r.id)&&(Dt=Dt.filter(Et=>Et.id!=r.id),Dt=[r,...Dt]),Dt})(s,d);this.getNode(s.mainIndividual),this.getNode(s.otherIndividual),this.edges.push(s.edge),b.forEach((Me,Ye)=>{if(f.includes(Me.id))return;const Dt=Ye>0?b[Ye-1]:null,Et=this.getNode(Me);this.getNode(o),this.edges.push(Me.actualPrimaryParentRelationship.edge),this.edges.push(Me.primaryParentRelationship.edge);let Cr="furthestRight";if(d===1?Cr="furthestRight":d===-1&&(Cr="furthestLeft"),Me.partners.length===0){if(Ye===0)Et.position={x:0,y:t};else{const ht=this.getNode(Dt);Et.position={x:((ht==null?void 0:ht.data[Cr])||0)+Qh*d,y:t}}Et.data.furthestRight=Et.position.x,Et.data.furthestLeft=Et.position.x}Me.partnerRelationships.forEach((ht,it)=>{Me.isMain?it===0||it===1?(ht.mainIndividual=Me,ht.otherIndividual=ht.otherIndividual):(ht.mainIndividual=Me.partnerRelationships[it-1].otherIndividual,ht.otherIndividual=ht.otherIndividual):it===0||it===1?ht.otherIndividual=Me:ht.otherIndividual=Me.partnerRelationships[it-1].mainIndividual,this.edges.push(ht.edge);const Tn=it>0?Me.partnerRelationships[it-1]:null;this.positionTree(t,n,r,i,ht,Me,Dt,Me.isMain?Tn==null?void 0:Tn.otherIndividual:Tn==null?void 0:Tn.mainIndividual,[],Me.isMain&&it===0||!Me.isMain&&it!==0?1:-1,d)})}),t-=Ug;const O=(...Me)=>Me.find(Ye=>!At.isNil(Ye)&&!Number.isNaN(Ye)),I=b.map(Me=>this.nodes.find(Ye=>Ye.id===Me.id)),A=(ie=At.minBy(I,"position.x"))==null?void 0:ie.position.x,C=(q=At.maxBy(I,"position.x"))==null?void 0:q.position.x,P=(A+C)/2;let M=this.getNode(s.mainIndividual),D=this.getNode(s.otherIndividual);o.isMain||(M=this.getNode(s.otherIndividual),D=this.getNode(s.mainIndividual));const V=(ue=(oe=i.primaryParentRelationship)==null?void 0:oe.mainIndividual)==null?void 0:ue.primaryParentRelationship,Q=(te=(X=i.primaryParentRelationship)==null?void 0:X.otherIndividual)==null?void 0:te.primaryParentRelationship;let se=M.data.individual.partners;if((s.id===(V==null?void 0:V.id)||s.id===(Q==null?void 0:Q.id))&&(se=[D,...M==null?void 0:M.data.individual.partners.filter(Me=>Me.id!=D.id)]),(ve=i.primaryParentRelationship)!=null&&ve.id&&s.id==((he=i.primaryParentRelationship)==null?void 0:he.id)&&(((me=(Ie=(_e=(we=M==null?void 0:M.data)==null?void 0:we.individual)==null?void 0:_e.primaryParentRelationship)==null?void 0:Ie.children)==null?void 0:me.length)===1||((nt=(Be=(De=(Ae=D==null?void 0:D.data)==null?void 0:Ae.individual)==null?void 0:De.primaryParentRelationship)==null?void 0:Be.children)==null?void 0:nt.length)===1)?(M.position={x:O(P-Tu*d,0),y:t},D.position={x:O(P+Tu*d,Tu*d),y:t}):((Xe=se[0])==null?void 0:Xe.id)===D.data.individual.id?(M.position={x:O(P-Tu*d/2,0),y:t},D.position={x:O(P+Tu*d/2,Tu*d),y:t}):D.position={x:O(P+Tu*d/2,0),y:t},M.data[S]=m(O((ut=w(I,`data.${S}`))==null?void 0:ut.data[S],M==null?void 0:M.position.x),M==null?void 0:M.position.x),D.data[E]=v(O((Fe=y(I,`data.${E}`))==null?void 0:Fe.data[E],D==null?void 0:D.position.x),D==null?void 0:D.position.x),D.data.individual.id===((yt=se[0])==null?void 0:yt.id)?D.data[S]=M.data[S]:D.data[S]=m(O((Mt=w(I,`data.${S}`))==null?void 0:Mt.data[S],D==null?void 0:D.position.x),D==null?void 0:D.position.x),D.data.individual.id!==((dn=se[0])==null?void 0:dn.id)){const Me=this.getNode(u);let Ye=0;d===1?Ye=(((Jn=Me==null?void 0:Me.data)==null?void 0:Jn.furthestRight)||0)-(((Yt=D==null?void 0:D.data)==null?void 0:Yt.furthestLeft)||0)+Qh*d:d===-1&&(Ye=(((Gr=Me==null?void 0:Me.data)==null?void 0:Gr.furthestLeft)||0)-(((Li=D==null?void 0:D.data)==null?void 0:Li.furthestRight)||0)+Qh*d),this.movePartnerTree(D,s,Ye)}if(D.data.individual.id===((qt=M.data.individual.partners[M.data.individual.partners.length-1])==null?void 0:qt.id)){M.data[S]=(Wt=this.getNode(se[0]))==null?void 0:Wt.data[S],M.data[E]=D==null?void 0:D.data[E];const Me=this.getNode(a);let Ye=0;Me?h===1?Ye=Me.data.furthestRight-M.data.furthestLeft+Qh*h:h===-1&&(Ye=Me.data.furthestLeft-M.data.furthestRight+Qh*h):Ye=0,this.moveTree(M.data.individual,M.data.individual,O(Ye,0))}}setShowPricingModal(t){t||(this.pricingModalTitle="Welcome to Kintree!",this.pricingModalSubTitle="Upgrade to Premium to keep building your tree and get unlimited access for life"),localStorage.getItem("d566c0ac-cb29-4d8e-844f-5ed2516d1758")||(this.setDiscountPricingTimer(60*60),localStorage.setItem("d566c0ac-cb29-4d8e-844f-5ed2516d1758","true")),t?(D2.capture("open_pricing_modal"),O_.gtag("event","open_pricing_modal")):(D2.capture("close_pricing_modal"),O_.gtag("event","close_pricing_modal")),this.showPricingModal=t}setPricingModalTitle(t){this.pricingModalTitle=t}setPricingModalSubTitle(t){this.pricingModalSubTitle=t}setDiscountPricingTimer(t){this.discountPricingTimer=t,localStorage.setItem("discountPricingTimer",t.toString())}hitNodeLimit(){O_.gtag("event","paywall_node_limit"),this.setPricingModalTitle("You've hit the limit of the free tier"),this.setPricingModalSubTitle("You've reached the limit of your free Kintree membership, you can stay on the free plan forever or upgrade once for unlimited lifetime access below"),this.setShowPricingModal(!0)}}const X0e=new Kye,J0e=N.createContext({isGrandFatheredUser:!1,hasActiveSubscription:!1,nodeLimit:20,demoMode:!1,discountPrice:89,price:129});export{de as $,k$ as A,TO as B,Rx as C,MJ as D,l0e as E,f0e as F,So as G,i0e as H,EJ as I,I$ as J,b0e as K,d0e as L,h0e as M,w0e as N,Jye as O,Qye as P,Zye as Q,vJ as R,ao as S,mJ as T,c0e as U,v0e as V,s0e as W,r0e as X,SJ as Y,_0e as Z,o0e as _,Ax as a,aB as a$,sB as a0,N as a1,Nx as a2,lB as a3,ma as a4,Wx as a5,k0e as a6,T0e as a7,P0e as a8,C0e as a9,J0e as aA,oJ as aB,uJ as aC,sJ as aD,lJ as aE,fy as aF,Yl as aG,Bt as aH,Hr as aI,SB as aJ,jd as aK,Bn as aL,HI as aM,oa as aN,nU as aO,ZS as aP,A0e as aQ,Wd as aR,sM as aS,Goe as aT,z0e as aU,H0e as aV,W0e as aW,vle as aX,hle as aY,or as aZ,_d as a_,mo as aa,$l as ab,R0e as ac,M0e as ad,VQ as ae,F0e as af,$0e as ag,Ile as ah,fue as ai,aue as aj,uue as ak,BU as al,due as am,lue as an,Cse as ao,G0e as ap,ro as aq,kb as ar,X0e as as,D2 as at,rd as au,O_ as av,aJ as aw,ye as ax,S0e as ay,E_ as az,n0e as b,vo as b0,Q3 as b1,pc as b2,E0e as b3,x0e as b4,O0e as b5,l0 as b6,At as b7,J3 as b8,K3 as b9,Xu as bA,hD as bB,xd as bC,zv as bD,oue as bE,Vv as bF,LA as bG,q3 as ba,i4 as bb,_i as bc,LE as bd,lT as be,o0 as bf,KN as bg,U0e as bh,V0e as bi,j0e as bj,fC as bk,FE as bl,nr as bm,Qf as bn,Uy as bo,qye as bp,I0e as bq,YQ as br,N0e as bs,L0e as bt,K0e as bu,Y0e as bv,q0e as bw,RE as bx,B0e as by,zd as bz,bi as c,PJ as d,t0e as e,a0e as f,A$ as g,g0e as h,C0 as i,m0e as j,OJ as k,nv as l,L$ as m,R0 as n,F$ as o,A0 as p,u0e as q,qN as r,TJ as s,AI as t,qu as u,y0e as v,Wf as w,p0e as x,e0e as y,k0 as z};
